ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkCentralDifferenceImageFunction.h>
Calculate the derivative by central differencing.
This class is templated over the input image type and the coordinate representation type (e.g. float or double).
Possible improvements:
Definition at line 43 of file itkCentralDifferenceImageFunction.h.
typedef SmartPointer< const Self > itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::ConstPointer |
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 62 of file itkCentralDifferenceImageFunction.h.
typedef Superclass::ContinuousIndexType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::ContinuousIndexType |
ContinuousIndex typedef support.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 80 of file itkCentralDifferenceImageFunction.h.
typedef Superclass::IndexType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::IndexType |
Index typedef support.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 77 of file itkCentralDifferenceImageFunction.h.
typedef TInputImage itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::InputImageType |
InputImageType typedef support.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 68 of file itkCentralDifferenceImageFunction.h.
typedef InterpolatorType::Pointer itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::InterpolatorPointer |
Definition at line 90 of file itkCentralDifferenceImageFunction.h.
typedef InterpolateImageFunction< TInputImage, TCoordRep > itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::InterpolatorType |
Interpolator typedef support.
Definition at line 89 of file itkCentralDifferenceImageFunction.h.
typedef Superclass::OutputType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::OutputType |
OutputType typdef support.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 74 of file itkCentralDifferenceImageFunction.h.
typedef SmartPointer< Self > itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::Pointer |
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 61 of file itkCentralDifferenceImageFunction.h.
typedef Superclass::PointType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::PointType |
Point typedef support.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 83 of file itkCentralDifferenceImageFunction.h.
typedef CentralDifferenceImageFunction itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::Self |
Standard class typedefs.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 56 of file itkCentralDifferenceImageFunction.h.
typedef TInputImage::SpacingType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::SpacingType |
Spacing typedef support.
Definition at line 86 of file itkCentralDifferenceImageFunction.h.
typedef ImageFunction< TInputImage, CovariantVector< double, itkGetStaticConstMacro(ImageDimension) >, TCoordRep > itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::Superclass |
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 60 of file itkCentralDifferenceImageFunction.h.
itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::CentralDifferenceImageFunction | ( | ) | [protected] |
The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. For EvaluateAtIndex
and EvaluateAtContinuousIndex
, the flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. For Evaluate
, the opposite is true: the flag OFF will ignore the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is ON. The default value of this flag is On.
itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::~CentralDifferenceImageFunction | ( | ) | [inline, protected] |
The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. For EvaluateAtIndex
and EvaluateAtContinuousIndex
, the flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. For Evaluate
, the opposite is true: the flag OFF will ignore the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is ON. The default value of this flag is On.
Definition at line 163 of file itkCentralDifferenceImageFunction.h.
itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::CentralDifferenceImageFunction | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
virtual OutputType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::Evaluate | ( | const PointType & | point | ) | const [virtual] |
Evalulate the image derivative by central differencing at non-integer point.
No bounds checking is done. The point is assumed to lie within the image buffer. If not, 0 is returned for the derivative without any error return.
If point
lies on a boundary in a given dimension, 0 is returned for that dimension.
ImageFunction::IsInsideBuffer() can be used to check bounds before calling the method.
virtual OutputType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::EvaluateAtContinuousIndex | ( | const ContinuousIndexType & | cindex | ) | const [virtual] |
Evalulate the image derivative by central differencing at non-integer index.
No bounds checking is done. The point is assume to lie within the image buffer. If not, 0 is returned for the derivative without any error return.
If cindex
lies on a boundary in a given dimension, 0 is returned for that dimension.
ImageFunction::IsInsideBuffer() can be used to check bounds before calling the method.
virtual OutputType itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::EvaluateAtIndex | ( | const IndexType & | index | ) | const [virtual] |
Evalulate the image derivative by central differencing at specified index.
No bounds checking is done. The point is assume to lie within the image buffer. If not, 0 is returned for the derivative without any error return.
If index
lies on a boundary in a given dimension, 0 is returned for that dimension.
ImageFunction::IsInsideBuffer() can be used to check bounds before calling the method.
virtual const InterpolatorType* itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::GetInterpolator | ( | ) | [virtual] |
Get the interpolator.
virtual const char* itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
virtual bool itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::GetUseImageDirection | ( | ) | const [virtual] |
The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. For EvaluateAtIndex
and EvaluateAtContinuousIndex
, the flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. For Evaluate
, the opposite is true: the flag OFF will ignore the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is ON. The default value of this flag is On.
static Pointer itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::operator= | ( | const Self & | ) | [private] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
void itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. For EvaluateAtIndex
and EvaluateAtContinuousIndex
, the flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. For Evaluate
, the opposite is true: the flag OFF will ignore the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is ON. The default value of this flag is On.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
virtual void itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::SetInputImage | ( | const TInputImage * | inputData | ) | [virtual] |
Set the input image. This must be set by the user.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
virtual void itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::SetInterpolator | ( | InterpolatorType * | interpolator | ) | [virtual] |
Set interpolator. The interpolator is used in the methods Evaluate
and EvaluateAtContinuousIndex
.
virtual void itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::SetUseImageDirection | ( | bool | _arg | ) | [virtual] |
The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. For EvaluateAtIndex
and EvaluateAtContinuousIndex
, the flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. For Evaluate
, the opposite is true: the flag OFF will ignore the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is ON. The default value of this flag is On.
virtual void itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::UseImageDirectionOff | ( | ) | [virtual] |
The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. For EvaluateAtIndex
and EvaluateAtContinuousIndex
, the flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. For Evaluate
, the opposite is true: the flag OFF will ignore the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is ON. The default value of this flag is On.
virtual void itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::UseImageDirectionOn | ( | ) | [virtual] |
The UseImageDirection flag determines whether image derivatives are computed with respect to the image grid or with respect to the physical space. When this flag is ON the derivatives are computed with respect to the coordinate system of physical space. The difference is whether we take into account the image Direction or not. For EvaluateAtIndex
and EvaluateAtContinuousIndex
, the flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. For Evaluate
, the opposite is true: the flag OFF will ignore the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is ON. The default value of this flag is On.
const unsigned int itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::ImageDimension = TInputImage::ImageDimension [static] |
Dimension underlying input image.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 53 of file itkCentralDifferenceImageFunction.h.
InterpolatorPointer itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::m_Interpolator [private] |
Definition at line 176 of file itkCentralDifferenceImageFunction.h.
bool itk::CentralDifferenceImageFunction< TInputImage, TCoordRep >::m_UseImageDirection [private] |
Definition at line 173 of file itkCentralDifferenceImageFunction.h.