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
6ac376b0
Commit
6ac376b0
authored
Apr 21, 2018
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging LMA for correlation maximums
parent
10495389
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
382 additions
and
125 deletions
+382
-125
Correlation2d.java
src/main/java/Correlation2d.java
+237
-120
ImageDtt.java
src/main/java/ImageDtt.java
+21
-0
ImageDttParameters.java
src/main/java/ImageDttParameters.java
+124
-5
No files found.
src/main/java/Correlation2d.java
View file @
6ac376b0
This diff is collapsed.
Click to expand it.
src/main/java/ImageDtt.java
View file @
6ac376b0
...
...
@@ -2481,6 +2481,27 @@ public class ImageDtt {
disparity_map
[
DBG18_INDEX
][
tIndex
]
=
Double
.
NaN
;
}
}
// initially try LMA for only the debug tile
if
((
corr_stat
!=
null
)
&&
(
globalDebugLevel
>
-
2
)
&&
(
tileX
==
debug_tileX
)
&&
(
tileY
==
debug_tileY
))
{
System
.
out
.
println
(
String
.
format
(
"Testing correlation maximum LMA tileX=%d, tileY=%d, dbg_pair_mask= 0x%x,corr_offset = %8.5f"
,
debug_tileX
,
debug_tileY
,
imgdtt_params
.
dbg_pair_mask
,
imgdtt_params
.
corr_offset
));
// Create 2 groups: ortho & diag
corr2d
.
corrLMA
(
imgdtt_params
,
// ImageDttParameters imgdtt_params,
corrs
,
// double [][] corrs,
corr_stat
[
0
],
// double xcenter, // preliminary center x in pixels for largest baseline
corr_wndy
,
// double [] window_y, // (half) window function in y-direction(perpendicular to disparity: for row0 ==1
corr_wndx
,
// double [] window_x, // half of a window function in x (disparity) direction
imgdtt_params
.
ortho_vasw_pwr
,
// double vasw_pwr, // value as weight to this power,
imgdtt_params
.
lma_debug_level
,
// int debug_level,
tileX
,
// int tileX, // just for debug output
tileY
);
// int tileY
}
}
if
(
imgdtt_params
.
mix_corr_poly
)
{
// regardless of debug
...
...
src/main/java/ImageDttParameters.java
View file @
6ac376b0
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