Full fill a rectangle shape in an image
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Le Vu Bao
el 19 de Sept. de 2019
Comentada: Le Vu Bao
el 20 de Sept. de 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238895/image.png)
And the image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238896/image.jpeg)
Thanks
2 comentarios
rough93
el 19 de Sept. de 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.
Respuesta aceptada
darova
el 19 de Sept. de 2019
Use convhull or boundary to get contour of your figure
Then use inpolygon to fill this shape
Más respuestas (0)
Ver también
Categorías
Más información sobre Elementary Polygons en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!