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 錦囊妙計
332
|
第八章
"Data"
元素可擷取影像中的像素資料,資料格式與影像格式有關,彩色影像通常會是
RGB 數組的矩陣,而灰階影像則是灰階值矩陣,其數值均位於 [0, 255] 區間。
延伸資訊
Import
JPEGTIFFBMPPNG GIF 明,
Mathematica 教學文件。[Page-335]
ch08.indd 332 2014/4/2 下午 12:23:33
8.2 轉換 RGB 色彩空間為 HSV 色彩空間
|
333
8.2 轉換 RGB 色彩空間為 HSV 色彩空間
問題點
你的影像是以 RGB 呈現的,但是大部分的影像處理演算法使用的是 HSV 色彩空間模型
hue-saturation-value,分別為色相、飽和度與明度)。
解決方案
本文從基本定義出發,以
紅色
綠色
藍色
成分計算
色相
飽和度
明度
等數值。
HSV 模型常被描 繪為圓錐體(見
http://en.wikipedia.org/wiki/Image:HSV_cone.png
),色
相可視為環繞著圓心的向量角度,0 度附近對應為紅色,隨著角度增加,以彩虹的顏色
順序直至紫色並重回紅色。為了將數學簡化,我們按比例以 0 1 的數值代表原本 0
255 ...
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