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

Add a New Comment Rich Markup
   

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

Okay.  I applied it here (http://hg.savannah.gnu.org/hgweb/octave/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.mathworks.com/help/matlab/creating_plots/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>

 

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

Attach Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by adama (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 logged-in users can vote.

     

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