www.gusucode.com > visionhdl 源码程序 matlab案例代码 > visionhdl/ConfigurePixelStreamFormatExample.m
%% Configure Pixel Stream Format % When you choose a standard video format for |visionhdl.FrameToPixels|, % the object computes the frame dimensions. To access these values, call the % |getparamfromfrm2pix| function. frm2pix = visionhdl.FrameToPixels(... 'NumComponents',1,... 'VideoFormat','240p'); [activePixels,activeLines,numPixelsPerFrame] = getparamfromfrm2pix(frm2pix) %% % Note that |numPixelsPerFrame| includes both active and inactive % regions of the frame.