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
ee4732b5
Commit
ee4732b5
authored
Jul 08, 2022
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Before fixing renderGPUFromDSI with offset viewpoint
parent
90aa5914
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
799 additions
and
313 deletions
+799
-313
Eyesis_Correction.java
.../java/com/elphel/imagej/correction/Eyesis_Correction.java
+1
-1
ErsCorrection.java
...n/java/com/elphel/imagej/tileprocessor/ErsCorrection.java
+7
-5
IntersceneMatchParameters.java
...lphel/imagej/tileprocessor/IntersceneMatchParameters.java
+316
-31
OpticalFlow.java
...ain/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
+335
-215
QuadCLT.java
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
+22
-1
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+2
-2
TwoQuadCLT.java
...main/java/com/elphel/imagej/tileprocessor/TwoQuadCLT.java
+116
-58
No files found.
src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java
View file @
ee4732b5
...
...
@@ -6818,7 +6818,7 @@ public class Eyesis_Correction implements PlugIn, ActionListener {
CLT_PARAMETERS
.
setRGBParameters
(
RGB_PARAMETERS
);
try
{
T
WO_QUAD_
CLT
.
buildSeriesTQ
(
T
woQuad
CLT
.
buildSeriesTQ
(
quadCLT
,
// QUAD_CLT, // QuadCLT quadCLT_main,
-
1
,
// int ref_index,
0
,
// int ref_step,
...
...
src/main/java/com/elphel/imagej/tileprocessor/ErsCorrection.java
View file @
ee4732b5
...
...
@@ -317,11 +317,13 @@ public class ErsCorrection extends GeometryCorrection {
public
void
setPropertiesScenes
(
String
prefix
,
Properties
properties
){
String
[]
timestamps
=
getScenes
();
for
(
String
k
:
timestamps
)
{
String
[]
s_scenes
=
getScene
(
k
).
toStrings
();
if
(
getScene
(
k
)
!=
null
)
{
String
[]
s_scenes
=
getScene
(
k
).
toStrings
();
// null pointer
properties
.
setProperty
(
prefix
+
SCENES_PREFIX
+
"_"
+
k
,
s_scenes
[
0
]);
properties
.
setProperty
(
prefix
+
SCENES_PREFIX
+
"_"
+
k
+
"_dt"
,
s_scenes
[
1
]);
properties
.
setProperty
(
prefix
+
SCENES_PREFIX
+
"_"
+
k
+
"_d2t"
,
s_scenes
[
2
]);
// properties.setProperty(prefix+SCENES_PREFIX+"_"+k, getScene(k).toString());
// properties.setProperty(prefix+SCENES_PREFIX+"_"+k, getScene(k).toString());
}
}
}
...
...
src/main/java/com/elphel/imagej/tileprocessor/IntersceneMatchParameters.java
View file @
ee4732b5
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
View file @
ee4732b5
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
View file @
ee4732b5
...
...
@@ -613,7 +613,7 @@ public class QuadCLT extends QuadCLTCPU {
break
;
}
fill_all
[
0
]
=
anum_gaps
.
get
()
==
0
;
// no new tiles filled
if
(
npass
==
(
num_passes
-
1
)){
if
(
(
debug_level
>
0
)
&&
(
npass
==
(
num_passes
-
1
)
)){
System
.
out
.
println
(
"fillDisparityStrength() LAST PASS ! npass="
+
npass
+
", change="
+
Math
.
sqrt
(
amax_diff
.
get
())+
" ("
+
max_change
+
")"
);
System
.
out
.
println
(
"fillDisparityStrength() LAST PASS ! npass="
+
npass
+
", change="
+
Math
.
sqrt
(
amax_diff
.
get
())+
" ("
+
max_change
+
")"
);
System
.
out
.
println
(
"fillDisparityStrength() LAST PASS ! npass="
+
npass
+
", change="
+
Math
.
sqrt
(
amax_diff
.
get
())+
" ("
+
max_change
+
")"
);
...
...
@@ -2198,6 +2198,27 @@ public class QuadCLT extends QuadCLTCPU {
if
(
full_woi_in
!=
null
)
{
rendered_width
=
full_woi_in
.
width
*
GPUTileProcessor
.
DTT_SIZE
;
}
boolean
showPxPyD
=
false
;
if
(
showPxPyD
)
{
int
dbg_width
=
rendered_width
/
GPUTileProcessor
.
DTT_SIZE
;
int
dbg_height
=
pXpYD
.
length
/
dbg_width
;
double
[][]
dbg_img
=
new
double
[
3
][
pXpYD
.
length
];
for
(
int
i
=
0
;
i
<
dbg_img
.
length
;
i
++)
{
Arrays
.
fill
(
dbg_img
[
i
],
Double
.
NaN
);
}
for
(
int
nTile
=
0
;
nTile
<
pXpYD
.
length
;
nTile
++)
if
(
pXpYD
[
nTile
]
!=
null
){
for
(
int
i
=
0
;
i
<
dbg_img
.
length
;
i
++)
{
dbg_img
[
i
][
nTile
]
=
pXpYD
[
nTile
][
i
];
}
}
(
new
ShowDoubleFloatArrays
()).
showArrays
(
// out of boundary 15
dbg_img
,
dbg_width
,
dbg_height
,
true
,
"pXpYD"
,
new
String
[]
{
"pX"
,
"pY"
,
"Disparity"
});
}
//scene_QuadClt.getTileProcessor().getTileSize();
TpTask
[]
tp_tasks_ref
=
GpuQuad
.
setInterTasks
(
// "true" reference, with stereo actual reference will be offset
scene
.
getNumSensors
(),
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
ee4732b5
...
...
@@ -540,7 +540,7 @@ public class QuadCLTCPU {
}
Properties
inter_properties
=
new
Properties
();
String
prefix
=
is_aux
?
PREFIX_AUX:
PREFIX
;
setProperties
(
prefix
,
inter_properties
);
setProperties
(
prefix
,
inter_properties
);
// null pointer
OutputStream
os
;
try
{
os
=
new
FileOutputStream
(
path
);
...
...
@@ -1634,7 +1634,7 @@ public class QuadCLTCPU {
ErsCorrection
ers
=
(
ErsCorrection
)
gc
;
ers
.
setPropertiesPose
(
prefix
,
properties
);
ers
.
setPropertiesERS
(
prefix
,
properties
);
ers
.
setPropertiesScenes
(
prefix
,
properties
);
ers
.
setPropertiesScenes
(
prefix
,
properties
);
// null pointer
ers
.
setPropertiesLineTime
(
prefix
,
properties
);
}
properties
.
setProperty
(
prefix
+
"num_orient"
,
this
.
num_orient
+
""
);
...
...
src/main/java/com/elphel/imagej/tileprocessor/TwoQuadCLT.java
View file @
ee4732b5
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