| 240 | } |
| 241 | |
| 242 | void SmoothImage(const float* data, |
| 243 | const int rows, |
| 244 | const int cols, |
| 245 | const float sigma_r, |
| 246 | const float sigma_c, |
| 247 | float* smoothed) { |
| 248 | THROW_CHECK_NOTNULL(data); |
| 249 | THROW_CHECK_NOTNULL(smoothed); |
| 250 | THROW_CHECK_GT(rows, 0); |
| 251 | THROW_CHECK_GT(cols, 0); |
| 252 | THROW_CHECK_GT(sigma_r, 0); |
| 253 | THROW_CHECK_GT(sigma_c, 0); |
| 254 | vl_imsmooth_f(smoothed, cols, data, cols, rows, cols, sigma_c, sigma_r); |
| 255 | } |
| 256 | |
| 257 | void DownsampleImage(const float* data, |
| 258 | const int rows, |
no outgoing calls