Skip to content

phase_unwrapping_HistogramPhaseUnwrapping

phase_unwrappingclassOpenCV 5.0.0
import { phase_unwrapping_HistogramPhaseUnwrapping } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits phase_unwrapping_PhaseUnwrapping.

Class implementing two-dimensional phase unwrapping based on [histogramUnwrapping] 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 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.

Constructors and members

static create

phase_unwrapping_HistogramPhaseUnwrapping.create: Constructor

create(parameters: phase_unwrapping_HistogramPhaseUnwrapping_Params): phase_unwrapping_HistogramPhaseUnwrapping | null;
2 available overloads
create(): phase_unwrapping_HistogramPhaseUnwrapping | null;
create(parameters: phase_unwrapping_HistogramPhaseUnwrapping_Params): phase_unwrapping_HistogramPhaseUnwrapping | null;
parameters

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

Returns

The phase_unwrapping_HistogramPhaseUnwrapping | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

getInverseReliabilityMap

Get the reliability map computed from the wrapped phase map.

getInverseReliabilityMap(reliabilityMap: Mat): void;
reliabilityMap

Output destination, filled by the native operation. Image where the reliability map is stored.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.