|
Bugzilla – Bug 671 |
Problem with registering BioFormats Extension from macro |
Last modified: 2014-06-16 13:36:36 CDT |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
| Problem with registering BioFormats Extension from macro | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
I start Fiji from the command line with the following command: ImageJ-win64.exe -macro Zen_Test\Open_CZI_OME_complete.ijm test.czi The first lines of this macro are shown below: --- MACRO --- name = getArgument; if (name=="") exit("No argument!"); // install Bio-Formats extension run("Bio-Formats Macro Extensions"); Ext.setId(name); imagedir = File.getParent(name); imagefilename = File.getName(name); print("Directory :", imagedir); print("File Name :", imagefilename); // get dimension of series Ext.getSeriesCount(seriesCount); Ext.getSizeX(sizeX); Ext.getSizeY(sizeY); Ext.getSizeZ(sizeZ); Ext.getSizeC(sizeC); Ext.getSizeT(sizeT); ... Unfortunately I always get the following macro error: "Unrecognized Ext function in line 9. Ext. <setId> (name);" But when Fiji is already running and I start Fiji as described above from the command line, the problem is gone and the CZI file is correctly opened via BioFormats. So my question is, why I always get the Extension problem and on any ideas to solve it. My current workaround is to always start Fiji beforehand. Cheers, Sebastian