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);
187 #ifdef ITK_USE_CONCEPT_CHECKING
231 void operator=(const Self &);
247 #ifndef ITK_MANUAL_INSTANTIATION
248 #include "itkBayesianClassifierImageFilter.hxx"
virtual ~BayesianClassifierImageFilter()
ImageRegionConstIterator< PriorsImageType > PriorsImageIteratorType
virtual ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Light weight base class for most itk classes.
ImageRegionConstIterator< InputImageType > InputImageIteratorType
virtual void ClassifyBasedOnPosteriors()
ImageRegionConstIterator< MembershipImageType > MembershipImageIteratorType
OutputImageType::PixelType OutputPixelType
Image< TLabelsType, itkGetStaticConstMacro(Dimension) > OutputImageType
ImageToImageFilter< TInputVectorImage, Image< TLabelsType, TInputVectorImage::ImageDimension > > Superclass
MembershipImageType::Pointer MembershipImagePointer
DataObject::Pointer DataObjectPointer
BayesianClassifierImageFilter Self
SmartPointer< const Self > ConstPointer
Templated n-dimensional vector image class.
OutputImageType::Pointer OutputImagePointer
SmartPointer< Self > Pointer
bool m_UserProvidedPriors
InputImageType::ConstPointer InputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const override
itk::Image< TPosteriorsPrecisionType, itkGetStaticConstMacro(Dimension) > ExtractedComponentImageType
BayesianClassifierImageFilter()
bool m_UserProvidedSmoothingFilter
PosteriorsImageType::PixelType PosteriorsPixelType
DecisionRuleType::Pointer DecisionRulePointer
unsigned int m_NumberOfSmoothingIterations
SmoothingFilterPointer m_SmoothingFilter
PosteriorsImageType::Pointer PosteriorsImagePointer
MembershipImageType::PixelType MembershipPixelType
Superclass::DataObjectPointer DataObjectPointer
virtual void NormalizeAndSmoothPosteriors()
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
TInputVectorImage InputImageType
PosteriorsImageType * GetPosteriorImage()
PriorsImageType::PixelType PriorsPixelType
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
SmoothingFilterType::Pointer SmoothingFilterPointer
PriorsImageType::Pointer PriorsImagePointer
Superclass::InputImageType InputImageType
InputImageType::RegionType ImageRegionType
Statistics::MaximumDecisionRule DecisionRuleType
static const unsigned int Dimension
TInputVectorImage MembershipImageType
virtual void GenerateData() override
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
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
virtual void SetPriors(const PriorsImageType *)
#define itkConceptMacro(name, concept)
void SetSmoothingFilter(SmoothingFilterType *)
virtual void GenerateOutputInformation(void) override
Templated n-dimensional image class.
A multi-dimensional iterator templated over image type that walks a region of pixels.
virtual void ComputeBayesRule()