#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 | 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 |
IndexType | m_StartIndex |
IndexType | m_EndIndex |
ContinuousIndexType | m_StartContinuousIndex |
ContinuousIndexType | m_EndContinuousIndex |
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 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 190 of file itkImageFunction.h. |
|
Convert continuous index to nearest index. Definition at line 179 of file itkImageFunction.h. |
|
Convert point to nearest index. Definition at line 169 of file itkImageFunction.h. |
|
|
|
|
|
Get the input image. Definition at line 113 of file itkImageFunction.h. |
|
Check if a point is inside the image buffer.
Definition at line 160 of file itkImageFunction.h. |
|
Check if a continuous index is inside the image buffer.
Definition at line 146 of file itkImageFunction.h. |
|
Check if an index is inside the image buffer.
Definition at line 132 of file itkImageFunction.h. |
|
Dimension underlying input image. Reimplemented in itk::VectorInterpolateImageFunction< TInputImage, TCoordRep, TPixelType >, and itk::VectorInterpolateImageFunction< TInputImage, TCoordRep >. |
|
|
Set the input image.
|
|
Definition at line 200 of file itkImageFunction.h. |
|
Definition at line 198 of file itkImageFunction.h. |
|
Const pointer to the input image. Definition at line 194 of file itkImageFunction.h. |
|
Definition at line 199 of file itkImageFunction.h. |
|
Cache some values for testing if indices are inside buffered region. Definition at line 197 of file itkImageFunction.h. |