diff scripts/image/rgb2hsv.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/rgb2hsv.m	Thu Jan 20 17:24:59 2011 -0500
+++ b/scripts/image/rgb2hsv.m	Thu Jan 20 17:35:29 2011 -0500
@@ -24,7 +24,7 @@
 ##
 ## In the HSV space each color is represented by their hue, saturation
 ## and value (brightness).  Value gives the amount of light in the color.
-## Hue describes the dominant wavelength. 
+## Hue describes the dominant wavelength.
 ## Saturation is the amount of hue mixed into the color.
 ## @seealso{hsv2rgb}
 ## @end deftypefn
@@ -65,7 +65,7 @@
   ## set hue to zero for undefined values (gray has no hue)
   h = zeros (size (v));
   notgray = (s != v);
-    
+
   ## blue hue
   idx = (v == rgb(:,3) & notgray);
   if (any (idx))
@@ -93,7 +93,7 @@
   s(notgray) = 1 - s(notgray) ./ v(notgray);
 
   hsv_map = [h, s, v];
-  
+
   ## If input was an image, convert it back into one.
   if (is_image)
     hsv_map = reshape (hsv_map, Sz);