Re: borders of segments [message #60350] |
Mon, 19 May 2008 02:12 |
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
|
|
|
|