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
6dd7be11
Commit
6dd7be11
authored
Aug 02, 2025
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented LMA-based filtering of the moving targets
parent
4342fd2a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1933 additions
and
182 deletions
+1933
-182
ShowDoubleFloatArrays.java
.../java/com/elphel/imagej/common/ShowDoubleFloatArrays.java
+1
-1
CuasMotion.java
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
+1053
-176
CuasMotionLMA.java
src/main/java/com/elphel/imagej/cuas/CuasMotionLMA.java
+691
-0
Correlation2d.java
...n/java/com/elphel/imagej/tileprocessor/Correlation2d.java
+13
-1
IntersceneMatchParameters.java
...lphel/imagej/tileprocessor/IntersceneMatchParameters.java
+175
-4
No files found.
src/main/java/com/elphel/imagej/common/ShowDoubleFloatArrays.java
View file @
6dd7be11
...
@@ -1067,7 +1067,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
...
@@ -1067,7 +1067,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
if
(
pslice_titles
!=
null
)
{
if
(
pslice_titles
!=
null
)
{
pslice_titles
[
0
]
=
slice_l
;
pslice_titles
[
0
]
=
slice_l
;
}
}
double
[][]
file_data
=
ShowDoubleFloatArrays
.
readDoubleArray
(
double
[][]
file_data
=
readDoubleArray
(
imp
,
// ImagePlus imp,
imp
,
// ImagePlus imp,
0
,
// int num_slices, // (0 - all)
0
,
// int num_slices, // (0 - all)
wh
);
// int [] wh); // int [] wh)
wh
);
// int [] wh); // int [] wh)
...
...
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
View file @
6dd7be11
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/cuas/CuasMotionLMA.java
0 → 100644
View file @
6dd7be11
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/Correlation2d.java
View file @
6dd7be11
...
@@ -2422,12 +2422,18 @@ public class Correlation2d {
...
@@ -2422,12 +2422,18 @@ public class Correlation2d {
boolean
ignore_border
,
// only if fpn_mask != null - ignore tile if maximum touches fpn_mask
boolean
ignore_border
,
// only if fpn_mask != null - ignore tile if maximum touches fpn_mask
boolean
debug
)
boolean
debug
)
{
{
boolean
exclude_margins
=
false
;
if
((
fpn_mask
!=
null
)
&&
(
fpn_mask
.
length
==
0
))
{
exclude_margins
=
true
;
fpn_mask
=
null
;
}
boolean
calc_fraction
=
data_width
<
0
;
boolean
calc_fraction
=
data_width
<
0
;
if
(
calc_fraction
)
{
if
(
calc_fraction
)
{
data_width
=
-
data_width
;
data_width
=
-
data_width
;
}
}
int
data_height
=
data
.
length
/
data_width
;
int
data_height
=
data
.
length
/
data_width
;
int
center_xy
=
(
data_width
-
1
)/
2
;
// = transform_size - 1;
// int center_xy = (data_width - 1)/2; // = transform_size - 1;
int
center_xy
=
data_width
/
2
;
// = transform_size - 1;
double
x0
=
center_xy
,
y0
=
center_xy
;
double
x0
=
center_xy
,
y0
=
center_xy
;
int
imax
=
0
;
int
imax
=
0
;
for
(
int
i
=
1
;
i
<
data
.
length
;
i
++)
{
for
(
int
i
=
1
;
i
<
data
.
length
;
i
++)
{
...
@@ -2438,6 +2444,12 @@ public class Correlation2d {
...
@@ -2438,6 +2444,12 @@ public class Correlation2d {
double
mx
=
data
[
imax
];
double
mx
=
data
[
imax
];
int
ix0
=
imax
%
data_width
;
int
ix0
=
imax
%
data_width
;
int
iy0
=
imax
/
data_width
;
int
iy0
=
imax
/
data_width
;
if
(
exclude_margins
)
{
if
((
ix0
==
0
)
||
(
iy0
==
0
)
||
(
ix0
==
(
data_width
-
1
))
||
(
iy0
==
(
data_height
-
1
)))
{
return
null
;
// maximum is on the tile border.
}
}
x0
=
ix0
;
x0
=
ix0
;
y0
=
iy0
;
y0
=
iy0
;
// if (fpn_mask != null
// if (fpn_mask != null
...
...
src/main/java/com/elphel/imagej/tileprocessor/IntersceneMatchParameters.java
View file @
6dd7be11
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