(Color color)
| 5481 | } |
| 5482 | |
| 5483 | double getColorValue(Color color) { |
| 5484 | ImagePlus imp = WindowManager.getCurrentImage(); |
| 5485 | if (imp==null || imp.getBitDepth()==24) |
| 5486 | return color.getRGB()&0xffffff; |
| 5487 | ImageProcessor ip = imp.getProcessor(); |
| 5488 | ip.setRoi(0,0,1,1); |
| 5489 | ip = ip.crop(); |
| 5490 | ip.setColor(color); |
| 5491 | ip.drawDot(0,0); |
| 5492 | return ip.getf(0,0); |
| 5493 | } |
| 5494 | |
| 5495 | double doStack() { |
| 5496 | interp.getToken(); |
no test coverage detected