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
0ee312b7
Commit
0ee312b7
authored
Jan 01, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working snapshot
parent
4347db13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
TexturedModel.java
...n/java/com/elphel/imagej/tileprocessor/TexturedModel.java
+6
-2
No files found.
src/main/java/com/elphel/imagej/tileprocessor/TexturedModel.java
View file @
0ee312b7
...
@@ -5299,6 +5299,7 @@ public class TexturedModel {
...
@@ -5299,6 +5299,7 @@ public class TexturedModel {
for
(
int
nslice
=
0
;
nslice
<
num_slices
;
nslice
++)
{
for
(
int
nslice
=
0
;
nslice
<
num_slices
;
nslice
++)
{
final
double
[]
vars_ratio
=
new
double
[
img_size
];
final
double
[]
vars_ratio
=
new
double
[
img_size
];
final
double
[]
vars_fom
=
new
double
[
img_size
];
// inter/sqrt(same)
final
double
[]
vars_dir_ratio
=
new
double
[
img_size
];
final
double
[]
vars_dir_ratio
=
new
double
[
img_size
];
final
double
[]
half_pix
=
new
double
[
img_size
];
final
double
[]
half_pix
=
new
double
[
img_size
];
final
double
[]
stitch_trim_pix
=
new
double
[
img_size
];
final
double
[]
stitch_trim_pix
=
new
double
[
img_size
];
...
@@ -5311,6 +5312,7 @@ public class TexturedModel {
...
@@ -5311,6 +5312,7 @@ public class TexturedModel {
final
double
[]
trim_alpha_pix
=
new
double
[
img_size
];
final
double
[]
trim_alpha_pix
=
new
double
[
img_size
];
for
(
int
i
=
0
;
i
<
img_size
;
i
++)
{
for
(
int
i
=
0
;
i
<
img_size
;
i
++)
{
vars_ratio
[
i
]
=
vars
[
0
][
nslice
][
i
]/
vars
[
1
][
nslice
][
i
];
vars_ratio
[
i
]
=
vars
[
0
][
nslice
][
i
]/
vars
[
1
][
nslice
][
i
];
vars_fom
[
i
]
=
vars
[
1
][
nslice
][
i
]/
Math
.
sqrt
(
vars
[
0
][
nslice
][
i
]);
vars_dir_ratio
[
i
]
=
vars
[
0
][
nslice
][
i
]/
dbg_out
[
1
][
nslice
][
i
];
//vars_dir_final;
vars_dir_ratio
[
i
]
=
vars
[
0
][
nslice
][
i
]/
dbg_out
[
1
][
nslice
][
i
];
//vars_dir_final;
half_pix
[
i
]
=
half_pix
[
i
]
=
(
has_bg_pix
[
nslice
][
i
]?
1.0
:
0.0
)
+
(
has_bg_pix
[
nslice
][
i
]?
1.0
:
0.0
)
+
...
@@ -5344,12 +5346,13 @@ public class TexturedModel {
...
@@ -5344,12 +5346,13 @@ public class TexturedModel {
double
[][]
dbg_img
=
{
double
[][]
dbg_img
=
{
vars
[
0
][
nslice
],
vars
[
0
][
nslice
],
vars
[
1
][
nslice
],
vars
[
1
][
nslice
],
vars_ratio
,
vars_fom
,
dbg_out
[
0
][
nslice
],
// gdbg_vars_dir_initial[nslice],
dbg_out
[
0
][
nslice
],
// gdbg_vars_dir_initial[nslice],
dbg_out
[
1
][
nslice
],
// gdbg_vars_dir_final[nslice],
dbg_out
[
1
][
nslice
],
// gdbg_vars_dir_final[nslice],
dbg_out
[
2
][
nslice
],
// gdbg_dirs_initial[nslice],
dbg_out
[
2
][
nslice
],
// gdbg_dirs_initial[nslice],
dbg_out
[
3
][
nslice
],
// gdbg_dirs_final[nslice],
dbg_out
[
3
][
nslice
],
// gdbg_dirs_final[nslice],
dbg_out
[
4
][
nslice
],
// gdbg_dirs_len[nslice],
dbg_out
[
4
][
nslice
],
// gdbg_dirs_len[nslice],
vars_ratio
,
vars_dir_ratio
,
vars_dir_ratio
,
half_pix
,
half_pix
,
stitch_trim_pix
,
stitch_trim_pix
,
...
@@ -5392,12 +5395,13 @@ public class TexturedModel {
...
@@ -5392,12 +5395,13 @@ public class TexturedModel {
String
[]
dbg_titles
=
{
String
[]
dbg_titles
=
{
"VAR_SAME"
,
"VAR_SAME"
,
"VAR_INTER"
,
"VAR_INTER"
,
"VAR_RATIO"
,
"VAR_FOM"
,
"VAR_DIR_INITIAL"
,
"VAR_DIR_INITIAL"
,
"VAR_DIR_FINAL"
,
"VAR_DIR_FINAL"
,
"DIR_INITIAL"
,
"DIR_INITIAL"
,
"DIR_FINAL"
,
"DIR_FINAL"
,
"LEN"
,
"LEN"
,
"VAR_RATIO"
,
"DIR_RATIO"
,
"DIR_RATIO"
,
"HALF_BG_FG"
,
"HALF_BG_FG"
,
"STITCH_TRIM"
,
"STITCH_TRIM"
,
...
...
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