ITK
5.2.0
Insight Toolkit
|
#include <itkUnaryGeneratorImageFilter.h>
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | ConstRefFunctionType = OutputImagePixelType(const InputImagePixelType &) |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::ConstPointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = UnaryGeneratorImageFilter |
using | Superclass = InPlaceImageFilter< TInputImage, TOutputImage > |
using | ValueFunctionType = OutputImagePixelType(InputImagePixelType) |
Public Types inherited from itk::InPlaceImageFilter< TInputImage, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImagePointer = typename Superclass::OutputImagePointer |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | OutputImageType = typename Superclass::OutputImageType |
using | Pointer = SmartPointer< Self > |
using | Self = InPlaceImageFilter |
using | Superclass = ImageToImageFilter< TInputImage, TOutputImage > |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TOutputImage > |
Public Types inherited from itk::ImageSource< TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static void | SetGlobalDefaultDirectionTolerance (double) |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static double | GetGlobalDefaultCoordinateTolerance () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
std::function< void(const OutputImageRegionType &)> | m_DynamicThreadedGenerateDataFunction |
void | SetFunctor (const std::function< ConstRefFunctionType > &f) |
void | SetFunctor (const std::function< ValueFunctionType > &f) |
void | SetFunctor (ConstRefFunctionType *funcPointer) |
void | SetFunctor (ValueFunctionType *funcPointer) |
template<typename TFunctor > | |
void | SetFunctor (const TFunctor &functor) |
UnaryGeneratorImageFilter () | |
~UnaryGeneratorImageFilter () override=default | |
void | GenerateOutputInformation () override |
template<typename TFunctor > | |
void | DynamicThreadedGenerateDataWithFunctor (const TFunctor &, const OutputImageRegionType &outputRegionForThread) |
void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) override |
Implements pixel-wise generic "operation" on one image.
This class is parameterized over the type of the input image and the type of the output image.
This filter allows per-pixel operations to be specified in several ways:
UnaryGeneratorImageFilter allows the output dimension of the filter to be larger than the input dimension. Thus subclasses of the UnaryGeneratorImageFilter can be used to promote a 2D image to a 3D image, etc.
Definition at line 55 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 64 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::ConstRefFunctionType = OutputImagePixelType(const InputImagePixelType &) |
Definition at line 82 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 75 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::ConstPointer |
Definition at line 73 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 74 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Definition at line 72 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 80 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 78 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 79 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 77 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 63 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::Self = UnaryGeneratorImageFilter |
Standard class typedefs.
Definition at line 61 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::Superclass = InPlaceImageFilter<TInputImage, TOutputImage> |
Definition at line 62 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::ValueFunctionType = OutputImagePixelType(InputImagePixelType) |
Definition at line 83 of file itkUnaryGeneratorImageFilter.h.
|
protected |
Set the pixel functor by an std::function wrapper
The functor defines an operation done per pixel.
|
overrideprotecteddefault |
Set the pixel functor by an std::function wrapper
The functor defines an operation done per pixel.
|
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.
Reimplemented in itk::AcosImageFilter< TInputImage, TOutputImage >, itk::AsinImageFilter< TInputImage, TOutputImage >, itk::CosImageFilter< TInputImage, TOutputImage >, itk::AtanImageFilter< TInputImage, TOutputImage >, itk::VectorMagnitudeImageFilter< TInputImage, TOutputImage >, itk::SinImageFilter< TInputImage, TOutputImage >, itk::BoundedReciprocalImageFilter< TInputImage, TOutputImage >, itk::AbsImageFilter< TInputImage, TOutputImage >, itk::ExpImageFilter< TInputImage, TOutputImage >, itk::Log10ImageFilter< TInputImage, TOutputImage >, itk::SqrtImageFilter< TInputImage, TOutputImage >, itk::TanImageFilter< TInputImage, TOutputImage >, itk::RoundImageFilter< TInputImage, TOutputImage >, itk::EdgePotentialImageFilter< TInputImage, TOutputImage >, itk::LogImageFilter< TInputImage, TOutputImage >, itk::RGBToLuminanceImageFilter< TInputImage, TOutputImage >, itk::SquareImageFilter< TInputImage, TOutputImage >, itk::ComplexToImaginaryImageFilter< TInputImage, TOutputImage >, itk::ComplexToPhaseImageFilter< TInputImage, TOutputImage >, itk::ComplexToRealImageFilter< TInputImage, TOutputImage >, and itk::ComplexToModulusImageFilter< TInputImage, TOutputImage >.
|
overrideprotectedvirtual |
Set the pixel functor by an std::function wrapper
The functor defines an operation done per pixel.
Reimplemented from itk::ImageSource< TOutputImage >.
|
protected |
UnaryGeneratorImageFilter is implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread.
The template method is instantiated by the SetFunctor method, and the generated code is run during the update.
Referenced by itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::SetFunctor().
|
overrideprotectedvirtual |
UnaryGeneratorImageFilter can produce an image which is a different resolution than its input image. As such, UnaryGeneratorImageFilter needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.
Reimplemented from itk::ProcessObject.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
Reimplemented in itk::AcosImageFilter< TInputImage, TOutputImage >, itk::AsinImageFilter< TInputImage, TOutputImage >, itk::CosImageFilter< TInputImage, TOutputImage >, itk::AtanImageFilter< TInputImage, TOutputImage >, itk::VectorMagnitudeImageFilter< TInputImage, TOutputImage >, itk::SinImageFilter< TInputImage, TOutputImage >, itk::BoundedReciprocalImageFilter< TInputImage, TOutputImage >, itk::AbsImageFilter< TInputImage, TOutputImage >, itk::ExpImageFilter< TInputImage, TOutputImage >, itk::Log10ImageFilter< TInputImage, TOutputImage >, itk::SqrtImageFilter< TInputImage, TOutputImage >, itk::TanImageFilter< TInputImage, TOutputImage >, itk::RoundImageFilter< TInputImage, TOutputImage >, itk::EdgePotentialImageFilter< TInputImage, TOutputImage >, itk::LogImageFilter< TInputImage, TOutputImage >, itk::RGBToLuminanceImageFilter< TInputImage, TOutputImage >, itk::SquareImageFilter< TInputImage, TOutputImage >, itk::ComplexToImaginaryImageFilter< TInputImage, TOutputImage >, itk::ComplexToPhaseImageFilter< TInputImage, TOutputImage >, itk::ComplexToRealImageFilter< TInputImage, TOutputImage >, and itk::ComplexToModulusImageFilter< TInputImage, TOutputImage >.
|
static |
Method for creation through the object factory.
|
inline |
Set the pixel functor by an std::function wrapper
The functor defines an operation done per pixel.
Definition at line 92 of file itkUnaryGeneratorImageFilter.h.
References itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateDataWithFunctor(), itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::m_DynamicThreadedGenerateDataFunction, and itk::Object::Modified().
Referenced by itk::AbsImageFilter< TInputImage, TOutputImage >::AbsImageFilter(), itk::AcosImageFilter< TInputImage, TOutputImage >::AcosImageFilter(), itk::AsinImageFilter< TInputImage, TOutputImage >::AsinImageFilter(), itk::AtanImageFilter< TInputImage, TOutputImage >::AtanImageFilter(), itk::BoundedReciprocalImageFilter< TInputImage, TOutputImage >::BoundedReciprocalImageFilter(), itk::ComplexToImaginaryImageFilter< TInputImage, TOutputImage >::ComplexToImaginaryImageFilter(), itk::ComplexToModulusImageFilter< TInputImage, TOutputImage >::ComplexToModulusImageFilter(), itk::ComplexToPhaseImageFilter< TInputImage, TOutputImage >::ComplexToPhaseImageFilter(), itk::ComplexToRealImageFilter< TInputImage, TOutputImage >::ComplexToRealImageFilter(), itk::CosImageFilter< TInputImage, TOutputImage >::CosImageFilter(), itk::EdgePotentialImageFilter< TInputImage, TOutputImage >::EdgePotentialImageFilter(), itk::ExpImageFilter< TInputImage, TOutputImage >::ExpImageFilter(), itk::Log10ImageFilter< TInputImage, TOutputImage >::Log10ImageFilter(), itk::LogImageFilter< TInputImage, TOutputImage >::LogImageFilter(), itk::RGBToLuminanceImageFilter< TInputImage, TOutputImage >::RGBToLuminanceImageFilter(), itk::RoundImageFilter< TInputImage, TOutputImage >::RoundImageFilter(), itk::SinImageFilter< TInputImage, TOutputImage >::SinImageFilter(), itk::SqrtImageFilter< TInputImage, TOutputImage >::SqrtImageFilter(), itk::SquareImageFilter< TInputImage, TOutputImage >::SquareImageFilter(), itk::TanImageFilter< TInputImage, TOutputImage >::TanImageFilter(), and itk::VectorMagnitudeImageFilter< TInputImage, TOutputImage >::VectorMagnitudeImageFilter().
|
inline |
Set the pixel functor by an std::function wrapper
The functor defines an operation done per pixel.
Definition at line 102 of file itkUnaryGeneratorImageFilter.h.
References itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateDataWithFunctor(), itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::m_DynamicThreadedGenerateDataFunction, and itk::Object::Modified().
|
inline |
Set the pixel functor by a "Functor Object"
The functor defines an operation done per pixel. A single copy of the argument is created an used for all threads, so the functor must be concurrent thread-safe. The functor must a have an operator() method which accept arguments of InputImagePixelType.
Definition at line 146 of file itkUnaryGeneratorImageFilter.h.
References itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateDataWithFunctor(), itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::m_DynamicThreadedGenerateDataFunction, and itk::Object::Modified().
|
inline |
Set the pixel functor by a C function pointer
The functor defines an operation done per pixel.
Definition at line 117 of file itkUnaryGeneratorImageFilter.h.
References itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateDataWithFunctor(), itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::m_DynamicThreadedGenerateDataFunction, and itk::Object::Modified().
|
inline |
Set the pixel functor by an std::function wrapper
The functor defines an operation done per pixel.
Definition at line 127 of file itkUnaryGeneratorImageFilter.h.
References itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateDataWithFunctor(), itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::m_DynamicThreadedGenerateDataFunction, and itk::Object::Modified().
|
private |
Set the pixel functor by an std::function wrapper
The functor defines an operation done per pixel.
Definition at line 190 of file itkUnaryGeneratorImageFilter.h.
Referenced by itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::SetFunctor().