Now I want to edit OME-XML header of OME.TIFF files on Windows 10.
I'm looking for a right tool for this, but things look quite complicated so for.
First, we have the command line tool, and `tiffcomment` command seems the one for me. But then I realized that one needs to build the tool. I may be able to do it, but I'm not familiar with building process, and documentation does not seem beginner friendly.
https://docs.openmicroscopy.org/bio-for ... ation.html
Second, `EditTiffComment.java` seemed to be the one as well. But it doesn't appear to be included in `bioformats_package.jar` in Bio-Formats MATLAB toolbox. I don't really know how to access it.
https://docs.openmicroscopy.org/ome-mod ... /code.html
Third, I found `loci.formats.tools.EditTiffG` class in `bioformats_package.jar`. By the name of it, it seemed ideal one. I ran the following code in MATLAB, and a window opened. I was able to open an OME.TIFF file from File > Open menu of the window. Although the XML is shown in a nonsensical manner without any space or new lines, I guess I can edit it and then Save.
ImageJ's Bio-Formats plugin can show the same XML in a more human-friendly way and that could help to identify which bit to edit in what way.
- Code: Select all
bfCheckJavaMemory
g = loci.formats.tools.EditTiffG;
It would be actually better to do it programmatically for automation in case of batch processing.
`ome.xml.model` Java API may also be related, but I have no idea of how to use it. There are so many classes. And apparently, they have gone after 5.2.4.
Is `EditTiffG` the best way for a dummy, then?
Thanks,
Kouichi