Skip to content

Commit

Permalink
Handle unclassified annotations in SparseImageServerCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
petebankhead committed May 13, 2020
1 parent 7337e73 commit eb27109
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -115,10 +115,11 @@ protected SparseImageServer call() throws Exception {
}

static Predicate<PathObject> createPredicate(PathClass pathClass, boolean rectanglesOnly) {
var pathClass2 = pathClass == PathClassFactory.getPathClassUnclassified() ? null : pathClass;
if (rectanglesOnly)
return (PathObject p) -> p.isAnnotation() && p.getPathClass() == pathClass && p.getROI() instanceof RectangleROI;
return (PathObject p) -> p.isAnnotation() && p.getPathClass() == pathClass2 && p.getROI() instanceof RectangleROI;
else
return (PathObject p) -> p.isAnnotation() && p.getPathClass() == pathClass;
return (PathObject p) -> p.isAnnotation() && p.getPathClass() == pathClass2;
}


Expand Down

0 comments on commit eb27109

Please sign in to comment.