Commit f2bcd0d3 authored by Christian Tischer's avatar Christian Tischer

Merge branch 'patch-2' into 'master'

Update binarization.md

See merge request !14
parents 4f440925 3bbcf8f2
Pipeline #9769 passed with stages
in 1 minute and 2 seconds
...@@ -46,33 +46,32 @@ Open an image and binarize it by applying a threshold. ...@@ -46,33 +46,32 @@ Open an image and binarize it by applying a threshold.
<details> <details>
<summary>ImageJ user interface</summary> <summary>ImageJ user interface</summary>
- `Open...` - **[ Open... ]** "/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif" <br/>
- "/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif"; - **[ Threshold... ]**
- `Threshold...`
</details> </details>
<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); open("/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif");
setOption("BlackBackground", true); setThreshold(30, 255);
run("Convert to Mask"); setOption("BlackBackground", true);
run("Convert to Mask");
```
</details> </details>
<details> <details>
<summary>Jython script</summary> <summary>Jython script</summary>
``` ```python
from ij import IJ, ImagePlus from ij import IJ, ImagePlus
from ij.plugin import Thresholder from ij.plugin import Thresholder
inputImage=IJ.getImage() inputImage=IJ.getImage()
IJ.setRawThreshold(inputImage, 60, 255, None) IJ.setRawThreshold(inputImage, 60, 255, None)
binaryImage=ImagePlus('Binary image',Thresholder.createMask(inputImage)) binaryImage=ImagePlus('Binary image',Thresholder.createMask(inputImage))
binaryImage.show() 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