%%%%%%%%%%%%%%%%
%% BASE JPEG %%
%%%%%%%%%%%%%%%%

for k = 0:7
	for l = 0:7
		vk = cos(pi*k*[1:2:15]/16);
		vl = cos(pi*l*[1:2:15]/16);

		A = vk'*vl;

		imag = mat2gray(A, [-1 1]);

		imwrite(imag, strcat('jbasis',num2str(k),num2str(l),'.bmp') )
	
	end
end

