# Geometric Library to transform OpenCV contours and polygons

Do you guys use geometric libraries with OpenCV? And if so, what ones do you use? I need to use such a library to alter contours I have found through image processing. For example, parallel contours and scale polygons.

So I am looking for a c++ library that can perform geometric operations on polylines (that contain curves) and polygons. These geometric operations are mainly translate and scale.

Are you aware of any such libraries? I'm hoping the library can abstract away the mathematics as much as possible because I lack the math ability to do this myself - for eg do matrix and affine transformations.

If you need something that can handle complex polygons, see polygon offsetting.