ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkGradientImageFilter.h>
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 49 of file itkGradientImageFilter.h.
typedef SmartPointer< const Self > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::ConstPointer |
typedef InputImageType::Pointer itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::InputImagePointer |
Convenient typedefs for simplifying declarations.
Definition at line 68 of file itkGradientImageFilter.h.
typedef TInputImage itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::InputImageType |
Convenient typedefs for simplifying declarations.
Definition at line 67 of file itkGradientImageFilter.h.
typedef InputImageType::PixelType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::InputPixelType |
Image typedef support.
Definition at line 85 of file itkGradientImageFilter.h.
typedef TOperatorValueType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::OperatorValueType |
Definition at line 89 of file itkGradientImageFilter.h.
typedef OutputImageType::Pointer itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::OutputImagePointer |
Convenient typedefs for simplifying declarations.
Reimplemented from itk::ImageSource< Image< CovariantVector< TOutputValueType,::itk::GetImageDimension< TInputImage >::ImageDimension >,::itk::GetImageDimension< TInputImage >::ImageDimension > >.
Definition at line 73 of file itkGradientImageFilter.h.
typedef OutputImageType::RegionType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::OutputImageRegionType |
Superclass typedefs.
Definition at line 94 of file itkGradientImageFilter.h.
typedef Image< CovariantVector< TOutputValueType, itkGetStaticConstMacro(OutputImageDimension) >, itkGetStaticConstMacro(OutputImageDimension) > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::OutputImageType |
Convenient typedefs for simplifying declarations.
Reimplemented from itk::ImageSource< Image< CovariantVector< TOutputValueType,::itk::GetImageDimension< TInputImage >::ImageDimension >,::itk::GetImageDimension< TInputImage >::ImageDimension > >.
Definition at line 72 of file itkGradientImageFilter.h.
typedef CovariantVector< OutputValueType, itkGetStaticConstMacro(OutputImageDimension) > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::OutputPixelType |
Definition at line 93 of file itkGradientImageFilter.h.
typedef TOutputValueType itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::OutputValueType |
Definition at line 90 of file itkGradientImageFilter.h.
typedef SmartPointer< Self > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::Pointer |
typedef GradientImageFilter itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::Self |
Standard class typedefs.
Definition at line 64 of file itkGradientImageFilter.h.
typedef ImageToImageFilter< InputImageType, OutputImageType > itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::Superclass |
Standard class typedefs.
Definition at line 77 of file itkGradientImageFilter.h.
itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::GradientImageFilter | ( | ) | [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.
virtual itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::~GradientImageFilter | ( | ) | [protected, 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.
itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::GradientImageFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::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 void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::GenerateInputRequestedRegion | ( | ) | throw ( InvalidRequestedRegionError ) [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.
virtual const char* itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
virtual bool itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::GetUseImageDirection | ( | ) | const [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 bool itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::GetUseImageSpacing | ( | ) | const [virtual] |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
static Pointer itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::operator= | ( | const Self & | ) | [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.
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, 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 void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::SetUseImageDirection | ( | bool | _arg | ) | [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 void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::SetUseImageSpacing | ( | bool | _arg | ) | [virtual] |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::SetUseImageSpacingOff | ( | ) | [inline] |
Ignore the image spacing. Use this option if you want derivatives in isotropic pixel space. Default is UseImageSpacingOn.
Definition at line 112 of file itkGradientImageFilter.h.
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::SetUseImageSpacingOn | ( | ) | [inline] |
Use the image spacing information in calculations. Use this option if you want derivatives in physical space. Default is UseImageSpacingOn.
Definition at line 107 of file itkGradientImageFilter.h.
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::ThreadedGenerateData | ( | const OutputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected, virtual] |
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< Image< CovariantVector< TOutputValueType,::itk::GetImageDimension< TInputImage >::ImageDimension >,::itk::GetImageDimension< TInputImage >::ImageDimension > >.
itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::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 >::typedef | ( | Concept::HasNumericTraits< OutputValueType > | ) |
This class requires OutputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< OutputValueType > )
virtual void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::UseImageDirectionOff | ( | ) | [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 void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::UseImageDirectionOn | ( | ) | [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.
const unsigned int itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::InputImageDimension = TInputImage::ImageDimension [static] |
Extract dimension from input image.
Definition at line 58 of file itkGradientImageFilter.h.
bool itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::m_UseImageDirection [private] |
Definition at line 171 of file itkGradientImageFilter.h.
bool itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::m_UseImageSpacing [private] |
Definition at line 167 of file itkGradientImageFilter.h.
const unsigned int itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType >::OutputImageDimension = TInputImage::ImageDimension [static] |
Extract dimension from input image.
Definition at line 60 of file itkGradientImageFilter.h.