Removing background in a image and keeping only region of interest
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I need some help in removing the background of this image and keeping only the region of interest, in this case it is the root. Everything else in the background just has to be black, pixel value = 0.
I have already tried grayscale, imadjust, thresholding, trying to extract certain colors. Since the lighting in the picture is uneven, thresholding does not work as it removes most of the root as well.
Any help is greatly appreciated, maybe there are more complex functions that I am unaware of. I will respond to any questions for further clarification.
0 个评论
回答(1 个)
Image Analyst
2016-7-7
You might try some kind of region growing method. I attach my Photoshop-like magic wand demo to get you started.
Also, how many of these do you have? Thousands? Or just a few dozen? If only a few dozen, you might be able to help it out some with some freehand masking.
2 个评论
Image Analyst
2016-7-7
OK, what do you really want to find out? Is it the length of all the branches? The area of everything? The area of the white root only?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!