Class NDFImporter

java.lang.Object
sc.fiji.snt.io.NDFImporter

public class NDFImporter extends Object
Importer for NeuronJ data files.
Author:
Tiago Ferreira
  • Constructor Details

    • NDFImporter

      public NDFImporter(InputStream is)
      Parameters:
      is - the InputStream of ndf data
    • NDFImporter

      public NDFImporter(String filePath)
      Parameters:
      filePath - the path to the ndf file to be imported
    • NDFImporter

      public NDFImporter(File file)
      Parameters:
      file - the ndf file to be imported
  • Method Details

    • getTrees

      public Collection<Tree> getTrees() throws IOException
      Extracts tracings from the specified file path
      Returns:
      the collection of imported trees
      Throws:
      IOException - if file could not be parsed
    • getROIs

      public ij.gui.Overlay getROIs() throws IOException
      Converts tracings into ROIs
      Returns:
      the Overlay containing the converted tracings
      Throws:
      IOException - if file could not be parsed
    • getProperties

      public Map<String,String> getProperties()
      Returns:
      the properties ('NDF metadata') of the parsed file
    • supportedVersion

      public static String supportedVersion()
      Returns:
      the last known version of NeuronJ known to work this importer
    • main

      public static void main(String... args) throws IOException
      Throws:
      IOException