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
3357ad5b
Commit
3357ad5b
authored
Apr 09, 2026
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another bug - new centered targets inherited fail==0, not NaN for
non-centered
parent
5fed114d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
912 deletions
+128
-912
CuasMotion.java
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
+101
-909
CuasMotionLMA.java
src/main/java/com/elphel/imagej/cuas/CuasMotionLMA.java
+27
-3
No files found.
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
View file @
3357ad5b
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/cuas/CuasMotionLMA.java
View file @
3357ad5b
...
@@ -299,14 +299,15 @@ public class CuasMotionLMA {
...
@@ -299,14 +299,15 @@ public class CuasMotionLMA {
public
void
setResult
(
double
[]
rslt
)
{
public
void
setResult
(
double
[]
rslt
)
{
rslt
[
RSLT_X
]
=
getCenter
()[
0
];
rslt
[
RSLT_X
]
=
getCenter
()[
0
];
rslt
[
RSLT_Y
]
=
getCenter
()[
1
];
rslt
[
RSLT_Y
]
=
getCenter
()[
1
];
rslt
[
RSLT_A
]
=
getA
();
// rslt[RSLT_A] = getA();
rslt
[
RSLT_A
]
=
getMaxFx
();
// maximum of fx, getA() may be much larger!
rslt
[
RSLT_R0
]
=
getR0
();
rslt
[
RSLT_R0
]
=
getR0
();
rslt
[
RSLT_R1
]
=
getR0
()
/
((
getK
()>
1
)
?
getK
()
:
1.0
);
rslt
[
RSLT_R1
]
=
getR0
()
/
((
getK
()>
1
)
?
getK
()
:
1.0
);
rslt
[
RSLT_K
]
=
getK
();
rslt
[
RSLT_K
]
=
getK
();
rslt
[
RSLT_C
]
=
getC
();
rslt
[
RSLT_C
]
=
getC
();
rslt
[
RSLT_RMS
]
=
getRMS
();
rslt
[
RSLT_RMS
]
=
getRMS
();
rslt
[
RSLT_RMS_A
]
=
getRMS
()/
getA
();
rslt
[
RSLT_RMS_A
]
=
getRMS
()/
rslt
[
RSLT_A
];
//
getA();
rslt
[
RSLT_MAX2A
]
=
max_val
/
getA
();
// ratio of maximal value to LMA amplitude
rslt
[
RSLT_MAX2A
]
=
max_val
/
rslt
[
RSLT_A
];
//
getA(); // ratio of maximal value to LMA amplitude
rslt
[
RSLT_ITERS
]
=
getIters
();
rslt
[
RSLT_ITERS
]
=
getIters
();
return
;
return
;
}
}
...
@@ -750,6 +751,7 @@ public class CuasMotionLMA {
...
@@ -750,6 +751,7 @@ public class CuasMotionLMA {
return
err
;
return
err
;
}
}
private
double
[][]
getFxDerivsDelta
(
private
double
[][]
getFxDerivsDelta
(
double
[]
vector
,
double
[]
vector
,
final
double
delta
,
final
double
delta
,
...
@@ -774,7 +776,29 @@ public class CuasMotionLMA {
...
@@ -774,7 +776,29 @@ public class CuasMotionLMA {
return
jt
;
return
jt
;
}
}
public
double
getMaxFx
()
{
double
[]
fx
=
getFx
();
double
mfx
=
Double
.
NaN
;
for
(
double
d:
fx
)
{
if
(!(
d
<=
mfx
))
{
mfx
=
d
;
}
}
return
mfx
;
}
public
double
[]
getFx
()
{
return
getFxDerivs
(
full_vector
,
// final double [] vector,
null
,
// final double [][] jt, // should be null or initialized with [vector.length][]
-
10
);
// final int debug_level)
}
public
double
[]
getLastYMinusFx
()
{
return
last_ymfx
;
}
public
double
[]
getWeights
()
{
return
weights
;
}
private
double
[]
getFxDerivs
(
private
double
[]
getFxDerivs
(
final
double
[]
vector
,
final
double
[]
vector
,
...
...
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