ITK  4.13.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
itk::GaussianDerivativeImageFunction< TInputImage, TOutput > Class Template Reference

#include <itkGaussianDerivativeImageFunction.h>

+ Inheritance diagram for itk::GaussianDerivativeImageFunction< TInputImage, TOutput >:
+ Collaboration diagram for itk::GaussianDerivativeImageFunction< TInputImage, TOutput >:

Detailed Description

template<typename TInputImage, typename TOutput = double>
class itk::GaussianDerivativeImageFunction< TInputImage, TOutput >

Compute the gaussian derivatives of an the image at a specific location in space, i.e. point, index or continuous index. This class is templated over the input image type.

See Also
NeighborhoodOperator
ImageFunction

Definition at line 38 of file itkGaussianDerivativeImageFunction.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef ContinuousIndex
< SpacePrecisionType,
itkGetStaticConstMacro(ImageDimension2) > 
ContinuousIndexType
 
typedef
GaussianDerivativeFunctionType::Pointer 
GaussianDerivativeFunctionPointer
 
typedef
GaussianDerivativeSpatialFunction
< TOutput, 1 > 
GaussianDerivativeFunctionType
 
typedef
GaussianFunctionType::Pointer 
GaussianFunctionPointer
 
typedef
GaussianSpatialFunction
< TOutput, 1 > 
GaussianFunctionType
 
typedef InputImageType::IndexType IndexType
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef Neighborhood
< InputPixelType,
itkGetStaticConstMacro(ImageDimension2) > 
NeighborhoodType
 
typedef FixedArray
< OperatorNeighborhoodType,
2 *itkGetStaticConstMacro(ImageDimension2) > 
OperatorArrayType
 
typedef
OperatorImageFunctionType::Pointer 
OperatorImageFunctionPointer
 
typedef
NeighborhoodOperatorImageFunction
< InputImageType, TOutput > 
OperatorImageFunctionType
 
typedef Neighborhood< TOutput,
itkGetStaticConstMacro(ImageDimension2) > 
OperatorNeighborhoodType
 
typedef Superclass::OutputType OutputType
 
typedef SmartPointer< SelfPointer
 
typedef InputImageType::PointType PointType
 
typedef
GaussianDerivativeImageFunction 
Self
 
typedef ImageFunction
< TInputImage, Vector< TOutput,
TInputImage::ImageDimension >
, TOutput > 
Superclass
 
typedef Vector< TOutput,
itkGetStaticConstMacro(ImageDimension2) > 
VectorType
 
- Public Types inherited from itk::ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput >
typedef SmartPointer< const SelfConstPointer
 
typedef ContinuousIndex
< TOutput,
itkGetStaticConstMacro(ImageDimension) > 
ContinuousIndexType
 
typedef TOutput CoordRepType
 
typedef InputImageType::IndexType IndexType
 
typedef
InputImageType::IndexValueType 
IndexValueType
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef Vector< TOutput,
TInputImage::ImageDimension > 
OutputType
 
typedef SmartPointer< SelfPointer
 
typedef Point< TOutput,
itkGetStaticConstMacro(ImageDimension) > 
PointType
 
typedef ImageFunction Self
 
typedef FunctionBase< Point
< TOutput,
itkGetStaticConstMacro(ImageDimension) >
, Vector< TOutput,
TInputImage::ImageDimension > > 
Superclass
 
- Public Types inherited from itk::FunctionBase< Point< TOutput, TInputImage::ImageDimension >, Vector< TOutput, TInputImage::ImageDimension > >
typedef SmartPointer< const SelfConstPointer
 
typedef Point< TOutput,
TInputImage::ImageDimension > 
InputType
 
typedef Vector< TOutput,
TInputImage::ImageDimension > 
OutputType
 
typedef SmartPointer< SelfPointer
 
typedef FunctionBase Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual OutputType Evaluate (const PointType &point) const override
 
virtual OutputType EvaluateAtContinuousIndex (const ContinuousIndexType &index) const override
 
virtual OutputType EvaluateAtIndex (const IndexType &index) const override
 
const double * GetExtent () const
 
virtual const char * GetNameOfClass () const
 
const double * GetSigma () const
 
void SetExtent (const double *extent)
 
void SetExtent (const double extent)
 
virtual void SetInputImage (const InputImageType *ptr) override
 
void SetSigma (const double *sigma)
 
void SetSigma (const double sigma)
 
- Public Member Functions inherited from itk::ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput >
void ConvertContinuousIndexToNearestIndex (const ContinuousIndexType &cindex, IndexType &index) const
 
void ConvertPointToContinuousIndex (const PointType &point, ContinuousIndexType &cindex) const
 
void ConvertPointToNearestIndex (const PointType &point, IndexType &index) const
 
virtual Vector< TOutput,
TInputImage::ImageDimension > 
Evaluate (const PointType &point) const override=0
 
virtual Vector< TOutput,
TInputImage::ImageDimension > 
EvaluateAtContinuousIndex (const ContinuousIndexType &index) const =0
 
virtual const ContinuousIndexTypeGetEndContinuousIndex () const
 
virtual const IndexTypeGetEndIndex () const
 
const InputImageTypeGetInputImage () const
 
virtual const ContinuousIndexTypeGetStartContinuousIndex () const
 
virtual const IndexTypeGetStartIndex () const
 
virtual bool IsInsideBuffer (const IndexType &index) const
 
virtual bool IsInsideBuffer (const ContinuousIndexType &index) const
 
virtual bool IsInsideBuffer (const PointType &point) const
 
- Public Member Functions inherited from itk::FunctionBase< Point< TOutput, TInputImage::ImageDimension >, Vector< TOutput, TInputImage::ImageDimension > >
virtual OutputType Evaluate (const InputType &input) const =0
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension2 = InputImageType::ImageDimension
 
- Static Public Attributes inherited from itk::ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput >
static const unsigned int ImageDimension
 

Protected Member Functions

 GaussianDerivativeImageFunction ()
 
 GaussianDerivativeImageFunction (const Self &)
 
void operator= (const Self &)
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void RecomputeContinuousGaussianKernel (const double *offset) const
 
void RecomputeGaussianKernel ()
 
 ~GaussianDerivativeImageFunction () override
 
- Protected Member Functions inherited from itk::ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput >
 ImageFunction ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~ImageFunction () override
 
- Protected Member Functions inherited from itk::FunctionBase< Point< TOutput, TInputImage::ImageDimension >, Vector< TOutput, TInputImage::ImageDimension > >
 FunctionBase ()
 
 ~FunctionBase () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

OperatorArrayType m_ContinuousOperatorArray
 
double m_Extent [ImageDimension2]
 
GaussianDerivativeFunctionPointer m_GaussianDerivativeFunction
 
GaussianFunctionPointer m_GaussianFunction
 
OperatorArrayType m_OperatorArray
 
OperatorImageFunctionPointer m_OperatorImageFunction
 
double m_Sigma [ImageDimension2]
 
bool m_UseImageSpacing
 

Additional Inherited Members

- Protected Attributes inherited from itk::ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput >
ContinuousIndexType m_EndContinuousIndex
 
IndexType m_EndIndex
 
InputImageConstPointer m_Image
 
ContinuousIndexType m_StartContinuousIndex
 
IndexType m_StartIndex
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TInputImage , typename TOutput = double>
typedef SmartPointer< const Self > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::ConstPointer

Definition at line 51 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef ContinuousIndex< SpacePrecisionType, itkGetStaticConstMacro(ImageDimension2) > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::ContinuousIndexType

Definition at line 69 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef GaussianDerivativeFunctionType::Pointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GaussianDerivativeFunctionPointer

Definition at line 82 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef GaussianDerivativeSpatialFunction< TOutput, 1 > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GaussianDerivativeFunctionType

Definition at line 81 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef GaussianFunctionType::Pointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GaussianFunctionPointer

Definition at line 85 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef GaussianSpatialFunction< TOutput, 1 > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GaussianFunctionType

Definition at line 84 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef InputImageType::IndexType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::IndexType

Definition at line 62 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef TInputImage itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::InputImageType

InputImageType typedef support.

Definition at line 57 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef InputImageType::PixelType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::InputPixelType

Definition at line 61 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef Neighborhood< InputPixelType, itkGetStaticConstMacro(ImageDimension2) > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::NeighborhoodType

Definition at line 71 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef FixedArray< OperatorNeighborhoodType, 2 * itkGetStaticConstMacro(ImageDimension2) > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::OperatorArrayType

Definition at line 76 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef OperatorImageFunctionType::Pointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::OperatorImageFunctionPointer

Definition at line 79 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef NeighborhoodOperatorImageFunction< InputImageType, TOutput > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::OperatorImageFunctionType

Definition at line 78 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef Neighborhood< TOutput, itkGetStaticConstMacro(ImageDimension2) > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::OperatorNeighborhoodType

Definition at line 72 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef Superclass::OutputType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::OutputType

Definition at line 75 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef SmartPointer< Self > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::Pointer

Definition at line 50 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef InputImageType::PointType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::PointType

Point typedef support.

Definition at line 89 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef GaussianDerivativeImageFunction itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::Self

Standard class typedefs.

Definition at line 46 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::Superclass

Definition at line 49 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
typedef Vector< TOutput, itkGetStaticConstMacro(ImageDimension2) > itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::VectorType

Definition at line 74 of file itkGaussianDerivativeImageFunction.h.

Constructor & Destructor Documentation

template<typename TInputImage , typename TOutput = double>
itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GaussianDerivativeImageFunction ( )
protected
template<typename TInputImage , typename TOutput = double>
itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GaussianDerivativeImageFunction ( const Self )
protected
template<typename TInputImage , typename TOutput = double>
itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::~GaussianDerivativeImageFunction ( )
inlineoverrideprotected

Definition at line 129 of file itkGaussianDerivativeImageFunction.h.

Member Function Documentation

template<typename TInputImage , typename TOutput = double>
virtual::itk::LightObject::Pointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::CreateAnother ( ) 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.

template<typename TInputImage , typename TOutput = double>
virtual OutputType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::Evaluate ( const PointType point) const
overridevirtual

Evaluate the function at the specifed point.

template<typename TInputImage , typename TOutput = double>
virtual OutputType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::EvaluateAtContinuousIndex ( const ContinuousIndexType index) const
overridevirtual

Evaluate the function at specified ContinuousIndex position.

template<typename TInputImage , typename TOutput = double>
virtual OutputType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::EvaluateAtIndex ( const IndexType index) const
overridevirtual
template<typename TInputImage , typename TOutput = double>
const double* itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GetExtent ( ) const
inline

Definition at line 117 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
virtual const char* itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput >.

template<typename TInputImage , typename TOutput = double>
const double* itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::GetSigma ( ) const
inline

Definition at line 110 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
static Pointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::operator= ( const Self )
protected
template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::Object.

template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::RecomputeContinuousGaussianKernel ( const double *  offset) const
protected

Recompute the Gaussian kernel used to evaluate indexes. The variance should be uniform.

template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::RecomputeGaussianKernel ( )
protected

Recompute the Gaussian kernel used to evaluate indexes. This should use a fastest Derivative Gaussian operator.

template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::SetExtent ( const double *  extent)

Set the extent of the discrete Gaussian kernel.

template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::SetExtent ( const double  extent)
template<typename TInputImage , typename TOutput = double>
virtual void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::SetInputImage ( const InputImageType ptr)
overridevirtual

Set the input image.

Warning
this method caches BufferedRegion information. If the BufferedRegion has changed, user must call SetInputImage again to update cached values.

Reimplemented from itk::ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput >.

template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::SetSigma ( const double *  sigma)

The variance for the discrete Gaussian kernel. Sets the variance independently for each dimension, but see also SetVariance(const double v). The default is 0.0 in each dimension. If UseImageSpacing is true, the units are the physical units of the image. If UseImageSpacing is false then the units are pixels.

template<typename TInputImage , typename TOutput = double>
void itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::SetSigma ( const double  sigma)

Member Data Documentation

template<typename TInputImage , typename TOutput = double>
const unsigned int itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::ImageDimension2 = InputImageType::ImageDimension
static

Dimension of the underlying image.

Definition at line 66 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
OperatorArrayType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_ContinuousOperatorArray
mutableprivate

Definition at line 151 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
double itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_Extent[ImageDimension2]
private

Definition at line 155 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
GaussianDerivativeFunctionPointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_GaussianDerivativeFunction
private
template<typename TInputImage , typename TOutput = double>
GaussianFunctionPointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_GaussianFunction
private

Definition at line 162 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
OperatorArrayType itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_OperatorArray
mutableprivate

Array of 1D operators. Contains a derivative kernel and a gaussian kernel for each dimension.

Definition at line 150 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
OperatorImageFunctionPointer itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_OperatorImageFunction
private

OperatorImageFunction

Definition at line 154 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
double itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_Sigma[ImageDimension2]
private

Definition at line 146 of file itkGaussianDerivativeImageFunction.h.

template<typename TInputImage , typename TOutput = double>
bool itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::m_UseImageSpacing
private

Flag to indicate whether to use image spacing.

Definition at line 158 of file itkGaussianDerivativeImageFunction.h.


The documentation for this class was generated from the following file: