Package org.itk.simple
Class GridImageSource
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.GridImageSource
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
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::GridImageSource::GridImageSource() Default Constructor that takes no arguments and initializes default parametersprotected
GridImageSource
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::GridImageSource::~GridImageSource() Destructorexecute()
Image itk::simple::GridImageSource::Execute() Execute the filter on the input imageprotected void
finalize()
protected static long
getCPtr
(GridImageSource obj) std::vector<double> itk::simple::GridImageSource::GetDirection() conststd::vector<double> itk::simple::GridImageSource::GetGridOffset() const Set/Get the grid offset.std::vector<double> itk::simple::GridImageSource::GetGridSpacing() const Set/Get the grid spacing of the peaks.getName()
std::string itk::simple::GridImageSource::GetName() const Name of this classstd::vector<double> itk::simple::GridImageSource::GetOrigin() constPixelIDValueEnum itk::simple::GridImageSource::GetOutputPixelType() constdouble
getScale()
double itk::simple::GridImageSource::GetScale() const Set/Get the scale factor to multiply the true value of the grid.getSigma()
std::vector<double> itk::simple::GridImageSource::GetSigma() const Set/Get the standard deviation of the Gaussians or width of the box functions.getSize()
std::vector<unsigned int> itk::simple::GridImageSource::GetSize() conststd::vector<double> itk::simple::GridImageSource::GetSpacing() conststd::vector<bool> itk::simple::GridImageSource::GetWhichDimensions() const Set/Get the dimensions which are gridded.void
setDirection
(VectorDouble Direction) Self& itk::simple::GridImageSource::SetDirection(std::vector< double > Direction)void
setGridOffset
(VectorDouble GridOffset) Self& itk::simple::GridImageSource::SetGridOffset(std::vector< double > GridOffset) Set/Get the grid offset.void
setGridSpacing
(VectorDouble GridSpacing) Self& itk::simple::GridImageSource::SetGridSpacing(std::vector< double > GridSpacing) Set/Get the grid spacing of the peaks.void
setOrigin
(VectorDouble Origin) Self& itk::simple::GridImageSource::SetOrigin(std::vector< double > Origin)void
setOutputPixelType
(PixelIDValueEnum OutputPixelType) Self& itk::simple::GridImageSource::SetOutputPixelType(PixelIDValueEnum OutputPixelType)void
setScale
(double Scale) Self& itk::simple::GridImageSource::SetScale(double Scale) Set/Get the scale factor to multiply the true value of the grid.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.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.void
setSize
(VectorUInt32 Size) Self& itk::simple::GridImageSource::SetSize(std::vector< unsigned int > Size)void
setSpacing
(VectorDouble Spacing) Self& itk::simple::GridImageSource::SetSpacing(std::vector< double > Spacing)void
setWhichDimensions
(VectorBool WhichDimensions) Self& itk::simple::GridImageSource::SetWhichDimensions(std::vector< bool > WhichDimensions) Set/Get the dimensions which are gridded.protected static long
toString()
std::string itk::simple::GridImageSource::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
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
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::GridImageSource::~GridImageSource() Destructor- Overrides:
delete
in classImageFilter
-
setOutputPixelType
Self& itk::simple::GridImageSource::SetOutputPixelType(PixelIDValueEnum OutputPixelType) -
getOutputPixelType
PixelIDValueEnum itk::simple::GridImageSource::GetOutputPixelType() const -
setSize
Self& itk::simple::GridImageSource::SetSize(std::vector< unsigned int > Size) -
getSize
std::vector<unsigned int> itk::simple::GridImageSource::GetSize() const -
setSigma
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
std::vector<double> itk::simple::GridImageSource::GetSigma() const Set/Get the standard deviation of the Gaussians or width of the box functions. -
setGridSpacing
Self& itk::simple::GridImageSource::SetGridSpacing(std::vector< double > GridSpacing) Set/Get the grid spacing of the peaks. -
getGridSpacing
std::vector<double> itk::simple::GridImageSource::GetGridSpacing() const Set/Get the grid spacing of the peaks. -
setGridOffset
Self& itk::simple::GridImageSource::SetGridOffset(std::vector< double > GridOffset) Set/Get the grid offset. -
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
Self& itk::simple::GridImageSource::SetOrigin(std::vector< double > Origin) -
getOrigin
std::vector<double> itk::simple::GridImageSource::GetOrigin() const -
setSpacing
Self& itk::simple::GridImageSource::SetSpacing(std::vector< double > Spacing) -
getSpacing
std::vector<double> itk::simple::GridImageSource::GetSpacing() const -
setDirection
Self& itk::simple::GridImageSource::SetDirection(std::vector< double > Direction) -
getDirection
std::vector<double> itk::simple::GridImageSource::GetDirection() const -
setWhichDimensions
Self& itk::simple::GridImageSource::SetWhichDimensions(std::vector< bool > WhichDimensions) Set/Get the dimensions which are gridded. -
getWhichDimensions
std::vector<bool> itk::simple::GridImageSource::GetWhichDimensions() const Set/Get the dimensions which are gridded. -
getName
std::string itk::simple::GridImageSource::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::GridImageSource::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::GridImageSource::Execute() Execute the filter on the input image
-