OpenCV  4.10.0
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
cv::phase_unwrapping::HistogramPhaseUnwrapping Class Referenceabstract

Class implementing two-dimensional phase unwrapping based on [156] This algorithm belongs to the quality-guided phase unwrapping methods. First, it computes a reliability map from second differences between a pixel and its eight neighbours. Reliability values lie between 0 and 16*pi*pi. Then, this reliability map is used to compute the reliabilities of "edges". An edge is an entity defined by two pixels that are connected horizontally or vertically. Its reliability is found by adding the the reliabilities of the two pixels connected through it. Edges are sorted in a histogram based on their reliability values. This histogram is then used to unwrap pixels, starting from the highest quality pixel. More...

#include <opencv2/phase_unwrapping/histogramphaseunwrapping.hpp>

Collaboration diagram for cv::phase_unwrapping::HistogramPhaseUnwrapping:

Classes

struct  Params
 Parameters of phaseUnwrapping constructor. More...
 

Public Member Functions

virtual void getInverseReliabilityMap (OutputArray reliabilityMap)=0
 Get the reliability map computed from the wrapped phase map.
 
- Public Member Functions inherited from cv::phase_unwrapping::PhaseUnwrapping
virtual void unwrapPhaseMap (InputArray wrappedPhaseMap, OutputArray unwrappedPhaseMap, InputArray shadowMask=noArray())=0
 Unwraps a 2D phase map.
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (FileStorage &fs, const String &name) const
 

Static Public Member Functions

static Ptr< HistogramPhaseUnwrappingcreate (const HistogramPhaseUnwrapping::Params &parameters=HistogramPhaseUnwrapping::Params())
 Constructor.
 
- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 

Additional Inherited Members

- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Detailed Description

Class implementing two-dimensional phase unwrapping based on [156] This algorithm belongs to the quality-guided phase unwrapping methods. First, it computes a reliability map from second differences between a pixel and its eight neighbours. Reliability values lie between 0 and 16*pi*pi. Then, this reliability map is used to compute the reliabilities of "edges". An edge is an entity defined by two pixels that are connected horizontally or vertically. Its reliability is found by adding the the reliabilities of the two pixels connected through it. Edges are sorted in a histogram based on their reliability values. This histogram is then used to unwrap pixels, starting from the highest quality pixel.

The wrapped phase map and the unwrapped result are stored in CV_32FC1 Mat.

Member Function Documentation

◆ create()

static Ptr< HistogramPhaseUnwrapping > cv::phase_unwrapping::HistogramPhaseUnwrapping::create ( const HistogramPhaseUnwrapping::Params parameters = HistogramPhaseUnwrapping::Params())
static
Python:
cv.phase_unwrapping.HistogramPhaseUnwrapping.create([, parameters]) -> retval
cv.phase_unwrapping.HistogramPhaseUnwrapping_create([, parameters]) -> retval

Constructor.

Parameters
parametersHistogramPhaseUnwrapping parameters HistogramPhaseUnwrapping::Params: width,height of the phase map and histogram characteristics.

◆ getInverseReliabilityMap()

virtual void cv::phase_unwrapping::HistogramPhaseUnwrapping::getInverseReliabilityMap ( OutputArray  reliabilityMap)
pure virtual
Python:
cv.phase_unwrapping.HistogramPhaseUnwrapping.getInverseReliabilityMap([, reliabilityMap]) -> reliabilityMap

Get the reliability map computed from the wrapped phase map.

Parameters
reliabilityMapImage where the reliability map is stored.

The documentation for this class was generated from the following file: