Available in LEADTOOLS Document and Medical Imaging toolkits.
EdgeDetector example for C++ 5.0 and later
m_Lead1.EdgeDetector(60, EDG_SOBEL_ALL);