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

Home » Public Forums » archive » Re: borders of segments
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: borders of segments [message #60350] Mon, 19 May 2008 02:12 Go to previous message
izimine is currently offline  izimine
Messages: 11
Registered: November 1997
Junior Member
On May 19, 1:12 am, moxam...@gmail.com wrote:
> I developed an image segmentation method in IDL but I do not know how
> to visualize the borders of the segments. I want to see my initial
> image and the borders of the resulted segments upon it. Please, can
> anyone help me?

quick and dirty solution for direct graphics and indexed color
table...

seg = your_segmentation_method(in_data) ; assuming 2D image
mm_kern = [[0,1,0],[1,1,1],[0,1,0]]
cnt = dilate(seg, mm_kern) - seg ; external border
loadct, 0, ncolors=254
tvlct, 255, 255, 0, 255
tv, bytscl(in_data, top=254) * (1-cnt) + cnt * 255
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Fun with IDL 7
Next Topic: Re: Time axis labelling (1 major label every 7 days with 6 minor ticks)

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

Current Time: Fri Oct 10 19:27:42 PDT 2025

Total time taken to generate the page: 1.84348 seconds