The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Finding "mountain passes"
Replies: 2   Last Post: Jan 24, 2013 12:53 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 107
Registered: 2/27/10
Re: Finding "mountain passes"
Posted: Jan 23, 2013 7:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Nicholas" wrote in message <kdpegc$5k$>...
> Hi All-
> I'm curious about an efficient means of finding "mountain passes," i.e., saddle points, between two peaks of a real-valued matrix of arbitrary dimension.
> In other words, I have this matrix M and two peaks in that matrix, x and y. You're some silicon hiker who wants to hike from peak x to peak y, but you want to minimize how much you go down, so you can minimize how much you have to hike back up to get to y. Let's say you can find this path, what is the value of the lowest point along this path? How can I find that?
> Phrased differently, if we create a series regions defined by contour lines, what is the maximum of the set of contour regions that encompass both peak x and y, or the lowest contour that contains either x and y but not both.
> The last way I'll phrase it is, if changing elevation incurs a cost, what is the lowest point on the minimum-cost path between the two peaks?
> (for a better explanation than I feel like I'm giving, consult: but keep in mind I don't want the distance from the peak to the contour, but rather the distance from the "ground" to the contour)
> Thanks!

If you can truly find this path (i.e. you have a list of coordinates) then the MIN function on the elevation component will give you the lowest point(s). You can then use FIND to create an index of the point(s) that equal that elevation.

If you do not actually have this path, and you are truly interested in saddle points, then watershed thresholding is what you want. Steve Eddins has a great series of blog entries here:

Of course, he is doing the topographical opposite, if you will, by finding a ridge, but the principle is the same.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.