Available in LEADTOOLS Document and Medical Imaging toolkits.
MRC Bitmap Functions: Manual Segmentation
L_MrcCreateNewSegment