Skip to content

_OutputArray_DepthMask

Core and matricesclassOpenCV 5.0.0
import { _OutputArray_DepthMask } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASS_OutputArray_DepthMask
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

This type is very similar to InputArray except that it is used for input/output and output function parameters.

Just like with InputArray, OpenCV users should not care about OutputArray, they just pass Mat, vector<T> etc. to the functions. The same limitation as for InputArray: Do not explicitly create OutputArray instances applies here too.

If you want to make your function polymorphic (i.e. accept different arrays as output parameters), it is also not very difficult. Take the sample above as the reference. Note that _OutputArray::create() needs to be called before _OutputArray::getMat(). This way you guarantee that the output array is properly allocated.

Optional output parameters. If you do not need certain output array to be computed and returned to you, pass cv::noArray(), just like you would in the case of optional input array. At the implementation level, use _OutputArray::needed() to check if certain output array needs to be computed or not.

There are several synonyms for OutputArray that are used to assist automatic Python/Java/... wrapper generators:

    typedef OutputArray OutputArrayOfArrays;
    typedef OutputArray InputOutputArray;
    typedef OutputArray InputOutputArrayOfArrays;

Constructors and members

static DEPTH_MASK_8U

depth mask 8 u constant (1 << CV_8U), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_8U: _OutputArray_DepthMaskValue<1>,

static DEPTH_MASK_8S

depth mask 8 s constant (1 << CV_8S), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_8S: _OutputArray_DepthMaskValue<2>,

static DEPTH_MASK_16U

depth mask 16 u constant (1 << CV_16U), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_16U: _OutputArray_DepthMaskValue<4>,

static DEPTH_MASK_16S

depth mask 16 s constant (1 << CV_16S), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_16S: _OutputArray_DepthMaskValue<8>,

static DEPTH_MASK_32S

depth mask 32 s constant (1 << CV_32S), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_32S: _OutputArray_DepthMaskValue<16>,

static DEPTH_MASK_32F

depth mask 32 f constant (1 << CV_32F), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_32F: _OutputArray_DepthMaskValue<32>,

static DEPTH_MASK_64F

depth mask 64 f constant (1 << CV_64F), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_64F: _OutputArray_DepthMaskValue<64>,

static DEPTH_MASK_16F

depth mask 16 f constant (1 << CV_16F), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_16F: _OutputArray_DepthMaskValue<128>,

static DEPTH_MASK_16BF

depth mask 16 bf constant (1 << CV_16BF), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_16BF: _OutputArray_DepthMaskValue<256>,

static DEPTH_MASK_BOOL

depth mask bool constant (1 << CV_Bool), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_BOOL: _OutputArray_DepthMaskValue<512>,

static DEPTH_MASK_64U

depth mask 64 u constant (1 << CV_64U), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_64U: _OutputArray_DepthMaskValue<1024>,

static DEPTH_MASK_64S

depth mask 64 s constant (1 << CV_64S), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_64S: _OutputArray_DepthMaskValue<2048>,

static DEPTH_MASK_32U

depth mask 32 u constant (1 << CV_32U), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_32U: _OutputArray_DepthMaskValue<4096>,

static DEPTH_MASK_ALL

depth mask all constant ((1 << CV_DEPTH_CURR_MAX)-1), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_ALL: _OutputArray_DepthMaskValue<8191>,

static DEPTH_MASK_ALL_BUT_8S

depth mask all but 8 s constant (DEPTH_MASK_ALL & ~DEPTH_MASK_8S), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_ALL_BUT_8S: _OutputArray_DepthMaskValue<8189>,

static DEPTH_MASK_ALL_16F

depth mask all 16 f constant (DEPTH_MASK_ALL), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_ALL_16F: _OutputArray_DepthMaskValue<8191>,

static DEPTH_MASK_FLT

depth mask flt constant (DEPTH_MASK_32F + DEPTH_MASK_64F), defined by OpenCV for cv::_OutputArray.

DEPTH_MASK_FLT: _OutputArray_DepthMaskValue<96>

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.