| 284 | |
| 285 | template <typename pixel_type> |
| 286 | long num_columns(const numpy_image<pixel_type>& img) |
| 287 | { |
| 288 | if (img.size()==0) |
| 289 | return 0; |
| 290 | |
| 291 | assert_correct_num_channels_in_image<pixel_type>(img); |
| 292 | return img.shape(1); |
| 293 | } |
| 294 | |
| 295 | template <typename pixel_type> |
| 296 | void set_image_size(numpy_image<pixel_type>& img, size_t rows, size_t cols) |
no test coverage detected