Class ShiftScaleImageFilter


public class ShiftScaleImageFilter extends ImageFilter
Shift and scale the pixels in an image. ShiftScaleImageFilter shifts the input pixel by Shift (default 0.0) and then scales the pixel by Scale (default 1.0). All computations are performed in the precision of the input pixel's RealType. Before assigning the computed value to the output pixel, the value is clamped at the NonpositiveMin and max of the pixel type. See: itk::simple::ShiftScale for the procedural interface itk::ShiftScaleImageFilter for the Doxygen on the original ITK class. C++ includes: sitkShiftScaleImageFilter.h
  • Constructor Details

    • ShiftScaleImageFilter

      protected ShiftScaleImageFilter(long cPtr, boolean cMemoryOwn)
    • ShiftScaleImageFilter

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

    • getCPtr

      protected static long getCPtr(ShiftScaleImageFilter obj)
    • swigRelease

      protected static long swigRelease(ShiftScaleImageFilter obj)
    • finalize

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

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

      public void setShift(double Shift)
      Self& itk::simple::ShiftScaleImageFilter::SetShift(double Shift) Set/Get the amount to Shift each Pixel. The shift is followed by a Scale.
    • getShift

      public double getShift()
      double itk::simple::ShiftScaleImageFilter::GetShift() const Set/Get the amount to Shift each Pixel. The shift is followed by a Scale.
    • setScale

      public void setScale(double Scale)
      Self& itk::simple::ShiftScaleImageFilter::SetScale(double Scale) Set/Get the amount to Scale each Pixel. The Scale is applied after the Shift.
    • getScale

      public double getScale()
      double itk::simple::ShiftScaleImageFilter::GetScale() const Set/Get the amount to Scale each Pixel. The Scale is applied after the Shift.
    • setOutputPixelType

      public void setOutputPixelType(PixelIDValueEnum OutputPixelType)
      Self& itk::simple::ShiftScaleImageFilter::SetOutputPixelType(PixelIDValueEnum OutputPixelType) Set the output pixel type, if sitkUnknown then the input type is used.
    • getOutputPixelType

      public PixelIDValueEnum getOutputPixelType()
      PixelIDValueEnum itk::simple::ShiftScaleImageFilter::GetOutputPixelType() const Get the output pixel type.
    • getUnderflowCount

      public int getUnderflowCount()
      int64_t itk::simple::ShiftScaleImageFilter::GetUnderflowCount() const Get the number of pixels that underflowed and overflowed. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getOverflowCount

      public int getOverflowCount()
      int64_t itk::simple::ShiftScaleImageFilter::GetOverflowCount() const Get the number of pixels that underflowed and overflowed. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getName

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

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

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