我如何將彩色影像轉成灰階?
主要軟體:
主要軟體版本: 7.1
主要軟體修正版本:
次要軟體: N/A
問題: 我使用LabVIEW和Vision Development Module。我該如何將彩色影像轉成灰階?
解答: LabVIEW將彩色影像資料存在一個unsigned 32 bit integers(U32)的陣列中。這些彩色影像可能為Red Green Blue (RGB)或Hue Saturation Luminance (HSL)格式。你需要將彩色影像轉成HSL格式並擷取其亮度平面(luminance plane)。亮度平面完全對應灰階影像,它是唯一提供灰階影像的正確表述。
附件vi檔案展示如何將彩色影像轉成灰階並比較了亮度平面(luminance plane)和紅色彩平面(red color plane)的不同。
下載壓縮檔後您將需要LabVIEW 7.1和Vision 7.1來執行此VI。
相關連結:
附加檔案:
報告日期: 10/26/2005
最後更新: 11/02/2005
文件偏號: 3QPG40QT
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.