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
f0ed3a2b
Commit
f0ed3a2b
authored
Sep 22, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging
parent
896c7c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
CalibrationHardwareInterface.java
src/main/java/CalibrationHardwareInterface.java
+8
-2
No files found.
src/main/java/CalibrationHardwareInterface.java
View file @
f0ed3a2b
...
...
@@ -5828,7 +5828,13 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" "
FocusingState
focusingState
=
this
.
history
.
get
(
i
);
double
[]
zTxTy
=
useLMA
?
focusingState
.
getzTxTy
():
null
;
double
[][]
metrics
=
focusingState
.
getMetrics
(
weightRatioRedToGreen
,
weightRatioBlueToGreen
);
double
[][]
resolution
=
focusingState
.
getSharpness
(
weightRatioRedToGreen
,
weightRatioBlueToGreen
);
double
[][]
resolution
={{
Double
.
NaN
,
Double
.
NaN
},{
Double
.
NaN
,
Double
.
NaN
},{
Double
.
NaN
,
Double
.
NaN
},{
Double
.
NaN
,
Double
.
NaN
}};
try
{
resolution
=
focusingState
.
getSharpness
(
weightRatioRedToGreen
,
weightRatioBlueToGreen
);
}
catch
(
Exception
e
){
System
.
out
.
println
(
"Failed to get resolution for history("
+
i
+
")"
);
continue
;
// skip the whole line
}
double
[]
averageMetrics
=
metrics
[
3
];
if
(
zTxTy
!=
null
){
averageMetrics
=
metrics
[
3
].
clone
();
// to modify w/o changing original
...
...
@@ -6226,7 +6232,7 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" "
double
weightBlue
){
double
[][]
metrics
=
getMetrics
(
weightRed
,
weightGreen
,
weightBlue
);
double
[][]
sharpness
={
{
1.0
/
metrics
[
0
][
this
.
indexR50All
],
1.0
/
metrics
[
0
][
this
.
indexR50Center
]},
{
1.0
/
metrics
[
0
][
this
.
indexR50All
],
1.0
/
metrics
[
0
][
this
.
indexR50Center
]},
//java.lang.NullPointerException
{
1.0
/
metrics
[
1
][
this
.
indexR50All
],
1.0
/
metrics
[
1
][
this
.
indexR50Center
]},
{
1.0
/
metrics
[
2
][
this
.
indexR50All
],
1.0
/
metrics
[
2
][
this
.
indexR50Center
]},
{
0.0
,
0.0
}};
...
...
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