Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to do side filling of an image

2 次查看(过去 30 天)
Abdullah bashanfer
Abdullah bashanfer 2016-7-17
关闭: MATLAB Answer Bot 2021-8-20
We need to detect the ground using simple filling starting from the bottom of the image shown below. Any suggestions?
This codes what i have done so far,
rgb=imread('obstacle_scene_1.jpg');
figure, imshow(rgb);
rgbImage = imread('obstacle_scene_1.jpg');
hsvInt = rgb2hsv(rgbImage);
hsvDouble = rgb2hsv(double(rgbImage));
figure, imshow(hsvInt);
figure, imshow(hsvDouble);
level = graythresh(hsvInt);
bw = im2bw(hsvInt,level);
bw = bwareaopen(bw, 50);
figure, imshow(bw)
what i want is

回答(1 个)

Image Analyst
Image Analyst 2016-7-17
Perhaps this:
bw = imfill(bw, 'holes');

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by