Skip to content

Commit

Permalink
警告対策。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Nov 19, 2023
1 parent b4b1221 commit 0506952
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Amatsukaze/LogoScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ void logo::LogoDataParam::CreateLogoMask(float maskratio) {
// 平均値
float avg = std::accumulate(k, k + KLEN, 0.0f) / KLEN;
// 平均値をゼロにする
std::transform(k, k + KLEN,
stdext::checked_array_iterator<float*>(k, KLEN), [=](float p) { return p - avg; });
std::transform(k, k + KLEN, k, [avg](float p) { return p - avg; });
};

// 特徴点の抽出 //
Expand Down

0 comments on commit 0506952

Please sign in to comment.