Skip to content, Skip to search

Changes

TrakEM2 Scripting

638 bytes added, 21:33, 5 June 2011
Import images, montage them, blend them and save as .xml
Notice that, for this script to work for you, you will have to edit two lines:
1. The source <i><b>folder</b></i> where images are to be found. 2. The <i><b>pattern</b></i> to match, which dictates which image goes to which layer.
Be sure as well to create as many layers as you need. If you don't know, use the <i>getLayer</i> method on the <i>layerset</i> variable, which has the ability to create a new layer when asked to get one for a Z for which a layer doesn't exist yet.
 
Documentation you may want to look at:
[http://pacific.mpi-cbg.de/javadoc/ini/trakem2/Project.html#newFSProject(java.lang.String,%20ini.trakem2.tree.TemplateThing,%20java.lang.String) Project.newFSProject], [http://pacific.mpi-cbg.de/javadoc/ini/trakem2/display/Patch.html#createPatch(ini.trakem2.Project,%20java.lang.String) Patch.createPatch], [http://pacific.mpi-cbg.de/javadoc/ini/trakem2/display/Layer.html#add(ini.trakem2.display.Displayable) Layer.add], [http://pacific.mpi-cbg.de/javadoc/mpicbg/trakem2/align/Align.html Align], [http://pacific.mpi-cbg.de/javadoc/mpicbg/trakem2/align/AlignTask.html AlignTask],
Emailconfirmed, uploaders
653
edits