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 parametersprotectedCropImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::CropImageFilter::~CropImageFilter() DestructorImage itk::simple::CropImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected voidfinalize()protected static longgetCPtr(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.voidsetLowerBoundaryCropSize(VectorUInt32 LowerBoundaryCropSize) Self& itk::simple::CropImageFilter::SetLowerBoundaryCropSize(std::vector< unsigned int > LowerBoundaryCropSize) Set/Get the cropping sizes for the upper and lower boundaries.voidsetUpperBoundaryCropSize(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 longtoString()std::string itk::simple::CropImageFilter::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
-
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:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::CropImageFilter::~CropImageFilter() Destructor- Overrides:
deletein 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:
getNamein classProcessObject
-
toString
std::string itk::simple::CropImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-