I am currently investigating different possibilities of implementing custom formats in ij2.
While the image data originally can come from different file types, my plugins will do some registration and finally needs to store additional data containing the transforms. So in order to not save the pixel data again, I would like to have some xml-based file format containing the transformation data, or containing a serialised transformation object.
I am looking for a possibility to implement a custom format, having the following UI functionality:
- usable via the File > Save As and File > Import menu
- open a file via drag and drop
For instance if I open a transform-file, what should happen is that a image file with the corresponding file name but different extension should be loaded, then additionally the mapping information will be read from the files containing some transformation. Finally the pixel data and the transformation data will be contained in an object extending DefaultDataset.
As far as I can see the AbstractFormat is tailored for image file containing pixel data and metadata. So I do not see how extending this will give me an xml-based transformation file reader.
Any pointers of how best to use scifio to solve this would be very much appreciated.