#include <itkImageFunction.h>
Inheritance diagram for itk::ImageFunction:
Public Types | |
typedef ImageFunction | Self |
typedef FunctionBase< Point< TCoordRep, itkGetStaticConstMacro(ImageDimension)>, TOutput | Superclass ) |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage | InputImageType |
typedef InputImageType::PixelType | InputPixelType |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef TOutput | OutputType |
typedef TCoordRep | CoordRepType |
typedef InputImageType::IndexType | IndexType |
typedef ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) | ContinuousIndexType ) |
typedef Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) | PointType ) |
Public Methods | |
itkStaticConstMacro (ImageDimension, unsigned int, TInputImage::ImageDimension) | |
virtual const char * | GetClassName () const |
virtual void | SetInputImage (const InputImageType *ptr) |
const InputImageType * | GetInputImage () const |
virtual TOutput | Evaluate (const PointType &point) const=0 |
virtual TOutput | EvaluateAtIndex (const IndexType &index) const=0 |
virtual TOutput | EvaluateAtContinuousIndex (const ContinuousIndexType &index) const=0 |
bool | IsInsideBuffer (const IndexType &index) const |
bool | IsInsideBuffer (const ContinuousIndexType &index) const |
bool | IsInsideBuffer (const PointType &point) const |
void | ConvertPointToContinuousIndex (const PointType &point, ContinuousIndexType &index) const |
void | ConvertContinuousIndexToPoint (const ContinuousIndexType &index, PointType &point) const |
void | ConvertIndexToPoint (const IndexType &index, PointType &point) const |
void | ConvertPointToNearestIndex (const PointType &point, IndexType &index) const |
void | ConvertContinuousIndexToNearestIndex (const ContinuousIndexType &cindex, IndexType &index) const |
Protected Methods | |
ImageFunction () | |
~ImageFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
InputImageConstPointer | m_Image |
const double * | m_Origin |
const double * | m_Spacing |
PointType | m_GeometricStart |
PointType | m_GeometricEnd |
IndexType | m_BufferStart |
IndexType | m_BufferEnd |
ImageFunction is a baseclass for all objects that evaluates a function of an image at index, continuous index or point. This class is templated over the input image type, the type of the function output and the coordinate representation type (e.g. float or double).
The input image is set via method SetInputImage(). Methods Evaluate, EvaluateAtIndex and EvaluateAtContinuousIndex respectively evaluates the function at an geometric point, image index and continuous image index.
Definition at line 60 of file itkImageFunction.h.
|
|
|
CoordRepType typedef support. Reimplemented in itk::VectorInterpolateImageFunction< TInputImage, TCoordRep, TPixelType >, and itk::VectorInterpolateImageFunction< TInputImage, TCoordRep >. Definition at line 94 of file itkImageFunction.h. |
|
|
InputImagePointer typedef support Reimplemented in itk::EntropyPreservingGradientMagnitudeImageFunction< TInputImage, TCoordRep >. Definition at line 88 of file itkImageFunction.h. |
|
|
InputPixel typedef support Reimplemented in itk::MedianImageFunction< TInputImage, TCoordRep >. Definition at line 85 of file itkImageFunction.h. |
|
|
|
|
|
|
|
|
Definition at line 164 of file itkImageFunction.h. |
|
|
|
|
|
|
|
Point/Index/ContinuousIndex conversion functions.
|
|
|
|
|
|
|
|
Get the input image. Definition at line 113 of file itkImageFunction.h. |
|
Check if a point is inside the image buffer.
|
|
Check if a continuous index is inside the image buffer.
|
|
Check if an index is inside the image buffer.
|
|
Dimension underlying input image. Reimplemented in itk::VectorInterpolateImageFunction< TInputImage, TCoordRep, TPixelType >, and itk::VectorInterpolateImageFunction< TInputImage, TCoordRep >. |
|
|
Set the input image.
Reimplemented in itk::EntropyPreservingGradientMagnitudeImageFunction< TInputImage, TCoordRep >, itk::LevelSetCurvatureFunction< TInputImage, TCoordRep >, and itk::UpwindDerivativeImageFunction< TInputImage, TCoordRep >. |
|
Definition at line 176 of file itkImageFunction.h. |
|
Definition at line 175 of file itkImageFunction.h. |
|
Definition at line 174 of file itkImageFunction.h. |
|
Definition at line 173 of file itkImageFunction.h. |
|
Const pointer to the input image. Definition at line 168 of file itkImageFunction.h. |
|
Cache some image information Definition at line 171 of file itkImageFunction.h. |
|
Definition at line 172 of file itkImageFunction.h. |