ximgproc_readGT
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
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_pathpath to the image, containing ground-truth disparity map
dstOutput 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.