ximgproc_PeiLinNormalization
import { ximgproc_PeiLinNormalization } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Calculates an affine transformation that normalize given image using Pei&Lin Normalization.
Assume given image I=T(\bar{I}) where \bar{I} is a normalized image and T is an affine transformation distorting this image by translation, rotation, scaling and skew.
The function returns an affine transformation matrix corresponding to the transformation T^{-1} described in [PeiLin95].
For more details about this implementation, please see
[PeiLin95] Soo-Chang Pei and Chao-Nan Lin. Image normalization for pattern recognition. Image and Vision Computing, Vol. 13, N.10, pp. 711-723, 1995.
ximgproc_PeiLinNormalization(I: Mat, T: Mat): void;IGiven transformed image.
TOutput destination, filled by the native operation. t argument (Mat).
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.