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
eae75ef1
Commit
eae75ef1
authored
Jul 02, 2026
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improving renderSceneSequence()
parent
d3c015c3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
110 deletions
+57
-110
CuasRanging.java
src/main/java/com/elphel/imagej/cuas/CuasRanging.java
+39
-1
OpticalFlow.java
...ain/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
+14
-105
QuadCLT.java
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
+4
-4
No files found.
src/main/java/com/elphel/imagej/cuas/CuasRanging.java
View file @
eae75ef1
...
...
@@ -75,6 +75,7 @@ public class CuasRanging {
}
public
ImagePlus
prepareFpixels
(){
boolean
dbg_save_fpixels
=
true
;
double
[][]
combo_dsi
=
getCenter_CLT
().
comboFromMain
();
double
[][]
dls
=
{
combo_dsi
[
OpticalFlow
.
COMBO_DSN_INDX_DISP
],
// **** null on second scene sequence
...
...
@@ -135,6 +136,37 @@ public class CuasRanging {
double
[]
cuas_atr
=
OpticalFlow
.
ZERO3
;
String
scenes_suffix
=
getCenter_CLT
().
getImageName
()+
"-CUAS"
;
// "1747829900_781803-SEQ-FG-MONO-FPN";
boolean
merge_all
=
false
;
// clt_parameters.imp.merge_all || !um_mono; // no unsharp mask -> terrain->merge_all
int
sensor_mask
=
merge_all
?
1
:
-
1
;
if
(
dbg_save_fpixels
)
{
ImagePlus
imp_targets
=
OpticalFlow
.
renderSceneSequence
(
clt_parameters
,
// CLTParameters clt_parameters,
true
,
// center_CLT.hasCenterClt(), // boolean mode_cuas,
false
,
// clt_parameters.imp.um_mono, // boolean um_mono,
clt_parameters
.
imp
.
calculate_average
,
// boolean insert_average, // then add new parameter, keep add average
null
,
// int [] average_range,
null
,
// average_channels, // average_slice,
clt_parameters
.
imp
.
subtract_average
,
// boolean subtract_average,
clt_parameters
.
imp
.
running_average
,
// int running_average,
null
,
// fov_tiles, // Rectangle fov_tiles,
1
,
// mode3d, // int mode3d,
false
,
// toRGB, // boolean toRGB,
xyz_offset
,
// double [] stereo_offset, // offset reference camera {x,y,z}
cuas_atr
,
// double [] stereo_atr, // offset reference orientation (cuas)
sensor_mask
,
// sensor_mask, // int sensor_mask,
merge_all
,
// boolean merge_all,
scenes_suffix
,
// String suffix,
ds_vantage
[
0
],
// selected_disparity, // double [] ref_disparity,
scenes
,
// QuadCLT [] quadCLTs,
getCenter_CLT
(),
// ref_index, // int ref_index,
ImageDtt
.
THREADS_MAX
,
// threadsMax, // int threadsMax,
debugLevel
);
// int debugLevel);
getCenter_CLT
().
saveImagePlusInModelDirectory
(
imp_targets
.
getTitle
()+
"-DBG"
,
// "GPU-SHIFTED-D"+clt_parameters.disparity, // String suffix,
imp_targets
);
// imp_scenes); // ImagePlus imp)
}
merge_all
=
true
;
// clt_parameters.imp.merge_all || !um_mono; // no unsharp mask -> terrain->merge_all
sensor_mask
=
merge_all
?
1
:
-
1
;
ImagePlus
imp_targets
=
OpticalFlow
.
renderSceneSequence
(
clt_parameters
,
// CLTParameters clt_parameters,
true
,
// center_CLT.hasCenterClt(), // boolean mode_cuas,
...
...
@@ -149,13 +181,19 @@ public class CuasRanging {
false
,
// toRGB, // boolean toRGB,
xyz_offset
,
// double [] stereo_offset, // offset reference camera {x,y,z}
cuas_atr
,
// double [] stereo_atr, // offset reference orientation (cuas)
1
,
// sensor_mask, // int sensor_mask,
sensor_mask
,
// sensor_mask, // int sensor_mask,
merge_all
,
// boolean merge_all,
scenes_suffix
,
// String suffix,
ds_vantage
[
0
],
// selected_disparity, // double [] ref_disparity,
scenes
,
// QuadCLT [] quadCLTs,
getCenter_CLT
(),
// ref_index, // int ref_index,
ImageDtt
.
THREADS_MAX
,
// threadsMax, // int threadsMax,
debugLevel
);
// int debugLevel);
if
(
dbg_save_fpixels
)
{
getCenter_CLT
().
saveImagePlusInModelDirectory
(
imp_targets
.
getTitle
()+
"-DBG"
,
// "GPU-SHIFTED-D"+clt_parameters.disparity, // String suffix,
imp_targets
);
// imp_scenes); // ImagePlus imp)
}
return
imp_targets
;
}
...
...
src/main/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
View file @
eae75ef1
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
View file @
eae75ef1
...
...
@@ -1690,7 +1690,7 @@ public class QuadCLT extends QuadCLTCPU {
toRGB
,
// boolean toRGB,
false
,
// use_reference, // boolean use_reference
suffix
);
// String suffix)
return
imp_render
;
return
imp_render
;
}
...
...
@@ -1862,9 +1862,9 @@ public class QuadCLT extends QuadCLTCPU {
public
static
double
[][]
preRenderGPUFromDSI
(
// will return PxPyD
final
boolean
accumulate
,
final
double
global_scale
,
// <=1.0
final
int
sensor_mask
,
final
boolean
merge_channels
,
final
double
global_scale
,
// <=1.0
final
int
sensor_mask
,
// not used
final
boolean
merge_channels
,
// not used
final
int
discard_border
,
final
double
max_fold
,
final
int
min_in_row_col
,
// Minimal number of defined tiles in a row/column
...
...
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