Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
2d439266
Commit
2d439266
authored
Jun 14, 2021
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed continue search for the source images witgh PointRoi
parent
468d9599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
MatchSimulatedPattern.java
.../com/elphel/imagej/calibration/MatchSimulatedPattern.java
+6
-2
No files found.
src/main/java/com/elphel/imagej/calibration/MatchSimulatedPattern.java
View file @
2d439266
...
@@ -4787,7 +4787,7 @@ public class MatchSimulatedPattern {
...
@@ -4787,7 +4787,7 @@ public class MatchSimulatedPattern {
// return numDefinedCells;
// return numDefinedCells;
}
}
if
(
roi
!=
null
)
{
// don't use this feature with ROI as it can be small
if
(
(
roi
!=
null
)
&&
!(
roi
instanceof
PointRoi
)
)
{
// don't use this feature with ROI as it can be small
if
(
global_debug_level
>
0
)
if
(
global_debug_level
>
0
)
System
.
out
.
println
(
System
.
out
.
println
(
"Initial pattern cluster is small ("
+
numDefinedCells
+
"), but ROI is set - no retries"
);
"Initial pattern cluster is small ("
+
numDefinedCells
+
"), but ROI is set - no retries"
);
...
@@ -6764,6 +6764,10 @@ public class MatchSimulatedPattern {
...
@@ -6764,6 +6764,10 @@ public class MatchSimulatedPattern {
setWOI
(
0
,
0
,
imp
.
getWidth
(),
imp
.
getHeight
());
setWOI
(
0
,
0
,
imp
.
getWidth
(),
imp
.
getHeight
());
selection
=
new
Rectangle
(
0
,
0
,
imp
.
getWidth
(),
imp
.
getHeight
());
selection
=
new
Rectangle
(
0
,
0
,
imp
.
getWidth
(),
imp
.
getHeight
());
// without setting roi to null (maybe setting image roi too?) will not retry if first attempt gets too few points
// there is also ignoring PointRoi later, but alone it outputs "Removing failed node (normally should not happen!), u=4, v=2"
// roi = null;
// imp.setRoi(roi,false);
}
else
{
}
else
{
setWOI
(
roi
.
getBounds
());
setWOI
(
roi
.
getBounds
());
selection
=
roi
.
getBounds
();
selection
=
roi
.
getBounds
();
...
@@ -6911,7 +6915,7 @@ public class MatchSimulatedPattern {
...
@@ -6911,7 +6915,7 @@ public class MatchSimulatedPattern {
// hack gridSize
// hack gridSize
}
}
patternCells
=
numDefinedCells
();
patternCells
=
numDefinedCells
();
if
((
roi
!=
null
)
&&
(
patternCells
<
minimal_pattern_cluster
))
{
if
((
roi
!=
null
)
&&
(
patternCells
<
minimal_pattern_cluster
)
&&
!(
roi
instanceof
PointRoi
)
)
{
if
(
global_debug_level
>
(
debugThreshold
+
0
))
if
(
global_debug_level
>
(
debugThreshold
+
0
))
System
.
out
.
println
(
"Detected pattern is too small: "
+
patternCells
+
", minimum is set to "
System
.
out
.
println
(
"Detected pattern is too small: "
+
patternCells
+
", minimum is set to "
+
minimal_pattern_cluster
);
+
minimal_pattern_cluster
);
...
...
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