12 #ifndef itkUnaryFunctorVectorImageFilter_h 13 #define itkUnaryFunctorVectorImageFilter_h 32 template<
typename TInputImage,
typename TOutputImage,
typename TFunction,
class TMaskImage=Image<
double,3> >
97 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
114 template <
class ImageType,
class ImageOutType,
class OpFunctor,
class MaskImageType=Image<
double,4> >
116 UnaryVectorOPImage(
const itk::SmartPointer<ImageType>& image, itk::SmartPointer<ImageOutType>& outImage,
const OpFunctor& func,
const itk::SmartPointer<MaskImageType>& mask=
nullptr,
int numberOfThreads=-1,
int vectorAxis=3)
119 typename UnaryFunctorFilterType::Pointer filter = UnaryFunctorFilterType::New();
122 filter->SetMaskImage(mask);
123 filter->SetInput(image);
125 filter->SetVectorAxis(vectorAxis);
126 filter->SetFunctor(func);
129 if (numberOfThreads>0)
130 filter->SetNumberOfThreads(numberOfThreads);
134 outImage = filter->GetOutput();
139 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkUnaryFunctorVectorImageFilter_hxx)
TOutputImage OutputImageType
Implements vector-valued generic operation on one image.
void UnaryVectorOPImage(const itk::SmartPointer< ImageType > &image, itk::SmartPointer< ImageOutType > &outImage, const OpFunctor &func, const itk::SmartPointer< MaskImageType > &mask=nullptr, int numberOfThreads=-1, int vectorAxis=3)
bool IsImageEmpty(const SmartPointer< ImageType > &image)
virtual ~UnaryFunctorVectorImageFilter()
InputImageType::Pointer InputImagePointer
InputImageType::PixelType InputImagePixelType
InputImageType::ConstPointer InputImageConstPointer
OutputImageType::Pointer OutputImagePointer
#define ITK_DELETE_FUNCTION
TInputImage InputImageType
OutputImageType::IndexType OutputImageIndexType
FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage > Superclass
bool IsLogDebug(const int level=utl::LogLevel)
UnaryFunctorVectorImageFilter Self
InputImageType::SpacingType InputImageSpacingType
OutputImageType::SizeType OutputImageSizeType
InputImageType::RegionType InputImageRegionType
OutputImageType::SpacingType OutputImageSpacingType
OutputImageType::RegionType OutputImageRegionType
InputImageType::IndexType InputImageIndexType
SmartPointer< Self > Pointer
Implements vector-valued generic operation on one image.
Superclass::MaskImageType MaskImageType
InputImageType::SizeType InputImageSizeType
OutputImageType::PixelType OutputImagePixelType
SmartPointer< const Self > ConstPointer