Available in LEADTOOLS Document and Medical Imaging toolkits.
BinaryFilter example for C++ 4.0 and later
This example does omni-directional erosion of black objects and repaints the image.
m_Lead1.BinaryFilter(BFLT_EROSION_OMNI); m_Lead1.ForceRepaint();