How to keep original shape size using OpenCvSharp.ApproxPolyDP
Maksym Valuiko
1
Reputation point
I am using OpenCvSharp.ApproxPolyDP to reduce the number of points in a polygon. However, this algorithm changes the original shape of the shape and produces cut corners. Is it possible to optimize the number of points in a polygon and keep the original shape?
Before poly optimization:
After poly optimization:
Expected (red):
The code that I'm using:
OpenCvSharp.Cv2.ApproxPolyDP(polyPoints, tempThreshHold, true)
Sign in to answer