ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkCentralDifferenceImageFunction.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::ContinuousIndexType | ContinuousIndexType |
typedef Superclass::IndexType | IndexType |
typedef TInputImage | InputImageType |
typedef InterpolatorType::Pointer | InterpolatorPointer |
typedef InterpolateImageFunction < TInputImage, TCoordRep > | InterpolatorType |
typedef Superclass::OutputType | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::PointType | PointType |
typedef CentralDifferenceImageFunction | Self |
typedef TInputImage::SpacingType | SpacingType |
typedef ImageFunction < TInputImage, CovariantVector < double, itkGetStaticConstMacro(ImageDimension) > , TCoordRep > | Superclass |
Public Types inherited from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep > | |
typedef TCoordRep | CoordRepType |
typedef InputImageType::IndexValueType | IndexValueType |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputPixelType |
Public Types inherited from itk::FunctionBase< Point< TCoordRep, TInputImage::ImageDimension >, CovariantVector< double, TInputImage::ImageDimension > > | |
typedef Point< TCoordRep, TInputImage::ImageDimension > | InputType |
Public Types inherited from itk::Object | |
Public Types inherited from itk::LightObject |
Static Public Member Functions | |
static Pointer | New () |
Private Member Functions | |
CentralDifferenceImageFunction (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
InterpolatorPointer | m_Interpolator |
bool | m_UseImageDirection |
virtual void | SetUseImageDirection (bool _arg) |
virtual bool | GetUseImageDirection () const |
virtual void | UseImageDirectionOn () |
virtual void | UseImageDirectionOff () |
CentralDifferenceImageFunction () | |
~CentralDifferenceImageFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
Additional Inherited Members | |
Protected Attributes inherited from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep > | |
ContinuousIndexType | m_EndContinuousIndex |
IndexType | m_EndIndex |
InputImageConstPointer | m_Image |
ContinuousIndexType | m_StartContinuousIndex |
IndexType | m_StartIndex |
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.
|
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.
|
inlineprotected |
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 162 of file itkCentralDifferenceImageFunction.h.
|
private |
|
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 |
Evalulate the image derivative by central differencing at non-integer point.
The point is assumed to lie within the image buffer. If not, 0 is returned for the derivative without any error return, because of bounds-checking performed on the neighboring points.
If point
lies on a boundary in a given dimension, 0 is returned for that dimension. Note that points are centered on the voxel.
ImageFunction::IsInsideBuffer() can be used to check bounds before calling the method.
|
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 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 |
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 |
Get the interpolator.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
|
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 |
Method for creation through the object factory.
Reimplemented from itk::Object.
|
private |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
|
protectedvirtual |
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 |
Set the input image. This must be set by the user.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
|
virtual |
Set interpolator. The interpolator is used in the methods Evaluate
and EvaluateAtContinuousIndex
.
|
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 |
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 |
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 |
Dimension underlying input image.
Reimplemented from itk::ImageFunction< TInputImage, CovariantVector< double, TInputImage::ImageDimension >, TCoordRep >.
Definition at line 53 of file itkCentralDifferenceImageFunction.h.
|
private |
Definition at line 175 of file itkCentralDifferenceImageFunction.h.
|
private |
Definition at line 172 of file itkCentralDifferenceImageFunction.h.