Mercurial > octave-nkf
comparison scripts/image/rgb2ind.m @ 17306:09543e9c8f40
Use explicit form of end (endif, endfor, etc.) in core m-files.
* scripts/general/interp1.m, scripts/image/rgb2ind.m,
scripts/plot/__gnuplot_drawnow__.m, scripts/plot/private/__ezplot__.m,
scripts/plot/private/__go_draw_axes__.m, scripts/special-matrix/gallery.m,
scripts/strings/strjoin.m, scripts/testfun/assert.m, scripts/ui/questdlg.m:
Use explicit form of end (endif, endfor, etc.) in core m-files.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 21 Aug 2013 16:42:13 -0700 |
parents | bc924baa2c4e |
children | 4448cc742880 |
comparison
equal
deleted
inserted
replaced
17305:ab71b9829752 | 17306:09543e9c8f40 |
---|---|
143 | 143 |
144 ## If image is an ND array, convert it to a tiled 2D image | 144 ## If image is an ND array, convert it to a tiled 2D image |
145 ## before processing it with Graphicsmagick | 145 ## before processing it with Graphicsmagick |
146 if (numel (sz) > 3) | 146 if (numel (sz) > 3) |
147 rgb = reshape (rgb, [prod(sz(1:end-2)), sz(end-1), 3]); | 147 rgb = reshape (rgb, [prod(sz(1:end-2)), sz(end-1), 3]); |
148 end | 148 endif |
149 | 149 |
150 ## Prepare the Graphicsmagick dithering option | 150 ## Prepare the Graphicsmagick dithering option |
151 if (strcmp (dither_option, "nodither")) | 151 if (strcmp (dither_option, "nodither")) |
152 ditherstr = "+dither"; | 152 ditherstr = "+dither"; |
153 elseif (strcmp (dither_option, "dither")) | 153 elseif (strcmp (dither_option, "dither")) |