How do I read an image that is in the buffer

I would like to read an image file that is in the buffer (after it has been grabbed). Currently I write the file and then read it from the matlab code to process the image but would like to avoid the write/read step. Any suggestions are welcome.
Thanks, ram

Answers (1)

If it got into a buffer in the first place, then you already have it. You couldn't have called imwrite() if you did not already have the image.

4 Comments

Thanks for the answer. I should have mentioned this earlier: I am trying to incorporate the matlab component of the code that does the image processing to the C++ code that already exists. the existent code does the image grab and loading into the buffer. So. I will have to read an image that is in the buffer (written in to the buffer not by my piece of code).
Thanks for inputs, ram
Try using getframe().
Thank you. Reading the notes on the function, I think it will work out.
Did it? If so, then please mark this as "Answered"

Sign in to comment.

Categories

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

Asked:

Ram
on 9 May 2013

Community Treasure Hunt

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

Start Hunting!