Home »
Public Forums »
archive »
Edge detection and convert edges into polygons
Edge detection and convert edges into polygons [message #61920] |
Fri, 01 August 2008 07:28 |
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
|
|
|
Current Time: Wed Oct 08 19:43:40 PDT 2025
Total time taken to generate the page: 0.00544 seconds