MATLAB: How to get the image displayed with text as a single image

#imageprocessing #graphicsComputer Vision ToolboxImage Processing Toolbox

I have an image in a figure window (GUI axes) with some text displayed. I need to save this image with text data as an array in the work space. Is there a way to get the image and text data (without background) to an array?
Thank you in advance. Shehan

Best Answer

If you have the Computer Vision Toolbox, take a copy of the image and use the textInserter or shapeInserter to "burn" the text into the copy of the image.
Otherwise if the image covers the entire axes then you can use getframe()
Related Question