Full fill a rectangle shape in an image
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm processing an image (please see attachment).
I tried to full fill the white rectangle (which is currently covered by the water drop shaped black shadow).
How can I remove the shadow to get the fully rectange?
I have the Boundary polyshape of white shape.
This is the polyshape I have:

And the image:

Thanks
2 个评论
rough93
2019-9-19
Create a vector between two points on the left edge above and below the drop, create a for loop for every row between column to the right to color it your chosen color. You can set additional paramters to limit how much is colored.
采纳的回答
darova
2019-9-19
Use convhull or boundary to get contour of your figure
Then use inpolygon to fill this shape
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Elementary Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!