1. Field of the Invention
The invention relates in general to a method of compensating a zipper image, and more particularly, to a method of compensating a zipper image by using K-value and a method to calculate the K-value.
2. Description of the Related Art
When the staggered CCD 110 scans any part of a document, an image compensation parameter related to this part is retrieved from the host computer 150, and transmitted to the image compensation buffer 130 via the I/O interface 140. The intermittently scanned image scanned by the staggered CCD 110 is then corrected by the ASIC 120 according to the image compensation parameter transmitted from the image compensation buffer 130. The corrected image is then transmitted to the host computer for storage via the I/O interface 140.
When the staggered CCD scans an image, if the line distance between the primary line and the secondary line is short, the primary line is inevitably affected by the light reflected from the secondary line. Similarly, the light reflected from the primary line vice versa also affects the secondary line. The fidelity of the document (as shown in
The present invention provides a method for compensating a zipper image using a K-value and a method to calculate the K-value. The K-value is mutually affected by the primary line (such as the odd pixel) and the secondary line (such as the even pixel) of the staggered CCD calculated according to a leading edge reference (LER) so that an appropriate K-value can be obtained.
The method of compensating a zipper image by the K-value is applicable to a scanner with a staggered CCD, of which each color has a primary line and a secondary line for scanning documents. First, determine whether the nth (n is a positive integer) pixel of the mth line (m is a positive integer) is scanned by the primary line. If the nth primitive pixel of the mth line is scanned by the primary line, the nth primitive pixel of the mth line is compensated as the nth compensated pixel of the mth line. The nth compensated pixel is obtained by the nth primitive pixel of the mth line subtracting a multiplication of the K-value and a sum of the (n−1)th pixel of the (m−k)th line and the (n+1)th pixel of the (m−k)th line. If the nth primitive pixel of the mth line is obtained from a secondary line, the nth pixel of the mth line is compensated as the nth compensated pixel of the mth line, which is equal to the nth primitive pixel of the mth minus a sum of the (n−1)th primitive pixel of the (m+k)th line and the (n+1)th primitive pixel of the (m+k)th line times the K-value.
In one preferred embodiment of the present invention, the K-value is a ratio constant for the mutual influence between the primary line and the secondary line. In addition, the K-value is calculated according to the leading edge reference.
The present invention further provides a method of using the leading edge reference to calculate the K-value, which is applicable to a scanner with a staggered CCD that has a primary line and a secondary line for each color for scanning a document. If the leading edge reference is the mth line, and the nth primitive pixel of the mth line is scanned by the primary line, the nth primitive pixel of the mth line minus the (n+1)th pixel of the mth line, and then divided by a sum of the (n−1)th pixel of the (m−k)th line and the (n+1)th pixel of the (m−k)th line to obtain the K.sub.n-value (the nth K-value). If the leading edge reference is the mth line, and the nth primitive pixel thereof is scanned by the secondary line, the nth primitive pixel of the mth line minus the (n+1) primitive pixel of the mth line, and then divided by a sum of the (n−1)th and the (n+1)th primitive pixels of the (m+k) line to obtain the K.sub.n-value (the nth K-value). The above steps are then repeated until the whole document is scanned. A sum of the resultant K.sub.1-value (the first K-value), the K.sub.3-value (the third K-value), and the K.sub.5-value (the fifth K-value), . . . , and the K.sub.n-value is divided by X to obtain the K-value, where X is larger than 0 and equal to (n+1)/2. The K-value is then used to compensate the zipper image.
According to the above, the present invention appropriately compensate the zipper image by properly calculating the K-value. Therefore, when a scanner with a staggered CCD scans a document, the scanner used in the present invention obtains a scanned image almost identical to the real image.
Both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
When the pitch between the primary line and the secondary line scanned by a staggered CCD is very short, the primary line is affected by the light reflected from the secondary line while the secondary line is affected by the light reflected from the primary line vice versa. Therefore, the constant K-value related to the mutually influence of the primary line and the second line can be calculated while finding the leading edge reference. Since the structure of the primary line is the same as that of the secondary line, only the K-value for affecting the primary line by the secondary line is calculated. The compensation is performed by only determining the primary line or the second line.
To find the leading edge reference while using a scanner with a staggered CCD for scanning a document, a correction pattern containing a black-and-white pattern is required to determine the leading edge reference. In
Referring to
The above K-value is then used to compensate the zipper image.
In this embodiment, whether the nth (n is a positive integer) primitive pixel of the mth line (m is positive integer) is scanned and obtained by the primary line is determined (In s500). If the nth primitive pixel of the mth line is scanned by the primary line, the nth primitive pixel of the mth line (Pn)m is compensated as the nth compensated pixel of the mth line (Pn′)m. The (Pn′)m is obtained by the nth primitive pixel of the mth line (Pn)m minus a multiplication of the K-value and the sum of the (n−1)th and (n+1)th primitive pixels of the (m−2)th line. That is, (Pn′)m=(Pn)m−K(Pn−1+Pn+1)m−2(such as s510). If the nth primitive pixel of the mth line is scanned by the secondary line, the nth primitive pixel of the mth line (Pn)m is compensated as the nth compensated pixel of the mth line (Pn′)m. The (Pn′)m is obtained by the nth primitive pixel of the mth line (Pn)m minus a multiplication of the K-value and a sum of the (n−1)th and (n+1)th primitive pixels of the (m+2)th line. That is, (Pn′)m=(Pn)m−K(Pn−1+Pn−1)m+2 (such as s520). The above steps are repeated until the whole document is scanned so the zipper image can be properly compensated.
According to the above, the present invention has the following advantages.
1. The K-value calculated from the leading edge reference allows the zipper image produced by scanning a document using a scanner with a staggered CCD to be properly compensated.
When the staggered CCD 610 scans any part of a document, an image compensation parameter related to this part is retrieved from the host computer 650, and transmitted to the image compensation buffer 630 via the I/O interface 640. The intermittently scanned image scanned by the staggered CCD 610 is then corrected by the ASIC 620 according to the image compensation parameter transmitted from the image compensation buffer 630. The corrected image is then transmitted to the host computer for storage via the I/O interface 640.
2. The scanned image is almost identical to the real image.
Other embodiments of the invention will appear to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. It is intended that the specification and examples to be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
Number | Name | Date | Kind |
---|---|---|---|
4703363 | Kitamura | Oct 1987 | A |
4774569 | Morton et al. | Sep 1988 | A |
4873570 | Suzuki et al. | Oct 1989 | A |
4953014 | Takaragi | Aug 1990 | A |
4974072 | Hasegawa | Nov 1990 | A |
5055855 | Nishio | Oct 1991 | A |
5070414 | Tsutsumi | Dec 1991 | A |
5355164 | Shimoyama et al. | Oct 1994 | A |
5528274 | Hyodo | Jun 1996 | A |
5528296 | Gove et al. | Jun 1996 | A |
5703845 | Audoin et al. | Dec 1997 | A |
5859712 | Kim | Jan 1999 | A |
5920646 | Kamon | Jul 1999 | A |
5940125 | Suganuma | Aug 1999 | A |
5995675 | Hwang | Nov 1999 | A |
6034724 | Nakamura | Mar 2000 | A |
6034794 | Suganuma | Mar 2000 | A |
6034795 | Smitt | Mar 2000 | A |
6081625 | Sakaue | Jun 2000 | A |
6115147 | Mizumoto et al. | Sep 2000 | A |
6144469 | Suganuma | Nov 2000 | A |
6288797 | Ueno | Sep 2001 | B1 |
6316761 | Yamaguchi | Nov 2001 | B1 |
6330081 | Scholten | Dec 2001 | B1 |
6496286 | Yamazaki | Dec 2002 | B1 |
6507364 | Bishay et al. | Jan 2003 | B1 |
6567192 | Toyomura et al. | May 2003 | B1 |
6606172 | Moro | Aug 2003 | B1 |
6646681 | Macy et al. | Nov 2003 | B1 |
6665454 | Silverbrook et al. | Dec 2003 | B1 |
6674903 | Cliquet | Jan 2004 | B1 |
6678000 | Sakata | Jan 2004 | B1 |
6744916 | Takahashi | Jun 2004 | B1 |
6894812 | Spears | May 2005 | B1 |
6965463 | Moritaku et al. | Nov 2005 | B1 |
20020186422 | Chang et al. | Dec 2002 | A1 |
20030063201 | Hunter et al. | Apr 2003 | A1 |
Number | Date | Country |
---|---|---|
10051603 | Feb 1998 | JP |
2001-201324 | Jul 2001 | JP |
Number | Date | Country | |
---|---|---|---|
20030107778 A1 | Jun 2003 | US |