How do I extract image information from a .png file?

Is there a function like dicomeread for .png files or do I have to convert my .png images to dicom files?

 Accepted Answer

For reading .dcm files use dicomread and for .png files imread is used..,

2 Comments

That turns it into a matrix. I need to know patient information that's stored in the file as well.
doc dicominfo %dicom
doc imfinfo %pngs et al.

Sign in to comment.

More Answers (1)

Yes. It's called imread().

2 Comments

That turns it into a matrix. I need to know patient information that's stored in the file as well.
@Angus: Are you sure that there are patient data stored in the PNGs? Where? In the comment section or as alternate data stream?

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 6 Aug 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!