SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
svkObliqueReslice Class Reference

#include <svkObliqueReslice.h>

Inheritance diagram for svkObliqueReslice:
svkImageAlgorithmWithPortMapper svkImageAlgorithm

Public Types

enum  { INPUT_IMAGE = 0, TARGET_IMAGE, MATCH_SPACING_AND_FOV, INTERPOLATION_MODE }
 
enum  { RESLICED_IMAGE = 0 }
 

Public Member Functions

 vtkTypeMacro (svkObliqueReslice, svkImageAlgorithm)
 
void SetTarget (svkImageData *image)
 
void SetTargetDcos (double dcos[3][3])
 
void SetMagnificationFactors (float x, float y, float z)
 
void SetMatchSpacingAndFovOn ()
 
void SetInterpolationMode (int interpolationMode)
 
svkIntGetInterpolationMode ()
 
- Public Member Functions inherited from svkImageAlgorithmWithPortMapper
 vtkTypeMacro (svkImageAlgorithmWithPortMapper, svkImageAlgorithm)
 
virtual void SetInputPortsFromXML (vtkXMLDataElement *element)
 Parses an XML element and converts it into input port parameters. Converts image filename strings to svkImageData objects. More...
 
virtual svkAlgorithmPortMapperGetPortMapper ()
 Get the internal port mapper. More...
 
void PrintSelf (ostream &os, vtkIndent indent)
 Prints all input parameters set. More...
 
- Public Member Functions inherited from svkImageAlgorithm
 vtkTypeMacro (svkImageAlgorithm, vtkImageAlgorithm)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int port)
 
svkImageDataGetImageDataInput (int port)
 

Static Public Member Functions

static svkObliqueResliceNew ()
 
- Static Public Member Functions inherited from svkImageAlgorithmWithPortMapper
static
svkImageAlgorithmWithPortMapper
New ()
 

Public Attributes

enum svk::svkObliqueReslice:: { ... }  svkObliqueResliceInput
 
enum svk::svkObliqueReslice:: { ... }  svkObliqueResliceOutput
 

Protected Member Functions

 svkObliqueReslice ()
 
 ~svkObliqueReslice ()
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Protected Member Functions inherited from svkImageAlgorithmWithPortMapper
 svkImageAlgorithmWithPortMapper ()
 
 ~svkImageAlgorithmWithPortMapper ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 All ports must be initialized through the svkAlgorithmPortMapper BEFORE this method is called. More...
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from svkImageAlgorithm
 svkImageAlgorithm ()
 
 ~svkImageAlgorithm ()
 
virtual int FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 
virtual int FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 

Detailed Description

Class to reslice an svkMriImageData at the specified orientation, set either explicitly by providing the target orientatin dcos, or by providing an svkImageData object.

Member Enumeration Documentation

anonymous enum
Enumerator
INPUT_IMAGE 
TARGET_IMAGE 
MATCH_SPACING_AND_FOV 
INTERPOLATION_MODE 
anonymous enum
Enumerator
RESLICED_IMAGE 

Constructor & Destructor Documentation

svkObliqueReslice ( )
protected
~svkObliqueReslice ( )
protected

Member Function Documentation

svkInt * GetInterpolationMode ( )
static svkObliqueReslice* New ( )
static
int RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

Copy the Dcm Header, svkOrientedImageData and Provenance from the input to the output image.

References svkImageData::DeepCopy(), svkImageAlgorithm::GetImageDataInput(), svkImageAlgorithm::GetOutput(), and svkImageData::SetDcos().

int RequestInformation ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual
void SetInterpolationMode ( int  interpolationMode)
void SetMagnificationFactors ( float  x,
float  y,
float  z 
)

This is the ratio of the input and output spacing Spacing is multiplied by the mag factor extent is is divided by the mag factor.

A mag factor > 1 downsamples the data (smaller extent, larger spacing) A mag factor < 1 upsamples the data (larger extent, smaller spacing)

void SetMatchSpacingAndFovOn ( )

Setter to turn on the matching of the spacing and fov to the target image. A target image must be set for this option.

References svkImageAlgorithmWithPortMapper::GetPortMapper(), svkObliqueReslice::MATCH_SPACING_AND_FOV, and svkAlgorithmPortMapper::SetBoolInputPortValue().

void SetTarget ( svkImageData image)

Sets the target image. By default the target dcos will be used to simply reslice the input into the orientation of the target.

References svkDcmHeader::GetDataDcos(), svkImageData::GetDcmHeader(), and svkObliqueReslice::TARGET_IMAGE.

void SetTargetDcos ( double  dcos[3][3])
vtkTypeMacro ( svkObliqueReslice  ,
svkImageAlgorithm   
)

Member Data Documentation

enum { ... } svkObliqueResliceInput
enum { ... } svkObliqueResliceOutput

The documentation for this class was generated from the following files: