17 #ifndef ITKLINEHISTOGRAMBASEDMASSIMAGEFILTER_H
18 #define ITKLINEHISTOGRAMBASEDMASSIMAGEFILTER_H
20 #include <itkImageToImageFilter.h>
24 template<
class TInputImageType,
class TOutputImageType = TInputImageType,
class TMaskImageType = itk::Image<
short,3> >
26 :
public itk::ImageToImageFilter<TInputImageType, TOutputImageType>
33 typedef ImageToImageFilter< TInputImageType, TOutputImageType >
Superclass;
35 itkFactorylessNewMacro(Self);
45 vnl_vector<double> m_CenterOfMask;
47 void ThreadedGenerateData(
const typename Superclass::OutputImageRegionType &outputRegionForThread, ThreadIdType threadId);
48 void BeforeThreadedGenerateData();
51 vnl_vector<double> GetCenterOfMass(
const TMaskImageType * maskImage);
58 #ifndef ITK_MANUAL_INSTANTIATION
59 #include "../src/Features/itkLineHistogramBasedMassImageFilter.cpp"
itk::SmartPointer< Self > Pointer
void SetBinaryContour(TMaskImageType *contouriamge)
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
void SetImageMask(TMaskImageType *maskimage)
LineHistogramBasedMassImageFilter< TInputImageType, TOutputImageType > Self
ImageToImageFilter< TInputImageType, TOutputImageType > Superclass