Skip to content

Add support for writing of 3D Tiff images #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Conversation

vdbwouter
Copy link
Contributor

The current version of function dip::ImageWriteTiff does not support writing 3D images. This pull request adds support for this, using TIFFWriteDirectory. It also adds some additional tests, to ensure the behavior is properly implemented.

If anything is missing, feel free to let me know.

Add support for writing 3D tiff files by saving them as a stack of 2D
images.
Fix an issue in the tiff reading and writing test. In this test, only
the first 5 slices were tested for the 3D images. This worked, as the
test image only had 5 slices, but it wouldn't have caught an accidental
additional slice that was written. This fix addresses that issue, and
ensures all slices of the image are loaded from disk.
Remove the warning that writing of 3D images is not yet supported for
ImageWriteTiff from the documentation. As this behaviour is currently
implemented, this warning is now false.
@crisluengo crisluengo merged commit 2b6e4d7 into DIPlib:master Nov 26, 2024
7 checks passed
@crisluengo
Copy link
Member

Thank you so very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants