Commit 6a189077 authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi
Browse files

rotaion log to the table

parent d105b68f
......@@ -13,7 +13,7 @@ import automic.parameters.gui.ParameterGuiManager;
import automic.table.TableModel;
import automic.table.TableProcessor;
import feedback.fly.embryo.jobs.Job_AutofocusInitOffset;
import feedback.fly.embryo.jobs.Job_FocusEmbryoAuto;
import feedback.fly.embryo.jobs.Job_FocusEmbryoAutoRotation;
import feedback.fly.embryo.jobs.Job_SelectMultipleEmbryosAutoRotation;
......@@ -61,7 +61,7 @@ public class JobDistributor_AutoSelectionMultiple_AFocus_Rotation extends JobDis
super.addImageJob(job2, "DE_2_", "LZ.Image", true);
Job_FocusEmbryoAuto job3=new Job_FocusEmbryoAuto();
Job_FocusEmbryoAutoRotation job3=new Job_FocusEmbryoAutoRotation();
ParameterCollection job3Parameters=job3.createJobParameters();
job3Parameters.setUndefinedValuesFromDefaults();
ParameterGuiManager pgManager3=new ParameterGuiManager(job3Parameters);
......
......@@ -26,7 +26,10 @@ import loci.plugins.BF;
import loci.plugins.in.ImporterOptions;
public class Job_FocusEmbryoAuto extends Job_Default{
public static final String KEY_FOCUS_CHANNEL_INDEX="Focus channel index";
public static final String KEY_WAIT_IMAGE_OPENING="Wait for image opening (milliseconds)";
//private static final Roi nullRoi=null;
......@@ -37,6 +40,8 @@ public class Job_FocusEmbryoAuto extends Job_Default{
private Integer zSubmit;
private int targetChannel=1;
private int imageOpeningTimeDelay=3000;
@Override
protected void cleanIterOutput(){
......@@ -71,7 +76,7 @@ public class Job_FocusEmbryoAuto extends Job_Default{
//img=ImageOpenerWithBioformats.openImage(newImgFile);
TimeUnit.MILLISECONDS.sleep(3000);
TimeUnit.MILLISECONDS.sleep(imageOpeningTimeDelay);
img=openSelectedSlices(newImgFile);
}
......@@ -193,6 +198,8 @@ public class Job_FocusEmbryoAuto extends Job_Default{
ParameterCollection jobCollection=new ParameterCollection();
jobCollection.addParameter(KEY_FOCUS_CHANNEL_INDEX, null, targetChannel, ParameterType.INT_PARAMETER);
jobCollection.addParameter(KEY_WAIT_IMAGE_OPENING,null, imageOpeningTimeDelay, ParameterType.INT_PARAMETER);
return jobCollection;
}
......@@ -200,6 +207,7 @@ public class Job_FocusEmbryoAuto extends Job_Default{
@Override
public void parseInputParameterValues(ParameterCollection _jobParameterCollection){
this.targetChannel=(Integer)_jobParameterCollection.getParameterValue(KEY_FOCUS_CHANNEL_INDEX);
this.imageOpeningTimeDelay=(Integer)_jobParameterCollection.getParameterValue(KEY_WAIT_IMAGE_OPENING);
}
/**
......
package feedback.fly.embryo.jobs;
public class Job_FocusEmbryoAutoRotation extends Job_FocusEmbryoAuto {
@Override
protected void preProcessOnline()throws Exception{
super.preProcessOnline();
Integer zoomIndex=(Integer)getSharedValue("Zoom Counter");
Double[] rotations=(Double[])this.getSharedValue("Rotations");
currentTable.setNumericValue(rotations[zoomIndex], curDInd, "Rotation");
}
}
......@@ -278,7 +278,7 @@ public class Job_SelectMultipleEmbryosAutoRotation extends Job_Default{
this.setSharedValue("Zoom Points", selectedPoints);
this.setSharedValue("Zoom Counter", -1);
this.setSharedValue("Selected Embryo Rois", selectedEmbryoRois);
this.setSharedValue("Rotations", rotations);
}
@Override
......
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