help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem reading the Gray Image - Image quality


From: Jithender Reddy
Subject: Problem reading the Gray Image - Image quality
Date: Mon, 9 Apr 2012 16:57:42 -0500

Hi,

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)


The quality of the image from those two forms is same as below.
 

Inline image 2


Please help me to correct this.

Thanks in advance.

Thanks,
Jithender

reply via email to

[Prev in Thread] Current Thread [Next in Thread]