Commit dc2dd89c authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi

binarization jython code

parent 97810a4c
......@@ -35,8 +35,24 @@ shift [fontcolor=white,color=white];
![binarization_figure_00](../figures/binarization_concept_example.png)
## Activity
<details open>
<summary>Jython script</summary>
<br>
```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()
```
</details>
## Formative assessment
Quizz or something
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment