Commit 84bcf130 authored by Julius Hossain's avatar Julius Hossain

Matlab code added

parent f2bcd0d3
Pipeline #9771 passed with stage
in 29 seconds
...@@ -74,8 +74,26 @@ IJ.setRawThreshold(inputImage, 60, 255, None) ...@@ -74,8 +74,26 @@ IJ.setRawThreshold(inputImage, 60, 255, None)
binaryImage=ImagePlus('Binary image',Thresholder.createMask(inputImage)) binaryImage=ImagePlus('Binary image',Thresholder.createMask(inputImage))
binaryImage.show() 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> </details>
## Formative assessment ## Formative assessment
......
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