Skip to content

Commit b556a51

Browse files
committed
CHG,ADD: TRA and DET measures can now optionally not to 'doStopOnEmptyImages'
1 parent ec50fbe commit b556a51

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/net/celltrackingchallenge/measures/DET.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public double calculate(final String gtPath, final String resPath,
8484
//do the upper stage
8585
cache = new TrackDataCache(log);
8686
cache.noOfDigits = noOfDigits;
87+
cache.shouldComplainOnEmptyImages = doStopOnEmptyImages;
8788

8889
log.info(" GT path: "+gtPath+"/TRA");
8990
log.info("RES path: "+resPath);

src/main/java/net/celltrackingchallenge/measures/TRA.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public TrackDataCache getCache()
7979
*/
8080
public boolean doConsistencyCheck = false;
8181

82+
/** This switches SEG to complain (and stop calculating)
83+
if empty ground-truth or result image was found. */
84+
public boolean doStopOnEmptyImages = true;
85+
8286
/**
8387
* Calculation option: do report list of discrepancies between the reference
8488
* and computed tracking result.
@@ -551,6 +555,7 @@ public double calculate(final String gtPath, final String resPath,
551555
//do the upper stage
552556
cache = new TrackDataCache(log);
553557
cache.noOfDigits = noOfDigits;
558+
cache.shouldComplainOnEmptyImages = doStopOnEmptyImages;
554559
cache.calculate(gtPath,resPath);
555560
}
556561

0 commit comments

Comments
 (0)