Package org.itk.simple
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 parametersprotected
ExpandImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::ExpandImageFilter::~ExpandImageFilter() DestructorImage itk::simple::ExpandImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
protected static long
getCPtr
(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 classvoid
setExpandFactor
(long e) Self& itk::simple::ExpandImageFilter::SetExpandFactor(unsigned int e) Custom public declarationsvoid
setExpandFactors
(long value) Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to valuevoid
setExpandFactors
(VectorUInt32 ExpandFactors) Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to valuevoid
setInterpolator
(InterpolatorEnum Interpolator) Self& itk::simple::ExpandImageFilter::SetInterpolator(InterpolatorEnum Interpolator) Get/Set the interpolator function.protected static long
toString()
std::string itk::simple::ExpandImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods 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:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::ExpandImageFilter::~ExpandImageFilter() Destructor- Overrides:
delete
in 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:
getName
in classProcessObject
-
toString
std::string itk::simple::ExpandImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::ExpandImageFilter::Execute(const Image &image1) Execute the filter on the input image
-