Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks for your reply and the link, Sturkmen. I probably over-explained that. I'm looking for something that would work roughly similar to dilate-then-erode: Simply straighten out jagged edges of a binary outline. But dilate-erode has side-effects that I'd like to avoid. The solution at your link appears to be on the right track but it looks like it blurs edges. I'm dealing with binary mask-like images. Perhaps it would be possible to convert to gray-scale, do Gaussian blur, then threshold to get back to the binary format. I'm not clear on whether that would work. I've heard of CRF-based functions that do this, but it looks like those are not yet incorporated into OpenCV.

Thanks for your reply and the link, Sturkmen. I probably over-explained that. I'm looking for something that would work roughly similar to kind of like dilate-then-erode: Simply straighten out jagged edges of a binary outline. But dilate-erode has side-effects that I'd like to avoid. The solution at your link appears to be on the right track but it looks like it blurs edges. I'm dealing with binary mask-like images. Perhaps it would be possible to convert to gray-scale, do Gaussian blur, then threshold to get back to the binary format. I'm not clear on whether that would work. I've heard of CRF-based functions that do this, but it looks like those are not yet incorporated into OpenCV.