How can I specify the output of insertShape or insertText as 2D grayscale images?

2 views (last 30 days)
The returned output of 'insertShape' is in RGB format, is there a way I can specify the output to be a grayscale image?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 12 Jan 2015
The output of 'insertShape' is only specified to be in truecolor format.  The workaround is to call 'rgb2gray' on the output to convert it to grayscale.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2013b

Community Treasure Hunt

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

Start Hunting!