ros-perception / vision_opencv

Apache License 2.0
536 stars 599 forks source link

Magic number in `getConversionCodes()` #532

Open galou opened 2 months ago

galou commented 2 months ago

There is a magic 5 in getConversionCodes(). Shouldn't it actually be 10, the last index of the Encoding enum?

Anyway, a comment should be added explaining the number there.