template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Not( hls::Mat<ROWS, COLS, SRC_T>& src,
               hls::Mat<ROWS, COLS, DST_T>& dst );


  • src – the input image.
  • dst – the output image.


Performs per-element bit-wise inversion of image srcand outputs the result as image dst.
Image data must be stored in src, the image data of dst must be empty before invocations. Invoking this function will consume the data in src, and filling the image data of dst.
src and dst must have the same size and number of channels.

OpenCV reference

cvNot, cv::bitwise_not