Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
image-analysis-training-resources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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];

## 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
...
...
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