Thread Subject: 3-D neighborhood operations

Subject: 3-D neighborhood operations

From: James

Date: 4 Feb, 2008 18:12:04

Message: 1 of 5

   Does MATLAB have any functions to do neighborhood
operations on a 3-D array? I have been unable to find
them.

   I want to count the number of pixels for each unique
color in a colorspace (3-D) and then form regions in that
colorspace that represent similar colors. So, I was
thinking of using neighborhood operations in that 3-D
colorspace to apply rules to do this.

          Thanks, Alan



Subject: 3-D neighborhood operations

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 4 Feb, 2008 19:28:29

Message: 2 of 5

In article <fo7khk$khi$1@fred.mathworks.com>,
James <jalanNOSPAMthomas@verizon.net> wrote:

> Does MATLAB have any functions to do neighborhood
>operations on a 3-D array? I have been unable to find
>them.

I do not know of any, but I barely use the image processing toolbox.

> I want to count the number of pixels for each unique
>color in a colorspace (3-D) and then form regions in that
>colorspace that represent similar colors. So, I was
>thinking of using neighborhood operations in that 3-D
>colorspace to apply rules to do this.

Usually what you would end up doing is vectorizing the
operations by shifting the effective vector starts. For example,
to 'or' the neighbour before and after on the same row, you
could use

theimage(1:end-2,:) | theimage(3:end,:)

producing an N-2 by whatever array with all of the 'or' done
at once for every row and column.
--
This is a Usenet signature block. Please do not quote it when replying
to one of my postings.
http://en.wikipedia.org/wiki/Signature_block

Subject: 3-D neighborhood operations

From: ImageAnalyst

Date: 5 Feb, 2008 00:00:42

Message: 3 of 5

On Feb 4, 1:12=A0pm, "James " <jalanNOSPAMtho...@verizon.net> wrote:
> =A0 =A0Does MATLAB have any functions to do neighborhood
> operations on a 3-D array? =A0 I have been unable to find
> them. =A0
>
> =A0 =A0I want to count the number of pixels for each unique
> color in a colorspace (3-D) and then form regions in that
> colorspace that represent similar colors. =A0So, I was
> thinking of using neighborhood operations in that 3-D
> colorspace to apply rules to do this. =A0
>
> =A0 =A0 =A0 =A0 =A0 Thanks, Alan

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
Not that I know of. I'd love to have a 3D hole filling function, plus
3D gray scale morphology functions like closing, opening, dilation,
etc..
Regards,
ImageAnalyst

Subject: 3-D neighborhood operations

From: Steve Eddins

Date: 6 Feb, 2008 16:00:12

Message: 4 of 5

ImageAnalyst wrote:
> On Feb 4, 1:12 pm, "James " <jalanNOSPAMtho...@verizon.net> wrote:
>> Does MATLAB have any functions to do neighborhood
>> operations on a 3-D array? I have been unable to find
>> them.
>>
>> I want to count the number of pixels for each unique
>> color in a colorspace (3-D) and then form regions in that
>> colorspace that represent similar colors. So, I was
>> thinking of using neighborhood operations in that 3-D
>> colorspace to apply rules to do this.
>>
>> Thanks, Alan
>
> =====================================================
> Not that I know of. I'd love to have a 3D hole filling function, plus
> 3D gray scale morphology functions like closing, opening, dilation,
> etc..
> Regards,
> ImageAnalyst

All of these operations, and many more, are supported in arbitrary
dimensions by Image Processing Toolbox functions.

---
Steve Eddins
http://blogs.mathworks.com/steve/

Subject: 3-D neighborhood operations

From: ImageAnalyst

Date: 6 Feb, 2008 16:37:02

Message: 5 of 5

On Feb 6, 11:00=A0am, Steve Eddins <Steve.Edd...@mathworks.com> wrote:
> ImageAnalyst wrote:
> > On Feb 4, 1:12 pm, "James " <jalanNOSPAMtho...@verizon.net> wrote:
> >> =A0 =A0Does MATLAB have any functions to do neighborhood
> >> operations on a 3-D array? =A0 I have been unable to find
> >> them. =A0
>
> >> =A0 =A0I want to count the number of pixels for each unique
> >> color in a colorspace (3-D) and then form regions in that
> >> colorspace that represent similar colors. =A0So, I was
> >> thinking of using neighborhood operations in that 3-D
> >> colorspace to apply rules to do this. =A0
>
> >> =A0 =A0 =A0 =A0 =A0 Thanks, Alan
>
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> > Not that I know of. =A0I'd love to have a 3D hole filling function, plus=

> > 3D gray scale morphology functions like closing, opening, dilation,
> > etc..
> > Regards,
> > ImageAnalyst
>
> All of these operations, and many more, are supported in arbitrary
> dimensions by Image Processing Toolbox functions.
>
> ---
> Steve Eddinshttp://blogs.mathworks.com/steve/- Hide quoted text -
>
> - Show quoted text -

Steve:
Yes you are correct. A closer reading of the documentation shows that
they support images of any dimensions. Thanks for pointing that out.
ImageAnalyst

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
3d James 4 Feb, 2008 13:15:05
color James 4 Feb, 2008 13:15:05
neighborhood James 4 Feb, 2008 13:15:05
colorspace James 4 Feb, 2008 13:15:05
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com