inside one of my python scripts I wnat to export an image as OME-TIFF using the BioFormats exporter. I searched and looked aroud for examples and so far I got
def bfexporter(imp, savepath): print('Savepath: ', savepath) plugin = LociExporter() plugin.arg = savepath exporter = Exporter(plugin, imp) exporter.run() return None
THis works OK, but I still could not find out how to set the options programmatically (save single T, Z, C, ROI, uncompressed etc). I need to run that export completly without any user interaction and therefore I need to set all those option programmatically. Has anyone an exmaple to point me into the right direction?