dnn_blobFromImageWithParams
import { dnn_blobFromImageWithParams } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSimage, param
FUNCTIONdnn_blobFromImageWithParams
RETURN TYPEMat
Creates 4-dimensional blob from image with given params.
This function is an extension of blobFromImage to meet more image preprocess needs.
Given input image and preprocessing parameters, and function outputs the blob.
dnn_blobFromImageWithParams(image: Mat, param: dnn_Image2BlobParams): Mat;2 available overloads
dnn_blobFromImageWithParams(image: Mat): Mat;dnn_blobFromImageWithParams(image: Mat, param: dnn_Image2BlobParams): Mat;imageinput image (all with 1-, 3- or 4-channels).
paramstruct of Image2BlobParams, contains all parameters needed by processing of image to blob.
Returns
4-dimensional Mat. Release returned native handles with using or delete(), including handles nested in results.
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.