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
089ab931
Commit
089ab931
authored
Nov 09, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more debug
parent
e66a2111
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
MatchSimulatedPattern.java
src/main/java/MatchSimulatedPattern.java
+11
-6
No files found.
src/main/java/MatchSimulatedPattern.java
View file @
089ab931
...
...
@@ -3249,7 +3249,7 @@ public class MatchSimulatedPattern {
}
else
{
// new multithreaded mode
int
startScanIndex
=
3
;
for
(;(
startScanIndex
<
numTries
)
&&
triedIndices
[
startScanIndex
];
startScanIndex
++);
// skip already tried indices
if
(
debugLevel
>
1
)
System
.
out
.
println
(
"distortions(): startScanIndex="
+
startScanIndex
);
if
(
global_debug_level
>
0
)
System
.
out
.
println
(
"distortions(): startScanIndex="
+
startScanIndex
);
if
(
startScanIndex
<
numTries
)
{
nodeQueue
=
findPatternCandidates
(
...
...
@@ -3278,17 +3278,21 @@ public class MatchSimulatedPattern {
this
.
debugLevel
);
if
(
nodeQueue
.
isEmpty
())
{
// nodes==null){
if
(
debugLevel
>
1
)
System
.
out
.
println
(
"All start points tried"
);
// if (debugLevel>1) System.out.println("All start points tried");
if
(
global_debug_level
>
0
)
System
.
out
.
println
(
"All start points tried"
);
triedIndices
[
numTries
]=
true
;
// all tried
}
else
{
// if (debugLevel>1) System.out.println("Found "+nodes.length+" candidates");
if
(
debugLevel
>
1
)
System
.
out
.
println
(
"distortions: Found "
+
nodeQueue
.
size
()+
" candidates"
);
// if (debugLevel>1) System.out.println("distortions: Found "+nodeQueue.size()+" candidates");
if
(
global_debug_level
>
0
)
System
.
out
.
println
(
"distortions: Found "
+
nodeQueue
.
size
()+
" candidates"
);
}
}
else
{
if
(
debugLevel
>
1
)
System
.
out
.
println
(
"All start points tried before - should not get here"
);
System
.
out
.
println
(
"All start points tried before - should not get here"
);
triedIndices
[
numTries
]=
true
;
// all tried
}
}
// if (global_debug_level>0) System.out.println("distortions(): startScanIndex="+startScanIndex);
// if (startScanIndex[0]>=numTries) startScanIndex[0]=-1; // all indices used
// if ((nodes==null) || (nodes[0]==null) || (nodes[0][0]==null)) {
if
((
nodeQueue
.
isEmpty
())
||
(
nodeQueue
.
peek
().
getNode
()[
0
]==
null
))
{
...
...
@@ -3470,8 +3474,9 @@ public class MatchSimulatedPattern {
continue
;
}
else
if
((
refCell
[
0
]!=
null
)
&&
(
refCell
[
0
].
length
>
3
)){
System
.
out
.
println
(
"**** refCell was deleted **** u="
+
iUVRef
[
0
]+
" v="
+
iUVRef
[
1
]+
" current="
+
iUVdir
[
0
]+
"/"
+
iUVdir
[
1
]+
" len="
+
iUVdir
.
length
+
" ncell="
+
ncell
+
" waveFrontList.size()="
+
waveFrontList
.
size
());
" current="
+
iUVdir
[
0
]+
"/"
+
iUVdir
[
1
]+
" ncell="
+
ncell
+
" waveFrontList.size()="
+
waveFrontList
.
size
()+
" ref_x="
+
IJ
.
d2s
(
refCell
[
0
][
0
],
3
)+
" ref_y="
+
IJ
.
d2s
(
refCell
[
0
][
1
],
3
));
}
//found reference cell, calculate x/y, make sure it is inside the selection w/o borders
double
[][]
wv
=
new
double
[
2
][];
...
...
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