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

 
 

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

Submitter:  Carnë Draug <carandraug>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 28 Nov 2012 07:10:56 PM UTC, comment #2: 
Jordi Gutiérrez Hermoso <jordigh>
Group Member
Wed 28 Nov 2012 07:10:24 PM UTC, comment #1: 

Done.

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

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ë

Carnë Draug <carandraug>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    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.13-f8d8.
    Corresponding source code