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

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

[Octave-bug-tracker] [bug #44070] forge package "image": "label2rgb" wor


From: H. G.
Subject: [Octave-bug-tracker] [bug #44070] forge package "image": "label2rgb" works only with some colormaps
Date: Thu, 22 Jan 2015 19:15:24 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

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

                 Summary: forge package "image": "label2rgb" works only with
some colormaps
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Do 22 Jan 2015 19:15:23 GMT
                Category: Octave Forge Package
                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: 3.8.2
        Operating System: Any

    _______________________________________________________

Details:

The command label2rgb seems to works with some colormaps but not with others.
Here is a short script to show the behavior:


clear
pkg load image

labeled =uint8([1 0 0; 0 0 2;2 2 2]);

RGB_label = label2rgb(labeled, @prism);  % works fine
RGB_label = label2rgb(labeled, @spring); % gives an error = bug?


Both colormaps are implemented, as you can see with

colormap list


This is a behavior occures with Octave 3.8.2 and the current version 2.2.2 of
the image package. (In my case under Linux, but I suspect it to be the same
for all OS.) 

It seems that the number of distinct values in the input variable "labeled" is
relevant. And also the data type uint8 (which is the normal output data type
of the "labelmatrix" command.)




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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