Code covered by the BSD License  

Highlights from
Hierarchical RGB IMage Compression with GUI

image thumbnail

Hierarchical RGB IMage Compression with GUI

by

 

The code performs Hierarchical image Compression on RGB image and presents the results with a GUI

V=upSample(Val)
function V=upSample(Val)

[r,c]=size(Val);
%if (rem2 ~=0) Val=[Val;
% w = r*2-1 ;
% h = c*2-1 ;
% temp=zeros(w,h);
% y(1:2:w,1:2:h) = Val;
% y(2:2:w,2:2:h) = Val(1:r-1,1:c-1);
% y(1:2:w,2:2:h) = Val(1:r  ,1:c-1);
% y(2:2:w,1:2:h) = Val(1:r-1,1:c  );
% 
% V=y;

w = r*2 ;
h = c*2 ;
temp=zeros(w,h);
y(1:2:w,1:2:h) = Val;
y(2:2:w,2:2:h) = Val;
y(1:2:w,2:2:h) = Val;
y(2:2:w,1:2:h) = Val;

V=y;

Contact us