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
971025da
Commit
971025da
authored
Dec 13, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tested other reference (FPN mitigation) with initial orientation
parent
e17a0659
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
220 additions
and
48 deletions
+220
-48
Interscene.java
...main/java/com/elphel/imagej/tileprocessor/Interscene.java
+209
-42
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+11
-6
No files found.
src/main/java/com/elphel/imagej/tileprocessor/Interscene.java
View file @
971025da
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
971025da
...
...
@@ -654,8 +654,8 @@ public class QuadCLTCPU {
{
0.25
*
wh
[
0
],
0.75
*
wh
[
1
]},
{
0.75
*
wh
[
0
],
0.75
*
wh
[
1
]}};
}
double
s2
=
0.0
;
for
(
double
[]
xy:
xy_pairs
)
{
double
s2
=
0.0
,
s0
=
0.0
;
for
(
double
[]
xy:
xy_pairs
)
if
(
xy
!=
null
)
{
double
[]
pXpYD
=
ers
.
getImageCoordinatesERS
(
null
,
// QuadCLT cameraQuadCLT, // camera station that got image to be to be matched
xy
[
0
],
// double px, // pixel coordinate X in the reference view
...
...
@@ -668,11 +668,16 @@ public class QuadCLTCPU {
xyzatr1
[
0
],
// double [] camera_xyz, // camera center in world coordinates
xyzatr1
[
1
],
// double [] camera_atr, // camera orientation relative to world frame
OpticalFlow
.
LINE_ERR
);
// double line_err); // threshold error in scan lines (1.0)
double
dx
=
pXpYD
[
0
]-
xy
[
0
];
if
(
pXpYD
!=
null
)
{
double
dx
=
pXpYD
[
0
]-
xy
[
0
];
// null pointer
double
dy
=
pXpYD
[
1
]-
xy
[
1
];
s2
+=
dx
*
dx
+
dy
*
dy
;
s0
+=
1.0
;
}
else
{
continue
;
}
}
double
offs_avg
=
Math
.
sqrt
(
s2
/
xy_pairs
.
length
);
double
offs_avg
=
Math
.
sqrt
(
s2
/
s0
);
return
offs_avg
;
}
...
...
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