def image_u8_get_array(img_ptr): return ptr_to_array2d(c_uint8, img_ptr.contents.buf.contents, img_ptr.contents.height, img_ptr.contents.stride)