| 300 | |
| 301 | template <typename pixel_type> |
| 302 | void* image_data(numpy_image<pixel_type>& img) |
| 303 | { |
| 304 | if (img.size()==0) |
| 305 | return 0; |
| 306 | |
| 307 | assert_is_image<pixel_type>(img); |
| 308 | return img.mutable_data(0); |
| 309 | } |
| 310 | |
| 311 | template <typename pixel_type> |
| 312 | const void* image_data (const numpy_image<pixel_type>& img) |
nothing calls this directly
no test coverage detected