你好
我有一个正在使用的脚本
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