Commit d24f67a7 authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi
Browse files

update of Christian's segmentation

parent e7bb594f
......@@ -94,7 +94,7 @@
<dependency>
<groupId>de.embl.cba</groupId>
<artifactId>fiji-plugin-morphometry</artifactId>
<version>0.4.04</version>
<version>0.4.05</version>
</dependency>
</dependencies>
......
......@@ -126,7 +126,11 @@ public class Job_FocusEmbryoAutoDatasetSplit extends Job_Default{
//////code from Tischi
getEllipsoidParameters(img);
try{
getEllipsoidParameters(img);
}catch (Exception _ex) {
return false;
}
////
......@@ -178,17 +182,17 @@ public class Job_FocusEmbryoAutoDatasetSplit extends Job_Default{
@Override
protected Overlay createOverlay(){
Overlay o=new Overlay();
Roi pointRoi=new PointRoi(selectedXPosition, selectedYPosition);
pointRoi.setPosition((int)(selectedZPosition+1));
o.add(pointRoi);
Double angleRadians=rotation/180*Math.PI;
Roi lineRoi=new Arrow(selectedXPosition, selectedYPosition, selectedXPosition+halfLength*Math.cos(angleRadians), selectedYPosition-halfLength*Math.sin(angleRadians));
lineRoi.setStrokeColor(Color.PINK);
lineRoi.setStrokeWidth(1);
o.add(lineRoi);
if (selectedXPosition!=null) {
Roi pointRoi=new PointRoi(selectedXPosition, selectedYPosition);
pointRoi.setPosition((int)(selectedZPosition+1));
o.add(pointRoi);
Double angleRadians=rotation/180*Math.PI;
Roi lineRoi=new Arrow(selectedXPosition, selectedYPosition, selectedXPosition+halfLength*Math.cos(angleRadians), selectedYPosition-halfLength*Math.sin(angleRadians));
lineRoi.setStrokeColor(Color.PINK);
lineRoi.setStrokeWidth(1);
o.add(lineRoi);
}
return o;
}
......@@ -282,7 +286,7 @@ public class Job_FocusEmbryoAutoDatasetSplit extends Job_Default{
String tblFnm="summary_test03_.txt";
Job_FocusEmbryoAutoDatasetSplit testJob=new Job_FocusEmbryoAutoDatasetSplit();
testJob.initialise(null, "Focus.Image", false);
testJob.testJobMicTable(3, tblPth, tblFnm);
testJob.testJobMicTable(11, tblPth, tblFnm);
}
}
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