Incorrect image in bwconncomp function documentation
Show older comments
I was going through the section https://www.mathworks.com/help/images/ref/bwconncomp.html#bu2xeh0-1 in the function documentation. I see the largest component in the image has not been erased. Please help with this.
Accepted Answer
More Answers (1)
Aneela
on 11 Oct 2024
Hi Patrick,
I have executed the code in the given documentation: https://www.mathworks.com/help/images/ref/bwconncomp.html#bu2xeh0-1
The largest component will be erased when you change the variable name:
BW2=cc2bw(CC,ObjectsToKeep=idx);
imshow(BW2);
This will erase “ff” from the original image.
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!