RESPUE_LINEAL calculates the linear response to local DCT2D (Expressed in contrast) DCTN (f) = CSF (f) DCT (f) Inputs: CSF (only frequency dependent, i.e. as in naka100.m) Returns: The response, Resp The CSF parameter in matrix form, CSF2D NOTE: It is assumed that the block gets into the function is already expressed in contrast (see CONTRAST) USE: [Resp,CSF2D]=respue_lineal(dctinic,CSF)
0001 % 0002 % RESPUE_LINEAL calculates the linear response to local DCT2D 0003 % (Expressed in contrast) 0004 % 0005 % DCTN (f) = CSF (f) DCT (f) 0006 % 0007 % Inputs: 0008 % CSF (only frequency dependent, i.e. as in naka100.m) 0009 % 0010 % Returns: 0011 % 0012 % The response, Resp 0013 % The CSF parameter in matrix form, CSF2D 0014 % 0015 % NOTE: It is assumed that the block gets into the function is already expressed in 0016 % contrast (see CONTRAST) 0017 % 0018 % USE: 0019 % [Resp,CSF2D]=respue_lineal(dctinic,CSF) 0020 0021 function [R,CSF2D]=respue_lineal(dctinic,k1) 0022 0023 tam=size(dctinic); 0024 tam=tam(1); 0025 lados=[tam tam]; 0026 0027 lcuan=lados(1); 0028 0029 k1=simrev(k1); 0030 k1=zigzag(k1); 0031 0032 alfa=k1; 0033 0034 cub=dctinic; 0035 0036 cub=zigzag(cub); 0037 0038 cub=abs(cub); 0039 0040 R=k1.*cub; 0041 R(1)=sqrt(cub(1)); 0042 0043 R=dezigzag(R); 0044 0045 CSF2D=k1;