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

Function have_same_dimensions

dlib/image_processing/generic_image.h:499–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497
498 template <typename image_type1, typename image_type2>
499 typename std::enable_if<is_image_type<image_type1>::value&&is_image_type<image_type2>::value, bool>::type
500 have_same_dimensions (
501 const image_type1& img1,
502 const image_type2& img2
503 ) { return num_rows(img1)==num_rows(img2) && num_columns(img1)==num_columns(img2); }
504 /*!
505 ensures
506 - returns true if and only if the two given images have the same dimensions.

Callers 1

letterbox_imageFunction · 0.50

Calls 2

num_rowsFunction · 0.70
num_columnsFunction · 0.70

Tested by

no test coverage detected