Commit ed95294f authored by gonciarz's avatar gonciarz

mask can be now set via API

parent f8805198
......@@ -412,7 +412,12 @@ public class InteractionAnalysisGui extends InteractionAnalysisGuiBase {
return tempImg;
}
private void resetMask() {
public void setMask(ImagePlus aProvidedMask) {
iMaskImg = aProvidedMask;
maskPane.setTitleAt(0, "Mask: " + iMaskImg.getTitle());
}
public void resetMask() {
iMaskImg = null;
maskPane.setTitleAt(0, "Mask: <empty>");
}
......@@ -436,16 +441,4 @@ public class InteractionAnalysisGui extends InteractionAnalysisGuiBase {
return image3d;
}
static Point3d[] filter(double maxx, double maxy, Point3d[] input) {
ArrayList<Point3d> out = new ArrayList<>(input.length);
for (Point3d p : input) {
if (p.x <= maxx && p.y <= maxy) {
out.add(p);
}
}
return out.toArray(new Point3d[0]);
}
}
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