代碼如下: import numpy as np x = np.array([1.43,288.3,-5.6,10.5,255,256]) print(x) print(x.dtype) print('熱數值資料想要轉換成圖像,直必須介於0-255間') y =x.astype('uint8') print(y) print(y.dtype)複製代碼結果 ...
Archiver|手機版|小黑屋|TShopping
GMT+8, 2025-7-15 04:50 , Processed in 0.027067 second(s), 27 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.