binarization_jython.md 241 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
```python
from ij import IJ, ImagePlus
from ij.plugin import Thresholder

inputImage=IJ.getImage()
IJ.setRawThreshold(inputImage, 60, 255, None)
binaryImage=ImagePlus('Binary image',Thresholder.createMask(inputImage))
binaryImage.show()
```