19 #ifndef rtkTotalVariationImageFilter_h 20 #define rtkTotalVariationImageFilter_h 49 template <
typename TInputImage>
65 #ifdef itkOverrideGetNameOfClassMacro 76 using SizeType =
typename TInputImage::SizeType;
81 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
97 return this->GetTotalVariationOutput()->Get();
100 GetTotalVariationOutput();
103 const RealObjectType *
104 GetTotalVariationOutput()
const;
109 using Superclass::MakeOutput;
113 #ifdef ITK_USE_CONCEPT_CHECKING 124 this->SetUseImageSpacing(
true);
132 this->SetUseImageSpacing(
false);
138 itkGetConstMacro(UseImageSpacing,
bool);
145 PrintSelf(std::ostream & os,
itk::Indent indent)
const override;
151 AllocateOutputs()
override;
155 BeforeThreadedGenerateData()
override;
160 AfterThreadedGenerateData()
override;
168 GenerateInputRequestedRegion()
override;
181 #ifndef ITK_MANUAL_INSTANTIATION 182 # include "rtkTotalVariationImageFilter.hxx"
typename TInputImage::RegionType RegionType
typename itk::NumericTraits< PixelType >::RealType RealType
SmartPointer< Self > Pointer
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
typename TInputImage::IndexType IndexType
Compute the total variation of an Image.
#define itkSetMacro(name, type)
typename TInputImage::SizeType SizeType
RealType GetTotalVariation() const
void SetUseImageSpacingOff()
unsigned int ThreadIdType
void SetUseImageSpacingOn()
typename TInputImage::Pointer InputImagePointer
#define itkConceptMacro(name, concept)
typename TInputImage::PixelType PixelType
itk::Array< RealType > m_SumOfSquareRoots