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
0ed6ba77
Commit
0ed6ba77
authored
Feb 26, 2020
by
Aliaksandr Halavatyi
Browse files
remove rotation reference from autoselection job
parent
7cba4d6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/feedback/fly/embryo/jobs/Job_SelectMultipleEmbryosAutoRotation.java
View file @
0ed6ba77
...
...
@@ -24,7 +24,6 @@ import ij.plugin.filter.ParticleAnalyzer;
import
ij.plugin.filter.RankFilters
;
import
ij.plugin.frame.RoiManager
;
import
ij.process.ImageProcessor
;
import
ij.process.ImageStatistics
;
import
loci.plugins.BF
;
import
loci.plugins.in.ImporterOptions
;
...
...
@@ -66,7 +65,6 @@ public class Job_SelectMultipleEmbryosAutoRotation extends Job_Default{
private
Roi
wellRoi
;
private
Roi
[]
embryoRois
;
private
Roi
[]
selectedEmbryoRois
;
private
Double
[]
rotations
;
//private boolean selectionMade=false;
...
...
@@ -103,7 +101,6 @@ public class Job_SelectMultipleEmbryosAutoRotation extends Job_Default{
protected
void
cleanIterOutput
(){
img
=
null
;
selectedPoints
=
null
;
rotations
=
null
;
wellRoi
=
null
;
embryoRois
=
null
;
selectedEmbryoRois
=
null
;
...
...
@@ -166,14 +163,11 @@ public class Job_SelectMultipleEmbryosAutoRotation extends Job_Default{
double
x
,
y
;
selectedPoints
=
new
Point2D
.
Double
[
selectedEmbryoRois
.
length
];
rotations
=
new
Double
[
selectedEmbryoRois
.
length
];
for
(
int
i
=
0
;
i
<
selectedEmbryoRois
.
length
;
i
++){
x
=
selectedEmbryoRois
[
i
].
getContourCentroid
()[
0
];
y
=
selectedEmbryoRois
[
i
].
getContourCentroid
()[
1
];
selectedPoints
[
i
]=
new
Point2D
.
Double
(
x
,
y
);
img
.
setRoi
(
selectedEmbryoRois
[
i
]);
ImageStatistics
stat
=
img
.
getStatistics
(
ImageStatistics
.
ELLIPSE
);
rotations
[
i
]=
stat
.
angle
;
}
...
...
@@ -282,7 +276,7 @@ public class Job_SelectMultipleEmbryosAutoRotation extends Job_Default{
//PointRoi saveRoi=null;
//form comma-separated strings with coordinates
String
xstr
=
""
,
ystr
=
""
,
zstr
=
""
,
rotstr
=
""
;
String
xstr
=
""
,
ystr
=
""
,
zstr
=
""
;
// submit 3d points in future
for
(
int
i
=
0
;
i
<
selectedEmbryoRois
.
length
;
i
++){
...
...
@@ -290,16 +284,14 @@ public class Job_SelectMultipleEmbryosAutoRotation extends Job_Default{
xstr
+=
";"
;
ystr
+=
";"
;
zstr
+=
";"
;
rotstr
+=
";"
;
}
xstr
+=
selectedPoints
[
i
].
x
;
ystr
+=
selectedPoints
[
i
].
y
;
zstr
+=
"0"
;
rotstr
+=
rotations
[
i
];
zstr
+=
img
.
getNSlices
()/
2
;
//central slice by default
}
ZeissKeys
.
submitCommandsToMicroscope
(
"trigger1"
,
xstr
,
ystr
,
zstr
,
rotstr
,
""
,
""
,
""
,
""
,
""
);
ZeissKeys
.
submitCommandsToMicroscope
(
"trigger1"
,
xstr
,
ystr
,
zstr
,
""
,
""
,
""
,
""
,
""
,
""
);
saveRoisForImage
(
newImgFile
,
getOverlay
().
toArray
());
//saveRoiForImage(newImgFile,saveRoi);
...
...
@@ -307,7 +299,6 @@ 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