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
f04f9a7c
Commit
f04f9a7c
authored
Jul 04, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Elphel/imagej-elphel
parents
4e085f32
f1d7db60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
CalibrationHardwareInterface.java
src/main/java/CalibrationHardwareInterface.java
+7
-2
No files found.
src/main/java/CalibrationHardwareInterface.java
View file @
f04f9a7c
...
...
@@ -4721,6 +4721,7 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" "
if
((
x
<
xMin
)
||
(
x
>
xMax
))
continue
;
// out of range point
data
[
i
][
0
]=
scale
*(
x
-
x0
);
// interval center
double
[][]
metrics
=
this
.
history
.
get
(
i
).
getMetrics
(
0.0
,
0.0
,
0.0
);
// average is not used, any scales
if
(
metrics
==
null
)
continue
;
double
l2
=
1.0
/
metrics
[
0
][
indexR50
]/
metrics
[
0
][
indexR50
]+
1.0
/
metrics
[
1
][
indexR50
]/
metrics
[
1
][
indexR50
]+
...
...
@@ -6129,8 +6130,12 @@ if (debugLevel>=debugThreshold) System.out.println(i+" "+diff[0]+" "+diff[1]+" "
double
w
=
0.0
;
for
(
int
i
=
0
;
i
<
weights
.
length
;
i
++)
w
+=
weights
[
i
];
for
(
int
i
=
0
;
i
<
weights
.
length
;
i
++)
weights
[
i
]/=
w
;
metrics
[
3
]=
new
double
[
this
.
psfMetricses
[
this
.
indices
[
0
]].
length
];
for
(
int
c
=
0
;
c
<
3
;
c
++)
metrics
[
c
]=
this
.
psfMetricses
[
this
.
indices
[
c
]];
try
{
metrics
[
3
]=
new
double
[
this
.
psfMetricses
[
this
.
indices
[
0
]].
length
];
for
(
int
c
=
0
;
c
<
3
;
c
++)
metrics
[
c
]=
this
.
psfMetricses
[
this
.
indices
[
c
]];
}
catch
(
Exception
e
){
return
null
;
}
for
(
int
i
=
0
;
i
<
metrics
[
3
].
length
;
i
++)
{
metrics
[
3
][
i
]=
0.0
;
if
(
squared
[
i
]){
...
...
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