I'm trying to read a gray image using imread, but the image quality is not good. The same commands works well in the freemat and the quality is good.
Please find the screen shot attached.
I'm using the Octave version 3.6.1
I'm using the command as
1) reading from the .bmp file directly
----------------------------------------------------
x = imread('d:\lena512.bmp');
figure(2), image(x), colormap(gray)
2) reading from the text file where I have the gray image matrix
------------------------------------------------------------------------------------------
x = dlmread('d:\Lena512_BMP_Matrix.txt', '', 0, 0);
figure(2), image(x), colormap(gray)
Please help me to correct this.
Thanks in advance.
Thanks,
Jithender