SIVIC API
0.9.26
|
#include <svkImageMathematics.h>
Public Member Functions | |
void | SetInputPortsFromXML () |
Uses port mapper to parse an XML element and convert it into input port data objects. More... | |
svkAlgorithmPortMapper * | GetPortMapper () |
Get the internal XML interpreter. More... | |
vtkTypeMacro (svkImageMathematics, vtkImageMathematics) | |
virtual void | Update () |
void | PrintSelf (ostream &os, vtkIndent indent) |
Prints all input parameters set. More... | |
void | SetOutputType (int outputType) |
svkInt * | GetOutputType () |
Static Public Member Functions | |
static svkImageMathematics * | New () |
Protected Member Functions | |
svkImageMathematics () | |
~svkImageMathematics () | |
virtual int | FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
virtual int | FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
Protected Attributes | |
svkAlgorithmPortMapper * | portMapper |
The port mapper used to set the input port parameters. More... | |
Wrapper class around vtkImageMathematics that operates on each vtkPointData array in the input vtkImageData objects. This is a convenience for applying an operation to a multi-volume image object.
|
protected |
Default input type is svkImageData base class. Override with a specific concrete type in sub class if necessary. Port 0 -> input 1 image to operate on 1 -> input 2 image to operate on (optional) 2 -> mask (optional)
References svkImageMathematics::ADD, svkImageMathematics::BIN_SIZE_FOR_HISTOGRAM, svkImageMathematics::GetPortMapper(), svkAlgorithmPortMapper::InitializeInputPort(), svkAlgorithmPortMapper::InitializeOutputPort(), svkImageMathematics::INPUT_IMAGE_1, svkImageMathematics::INPUT_IMAGE_2, svkImageMathematics::MASK, svkImageMathematics::MASK_FOR_MEDIAN, svkImageMathematics::MULTIPLY, svkImageMathematics::MULTIPLY_BY_SCALAR, svkImageMathematics::MULTIPLY_IMAGE_1_BY_IMAGE_2_MEDIAN, svkMriImageData::NewObject(), svkImageMathematics::NUM_BINS_FOR_HISTOGRAM, svkImageMathematics::OUTPUT_SERIES_DESCRIPTION, svkImageMathematics::OUTPUT_TYPE, svkImageMathematics::portMapper, svkImageMathematics::SMOOTH_BINS_FOR_HISTOGRAM, svkImageMathematics::START_BIN_FOR_HISTOGRAM, svkImageMathematics::SUBTRACT, svkAlgorithmPortMapper::SVK_BOOL, svkAlgorithmPortMapper::SVK_DOUBLE, svkAlgorithmPortMapper::SVK_INT, svkAlgorithmPortMapper::SVK_MR_IMAGE_DATA, and svkAlgorithmPortMapper::SVK_STRING.
|
protected |
References svkImageMathematics::portMapper.
|
protectedvirtual |
Pass through method to the internal svkAlgorithmPortMapper
References svkAlgorithmPortMapper::FillInputPortInformation(), and svkImageMathematics::GetPortMapper().
|
protectedvirtual |
Pass through method to the internal svkAlgorithmPortMapper
References svkAlgorithmPortMapper::FillOutputPortInformation(), and svkImageMathematics::GetPortMapper().
svkInt * GetOutputType | ( | ) |
Utility getter for input port: Output float
References svkAlgorithmPortMapper::GetIntInputPortValue(), svkImageMathematics::GetPortMapper(), and svkImageMathematics::OUTPUT_TYPE.
svkAlgorithmPortMapper * GetPortMapper | ( | ) |
Get the internal XML interpreter.
Returns the port mapper. Performs lazy initialization.
References svkAlgorithmPortMapper::New(), svkImageMathematics::portMapper, and svkAlgorithmPortMapper::SetAlgorithm().
Referenced by svkImageMathematics::FillInputPortInformation(), svkImageMathematics::FillOutputPortInformation(), svkImageMathematics::GetOutputType(), svkImageMathematics::PrintSelf(), svkImageMathematics::SetInputPortsFromXML(), svkImageMathematics::SetOutputType(), svkImageMathematics::svkImageMathematics(), and svkImageMathematics::Update().
|
static |
Referenced by svkImageAlgorithmPipeline::InitializeAlgorithmForTag().
void PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Prints all input parameters set.
PrintSelf method calls parent class PrintSelf, then prints all parameters using the port mapper.
References svkImageMathematics::GetPortMapper(), and svkAlgorithmPortMapper::PrintSelf().
void SetInputPortsFromXML | ( | ) |
Uses port mapper to parse an XML element and convert it into input port data objects.
Pass through method to the internal svkAlgorithmPortMapper
References svkImageMathematics::ADD, svkAlgorithmPortMapper::GetDoubleInputPortValue(), svkImageMathematics::GetPortMapper(), svkDouble::GetValue(), svkImageMathematics::MULTIPLY, svkImageMathematics::MULTIPLY_BY_SCALAR, svkImageMathematics::MULTIPLY_IMAGE_1_BY_IMAGE_2_MEDIAN, and svkImageMathematics::SUBTRACT.
Referenced by svkImageMathematics::Update().
void SetOutputType | ( | int | outputType | ) |
Utility setter for input port: Output float
References svkImageMathematics::GetPortMapper(), svkImageMathematics::OUTPUT_TYPE, and svkAlgorithmPortMapper::SetIntInputPortValue().
|
virtual |
This method loops over all volumes and calls the VTK super class update method on each to perform the specified calculation. If necessary the output will be masked by an input mask.
References svkImageMathematics::BIN_SIZE_FOR_HISTOGRAM, svkStatistics::ComputeQuantilesFromHistogram(), svkAlgorithmPortMapper::GetBoolInputPortValue(), svkAlgorithmPortMapper::GetDoubleInputPortValue(), svkStatistics::GetHistogram(), svkAlgorithmPortMapper::GetIntInputPortValue(), svkStatistics::GetMaskedPixels(), svkImageMathematics::GetPortMapper(), svkAlgorithmPortMapper::GetStringInputPortValue(), svkInt::GetValue(), svkString::GetValue(), svkDouble::GetValue(), svkBool::GetValue(), svkImageMathematics::MASK, svkImageMathematics::MASK_FOR_MEDIAN, svkImageMathematics::MULTIPLY_IMAGE_1_BY_IMAGE_2_MEDIAN, svkImageMathematics::NUM_BINS_FOR_HISTOGRAM, svkImageMathematics::OUTPUT_SERIES_DESCRIPTION, svkImageMathematics::SetInputPortsFromXML(), svkImageMathematics::SMOOTH_BINS_FOR_HISTOGRAM, and svkImageMathematics::START_BIN_FOR_HISTOGRAM.
vtkTypeMacro | ( | svkImageMathematics | , |
vtkImageMathematics | |||
) |
|
protected |
The port mapper used to set the input port parameters.
Referenced by svkImageMathematics::GetPortMapper(), svkImageMathematics::svkImageMathematics(), and svkImageMathematics::~svkImageMathematics().