18#ifndef itkUnaryGeneratorImageFilter_h
19#define itkUnaryGeneratorImageFilter_h
54template <
typename TInputImage,
typename TOutputImage>
86#if !defined(ITK_WRAPPING_PARSER)
92 SetFunctor(
const std::function<ConstRefFunctionType> & f)
94 m_DynamicThreadedGenerateDataFunction = [
this, f](
const OutputImageRegionType & outputRegionForThread) {
95 return this->DynamicThreadedGenerateDataWithFunctor(f, outputRegionForThread);
104 m_DynamicThreadedGenerateDataFunction = [
this, f](
const OutputImageRegionType & outputRegionForThread) {
105 return this->DynamicThreadedGenerateDataWithFunctor(f, outputRegionForThread);
119 m_DynamicThreadedGenerateDataFunction = [
this, funcPointer](
const OutputImageRegionType & outputRegionForThread) {
120 return this->DynamicThreadedGenerateDataWithFunctor(funcPointer, outputRegionForThread);
129 m_DynamicThreadedGenerateDataFunction = [
this, funcPointer](
const OutputImageRegionType & outputRegionForThread) {
130 return this->DynamicThreadedGenerateDataWithFunctor(funcPointer, outputRegionForThread);
144 template <
typename TFunctor>
148 m_DynamicThreadedGenerateDataFunction = [
this, functor](
const OutputImageRegionType & outputRegionForThread) {
149 return this->DynamicThreadedGenerateDataWithFunctor(functor, outputRegionForThread);
183 template <
typename TFunctor>
195#ifndef ITK_MANUAL_INSTANTIATION
196# include "itkUnaryGeneratorImageFilter.hxx"
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and overwrite that image as the output.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Implements pixel-wise generic "operation" on one image.
UnaryGeneratorImageFilter()
OutputImagePixelType(InputImagePixelType) ValueFunctionType
void SetFunctor(const TFunctor &functor)
~UnaryGeneratorImageFilter() override=default
void SetFunctor(ConstRefFunctionType *funcPointer)
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
OutputImagePixelType(const InputImagePixelType &) ConstRefFunctionType
void GenerateOutputInformation() override
void SetFunctor(ValueFunctionType *funcPointer)
void SetFunctor(const std::function< ConstRefFunctionType > &f)
void SetFunctor(const std::function< ValueFunctionType > &f)
void DynamicThreadedGenerateDataWithFunctor(const TFunctor &, const OutputImageRegionType &outputRegionForThread)
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....