17 #ifndef __itkVectorNeighborhoodOperatorImageFilter_txx
18 #define __itkVectorNeighborhoodOperatorImageFilter_txx
30 template <
class TInputImage,
class TOutputImage>
37 Superclass::GenerateInputRequestedRegion();
50 typename TInputImage::RegionType inputRequestedRegion;
51 inputRequestedRegion = inputPtr->GetRequestedRegion();
54 inputRequestedRegion.PadByRadius( m_Operator.GetRadius() );
57 if ( inputRequestedRegion.Crop(inputPtr->GetLargestPossibleRegion()) )
59 inputPtr->SetRequestedRegion( inputRequestedRegion );
68 inputPtr->SetRequestedRegion( inputRequestedRegion );
71 InvalidRequestedRegionError e(__FILE__, __LINE__);
73 e.
SetDescription(
"Requested region is (at least partially) outside the largest possible region.");
80 template<
class TInputImage,
class TOutputImage>
88 typedef typename BFC::FaceListType FaceListType;
92 FaceListType faceList;
103 faceList = faceCalculator(input, outputRegionForThread,
104 m_Operator.GetRadius());
105 typename FaceListType::iterator fit;
108 ProgressReporter progress(
this, threadId, outputRegionForThread.GetNumberOfPixels());
115 for (fit=faceList.begin(); fit != faceList.end(); ++fit)
124 it.Value() = smartInnerProduct(bit, m_Operator);
127 progress.CompletedPixel();