Class CropImageFilter


public class CropImageFilter extends ImageFilter
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
  • 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

      protected static long getCPtr(CropImageFilter obj)
    • swigRelease

      protected static long swigRelease(CropImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::CropImageFilter::~CropImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • setLowerBoundaryCropSize

      public 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.
    • getLowerBoundaryCropSize

      public VectorUInt32 getLowerBoundaryCropSize()
      std::vector<unsigned int> itk::simple::CropImageFilter::GetLowerBoundaryCropSize() const Set/Get the cropping sizes for the upper and lower boundaries.
    • setUpperBoundaryCropSize

      public 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.
    • getUpperBoundaryCropSize

      public VectorUInt32 getUpperBoundaryCropSize()
      std::vector<unsigned int> itk::simple::CropImageFilter::GetUpperBoundaryCropSize() const Set/Get the cropping sizes for the upper and lower boundaries.
    • getName

      public String getName()
      std::string itk::simple::CropImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::CropImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image image1)
      Image itk::simple::CropImageFilter::Execute(Image &&image1) Execute the filter on the input image