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
c944c0f6
Commit
c944c0f6
authored
Jan 05, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on occluded BG. Some works
parent
ab8732b9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
334 additions
and
24 deletions
+334
-24
TpTask.java
src/main/java/com/elphel/imagej/gpu/TpTask.java
+4
-0
QuadCLT.java
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
+21
-19
TexturedModel.java
...n/java/com/elphel/imagej/tileprocessor/TexturedModel.java
+309
-5
No files found.
src/main/java/com/elphel/imagej/gpu/TpTask.java
View file @
c944c0f6
...
...
@@ -176,6 +176,10 @@ public class TpTask {
public
int
getTileX
(){
return
tx
;
}
public
int
[]
getTileXY
(){
return
new
int
[]
{
tx
,
ty
};
}
public
int
getTask
()
{
return
task
;
}
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
View file @
c944c0f6
...
...
@@ -1775,24 +1775,25 @@ public class QuadCLT extends QuadCLTCPU {
}
public
static
double
[][][][]
texturesNoOverlapGPUFromDSI
(
CLTParameters
clt_parameters
,
double
[]
disparity_ref
,
CLTParameters
clt_parameters
,
double
[]
disparity_ref
,
// motion blur compensation
double
mb_tau
,
// 0.008; // time constant, sec
double
mb_max_gain
,
// 5.0; // motion blur maximal gain (if more - move second point more than a pixel
double
[][]
mb_vectors
,
// now [2][ntiles];
final
double
[]
scene_xyz
,
// camera center in world coordinates
final
double
[]
scene_atr
,
// camera orientation relative to world frame
final
QuadCLT
scene
,
final
QuadCLT
ref_scene
,
// now - may be null - for testing if scene is rotated ref
final
boolean
filter_bg
,
// remove bg tiles (possibly occluded)
final
double
max_distortion
,
// maximal neighbor tiles offset as a fraction of tile size (8)
final
int
[]
cluster_index
,
// [tilesX*tilesY]
final
boolean
[]
border
,
// border tiles for clusters?
final
int
discard_frame_edges
,
// do not use tiles that have pixels closer to the frame margins
final
int
keep_frame_tiles
,
// do not discard pixels for border tiles in reference frame
final
boolean
keep_channels
,
final
int
debugLevel
){
double
mb_tau
,
// 0.008; // time constant, sec
double
mb_max_gain
,
// 5.0; // motion blur maximal gain (if more - move second point more than a pixel
double
[][]
mb_vectors
,
// now [2][ntiles];
final
double
[]
scene_xyz
,
// camera center in world coordinates
final
double
[]
scene_atr
,
// camera orientation relative to world frame
final
QuadCLT
scene
,
final
QuadCLT
ref_scene
,
// now - may be null - for testing if scene is rotated ref
final
boolean
filter_bg
,
// remove bg tiles (possibly occluded)
final
double
max_distortion
,
// maximal neighbor tiles offset as a fraction of tile size (8)
final
int
[]
cluster_index
,
// [tilesX*tilesY]
final
boolean
[]
border
,
// border tiles for clusters?
final
int
discard_frame_edges
,
// do not use tiles that have pixels closer to the frame margins
final
int
keep_frame_tiles
,
// do not discard pixels for border tiles in reference frame
final
boolean
keep_channels
,
final
TpTask
[][][]
tp_tasks_ret
,
// if not null, should be [1] - will return tp_tasks_ret[0] = tp_tasks
final
int
debugLevel
){
// FIXME: Move to clt_parameters;
final
double
max_overlap
=
0.6
;
final
double
min_adisp_cam
=
0.2
;
...
...
@@ -1899,11 +1900,12 @@ public class QuadCLT extends QuadCLTCPU {
if
(
tp_tasks
[
0
].
length
==
0
)
{
if
(
debugLevel
>
-
1
)
{
System
.
out
.
println
(
"texturesGPUFromDSI(): no tiles to process"
);
}
return
null
;
}
if
(
tp_tasks_ret
!=
null
)
{
tp_tasks_ret
[
0
]
=
tp_tasks
;
// return tp_tasks to caller
}
/// scene.saveQuadClt(); // to re-load new set of Bayer images to the GPU (do nothing for CPU) and Geometry
ImageDtt
image_dtt
=
new
ImageDtt
(
scene
.
getNumSensors
(),
...
...
src/main/java/com/elphel/imagej/tileprocessor/TexturedModel.java
View file @
c944c0f6
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