[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47115] label2rgb from image-package doesn't w
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #47115] label2rgb from image-package doesn't work for labels with value above the uint16 limit |
Date: |
Tue, 29 Mar 2016 19:37:44 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #1, bug #47115 (project octave):
The Octave file ind2x.m has currently (image repo) an explicit test for only
the two integer classes uint8 and uint16:
## Check if X is an indexed image.
## An indexed image is defined has having only 2D, and that's how Matlab
## behaves. But we want to support ND images, so we will allow up to 4D
## and check that the 3rd dimension is a singleton.
if (all (ndims (x) != [2 4]) || size (x, 3) != 1
|| iscomplex (x) || issparse (x)
|| (isfloat (x) && x != fix (x))
|| ! any (strcmp (class (x), {"uint8", "uint16", "single", "double"})))
error ("%s: X must be an indexed image", caller);
endif
Maybe we can change this to allow also uint32 and uint64 integers? Or would
this harm any other user of this helper function?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47115>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47115] label2rgb from image-package doesn't work for labels with value above the uint16 limit,
Hartmut <=