有人能给我一个关于“high_low”的很好的解释吗? IDL 轮廓编程的价值?
“如果轮廓高于周围环境,则该字节为 1;如果轮廓低于周围环境,则该字节为 0。”解释对我来说根本没有意义。 :-(
我正在尝试编程的背景是我正在绘制开尔文-亥姆霍兹涡流,并且我只想突出显示从初始涡流中脱离的闭合轮廓。因此,沿我的图外部闭合的轮廓是不好的我正在修改的代码将所有 high_low = 1 值视为不符合我们想要的轮廓,但我不明白为什么,
谢谢!
the "A byte that is 1 if the contour is above its surroundings, and is 0 if the contour is below." explanation does not make sense to me at all. :-(
the context of what i am trying to program is that i am plotting kelvin-helmholtz vortices and i want to highlight only closed contours that break way from the initial vortex. so, contours closed along the outside of my plot are no good. the code i am revising considers all high_low = 1 values as contours that do not fit what we want, but i do not understand why.
any help would be wonderful! thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不完全确定我是否正确理解了你的问题,但我会尝试一下。对于单个轮廓,除非它位于局部最大值的中心,否则它应该具有 high_low = 0。也就是说,通向中心的轮廓都将具有 high_low = 0,因为它们将位于较高值和较低值的轮廓之间,并且最中心的轮廓将具有 high_low = 1,因为它相邻的唯一轮廓是以较低的值。您所在字段中的其他局部最大值也将具有 high_low = 1,因为它的值大于其周围的值。因此,如果轮廓是闭合的并且 high_low = 1,它应该代表与初始涡旋不同的单独涡旋。
I am not entirely sure that I am understanding your question properly, but I'll take a shot. For an individual contour, it should have high_low = 0 unless it is at the center of a local maximum. That is, the contours leading up to the center will all have high_low = 0, since they will be in between contours of higher and lower value, and the very centralmost contour will have high_low = 1, since the only contour it is adjacent to is at a lower value. Other local maxima in your field will also have high_low = 1, since it will have a value greater than its surroundings. So if a contour is closed and has high_low = 1, it should represent a separate vortex apart from the initial one.