Isolate the root image from the background
이전 댓글 표시
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?

답변 (1개)
Prabhan Purwar
2020년 3월 27일
Hey,
Color Thresholder app can be used to segment out the roots and background as illustrated (using colorThresholder command) with spectrum settings as shown
- https://www.mathworks.com/help/images/ref/colorthresholder-app.html(Color Thresholder)

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:
- https://in.mathworks.com/help/images/noise-removal.html (Noise Removal)
- https://in.mathworks.com/help/images/ref/medfilt3.html (MedianFilter)
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!