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
94868cb1
Commit
94868cb1
authored
Apr 12, 2026
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working, but with temporary manual correction of the getInterseqScale()
parent
052eebbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
CuasMotion.java
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
+10
-4
No files found.
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
View file @
94868cb1
...
...
@@ -285,7 +285,13 @@ public class CuasMotion {
}
public
double
getInterseqScale
()
{
// multiply target velocity to get offset in the middle between the key frames
return
0.5
*
getCorrInc
()/
corr_offset
;
// double inter_scale = 0.5* getCorrInc()/corr_offset;
double
inter_scale
=
0.5
*
1.25
*
getCorrInc
()/
corr_offset
;
System
.
out
.
println
(
"getInterseqScale(): getCorrInc()="
+
getCorrInc
()+
" corr_offset="
+
corr_offset
+
" clt_parameters.imp.cuas_half_step="
+
clt_parameters
.
imp
.
cuas_half_step
+
" clt_parameters.imp.cuas_corr_offset="
+
clt_parameters
.
imp
.
cuas_corr_offset
+
" inter_scale="
+
inter_scale
);
return
inter_scale
;
// 0.5* getCorrInc()/corr_offset;
}
/**
...
...
@@ -1594,8 +1600,8 @@ public class CuasMotion {
double
yc
=
tileSize
*
tileY
+
tileSize
/
2
;
double
xtk
=
xc
+
target
[
CuasMotionLMA
.
RSLT_X
];
double
ytk
=
yc
+
target
[
CuasMotionLMA
.
RSLT_Y
];
double
vx
=
target
[
CuasMotionLMA
.
RSLT_VX
]/
corr_offset
;
double
vy
=
target
[
CuasMotionLMA
.
RSLT_VY
]/
corr_offset
;
double
vx
=
target
[
CuasMotionLMA
.
RSLT_VX
]/
corr_offset
;
// here vx is pixel offset between consecutive frames
double
vy
=
target
[
CuasMotionLMA
.
RSLT_VY
]/
corr_offset
;
// and target[CuasMotionLMA.RSLT_V{X,Y}] is the raw offset in a pair
double
disp
=
target
[
CuasMotionLMA
.
RSLT_DISPARITY
];
if
(
Double
.
isNaN
(
disp
))
{
disp
=
0.0
;
...
...
@@ -1632,7 +1638,7 @@ public class CuasMotion {
double
yc
=
tileSize
*
tileY
+
tileSize
/
2
;
double
xtk
=
xc
+
target
[
CuasMotionLMA
.
RSLT_X
];
double
ytk
=
yc
+
target
[
CuasMotionLMA
.
RSLT_Y
];
double
vx
=
target
[
CuasMotionLMA
.
RSLT_VX
]/
corr_offset
;
double
vx
=
target
[
CuasMotionLMA
.
RSLT_VX
]/
corr_offset
;
// here vx is pixel offset between consecutive frames
double
vy
=
target
[
CuasMotionLMA
.
RSLT_VY
]/
corr_offset
;
double
disp
=
disparity
;
// target[CuasMotionLMA.RSLT_DISPARITY];
if
(
Double
.
isNaN
(
disp
))
{
...
...
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