I've been using Boost.GIL to perform some basic image processing routine. In Boost.GIL, colorspace conversion between pixels of different type is realized by template specialization of a generic convert_pixel( )
function.
However, I would love to override these implementation with something based on LCMS, for instance.
Is there any way to override the specialization of the template so that whichever internal call to convert_pixel()
will use the newly LCMS-based convert_pixel()
?
Final aswer
digging into the GIL design manual (much more interesting than the tutorial), I've found how Adobe suggest to solve this problem. For those we are interested, this link provides the answer: http://www.boost.org/doc/libs/1_49_0/libs/gil/doc/html/gildesignguide.html#NewColorConversionDG