18 #ifndef __itkMRFImageFilter_h
19 #define __itkMRFImageFilter_h
21 #include "vnl/vnl_vector.h"
22 #include "vnl/vnl_matrix.h"
124 template<
class TInputImage,
class TClassifiedImage >
158 itkStaticConstMacro(InputImageDimension,
unsigned int,
159 TInputImage::ImageDimension);
191 itkStaticConstMacro(ClassifiedImageDimension,
unsigned int,
192 TClassifiedImage::ImageDimension);
207 typedef typename InputImageNeighborhoodIterator::RadiusType
216 typedef typename InputImageFaceListType::iterator
232 typedef typename LabelledImageFaceListType::iterator
239 itkSetMacro(NumberOfClasses,
unsigned int);
240 itkGetConstMacro(NumberOfClasses,
unsigned int);
245 itkSetMacro(MaximumNumberOfIterations,
unsigned int);
246 itkGetConstMacro(MaximumNumberOfIterations,
unsigned int);
251 itkSetMacro(ErrorTolerance,
double);
252 itkGetConstMacro(ErrorTolerance,
double);
257 itkSetMacro(SmoothingFactor,
double);
258 itkGetConstMacro(SmoothingFactor,
double);
269 void SetNeighborhoodRadius(
const SizeValueType *radiusArray);
276 for (
int i = 0; i < InputImageDimension; ++i )
278 radius[i] = m_InputImageNeighborhoodRadius[i];
288 virtual void SetMRFNeighborhoodWeight(std::vector< double > BetaMatrix);
290 virtual std::vector< double > GetMRFNeighborhoodWeight()
292 return m_MRFNeighborhoodWeight;
297 MaximumNumberOfIterations = 1,
303 itkGetConstReferenceMacro(StopCondition, StopConditionType);
306 itkGetConstReferenceMacro(NumberOfIterations,
unsigned int);
308 #ifdef ITK_USE_CONCEPT_CHECKING
326 void PrintSelf(std::ostream & os,
Indent indent)
const;
336 virtual void ApplyMRFImageFilter();
339 virtual void MinimizeFunctional();
356 virtual void GenerateData();
358 virtual void GenerateInputRequestedRegion();
360 virtual void EnlargeOutputRequestedRegion(
DataObject *);
362 virtual void GenerateOutputInformation();
366 void operator=(
const Self &);
379 typedef typename LabelStatusImageFaceListType::iterator
413 virtual void SetDefaultMRFNeighborhoodWeight();
416 void ApplyICMLabeller();
420 #ifndef ITK_MANUAL_INSTANTIATION
421 #include "itkMRFImageFilter.hxx"