VC++ digital image processing, cell edge extraction