Skip to content

Commit

Permalink
Merge pull request #964 from AndreasLMeg/keogram_expand
Browse files Browse the repository at this point in the history
enhancement:  min. limit for keogram expand
  • Loading branch information
linuxkidd authored Jan 22, 2022
2 parents 96a06b4 + a5b5296 commit d6aa488
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ capture_RPiHQ
keogram
startrails
sunwait

# misc
.vscode/configurationCache.log
.vscode/targets.log
.vscode/dryrun.log
2 changes: 2 additions & 0 deletions src/keogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ void keogram_worker(int thread_num,
// expand ?
if (cf->img_expand) {
cf->num_img_expand = std::max(1, (int) (imagesrc.cols / (float) nfiles));
if (((float)(cf->num_img_expand * nfiles) / imagesrc.cols) < 0.8) // minimal size 0.8 * imagesrc.cols
cf->num_img_expand++;
}
// channel_info ?
if (cf->channel_info) {
Expand Down

0 comments on commit d6aa488

Please sign in to comment.