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
064ff7ca
Commit
064ff7ca
authored
Oct 25, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reducing number of SfM pairs if do not fit
parent
b4b58042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
OpticalFlow.java
...ain/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
+8
-1
No files found.
src/main/java/com/elphel/imagej/tileprocessor/OpticalFlow.java
View file @
064ff7ca
...
@@ -5041,6 +5041,13 @@ public class OpticalFlow {
...
@@ -5041,6 +5041,13 @@ public class OpticalFlow {
*/
*/
// int num_avg_pairs = 16; // number of scene pairs to average
// int num_avg_pairs = 16; // number of scene pairs to average
int
num_avg_pairs
=
clt_parameters
.
imp
.
sfm_num_pairs
;
// number of scene pairs to average
int
num_avg_pairs
=
clt_parameters
.
imp
.
sfm_num_pairs
;
// number of scene pairs to average
if
(
num_avg_pairs
>
((
last_index
-
earliest_scene
)/
2
))
{
num_avg_pairs
=
(
last_index
-
earliest_scene
)/
2
;
if
(
debugLevel
>
-
3
)
{
System
.
out
.
println
(
"**** The specified num_avg_pairs="
+
clt_parameters
.
imp
.
sfm_num_pairs
+
" is more than half-range. Reducing to "
+
num_avg_pairs
);
}
}
QuadCLT
[][][]
scenes_seq_pairs
=
new
QuadCLT
[
3
][
num_avg_pairs
][
2
];
QuadCLT
[][][]
scenes_seq_pairs
=
new
QuadCLT
[
3
][
num_avg_pairs
][
2
];
for
(
int
i
=
0
;
i
<
num_avg_pairs
;
i
++)
{
for
(
int
i
=
0
;
i
<
num_avg_pairs
;
i
++)
{
scenes_seq_pairs
[
0
][
i
][
0
]
=
quadCLTs
[
ref_index
+
num_avg_pairs
-
1
-
i
];
scenes_seq_pairs
[
0
][
i
][
0
]
=
quadCLTs
[
ref_index
+
num_avg_pairs
-
1
-
i
];
...
@@ -5151,7 +5158,7 @@ public class OpticalFlow {
...
@@ -5151,7 +5158,7 @@ public class OpticalFlow {
!
batch_mode
,
// boolean test_motion_blur,
!
batch_mode
,
// boolean test_motion_blur,
debugLevel
)
;
// int debugLevel)
debugLevel
)
;
// int debugLevel)
// should update earliest_scene
// should update earliest_scene
if
((
ref
_index
-
earliest_scene
+
1
)
<
min_num_scenes
)
{
if
((
last
_index
-
earliest_scene
+
1
)
<
min_num_scenes
)
{
System
.
out
.
println
(
"After reAdjustPairsLMAInterscene() total number of useful scenes = "
+(
ref_index
-
earliest_scene
+
1
)+
System
.
out
.
println
(
"After reAdjustPairsLMAInterscene() total number of useful scenes = "
+(
ref_index
-
earliest_scene
+
1
)+
" < "
+
min_num_scenes
+
". Scrapping this series."
);
" < "
+
min_num_scenes
+
". Scrapping this series."
);
if
(
start_ref_pointers
!=
null
)
{
if
(
start_ref_pointers
!=
null
)
{
...
...
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