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 #31198 is a reply to message #31183] Wed, 19 June 2002 11:28 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"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,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[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 15:45:54 PDT 2025

Total time taken to generate the page: 1.84089 seconds