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

Function num_rows

dlib/python/numpy_image.h:276–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

convert_to_numpyMethod · 0.70

Calls 2

sizeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected