MATLAB Answers

Isolate the root image from the background

8 views (last 30 days)
Tekan Rana
Tekan Rana on 21 Mar 2020
Answered: Prabhan Purwar on 27 Mar 2020
I want to create a good binary image with root(white) and background(black) from this image. Problem is that in binary image of this picture, top part is all white(similar to root color) and lower part has more contrast between root and background. How should I edit this image with white root and dark background?

  0 Comments

Sign in to comment.

Answers (1)

Prabhan Purwar
Prabhan Purwar on 27 Mar 2020
Hey,
Color Thresholder app can be used to segment out the roots and background as illustrated (using colorThresholder command) with spectrum settings as shown
Further Median Filter along with imbinarize() can be used to remove noise and highlight roots.
% Ir is output from colorThresholder
im=medfilt3(Ir);
im=rgb2gray(im);
ib=imbinarize(im,0.001);
imshow(ib);
Output:
For further insights kindly refer to the following links:

  0 Comments

Sign in to comment.

Tags

Products


Release

R2019b

Translated by