reshapeWithShape
import { reshapeWithShape } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTS_0, _1, _2
FUNCTIONreshapeWithShape
RETURN TYPEMat
Create an owned matrix header with new channel count and tensor dimensions without copying pixels. The total element count must stay unchanged and native continuity rules apply.
reshapeWithShape(_0: Mat, _1: number, _2: IntVector): Mat;_00 argument (Mat).
_11 argument (number).
_22 argument (IntVector).
Returns
The Mat result. 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.