RTK
2.6.0
Reconstruction Toolkit
|
#include <rtkTotalVariationImageFilter.h>
Public Types | |
using | ConstPointer = itk::SmartPointer< const Self > |
using | DataObjectPointer = typename itk::DataObject::Pointer |
using | DataObjectPointerArraySizeType = itk::ProcessObject::DataObjectPointerArraySizeType |
using | IndexType = typename TInputImage::IndexType |
using | InputImagePointer = typename TInputImage::Pointer |
using | PixelType = typename TInputImage::PixelType |
using | Pointer = itk::SmartPointer< Self > |
using | RealObjectType = itk::SimpleDataObjectDecorator< RealType > |
using | RealType = typename itk::NumericTraits< PixelType >::RealType |
using | RegionType = typename TInputImage::RegionType |
using | Self = TotalVariationImageFilter |
using | SizeType = typename TInputImage::SizeType |
using | Superclass = itk::ImageToImageFilter< TInputImage, TInputImage > |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
const char * | GetNameOfClass () const override |
const RealObjectType * | GetTotalVariationOutput () const |
DataObjectPointer | MakeOutput (DataObjectPointerArraySizeType output) override |
void | SetUseImageSpacingOff () |
void | SetUseImageSpacingOn () |
RealType | GetTotalVariation () const |
RealObjectType * | GetTotalVariationOutput () |
virtual void | SetUseImageSpacing (bool _arg) |
virtual bool | GetUseImageSpacing () const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Protected Member Functions | |
void | AfterThreadedGenerateData () override |
void | AllocateOutputs () override |
void | BeforeThreadedGenerateData () override |
void | EnlargeOutputRequestedRegion (itk::DataObject *data) override |
void | GenerateInputRequestedRegion () override |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | ThreadedGenerateData (const RegionType &outputRegionForThread, itk::ThreadIdType threadId) override |
TotalVariationImageFilter () | |
~TotalVariationImageFilter () override=default | |
Protected Attributes | |
bool | m_UseImageSpacing |
Private Attributes | |
itk::Array< RealType > | m_SumOfSquareRoots |
Compute the total variation of an Image.
TotalVariationImageFilter computes the total variation, defined as the L1 norm of the image of the L2 norm of the gradient, of an image. The filter needs all of its input image. It behaves as a filter with an input and output. Thus it can be inserted in a pipeline with other filters and the total variation will only be recomputed if a downstream filter changes.
The filter passes its input through unmodified. The filter is threaded.
Definition at line 50 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::ConstPointer = itk::SmartPointer<const Self> |
Definition at line 59 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::DataObjectPointer = typename itk::DataObject::Pointer |
Smart Pointer type to a DataObject.
Definition at line 82 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::DataObjectPointerArraySizeType = itk::ProcessObject::DataObjectPointerArraySizeType |
Make a DataObject of the correct type to be used as the specified output.
Definition at line 103 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::IndexType = typename TInputImage::IndexType |
Definition at line 72 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::InputImagePointer = typename TInputImage::Pointer |
Image related type alias.
Definition at line 68 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::PixelType = typename TInputImage::PixelType |
Definition at line 73 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::Pointer = itk::SmartPointer<Self> |
Definition at line 58 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::RealObjectType = itk::SimpleDataObjectDecorator<RealType> |
Type of DataObjects used for scalar outputs
Definition at line 85 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::RealType = typename itk::NumericTraits<PixelType>::RealType |
Type to use for computations.
Definition at line 79 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::RegionType = typename TInputImage::RegionType |
Definition at line 70 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::Self = TotalVariationImageFilter |
Standard Self type alias
Definition at line 56 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::SizeType = typename TInputImage::SizeType |
Definition at line 71 of file rtkTotalVariationImageFilter.h.
using rtk::TotalVariationImageFilter< TInputImage >::Superclass = itk::ImageToImageFilter<TInputImage, TInputImage> |
Definition at line 57 of file rtkTotalVariationImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
Do final mean and variance computation from data accumulated in threads.
Reimplemented from itk::ImageSource< typename TOutputImage >.
|
overrideprotectedvirtual |
Pass the input through unmodified. Do this by Grafting in the AllocateOutputs method.
Reimplemented from itk::ImageSource< typename TOutputImage >.
|
overrideprotectedvirtual |
Initialize some accumulators before the threads run.
Reimplemented from itk::ImageSource< typename TOutputImage >.
|
virtual |
Reimplemented from itk::Object.
|
overrideprotectedvirtual |
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
Reimplemented from itk::ProcessObject.
|
overridevirtual |
Runtime information support.
Reimplemented from itk::ImageSource< typename TOutputImage >.
|
inline |
Return the computed Minimum.
Definition at line 90 of file rtkTotalVariationImageFilter.h.
RealObjectType* rtk::TotalVariationImageFilter< TInputImage >::GetTotalVariationOutput | ( | ) |
Return the computed Minimum.
const RealObjectType* rtk::TotalVariationImageFilter< TInputImage >::GetTotalVariationOutput | ( | ) | const |
|
virtual |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
|
overridevirtual |
Reimplemented from itk::ImageSource< typename TOutputImage >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Reimplemented from itk::ImageSource< typename TOutputImage >.
|
virtual |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
|
inline |
Ignore the image spacing. Use this option if you want derivatives in isotropic pixel space. Default is UseImageSpacingOn.
Definition at line 123 of file rtkTotalVariationImageFilter.h.
|
inline |
Use the image spacing information in calculations. Use this option if you want derivatives in physical space. Default is UseImageSpacingOn.
Definition at line 115 of file rtkTotalVariationImageFilter.h.
|
overrideprotected |
Multi-thread version GenerateData.
|
static |
Image related type alias.
Definition at line 76 of file rtkTotalVariationImageFilter.h.
|
private |
Definition at line 170 of file rtkTotalVariationImageFilter.h.
|
protected |
Definition at line 167 of file rtkTotalVariationImageFilter.h.