function [xx] = readakernel(fname)

fid = fopen(fname,'rb');
NN = fscanf(fid,'%d',2);
xx = fscanf(fid,'%f', [NN(1), NN(2)]);
fclose(fid);
%xx=0-xx;
ratio = max(max(xx))-min(min(xx));

if ratio < 0.1,
   ration = 0.1;
end

ratio = 255/ratio;

newxx = (xx-min(min(xx)))*ratio;

image(newxx);
h=title(fname);
set(h,'Interpreter','none');
colormap(gray(256));
axis('image');

return

