18 #ifndef itkBayesianClassifierImageFilter_h
19 #define itkBayesianClassifierImageFilter_h
79 template<
typename TInputVectorImage,
typename TLabelsType =
unsigned char,
80 typename TPosteriorsPrecisionType = double,
typename TPriorsPrecisionType =
double >
83 TInputVectorImage, Image< TLabelsType,
84 TInputVectorImage ::ImageDimension > >
108 static constexpr
unsigned int Dimension = InputImageType ::ImageDimension;
179 itkSetMacro(NumberOfSmoothingIterations,
unsigned int);
180 itkGetConstMacro(NumberOfSmoothingIterations,
unsigned int);
185 using Superclass::MakeOutput;
188 #ifdef ITK_USE_CONCEPT_CHECKING
212 void PrintSelf(std::ostream & os,
Indent indent)
const override;
214 void GenerateData()
override;
216 void GenerateOutputInformation()
override;
221 virtual void ComputeBayesRule();
224 virtual void NormalizeAndSmoothPosteriors();
227 virtual void ClassifyBasedOnPosteriors();
235 bool m_UserProvidedPriors{
false };
237 bool m_UserProvidedSmoothingFilter{
false };
241 unsigned int m_NumberOfSmoothingIterations{ 0 };
245 #ifndef ITK_MANUAL_INSTANTIATION
246 #include "itkBayesianClassifierImageFilter.hxx"
typename InputImageType::ConstPointer InputImagePointer
Light weight base class for most itk classes.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
typename PriorsImageType::PixelType PriorsPixelType
typename Superclass::InputImageType InputImageType
TInputVectorImage MembershipImageType
Templated n-dimensional vector image class.
constexpr unsigned int Dimension
SmoothingFilterPointer m_SmoothingFilter
Represents an array whose length can be defined at run-time.
Performs Bayesian Classification on an image.
A multi-dimensional iterator templated over image type that walks a region of pixels.
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::RegionType ImageRegionType
typename MembershipImageType::Pointer MembershipImagePointer
typename OutputImageType::Pointer OutputImagePointer
typename PriorsImageType::Pointer PriorsImagePointer
typename MembershipImageType::PixelType MembershipPixelType
Base class for filters that take an image as input and produce an image as output.
A decision rule that returns the class label with the largest discriminant score. ...
Control indentation during Print() invocation.
typename PosteriorsImageType::PixelType PosteriorsPixelType
typename PosteriorsImageType::Pointer PosteriorsImagePointer
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename SmoothingFilterType::Pointer SmoothingFilterPointer
Templated n-dimensional image class.
A multi-dimensional iterator templated over image type that walks a region of pixels.
typename InputImageType::PixelType InputPixelType