Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ALMF
feedback-fly-embryo-crocker
Commits
6a189077
Commit
6a189077
authored
Aug 13, 2018
by
Aliaksandr Halavatyi
Browse files
rotaion log to the table
parent
d105b68f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/feedback/fly/embryo/jobdistributors/JobDistributor_AutoSelectionMultiple_AFocus_Rotation.java
View file @
6a189077
...
...
@@ -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_FocusEmbryoAuto
Rotation
;
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_FocusEmbryoAuto
Rotation
job3
=
new
Job_FocusEmbryoAuto
Rotation
();
ParameterCollection
job3Parameters
=
job3
.
createJobParameters
();
job3Parameters
.
setUndefinedValuesFromDefaults
();
ParameterGuiManager
pgManager3
=
new
ParameterGuiManager
(
job3Parameters
);
...
...
src/main/java/feedback/fly/embryo/jobs/Job_FocusEmbryoAuto.java
View file @
6a189077
...
...
@@ -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
);
}
/**
...
...
src/main/java/feedback/fly/embryo/jobs/Job_FocusEmbryoAutoRotation.java
0 → 100644
View file @
6a189077
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"
);
}
}
src/main/java/feedback/fly/embryo/jobs/Job_SelectMultipleEmbryosAutoRotation.java
View file @
6a189077
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment