如何解释skimage radon变换的结果
How to interprete the result of the skimage radon transform
我想知道我应该如何解释 skimage 的 radon 变换的结果。文档不是很准确。
我们以这张图为例
这 2 条线由右侧图片中的黑点表示。
一条线有 45 度,另一条线有 135 度。现在,另一个坐标是什么意思?两条线都显示 ~150。为什么?
我第一次看这个link:
https://www.mathworks.com/help/images/detect-lines-using-the-radon-transform.html
代码在 matlab 中,而不是来自 skimage。所呈现的解释值的方式不适用于我的示例。 (很可能是因为它与 matlab 中的算法不完全相同。至少返回值不同)
skimage 的文档只是展示了一个简单的代码示例。不幸的是没有解释。
那么,150 是什么意思。我该如何解释这个价值,或者我是否只得到了正确的图像。我将如何创建左边的?提前致谢
我认为混淆是从您绘制正弦图的方式开始的。 Radon transform domain is the (alpha, s)
, where alpha
is the angle the normal vector to line makes with the x axis and s
is the distance of line from the origin (see following figure from here).
根据skimage radon documentation,原点是图像的中心。
因此,我认为如果您将其绘制成
,您就可以理解这些值
ax2.imshow(sinogram, cmap=plt.cm.Greys_r,
extent=(0, 180, -sinogram.shape[0]/2.0, sinogram.shape[0]/2.0), aspect='auto')
导致
而不是
ax2.imshow(sinogram, cmap=plt.cm.Greys_r,
extent=(0, 180, 0, sinogram.shape[0]), aspect='auto')
导致
对于 50x50 图片。
您可能已经完成 here. In this page they show how to reconstruct your image using the sinogram using iradon and iradon_sart 功能。
我想知道我应该如何解释 skimage 的 radon 变换的结果。文档不是很准确。
我们以这张图为例
我第一次看这个link: https://www.mathworks.com/help/images/detect-lines-using-the-radon-transform.html 代码在 matlab 中,而不是来自 skimage。所呈现的解释值的方式不适用于我的示例。 (很可能是因为它与 matlab 中的算法不完全相同。至少返回值不同) skimage 的文档只是展示了一个简单的代码示例。不幸的是没有解释。
那么,150 是什么意思。我该如何解释这个价值,或者我是否只得到了正确的图像。我将如何创建左边的?提前致谢
我认为混淆是从您绘制正弦图的方式开始的。 Radon transform domain is the (alpha, s)
, where alpha
is the angle the normal vector to line makes with the x axis and s
is the distance of line from the origin (see following figure from here).
根据skimage radon documentation,原点是图像的中心。
因此,我认为如果您将其绘制成
,您就可以理解这些值ax2.imshow(sinogram, cmap=plt.cm.Greys_r,
extent=(0, 180, -sinogram.shape[0]/2.0, sinogram.shape[0]/2.0), aspect='auto')
导致
而不是
ax2.imshow(sinogram, cmap=plt.cm.Greys_r,
extent=(0, 180, 0, sinogram.shape[0]), aspect='auto')
导致
对于 50x50 图片。
您可能已经完成 here. In this page they show how to reconstruct your image using the sinogram using iradon and iradon_sart 功能。