|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
22 #ifndef otbMRFEnergyEdgeFidelity_h
23 #define otbMRFEnergyEdgeFidelity_h
50 template <
class TInput1,
class TInput2>
69 double val1 =
static_cast<double>(value1);
70 double val2 =
static_cast<double>(value2);
72 return vnl_math_sqr((val1 - val2)) / (1 + vnl_math_sqr(val1 - val2));
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
~MRFEnergyEdgeFidelity() override
TInput1::PixelType InputImagePixelType
MRFEnergy< TInput1, TInput2 > Superclass
This is the implementation of an edge preserving model for Markov denoising.
TInput2::PixelType LabelledImagePixelType
itk::SmartPointer< const Self > ConstPointer
itk::ConstNeighborhoodIterator< TInput1 > NeighborhoodIterator
double GetSingleValue(const InputImagePixelType &value1, const LabelledImagePixelType &value2) override
LabelledImageType::PixelType LabelledImagePixelType
InputImageType::PixelType InputImagePixelType
itk::SmartPointer< Self > Pointer
This is the base class for energy function used in the MRF framework.
MRFEnergyEdgeFidelity Self