mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 13:16:32 -06:00
core: add the missing CV_Bool kernel to cv::compare The fix is not simply reusing the uchar kernel. A CV_Bool byte is not guaranteed to be 0 or 1: Mat wrapping an external buffer performs no conversion, so other values are reachable through the public API, and comparing the raw bytes would order 2 above 1 when both mean true.