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 Apr 12 19:16:54 2013  
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 Oct 21 15:15:41 2013, comment #3:

Okay. I applied it here ( 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 Oct 21 09:01:16 2013, 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 Oct 21 03:31:17 2013, comment #1:

Before applying, does Matlab support ND gray images? They talk about intensity images just being MxN (

Rik <rik5>
Project AdministratorIn charge of this item.
Fri Apr 12 19:16:54 2013, 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):

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 Oct 21 15:15:41 2013rik5StatusNeed Info=>Done
      Assigned toNone=>rik5
    Mon Oct 21 03:31:17 2013rik5StatusNone=>Need Info
    Fri Apr 12 19:16:54 2013adamaAttached File-=>Added gray2ind_NDimages.diff, #27854

    Back to the top

    Powered by Savane 3.1-cleanup1