필터 지우기
필터 지우기

Compression scheme not supported when creating a Tiff object

조회 수: 9 (최근 30일)
Önundur Ragnarsson
Önundur Ragnarsson 2023년 1월 19일
댓글: Önundur Ragnarsson 2023년 2월 21일
Hi, I'm working with .tif files for the first time. Geographical data, containing elevation measurements.
When I run the following code, I get an error in the first line of code, the error message stating: Error using tifflib, 'The compression scheme 50000 is currently not supported'. Why is that? I see that '50000' is not in the list of Compression Schemes contained in Tiff.Compression. Is the data file I'm using faulty in some way?
X = Tiff('example.tif','r');
Photometric_Tag = X.getTag(Tiff.TagID.Photometric);
Compression_Tag = X.getTag(Tiff.TagID.Compression);
PlanarConfiguration_Tag = X.getTag(Tiff.TagID.PlanarConfiguration);
ImageWidth_Tag = X.getTag(Tiff.TagID.ImageWidth);
ImageLength_Tag = X.getTag(Tiff.TagID.ImageLength);
y=read(X);
  댓글 수: 1
Önundur Ragnarsson
Önundur Ragnarsson 2023년 2월 2일
since my question has not elicited any responses in two weeks - can anyone let me know if my question is not clear enough?

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

답변 (1개)

Vidip Jain
Vidip Jain 2023년 2월 21일
Yes, it is possible that the file you are using has a compression scheme that is not supported by the Tiff class in MATLAB. The error message indicates that the compression scheme with value 50000 is not currently supported.
It is also possible that the file is corrupted or not in a compatible format with the Tiff class.
Possible solution is to use a different library or tool that can handle the specific compression scheme used in the file.
  댓글 수: 2
Walter Roberson
Walter Roberson 2023년 2월 21일
I find a source indicating that it might be ZStandard http://fileformats.archiveteam.org/wiki/Zstandard
Önundur Ragnarsson
Önundur Ragnarsson 2023년 2월 21일
Thank you both for your answers. I had not found the ZStandard information. That's very helpful.

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

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by