public class TrackMateAdapter extends Object
Constructor and Description |
---|
TrackMateAdapter() |
Modifier and Type | Method and Description |
---|---|
static List<Track> |
applyTracking(List<Track> tracks,
MeshImageStack mis,
Path trackMateFile)
Takes the provided Tracks for the provided image file and attempts to link them based on associated positions.
|
static List<Track> |
createSpotList(Model model,
MeshImageStack geometry) |
static double[] |
getCenterRealCoordinates(DeformableMesh3D mesh,
MeshImageStack stack)
Uses the same algorithm that is used to get the real coordinates for spot/track generation.
|
static List<Track> |
importTrackMateFile(MeshImageStack mis,
Path trackMateFile) |
static List<Track> |
importTrackMateFile(Path image,
Path trackMateFile)
Overload in case the image hasn't been loaded yet.
|
static void |
main(String[] args) |
static void |
saveAsTrackMateFile(MeshImageStack stack,
List<Track> tracks,
Path destination) |
public static List<Track> applyTracking(List<Track> tracks, MeshImageStack mis, Path trackMateFile)
tracks
- The collection of tracks that will be mapped using the trackmate file tracks.mis
- Image that tracks geometry is based on.trackMateFile
- xml file that tracking information is loaded from.public static List<Track> importTrackMateFile(Path image, Path trackMateFile)
image
- path to the associated image.trackMateFile
- path to a trackmate xml file.public static double[] getCenterRealCoordinates(DeformableMesh3D mesh, MeshImageStack stack)
mesh
- stack
- public static List<Track> createSpotList(Model model, MeshImageStack geometry)
public static List<Track> importTrackMateFile(MeshImageStack mis, Path trackMateFile)
public static void saveAsTrackMateFile(MeshImageStack stack, List<Track> tracks, Path destination) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.