Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
grp-bio-it
image-analysis-training-resources
Commits
96da473e
Commit
96da473e
authored
May 28, 2019
by
Christian Tischer
Browse files
Options
Browse Files
Download
Plain Diff
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
modules/binarization.md
modules/binarization.md
+16
-0
No files found.
modules/binarization.md
View file @
96da473e
...
@@ -40,6 +40,12 @@ shift [fontcolor=white,color=white];
...
@@ -40,6 +40,12 @@ shift [fontcolor=white,color=white];


## Activity
## 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
.
Open
an
image
and
binarize
it
by
applying
a
threshold
.
...
@@ -61,6 +67,16 @@ 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
## Formative assessment
Quizz or something
Quizz or something
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment