@@ -0,0 +1,1292 @@
+package bdv;%0A%0Aimport bdv.export.ProgressWriterConsole;%0Aimport bdv.img.imaris.Imaris;%0Aimport bdv.spimdata.SpimDataMinimal;%0Aimport bdv.spimdata.XmlIoSpimDataMinimal;%0Aimport bdv.viewer.ViewerOptions;%0Aimport java.io.IOException;%0Aimport mpicbg.spim.data.SpimDataException;%0A%0Apublic class ImarisExample%0A%7B%0A%09static void createXmlForIms( String imsFilename, String xmlFilename ) throws IOException, SpimDataException%0A%09%7B%0A%09%09final SpimDataMinimal spimData = Imaris.openIms( imsFilename );%0A%09%09new XmlIoSpimDataMinimal().save( spimData, xmlFilename );%0A%09%7D%0A%0A%09public static void main( String%5B%5D args ) throws IOException, SpimDataException%0A%09%7B%0A%09%09System.setProperty( %22apple.laf.useScreenMenuBar%22, %22true%22 );%0A%0A%09%09final String imsFilename = %22/Users/pietzsch/Desktop/OvernightClaritySmall.ims%22;%0A%09%09final String xmlFilename = %22/Users/pietzsch/Desktop/OvernightClaritySmall.xml%22;%0A%0A//%09%09final String imsFilename = %22/Users/pietzsch/Imaris Demo Images/DrosophilaEggChamber_with_objects.ims%22;%0A//%09%09final String xmlFilename = %22/Users/pietzsch/Imaris Demo Images/DrosophilaEggChamber_with_objects.xml%22;%0A%0A%09%09// write xml file for ims%0A%09%09createXmlForIms( imsFilename, xmlFilename );%0A%0A%09%09// open xml file in BigDataViewer%0A%09%09BigDataViewer.open( xmlFilename, %22BigDataViewer%22, new ProgressWriterConsole(), ViewerOptions.options() );%0A%09%7D%0A%7D%0A%0A

Add example of creating a XML file corresponding to a .ims file