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

Home » Public Forums » archive » Re: Dilating a point
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: Dilating a point [message #31181 is a reply to message #31180] Thu, 20 June 2002 14:42 Go to previous messageGo to previous message
idlfreak is currently offline  idlfreak
Messages: 47
Registered: October 2001
Member
Hi,
I guess this works only for direct graphics. I need to get it working
in Object Graphics. I used the Widget_Draw event.x and event.y to
obtain the cursor point. I tried the 'DLgrPlot' to plot it, but it
didn't work. Please tell me how to plot that point, in the current
object graphics window.

Thanks,
Akhila.

"Dick Jackson" <dick@d-jackson.com> wrote in message news:<i34Q8.38238$s82.3100417@news1.calgary.shaw.ca>...
> "Akhila" <idlfreak@yahoo.com> wrote in message
> news:b1ad7b05.0206191006.3ef24d3c@posting.google.com...
>> Hi,
>> I have a blank screen. Using CURSOR and PLOTS command i mark a point
>> in that screen with a value of 255B. I want to dilate that point. Can
>> anybody tell me how to do that.....Please help me.
>
> How about this:
>
> =====
>
> ;; Put one white pixel in a window
>
> Window
> Erase
> PlotS, /Device, 50, 50, PSym=3
>
> ;; Get image, dilate and redraw
>
> img = TVRD() ; Contains 0 and 255 values
> dilateImg = Dilate(img, Replicate(1, 3, 3)) ; Contains 0 and 1 values
> TV, dilateImg * 255B ; ... or TV, ([0B, 255B])[dilateImg]
>
> END
>
> =====
>
> See DILATE in online help for more details.
>
> Cheers,
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using COM objects in IDL (Win32 only)
Next Topic: Re: SOCKET and POST forms

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

Current Time: Sat Oct 11 12:59:22 PDT 2025

Total time taken to generate the page: 0.03203 seconds