你好
我有一個正在使用的腳本
m = img << Get Pixels;
在灰度jpg圖像上。返回的值在大約250萬至1300萬之間。似乎高加號對應於“黑色”,高減號對應於“白色”。我已經能夠成功地使用較大的負值來識別圖像的“白色”區域。但是,有人要求我記錄此腳本,包括Get Pixels的功能。如何確定這些數字?腳本編制索引顯示“如果未指定顏色指示符,則返回代表像素值的JSL顏色矩陣”。“ JSL顏色”到底是什麼意思?Google對此沒有幫助... 
負數是RGB值。試試看這個模式;只運行hex(...)行以在日誌中查看以下行:
hex( -rgbcolor(0.0,0.0,0.0), "integer")
"00000000" black
//:*/
hex( -rgbcolor(0.0,0.0,1.0), "integer")
"000000FF" blue
//:*/
hex( -rgbcolor(0.0,1.0,0.0), "integer")
"0000FF00" green
//:*/
hex( -rgbcolor(1.0,0.0,0.0), "integer")
"00FF0000" red
//:*/
hex( -rgbcolor(1.0,1.0,1.0), "integer")
"00FFFFFF" white
//:*/
hex( -rgbcolor(0.5,0.0,0.0), "integer")
"00800000" dark red
//:*/
hex( -rgbcolor(0.0,0.25,0.0), "integer")
"00004000" darker green
//:*/
hex( -rgbcolor(0.0,0.0,0.01), "integer")
"00000003" really dark blue
rgbcolor(...)接受紅色,綠色,藍色參數,並返回那些負JSL顏色值之一。在傳遞給hex()之前,先使它為正,以使所有內容都清楚。底部的三個字節(每個字節用兩個十六進制數字表示)代表256種可能的r,g,b級別。
其他相關問題和答案...
https://www.jmp.com/support/help/14/specify-colors.shtml
https://community.jmp.com/t5/JMP-Blog/Colors-in-JSL/ba-p/29596
https://community.jmp.com/t5/Discussions/RGB-Values-to-Color-Names-in-Data-Table/td-p/9848
https://community.jmp.com/t5/JMP-Scripts/Utility-to-Explore-JMP-Color-Values/ta-p/24149