19 #ifndef rtkForwardDifferenceGradientImageFilter_h 20 #define rtkForwardDifferenceGradientImageFilter_h 50 template <
typename TInputImage,
51 typename TOperatorValueType = float,
52 typename TOuputValue = float,
53 typename TOuputImage =
62 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
63 static constexpr
unsigned int OutputImageDimension = TOuputImage::ImageDimension;
83 #ifdef itkOverrideGetNameOfClassMacro 104 GenerateInputRequestedRegion()
override;
111 this->SetUseImageSpacing(
true);
119 this->SetUseImageSpacing(
false);
125 itkGetConstMacro(UseImageSpacing,
bool);
132 SetDimensionsProcessed(
bool * DimensionsProcessed);
138 #ifdef ITK_USE_CONCEPT_CHECKING 156 itkGetConstMacro(UseImageDirection,
bool);
157 itkBooleanMacro(UseImageDirection);
164 PrintSelf(std::ostream & os,
itk::Indent indent)
const override;
177 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
180 GenerateOutputInformation()
override;
201 template <
typename T>
205 it.Value() = gradient;
218 bool m_DimensionsProcessed[TInputImage::ImageDimension];
225 #ifndef ITK_MANUAL_INSTANTIATION 226 # include "rtkForwardDifferenceGradientImageFilter.hxx" typename InputImageType::PixelType InputPixelType
typename OutputImageType::Pointer OutputImagePointer
void SetUseImageSpacingOn()
typename InputImageType::Pointer InputImagePointer
bool m_IsBoundaryConditionOverriden
TInputImage InputImageType
itk::ImageBoundaryCondition< TInputImage, TInputImage > * m_BoundaryCondition
#define itkSetMacro(name, type)
Computes the gradient of an image using forward difference.
void SetUseImageSpacingOff()
TOperatorValueType OperatorValueType
TOuputValue OutputValueType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
void SetOutputPixel(itk::ImageRegionIterator< T > &it, CovariantVectorType &gradient)
typename OutputImageType::PixelType CovariantVectorType
#define itkConceptMacro(name, concept)