Skip to content

bitwise_not

Core and matricesfunctionOpenCV 5.0.0
import { bitwise_not } from '@banou/opencv-wasm'

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

ARGUMENTSsrc, dst, mask
FUNCTIONbitwise_not
RETURN TYPEvoid
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 cv::bitwise_not calculates per-element bit-wise inversion of the input array:

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

In case of a floating-point input array, its machine-specific bit representation (usually IEEE754-compliant) is used for the operation. In case of multi-channel arrays, each channel is processed independently.

bitwise_not(src: Mat, dst: Mat, mask: Mat): void;
2 available overloads
bitwise_not(src: Mat, dst: Mat): void;
bitwise_not(src: Mat, dst: Mat, mask: Mat): void;
src

input array.

dst

Output destination, filled by the native operation. output array that has the same size and type as the input array.

mask

optional operation mask, CV_8U, CV_8S or CV_Bool single channel array, that specifies elements of the output array to be changed.

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.