File Exchange

image thumbnail


version (6.73 KB) by Luke Winslow
Finds the area coverage and depth of localized depressions on a surface.


Updated 04 Mar 2012

View License

This function finds depressions on a 2D surface. It was intended to model the formation of liquid pools on a simulated geological surface (lakes pooling in depressions).

[dMask, dDepths] = findDepressions(heights)

Returns both the logical mask of where depressions exist and the depths of those depressions.

Cite As

Luke Winslow (2020). findDepressions (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

See chapter 4 of my dissertation.

I wrote the function for this paper specifically.

Hi Luke,
I try to understand this algorithm. Can you give me some papers from which you take inspiration to write this algorithm ?

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: extrema.m, extrema2.m