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
bb9288f1
Commit
bb9288f1
authored
Nov 19, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more debugging
parent
f68abd2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
MatchSimulatedPattern.java
src/main/java/MatchSimulatedPattern.java
+11
-3
No files found.
src/main/java/MatchSimulatedPattern.java
View file @
bb9288f1
...
...
@@ -8051,11 +8051,15 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
result
[
2
]=
contrast
;
if
((
distortionParameters
.
correlationMinContrast
>
0
)
&&
(
contrasts
[
0
]<
distortionParameters
.
correlationMinContrast
))
{
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Contrast too low - "
+
contrasts
[
0
]+
"<"
+
distortionParameters
.
correlationMinContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Contrast "
+
IJ
.
d2s
(
contrasts
[
0
],
3
)+
" ("
+
distortionParameters
.
correlationMinContrast
+
")"
+
if
(
debug_level
>
1
)
System
.
out
.
println
(
"C
enter c
ontrast too low - "
+
contrasts
[
0
]+
"<"
+
distortionParameters
.
correlationMinContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"C
enter c
ontrast "
+
IJ
.
d2s
(
contrasts
[
0
],
3
)+
" ("
+
distortionParameters
.
correlationMinContrast
+
")"
+
" is too low ("
+
IJ
.
d2s
(
beforeXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
beforeXY
[
1
],
3
)+
")->"
+
IJ
.
d2s
(
centerXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
centerXY
[
1
],
3
));
return
null
;
}
else
{
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Contrast "
+
IJ
.
d2s
(
contrasts
[
0
],
3
)+
" ("
+
distortionParameters
.
correlationMinContrast
+
")"
+
" is good ("
+
IJ
.
d2s
(
beforeXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
beforeXY
[
1
],
3
)+
")->"
+
IJ
.
d2s
(
centerXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
centerXY
[
1
],
3
));
}
...
...
@@ -8398,9 +8402,13 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
if
((
distortionParameters
.
correlationMinContrast
>
0
)
&&
(
contrasts
[
0
]<
distortionParameters
.
correlationMinContrast
))
{
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Contrast too low - "
+
contrasts
[
0
]+
"<"
+
distortionParameters
.
correlationMinContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Contrast "
+
IJ
.
d2s
(
contrasts
[
0
],
3
)+
" ("
+
distortionParameters
.
correlationMinContrast
+
")"
+
" is
too low
("
+
IJ
.
d2s
(
beforeXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
beforeXY
[
1
],
3
)+
")->"
+
" is
TOO LOW
("
+
IJ
.
d2s
(
beforeXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
beforeXY
[
1
],
3
)+
")->"
+
IJ
.
d2s
(
centerXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
centerXY
[
1
],
3
));
return
null
;
}
else
{
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Contrast "
+
IJ
.
d2s
(
contrasts
[
0
],
3
)+
" ("
+
distortionParameters
.
correlationMinContrast
+
")"
+
" is GOOD ("
+
IJ
.
d2s
(
beforeXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
beforeXY
[
1
],
3
)+
")->"
+
IJ
.
d2s
(
centerXY
[
0
],
3
)+
"/"
+
IJ
.
d2s
(
centerXY
[
1
],
3
));
}
...
...
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