Skip to content

ximgproc_readGT

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_readGT } from '@banou/opencv-wasm'

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

ARGUMENTSsrc_path, dst
FUNCTIONximgproc_readGT
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Function for reading ground truth disparity maps. Supports basic Middlebury and MPI-Sintel formats. Note that the resulting disparity map is scaled by 16.

result: returns zero if successfully read the ground truth

ximgproc_readGT(src_path: EmbindString, dst: Mat): number;
src_path

path to the image, containing ground-truth disparity map

dst

Output destination, filled by the native operation. output disparity map, CV_16S depth

Returns

The number result.

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.