Commit 63f00ab9 authored by gonciarz's avatar gonciarz
Browse files

Fix loading particles from csv files

parent 52990bd1
......@@ -318,10 +318,12 @@ public class ParticleTracker3DModular_ implements PlugInFilter, PreviewInterface
P_csv.setCSVPreferenceFromFile(files_dir + File.separator + file_sel);
final Vector<Particle> p = P_csv.Read(files_dir + File.separator + file_sel, null);
logger.debug("Loaded from CSV " + p.size() + " particles.");
iInputImageFileInfo = new FileInfo();
iInputImageFileInfo.directory = files_dir;
Collections.sort(p, (d1, d2) -> {
return d1.getFrame() - d2.getFrame();
});
if (p.size() == 0) {
IJ.error("No regions defined for this image,nothing to do");
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment