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

Function num_columns

dlib/python/numpy_image.h:286–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284
285 template <typename pixel_type>
286 long num_columns(const numpy_image<pixel_type>& img)
287 {
288 if (img.size()==0)
289 return 0;
290
291 assert_correct_num_channels_in_image<pixel_type>(img);
292 return img.shape(1);
293 }
294
295 template <typename pixel_type>
296 void set_image_size(numpy_image<pixel_type>& img, size_t rows, size_t cols)

Callers 1

convert_to_numpyMethod · 0.70

Calls 2

sizeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected