comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Grayscale AND Binary Image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Grayscale AND Binary Image [message #29704 is a reply to message #29577] Fri, 08 March 2002 12:45 Go to previous messageGo to previous message
idlfreak is currently offline  idlfreak
Messages: 47
Registered: October 2001
Member
yes. i want to get the indices of the pixels in the
masked region and plot them in the original image.

The idea you had suggested does the same thing as *

i'm not sure if i can get the indices only (pixel
location and not the value of the pixel) in a variable
and then use those values to mask the original image
and set the values of rest of the pixels to 0 in the
original image.

I hope i'm clear this time.

Thanx for ur time.

-Akhila.


Wonko@netcologne.de (Alex Schuster) wrote in message news:<8KOj1SOed8B@netcologne.de>...
> idlfreak@yahoo.com (Akhila) wrote:
>
>> I have the same size window for both the images. Is there any way
>> that i can get the region(pixel value) from the binary image and
>> obtain the same pixels in the original image. If that's possible
>> it'd be more ideal as that's the result i want.
>> Help me please !!!
>
> I'm not sure what you mean... do you want to get the indices of the
> pixels which are set to 1 in your mask image? Then have a look at the
> WHERE() function.
>
> For example, instead of
>
> new_img = original_img * mask_img
>
> you can do it that way:
>
> index = where( mask_img eq 1 )
> new_img = 0 * original_img
> new_img[index] = original_img[index]
>
> or:
>
> index = where( mask_img eq 0 )
> new_img = original_img
> new_img[index] = 0
>
>
> Alex
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL on mandrake 8
Next Topic: Re: CALL_EXTERNAL and memory allocation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:19:55 PDT 2025

Total time taken to generate the page: 0.56116 seconds