![]() |
ITK
5.4.0
Insight Toolkit
|
#include <itkUnaryFunctorImageFilter.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. It is also parameterized by the operation to be applied, using a Functor style.
UnaryFunctorImageFilter allows the output dimension of the filter to be larger than the input dimension. Thus subclasses of the UnaryFunctorImageFilter (like the CastImageFilter) can be used to promote a 2D image to a 3D image, etc.
Definition at line 50 of file itkUnaryFunctorImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Private Attributes | |
FunctorType | m_Functor {} |
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::ConstPointer = SmartPointer<const Self> |
Definition at line 59 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::FunctorType = TFunction |
Some type alias.
Definition at line 68 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 73 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImagePointer = typename InputImageType::ConstPointer |
Definition at line 71 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 72 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImageType = TInputImage |
Definition at line 70 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 78 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 76 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 77 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImageType = TOutputImage |
Definition at line 75 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::Pointer = SmartPointer<Self> |
Definition at line 58 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::Self = UnaryFunctorImageFilter |
Standard class type aliases.
Definition at line 56 of file itkUnaryFunctorImageFilter.h.
using itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::Superclass = InPlaceImageFilter<TInputImage, TOutputImage> |
Definition at line 57 of file itkUnaryFunctorImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
UnaryFunctorImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a DynamicThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling DynamicThreadedGenerateData(). DynamicThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImage >.
|
overrideprotectedvirtual |
UnaryFunctorImageFilter can produce an image which is a different resolution than its input image. As such, UnaryFunctorImageFilter 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.
|
inline |
Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)
Definition at line 85 of file itkUnaryFunctorImageFilter.h.
|
inline |
Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)
Definition at line 90 of file itkUnaryFunctorImageFilter.h.
|
overridevirtual |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Reimplemented in itk::GPUImageToImageFilter< TInputImage, TOutputImage, BinaryThresholdImageFilter< TInputImage, TOutputImage > >, itk::GPUInPlaceImageFilter< TInputImage, TOutputImage, BinaryThresholdImageFilter< TInputImage, TOutputImage > >, and itk::GPUUnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::GPUBinaryThreshold< TInputImage::PixelType, TOutputImage::PixelType >, BinaryThresholdImageFilter< TInputImage, TOutputImage > >.
|
static |
Method for creation through the object factory.
|
inline |
Set the functor object. This replaces the current Functor with a copy of the specified Functor. This allows the user to specify a functor that has ivars set differently than the default functor. This method requires an operator!=() be defined on the functor (or the compiler's default implementation of operator!=() being appropriate).
Definition at line 103 of file itkUnaryFunctorImageFilter.h.
|
private |
Definition at line 142 of file itkUnaryFunctorImageFilter.h.