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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: borders of segments [message #60350] Mon, 19 May 2008 02:12
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
Re: borders of segments [message #60355 is a reply to message #60350] Sun, 18 May 2008 16:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
moxament@gmail.com writes:

> 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?

You might find this article will generate some ideas for you:

http://www.dfanning.com/ip_tips/boundary.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 19:52:29 PDT 2025

Total time taken to generate the page: 0.00600 seconds