12 #ifndef itkMultiVariableFunctorVectorImageFilter_h 13 #define itkMultiVariableFunctorVectorImageFilter_h 32 template<
typename TInputImage,
typename TOutputImage,
typename TFunction,
class TMaskImage=Image<
double,3> >
84 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
101 template <
class ImageType,
class ImageOutType,
class OpFunctor,
class MaskImageType=Image<
double,4> >
103 MultiVariableVectorOPImage(
const std::vector<itk::SmartPointer<ImageType> >& images, itk::SmartPointer<ImageOutType>& outImage,
const OpFunctor& func,
const itk::SmartPointer<MaskImageType>& mask=
nullptr,
int numberOfThreads=-1,
int vectorAxis=3)
106 typename FunctorImageFilterType::Pointer filter = FunctorImageFilterType::New();
109 filter->SetMaskImage(mask);
110 for (
int i = 0; i < images.size(); ++i )
112 filter->SetInput(i, images[i]);
115 filter->SetVectorAxis(vectorAxis);
116 filter->SetFunctor(func);
119 if (numberOfThreads>0)
120 filter->SetNumberOfThreads(numberOfThreads);
124 outImage = filter->GetOutput();
130 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkMultiVariableFunctorVectorImageFilter_hxx) void MultiVariableVectorOPImage(const std::vector< itk::SmartPointer< ImageType > > &images, itk::SmartPointer< ImageOutType > &outImage, const OpFunctor &func, const itk::SmartPointer< MaskImageType > &mask=nullptr, int numberOfThreads=-1, int vectorAxis=3)
TInputImage InputImageType
Implements vector-valued generic operation on one image.
bool IsImageEmpty(const SmartPointer< ImageType > &image)
SmartPointer< const Self > ConstPointer
OutputImageType::SizeType OutputImageSizeType
InputImageType::ConstPointer InputImageConstPointer
#define ITK_DELETE_FUNCTION
Superclass::MaskImageType MaskImageType
InputImageType::SpacingType InputImageSpacingType
Implements vector-valued generic operation on one image.
bool IsLogDebug(const int level=utl::LogLevel)
OutputImageType::PixelType OutputImagePixelType
OutputImageType::IndexType OutputImageIndexType
InputImageType::SizeType InputImageSizeType
InputImageType::IndexType InputImageIndexType
OutputImageType::RegionType OutputImageRegionType
MultiVariableFunctorVectorImageFilter Self
InputImageType::PixelType InputImagePixelType
OutputImageType::SpacingType OutputImageSpacingType
virtual void PropagateRequestedRegion(DataObject *output) ITK_OVERRIDE
TOutputImage OutputImageType
InputImageType::Pointer InputImagePointer
virtual ~MultiVariableFunctorVectorImageFilter()
SmartPointer< Self > Pointer
FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage > Superclass
OutputImageType::Pointer OutputImagePointer
InputImageType::RegionType InputImageRegionType