Mercurial > octave-nkf
diff scripts/image/hsv2rgb.m @ 10433:2c01d24459fb
Detabify scripts in 'scripts/image/'
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Mon, 22 Mar 2010 12:36:30 -0700 |
parents | eb63fbe60fab |
children | 3140cb7a05a1 |
line wrap: on
line diff
--- a/scripts/image/hsv2rgb.m Mon Mar 22 13:54:22 2010 +0100 +++ b/scripts/image/hsv2rgb.m Mon Mar 22 12:36:30 2010 -0700 @@ -77,8 +77,8 @@ ## add s*v* hue-function to rgb map rgb_map = rgb_map + f .* (6 * (hue < 1/6) .* hue - + (hue >= 1/6 & hue < 1/2) - + (hue >= 1/2 & hue < 2/3) .* (4 - 6 * hue)); + + (hue >= 1/6 & hue < 1/2) + + (hue >= 1/2 & hue < 2/3) .* (4 - 6 * hue)); ## If input was an image, convert it back into one. if (is_image)