Removing background in a image and keeping only region of interest
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Image Analyst
on 7 Jul 2016
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 Comments
Image Analyst
on 7 Jul 2016
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?
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!