| 347 | } |
| 348 | |
| 349 | static void WrapHistograms( |
| 350 | vec_double& histbins) |
| 351 | { |
| 352 | for (int row = 0; row < GRIDHEIGHT; row++) |
| 353 | for (int col = 0; col < GRIDWIDTH; col++) |
| 354 | { |
| 355 | const int ibin = HistIndex(row, col, 0); |
| 356 | histbins[ibin] += histbins[ibin + BINS_PER_HIST]; // 360 wraps to 0 |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | static void CopyHistsToDesc( // copy histograms to descriptor, skipping pad bins |
| 361 | VEC& desc, // out |