need some help reading dng files. [message #83800] |
Mon, 01 April 2013 16:02  |
fututre.keyboard
Messages: 10 Registered: September 2009
|
Junior Member |
|
|
Hi, Folks
I have some camera raw files in DNG format that I would like to be able to read in IDL. I read that DNG is an open format and is a special kind of TIFF. But I don't really know how to make use of the adobe DNG specification and import the raw data. I tried query_tiff and read_tiff and I can get some information but they are mostly wrong and I don't get any useful data. Any hints? Thanks and have a nice day!
Eugene
IDL8.2> print,query_tiff(imfn,info)
% Loaded DLM: TIFF.
1
IDL8.2> help, info
** Structure <110f5160>, 18 tags, length=144, data length=132, refs=1:
CHANNELS LONG 3
DIMENSIONS LONG Array[2]
HAS_PALETTE INT 0
IMAGE_INDEX LONG 0
NUM_IMAGES LONG 1
PIXEL_TYPE INT 1
TYPE STRING 'TIFF'
BITS_PER_SAMPLE LONG 8
ORIENTATION LONG 1
PLANAR_CONFIG LONG 1
PHOTOMETRIC LONG 2
POSITION FLOAT Array[2]
RESOLUTION FLOAT Array[2]
UNITS LONG 2
TILE_SIZE LONG Array[2]
DESCRIPTION STRING ''
DOCUMENT_NAME STRING ''
DATE_TIME STRING '2013:03:31 10:15:53'
IDL8.2> imdata=read_tiff(imfn)
% READ_TIFF: Incorrect count for "DNGPrivateData"; tag ignored
% Execution halted at: $MAIN$ 1 E:\Users\eugene\IDLWorkspace\idl_source\demo.pro
IDL8.2> print, info.POSITION
0.000000 0.000000
IDL8.2> print,info.resolution
300.000 300.000
IDL8.2> print,info.tile_size
160 1
IDL8.2> print, info.dimensions
160 120
|
|
|
|