Description: 自己做的图像直角坐标与极坐标转换程序,源代码中还有双线性和双三次插值的函数代码,很基础也很实用。-To do their own image rectangular coordinates and polar coordinates conversion process, the source code also bilinear and bicubic interpolation function of the code, it is also very practical basis. Platform: |
Size: 241664 |
Author:dc |
Hits:
Description: 这里使用了双线性插值来处理极坐标转换到直角坐标下时,点不对称的问题,不过最后生成的图有一点问题,本来应该是一圈一圈的圆环,但是转化后的只有部分圆环了
rMin = 0.1 rMax =0.9
im2 = imread( ivus.bmp )
figure(4) imshow(im2)
imR2 = PolarToIm(im2, rMin, rMax, 300, 300)
figure(5) imshow(imR2, [0 255])
然后直接调用附件的function就可以了。
可否请各位大大修正一下这个程序,或者更简便的算法!~ 谢谢了!-There is a reference function code, use bilinear interpolation to convert polar coordinates to Cartesian coordinates, point asymmetric, but the final plans generated it was supposed to be a circle ring, but the conversion is only partially annular RMIN = 0.1 RMAX = 0.9 IM2 = imread (the ivus.bmp ) Figure (4) the imshow (IM2) IMR2 = PolarToIm (IM2, Rmin, RMAX, 300, 300) figure (5) the imshow (imR2 [0 255]) then directly call the annex to function on it. Can I please greatly amend this program, or more simple algorithm! ~ Thank you! Platform: |
Size: 1024 |
Author:Eric Lau |
Hits: