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

Function scaleRectInPlace

Chapter8_FaceRecognition/ImageUtils_0.7.cpp:1370–1394  ·  view source on GitHub ↗

Enlarge or shrink the rectangle region by a given scale without moving its center, and possibly add a border around it. 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