⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gd.m

📁 超声图像实时消噪实验程序
💻 M
字号:
    function g = gD( f, scale, ox, oy )
    % Gaussian (Derivative) Convolution
        K = ceil( 3 * scale );
        x = -K:K;
        Gs = exp( - x.^2 / (2*scale^2) );
        Gs = Gs / sum(Gs);
        Gsx = gDerivative( ox, x, Gs, scale );
        Gsy = gDerivative( oy, x, Gs, scale );
        g = convSepBrd( f, Gsx, Gsy );

    function r = gDerivative( order, x, Gs, scale )
    switch order
    case 0
        r = Gs;
    case 1
        r = -x/(scale^2) .* Gs;
    case 2
        r = (x.^2-scale^2)/(scale^4) .* Gs;
    otherwise
        error('only derivatives up to second order are supported');
    end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -