| 274 | |
| 275 | template <typename pixel_type> |
| 276 | long num_rows(const numpy_image<pixel_type>& img) |
| 277 | { |
| 278 | if (img.size()==0) |
| 279 | return 0; |
| 280 | |
| 281 | assert_correct_num_channels_in_image<pixel_type>(img); |
| 282 | return img.shape(0); |
| 283 | } |
| 284 | |
| 285 | template <typename pixel_type> |
| 286 | long num_columns(const numpy_image<pixel_type>& img) |
no test coverage detected