Skip to content

Commit

Permalink
Release 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpfunky committed Aug 25, 2016
1 parent 4cf15fd commit e792d2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">

<groupId>de.biomedical-imaging.imagej</groupId>
<artifactId>ij_trajectory_classifier</artifactId>
<version>0.8.2-SNAPSHOT</version>
<version>0.8.2</version>
<packaging>jar</packaging>

<name>Trajectory classifier</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ public void run(String arg) {
resampleRate = (int) Prefs.get("trajclass.ResampleRate", 1);
pixelsize = Prefs.get("trajclass.pixelsize", 0.166);
timelag = 1.0/Prefs.get("trajclass.framerate",30);
showID = Prefs.getBoolean("trajclass.showID", true);
showOverviewClasses = Prefs.getBoolean("trajclass.showOverviewClasses", true);
removeGlobalDrift = Prefs.getBoolean("trajclass.removeGlobalDrift", false);
useReducedModelConfinedMotion = Prefs.get("trajclass.useReducedModelConfinedMotion", false);
showID = Prefs.get("trajclass.showID", true);
showOverviewClasses = Prefs.get("trajclass.showOverviewClasses", true);
removeGlobalDrift = Prefs.get("trajclass.removeGlobalDrift", false);

//Show GUI
GenericDialog gd = new GenericDialog("TraJectory Classification ("+version+")");
Expand All @@ -179,10 +180,10 @@ public void run(String arg) {
gd.addNumericField("Resample rate*", resampleRate, 0);
gd.addNumericField("Pixelsize (µm)**", pixelsize, 4);
gd.addNumericField("Framerate (FPS)", 1/timelag, 0);
gd.addCheckbox("Use reduced model confined motion", false);
gd.addCheckbox("Use reduced model confined motion", useReducedModelConfinedMotion);
gd.addCheckbox("Show IDs", showID);
gd.addCheckbox("Show overview classes", showOverviewClasses);
gd.addCheckbox("Remove global drift", false);
gd.addCheckbox("Remove global drift", removeGlobalDrift);
gd.addMessage("* The ratio of window size / resample rate have to be at least 30.");
gd.addMessage("** Set to zero if the imported data is already correctly scaled.");
gd.addHelp("http://imagej.net/TraJClassifier");
Expand All @@ -200,7 +201,8 @@ public boolean dialogItemChanged(GenericDialog gd, AWTEvent e) {
showID = gd.getNextBoolean();
showOverviewClasses = gd.getNextBoolean();
removeGlobalDrift = gd.getNextBoolean();
boolean valid = windowSizeClassification/resampleRate>=30;
boolean valid = (windowSizeClassification/resampleRate>=30) && (minTrackLength >= windowSizeClassification);

return valid;
}
});
Expand Down Expand Up @@ -228,6 +230,7 @@ public boolean dialogItemChanged(GenericDialog gd, AWTEvent e) {
Prefs.set("trajclass.showID", showID);
Prefs.set("trajclass.showOverviewClasses", showOverviewClasses);
Prefs.set("trajclass.removeGlobalDrift", removeGlobalDrift);
Prefs.set("trajclass.useReducedModelConfinedMotion", useReducedModelConfinedMotion);
}


Expand Down

0 comments on commit e792d2c

Please sign in to comment.