[ome-users] BioFormats Macro Extensions Problem with Ext.openImage(title, no)
Balaji Ramalingam
b.ramalingam at dundee.ac.uk
Wed Jul 30 10:12:26 BST 2014
Hi Oliver,
There seems to be a signature error,
Here's a small Macro that works for me,
run("Bio-Formats Macro Extensions");
id = File.openDialog("Choose a file");
Ext.setId(id);
Ext.getImageCount(imageCount);
for (image=0; image<imageCount; image++) {
Ext.openImage("", image);
}
Ext.close();
For more details on the macro-extensions,
https://www.openmicroscopy.org/site/support/bio-formats5/users/imagej/#macros-and-plugins
And I got the above suggestion from an earlier forum post,
http://www.openmicroscopy.org/community/viewtopic.php?f=13&t=2400
Hope this helps.
Best,
Balaji
__________________
Mr Balaji Ramalingam
Software Developer
OME Team
College of Life Sciences
University of Dundee
From: Burri Olivier <olivier.burri at epfl.ch<mailto:olivier.burri at epfl.ch>>
Date: Tuesday, 29 July 2014 14:31
To: "ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>" <ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>>
Subject: [ome-users] BioFormats Macro Extensions Problem with Ext.openImage(title, no)
Hi,
When running the BioFormats Macro extensions,
After initializing the image and setting the series
Ext.setId(id);
Ext.setSeries(seriesNum);
If I run something like
Ext.openImage("My Image", 0);
I get the following error dialog:
« Macro Error »
Function name expected : in line ##.
Ext.<openImage>("My Image", 0);
If I replace the call to Ext.openImage with Ext.openSubImage
And make sure to get the X and Y sizes of the image before, this works just fine.
Ext.openSubImage("My Image", 0,0,0,sizeX,sizeY);
Any thoughts?
Thank you and best regards
Oli
Olivier Burri
Engineer - Image Processing
& Software Development
EPFL - SV - PTECH - BIOP
The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20140730/8d78218e/attachment.html>
More information about the ome-users
mailing list