Issues with imaqtool source code
Ältere Kommentare anzeigen
I'm trying to creat a GUI in guide to control a ccd camera. If I control the camera through imaqtool then any time I change the pixel binning of the camera this is reflected in the preview feed (i.e. the image stays the same size and the pixels in the image get larger). If I copy the source code from the session logger in imaqtool and run it through my GUI, however, the opposite happens to the preview: the total image gets smaller on the screen, and the pixels in the image are the same size (i.e. if i change the binning from 1x1 to 2x2 the preview image is half as big). I'm copying the source code (pasted below) directly from the imaqtool so I don't understand why the preview behaves differently in each situation, but is there some way I can force the preview image to stay the same size in its figure window?
vid = videoinput('pmimaq2017b_1_0_31', 1, 'PM-Cam 1376x1024');
src = getselectedsource(vid);
triggerconfig(vid, 'hardware', 'Falling edge', 'Extern');
src.Binning = '4x4';
preview(vid);
Antworten (0)
Kategorien
Mehr zu Introduction to Installation and Licensing 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!