2001.05.23 12:53 "RE: Removing dark areas", by Chris Losinger
1. pick a threshold value (0..255)
2. run along each edge of the image
2a. if you find a line that has all pixels below the threshold, that line is considered part of the "border"
2b. as soon as you find a line that has pixels above the threshold, you consider that line to be part of the image.
3. crop the border parts
you can test for indiviual pixels, groups of pixels, etc..
you could despeckle the image first, to get rid of dust, etc..