How can I save current displayed image frame as type uint32 instead of uint8?

I am trying to capture an image from a camera and save the image data array as type uint32. I start the camera and show the camera acquisition in a preview window. I then save the current displayed frame using the following line.
frame = get(get(handles.cameraAxes,'children'),'cdata') % currently being saved as uint8
My question is how do I save the current displayed frame so that it is of type uint32?
I am using the Image Acquisition Toolbox and MATLAB R2012a.
Thanks for your help.

Antworten (1)

Why not just do:
snappedImage = uint32(getsnapshot(videoObject));

3 Kommentare

can you tell me how to get data from each and every frame when i start video object.actually i am using using getdata function but its only give framespertrigger count data only i need to getdata from all frames which is lodding
I don't know. Using getsnapshot() will give you a frame but that's just when you ask for it. I'm not sure how to save a video so that you get absolutely every single frame without missing any. I've never tried to do that before. I think you use the start(videoObject) function. See the help: Image Acquisition Toolbox->Demos->Acquisition Tutorials->Logging Data to Memory.
How are you dealing with the heat of the lighting destroying the object being recorded?

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 11 Aug. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by