MCPcopy Create free account
hub / github.com/MasteringOpenCV/code / scaleRect

Function scaleRect

Chapter8_FaceRecognition/ImageUtils_0.7.cpp:1349–1365  ·  view source on GitHub ↗

Enlarge or shrink the rectangle size & center by a given scale. If w & h are given, will make sure the rectangle stays within the bounds if it is enlarged too much. Note that for images, w should be (width-1) and h should be (height-1).

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

cvRoundFunction · 0.85

Tested by

no test coverage detected