Does OpenCV have any methods for gently rounding contours in a binary (black and white) image? Often, contour detection results in some rough edges, usually as a result of noise or other anomalies. I'd like to incrementally round out the spikey sections and fill in sharper indentations without too much loss in resolution or accuracy over the rest of the contour. IOW, most of the contour lines already smooth enough.
Dilate-Erode cycles would no doubt affect the accuracy of the entire contour, not just the aberrant areas.
I've heard of CRFs (Conditional Random Fields) used for this in some apps, but haven't found anything directly usable.
(Important to note that I'm not talking about Gaussian smoothing. This is a binary image--no gray scale).