function [Y, U, V] = unpad_images(Y, U, V, padding)



Y = Y(padding+1:size(Y,1),:) ;

Y = Y(1:size(Y,1)-padding,:) ;

Y = Y(:,padding+1:size(Y,2)) ;

Y = Y(:,1:size(Y,2)-padding) ;



padding = padding/2 ;



U = U(padding+1:size(U,1),:) ;

U = U(1:size(U,1)-padding,:) ;

U = U(:,padding+1:size(U,2)) ;

U = U(:,1:size(U,2)-padding) ;



V = V(padding+1:size(V,1),:) ;

V = V(1:size(V,1)-padding,:) ;

V = V(:,padding+1:size(V,2)) ;

V = V(:,1:size(V,2)-padding) ;

