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

Home » Public Forums » archive » polygon filling - binary 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: polygon filling - binary image [message #39906 is a reply to message #39809] Fri, 25 June 2004 08:39 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Francois wrote:

> Hello,
>
> I have a binary image with lines (255) and background (0).
> I would like to fill areas closed by lines with a unique ID.
> Hence obtaining an image with grey levels going from 1 to
> number_of_polygons.
>
> Do you have any hints about how to do this ?
>
> Thank you,
>
> Franᅵois L.

Dear Franᅵois

is it something like this what you are looking for?

img=dist(20)
contour,img,/fill,level=findgen(20)

Or is it more like the path_xy example described in the online help by
contour?


cheers
Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to crate an mask image from ROI?
Next Topic: Q: !p.multi - changing the plotting order

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

Current Time: Thu Oct 09 20:09:35 PDT 2025

Total time taken to generate the page: 0.63337 seconds