
Hi Christian,
Only for rgba gil is using partial specialization since it's using the rgb equivalent to do the wanted conversion. I think it's best to stick with total specialization to avoid confusions and/or breaking other people's code.
The goal of creating this generic conversion is that I can still make the conversion using an intermediate rgb colorspace if there is no specialization. I think I just said that. ;-)
For me, we can do that for all colorspaces. Sorry, I'm not sure to understand your position. You are agree to remove total specialization, even for rgba ? Are you agree to create a generic conversion from Colorspace to C2 for all colorspaces ? default_color_converter_impl<C1,rgba_t> // to remove default_color_converter_impl<rgba_t,C2> // do the same thing for all colorspace
Even when converting from gray to cmyk you wanna create a temporary rgb value? I believe this is a bad idea for various reasons. Please correct me when I'm wrong.
I think there is only two problems: * approximation * performance But if we want to correct these problems we have only to create the missing specialization. So I don't see any problem. It's always interesting to have all conversions. I don't think we will have a specialization to make the conversion from hsl to cmyk in a near futur. So in these cases propose a solution with approximation and performance cost sounds good to me. And it works fine with user custom colorspaces. Regards, Fabien

Hi Fabien, On Fri, Aug 6, 2010 at 6:15 AM, <fabien.castan@free.fr> wrote:
Hi Christian,
Only for rgba gil is using partial specialization since it's using the rgb equivalent to do the wanted conversion. I think it's best to stick with total specialization to avoid confusions and/or breaking other people's code.
The goal of creating this generic conversion is that I can still make the conversion using an intermediate rgb colorspace if there is no specialization. I think I just said that. ;-)
For me, we can do that for all colorspaces.
Sorry, I'm not sure to understand your position. You are agree to remove total specialization, even for rgba ? Are you agree to create a generic conversion from Colorspace to C2 for all colorspaces ? default_color_converter_impl<C1,rgba_t> // to remove default_color_converter_impl<rgba_t,C2> // do the same thing for all colorspace
Sorry, I should have been more clear. I think the current solution we have in boost::gil is good enough. The code is very isolated ( that's a good thing! ) in one file. Though, basically you could create your own color_convert.hpp and everything should fall into place. Meaning when using algorithms, etc. Changing the current code is probably not a good idea since it might break existing code. If you wanna create a better color convert extension, I would like to help out. Especially when you wanna be more flexible to actual implementations like for instance rgb_to_luminance_fn. Regards, Christian
participants (2)
-
Christian Henning
-
fabien.castan@free.fr