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
84bcf130
Commit
84bcf130
authored
May 28, 2019
by
Julius Hossain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Matlab code added
parent
f2bcd0d3
Pipeline
#9771
passed with stage
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/binarization.md
modules/binarization.md
+18
-0
No files found.
modules/binarization.md
View file @
84bcf130
...
...
@@ -74,8 +74,26 @@ IJ.setRawThreshold(inputImage, 60, 255, None)
binaryImage
=
ImagePlus
(
'Binary image'
,
Thresholder
.
createMask
(
inputImage
))
binaryImage
.
show
()
```
</details>
<details>
<summary>
MATLAB Script
</summary>
```
matlab
function
src_binarize_image
()
%This function illustrates separating foreground from background using a
%fixed threshold value
threshold
=
50
;
%example hreshold value
%Read input image
in_image
=
imread
([
'image_data'
filesep
'xy_8bit__two_cells.tif'
]);
figure
;
imagesc
(
in_image
);
%display input image
%Binarized input image with the threshold value;
bin_image
=
uint8
(
in_image
>=
threshold
);
figure
;
imagesc
(
bin_image
)
% display binary image
end
```
</details>
## Formative assessment
...
...
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