Binding for color conversions in bob.ip
Created by: siebenkopf
Currently, we have color conversion functions bound to python, which are dependent on the data type. E.g. we have four different functions to convert RGB to Gray:
- rgb_to_gray(image, image)
- rgb_to_gray_f(float, float, float)
- rgb_to_gray_u8(int, int, int)
- rgb_to_gray_u16(int, int, int)
At least for the latter three functions I would rather consider a more pythonic way, like
- rgb_to_gray(float, float, float, dtype)
so that this function can be called with any data type. During binding, one could select the appropriate C++ implementation...