跳至內容
測試伺服器
開發伺服器

使用 microEnable 5 marathon 擷取卡時的 Raw 影像檔案結構#

如果您想使用某些影像檢視應用程式來開啟在 microDisplay 中儲存的 RAW 影像(搭配 microEnable 5 marathon frame grabber),您將需要了解該影像檔案配置的特定資訊,包括影像大小以及影像資料開頭的位移量。

上述 frame grabbers 的影像資料前面含有一個 16 位元組的標頭。microEnable 5 marathon 依 BGR 順序輸出色彩:

以 BGR 進行色彩輸出

並使用 N = 0 to N = [ height * width ] - 1

例如,當每個色彩擁有 16 bits 時,其資料如下所示:

Byte Information
[0–3] Width
[4–7] Height
[8–11] Bits per pixel
[12–15] 位元組轉換係數:向下捨去 ((bits + 7) / 8)
Pixel 1
[16–17] Blue
[18–19] 綠色
[20–21] Red
Pixel 2
[22–23] Blue
[24–25] 綠色
[26–27] Red
…

返回知識文章