introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.84k stars 786 forks source link

support color histogram equalization #1203

Closed borongyuan closed 10 months ago

borongyuan commented 10 months ago

Add support for histogram equalization of color images. Color images are first converted to YCrCb color space, and histogram equalization is performed only on the Y channel. Why use YCrCb instead of HSV or LAB? They should have similar results. But according to OpenCV's color conversion documentation, the Y channel of BGR2YCrCb is calculated in the same way as BGR2GRAY. Therefore, it can ensure the same effect as converting to gray image first and then performing histogram equalization.

matlabbe commented 10 months ago

LGTM!