21 #ifndef otbContingencyTableCalculator_h
22 #define otbContingencyTableCalculator_h
24 #include "itkObject.h"
25 #include "itkObjectFactory.h"
40 template <
class TClassLabel>
60 typedef typename std::map<TClassLabel, unsigned long>
CountMapType;
67 template <
class TRefIterator,
class TProdIterator>
68 void Compute(TRefIterator itRef, TProdIterator itProd,
bool refHasNoData =
false,
typename TRefIterator::InternalPixelType refNoData = 0,
69 bool prodHasNoData =
false,
typename TProdIterator::InternalPixelType prodNoData = 0);
75 template <
class TRefIterator,
class TProdIterator>
76 void Compute(TRefIterator refBegin, TRefIterator refEnd, TProdIterator prodBegin, TProdIterator prodEnd);
78 itkGetConstMacro(NumberOfRefClasses,
unsigned long);
79 itkGetConstMacro(NumberOfProdClasses,
unsigned long);
80 itkGetConstMacro(NumberOfSamples,
unsigned long);
94 void operator=(
const Self&) =
delete;
103 #ifndef OTB_MANUAL_INSTANTIATION
107 #endif // otbContingencyTableCalculator_h