Skip to Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
332
|
第八章
"Data"
元素可擷取影像中的像素資料,資料格式與影像格式有關,彩色影像通常會是
RGB 數組的矩陣,而灰階影像則是灰階值矩陣,其數值均位於 [0, 255] 區間。
延伸資訊
關 於
Import
指 令 與 JPEG、TIFF、BMP、PNG 與 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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mathematica Cookbook

Mathematica Cookbook

Sal Mangano

Publisher Resources

ISBN: 9789863470106