public class CTCExporter extends Object
See http://celltrackingchallenge.net/
| Modifier and Type | Class and Description |
|---|---|
static class |
CTCExporter.ExportType |
| Constructor and Description |
|---|
CTCExporter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
exportAll(String exportRootFolder,
TrackMate trackmate,
CTCExporter.ExportType exportType,
Logger logger) |
static void |
exportOriginalImageData(String exportRootFolder,
int saveId,
ij.ImagePlus imp,
Logger logger) |
static void |
exportOriginalImageData(String exportRootFolder,
int saveId,
TrackMate trackmate,
Logger logger) |
static void |
exportSegmentationData(String exportRootFolder,
int saveId,
CTCExporter.ExportType exportType,
TrackMate trackmate,
Logger logger)
Writes the segmentation ground-truth files.
|
static void |
exportSettingsFile(String exportRootFolder,
int saveId,
TrackMate trackmate,
Logger logger)
Saves the settings part as XML for reference.
|
static String |
exportTrackingData(String exportRootFolder,
int saveId,
CTCExporter.ExportType exportType,
TrackMate trackmate,
Logger logger) |
static int |
getAvailableDatasetID(String exportRootFolder)
Returns a suitable dataset id to save in the specified folder.
|
static String |
getExportTrackingDataPath(String exportRootFolder,
int saveId,
CTCExporter.ExportType exportType,
TrackMate trackmate)
Returns the folder in which the tracking data will be exported.
|
public static String exportAll(String exportRootFolder, TrackMate trackmate, CTCExporter.ExportType exportType, Logger logger) throws IOException
IOExceptionpublic static void exportSettingsFile(String exportRootFolder, int saveId, TrackMate trackmate, Logger logger) throws IOException
exportRootFolder - the root folder for exporting.saveId - the id of the save file (exportRootFolder/01,
exportRootFolder/02, etc)trackmate - the trackmate to export.logger - a logger to report progress.IOExceptionpublic static int getAvailableDatasetID(String exportRootFolder)
For instance the first id return will be '1', which means that the original image data will be saved under the folder '01'. If '01' already exists, then this method will return 2, etc.
exportRootFolder - the root folder in which to export the data.public static void exportOriginalImageData(String exportRootFolder, int saveId, TrackMate trackmate, Logger logger) throws IOException
IOExceptionpublic static void exportOriginalImageData(String exportRootFolder, int saveId, ij.ImagePlus imp, Logger logger) throws IOException
IOExceptionpublic static void exportSegmentationData(String exportRootFolder, int saveId, CTCExporter.ExportType exportType, TrackMate trackmate, Logger logger) throws IOException
Only exports the spots that have a ROI, and write only the frames that have at least one spot with a ROI.
exportRootFolder - the root of the export folder.saveId - the id under which to save the data.exportType - the export type. Must be CTCExporter.ExportType.GOLD_TRUTH or
CTCExporter.ExportType.SILVER_TRUTH.trackmate - the TrackMate object to export.logger - a Logger instance to report progress.IOException - if a problem happens during writing.public static String exportTrackingData(String exportRootFolder, int saveId, CTCExporter.ExportType exportType, TrackMate trackmate, Logger logger) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic static final String getExportTrackingDataPath(String exportRootFolder, int saveId, CTCExporter.ExportType exportType, TrackMate trackmate)
exportRootFolder - the root folder to export in.saveId - the save id.exportType - the export type.trackmate - the TrackMate object to eport.exportTrackingData(String, int, ExportType, TrackMate, Logger)Copyright © 2010–2024 TrackMate. All rights reserved.