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?

 Réponse acceptée

mano49j
mano49j le 7 Août 2013

0 votes

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

2 commentaires

Dalas
Dalas le 8 Août 2013
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.

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 6 Août 2013

3 votes

Yes. It's called imread().

2 commentaires

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur DICOM Format dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by