How to fill rectangle with same color in image?
Ältere Kommentare anzeigen
Hi,
I want to fill rectangle with same color such as bellow image. So, i recognition it to rectangle or square.
Please, let me know.
Thanks.

1 Kommentar
Image Analyst
am 18 Jun. 2018
I don't understand.
The image has TWO colors. Which do you want?
Or do you want the average color of the black and red (like a dark red)?
"I want to fill rectangle" Fill WHAT rectangle?
And what does "recognition it to rectangle or square" mean? You already said that it was a rectangle. Do you just want to see if the image height equals the image width, and it if is, declare, say with msgbox() or helpdlg(), that the image is square?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Language Support finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!