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

Function all_images_same_size

dlib/image_processing/scan_image.h:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 typename image_array_type
50 >
51 bool all_images_same_size (
52 const image_array_type& images
53 )
54 {
55 if (images.size() == 0)
56 return true;
57
58 for (unsigned long i = 0; i < images.size(); ++i)
59 {
60 if (num_rows(images[0]) != num_rows(images[i]) ||
61 num_columns(images[0]) != num_columns(images[i]))
62 return false;
63 }
64
65 return true;
66 }
67
68// ----------------------------------------------------------------------------------------
69

Callers 4

sum_of_rects_in_imagesFunction · 0.85
scan_imageFunction · 0.85
scan_image_movable_partsFunction · 0.85

Calls 3

num_rowsFunction · 0.70
num_columnsFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected