當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python skimage.transform.frt2用法及代碼示例

用法:

skimage.transform.frt2(a)

計算 n x n 整數數組的二維有限氡變換 (FRT)。

參數

aarray_like

一個二維正方形 n x n 整數數組。

返回

FRT二維數組

(n+1) x n 整數係數的有限 Radon 變換數組。

注意

當且僅當 n 是素數時,FRT 具有唯一的逆。 [FRT] 這個算法的想法歸功於 Vlad Negnevitski。

參考

FRT

A. Kingston and I. Svalbe, “Projective transforms on periodic discrete image arrays,” in P. Hawkes (Ed), Advances in Imaging and Electron Physics, 139 (2006)

例子

生成測試圖像:對數組維度使用素數

>>> SIZE = 59
>>> img = np.tri(SIZE, dtype=np.int32)

應用有限氡變換:

>>> f = frt2(img)

相關用法


注:本文由純淨天空篩選整理自scikit-image.org大神的英文原創作品 skimage.transform.frt2。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。