Skip to content

gapi_bitwise_not

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

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

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

Inverts every bit of an array.

The function bitwise_not calculates per-element bit-wise inversion of the input matrix:

\texttt{dst} (I) =  \neg \texttt{src} (I)

In case of floating-point matrices, their machine-specific bit representations (usually IEEE754-compliant) are used for the operation. In case of multi-channel matrices, each channel is processed independently. Output matrix must have the same size and depth as the input matrix.

Supported matrix data types are CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1.

Note: Function textual ID is "org.opencv.core.pixelwise.bitwise_not"

gapi_bitwise_not(src: GMat): GMat;
src

input matrix.

Returns

The GMat 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.