bitwise_not
import { bitwise_not } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;srcinput array.
dstOutput destination, filled by the native operation. output array that has the same size and type as the input array.
maskoptional 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.