Commit 3bbcf8f2 authored by Christian Tischer's avatar Christian Tischer

Update binarization.md

parent 4f440925
Pipeline #9768 passed with stage
in 30 seconds
......@@ -46,33 +46,32 @@ 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...`
- **[ Open... ]** "/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif" <br/>
- **[ Threshold... ]**
</details>
<details>
<summary>ImageJ macro</summary>
<summary>ImageJ macro</summary>
open("/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif");
setThreshold(30, 255);
setOption("BlackBackground", true);
run("Convert to Mask");
```
open("/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif");
setThreshold(30, 255);
setOption("BlackBackground", true);
run("Convert to Mask");
```
</details>
<details>
<summary>Jython script</summary>
```
```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()
```
......
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