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
62655772
Commit
62655772
authored
May 30, 2025
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added filtering, improved center DSI near margins
parent
d15a47db
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
120 additions
and
126 deletions
+120
-126
Cuas.java
src/main/java/com/elphel/imagej/cuas/Cuas.java
+112
-117
OpticalFlow.java
...ain/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
+3
-2
QuadCLT.java
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
+2
-1
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+2
-5
TileProcessor.java
...n/java/com/elphel/imagej/tileprocessor/TileProcessor.java
+1
-1
No files found.
src/main/java/com/elphel/imagej/cuas/Cuas.java
View file @
62655772
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
View file @
62655772
...
@@ -5828,7 +5828,7 @@ public class OpticalFlow {
...
@@ -5828,7 +5828,7 @@ public class OpticalFlow {
}
}
}
}
// just for verification
// just for verification
boolean
show_clt
=
false
;
// true;
boolean
show_clt
=
true
;
//
false;// true;
if
(
show_clt
)
{
if
(
show_clt
)
{
center_CLT
.
showCenterClt
(
center_CLT
.
showCenterClt
(
clt_parameters
);
// CLTParameters clt_parameters,
clt_parameters
);
// CLTParameters clt_parameters,
...
@@ -15495,7 +15495,8 @@ public class OpticalFlow {
...
@@ -15495,7 +15495,8 @@ public class OpticalFlow {
return
mb_vectors
;
return
mb_vectors
;
}
}
public
static
double
[]
fillGapsDouble
(
// Use TileProcessor.fillNaNs
public
static
double
[]
fillGapsDouble
(
double
[]
data
,
double
[]
data
,
boolean
[]
mask_in
,
// do not process if false (may be null)
boolean
[]
mask_in
,
// do not process if false (may be null)
int
width
,
int
width
,
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
View file @
62655772
...
@@ -1689,7 +1689,8 @@ public class QuadCLT extends QuadCLTCPU {
...
@@ -1689,7 +1689,8 @@ public class QuadCLT extends QuadCLTCPU {
int
width
=
ref_scene
.
getTilesX
()*
ref_scene
.
getTileSize
();
int
width
=
ref_scene
.
getTilesX
()*
ref_scene
.
getTileSize
();
int
height
=
ref_scene
.
getTilesY
()*
ref_scene
.
getTileSize
();
int
height
=
ref_scene
.
getTilesY
()*
ref_scene
.
getTileSize
();
// window in pixels!
// window in pixels!
final
Rectangle
window
=
(
discard_border
>
0
)?
(
new
Rectangle
(
discard_border
,
discard_border
,
width
-
2
*
discard_border
,
height
-
2
*
discard_border
)):
null
;
boolean
apply_window_filter
=
(
discard_border
>
0
)
||
(
max_fold
>
0
)
||
(
min_in_row_col
>
0
);
final
Rectangle
window
=
apply_window_filter
?
(
new
Rectangle
(
discard_border
,
discard_border
,
width
-
2
*
discard_border
,
height
-
2
*
discard_border
)):
null
;
if
(
ref_pXpYD
!=
null
)
{
// cuas mode, ref_pXpYD defines offset reference scene
if
(
ref_pXpYD
!=
null
)
{
// cuas mode, ref_pXpYD defines offset reference scene
pXpYD
=
OpticalFlow
.
transformToScenePxPyD
(
pXpYD
=
OpticalFlow
.
transformToScenePxPyD
(
ref_pXpYD
,
// final double [][] reference_pXpYD, // invalid tiles - NaN in disparity. Should be no nulls, no NaN disparity
ref_pXpYD
,
// final double [][] reference_pXpYD, // invalid tiles - NaN in disparity. Should be no nulls, no NaN disparity
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
62655772
...
@@ -932,11 +932,7 @@ public class QuadCLTCPU {
...
@@ -932,11 +932,7 @@ public class QuadCLTCPU {
}
}
}
}
}
}
return
new
double
[]
{
coeffs
[
0
][
1
],
coeffs
[
1
][
1
],
coeffs
[
2
][
1
]};
return
new
double
[]
{
coeffs
[
0
][
1
],
coeffs
[
1
][
1
],
coeffs
[
2
][
1
]};
}
}
public
static
double
[]
getOmegaCorrections
(
public
static
double
[]
getOmegaCorrections
(
...
@@ -13889,7 +13885,8 @@ public class QuadCLTCPU {
...
@@ -13889,7 +13885,8 @@ public class QuadCLTCPU {
tp
.
getTilesX
(),
tp
.
getTilesX
(),
tp
.
getTilesY
(),
tp
.
getTilesY
(),
true
,
true
,
"filtered_bgnd_disp_strength"
,
dbg_titles
);
"filtered_bgnd_disp_strength"
,
dbg_titles
);
}
}
int
num_bg
=
tp
.
clt_3d_passes
.
get
(
bg_scan
).
setTileOpDisparity
(
// other minimal strength?
int
num_bg
=
tp
.
clt_3d_passes
.
get
(
bg_scan
).
setTileOpDisparity
(
// other minimal strength?
bg_sel
,
// bg_use, // bg_sel, // bg_use, // boolean [] selection, measure all that can be bg
bg_sel
,
// bg_use, // bg_sel, // bg_use, // boolean [] selection, measure all that can be bg
...
...
src/main/java/com/elphel/imagej/tileprocessor/TileProcessor.java
View file @
62655772
...
@@ -8835,7 +8835,7 @@ ImageDtt.startAndJoin(threads);
...
@@ -8835,7 +8835,7 @@ ImageDtt.startAndJoin(threads);
}
}
/**
/**
* Us this one when filling full frame and prohibit is not used. Faster as it first tries lower resolution, then full
* Us
e
this one when filling full frame and prohibit is not used. Faster as it first tries lower resolution, then full
* @param data_in input data array
* @param data_in input data array
* @param width_full width of the input dtata
* @param width_full width of the input dtata
* @param decimate_step decimation step (such as 16)
* @param decimate_step decimation step (such as 16)
...
...
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