Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
find zeros in an image

Subject: find zeros in an image

From: astro mmi

Date: 29 Sep, 2010 15:05:10

Message: 1 of 3

Hi everyone,
   Just like how the find command helps us to pick all the non zero quantities in an image(matrix), is there any command to find or pick out only the zero values. Pls help and thanx in advance.

Subject: find zeros in an image

From: Walter Roberson

Date: 29 Sep, 2010 15:10:49

Message: 2 of 3

On 29/09/10 10:05 AM, astro mmi wrote:

> Just like how the find command helps us to pick all the non zero
> quantities in an image(matrix), is there any command to find or pick out
> only the zero values. Pls help and thanx in advance.

find(~TheImageArray)

or

find(TheImageArray==0)

Subject: find zeros in an image

From: Matt J

Date: 29 Sep, 2010 15:26:22

Message: 3 of 3

Walter Roberson <roberson@hushmail.com> wrote in message <ZFIoo.11210$fa4.7698@newsfe08.iad>...
> On 29/09/10 10:05 AM, astro mmi wrote:
>
> > Just like how the find command helps us to pick all the non zero
> > quantities in an image(matrix), is there any command to find or pick out
> > only the zero values. Pls help and thanx in advance.
>
> find(~TheImageArray)
>
> or
>
> find(TheImageArray==0)
======

Or even just

Index=~TheImageArray;

Tags for this Thread

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.

Contact us