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
6b16236a
Commit
6b16236a
authored
Nov 19, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing contrast check (NaN)
parent
bb9288f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
MatchSimulatedPattern.java
src/main/java/MatchSimulatedPattern.java
+4
-4
No files found.
src/main/java/MatchSimulatedPattern.java
View file @
6b16236a
...
@@ -8050,7 +8050,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
...
@@ -8050,7 +8050,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
result
[
2
]=
contrast
;
result
[
2
]=
contrast
;
if
(
(
distortionParameters
.
correlationMinContrast
>
0
)
&&
(
contrasts
[
0
]<
distortionParameters
.
correlationMinContrast
))
{
if
(
Double
.
isNaN
(
contrasts
[
0
])
||
((
distortionParameters
.
correlationMinContrast
>
0
)
&&
(
contrasts
[
0
]<
distortionParameters
.
correlationMinContrast
)
))
{
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Center contrast too low - "
+
contrasts
[
0
]+
"<"
+
distortionParameters
.
correlationMinContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Center contrast too low - "
+
contrasts
[
0
]+
"<"
+
distortionParameters
.
correlationMinContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Center contrast "
+
IJ
.
d2s
(
contrasts
[
0
],
3
)+
" ("
+
distortionParameters
.
correlationMinContrast
+
")"
+
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Center 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
)+
")->"
+
...
@@ -8063,7 +8063,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
...
@@ -8063,7 +8063,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
}
}
if
(
(
distortionParameters
.
correlationMinAbsoluteContrast
>
0
)
&&
(
contrasts
[
1
]<
distortionParameters
.
correlationMinAbsoluteContrast
))
{
if
(
Double
.
isNaN
(
contrasts
[
1
])
||
((
distortionParameters
.
correlationMinAbsoluteContrast
>
0
)
&&
(
contrasts
[
1
]<
distortionParameters
.
correlationMinAbsoluteContrast
)
))
{
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast too low - "
+
contrasts
[
1
]+
"<"
+
distortionParameters
.
correlationMinAbsoluteContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast too low - "
+
contrasts
[
1
]+
"<"
+
distortionParameters
.
correlationMinAbsoluteContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast "
+
IJ
.
d2s
(
contrasts
[
1
],
3
)+
" ("
+
distortionParameters
.
correlationMinAbsoluteContrast
+
")"
+
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast "
+
IJ
.
d2s
(
contrasts
[
1
],
3
)+
" ("
+
distortionParameters
.
correlationMinAbsoluteContrast
+
")"
+
" 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
)+
")->"
+
...
@@ -8399,7 +8399,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
...
@@ -8399,7 +8399,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
"test-contrast"
);
// title base for optional plots names
"test-contrast"
);
// title base for optional plots names
contrast
=
contrasts
[
0
];
contrast
=
contrasts
[
0
];
result
[
2
]=
contrast
;
result
[
2
]=
contrast
;
if
(
(
distortionParameters
.
correlationMinContrast
>
0
)
&&
(
contrasts
[
0
]<
distortionParameters
.
correlationMinContrast
))
{
if
(
Double
.
isNaN
(
contrasts
[
0
])
||
((
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 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
(
"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
)+
")->"
+
...
@@ -8412,7 +8412,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
...
@@ -8412,7 +8412,7 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
}
}
if
(
(
distortionParameters
.
correlationMinAbsoluteContrast
>
0
)
&&
(
contrasts
[
1
]<
distortionParameters
.
correlationMinAbsoluteContrast
))
{
if
(
Double
.
isNaN
(
contrasts
[
1
])
||
((
distortionParameters
.
correlationMinAbsoluteContrast
>
0
)
&&
(
contrasts
[
1
]<
distortionParameters
.
correlationMinAbsoluteContrast
)
))
{
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast too low - "
+
contrasts
[
1
]+
"<"
+
distortionParameters
.
correlationMinAbsoluteContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast too low - "
+
contrasts
[
1
]+
"<"
+
distortionParameters
.
correlationMinAbsoluteContrast
);
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast "
+
IJ
.
d2s
(
contrasts
[
1
],
3
)+
" ("
+
distortionParameters
.
correlationMinAbsoluteContrast
+
")"
+
if
(
debug_level
>
1
)
System
.
out
.
println
(
"Absolute contrast "
+
IJ
.
d2s
(
contrasts
[
1
],
3
)+
" ("
+
distortionParameters
.
correlationMinAbsoluteContrast
+
")"
+
" 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
)+
")->"
+
...
...
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