Full fill a rectangle shape in an image
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Le Vu Bao
am 19 Sep. 2019
Kommentiert: Le Vu Bao
am 20 Sep. 2019
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 Kommentare
rough93
am 19 Sep. 2019
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.
Akzeptierte Antwort
darova
am 19 Sep. 2019
Use convhull or boundary to get contour of your figure
Then use inpolygon to fill this shape
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Elementary Polygons finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!