structured_light_SinusoidalPattern
import { structured_light_SinusoidalPattern } 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 structured_light_StructuredLightPattern.
Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP) and Fourier-assisted phase-shifting profilometry (FAPS) based on [faps]. This class generates sinusoidal patterns that can be used with FTP, PSP and FAPS.
Constructors and members
static create
structured_light_SinusoidalPattern.create: Constructor.
create(parameters: structured_light_SinusoidalPattern_Params | null): structured_light_SinusoidalPattern | null;2 available overloads
create(): structured_light_SinusoidalPattern | null;create(parameters: structured_light_SinusoidalPattern_Params | null): structured_light_SinusoidalPattern | null;parametersSinusoidalPattern parameters SinusoidalPattern::Params: width, height of the projector and patterns parameters.
The structured_light_SinusoidalPattern | 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;The this result.
computePhaseMap
Compute a wrapped phase map from sinusoidal patterns.
computePhaseMap(patternImages: MatVector, wrappedPhaseMap: Mat, shadowMask: Mat, fundamental: Mat): void;3 available overloads
computePhaseMap(patternImages: MatVector, wrappedPhaseMap: Mat): void;computePhaseMap(patternImages: MatVector, wrappedPhaseMap: Mat, shadowMask: Mat): void;computePhaseMap(patternImages: MatVector, wrappedPhaseMap: Mat, shadowMask: Mat, fundamental: Mat): void;patternImagesInput data to compute the wrapped phase map.
wrappedPhaseMapOutput destination, filled by the native operation. Wrapped phase map obtained through one of the three methods.
shadowMaskOutput destination, filled by the native operation. Mask used to discard shadow regions.
fundamentalFundamental matrix used to compute epipolar lines and ease the matching step.
unwrapPhaseMap
Unwrap the wrapped phase map to remove phase ambiguities.
unwrapPhaseMap(wrappedPhaseMap: Mat, unwrappedPhaseMap: Mat, camSize: Size, shadowMask: Mat): void;2 available overloads
unwrapPhaseMap(wrappedPhaseMap: Mat, unwrappedPhaseMap: Mat, camSize: Size): void;unwrapPhaseMap(wrappedPhaseMap: Mat, unwrappedPhaseMap: Mat, camSize: Size, shadowMask: Mat): void;wrappedPhaseMapThe wrapped phase map computed from the pattern.
unwrappedPhaseMapOutput destination, filled by the native operation. The unwrapped phase map used to find correspondences between the two devices.
camSizeResolution of the camera.
shadowMaskMask used to discard shadow regions.
findProCamMatches
Find correspondences between the two devices thanks to unwrapped phase maps.
findProCamMatches(projUnwrappedPhaseMap: Mat, camUnwrappedPhaseMap: Mat, matches: MatVector): void;projUnwrappedPhaseMapProjector's unwrapped phase map.
camUnwrappedPhaseMapCamera's unwrapped phase map.
matchesOutput destination, filled by the native operation. Images used to display correspondences map.
computeDataModulationTerm
compute the data modulation term.
computeDataModulationTerm(patternImages: MatVector, dataModulationTerm: Mat, shadowMask: Mat): void;patternImagescaptured images with projected patterns.
dataModulationTermOutput destination, filled by the native operation. Mat where the data modulation term is saved.
shadowMaskMask used to discard shadow regions.
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.