Open DNG Image File

조회 수: 30 (최근 30일)
Superb
Superb 2012년 2월 26일
Hi, can I know the way to access and open DNG image file using Matlab? Is this the correct way? TQ...
imdata=imread('ABC.dng'); image(imdata)

답변 (2개)

Walter Roberson
Walter Roberson 2012년 2월 26일
imread() will not be able to handle it properly. Please read http://blogs.mathworks.com/steve/2011/03/08/tips-for-reading-a-camera-raw-file-into-matlab/

Superb
Superb 2012년 2월 26일
Yeah...Thanks...I've try my previous code...it only get a blurry image...After that I found another topic which is the same as Walter link...But After I use imtool(cfa), it shows me a black and white image(quite black)...not sure whether it's a correct image I Should obtained from original image which is in Color...can anyone help explain? TQ...
  댓글 수: 5
Superb
Superb 2012년 2월 27일
This is the 2 I try...and the last one I use was using the "2" below...don't know whether it's a correct choice...since "1" will only get Thumbnail of the image...very blur(small size)...so i try "2", but "2" will be very dark but in a big size...
1. info = imfinfo('IMG.dng')
PhotometricInterpretation: 'RGB'
2. info.SubIFDs{1}
PhotometricInterpretation: 'CFA'
John
John 2012년 2월 28일
I was kind of thinking it was going to be CFA. It's raw sensor data. I do not know a lot about it, but you might consult the TIFF/EP specification for more information about it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by