Commit 457df17e authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi

formatting

parent 96da473e
Pipeline #9765 passed with stage
in 31 seconds
......@@ -40,17 +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.
<details>
<summary>ImageJ user interface</summary>
- `Open...`
- "/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif";
- `Threshold...`
......@@ -58,6 +53,7 @@ Open an image and binarize it by applying a threshold.
<details>
<summary>ImageJ macro</summary>
open("/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif");
setThreshold(30, 255);
setOption("BlackBackground", true);
......@@ -65,16 +61,22 @@ Open an image and binarize it by applying a threshold.
</details>
<details>
<summary>Jython script</summary>
```
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
......@@ -87,5 +89,4 @@ Quizz or something
## Learn more
External links...
External links...
\ No newline at end of file
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