octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37712] rgb2ind does not return a colormap


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #37712] rgb2ind does not return a colormap
Date: Sun, 11 Nov 2012 04:54:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20100101 Firefox/10.0.10 Iceweasel/10.0.10

URL:
  <http://savannah.gnu.org/bugs/?37712>

                 Summary: rgb2ind does not return a colormap
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Sun 11 Nov 2012 04:54:25 AM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Hi

the colormap returned by rgb2ind is not an actual colormap as its values are
the ones in the original image. But a colormap need to be rescale as it must
be of class double and its values between [0 1].

When fixing this I noticed another problem. For each image point, a new entry
on the colormap is created rather than finding the unique combination of
values and indexing them. I have a patch that fixes both of this problems and
also increases some matlab compatibility by checking the correct class.

Please see changeset 89c8d8f8f87b from
https://bitbucket.org/carandraug/octave/

Pretty much only the documentation and input check is left from the original
file.

Carnë




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37712>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]