I have created a GUI with guide with an axes (called axes2) where I want to show a video preview of what a camera sees. I want the user to be able to select different resolutions but I want the size of the preview window to be fixed by my GUI. Unfortunately, when I run the following code it just displays a corner of the image (restricted by the size of the window). If I run the preview in a separate window, it works but I want it in the screen. I think it's possible because IMAQtool allows different resolutions and the preview always fits (unless of course the preview is always at some lower resolution).
axes(handles.axes2); imshow(0); handles.iris = image; preview(handles.vid, handles.iris);
handleToImageInAxes = image( zeros([videoRes(2), videoRes(1), numberOfBands], 'uint8') ); fprintf(1, 'About to call preview...\n'); % Turn on the live video. preview(vidobj, handleToImageInAxes);
but there's more to it than that, so see the attached function.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.