A black square on picture

5 views (last 30 days)
Sanja
Sanja on 16 Sep 2014
Edited: Stephen23 on 16 Sep 2014
I have one gray selfie picture. I need to put a black square on my eyes, white square on the place where is mustache, white cube on place where is the chin and also on another picture I need two white circle (like glasses) at the place where are the eyes.

Accepted Answer

Stephen23
Stephen23 on 16 Sep 2014
Edited: Stephen23 on 16 Sep 2014
Yes, you can do this in MATLAB! You should read about manipulating images . The Help pages include lots of examples, so you should be able to start working by copying and changing those.
And keep in mind that once imported, the image is just an array of numeric data, so you can locate and change any color values that you want to.
Once you start writing your own code, and something does not work as expected, come back and write a question giving the specific problem that you encountered.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!