ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkGradientImageFilter.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImageType > | |
Static Public Attributes inherited from itk::ImageSource< TOutputImageType > |
Private Member Functions | |
virtual void | GenerateOutputInformation () |
GradientImageFilter (const Self &) | |
void | operator= (const Self &) |
template<class TValueType > | |
void | SetOutputPixel (ImageRegionIterator< VectorImage< TValueType, OutputImageDimension > > &it, CovariantVectorType &gradient) |
template<class T > | |
void | SetOutputPixel (ImageRegionIterator< T > &it, CovariantVectorType &gradient) |
Private Attributes | |
bool | m_UseImageDirection |
bool | m_UseImageSpacing |
virtual void | SetUseImageDirection (bool _arg) |
virtual bool | GetUseImageDirection () const |
virtual void | UseImageDirectionOn () |
virtual void | UseImageDirectionOff () |
GradientImageFilter () | |
virtual | ~GradientImageFilter () |
void | PrintSelf (std::ostream &os, Indent indent) const |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImageType > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Computes the gradient of an image using directional derivatives.
Computes the gradient of an image using directional derivatives. The directional derivative at each pixel location is computed by convolution with a first-order derivative operator.
The second template parameter defines the value type used in the derivative operator (defaults to float). The third template parameter defines the value type used for output image (defaults to float). The output image is defined as a covariant vector image whose value type is specified as this third template parameter.
Definition at line 60 of file itkGradientImageFilter.h.
typedef SmartPointer< const Self > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::ConstPointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 83 of file itkGradientImageFilter.h.
typedef CovariantVector< OutputValueType, itkGetStaticConstMacro(OutputImageDimension) > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::CovariantVectorType |
Definition at line 98 of file itkGradientImageFilter.h.
typedef InputImageType::Pointer itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::InputImagePointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 76 of file itkGradientImageFilter.h.
typedef TInputImage itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::InputImageType |
Convenient typedefs for simplifying declarations.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 75 of file itkGradientImageFilter.h.
typedef InputImageType::PixelType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::InputPixelType |
Image typedef support.
Definition at line 89 of file itkGradientImageFilter.h.
typedef TOperatorValueType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::OperatorValueType |
Definition at line 93 of file itkGradientImageFilter.h.
typedef OutputImageType::Pointer itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::OutputImagePointer |
Reimplemented from itk::ImageSource< TOutputImageType >.
Definition at line 78 of file itkGradientImageFilter.h.
typedef OutputImageType::RegionType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::OutputImageRegionType |
Superclass typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 99 of file itkGradientImageFilter.h.
typedef TOutputImageType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::ImageSource< TOutputImageType >.
Definition at line 77 of file itkGradientImageFilter.h.
typedef OutputImageType::PixelType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::OutputPixelType |
Definition at line 95 of file itkGradientImageFilter.h.
typedef TOutputValueType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::OutputValueType |
Definition at line 94 of file itkGradientImageFilter.h.
typedef SmartPointer< Self > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::Pointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 82 of file itkGradientImageFilter.h.
typedef GradientImageFilter itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::Self |
Standard class typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 72 of file itkGradientImageFilter.h.
typedef ImageToImageFilter< InputImageType, OutputImageType > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::Superclass |
Standard class typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 81 of file itkGradientImageFilter.h.
|
protected |
End concept checking 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 coodinate system of physical space. The difference is whether we take into account the image Direction or not. 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. The default value of this flag is On.
|
protectedvirtual |
End concept checking 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 coodinate system of physical space. The difference is whether we take into account the image Direction or not. 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. The default value of this flag is On.
|
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 |
GradientImageFilter needs a larger input requested region than the output requested region. As such, GradientImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
|
privatevirtual |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
|
virtual |
End concept checking 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 coodinate system of physical space. The difference is whether we take into account the image Direction or not. 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. The default value of this flag is On.
|
virtual |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
|
static |
Method for creation through the object factory.
Reimplemented from itk::Object.
|
private |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
|
protectedvirtual |
End concept checking 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 coodinate system of physical space. The difference is whether we take into account the image Direction or not. 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. The default value of this flag is On.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
|
inlineprivate |
Definition at line 177 of file itkGradientImageFilter.h.
References itk::FixedArray< TValueType, VLength >::GetDataPointer().
|
inlineprivate |
Definition at line 192 of file itkGradientImageFilter.h.
References itk::ImageConstIterator< TImage >::GetImage(), and itk::ImageRegionIterator< TImage >::Value().
|
virtual |
End concept checking 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 coodinate system of physical space. The difference is whether we take into account the image Direction or not. 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. The default value of this flag is On.
|
virtual |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
|
inline |
Ignore the image spacing. Use this option if you want derivatives in isotropic pixel space. Default is UseImageSpacingOn.
Definition at line 117 of file itkGradientImageFilter.h.
|
inline |
Use the image spacing information in calculations. Use this option if you want derivatives in physical space. Default is UseImageSpacingOn.
Definition at line 112 of file itkGradientImageFilter.h.
|
protectedvirtual |
GradientImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImageType >.
itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::typedef | ( | Concept::Convertible< InputPixelType, OutputValueType > | ) |
Begin concept checking This class requires InputConvertibleToOutputCheck in the form of ( Concept::Convertible< InputPixelType, OutputValueType > )
itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::typedef | ( | Concept::HasNumericTraits< OutputValueType > | ) |
This class requires OutputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< OutputValueType > )
|
virtual |
End concept checking 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 coodinate system of physical space. The difference is whether we take into account the image Direction or not. 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. The default value of this flag is On.
|
virtual |
End concept checking 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 coodinate system of physical space. The difference is whether we take into account the image Direction or not. 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. The default value of this flag is On.
|
static |
Extract dimension from input image.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 66 of file itkGradientImageFilter.h.
|
private |
Definition at line 210 of file itkGradientImageFilter.h.
|
private |
Definition at line 206 of file itkGradientImageFilter.h.
|
static |
Extract dimension from input image.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImageType >.
Definition at line 68 of file itkGradientImageFilter.h.