diff scripts/image/ind2gray.m @ 24610:3ad53e4793fc

rgb2gray: New function to convert RGB images to grayscale images. * scripts/image/rgb2gray.m: New function. * scripts/image/module.mk: Add function to build system. * NEWS: Announce function. * image.txi: Add DOCSTRING to manual. * ind2gray.m, rgb2hsv.m, rgb2ind.m: Replace references to rgb2ntsc in documentation with rgb2gray.
author Rik <rik@octave.org>
date Tue, 16 Jan 2018 21:14:22 -0800
parents e6b22e378389
children 6652d3823428
line wrap: on
line diff
--- a/scripts/image/ind2gray.m	Tue Jan 16 17:21:47 2018 -0800
+++ b/scripts/image/ind2gray.m	Tue Jan 16 21:14:22 2018 -0800
@@ -30,7 +30,7 @@
 ##
 ## Implementation Note: There are several ways of converting colors to
 ## grayscale intensities.  This functions uses the luminance value obtained
-## from @code{rgb2ntsc} which is @code{I = 0.299*R + 0.587*G + 0.114*B}.
+## from @code{rgb2gray} which is @code{I = 0.299*R + 0.587*G + 0.114*B}.
 ## Other possibilities include the value component from @code{rgb2hsv} or
 ## using a single color channel from @code{ind2rgb}.
 ## @seealso{gray2ind, ind2rgb}