ini.trakem2.io
Class AmiraImporter

java.lang.Object
  extended by ini.trakem2.io.AmiraImporter

public class AmiraImporter
extends java.lang.Object

Parses an amira labelfield and imports the labels as AreaList instances into the project tree.


Constructor Summary
AmiraImporter()
           
 
Method Summary
static java.util.Collection<AreaList> extractAmiraLabels(ij.ImagePlus labels, amira.AmiraParameters ap, Layer first_layer, double xo, double yo)
          Returns an ArrayList containing all AreaList objects.
static java.util.Map<java.lang.Float,AreaList> extractAreaLists(ij.ImagePlus imp, Layer first_layer, double base_x, double base_y, float alpha, boolean add_background)
          Returns a map of label vs AreaList.
static java.util.Collection<AreaList> importAmiraLabels(Layer first_layer, double xo, double yo, java.lang.String default_dir)
          Returns the array of AreaList or null if the file dialog is canceled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmiraImporter

public AmiraImporter()
Method Detail

importAmiraLabels

public static java.util.Collection<AreaList> importAmiraLabels(Layer first_layer,
                                                               double xo,
                                                               double yo,
                                                               java.lang.String default_dir)
Returns the array of AreaList or null if the file dialog is canceled. The xo,yo is the pivot of reference.


extractAmiraLabels

public static java.util.Collection<AreaList> extractAmiraLabels(ij.ImagePlus labels,
                                                                amira.AmiraParameters ap,
                                                                Layer first_layer,
                                                                double xo,
                                                                double yo)
Returns an ArrayList containing all AreaList objects. The xo,yo is the pivot of reference.


extractAreaLists

public static java.util.Map<java.lang.Float,AreaList> extractAreaLists(ij.ImagePlus imp,
                                                                       Layer first_layer,
                                                                       double base_x,
                                                                       double base_y,
                                                                       float alpha,
                                                                       boolean add_background)
Returns a map of label vs AreaList.