extract metadata from inside OMETIFF container, feed to omexml generator
reinterpret data to 2D into a TiffImage container, feed omexl to first ifd's IMAGEDESCRIPTION tag
save tiff using TiffImage
I'm still not familiar enough to the internal data structure of OMETIFF and TiffImage, so I have better to
keep it simple and independent to avoid confusing: fix some variables and just write a XYTZ series(for my practical). These variables with fixed value should be configurable and flexible later.
We need a function to construct OMETIFF object from raw data, and think about how to update IMAGEDESCRIPTION without dump image data from OMETIFF object. Need help from @tlnagy.
Although it is uncompleted, it still makes sense to auto handle image dimension in reading and writing.
Saving OMETIFF is supposed as:
save tiff using TiffImage
I'm still not familiar enough to the internal data structure of OMETIFF and TiffImage, so I have better to keep it simple and independent to avoid confusing: fix some variables and just write a XYTZ series(for my practical). These variables with fixed value should be configurable and flexible later.
We need a function to construct OMETIFF object from raw data, and think about how to update
IMAGEDESCRIPTION
without dump image data from OMETIFF object. Need help from @tlnagy.Although it is uncompleted, it still makes sense to auto handle image dimension in reading and writing.