Class HistogramPhaseUnwrapping
- Namespace
- Emgu.CV.PhaseUnwrapping
- Assembly
- Emgu.CV.dll
Class implementing two-dimensional phase unwrapping.
public class HistogramPhaseUnwrapping : UnmanagedObject, IDisposable
- Inheritance
-
HistogramPhaseUnwrapping
- Implements
- Inherited Members
Remarks
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 16pipi. 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 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.
Constructors
HistogramPhaseUnwrapping(int, int, float, int, int)
Create a HistogramPhaseUnwrapping instance
public HistogramPhaseUnwrapping(int width = 800, int height = 600, float histThresh = 29.608812, int nbrOfSmallBins = 10, int nbrOfLargeBins = 5)
Parameters
width
intPhase map width.
height
intPhase map height.
histThresh
floatBins in the histogram are not of equal size. Default value is 3pipi. The one before "histThresh" value are smaller.
nbrOfSmallBins
intNumber of bins between 0 and "histThresh". Default value is 10.
nbrOfLargeBins
intNumber of bins between "histThresh" and 32pipi (highest edge reliability value). Default value is 5.
Methods
DisposeObject()
Release the unmanaged resources associated with the HistogramPhaseUnwrapping
protected override void DisposeObject()
GetInverseReliabilityMap(IOutputArray)
Get the reliability map computed from the wrapped phase map.
public void GetInverseReliabilityMap(IOutputArray reliabilityMap)
Parameters
reliabilityMap
IOutputArrayImage where the reliability map is stored.
UnwrapPhaseMap(IInputArray, IOutputArray, IInputArray)
Unwraps a 2D phase map.
public void UnwrapPhaseMap(IInputArray wrappedPhaseMap, IOutputArray unwrappedPhaseMap, IInputArray shadowMask = null)
Parameters
wrappedPhaseMap
IInputArrayThe wrapped phase map that needs to be unwrapped.
unwrappedPhaseMap
IOutputArrayThe unwrapped phase map.
shadowMask
IInputArrayOptional parameter used when some pixels do not hold any phase information in the wrapped phase map.