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 > >
106 itkStaticConstMacro(
Dimension,
unsigned int,
107 InputImageType ::ImageDimension);
109 typedef Image< TLabelsType,
178 itkSetMacro(NumberOfSmoothingIterations,
unsigned int);
179 itkGetConstMacro(NumberOfSmoothingIterations,
unsigned int);
184 using Superclass::MakeOutput;
187 #ifdef ITK_USE_CONCEPT_CHECKING
211 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
213 virtual void GenerateData() ITK_OVERRIDE;
215 virtual
void GenerateOutputInformation(
void) ITK_OVERRIDE;
220 virtual
void ComputeBayesRule();
223 virtual
void NormalizeAndSmoothPosteriors();
226 virtual
void ClassifyBasedOnPosteriors();
229 PosteriorsImageType * GetPosteriorImage();
236 bool m_UserProvidedPriors;
238 bool m_UserProvidedSmoothingFilter;
242 unsigned int m_NumberOfSmoothingIterations;
246 #ifndef ITK_MANUAL_INSTANTIATION
247 #include "itkBayesianClassifierImageFilter.hxx"
ImageRegionConstIterator< PriorsImageType > PriorsImageIteratorType
Light weight base class for most itk classes.
ImageRegionConstIterator< InputImageType > InputImageIteratorType
ImageRegionConstIterator< MembershipImageType > MembershipImageIteratorType
OutputImageType::PixelType OutputPixelType
Image< TLabelsType, itkGetStaticConstMacro(Dimension) > OutputImageType
ImageToImageFilter< TInputVectorImage, Image< TLabelsType, TInputVectorImage::ImageDimension > > Superclass
MembershipImageType::Pointer MembershipImagePointer
BayesianClassifierImageFilter Self
SmartPointer< const Self > ConstPointer
Templated n-dimensional vector image class.
OutputImageType::Pointer OutputImagePointer
SmartPointer< Self > Pointer
InputImageType::ConstPointer InputImagePointer
itk::Image< TPosteriorsPrecisionType, itkGetStaticConstMacro(Dimension) > ExtractedComponentImageType
PosteriorsImageType::PixelType PosteriorsPixelType
DecisionRuleType::Pointer DecisionRulePointer
PosteriorsImageType::Pointer PosteriorsImagePointer
MembershipImageType::PixelType MembershipPixelType
Superclass::DataObjectPointer DataObjectPointer
VectorImage< TPosteriorsPrecisionType, itkGetStaticConstMacro(Dimension) > PosteriorsImageType
Represents an array whose length can be defined at run-time.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Performs Bayesian Classification on an image.
A multi-dimensional iterator templated over image type that walks a region of pixels.
ImageRegionIterator< PosteriorsImageType > PosteriorsImageIteratorType
InputImageType::PixelType InputPixelType
PriorsImageType::PixelType PriorsPixelType
const unsigned int Dimension
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
SmoothingFilterType::Pointer SmoothingFilterPointer
virtual ~BayesianClassifierImageFilter() override
PriorsImageType::Pointer PriorsImagePointer
Superclass::InputImageType InputImageType
InputImageType::RegionType ImageRegionType
Statistics::MaximumDecisionRule DecisionRuleType
TInputVectorImage MembershipImageType
ImageRegionIterator< OutputImageType > OutputImageIteratorType
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. ...
VectorImage< TPriorsPrecisionType, itkGetStaticConstMacro(Dimension) > PriorsImageType
Control indentation during Print() invocation.
ImageToImageFilter< ExtractedComponentImageType, ExtractedComponentImageType > SmoothingFilterType
#define itkConceptMacro(name, concept)
Templated n-dimensional image class.
A multi-dimensional iterator templated over image type that walks a region of pixels.