Mercurial > hg > octave-nkf
comparison scripts/image/private/ind2x.m @ 15712:74ff287f41cb
Remove default colormap for ind2rgb and ind2gray.
author | Carnë Draug <carandraug+dev@gmail.com> |
---|---|
date | Sun, 02 Dec 2012 13:12:53 +0100 |
parents | a1b634240352 |
children | b1cd65881592 |
comparison
equal
deleted
inserted
replaced
15711:e88b31c485c0 | 15712:74ff287f41cb |
---|---|
46 maxidx += 1; | 46 maxidx += 1; |
47 endif | 47 endif |
48 | 48 |
49 rm = rows (map); | 49 rm = rows (map); |
50 if (rm < maxidx) | 50 if (rm < maxidx) |
51 ## Pad with the last color in the map. | 51 ## Pad with the last color in the map for matlab compatibility |
52 pad = repmat (map(end,:), maxidx-rm, 1); | 52 pad = repmat (map(end,:), maxidx-rm, 1); |
53 map(end+1:maxidx, :) = pad; | 53 map(end+1:maxidx, :) = pad; |
54 endif | 54 endif |
55 | 55 |
56 endfunction | 56 endfunction |