Dear Petr,

thanks for your answer! Then my imagination was totally wrong. To check
if I understood your explanation, does the localizing part of the
algorithm more or less work like that (z assumed as the height value of
a pixel)?:

for (i=1 to number_of_steps, i++)
{
    for (every pixel in xy-matrix)
    {
        follow height gradient [d(z(x,y))/d(x,y)] to local minimum z(xm,ym);

        increase height of local minimum z(xm,ym) by factor:   
(max(z)-min(z)) * dropsize/5000;    //// for dropsize holds: 0 <
dropsize < 1

        mark this pixel as lake;
    }
check marked pixels if other marked pixels in neighbourhood and mark
connected pixels as 1 lake;
remove lakes smaller than the threshold given;
}

Regards,
Jens


Am 09.02.2014 22:03, schrieb Petr Klapetek:
> Dear Jens,
>
> drop size does not mean volume, it corresponds to amount
> by which the local minimum value is increased.
>
> In fact, the value is adaptive and depends on your data
> maximum and minimum as dropsize*(max - min)/5000.0.
>
> So no liquid physics is used, unfortunately, but on the other
> hand it fits hole of any pixel size.
>
> I hope that I understood all your questions,
> Regards,
>
> Petr
>
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Gwyddion-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gwyddion-users


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to