13 #ifndef ITKLINEHISTOGRAMBASEDMASSIMAGEFILTER_H
14 #define ITKLINEHISTOGRAMBASEDMASSIMAGEFILTER_H
16 #include <itkImageToImageFilter.h>
20 template<
class TInputImageType,
class TOutputImageType = TInputImageType,
class TMaskImageType = itk::Image<
short,3> >
22 :
public itk::ImageToImageFilter<TInputImageType, TOutputImageType>
29 typedef ImageToImageFilter< TInputImageType, TOutputImageType >
Superclass;
31 itkFactorylessNewMacro(
Self);
39 typename TMaskImageType::Pointer m_ImageMask;
40 typename TMaskImageType::Pointer m_BinaryContour;
41 vnl_vector<double> m_CenterOfMask;
43 void ThreadedGenerateData(
const typename Superclass::OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
override;
44 void BeforeThreadedGenerateData()
override;
47 vnl_vector<double> GetCenterOfMass(
const TMaskImageType * maskImage);
54 #ifndef ITK_MANUAL_INSTANTIATION
55 #include "../src/Features/itkLineHistogramBasedMassImageFilter.cpp"