Is the .tiff structure in Matlab 2020a and Matlab 2020b/2021 different?

1 visualizzazione (ultimi 30 giorni)
Dear all,
I have got the following problem: I wrote a Matlab-Scritp that saves my processed image as a tiff file.
Afterwards I want to load it into a different sofware.
If I run my script with Matlab 2020a, everything works fine. Using any older Matlab version, the other software is not able to read it anymore.
Do you know whether there is anything changed during the version in the way the tiff file is saved?
How can I save my tiff file using the newest Matlab version getting the "older tiff-format"?
Thank you for your help!

Risposta accettata

Bruno Luong
Bruno Luong il 5 Apr 2022
Spostato: Dyuman Joshi il 16 Gen 2024
MATLAB has several ways to write tiff file, imwrite, print, Tiff class, etc... Which function are upu using and what type the data image?
  6 Commenti
Emma
Emma il 6 Apr 2022
Spostato: Dyuman Joshi il 16 Gen 2024
Yes, now I see differences:
For Matlab 2020a I get:
'LIBTIFF, Version 4.0.10
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.'
For Matlab 2021b I get:
'LIBTIFF, Version 4.2.0
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.'
Do you know where exactly the differences in the way my tiff file is saved lays?
Thank you a lot for your help!
Bruno Luong
Bruno Luong il 6 Apr 2022
Spostato: Dyuman Joshi il 16 Gen 2024
It seems imwrite Matlab 2021b use an update tiff library that your other SW cannot deal with.
I'm afraid you are stuck with the older MATLAB version, unless some authority person in TMW know a work around.

Accedi per commentare.

Più risposte (1)

Siraj
Siraj il 16 Gen 2024
Modificato: Siraj il 16 Gen 2024
Hi!
I understand that you've been using a MATLAB script with version R2020a to process images and save them as TIFF files, and this works well when you import the images into another program. However, it seems that you're encountering issues when you use newer versions of MATLAB, like R2020b or R2021a; the other software can't read the images.
It appears that the issue you're experiencing may be related to the version of LibTIFF that MATLAB is using. In MATLAB R2020a, the supported LibTIFF version is 4.0.10, while in MATLAB R2020b and R2021a, the version has been updated to 4.1.0. You can confirm this information through the following MATLAB documentation links:
MATLAB typically binds to a specific version of LibTIFF for each release and doesn't offer the flexibility to change it. A practical approach would be to identify the versions of LibTIFF that are supported by the other software you're using and match it with the corresponding MATLAB version.
If the information provided doesn't quite solve your issue, or if there's something I've misunderstood, you could reach out to MathWorks using the following link.
Hope this helps.

Community Treasure Hunt

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

Start Hunting!

Translated by