Mercurial > hg > octave-jordi
changeset 17209:eb88f77b3e26
rgb2ntsc.m: Correct %!assert tests which had incorrect expected values.
* scripts/image/rgb2ntsc.m: Correct %!assert tests which had incorrect expected
values.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 08 Aug 2013 13:32:22 -0700 |
parents | 2527bc7200ee |
children | 73dd413f2c3e |
files | scripts/image/rgb2ntsc.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/rgb2ntsc.m +++ b/scripts/image/rgb2ntsc.m @@ -98,9 +98,9 @@ %% Test pure RED, GREEN, BLUE colors -%!assert (rgb2ntsc ([1 0 0]), [.299 .587 .114]) -%!assert (rgb2ntsc ([0 1 0]), [.596 -.274 -.322]) -%!assert (rgb2ntsc ([1 0 1]), [.211 -.523 .312]) +%!assert (rgb2ntsc ([1 0 0]), [.299 .596 .211]) +%!assert (rgb2ntsc ([0 1 0]), [.587 -.274 -.523]) +%!assert (rgb2ntsc ([0 0 1]), [.114 -.322 .312]) %!test %! rgb_map = rand (64, 3);