Commit 96da473e authored by Christian Tischer's avatar Christian Tischer

Merge branch 'protocol-binarisation-jython' into 'master'

Protocol binarisation jython

See merge request !12
parents e6ddc70e b70a78c1
Pipeline #9763 passed with stage
in 31 seconds
......@@ -40,6 +40,12 @@ 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
Open an image and binarize it by applying a threshold.
......@@ -61,6 +67,16 @@ Open an image and binarize it by applying a threshold.
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