ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkUnaryGeneratorImageFilter.h>
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 way:
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.
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::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Private Attributes | |
std::function< void(const OutputImageRegionType &)> | m_DynamicThreadedGenerateDataFunction |
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 65 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::ConstRefFunctionType = OutputImagePixelType (const InputImagePixelType &) |
Definition at line 83 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 76 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::ConstPointer |
Definition at line 74 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 75 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Definition at line 73 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 81 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 79 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 80 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 78 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer< Self > |
Definition at line 64 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::Self = UnaryGeneratorImageFilter |
Standard class typedefs.
Definition at line 62 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::Superclass = InPlaceImageFilter< TInputImage, TOutputImage > |
Definition at line 63 of file itkUnaryGeneratorImageFilter.h.
using itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::ValueFunctionType = OutputImagePixelType (InputImagePixelType) |
Definition at line 84 of file itkUnaryGeneratorImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
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::AsinImageFilter< TInputImage, TOutputImage >, itk::AcosImageFilter< TInputImage, TOutputImage >, itk::CosImageFilter< TInputImage, TOutputImage >, itk::AtanImageFilter< TInputImage, TOutputImage >, itk::VectorMagnitudeImageFilter< TInputImage, TOutputImage >, itk::BoundedReciprocalImageFilter< TInputImage, TOutputImage >, itk::AbsImageFilter< TInputImage, TOutputImage >, itk::SinImageFilter< TInputImage, TOutputImage >, itk::ExpImageFilter< TInputImage, TOutputImage >, itk::Log10ImageFilter< TInputImage, TOutputImage >, itk::RoundImageFilter< TInputImage, TOutputImage >, itk::SqrtImageFilter< TInputImage, TOutputImage >, itk::LogImageFilter< TInputImage, TOutputImage >, itk::TanImageFilter< TInputImage, TOutputImage >, itk::SquareImageFilter< TInputImage, TOutputImage >, itk::EdgePotentialImageFilter< TInputImage, TOutputImage >, itk::RGBToLuminanceImageFilter< TInputImage, TOutputImage >, itk::ComplexToImaginaryImageFilter< TInputImage, TOutputImage >, itk::ComplexToModulusImageFilter< TInputImage, TOutputImage >, itk::ComplexToRealImageFilter< TInputImage, TOutputImage >, and itk::ComplexToPhaseImageFilter< TInputImage, TOutputImage >.
|
overrideprotectedvirtual |
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.
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::AsinImageFilter< TInputImage, TOutputImage >, itk::AcosImageFilter< TInputImage, TOutputImage >, itk::CosImageFilter< TInputImage, TOutputImage >, itk::AtanImageFilter< TInputImage, TOutputImage >, itk::VectorMagnitudeImageFilter< TInputImage, TOutputImage >, itk::BoundedReciprocalImageFilter< TInputImage, TOutputImage >, itk::SinImageFilter< TInputImage, TOutputImage >, itk::AbsImageFilter< TInputImage, TOutputImage >, itk::ExpImageFilter< TInputImage, TOutputImage >, itk::Log10ImageFilter< TInputImage, TOutputImage >, itk::RoundImageFilter< TInputImage, TOutputImage >, itk::SqrtImageFilter< TInputImage, TOutputImage >, itk::LogImageFilter< TInputImage, TOutputImage >, itk::TanImageFilter< TInputImage, TOutputImage >, itk::SquareImageFilter< TInputImage, TOutputImage >, itk::EdgePotentialImageFilter< TInputImage, TOutputImage >, itk::RGBToLuminanceImageFilter< TInputImage, TOutputImage >, itk::ComplexToImaginaryImageFilter< TInputImage, TOutputImage >, itk::ComplexToModulusImageFilter< TInputImage, TOutputImage >, itk::ComplexToRealImageFilter< TInputImage, TOutputImage >, and itk::ComplexToPhaseImageFilter< 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 |
Definition at line 99 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 112 of file itkUnaryGeneratorImageFilter.h.
References itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateDataWithFunctor(), itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::m_DynamicThreadedGenerateDataFunction, and itk::Object::Modified().
|
inline |
Definition at line 119 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 136 of file itkUnaryGeneratorImageFilter.h.
References itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateDataWithFunctor(), itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::m_DynamicThreadedGenerateDataFunction, and itk::Object::Modified().
|
private |
Definition at line 175 of file itkUnaryGeneratorImageFilter.h.
Referenced by itk::UnaryGeneratorImageFilter< TInputImage, TOutputImage >::SetFunctor().