Talk:Thresholding (image processing)
From Wikipedia, the free encyclopedia
I believe the improved threshold should be: (||G2||*m1+||G1||*m2)/(||G2||+||G1||).
[edit] Weighted average doesn't make sense
I removed the following:
- Another approach is to calculate the new threshold in step four using the weighted average of m1 and m2: T’ = (||G1||*m1 + ||G2||*m2)/(||G1||+||G2||), where ||Gn|| is the number of pixels in Gn. This approach often gives a more accurate result.
because it appears to do nothing more than calculate the mean value of all the pixels, independent of the threshold value. The mean of G1 pixels times the number of G1 pixels is the sum of G1 pixels. Same goes for G2. The union of G1 and G2 is the whole image, so the sum of those products is the sum of all the pixels in the image and ||G1|| + ||G2 is the number of pixels in the image. Ergo, their quotient is the mean of all the pixels in the image.
Bryan Henderson 22:15, 20 May 2007 (UTC)