Package org.itk.simple
Class CropImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.CropImageFilter
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of the largest possible region.
CropImageFilter changes the image boundary of an image by removing pixels outside the
target region. The target region is not specified in advance, but
calculated in BeforeThreadedGenerateData() .
This filter uses ExtractImageFilter to perform the cropping.
See:
itk::simple::Crop for the procedural interface
itk::CropImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkCropImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::CropImageFilter::CropImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
CropImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::CropImageFilter::~CropImageFilter() DestructorImage itk::simple::CropImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected void
finalize()
protected static long
getCPtr
(CropImageFilter obj) std::vector<unsigned int> itk::simple::CropImageFilter::GetLowerBoundaryCropSize() const Set/Get the cropping sizes for the upper and lower boundaries.getName()
std::string itk::simple::CropImageFilter::GetName() const Name of this classstd::vector<unsigned int> itk::simple::CropImageFilter::GetUpperBoundaryCropSize() const Set/Get the cropping sizes for the upper and lower boundaries.void
setLowerBoundaryCropSize
(VectorUInt32 LowerBoundaryCropSize) Self& itk::simple::CropImageFilter::SetLowerBoundaryCropSize(std::vector< unsigned int > LowerBoundaryCropSize) Set/Get the cropping sizes for the upper and lower boundaries.void
setUpperBoundaryCropSize
(VectorUInt32 UpperBoundaryCropSize) Self& itk::simple::CropImageFilter::SetUpperBoundaryCropSize(std::vector< unsigned int > UpperBoundaryCropSize) Set/Get the cropping sizes for the upper and lower boundaries.protected static long
toString()
std::string itk::simple::CropImageFilter::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
-
CropImageFilter
protected CropImageFilter(long cPtr, boolean cMemoryOwn) -
CropImageFilter
public CropImageFilter()itk::simple::CropImageFilter::CropImageFilter() 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::CropImageFilter::~CropImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setLowerBoundaryCropSize
Self& itk::simple::CropImageFilter::SetLowerBoundaryCropSize(std::vector< unsigned int > LowerBoundaryCropSize) Set/Get the cropping sizes for the upper and lower boundaries. -
getLowerBoundaryCropSize
std::vector<unsigned int> itk::simple::CropImageFilter::GetLowerBoundaryCropSize() const Set/Get the cropping sizes for the upper and lower boundaries. -
setUpperBoundaryCropSize
Self& itk::simple::CropImageFilter::SetUpperBoundaryCropSize(std::vector< unsigned int > UpperBoundaryCropSize) Set/Get the cropping sizes for the upper and lower boundaries. -
getUpperBoundaryCropSize
std::vector<unsigned int> itk::simple::CropImageFilter::GetUpperBoundaryCropSize() const Set/Get the cropping sizes for the upper and lower boundaries. -
getName
std::string itk::simple::CropImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::CropImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::CropImageFilter::Execute(Image &&image1) Execute the filter on the input image
-