Skip to content

gapi_boundingRect2

gapifunctionOpenCV 5.0.0
import { gapi_boundingRect2 } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc
FUNCTIONgapi_boundingRect2
RETURN TYPEGOpaque_Rect
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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_32S or CV_32F depth
gapi_boundingRect2(src: GArray_Point2f): GOpaque_Rect;
src

Input gray-scale image CV_8UC1; or input set of CV_32S or CV_32F 2D points stored in Mat.

Returns

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.