Commit 7b070193 authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi
Browse files

debugging last protocol

parent 8a937c46
......@@ -81,13 +81,6 @@ public class Job_FocusEmbryoAutoDataset extends Job_Default{
}
experimentTable.setFileAbsolutePath(newImgFile, tableRowCounter, imgColumnNm, "IMG");
Point3d lzPoint=((Point3d[])this.getSharedValue("Zoom Points"))[zoomCounter];
Roi lzPointRoi=new PointRoi(lzPoint.x,lzPoint.y);
lzPointRoi.setPosition(0, (int)lzPoint.z, 0);
String saveLzRoiFolder=new File(rootPath,"Selected.Embryo.LZ").getAbsolutePath();
String saveLzRoiBasename=String.format("Embryo_%s_%05d",FileUtils.cutExtension(newImgFile.getName()),zoomCounter);
ROIManipulator2D.saveRoiToFile(saveLzRoiFolder, saveLzRoiBasename, lzPointRoi);
experimentTable.setFileAbsolutePath(saveLzRoiFolder, saveLzRoiBasename+".zip", tableRowCounter, "Selected.Embryo.LZ", "ROI");
experimentTable.writeNewFile("summary_"+Exper_nm+".txt", true);
......
......@@ -9,6 +9,7 @@ import automic.online.microscope.ZeissKeys;
import automic.online.jobs.Job_Default;
import automic.parameters.ParameterCollection;
import automic.parameters.ParameterType;
import automic.utils.FileUtils;
import automic.utils.roi.ROIManipulator2D;
import ij.IJ;
import ij.ImageJ;
......@@ -159,8 +160,16 @@ public class Job_SelectMultipleEmbryosManual3D extends Job_Default{
saveRoi=saveRoi.addPoint(selectedPoints[i].x,selectedPoints[i].y);
currentTable.setNumericValue(selectedPoints[i].x, 0, "Zoom.X");
currentTable.setNumericValue(selectedPoints[i].y, 0, "Zoom.Y");
this.recordSummaryDataset(true);
Roi lzPointRoi=new PointRoi(selectedPoints[i].x,selectedPoints[i].y);
lzPointRoi.setPosition(0, (int)selectedPoints[i].z, 0);
String saveLzRoiFolder=new File(currentTable.getRootPath(),"Selected.Embryo.LZ").getAbsolutePath();
String saveLzRoiBasename=String.format("Embryo_%s_%05d",FileUtils.cutExtension(newImgFile.getName()),i);
ROIManipulator2D.saveRoiToFile(saveLzRoiFolder, saveLzRoiBasename, lzPointRoi);
currentTable.setFileAbsolutePath(saveLzRoiFolder, saveLzRoiBasename+".zip", 0, "Selected.Embryo.LZ", "ROI");
this.recordSummaryDataset(true);
}
......@@ -168,7 +177,6 @@ public class Job_SelectMultipleEmbryosManual3D extends Job_Default{
saveRoiForImage(newImgFile,saveRoi);
this.setSharedValue("Zoom Points", selectedPoints);
this.setSharedValue("Zoom Counter", -1);
this.setSharedValue("Table Row Counter", -1);
}
......
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