How can I save current displayed image frame as type uint32 instead of uint8?
Show older comments
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.
Answers (1)
Image Analyst
on 11 Aug 2012
Why not just do:
snappedImage = uint32(getsnapshot(videoObject));
3 Comments
kumaran B
on 4 Sep 2012
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
Image Analyst
on 4 Sep 2012
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.
Walter Roberson
on 4 Sep 2012
Categories
Find more on Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!