#include <itkImageFunction.h>
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 Member Functions | |
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 Member Functions | |
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. Definition at line 94 of file itkImageFunction.h. |
|
|
InputImagePointer typedef support Definition at line 88 of file itkImageFunction.h. |
|
InputImageType typedef support. Reimplemented in itk::BinaryThresholdImageFunction< TInputImage, TCoordRep >, itk::GaussianBlurImageFunction< TInputImage, TOutput >, itk::MahalanobisDistanceThresholdImageFunction< TInputImage, TCoordRep >, itk::NeighborhoodBinaryThresholdImageFunction< TInputImage, TCoordRep >, and itk::NeighborhoodOperatorImageFunction< TInputImage, TOutput >. Definition at line 82 of file itkImageFunction.h. |
|
InputPixel typedef support Reimplemented in itk::GaussianBlurImageFunction< TInputImage, TOutput >, and itk::NeighborhoodOperatorImageFunction< TInputImage, TOutput >. Definition at line 85 of file itkImageFunction.h. |
|
OutputType typedef support. Reimplemented in itk::NeighborhoodBinaryThresholdImageFunction< TInputImage, TCoordRep >. Definition at line 91 of file itkImageFunction.h. |
|
|
|
Standard class typedefs. Reimplemented in itk::BinaryThresholdImageFunction< TInputImage, TCoordRep >, itk::GaussianBlurImageFunction< TInputImage, TOutput >, itk::MahalanobisDistanceThresholdImageFunction< TInputImage, TCoordRep >, itk::NeighborhoodBinaryThresholdImageFunction< TInputImage, TCoordRep >, and itk::NeighborhoodOperatorImageFunction< TInputImage, TOutput >. Definition at line 71 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. |
|
Evaluate the function at specified Point position. Subclasses must provide this method. Implemented in itk::BinaryThresholdImageFunction< TInputImage, TCoordRep >, itk::GaussianBlurImageFunction< TInputImage, TOutput >, itk::MahalanobisDistanceThresholdImageFunction< TInputImage, TCoordRep >, itk::NeighborhoodBinaryThresholdImageFunction< TInputImage, TCoordRep >, and itk::NeighborhoodOperatorImageFunction< TInputImage, TOutput >.
|
|
Evaluate the function at specified ContinousIndex position. Subclasses must provide this method. Implemented in itk::BinaryThresholdImageFunction< TInputImage, TCoordRep >, itk::GaussianBlurImageFunction< TInputImage, TOutput >, itk::MahalanobisDistanceThresholdImageFunction< TInputImage, TCoordRep >, itk::NeighborhoodBinaryThresholdImageFunction< TInputImage, TCoordRep >, and itk::NeighborhoodOperatorImageFunction< TInputImage, TOutput >.
|
|
Evaluate the function at specified Index position. Subclasses must provide this method. Implemented in itk::BinaryThresholdImageFunction< TInputImage, TCoordRep >, itk::GaussianBlurImageFunction< TInputImage, TOutput >, itk::MahalanobisDistanceThresholdImageFunction< TInputImage, TCoordRep >, itk::NeighborhoodBinaryThresholdImageFunction< TInputImage, TCoordRep >, and itk::NeighborhoodOperatorImageFunction< TInputImage, TOutput >.
|
|
|
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. |
|
|
Set the input image.
Reimplemented in itk::GaussianBlurImageFunction< TInputImage, TOutput >.
|
|
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. |