| 142 | // once per pyramid lev). |
| 143 | |
| 144 | void Hat::Init_( |
| 145 | const Image& img, // in: image scaled to current pyramid level |
| 146 | const int patchwidth) // in: patch will be patchwidth x patchwidth pixels |
| 147 | { |
| 148 | patchwidth_ = patchwidth; |
| 149 | |
| 150 | InitGradMagAndOrientMats(magmat_, orientmat_, img); |
| 151 | |
| 152 | InitIndices(row_indices_, row_fracs_, col_indices_, col_fracs_, pixelweights_, |
| 153 | patchwidth_); |
| 154 | } |
| 155 | |
| 156 | // Calculate the image patch gradient mags and orients. |
| 157 | // Note that the mag for a pixel out of the image boundaries is set |
no test coverage detected