Reading RAW camera file

8 Ansichten (letzte 30 Tage)
GIL PINHEIRO
GIL PINHEIRO am 9 Dez. 2016
I am trying to import camera raw file in the Matlab and do further processing.
A piece of my code, where I read the file information:
fdir='C:\Users\gilpinheiro\Documents\AmScope'; fname='20161209122048.dng'; imgname = sprintf('%s\\%s',fdir,fname); meta_info = imfinfo(imgname);
The meta_info variable follows. There is no SubIFDs structure, referenced in the Steve blog:
Filename: 'C:\Users\gilpinheiro\Documents\AmScope\201612091220…'
FileModDate: '09-dez-2016 14:20:50'
FileSize: 6577874
Format: 'tif'
FormatVersion: []
Width: 4096
Height: 3286
BitDepth: 8
ColorType: 'CFA'
FormatSignature: [73 73 42 0]
ByteOrder: 'little-endian'
NewSubFileType: 0
BitsPerSample: 8
Compression: 'JPEG'
PhotometricInterpretation: 'CFA'
StripOffsets: []
SamplesPerPixel: 1
RowsPerStrip: 4.2950e+09
StripByteCounts: []
XResolution: []
YResolution: []
ResolutionUnit: 'Inch'
Colormap: []
PlanarConfiguration: 'Chunky'
TileWidth: 352
TileLength: 368
TileOffsets: [1x108 double]
TileByteCounts: [1x108 double]
Orientation: 1
FillOrder: 1
GrayResponseUnit: 0.0100
MaxSampleValue: 255
MinSampleValue: 0
Thresholding: 1
Offset: 8
Model: 'MU1403(USB2.0)'
DateTime: '2016:12:09 12:20:48'
XMP: '<?xpacket begin="￯ᄏ﾿" id="W5M0MpCehiHzreSzNTczkc9d"…'
DigitalCamera: [1x1 struct]
DNGVersion: [1 4 0 0]
DNGBackwardVersion: [1 1 0 0]
UniqueCameraModel: 'MU1403(USB2.0)'
CFAPlaneColor: [0 1 2]
CFALayout: 1
BlackLevelRepeatDim: [1 1]
BlackLevel: 0
WhiteLevel: 255
DefaultScale: [1 1]
DefaultCropOrigin: [0 0]
DefaultCropSize: [4096 3286]
ColorMatrix1: [1 0 0 0 1 0 0 0 1]
AnalogBalance: [1 1 1]
AsShotNeutral: [1 1 1]
BaselineExposure: -1
BaselineNoise: 1
BaselineSharpness: 1
BayerGreenSplit: 0
LinearResponseUnit: 1
AntiAliasStrength: 1
ShadowScale: 1
CalibrationIlluminant1: 21
BestQualityScale: 1
AliasLayerMetadata: [1x16 double]
UnknownTags: [9x1 struct]

Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by