推 Raymond0710:R的型態是uint8嗎? 11/21 02:50
→ lemdas:是double! 11/21 23:56
→ lemdas:i find the answer! the value in R should be 0 ~ 255. 11/22 02:49
→ lemdas:another question is: how can i define the colormap 11/22 02:50
→ lemdas:according to the value in R (before re-nomalized)? 11/22 02:51
推 Raymond0710:uint8(R) 11/22 03:46
→ Raymond0710:你用colormap 要注意index是double 還是uint8 有差 11/22 03:48
→ lemdas:我試了很多次,基本上R裡面的element都是0~3的數字, 11/23 15:46
→ lemdas:即使我使用了uint(R)再去存圖,顯示出來的圖依然是藍色一片 11/23 15:47
→ lemdas:就是colormap(jet)低數值的顏色... 11/23 15:48
→ lemdas:看來我還是只能將R裡面的數值normalized再乘上255,存的圖 11/23 15:50
→ lemdas:才會正常顯示!! 謝謝一樓的解答 :) 11/23 15:50