AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2001.05.17 20:14 "", by Siddarth S Kalasapur
2001.05.18 00:00 "Re: Removing dark areas", by
2001.05.22 23:23 "Re: Removing dark areas", by Siddarth S Kalasapur
2001.05.23 12:53 "RE: Removing dark areas", by Chris Losinger
2001.05.29 21:33 "RE: Removing dark areas", by Siddarth S Kalasapur

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..

-c