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

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

%   Copyright 2015 The MathWorks, Inc.

%#codegen
persistent sobel;
if isempty(sobel)
    sobel = visionhdl.EdgeDetector(...
            'Threshold',2);
end

[pixOut,ctrlOut] = step(sobel,pixIn,ctrlIn);