ros-perception / vision_opencv

Apache License 2.0
549 stars 601 forks source link

Suspicious code in `getConversionCode()` #533

Closed galou closed 5 months ago

galou commented 5 months ago

In getConversionCode, there a some suspicious addition of || enc::isMono(src_encoding) in the code to determine if the source encoding (is_src_color_format) is a color one. Same for is_dst_color_format.

I can write a PR.

galou commented 5 months ago

Cf. https://github.com/ros-perception/vision_opencv/issues/431