[vtk-developers] [EXTERNAL] RGBToHSV hue range

Moreland, Kenneth kmorel at sandia.gov
Wed Nov 30 19:30:43 EST 2011


I'm all for clarifying the documentation (thanks for volunteering, David),
but I recommend NOT changing the implementation for two reasons.  First,
scaling between 0 and 1 (or 0 and 255 for fixed point) is pretty common.
Second, this would be a disruptive change with no smooth transition path.


-Ken

On 11/30/11 9:04 AM, "David Doria" <daviddoria at gmail.com> wrote:

>It seems that vtkMath::RGBToHSV returns the value of hue from 0 to 1.
>Isn't a more standard hue range 0 to 2*pi (as it indicates an angular
>position on the HSV cylinder) ? Should this be changed? If not, we
>should at least note it in the documentation.
>
>David
>_______________________________________________
>Powered by www.kitware.com
>
>Visit other Kitware open-source projects at
>http://www.kitware.com/opensource/opensource.html
>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtk-developers
>
>





More information about the vtk-developers mailing list