Class ExpandImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ExpandImageFilter
Expand the size of an image by an integer factor in each dimension.
ExpandImageFilter increases the size of an image by an integer factor in each dimension
using a interpolation method. The output image size in each dimension
is given by:
OutputSize[j] = InputSize[j] * ExpandFactors[j]
The output values are obtained by interpolating the input image. The
default interpolation type used is the LinearInterpolateImageFunction . The user can specify a particular interpolation function via SetInterpolator() . Note that the input interpolator must derive from base class InterpolateImageFunction .
This filter will produce an output with different pixel spacing that
its input image such that:
OutputSpacing[j] = InputSpacing[j] / ExpandFactors[j]
The filter is templated over the input image type and the output image
type.
This filter is implemented as a multithreaded filter and supports
streaming.
This filter assumes that the input and output image has the same
number of dimensions.
See:
InterpolateImageFunction
LinearInterpolationImageFunction
itk::simple::Expand for the procedural interface
itk::ExpandImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkExpandImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::ExpandImageFilter::ExpandImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedExpandImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::ExpandImageFilter::~ExpandImageFilter() DestructorImage itk::simple::ExpandImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()protected static longgetCPtr(ExpandImageFilter obj) std::vector<unsigned int> itk::simple::ExpandImageFilter::GetExpandFactors() const Get the expand factors.InterpolatorEnum itk::simple::ExpandImageFilter::GetInterpolator() const Get/Set the interpolator function.getName()std::string itk::simple::ExpandImageFilter::GetName() const Name of this classvoidsetExpandFactor(long e) Self& itk::simple::ExpandImageFilter::SetExpandFactor(unsigned int e) Custom public declarationsvoidsetExpandFactors(long value) Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to valuevoidsetExpandFactors(VectorUInt32 ExpandFactors) Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to valuevoidsetInterpolator(InterpolatorEnum Interpolator) Self& itk::simple::ExpandImageFilter::SetInterpolator(InterpolatorEnum Interpolator) Get/Set the interpolator function.protected static longtoString()std::string itk::simple::ExpandImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
Constructor Details
-
ExpandImageFilter
protected ExpandImageFilter(long cPtr, boolean cMemoryOwn) -
ExpandImageFilter
public ExpandImageFilter()itk::simple::ExpandImageFilter::ExpandImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::ExpandImageFilter::~ExpandImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setExpandFactor
public void setExpandFactor(long e) Self& itk::simple::ExpandImageFilter::SetExpandFactor(unsigned int e) Custom public declarations -
setExpandFactors
Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to value -
setExpandFactors
public void setExpandFactors(long value) Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to value -
getExpandFactors
std::vector<unsigned int> itk::simple::ExpandImageFilter::GetExpandFactors() const Get the expand factors. -
setInterpolator
Self& itk::simple::ExpandImageFilter::SetInterpolator(InterpolatorEnum Interpolator) Get/Set the interpolator function. -
getInterpolator
InterpolatorEnum itk::simple::ExpandImageFilter::GetInterpolator() const Get/Set the interpolator function. -
getName
std::string itk::simple::ExpandImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::ExpandImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-