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
1d564879
Commit
1d564879
authored
Jan 13, 2024
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working snapshot
parent
7de7fe06
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
281 additions
and
17 deletions
+281
-17
OpticalFlow.java
...ain/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
+1
-1
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+3
-1
QuaternionLma.java
...n/java/com/elphel/imagej/tileprocessor/QuaternionLma.java
+277
-15
No files found.
src/main/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
View file @
1d564879
...
...
@@ -5437,7 +5437,7 @@ public class OpticalFlow {
}
double
[]
rms
=
new
double
[
5
];
double
[]
quat
=
new
double
[
4
];
int
quat_lma_mode
=
2
;
// 1;
int
quat_lma_mode
=
3
;
//
2; // 1;
int
debug_lev
=
3
;
double
avg_z
=
quadCLTs
[
ref_index
].
getAverageZ
(
true
);
// in meters
double
translation_weight
=
1.0
/
(
avg_z
+
1.0
);
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
1d564879
...
...
@@ -274,6 +274,7 @@ public class QuadCLTCPU {
vect_y
[
nscene
]
=
xyzatr
[
nscene
];
}
quaternionLma
.
prepareLMA
(
quat_lma_mode
,
// int mode,
avg_height
,
// double avg_height,
vect_x
,
// double [][][] vect_x,
vect_y
,
// double [][][] vect_y,
...
...
@@ -281,7 +282,7 @@ public class QuadCLTCPU {
translation_weight
,
// double translation_weight, // 0.0 ... 1.0;
quat0
,
// double [] quat0,
debugLevel
);
// int debug_level)
}
else
if
(
quat_lma_mode
==
1
)
{
}
else
if
(
(
quat_lma_mode
==
1
)
||
(
quat_lma_mode
==
3
)
)
{
double
[][][]
vect_y
=
new
double
[
quadCLTs
.
length
][][];
// camera XYZATR
double
[][][]
vect_x
=
new
double
[
quadCLTs
.
length
][][];
// IMS XYZATR
for
(
int
nscene
=
early_index
;
nscene
<=
last_index
;
nscene
++)
{
...
...
@@ -289,6 +290,7 @@ public class QuadCLTCPU {
vect_y
[
nscene
]
=
xyzatr
[
nscene
];
}
quaternionLma
.
prepareLMA
(
quat_lma_mode
,
// int mode,
vect_x
,
// double [][][] vect_x,
vect_y
,
// double [][][] vect_y,
null
,
// double [] vect_w, all same weight
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuaternionLma.java
View file @
1d564879
This diff is collapsed.
Click to expand it.
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