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
5075dfa3
Commit
5075dfa3
authored
Jul 11, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compositeScan() with multi-plane (FG/BG) results
parent
28f7044c
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
656 additions
and
13 deletions
+656
-13
Eyesis_Correction.java
.../java/com/elphel/imagej/correction/Eyesis_Correction.java
+1
-1
CLTPass3d.java
src/main/java/com/elphel/imagej/tileprocessor/CLTPass3d.java
+1
-1
QuadCLT.java
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
+63
-9
TileProcessor.java
...n/java/com/elphel/imagej/tileprocessor/TileProcessor.java
+591
-2
No files found.
src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java
View file @
5075dfa3
...
@@ -5335,7 +5335,7 @@ private Panel panel1,
...
@@ -5335,7 +5335,7 @@ private Panel panel1,
if
(
ds_list
.
get
(
nt
).
isEmpty
())
continue
;
if
(
ds_list
.
get
(
nt
).
isEmpty
())
continue
;
Collections
.
sort
(
ds_list
.
get
(
nt
),
new
Comparator
<
DS
>()
{
Collections
.
sort
(
ds_list
.
get
(
nt
),
new
Comparator
<
DS
>()
{
@Override
@Override
public
int
compare
(
DS
lhs
,
DS
rhs
)
{
public
int
compare
(
DS
lhs
,
DS
rhs
)
{
// ascending
return
rhs
.
disparity
>
lhs
.
disparity
?
-
1
:
(
rhs
.
disparity
<
lhs
.
disparity
)
?
1
:
0
;
return
rhs
.
disparity
>
lhs
.
disparity
?
-
1
:
(
rhs
.
disparity
<
lhs
.
disparity
)
?
1
:
0
;
}
}
});
});
...
...
src/main/java/com/elphel/imagej/tileprocessor/CLTPass3d.java
View file @
5075dfa3
...
@@ -446,7 +446,7 @@ public class CLTPass3d{
...
@@ -446,7 +446,7 @@ public class CLTPass3d{
}
}
/**
/**
*
Get Get c
ombine per-tile disparity values from correlation combined with pre-programmed initial disparity shift.
*
C
ombine per-tile disparity values from correlation combined with pre-programmed initial disparity shift.
* @return line-scan array of per-tile disparity by reference (not a copy), so it can be modified
* @return line-scan array of per-tile disparity by reference (not a copy), so it can be modified
*/
*/
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLT.java
View file @
5075dfa3
...
@@ -5973,8 +5973,41 @@ public class QuadCLT {
...
@@ -5973,8 +5973,41 @@ public class QuadCLT {
threadsMax
,
// maximal number of threads to launch
threadsMax
,
// maximal number of threads to launch
updateStatus
,
updateStatus
,
debugLevel
);
debugLevel
);
// Add here composite scans and show FG and BG images
// adjust extrinsics here
// adjust extrinsics here
ArrayList
<
CLTPass3d
>
combo_pass_list
=
tp
.
compositeScan
(
2
,
// just FG and BG
tp
.
clt_3d_passes
,
// final ArrayList <CLTPass3d> passes,
0
,
// bg_pass, // final int firstPass,
tp
.
clt_3d_passes
.
size
(),
// final int lastPassPlus1,
tp
.
getTrustedCorrelation
(),
// final double trustedCorrelation,
tp
.
getMaxOverexposure
(),
// final double max_overexposure,
0.0
,
// clt_parameters.bgnd_range, // final double disp_far, // limit results to the disparity range
clt_parameters
.
grow_disp_max
,
// final double disp_near,
clt_parameters
.
combine_min_strength
,
// final double minStrength,
clt_parameters
.
combine_min_hor
,
// final double minStrengthHor,
clt_parameters
.
combine_min_vert
,
// final double minStrengthVert,
false
,
// final boolean no_weak,
false
,
// final boolean use_last, //
// TODO: when useCombo - pay attention to borders (disregard)
false
,
// final boolean usePoly) // use polynomial method to find max), valid if useCombo == false
true
,
// final boolean copyDebug)
debugLevel
);
tp
.
ShowScansSFB
(
combo_pass_list
,
// ArrayList<CLTPass3d> scans, // list of composite scans
this
.
image_name
+
"-SFB"
);
// String title);
/*
if (show_init_refine) tp.showScan(
combo_pass, // CLTPass3d scan,
"after_compositeScan-"+tp.clt_3d_passes.size());
*/
}
}
if
(
adjust_extrinsics
)
{
if
(
adjust_extrinsics
)
{
if
(
use_rig
)
{
if
(
use_rig
)
{
...
@@ -6010,6 +6043,30 @@ public class QuadCLT {
...
@@ -6010,6 +6043,30 @@ public class QuadCLT {
debugLevel
);
debugLevel
);
}
}
ArrayList
<
CLTPass3d
>
combo_pass_list
=
tp
.
compositeScan
(
2
,
// just FG and BG
tp
.
clt_3d_passes
,
// final ArrayList <CLTPass3d> passes,
0
,
// bg_pass, // final int firstPass,
tp
.
clt_3d_passes
.
size
(),
// final int lastPassPlus1,
tp
.
getTrustedCorrelation
(),
// final double trustedCorrelation,
tp
.
getMaxOverexposure
(),
// final double max_overexposure,
0.0
,
// clt_parameters.bgnd_range, // final double disp_far, // limit results to the disparity range
clt_parameters
.
grow_disp_max
,
// final double disp_near,
clt_parameters
.
combine_min_strength
,
// final double minStrength,
clt_parameters
.
combine_min_hor
,
// final double minStrengthHor,
clt_parameters
.
combine_min_vert
,
// final double minStrengthVert,
false
,
// final boolean no_weak,
false
,
// final boolean use_last, //
// TODO: when useCombo - pay attention to borders (disregard)
false
,
// final boolean usePoly) // use polynomial method to find max), valid if useCombo == false
true
,
// final boolean copyDebug)
debugLevel
);
tp
.
ShowScansSFB
(
combo_pass_list
,
// ArrayList<CLTPass3d> scans, // list of composite scans
this
.
image_name
+
"-SFB"
);
// String title);
Runtime
.
getRuntime
().
gc
();
Runtime
.
getRuntime
().
gc
();
// if (debugLevel >-1) System.out.println("Processing set "+(nSet+1)+" (of "+setNames.size()+") finished at "+
// if (debugLevel >-1) System.out.println("Processing set "+(nSet+1)+" (of "+setNames.size()+") finished at "+
...
@@ -6457,14 +6514,11 @@ public class QuadCLT {
...
@@ -6457,14 +6514,11 @@ public class QuadCLT {
if
(
show_init_refine
)
tp
.
showScan
(
if
(
show_init_refine
)
tp
.
showScan
(
tp
.
clt_3d_passes
.
get
(
refine_pass
),
// CLTPass3d scan,
tp
.
clt_3d_passes
.
get
(
refine_pass
),
// CLTPass3d scan,
"after_measure-"
+
tp
.
clt_3d_passes
.
size
());
"after_measure-"
+
tp
.
clt_3d_passes
.
size
());
// if (nnn < (num_macro_refine-1)) {
// if (clt_parameters.combine_refine){
CLTPass3d
combo_pass
=
tp
.
compositeScan
(
CLTPass3d
combo_pass
=
tp
.
compositeScan
(
tp
.
clt_3d_passes
,
// final ArrayList <CLTPass3d> passes,
tp
.
clt_3d_passes
,
// final ArrayList <CLTPass3d> passes,
bg_pass
,
// final int firstPass,
bg_pass
,
// final int firstPass,
tp
.
clt_3d_passes
.
size
(),
// final int lastPassPlus1,
tp
.
clt_3d_passes
.
size
(),
// final int lastPassPlus1,
// tp.clt_3d_passes.get(bg_pass).getSelected(), // selected , // final boolean [] bg_tiles, // get from selected in clt_3d_passes.get(0);
// clt_parameters.ex_min_over,// final double ex_min_over, // when expanding over previously detected (by error) background, disregard far tiles
tp
.
getTrustedCorrelation
(),
// final double trustedCorrelation,
tp
.
getTrustedCorrelation
(),
// final double trustedCorrelation,
tp
.
getMaxOverexposure
(),
// final double max_overexposure,
tp
.
getMaxOverexposure
(),
// final double max_overexposure,
0.0
,
// clt_parameters.bgnd_range, // final double disp_far, // limit results to the disparity range
0.0
,
// clt_parameters.bgnd_range, // final double disp_far, // limit results to the disparity range
...
...
src/main/java/com/elphel/imagej/tileprocessor/TileProcessor.java
View file @
5075dfa3
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