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

Antworten (1)

Image Analyst
Image Analyst am 9 Mai 2013

0 Stimmen

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 Kommentare

Ram
Ram am 9 Mai 2013
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().
Ram
Ram am 9 Mai 2013
Thank you. Reading the notes on the function, I think it will work out.
Image Analyst
Image Analyst am 10 Mai 2013
Did it? If so, then please mark this as "Answered"

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Gefragt:

Ram
am 9 Mai 2013

Community Treasure Hunt

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

Start Hunting!

Translated by