<div dir="ltr"><div>zeta,<br><br></div>Are the lines in topo.tif contour lines? How did you generate them?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 12:20 AM, zeta <span dir="ltr"><<a href="mailto:otrov@hush.ai" target="_blank">otrov@hush.ai</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Chaitanya kumar CH wrote:<br>
><br>
>zeta,<br>
><br>
>The gaps are likely caused by pixels with no data. A simple method is to<br>
>run gdal_fillnodata.py on the original raster and then create the contours.<br>
><br>
><a href="http://www.gdal.org/gdal_fillnodata.html" target="_blank">http://www.gdal.org/gdal_fillnodata.html</a><br>
<br>
</div>Thanks Chaitanya,<br>
<br>
that's excellent news, as I previously searched for algorithms about curve reconstruction, and none seemed easy for implementation. I was driven by approach using Delaunay Triangulation,  referenced to Amenta "The crust and the beta -skeleton: Combinatorial curve reconstruction" and plastically  explained i.e. here: <a href="http://valis.cs.uiuc.edu/~sariel/research/CG/applets/Crust/Crust.html" target="_blank">http://valis.cs.uiuc.edu/~sariel/research/CG/applets/Crust/Crust.html</a> but I thought to look for shortcut if possible, without reinventing implementation.<br>

<br>
I tried the script, and I get some gaps filled, but most aren't. I used -md parameter of 20px, but changed that value from 10 to 300 without significant improvement. Then I used mask file, which I assume works as in OpenCV Inpaint function, by using mask as a helper for gap detection, but without success.<br>

<br>
I'm attaching example image, and mask image, which I used to test the script, in a hope that someone can tell me if better results are possible.<br>
<br>
Thanks</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E
</div>