3 #include <itkImageRegionConstIterator.h> 4 #include <itkImageRegionIterator.h> 9 template <
class TPixelType,
unsigned int TImageDimension>
17 this->Superclass::GenerateOutputInformation();
20 output->SetVectorLength(m_NumberOfComponents);
23 template <
class TPixelType,
unsigned int TImageDimension>
28 itk::ImageRegionConstIterator<InputImageType> inItr(this->GetInput(), outputRegionForThread);
29 itk::ImageRegionConstIterator<MaskImageType> maskItr(this->GetComputationMask(), outputRegionForThread);
30 itk::ImageRegionIterator<OutputImageType> outItr(this->GetOutput(), outputRegionForThread);
34 while (!maskItr.IsAtEnd())
36 if (maskItr.Get() == 0)
39 outItr.Set(outTensor);
47 outTensor = inItr.Get();
49 if (m_FlippedAxis ==
"x")
54 else if (m_FlippedAxis ==
"y")
59 else if (m_FlippedAxis ==
"z")
65 outItr.Set(outTensor);
67 this->IncrementNumberOfProcessedPoints();
void GenerateOutputInformation() ITK_OVERRIDE
itk::VectorImage< TPixelType, TImageDimension > OutputImageType
OutputImageType::PixelType OutputPixelType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) ITK_OVERRIDE
Superclass::OutputImageRegionType OutputImageRegionType