调整极坐标图像的大小 [英] Resizing a polar coordinate image
问题描述
我有一个来自气象雷达的图像,该图像处于极坐标(方位角,范围)内。
正常的调整大小功能无法正常工作,因为它们假定图像以笛卡尔坐标表示。从scikit-image等中获取。
I have an image from weather radar which is in polar coordinates (azimuth, range). Normal resizing functions are not working as they presume the image in Cartesian coordinate I guess. From scikit-image etc.
我如何有效地调整图像的大小,并保持与笛卡尔相同的比例和特征。还是唯一的方法是转换为笛卡尔后再返回?
How can I resize the image effectively having same ratio and characteristics maintained as we get in Cartesian. Or the only way is to convert to Cartesian and then back ?
使用天气库显示的原始(掩码数组):
Original (masked array) displayed using weather lib:
基于极坐标的轮廓:
调整数组大小(并使用imshow绘制)
resized the array (and plotted using imshow)
调整第三张图的效果很好,但我需要调整第一极坐标的大小。
Resizing the third graph works well but I need resized version of the first polar coordinates.
推荐答案
最终将其保存为图形,并使用具有常规功能的skimage调整大小。不是很完美,但是可以。
Ended up saving it as a plot and resizing using skimage with usual functions. Not so perfect but works.
这篇关于调整极坐标图像的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!