beginner-question: how to use metadata.set-methods correctly
Posted: Mon Oct 02, 2017 8:18 am
Hello,
we are recording image data that we want to store, together with some parameters, for later reconstruction (superresolution microscopy) on our Omero-server
Our first idea was to attach a text file to the Tiff-stacks by using the Python based Omero command line interface, which didn't work for some reason. Maybe it's disabled on the server side or something.
We then decided that using the Tiff-header to store the information would be the smarter choice anyways, so we tried to modify the Java-examples https://github.com/openmicroscopy/biofo ... eTiff.java and https://github.com/openmicroscopy/biofo ... riter.java by calling .set* -methods of the metadata-objects.
We tested different .set[...]-methods and moved them around a bit, but found that neither of the 2 programs wrote the newly added information into the Tiff-file:
MinimumWriter doesn't add an xml-Header to the file at all.
ConvertToOmeTiff adds an XML-header, but the .set-methods of the IMetaData object didn't change the file (checked by comparing md5sums).
Is there a small Java-class that uses one of the "non-necessary" set-methods that we could use as a starting point for our program? Or is there some obvious change that we should have made to the Java classes mentioned above that is required to write the added information into the header?
Thanks,
Andy
we are recording image data that we want to store, together with some parameters, for later reconstruction (superresolution microscopy) on our Omero-server
Our first idea was to attach a text file to the Tiff-stacks by using the Python based Omero command line interface, which didn't work for some reason. Maybe it's disabled on the server side or something.
We then decided that using the Tiff-header to store the information would be the smarter choice anyways, so we tried to modify the Java-examples https://github.com/openmicroscopy/biofo ... eTiff.java and https://github.com/openmicroscopy/biofo ... riter.java by calling .set* -methods of the metadata-objects.
We tested different .set[...]-methods and moved them around a bit, but found that neither of the 2 programs wrote the newly added information into the Tiff-file:
MinimumWriter doesn't add an xml-Header to the file at all.
ConvertToOmeTiff adds an XML-header, but the .set-methods of the IMetaData object didn't change the file (checked by comparing md5sums).
Is there a small Java-class that uses one of the "non-necessary" set-methods that we could use as a starting point for our program? Or is there some obvious change that we should have made to the Java classes mentioned above that is required to write the added information into the header?
Thanks,
Andy