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  |  36.4 KB  |  400x510  |  4-bit (12 colors)
   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(1,3) - the error distribution function with I rows and. 3 coluns 1. Set Ep(m,n) = Eg(m,n) =. 0 for. R roNs 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 i J Ep (m,n) - = Z Z CIjEg ((m-t+1). (n"j*1)) J=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 step ...