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

Home » Public Forums » archive » Re: Displaying thicker lines on an 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: Displaying thicker lines on an image [message #76162 is a reply to message #76159] Sat, 21 May 2011 06:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> You might try dilating with a cross as a structuring element.

Here is an example:

image = cgdemodata(21)
edgeImage = (sobel(image) gt 220)
cgdisplay, 800, 400
!p.multi=[0,2,1]
cgimage, edgeImage, /scale
k = intarr(3,3)
k[*,1]=1
k[1,*] = 1
print, k
cgimage, dilate(edgeImage, k), /scale
!p.multi=0
END

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Success!! Add and manipulate a visualization in standard iTool - Part II
Next Topic: Re: Log-scaled colorbar example

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

Current Time: Sat Oct 11 10:27:17 PDT 2025

Total time taken to generate the page: 1.04354 seconds