MCPcopy Create free account
hub / github.com/AnetaTexler/FaceBlit / image_data

Function image_data

VS/include/dlib/python/numpy_image.h:301–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299
300 template <typename pixel_type>
301 void* image_data(numpy_image<pixel_type>& img)
302 {
303 if (img.size()==0)
304 return 0;
305
306 assert_is_image<pixel_type>(img);
307 return img.mutable_data(0);
308 }
309
310 template <typename pixel_type>
311 const void* image_data (const numpy_image<pixel_type>& img)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
mutable_dataMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected