[英]MATLAB to Julia RGB image conversion
我正在處理 RGB、2D 圖像。
在 MATLAB 我可以做類似的事情
imread(img, "file.png")
# access img(2, 4, 1) for the red color channel
# access img(2, 4, 2) for the green color channel
在 Julia 我想做類似的事情......
load("file.png", img)
# access img[2, 4, 1] will not work
我知道這是因為圖像在 Julia 中的編碼方式。但是有沒有辦法將 Julia 中的這些矩陣轉換為匹配 MATLAB 中使用的格式?
作為 Julia 新手,我提前道歉,找不到任何文檔
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.