Research Article

Discrete Wavelet Transform on Color Picture Interpolation of Digital Still Camera

Algorithm 2

if ( <Thd1& <Thd1& <Thd1)
 [cA1, cD1]=DWT(B7, B19);
 [cA2, cD2]=DWT(B17, B9);
 cD1H= ;
 cD2V= ;
 if cD1H<cD2V
  B13=G13+(B7-G7+B19-G19)/2;
 elseif cD1H>cD2V
  B13=G13+(B9-G9+B17-G17)/2;
 else
  B13=G13+(B7-G7+B19-G19+B9-G9+B17-G17)/4;
 end
else
 B13=G13+(B7-G7+B19-G19+B9-G9+B17-G17)/4;
end