Skip to content

Commit

Permalink
fix nOctup arithmetic
Browse files Browse the repository at this point in the history
Fix provided by @JN-Jones as described in #67
  • Loading branch information
headupinclouds committed May 17, 2018
1 parent d821ad3 commit fb596d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ endif()
###################

# See https://github.com/hunter-packages/check_ci_tag when changing VERSION
project(acf VERSION 0.1.8)
project(acf VERSION 0.1.9)

set(ACF_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}")

Expand Down
2 changes: 1 addition & 1 deletion src/lib/acf/chnsPyramid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ int Detector::getScales(int nPerOct, int nOctUp, const cv::Size& minDs, int shri

for (int i = 0; i < nScales; i++)
{
double s = std::pow(2.0, -double(i) / double(nPerOct + nOctUp));
double s = std::pow(2.0, -double(i) / double(nPerOct) + double(nOctUp));
double s0 = (util::round(d0 * s / shrink) * shrink - 0.25 * shrink) / d0;
double s1 = (util::round(d0 * s / shrink) * shrink + 0.25 * shrink) / d0;
std::pair<double, double> best(0, std::numeric_limits<double>::max());
Expand Down

0 comments on commit fb596d0

Please sign in to comment.