Skip to content

Add UI for Threshold #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.class
*.jar
29 changes: 17 additions & 12 deletions Comet.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import ij.gui.Roi;

/**
* Comet.java
* Created in 2012 by Benjamin Gyori
Expand All @@ -19,15 +21,13 @@
* When you use this plugin for your work, please cite
* Gyori BM, Venkatachalam G, et al. OpenComet: An automated tool for
* comet assay image analysis

*
* You should have received a copy of the GNU General Public License
* along with this plugin; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/


import ij.gui.Roi;

public class Comet {
public Comet(Roi roi){
this.cometRoi = (Roi)roi.clone();
Expand Down Expand Up @@ -90,15 +90,20 @@ public Comet(Roi roi){
public int headRoiCenterY;

public String getMeasurementString(String sep){
String flagStr;
if(status==VALID)
flagStr = "normal";
else if (status==OUTLIER)
flagStr = "outlier";
else if (status==DELETED)
flagStr = "deleted";
else
return "";
String flagStr;
switch(status) {
case VALID:
flagStr = "normal";
break;
case OUTLIER:
flagStr = "outlier";
break;
case DELETED:
flagStr = "deleted";
break;
default:
return "";
}

String result = id + sep
+ flagStr + sep
Expand Down
Loading