Camlist = gigecamlist; IP = string(Camlist{1,3}); g= gigecam(IP,'PixelFormat','mono8'); g_Res = [g.Width g.Height]; %----------------lines to created figure with tabs------------------------------------------------------- streamingHandle = uicontrol(tab_ini,'Style','PushButton','String', 'Streaming','Position',[135 10 80 20],'Callback', {@streaming,tab_ini,g_Res,g}); %------------------------------------------------------ callback funtion for push button function streaming(object_handle,event, tab_ini, g_Res, g) %% How can i return a value from 'preview(g)' to condition "if" % if Preview(g) ==1; is opened % closePreview(g); % end dock_tab = axes(tab_ini,'units','pixels','Position',[35,40,g_Res(1),g_Res(2)],'box','on'); nBands = 1; % grey scale I = image(zeros(g_Res(2),g_Res(1), nBands),'Parent',dock_tab); preview(g, I);
%avoid warnings about struct() preventing hiding implementation details old_warning_state = warning('off', 'MATLAB:structOnObject'); gs = struct(g); gsw = struct(gs.webcamImpl); gscpc = struct(gsw.CamPreviewController); warning(old_warning_state); if gscpc.IsPreviewing closePreview(g) end
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.