Skip to Main Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate content levelBeginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
8.6 使用傅立葉轉換實作影像清晰化及模糊化
|
357
將影像轉換至頻率空間的意義並不易理解,但幾乎所有的影像處理書籍均提及傅立葉轉
換的集中化,以下的
fourierImage
函數使用
quadSwap
方式,而
fourierImage2
則使用
(-1)
(x+y)
方式,由輸出結果可見它們完全相同。注意以下使用
Log[#+1]
對數值運算後才
進行顯示,因為傅立葉轉換結果的數值範圍差異極大。
360
ch08.indd 357 2014/4/2 下午 12:24:07
358
|
第八章
[Page-361]
8.7 偵測影像中的物體輪廓
問題點
你想偵測影像中的物體輪廓,這常用於影像辨識的前置步驟。
解決方案
輪廓辨 識有兩種 常見方 法, 分別是
Sobel
法與
Laplacian of the Gaussian
LoG)演
法。Sobel 法是以一階導數作為近似梯度,而 LoG 演算法則結合二階拉普拉斯算符(訣
8.5)與高斯平滑(Gaussian smoothing),以減低拉普拉斯算符的雜訊敏感性,詳見
後文「討論說明」部分。以下實作均使用規則式將灰階轉換為黑白以強調物體輪廓。
edgeDetectSobel
函數提供了
orientation
選項,設定
{1,0}
表示擷取 x 方向的輪廓,設
{0,1}
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ubuntu for Non-Geeks, 4th Edition

Ubuntu for Non-Geeks, 4th Edition

Rickford Grant, Phil Bull

Publisher Resources

ISBN: 9789863470106