patchGNU Octave - Patches: patch #8014, gray2ind.m - Enable handling of ND...

 
 

patch #8014: gray2ind.m - Enable handling of ND images

Submitter:  Adam H Aitkenhead <adama>
Submitted:  Fri 12 Apr 2013 07:16:54 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  rik5 Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 21 Oct 2013 03:15:41 PM UTC, comment #3: 

Okay.  I applied it here (http://hg.savanna ... /rev/3dec0a57ab55).  It will be part of the next Octave release due out in just a few weeks.  Thanks for contributing.

Rik <rik5>
Group administrator
Mon 21 Oct 2013 09:01:16 AM UTC, comment #2: 

Yes.  A Matlab example is below (using R2010a).

>> A = gray2ind(rand(2,2,2,2))

A(:,:,1,1) =
   40    4
    2   20
A(:,:,2,1) =
   33   26
   41   52
A(:,:,1,2) =
   45   33
   61   20
A(:,:,2,2) =
    7   49
   38   27

Adam H Aitkenhead <adama>
Mon 21 Oct 2013 03:31:17 AM UTC, comment #1: 

Before applying, does Matlab support ND gray images?  They talk about intensity images just being MxN (http://www.mathwo ... /image-types.html).

Rik <rik5>
Group administrator
Fri 12 Apr 2013 07:16:54 PM UTC, original submission:  

Just a trivial edit - All that's needed is to allow ND images as an input.  The existing gray2ind.m code does the rest.

Adam H Aitkenhead <adama>

 

Attached Files

Attached Files
file #27854:  gray2ind_NDimages.diff added by adama (847B - text/x-patch)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by adama (Submitted the item)
  •  

    Votes

    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 logged-in users can vote.

     

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

    History

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-21 rik5 StatusNeed Info Done
        Assigned toNone rik5
        Open/ClosedOpen Closed
    2013-10-21 rik5 StatusNone Need Info
    2013-04-12 adama Attached File- Added gray2ind_NDimages.diff, #27854

    Back to the top

    Powered by Savane 3.16-1eaf.
    Corresponding source code