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
e608c208
Commit
e608c208
authored
Aug 29, 2020
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matching gpu/cpu
parent
0777a4a7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
386 additions
and
174 deletions
+386
-174
CLTParameters.java
src/main/java/com/elphel/imagej/cameras/CLTParameters.java
+4
-4
Correlation2d.java
...n/java/com/elphel/imagej/tileprocessor/Correlation2d.java
+0
-1
ImageDtt.java
src/main/java/com/elphel/imagej/tileprocessor/ImageDtt.java
+168
-70
ImageDttCPU.java
...ain/java/com/elphel/imagej/tileprocessor/ImageDttCPU.java
+205
-98
ImageDttParameters.java
...a/com/elphel/imagej/tileprocessor/ImageDttParameters.java
+9
-1
No files found.
src/main/java/com/elphel/imagej/cameras/CLTParameters.java
View file @
e608c208
...
...
@@ -774,11 +774,11 @@ public class CLTParameters {
public
double
gpu_sigma_b
=
0.9
;
// 1.1;
public
double
gpu_sigma_g
=
0.6
;
// 0.7;
public
double
gpu_sigma_m
=
0.4
;
// 0.7;
public
double
gpu_sigma_rb_corr
=
0.
5
;
// apply LPF after accumulating R and B correlation before G,
public
double
gpu_sigma_corr
=
0.
9
;
public
double
gpu_sigma_rb_corr
=
0.
3
;
// apply LPF after accumulating R and B correlation before G,
public
double
gpu_sigma_corr
=
0.
8
;
public
double
gpu_sigma_corr_m
=
0.15
;
public
double
gpu_fatz
=
30.0
;
public
double
gpu_fatz_m
=
30.0
;
public
double
gpu_fatz
=
500.0
;
// was 30
public
double
gpu_fatz_m
=
500.0
;
// was 30
public
boolean
gpu_woi
=
false
;
// if true - use gpu_woi_tx, ...
public
int
gpu_woi_tx
=
0
;
...
...
src/main/java/com/elphel/imagej/tileprocessor/Correlation2d.java
View file @
e608c208
...
...
@@ -990,7 +990,6 @@ public class Correlation2d {
public
double
[][]
scaleRotateInterpoateCorrelations
(
// USED in lwir
double
[][]
correlations
,
int
pairs_mask
,
// int sub_sampling,
int
hwidth
,
int
debug_mask
)
{
...
...
src/main/java/com/elphel/imagej/tileprocessor/ImageDtt.java
View file @
e608c208
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/ImageDttCPU.java
View file @
e608c208
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/ImageDttParameters.java
View file @
e608c208
...
...
@@ -100,7 +100,8 @@ public class ImageDttParameters {
public
double
corr_wndx_hwidth
=
6.0
;
// 50% window cutoff width
public
double
corr_wndx_blur
=
5.0
;
// 100% to 0 % vertical transition range
public
double
pcorr_sigma_mono
=
0.15
;
// correlation sigma for monochrome images (after normalization)
public
boolean
pcorr_use
=
false
;
// use group phase correlation for disparity calculation in existing code
public
double
pcorr_sigma_mono
=
0.15
;
// correlation sigma for monochrome images (after normalization)
public
double
pcorr_sigma
=
0.8
;
// correlation sigma for Bayder images (after normalization)
public
double
pcorr_sigma_rb
=
0.5
;
// correlation sigma extra for R and B (before normalization)
public
double
pcorr_fat_zero
=
0.05
;
// correlation relative fat zero for Bayer images
...
...
@@ -334,6 +335,9 @@ public class ImageDttParameters {
"Transition range, shifted sine is used"
);
gd
.
addTab
(
"Corr Intra"
,
"Parameters Group 2D Phase correlation"
);
gd
.
addCheckbox
(
"Use group phase correlation for disparity calculation"
,
this
.
pcorr_use
,
"Default false, for compatibility with existing code/ old configs"
);
gd
.
addNumericField
(
"Correlation sigma for monochrome images"
,
this
.
pcorr_sigma_mono
,
3
,
6
,
"pix"
,
"after normalization"
);
gd
.
addNumericField
(
"Correlation sigma for Bayer images"
,
this
.
pcorr_sigma
,
3
,
6
,
"pix"
,
...
...
@@ -573,6 +577,7 @@ public class ImageDttParameters {
this
.
corr_wndx_hwidth
=
gd
.
getNextNumber
();
this
.
corr_wndx_blur
=
gd
.
getNextNumber
();
this
.
pcorr_use
=
gd
.
getNextBoolean
();
this
.
pcorr_sigma_mono
=
gd
.
getNextNumber
();
this
.
pcorr_sigma
=
gd
.
getNextNumber
();
this
.
pcorr_sigma_rb
=
gd
.
getNextNumber
();
...
...
@@ -720,6 +725,7 @@ public class ImageDttParameters {
properties
.
setProperty
(
prefix
+
"corr_wndx_hwidth"
,
this
.
corr_wndx_hwidth
+
""
);
properties
.
setProperty
(
prefix
+
"corr_wndx_blur"
,
this
.
corr_wndx_blur
+
""
);
properties
.
setProperty
(
prefix
+
"pcorr_use"
,
this
.
pcorr_use
+
""
);
properties
.
setProperty
(
prefix
+
"pcorr_sigma_mono"
,
this
.
pcorr_sigma_mono
+
""
);
properties
.
setProperty
(
prefix
+
"pcorr_sigma"
,
this
.
pcorr_sigma
+
""
);
properties
.
setProperty
(
prefix
+
"pcorr_sigma_rb"
,
this
.
pcorr_sigma_rb
+
""
);
...
...
@@ -873,6 +879,7 @@ public class ImageDttParameters {
if
(
properties
.
getProperty
(
prefix
+
"corr_wndx_hwidth"
)!=
null
)
this
.
corr_wndx_hwidth
=
Double
.
parseDouble
(
properties
.
getProperty
(
prefix
+
"corr_wndx_hwidth"
));
if
(
properties
.
getProperty
(
prefix
+
"corr_wndx_blur"
)!=
null
)
this
.
corr_wndx_blur
=
Double
.
parseDouble
(
properties
.
getProperty
(
prefix
+
"corr_wndx_blur"
));
if
(
properties
.
getProperty
(
prefix
+
"pcorr_use"
)!=
null
)
this
.
pcorr_use
=
Boolean
.
parseBoolean
(
properties
.
getProperty
(
prefix
+
"pcorr_use"
));
if
(
properties
.
getProperty
(
prefix
+
"pcorr_sigma_mono"
)!=
null
)
this
.
pcorr_sigma_mono
=
Double
.
parseDouble
(
properties
.
getProperty
(
prefix
+
"pcorr_sigma_mono"
));
if
(
properties
.
getProperty
(
prefix
+
"pcorr_sigma"
)!=
null
)
this
.
pcorr_sigma
=
Double
.
parseDouble
(
properties
.
getProperty
(
prefix
+
"pcorr_sigma"
));
if
(
properties
.
getProperty
(
prefix
+
"pcorr_sigma_rb"
)!=
null
)
this
.
pcorr_sigma_rb
=
Double
.
parseDouble
(
properties
.
getProperty
(
prefix
+
"pcorr_sigma_rb"
));
...
...
@@ -1021,6 +1028,7 @@ public class ImageDttParameters {
idp
.
corr_wndx_hwidth
=
this
.
corr_wndx_hwidth
;
idp
.
corr_wndx_blur
=
this
.
corr_wndx_blur
;
idp
.
pcorr_use
=
this
.
pcorr_use
;
idp
.
pcorr_sigma_mono
=
this
.
pcorr_sigma_mono
;
idp
.
pcorr_sigma
=
this
.
pcorr_sigma
;
idp
.
pcorr_sigma_rb
=
this
.
pcorr_sigma_rb
;
...
...
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