19#ifndef rtkTotalVariationImageFilter_h
20#define rtkTotalVariationImageFilter_h
49template <
typename TInputImage>
71 using SizeType =
typename TInputImage::SizeType;
130 itkGetConstMacro(UseImageSpacing,
bool);
172#ifndef ITK_MANUAL_INSTANTIATION
173# include "rtkTotalVariationImageFilter.hxx"
Array class with size defined at construction time.
Base class for all data objects in ITK.
SmartPointer< Self > Pointer
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
Decorates any "simple" data type (data types without smart pointers) with a DataObject API.
Implements transparent reference counting.
TotalVariationImageFilter()
void SetUseImageSpacingOff()
void BeforeThreadedGenerateData() override
TotalVariationImageFilter Self
typename itk::NumericTraits< PixelType >::RealType RealType
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType output) override
RealObjectType * GetTotalVariationOutput()
virtual void SetUseImageSpacing(bool _arg)
itk::SimpleDataObjectDecorator< RealType > RealObjectType
typename TInputImage::IndexType IndexType
itk::Array< RealType > m_SumOfSquareRoots
RealType GetTotalVariation() const
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::SmartPointer< const Self > ConstPointer
const RealObjectType * GetTotalVariationOutput() const
~TotalVariationImageFilter() override=default
typename itk::DataObject::Pointer DataObjectPointer
void SetUseImageSpacingOn()
static constexpr unsigned int ImageDimension
typename TInputImage::SizeType SizeType
void GenerateInputRequestedRegion() override
void AfterThreadedGenerateData() override
void ThreadedGenerateData(const RegionType &outputRegionForThread, itk::ThreadIdType threadId) override
void EnlargeOutputRequestedRegion(itk::DataObject *data) override
typename TInputImage::Pointer InputImagePointer
typename TInputImage::RegionType RegionType
itk::SmartPointer< Self > Pointer
typename TInputImage::PixelType PixelType
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
itk::ImageToImageFilter< TInputImage, TInputImage > Superclass
void AllocateOutputs() override
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
unsigned int ThreadIdType
#define itkSetMacro(name, type)