open-mmlab / mmcv

OpenMMLab Computer Vision Foundation
https://mmcv.readthedocs.io/en/latest/
Apache License 2.0
5.92k stars 1.66k forks source link

[Feature] adjust_contrast adjust_color support gray #3036

Open holdjun opened 9 months ago

holdjun commented 9 months ago

What is the feature?

adjust_contrast and adjust_color not support gray images? It seems like the source code always calls bgr2gray. The default input image is in BGR format. Could you add a condition for this?

Any other context?

In the mmcv library, are the functions for adjusting images by default in BGR format, and do they not support grayscale? No response