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
95647831
Commit
95647831
authored
May 24, 2022
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attached ML generation and export of the DSI-aware warped images
parent
23452c5b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
405 additions
and
33 deletions
+405
-33
ImageDtt.java
src/main/java/com/elphel/imagej/tileprocessor/ImageDtt.java
+3
-1
OpticalFlow.java
...ain/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
+163
-26
QuadCLT.java
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
+226
-3
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+13
-3
No files found.
src/main/java/com/elphel/imagej/tileprocessor/ImageDtt.java
View file @
95647831
...
...
@@ -1163,6 +1163,7 @@ public class ImageDtt extends ImageDttCPU {
* Convert reference scene to FD and save result in extra GPU array for the future interscene correlation
* Geometry correction and images will come from gpuQuad instance -
* @param imgdtt_params
* @param use_reference_buffer true - use extra GPU array, false - use main one
* @param tp_tasks
* @param gpu_sigma_r
* @param gpu_sigma_b
...
...
@@ -1173,6 +1174,7 @@ public class ImageDtt extends ImageDttCPU {
*/
public
void
setReferenceTD
(
final
ImageDttParameters
imgdtt_params
,
// Now just extra correlation parameters, later will include, most others
final
boolean
use_reference_buffer
,
final
TpTask
[]
tp_tasks
,
final
double
gpu_sigma_r
,
// 0.9, 1.1
final
double
gpu_sigma_b
,
// 0.9, 1.1
...
...
@@ -1201,7 +1203,7 @@ public class ImageDtt extends ImageDttCPU {
tp_tasks
,
false
);
// boolean use_aux // while is it in class member? - just to be able to free
// Skipping if ((fdisp_dist != null) || (fpxpy != null)) {...
gpuQuad
.
execConvertDirect
(
true
);
// put results into a "reference" buffer
gpuQuad
.
execConvertDirect
(
use_reference_buffer
);
// put results into a "reference" buffer
}
...
...
src/main/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
View file @
95647831
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
View file @
95647831
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
95647831
...
...
@@ -158,6 +158,18 @@ public class QuadCLTCPU {
public
double
[][]
ds_from_main
=
null
;
public
double
[][]
dsrbg
=
null
;
// D, S, R,B,G
public
double
[][]
getDLS
(){
// get disparity, disparity_lma, strength
if
(
dsi
==
null
)
{
// System.out.println("dsi== null, use spawnQuadCLT(), restoreFromModel(), ... to set it");
return
null
;
}
double
[][]
dls
=
new
double
[
3
][];
dls
[
0
]
=
dsi
[
isAux
()?
TwoQuadCLT
.
DSI_DISPARITY_AUX
:
TwoQuadCLT
.
DSI_DISPARITY_MAIN
];
dls
[
1
]
=
dsi
[
isAux
()?
TwoQuadCLT
.
DSI_DISPARITY_AUX_LMA
:
TwoQuadCLT
.
DSI_DISPARITY_MAIN_LMA
];
dls
[
2
]
=
dsi
[
isAux
()?
TwoQuadCLT
.
DSI_STRENGTH_AUX
:
TwoQuadCLT
.
DSI_STRENGTH_MAIN
];
return
dls
;
}
public
TileProcessor
getTileProcessor
()
{
return
tp
;
}
...
...
@@ -502,8 +514,6 @@ public class QuadCLTCPU {
}
public
String
[]
getDSRGGTitles
()
{
return
isMonochrome
()?
// (new String[]{"disparity","strength", "disparity_lma","Y"}):
// (new String[]{"disparity","strength", "disparity_lma","R","B","G"});
(
new
String
[]{
"disparity"
,
"strength"
,
"Y"
}):
(
new
String
[]{
"disparity"
,
"strength"
,
"R"
,
"B"
,
"G"
});
}
...
...
@@ -643,7 +653,7 @@ public class QuadCLTCPU {
return
rgba
;
}
public
QuadCLTCPU
restoreFromModel
(
public
QuadCLTCPU
restoreFromModel
(
// restores dsi
CLTParameters
clt_parameters
,
ColorProcParameters
colorProcParameters
,
NoiseParameters
noise_sigma_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