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
d24f67a7
Commit
d24f67a7
authored
Mar 11, 2019
by
Aliaksandr Halavatyi
Browse files
update of Christian's segmentation
parent
e7bb594f
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
d24f67a7
...
...
@@ -94,7 +94,7 @@
<dependency>
<groupId>
de.embl.cba
</groupId>
<artifactId>
fiji-plugin-morphometry
</artifactId>
<version>
0.4.0
4
</version>
<version>
0.4.0
5
</version>
</dependency>
</dependencies>
...
...
src/main/java/feedback/fly/embryo/jobs/Job_FocusEmbryoAutoDatasetSplit.java
View file @
d24f67a7
...
...
@@ -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
);
}
}
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