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: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to 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
    Fri 30 Nov 2012 08:13:03 AM UTCcarandraugOpen/ClosedOpen=>Closed
    Wed 28 Nov 2012 07:10:24 PM UTCjordighStatusPatch Submitted=>Fixed
    Mon 12 Nov 2012 03:33:49 PM UTCjordighStatusNone=>Patch Submitted

    Back to the top

    Powered by Savane 3.1-cleanup1