Cannot get .tif image to display. Following are image info

조회 수: 6 (최근 30일)
khalil ur Rehman
khalil ur Rehman 2019년 1월 15일
댓글: Walter Roberson 2019년 1월 15일
Filename: 'D:\PhD Research Work China\MATLAB\Imag11.tif'
FileModDate: '05-Dec-2018 17:56:30'
FileSize: 9678057
Format: 'tif'
FormatVersion: []
Width: 3328
Height: 4096
BitDepth: 16
ColorType: 'grayscale'
FormatSignature: [73 73 42 0]
ByteOrder: 'little-endian'
NewSubFileType: 0
BitsPerSample: 16
Compression: 'unknown'
PhotometricInterpretation: 'BlackIsZero'
StripOffsets: 8
SamplesPerPixel: 1
RowsPerStrip: 4096
StripByteCounts: 9677772
XResolution: []
YResolution: []
ResolutionUnit: 'Inch'
Colormap: []
PlanarConfiguration: 'Chunky'
TileWidth: []
TileLength: []
TileOffsets: []
TileByteCounts: []
Orientation: 1
FillOrder: 1
GrayResponseUnit: 0.0100
MaxSampleValue: 65535
MinSampleValue: 0
Thresholding: 1
Offset: 9677780
ImageDescription: '1.2.840.113681.3232235880.1521015602.4028.186'
Software: '0'
Artist: 'MBCIMAGE'
DotRange: [0 4095]
UnknownTags: [4×1 struct]
  댓글 수: 4
KSSV
KSSV 2019년 1월 15일
Unable to read...it says the file is corrupt....

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

채택된 답변

KSSV
KSSV 2019년 1월 15일
편집: KSSV 2019년 1월 15일
YOu should use fread to read the data. Read about fread. Also have a look on Tiff
s = imfinfo('Imag11.tif') ;
T = Tiff('Imag11.tif','r') ;
I = read(T);
  댓글 수: 3
Walter Roberson
Walter Roberson 2019년 1월 15일
The files are too small to hold all of the data, at least if it is in uncompressed form. 4096 rows by 3328 columns by 2 bytes per sample should be 27262976 bytes for the data, but the first file is only about 1/3 of that at 9678057 bytes.
If the file is not corrupt then it is using an unknown compression #32765, which I do not seem to locate any reference for. A proprietary compression scheme perhaps.
Walter Roberson
Walter Roberson 2019년 1월 15일
By the way, I used fread to read in the raw data, and I manipulated it under several potential configurations. I could see that there is some structure in the data, but nothing I could come up with looked anything like an "image".

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by