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
3868b0a7
Commit
3868b0a7
authored
Apr 27, 2018
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verified compatibility of the new code with other parts of the software
parent
6ac376b0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4038 additions
and
1415 deletions
+4038
-1415
Correlation2d.java
src/main/java/Correlation2d.java
+1045
-155
Correlations2dLMA.java
src/main/java/Correlations2dLMA.java
+154
-19
ImageDtt.java
src/main/java/ImageDtt.java
+2715
-1224
ImageDttParameters.java
src/main/java/ImageDttParameters.java
+119
-15
PolynomialApproximation.java
src/main/java/PolynomialApproximation.java
+5
-2
No files found.
src/main/java/Correlation2d.java
View file @
3868b0a7
This diff is collapsed.
Click to expand it.
src/main/java/Correlations2dLMA.java
View file @
3868b0a7
This diff is collapsed.
Click to expand it.
src/main/java/ImageDtt.java
View file @
3868b0a7
This diff is collapsed.
Click to expand it.
src/main/java/ImageDttParameters.java
View file @
3868b0a7
This diff is collapsed.
Click to expand it.
src/main/java/PolynomialApproximation.java
View file @
3868b0a7
...
...
@@ -215,8 +215,8 @@ public class PolynomialApproximation {
{-
coeff
[
0
][
3
]},
// | - D |
{-
coeff
[
0
][
4
]}};
// | - E |
double
[]
xy
=
M
.
solve
(
new
Matrix
(
aB
)).
getColumnPackedCopy
();
double
vmax
=
coeff
[
0
][
0
]*
xy
[
0
]*
xy
[
0
]+
coeff
[
0
][
1
]*
xy
[
1
]*
xy
[
1
]+
coeff
[
0
][
2
]*
xy
[
0
]*
xy
[
1
]+
coeff
[
0
][
3
]*
xy
[
0
]+
coeff
[
0
][
4
]*
xy
[
1
]+
coeff
[
0
][
5
];
double
[]
xyx2y2
=
{
xy
[
0
],
xy
[
1
],
vmax
,
coeff
[
0
][
0
],
coeff
[
0
][
1
],
coeff
[
0
][
2
]};
double
vmax
=
coeff
[
0
][
0
]*
xy
[
0
]*
xy
[
0
]+
coeff
[
0
][
1
]*
xy
[
1
]*
xy
[
1
]+
coeff
[
0
][
2
]*
xy
[
0
]*
xy
[
1
]+
coeff
[
0
][
3
]*
xy
[
0
]+
coeff
[
0
][
4
]*
xy
[
1
]+
coeff
[
0
][
5
];
double
[]
xyx2y2
=
{
xy
[
0
],
xy
[
1
],
vmax
,
coeff
[
0
][
0
],
coeff
[
0
][
1
],
coeff
[
0
][
2
],
coeff
[
0
][
3
],
coeff
[
0
][
4
],
coeff
[
0
][
5
]};
return
xyx2y2
;
}
...
...
@@ -355,6 +355,9 @@ public class PolynomialApproximation {
int
debugLevel
){
if
(
debugLevel
>
3
)
System
.
out
.
println
(
"quadraticApproximation(...), debugLevel="
+
debugLevel
+
":"
);
if
((
data
==
null
)
||
(
data
.
length
==
0
))
{
return
null
;
}
/* ix, iy - the location of the point with maximal value. We'll approximate the vicinity of that maximum using a
* second degree polynomial:
Z(x,y)~=A*x^2+B*y^2+C*x*y+D*x+E*y+F
...
...
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