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
22a12ccf
Commit
22a12ccf
authored
Aug 03, 2025
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combining moving targets with running average
parent
6dd7be11
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
344 additions
and
22 deletions
+344
-22
CuasMotion.java
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
+335
-14
GpuQuad.java
src/main/java/com/elphel/imagej/gpu/GpuQuad.java
+3
-3
ImageDtt.java
src/main/java/com/elphel/imagej/tileprocessor/ImageDtt.java
+6
-5
No files found.
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
View file @
22a12ccf
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/gpu/GpuQuad.java
View file @
22a12ccf
...
@@ -4725,8 +4725,8 @@ public class GpuQuad{ // quad camera description
...
@@ -4725,8 +4725,8 @@ public class GpuQuad{ // quad camera description
* works with the negative scales, so the result will be a negative image in the TD.
* works with the negative scales, so the result will be a negative image in the TD.
* @param vector_field sparse array of motion vectors (may be longer, only Vx and Vy used). Null elements
* @param vector_field sparse array of motion vectors (may be longer, only Vx and Vy used). Null elements
* are allowed, they will be skipped, resultin in null TpTask elements.
* are allowed, they will be skipped, resultin in null TpTask elements.
* @param offset_scale multiply all vectors by this value when calculatingpixel offsets
* @param offset_scale multiply all vectors by this value when calculating
pixel offsets
* @param magnitude_scale Scale data for accumulation (here positive, will be negated
* @param magnitude_scale Scale data for accumulation (here positive, will be negated
). If 0 - will use scale=1.0 (no accumulation)
* @param image_width image width in tiles (80 for 640-wide images).
* @param image_width image width in tiles (80 for 640-wide images).
* @return condensed array of TpTask
* @return condensed array of TpTask
*/
*/
...
@@ -4735,7 +4735,7 @@ public class GpuQuad{ // quad camera description
...
@@ -4735,7 +4735,7 @@ public class GpuQuad{ // quad camera description
final
double
offset_scale
,
final
double
offset_scale
,
final
double
magnitude_scale
,
final
double
magnitude_scale
,
final
int
tilesX
)
{
final
int
tilesX
)
{
final
float
fmagnitude_scale
=
(
float
)
-
magnitude_scale
;
final
float
fmagnitude_scale
=
(
magnitude_scale
==
0
)?
1.0f
:
((
float
)
-
magnitude_scale
)
;
final
int
tiles
=
vector_field
.
length
;
final
int
tiles
=
vector_field
.
length
;
final
TpTask
[]
tp_tasks_full
=
new
TpTask
[
tiles
];
final
TpTask
[]
tp_tasks_full
=
new
TpTask
[
tiles
];
final
Thread
[]
threads
=
ImageDtt
.
newThreadArray
();
final
Thread
[]
threads
=
ImageDtt
.
newThreadArray
();
...
...
src/main/java/com/elphel/imagej/tileprocessor/ImageDtt.java
View file @
22a12ccf
...
@@ -1495,7 +1495,7 @@ public class ImageDtt extends ImageDttCPU {
...
@@ -1495,7 +1495,7 @@ public class ImageDtt extends ImageDttCPU {
public
void
setRectilinearReferenceTD
(
public
void
setRectilinearReferenceTD
(
final
int
erase_clt
,
final
int
erase_clt
,
final
float
[]
fpixels_ref
,
final
float
[]
fpixels_ref
,
// if null, assumes GPU memory is already loaded
final
int
[]
wh
,
// null (use sensor dimensions) or pair {width, height} in pixels
final
int
[]
wh
,
// null (use sensor dimensions) or pair {width, height} in pixels
final
ImageDttParameters
imgdtt_params
,
// Now just extra correlation parameters, later will include, most others
final
ImageDttParameters
imgdtt_params
,
// Now just extra correlation parameters, later will include, most others
final
boolean
use_reference_buffer
,
final
boolean
use_reference_buffer
,
...
@@ -1516,14 +1516,15 @@ public class ImageDtt extends ImageDttCPU {
...
@@ -1516,14 +1516,15 @@ public class ImageDtt extends ImageDttCPU {
lpf_rgb
,
lpf_rgb
,
globalDebugLevel
>
2
);
globalDebugLevel
>
2
);
// gpuQuad.printConstMem("lpf_data", true);
// gpuQuad.printConstMem("lpf_data", true);
gpuQuad
.
setTasks
(
// copy tp_tasks to the GPU memory
gpuQuad
.
setTasks
(
// copy tp_tasks to the GPU memory
tp_tasks
,
// TpTask [] tile_tasks,
tp_tasks
,
// TpTask [] tile_tasks,
false
,
// use_aux); // boolean use_aux)
false
,
// use_aux); // boolean use_aux)
imgdtt_params
.
gpu_verify
);
// boolean verify
imgdtt_params
.
gpu_verify
);
// boolean verify
gpuQuad
.
setBayerImage
(
if
(
fpixels_ref
!=
null
)
{
fpixels_ref
,
// float [] bayer_image,
gpuQuad
.
setBayerImage
(
0
);
// int ncam)
fpixels_ref
,
// float [] bayer_image,
0
);
// int ncam)
}
// allocate before execConvertDirect, so it will not be modified
// allocate before execConvertDirect, so it will not be modified
boolean
allocated
=
gpuQuad
.
reAllocateClt
(
boolean
allocated
=
gpuQuad
.
reAllocateClt
(
wh
,
// int [] wh,
wh
,
// int [] wh,
...
...
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