template<class TInputImage, class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
class itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >
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.
- See Also
- Image
-
Neighborhood
-
NeighborhoodOperator
-
NeighborhoodIterator
Definition at line 60 of file itkGradientImageFilter.h.
|
| GradientImageFilter () |
|
void | PrintSelf (std::ostream &os, Indent indent) const |
|
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) |
|
virtual | ~GradientImageFilter () |
|
virtual void | CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion) |
|
virtual void | CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion) |
|
virtual void | VerifyInputInformation () |
|
void | PushBackInput (const DataObject *input) |
|
void | PushFrontInput (const DataObject *input) |
|
| ImageToImageFilter () |
|
| ~ImageToImageFilter () |
|
virtual void | AfterThreadedGenerateData () |
|
virtual void | AllocateOutputs () |
|
virtual void | BeforeThreadedGenerateData () |
|
virtual void | GenerateData () |
|
| ImageSource () |
|
virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) |
|
virtual | ~ImageSource () |
|
virtual void | AddInput (DataObject *input) |
|
virtual void | AddOutput (DataObject *output) |
|
bool | AddRequiredInputName (const DataObjectIdentifierType &) |
|
virtual void | CacheInputReleaseDataFlags () |
|
virtual void | GenerateOutputRequestedRegion (DataObject *output) |
|
virtual const
DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () |
|
bool | IsIndexedInputName (const DataObjectIdentifierType &) const |
|
bool | IsIndexedOutputName (const DataObjectIdentifierType &) const |
|
bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
|
| itkLegacyMacro (virtual void RemoveInput(DataObject *input)) |
|
| itkLegacyMacro (virtual void RemoveOutput(DataObject *output)) |
|
| itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num)) |
|
| itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num)) |
|
DataObjectPointerArraySizeType | MakeIndexFromInputName (const DataObjectIdentifierType &name) const |
|
DataObjectPointerArraySizeType | MakeIndexFromOutputName (const DataObjectIdentifierType &name) const |
|
DataObjectIdentifierType | MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const |
|
DataObjectIdentifierType | MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const |
|
| ProcessObject () |
|
virtual void | PropagateResetPipeline () |
|
virtual void | ReleaseInputs () |
|
virtual void | RemoveInput (const DataObjectIdentifierType &key) |
|
virtual void | RemoveInput (DataObjectPointerArraySizeType) |
|
virtual void | RemoveOutput (const DataObjectIdentifierType &key) |
|
virtual void | RemoveOutput (DataObjectPointerArraySizeType idx) |
|
bool | RemoveRequiredInputName (const DataObjectIdentifierType &) |
|
virtual void | RestoreInputReleaseDataFlags () |
|
virtual void | SetInput (const DataObjectIdentifierType &key, DataObject *input) |
|
virtual void | SetNthInput (DataObjectPointerArraySizeType num, DataObject *input) |
|
virtual void | SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output) |
|
void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
|
void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
|
virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
|
virtual void | SetOutput (const DataObjectIdentifierType &key, DataObject *output) |
|
virtual void | SetPrimaryInput (DataObject *input) |
|
virtual void | SetPrimaryOutput (DataObject *output) |
|
void | SetRequiredInputNames (const NameArray &) |
|
virtual void | VerifyPreconditions () |
|
| ~ProcessObject () |
|
DataObject * | GetInput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
|
DataObject * | GetInput (DataObjectPointerArraySizeType) |
|
const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
|
DataObject * | GetPrimaryInput () |
|
const DataObject * | GetPrimaryInput () const |
|
virtual void | SetPrimaryInputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryInputName () const |
|
DataObject * | GetOutput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
|
virtual void | SetPrimaryOutputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryOutputName () const |
|
DataObject * | GetOutput (DataObjectPointerArraySizeType idx) |
|
const DataObject * | GetOutput (DataObjectPointerArraySizeType idx) const |
|
DataObject * | GetPrimaryOutput () |
|
const DataObject * | GetPrimaryOutput () const |
|
virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
|
virtual const
DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () |
|
| Object () |
|
bool | PrintObservers (std::ostream &os, Indent indent) const |
|
virtual void | SetTimeStamp (const TimeStamp &time) |
|
virtual | ~Object () |
|
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 () |
|
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual::itk::LightObject::Pointer itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::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.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::GenerateOutputInformation |
( |
| ) |
|
|
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.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual const char* itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::GetNameOfClass |
( |
| ) |
const |
|
virtual |
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual bool itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::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.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual bool itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::GetUseImageSpacing |
( |
| ) |
const |
|
virtual |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
Method for creation through the object factory.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::PrintSelf |
( |
std::ostream & |
os, |
|
|
Indent |
indent |
|
) |
| const |
|
protectedvirtual |
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::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.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::SetUseImageSpacing |
( |
bool |
_arg | ) |
|
|
virtual |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::SetUseImageSpacingOff |
( |
| ) |
|
|
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.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::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 112 of file itkGradientImageFilter.h.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
Begin concept checking This class requires InputConvertibleToOutputCheck in the form of ( Concept::Convertible< InputPixelType, OutputValueType > )
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::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.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
virtual void itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::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.
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
const unsigned int itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::InputImageDimension = TInputImage::ImageDimension |
|
static |
template<class TInputImage , class TOperatorValueType = float, class TOutputValueType = float, class TOutputImageType = Image< CovariantVector< TOutputValueType, TInputImage::ImageDimension >, TInputImage::ImageDimension >>
const unsigned int itk::GradientImageFilter< TInputImage, TOperatorValueType, TOutputValueType, TOutputImageType >::OutputImageDimension = TInputImage::ImageDimension |
|
static |