home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Journal 1990 - 1995 / CUJ.iso / image91 / 9106f4f1.pcx (.png) < prev    next >
PC Paintbrush Image  |  1996-01-31  |  37KB  |  400x510  |  4-bit (12 colors)
Labels: text | screenshot | font | black and white | number | document
OCR: Define: I (R,C) - input. image with R rows and C columns Ep(m, n) .- sum of the errors propogated to position (m,n) due to prior assignments Eg(m, n) - the total error generated at position (m,n). C(i, 3) - the error distribution function with I rows and J columns 1. Set Ep(m, n) = Eg(m, n) = 0 for R rows and C columns 2. loop m=1,R 3. loop n=1,C 4. Calculate the total propogated error at (m,n) due to prior assignments Ep (m,n) = > J E CijEg ((m-(+1). (n-/+1)) Equation 2 5.Sum the current pixel value and the total propogated error: T = I(m,n) + Ep(m,n) 6. IF T threshold THEN do steps 7. and 8. ELSE. do steps 9. and 10. 7. Set pixel (m,n). on B. Calculate error generated at current location Eg(m,n) = T - 2*threshold 9. Set pixel (m,n) off 10. Calculate error generated at current location Eg(m, n) = threshold