Class PasteImageFilter


public class PasteImageFilter extends ImageFilter
Paste an image (or a constant value) into another image. PasteImageFilter allows a region in a destination image to be filled with a source image or a constant pixel value. The SetDestinationIndex() method prescribes where in the destination input to start pasting data from the source input. The SetSourceRegion method prescribes the section of the second image to paste into the first. When a constant pixel value is set, the SourceRegion describes the size of the region filled. If the output requested region does not include the SourceRegion after it has been repositioned to DestinationIndex, then the output will just be a copy of the input. This filter supports running "InPlace" to efficiently reuses the destination image buffer for the output, removing the need to copy the destination pixels to the output. When the source image is a lower dimension than the destination image then the DestinationSkipAxes parameter specifies which axes in the destination image are set to 1 when copying the region or filling with a constant. C++ includes: sitkPasteImageFilter.h
  • Constructor Details

    • PasteImageFilter

      protected PasteImageFilter(long cPtr, boolean cMemoryOwn)
    • PasteImageFilter

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

    • getCPtr

      protected static long getCPtr(PasteImageFilter obj)
    • swigRelease

      protected static long swigRelease(PasteImageFilter obj)
    • finalize

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

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

      public void setSourceSize(VectorUInt32 SourceSize)
      Self& itk::simple::PasteImageFilter::SetSourceSize(std::vector< unsigned int > SourceSize)
    • getSourceSize

      public VectorUInt32 getSourceSize()
      std::vector<unsigned int> itk::simple::PasteImageFilter::GetSourceSize() const
    • setSourceIndex

      public void setSourceIndex(VectorInt32 SourceIndex)
      Self& itk::simple::PasteImageFilter::SetSourceIndex(std::vector< int > SourceIndex)
    • getSourceIndex

      public VectorInt32 getSourceIndex()
      std::vector<int> itk::simple::PasteImageFilter::GetSourceIndex() const
    • setDestinationIndex

      public void setDestinationIndex(VectorInt32 DestinationIndex)
      Self& itk::simple::PasteImageFilter::SetDestinationIndex(std::vector< int > DestinationIndex) Set/Get the destination index (where in the first input the second input will be pasted.
    • getDestinationIndex

      public VectorInt32 getDestinationIndex()
      std::vector<int> itk::simple::PasteImageFilter::GetDestinationIndex() const Set/Get the destination index (where in the first input the second input will be pasted.
    • setDestinationSkipAxes

      public void setDestinationSkipAxes(VectorBool DestinationSkipAxes)
      Self& itk::simple::PasteImageFilter::SetDestinationSkipAxes(std::vector< bool > DestinationSkipAxes) Set/Get the array describing which axes in the destination image to skip The axes with true values are set to 1, to fill the difference between the dimension of the input and source image. The number of true value in DestinationSkipAxes plus the DestinationImageDimension must equal the InputImageDimension. By default this array contains SourceImageDimension false values followed by true values for the remainder.
    • getDestinationSkipAxes

      public VectorBool getDestinationSkipAxes()
      std::vector<bool> itk::simple::PasteImageFilter::GetDestinationSkipAxes() const Set/Get the array describing which axes in the destination image to skip The axes with true values are set to 1, to fill the difference between the dimension of the input and source image. The number of true values in DestinationSkipAxes plus the DestinationImageDimension must equal the InputImageDimension. By default this array contains SourceImageDimension false values followed by true values for the remainder.
    • getName

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

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

      public Image execute(Image destinationImage, Image sourceImage)
      Image itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant)
    • execute

      public Image execute(Image destinationImage, double constant)
      Image itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant)