Class CyclicShiftImageFilter


public class CyclicShiftImageFilter extends ImageFilter
Perform a cyclic spatial shift of image intensities on the image grid. This filter supports arbitrary cyclic shifts of pixel values on the image grid. If the Shift is set to [xOff, yOff], the value of the pixel at [0, 0] in the input image will be the value of the pixel in the output image at index [xOff modulo xSize, yOff modulo ySize] where xSize and ySize are the sizes of the image in the x and y dimensions, respectively. If a pixel value is moved across a boundary, the pixel value is wrapped around that boundary. For example, if the image is 40-by-40 and the Shift is [13, 47], then the value of the pixel at [0, 0] in the input image will be the value of the pixel in the output image at index [13, 7]. Negative Shifts are supported. This filter also works with images whose largest possible region starts at a non-zero index. See: itk::simple::CyclicShift for the procedural interface itk::CyclicShiftImageFilter for the Doxygen on the original ITK class. C++ includes: sitkCyclicShiftImageFilter.h
  • Constructor Details

    • CyclicShiftImageFilter

      protected CyclicShiftImageFilter(long cPtr, boolean cMemoryOwn)
    • CyclicShiftImageFilter

      public CyclicShiftImageFilter()
      itk::simple::CyclicShiftImageFilter::CyclicShiftImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(CyclicShiftImageFilter obj)
    • swigRelease

      protected static long swigRelease(CyclicShiftImageFilter obj)
    • finalize

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

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

      public void setShift(VectorInt32 Shift)
      Self& itk::simple::CyclicShiftImageFilter::SetShift(std::vector< int > Shift) Set/get the shift. Shifts may be positive or negative.
    • setShift

      public void setShift(int value)
      Self& itk::simple::CyclicShiftImageFilter::SetShift(std::vector< int > Shift) Set/get the shift. Shifts may be positive or negative.
    • getShift

      public VectorInt32 getShift()
      std::vector<int> itk::simple::CyclicShiftImageFilter::GetShift() const Set/get the shift. Shifts may be positive or negative.
    • getName

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

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

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