I once dit it, on grescale images, in both Assembler and Windows SDK. Basically, I scanned the image pixel after pixel, row after row... compare any pixel with surrounding (I mean, in terms of light, or RGB values) and set it to black if it is "much different" from the neighbour, or white if not.
HTH
|