changeset 29814:ba49cea1597f stable

rgb2ind.m: Suppress output in test. * scripts/image/rgb2ind.m: Suppress output in test.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 24 Jun 2021 20:46:24 +0200
parents f98303911259
children e637c2342433 ba571657651a
files scripts/image/rgb2ind.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/image/rgb2ind.m	Thu Jun 24 18:50:25 2021 +0200
+++ b/scripts/image/rgb2ind.m	Thu Jun 24 20:46:24 2021 +0200
@@ -132,7 +132,7 @@
 %!test
 %! ## this should have more than 65535 unique colors
 %! rgb = nchoosek (0:80, 3) / 80;
-%! nr = rows (rgb)
+%! nr = rows (rgb);
 %! assert (nr > 65535);
 %! rgb = reshape (rgb, [1, nr, 3]);
 %! [ind, map] = rgb2ind (rgb);
@@ -141,7 +141,7 @@
 %!
 %! ## and this should have between 256 and 65535 unique colors
 %! rgb = nchoosek (0:40, 3) / 80;
-%! nr = rows (rgb)
+%! nr = rows (rgb);
 %! assert (nr >= 256 && nr <= 65535);
 %! rgb = reshape (rgb, [1, nr, 3]);
 %! [ind, map] = rgb2ind (rgb);
@@ -150,7 +150,7 @@
 %!
 %! ## and this one should have fewer than than 256 unique colors
 %! rgb = nchoosek (0:10, 3) / 80;
-%! nr = rows (rgb)
+%! nr = rows (rgb);
 %! assert (nr < 256);
 %! rgb = reshape (rgb, [1, nr, 3]);
 %! [ind, map] = rgb2ind (rgb);