MCPcopy Create free account
hub / github.com/davisking/dlib / image_data

Function image_data

dlib/python/numpy_image.h:302–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
mutable_dataMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected