Demo entry 6328654

latex

   

Submitted by anonymous on Nov 28, 2016 at 20:46
Language: Matlab. Code size: 293 Bytes.

function H = lp_ideal( P, Q, D0)
% Costruisce il filtro low pass ideale H di dimensioni PxQ 
% e frequenza di cutoff D0

    % calcolo distanze
    [U,V]= dftuv(P,Q);
    D = sqrt (U.^2 +V.^2);
    Dc = fftshift(D);
    
    % costruzione filtro
    H = double(Dc <= D0);
    
    

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).