How can I save current displayed image frame as type uint32 instead of uint8?
Ältere Kommentare anzeigen
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)
Image Analyst
am 11 Aug. 2012
Why not just do:
snappedImage = uint32(getsnapshot(videoObject));
3 Kommentare
kumaran B
am 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
am 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
am 4 Sep. 2012
Kategorien
Mehr zu National Instruments Frame Grabbers finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!