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

Home » Public Forums » archive » Edge detection and convert edges into polygons
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
Edge detection and convert edges into polygons [message #61920] Fri, 01 August 2008 07:28
M. Suklitsch is currently offline  M. Suklitsch
Messages: 12
Registered: August 2008
Junior Member
Hi!


I need some hint on how to convert edges into vertices. What I want to
do in the end is check whether a station (of which I have lon/lat
values) lies within such a vertex.

To be more precise: I have a netCDF file with three fields. longitude,
latitude and mask, where mask has integer values and defines
subregions. In this mask "image" I want to detect the edges, what I
already got working using the tips on http://www.dfanning.com/ip_tips/sharpen.html.

These edges I want to convert into vertices which I then put in an
IDLanROI object. Using this object I could then very easily check if a
station given by its longitude and latitude lies within a region or
not.


Another possibility would be to simply search the nearest gridpoint to
my station and say that the region index of this gridpoint is the one
for my station. But I think the first way is more correct. Does anyone
have some idea on how to do this? I hope I explained the problem in a
way that everybody understands it. :)


Thanks in advance!

Cheers,
Martin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SPAWN
Next Topic: Printing multiple columns in IDL

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

Current Time: Wed Oct 08 19:43:40 PDT 2025

Total time taken to generate the page: 0.00544 seconds