www.gusucode.com > visionhdl工具箱matlab源码程序 > visionhdl/visionhdlexamples/PixelStreamingDesignHDLDesign.m

    function [pixOut,ctrlOut] = PixelStreamingDesignHDLDesign(pixIn,ctrlIn)
% PixelStreamingDesignHDLDesign  Implement video processing algorithms using
%     pixel-stream System objects from the Vision HDL Toolbox

%   Copyright 2015 The MathWorks, Inc.

persistent gamma;
if isempty(gamma)
    gamma = visionhdl.GammaCorrector; 
end
    
[pixOut,ctrlOut] = step(gamma,pixIn,ctrlIn);