Class GridImageSource


public class GridImageSource extends ImageFilter
Generate an n-dimensional image of a grid. GridImageSource generates an image of a grid. From the abstract... "Certain classes of images find disparate use amongst members of the ITK community for such purposes as visualization, simulation, testing, etc. Currently there exists two derived classes from the ImageSource class used for generating specific images for various applications, viz. RandomImageSource and GaussianImageSource. We propose to add to this set with the class GridImageSource which, obviously enough, produces a grid image. Such images are useful for visualizing deformation when used in conjunction with the WarpImageFilter, simulating magnetic resonance tagging images, or creating optical illusions with which to amaze your friends." The output image may be of any dimension. Tustison N., Avants B., Gee J. University of Pennsylvania This implementation was taken from the Insight Journal paper: https://www.insight-journal.org/browse/publication/140 See: itk::simple::GridSource for the procedural interface itk::GridImageSource for the Doxygen on the original ITK class. C++ includes: sitkGridImageSource.h
  • Constructor Details

    • GridImageSource

      protected GridImageSource(long cPtr, boolean cMemoryOwn)
    • GridImageSource

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

    • getCPtr

      protected static long getCPtr(GridImageSource obj)
    • swigRelease

      protected static long swigRelease(GridImageSource obj)
    • finalize

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

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

      public void setOutputPixelType(PixelIDValueEnum OutputPixelType)
      Self& itk::simple::GridImageSource::SetOutputPixelType(PixelIDValueEnum OutputPixelType)
    • getOutputPixelType

      public PixelIDValueEnum getOutputPixelType()
      PixelIDValueEnum itk::simple::GridImageSource::GetOutputPixelType() const
    • setSize

      public void setSize(VectorUInt32 Size)
      Self& itk::simple::GridImageSource::SetSize(std::vector< unsigned int > Size)
    • getSize

      public VectorUInt32 getSize()
      std::vector<unsigned int> itk::simple::GridImageSource::GetSize() const
    • setSigma

      public void setSigma(VectorDouble Sigma)
      Self& itk::simple::GridImageSource::SetSigma(std::vector< double > Sigma) Set/Get the standard deviation of the Gaussians or width of the box functions.
    • setSigma

      public void setSigma(double value)
      Self& itk::simple::GridImageSource::SetSigma(std::vector< double > Sigma) Set/Get the standard deviation of the Gaussians or width of the box functions.
    • getSigma

      public VectorDouble getSigma()
      std::vector<double> itk::simple::GridImageSource::GetSigma() const Set/Get the standard deviation of the Gaussians or width of the box functions.
    • setGridSpacing

      public void setGridSpacing(VectorDouble GridSpacing)
      Self& itk::simple::GridImageSource::SetGridSpacing(std::vector< double > GridSpacing) Set/Get the grid spacing of the peaks.
    • getGridSpacing

      public VectorDouble getGridSpacing()
      std::vector<double> itk::simple::GridImageSource::GetGridSpacing() const Set/Get the grid spacing of the peaks.
    • setGridOffset

      public void setGridOffset(VectorDouble GridOffset)
      Self& itk::simple::GridImageSource::SetGridOffset(std::vector< double > GridOffset) Set/Get the grid offset.
    • getGridOffset

      public VectorDouble getGridOffset()
      std::vector<double> itk::simple::GridImageSource::GetGridOffset() const Set/Get the grid offset.
    • setScale

      public void setScale(double Scale)
      Self& itk::simple::GridImageSource::SetScale(double Scale) Set/Get the scale factor to multiply the true value of the grid.
    • getScale

      public double getScale()
      double itk::simple::GridImageSource::GetScale() const Set/Get the scale factor to multiply the true value of the grid.
    • setOrigin

      public void setOrigin(VectorDouble Origin)
      Self& itk::simple::GridImageSource::SetOrigin(std::vector< double > Origin)
    • getOrigin

      public VectorDouble getOrigin()
      std::vector<double> itk::simple::GridImageSource::GetOrigin() const
    • setSpacing

      public void setSpacing(VectorDouble Spacing)
      Self& itk::simple::GridImageSource::SetSpacing(std::vector< double > Spacing)
    • getSpacing

      public VectorDouble getSpacing()
      std::vector<double> itk::simple::GridImageSource::GetSpacing() const
    • setDirection

      public void setDirection(VectorDouble Direction)
      Self& itk::simple::GridImageSource::SetDirection(std::vector< double > Direction)
    • getDirection

      public VectorDouble getDirection()
      std::vector<double> itk::simple::GridImageSource::GetDirection() const
    • setWhichDimensions

      public void setWhichDimensions(VectorBool WhichDimensions)
      Self& itk::simple::GridImageSource::SetWhichDimensions(std::vector< bool > WhichDimensions) Set/Get the dimensions which are gridded.
    • getWhichDimensions

      public VectorBool getWhichDimensions()
      std::vector<bool> itk::simple::GridImageSource::GetWhichDimensions() const Set/Get the dimensions which are gridded.
    • getName

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

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

      public Image execute()
      Image itk::simple::GridImageSource::Execute() Execute the filter on the input image