diff scripts/image/hsv2rgb.m @ 11587:c792872f8942

all script files: untabify and strip trailing whitespace
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:35:29 -0500
parents fd0a3ac60b0e
children 72c96de7a403
line wrap: on
line diff
--- a/scripts/image/hsv2rgb.m	Thu Jan 20 17:24:59 2011 -0500
+++ b/scripts/image/hsv2rgb.m	Thu Jan 20 17:35:29 2011 -0500
@@ -18,7 +18,7 @@
 
 ## -*- texinfo -*-
 ## @deftypefn {Function File} {@var{rgb_map} =} hsv2rgb (@var{hsv_map})
-## Transform a colormap or image from the HSV space to the RGB space. 
+## Transform a colormap or image from the HSV space to the RGB space.
 ## @seealso{rgb2hsv}
 ## @end deftypefn
 
@@ -64,7 +64,7 @@
   rgb_map = kron ([1, 1, 1], hsv_map(:,3) .* (1 - hsv_map(:,2)));
 
   ## red(hue-2/3)=green(hue)=blue(hue-1/3)
-  ## apply modulo 1 for red and blue 
+  ## apply modulo 1 for red and blue
   t = hsv_map(:,1);
   tp = t';
   hue = [(tp - 2/3 - floor (t - 2/3)');