18 #ifndef itkUnaryGeneratorImageFilter_h
19 #define itkUnaryGeneratorImageFilter_h
54 template <
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);
155 #endif // !defined( ITK_WRAPPING_PARSER )
171 GenerateOutputInformation()
override;
183 template <
typename TFunctor>
185 DynamicThreadedGenerateDataWithFunctor(
const TFunctor &,
const OutputImageRegionType & outputRegionForThread);
187 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
195 #ifndef ITK_MANUAL_INSTANTIATION
196 # include "itkUnaryGeneratorImageFilter.hxx"