|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #59242] ind2rgb/ind2gray errors with uint input containing the maximum integer value outside of colormap range |
Date: | Fri, 9 Oct 2020 11:48:09 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.70 |
Follow-up Comment #3, bug #59242 (project octave): Yeah, you're right. For large, maybe multi-dimensional images, it is probably better to not touch the image. Maybe we should have two branches: The current implementation (+the fix here) for large images (e.g. `numel(x) > maxidx - num_colors + is_int`) and another one for small images. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59242> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |