From: Nitin Kumar on
Hello,

I have 2 images, and I want to compare one with another.

On one (binary) I would like to find the pixels which are equal to 1, map them on the normal image, find those with intensities less than 90, and delete those corresponding coordinates on the binary again.

So far, I have done the following:

ind=find(binary_image ==1);

b=Image(ind);

c=find(b<90);

Now, i would like to find the coordinate of the points which are less than 90 on the Image and map it to the binary image and set them to zero.

Your suggestions are very welcome.

Thanks,
From: Matt J on
"Nitin Kumar " <nkmah2(a)gmail.com> wrote in message <hsehac$p67$1(a)fred.mathworks.com>...
> Hello,
>
> I have 2 images, and I want to compare one with another.
>
> On one (binary) I would like to find the pixels which are equal to 1, map them on the normal image, find those with intensities less than 90, and delete those corresponding coordinates on the binary again.
>
======

Seems like you can do all of this in one line

binary_image=binary_image & (Image>=90);
From: Nitin Kumar on
It works, Thanks a lot Mat