gapi_boundingRect1
import { gapi_boundingRect1 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Calculates the up-right bounding rectangle of a point set or non-zero pixels of gray-scale image.
The function calculates and returns the minimal up-right bounding rectangle for the specified point set or non-zero pixels of gray-scale image.
Note: - Function textual ID is "org.opencv.imgproc.shape.boundingRectMat"
- In case of a 2D points' set given, Mat should be 2-dimensional, have a single row or column
if there are 2 channels, or have 2 columns if there is a single channel. Mat should have either
CV_32SorCV_32Fdepth
gapi_boundingRect1(src: GArray_Point2i): GOpaque_Rect;srcInput gray-scale image
CV_8UC1; or input set ofCV_32SorCV_32F2D points stored in Mat.
The GOpaque_Rect 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.