How can we extract objects from a greyscale image?
조회 수: 2 (최근 30일)
이전 댓글 표시
So, i got a grayscale image of a box, which contains some objects.. I need to identify if/ not the box is empty or not....
I tried using the otsu thresholding, but doesn't work properly. is it possible to convert all the other parts to black except the image of interest?
댓글 수: 3
Walter Roberson
2019년 8월 8일
I would recommend background subtraction, if you can get a picture of the empty bucket, especially if everything is taken from a fixed viewpoint (if the viewpoint is not fixed then you might need to do image registration before doing the subtraction.)
답변 (1개)
darova
2019년 8월 8일
What about bwareaopen()
I = imread('example_filled2.jpg');
I1 = I < 40;
I2 = bwareaopen(I1,3e3);
imshow(I2)
What i've got
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!