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

 
 

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

Submitted by:  Adam H Aitkenhead <adama>
Submitted on:  Fri 12 Apr 2013 07:16:54 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Rik <rik5>Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by adama (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 logged-in users can vote.

     

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Oct 2013 03:15:41 PM UTCrik5StatusNeed Info=>Done
      Assigned toNone=>rik5
      Open/ClosedOpen=>Closed
    Mon 21 Oct 2013 03:31:17 AM UTCrik5StatusNone=>Need Info
    Fri 12 Apr 2013 07:16:54 PM UTCadamaAttached File-=>Added gray2ind_NDimages.diff, #27854

    Back to the top


    Powered by Savane 3.1-cleanup