Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

reading an pdf image

Asked by nkumar on 9 Oct 2013
Latest activity Commented on by chitresh on 1 Nov 2013

I have an pdf ,in which i have converted to image format,when i read into matlab using imread,the document is not clear as the original image ,plz tell why i get like this

my image

http://www.sendspace.com/file/ais74u

0 Comments

nkumar

Tags

Products

No products are associated with this question.

1 Answer

Answer by chitresh on 9 Oct 2013
Accepted answer

first of all its almost same after downloading the file you upload on link,your file is in png format,if you want to increase the quality u can create a jpg file first and then using quality command u can see the change in it. a = imread('pdf.jpg'); imwrite(a,'pdf.jpg'); imshow('pdf.jpg'); imfinfo('pdf.jpg'); imwrite(a,'pdf1.jpg','quality',100); figure, imshow('pdf1.jpg'); imfinfo('pdf1.jpg');

hope this will help you...

2 Comments

nkumar on 10 Oct 2013

If i convert a pdf to image will the quality gets decreased?if so how i can convert document to image format,its quality must be clear for reading into matlab

chitresh on 1 Nov 2013

i have already mentioned the code above seems you havnt try it, try it first, it increases the quality to 100 % of the jpg image. you upload pnj image not pdf, and you can convert pdf to image format have a look to this link http://www.mathworks.com/matlabcentral/fileexchange/7952-text2image-convert-an-ascii-text-file-to-image hope you satisfied with the answer

chitresh

Contact us