SIVIC API
0.9.26
|
#include <svkObliqueReslice.h>
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) |
svkInt * | GetInterpolationMode () |
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 svkAlgorithmPortMapper * | GetPortMapper () |
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) | |
svkImageData * | GetOutput () |
svkImageData * | GetOutput (int port) |
svkImageData * | GetImageDataInput (int port) |
Static Public Member Functions | |
static svkObliqueReslice * | New () |
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) |
Class to reslice an svkMriImageData at the specified orientation, set either explicitly by providing the target orientatin dcos, or by providing an svkImageData object.
|
protected |
References svkImageAlgorithmWithPortMapper::GetPortMapper(), svkAlgorithmPortMapper::InitializeInputPort(), svkAlgorithmPortMapper::InitializeOutputPort(), svkObliqueReslice::INPUT_IMAGE, svkObliqueReslice::INTERPOLATION_MODE, svkObliqueReslice::MATCH_SPACING_AND_FOV, svkObliqueReslice::RESLICED_IMAGE, svkAlgorithmPortMapper::SVK_BOOL, svkAlgorithmPortMapper::SVK_IMAGE_DATA, svkAlgorithmPortMapper::SVK_INT, svkAlgorithmPortMapper::SVK_MR_IMAGE_DATA, and svkObliqueReslice::TARGET_IMAGE.
|
protected |
svkInt * GetInterpolationMode | ( | ) |
Utility getter for input port: Interpolation Mode
References svkAlgorithmPortMapper::GetIntInputPortValue(), svkImageAlgorithmWithPortMapper::GetPortMapper(), svkObliqueReslice::INTERPOLATION_MODE, and svkObliqueReslice::SetInterpolationMode().
Referenced by svkObliqueReslice::RequestInformation().
|
static |
|
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().
|
protectedvirtual |
References svkImageData::GetDcmHeader(), svkImageAlgorithm::GetImageDataInput(), svkAlgorithmPortMapper::GetImageInputPortValue(), svkImageData::GetIndexFromPosition(), svkObliqueReslice::GetInterpolationMode(), svkAlgorithmPortMapper::GetMRImageInputPortValue(), svkImageData::GetNumberOfVoxels(), svkDcmHeader::GetOrigin(), svkImageAlgorithmWithPortMapper::GetPortMapper(), svkInt::GetValue(), svkObliqueReslice::INPUT_IMAGE, and svkObliqueReslice::TARGET_IMAGE.
void SetInterpolationMode | ( | int | interpolationMode | ) |
Utility setter for input port: Interpolation Mode
References svkImageAlgorithmWithPortMapper::GetPortMapper(), svkObliqueReslice::INTERPOLATION_MODE, and svkAlgorithmPortMapper::SetIntInputPortValue().
Referenced by svkObliqueReslice::GetInterpolationMode().
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 | |||
) |
enum { ... } svkObliqueResliceInput |
enum { ... } svkObliqueResliceOutput |