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

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

[Octave-bug-tracker] [bug #37716] class of image returned from gray2ind


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #37716] class of image returned from gray2ind is not ml compatible
Date: Mon, 12 Nov 2012 05:38:28 +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/?37716>

                 Summary: class of image returned from gray2ind is not ml
compatible
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Mon 12 Nov 2012 05:38:26 AM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Hi

gray2ind should return an image of the uint8 or uint16 class as per matlab
documentation. Since there is no description of what happens when not even
uint16 is enough, I made it return an indexed image of class double. Note that
there's an offset of 1 depending on the class.

I have also extended it accept binary images with n defaulting to 2 in such
cases.

Please pull changesets 7d21456 and dffb28f from
https://bitbucket.org/carandraug/octave/

Carnë




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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