bugGNU Octave - Bugs: bug #37716, class of image returned from...


bug #37716: class of image returned from gray2ind is not ml compatible

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Mon 12 Nov 2012 05:38:26 AM UTC  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 28 Nov 2012 07:10:56 PM UTC, comment #2:


Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Wed 28 Nov 2012 07:10:24 PM UTC, comment #1:


Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Mon 12 Nov 2012 05:38:26 AM UTC, original submission:


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ë Draug <carandraug>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jordigh (Updated the item)
  • -email is unavailable- added by carandraug (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-30 carandraug Open/ClosedOpen => Closed
    2012-11-28 jordigh StatusPatch Submitted => Fixed
    2012-11-12 jordigh StatusNone => Patch Submitted

    Back to the top

    Powered by Savane 3.3