13 #ifndef itkLineHistogramBasedMassImageFilter_h
14 #define itkLineHistogramBasedMassImageFilter_h
16 #include <itkImageToImageFilter.h>
30 template<
class TInputImageType,
class TOutputImageType = TInputImageType,
class TMaskImageType = itk::Image<
short,3> >
32 :
public itk::ImageToImageFilter<TInputImageType, TOutputImageType>
39 typedef ImageToImageFilter< TInputImageType, TOutputImageType >
Superclass;
41 itkFactorylessNewMacro(
Self);
58 typename TMaskImageType::Pointer m_ImageMask;
59 typename TMaskImageType::Pointer m_BinaryContour;
60 vnl_vector<double> m_CenterOfMask;
62 void ThreadedGenerateData(
const typename Superclass::OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
override;
63 void BeforeThreadedGenerateData()
override;
66 vnl_vector<double> GetCenterOfMass(
const TMaskImageType * maskImage);
73 #ifndef ITK_MANUAL_INSTANTIATION
74 #include "../src/Features/itkLineHistogramBasedMassImageFilter.cpp"
Computes line-histogram-based mass features for each voxel in an image.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
LineHistogramBasedMassImageFilter< TInputImageType, TOutputImageType > Self
ImageToImageFilter< TInputImageType, TOutputImageType > Superclass
void SetBinaryContour(TMaskImageType *contouriamge)
Set the binary contour image.
void SetImageMask(TMaskImageType *maskimage)
Set the mask image defining the region of interest.