从功率谱获取横截面 [英] Getting a cross-section from power-spectrum
问题描述
我目前正在尝试使用光谱方法来分析地形景观.
I am currently trying to use spectral-methods to analyse topographic landscapes.
当我对地形进行FFT并绘制功率谱时.从功率谱中可以找到景观结构的方向.
When i FFT the landscape and plot the power-spectrum. From the power-spectrum an orientation of the structures in the landscape can be found.
2D功率谱:-:
在本功率谱中,我想作一个横截面. 当峰值幅度方向沿x轴或y轴时,这很容易. 但是对于这个地区(和其他地区),情况并非如此.
In this power-spectrum, i would like to make a cross-section. This is easy when the peak amplitude orientation is along the x or y-axis. But for this area (and others), this is not the case.
另一个区域的横截面-沿y轴定向:-
我的问题是我想沿着1处的峰作一个横截面,但我似乎无法弄清楚该怎么做.
My problem is i want to make a cross-section along the peaks in 1, and i just cant seem to figure it out how.
如果有人可以指出我的解决方案.现在被困在这里几天了.
If anyone could point me towards some solution for this. Been stuck here for a couple of days now.
编辑1 我希望横截面是沿着峰取向的线.
编辑2 改进了第一张显示我想要横截面的图像
推荐答案
我的解决方案是GameOfThrows建议的:
My solution was, as GameOfThrows suggested:
- 在我想要的方向上选择2个(或更多)点
- 在点上使用最小二乘法创建线
- 设置用于插值的网格.
- 在新行上使用interp2函数.
- 为该部分定义合适的轴
在我的最后一个横截面中,我最终有多条线,这样我就可以确保达到最大振幅.
In my final cross section i ended up having multiple lines in it, that way i was sure to hit the max amplitudes.
我对我的问题的回答还不多,但我一直很忙:)
i was a little with the answer to my question, but i have been busy :)
这篇关于从功率谱获取横截面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!