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
78002a6b
Commit
78002a6b
authored
Oct 06, 2020
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Center of mass calculation for X/Y motion vector
parent
82ae5d53
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
589 additions
and
159 deletions
+589
-159
Correlation2d.java
...n/java/com/elphel/imagej/tileprocessor/Correlation2d.java
+2
-2
ImageDttCPU.java
...ain/java/com/elphel/imagej/tileprocessor/ImageDttCPU.java
+73
-125
OpticalFlow.java
...ain/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
+508
-27
TwoQuadCLT.java
...main/java/com/elphel/imagej/tileprocessor/TwoQuadCLT.java
+6
-5
No files found.
src/main/java/com/elphel/imagej/tileprocessor/Correlation2d.java
View file @
78002a6b
...
@@ -361,7 +361,7 @@ public class Correlation2d {
...
@@ -361,7 +361,7 @@ public class Correlation2d {
* @param fat_zero add to normalization amplitude
* @param fat_zero add to normalization amplitude
* @return [4][transform_len] FD CLT data
* @return [4][transform_len] FD CLT data
*/
*/
public
double
[][]
correlateSingleColorFD
(
// USED in lwir
public
double
[][]
correlateSingleColorFD
(
// USED in lwir
double
[][]
clt_data1
,
double
[][]
clt_data1
,
double
[][]
clt_data2
,
double
[][]
clt_data2
,
double
[][]
tcorr
,
// null or initialized to [4][transform_len]
double
[][]
tcorr
,
// null or initialized to [4][transform_len]
...
@@ -452,7 +452,7 @@ public class Correlation2d {
...
@@ -452,7 +452,7 @@ public class Correlation2d {
tcorr
[
col
],
tcorr
[
col
],
fat_zero
/
scale_value
);
fat_zero
/
scale_value
);
if
(
first_col
<
0
)
{
// accum
m
ulate all channels in first non-null color ( 0 for color, 2 for mono?)
if
(
first_col
<
0
)
{
// accumulate all channels in first non-null color ( 0 for color, 2 for mono?)
first_col
=
col
;
// first non-empty color (2, green) or 0 for color images
first_col
=
col
;
// first non-empty color (2, green) or 0 for color images
for
(
int
n
=
0
;
n
<
4
;
n
++)
{
for
(
int
n
=
0
;
n
<
4
;
n
++)
{
for
(
int
i
=
0
;
i
<
transform_len
;
i
++)
{
for
(
int
i
=
0
;
i
<
transform_len
;
i
++)
{
...
...
src/main/java/com/elphel/imagej/tileprocessor/ImageDttCPU.java
View file @
78002a6b
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
View file @
78002a6b
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/TwoQuadCLT.java
View file @
78002a6b
...
@@ -8297,11 +8297,12 @@ if (debugLevel > -100) return true; // temporarily !
...
@@ -8297,11 +8297,12 @@ if (debugLevel > -100) return true; // temporarily !
double
[][][]
pair_sets
=
double
[][][]
pair_sets
=
opticalFlow
.
get_pair
(
opticalFlow
.
get_pair
(
k_prev
,
clt_parameters
,
// CLTParameters clt_parameters,
quadCLTs
[
i
],
k_prev
,
qPrev
,
quadCLTs
[
i
],
corr_scale
,
qPrev
,
1
);
// -1); // int debug_level);
corr_scale
,
1
);
// -1); // int debug_level);
}
}
/*
/*
...
...
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