Title:
Method of effacing zipper image
Kind Code:
A1


Abstract:
A method of effacing zipper image, applicable to scan a document by a scanner with a stagger charge-coupled device. The nth (n is a positive integer) pixel obtained by scan on a scan line at which the zipper image is produced is subtracted by the (n+1)th pixel obtained by scan on the scan line. The absolute value of the result is then compared to a critical value. If the result is smaller than the critical value, the nth pixel is the nth pixel modified as the nth pixel after process.



Inventors:
Shih, Chen-hsiang (Chang-Hua Hsien, TW)
Application Number:
11/513730
Publication Date:
03/22/2007
Filing Date:
08/30/2006
Primary Class:
Other Classes:
358/474
International Classes:
H04N1/409; H04N1/191; H04N1/193
View Patent Images:



Primary Examiner:
ZHU, RICHARD Z
Attorney, Agent or Firm:
Schwabe, Williamson & Wyatt/SFC (Portland, OR, US)
Claims:
1. 1-6. (canceled)

7. An apparatus comprising: a scanner having a charge-coupled device capable of generating a scan line of pixel values; and a processing module capable of: determining an absolute value of a difference between an nth pixel value from said scanner in said scan line and an (n+1)th pixel value from said scanner in said scan line; and modifying said nth pixel value in response to said absolute value not exceeding a critical value.

8. The apparatus of claim 7, wherein a value of the modified nth pixel substantially equals one half or nearly one half of a sum of the nth pixel value and the (n+1)th pixel value.

9. The apparatus of claim 7, wherein the value of the modified nth pixel substantially equals one half or nearly one half of the nth pixel value plus one half of the (n+1)th pixel value.

10. The apparatus of claim 7, wherein the processing module is capable of determining whether the absolute value is larger than the critical value.

11. The apparatus of claim 10, wherein the processing module is capable of inhibiting modification of said nth pixel value in response to the nth pixel exceeding a critical value.

12. The apparatus of claim 7, wherein the critical value comprises a predetermined value.

13. The apparatus of claim 7, wherein the processing module is adapted to adjust the critical value according to a modulation transfer function.

14. An apparatus comprising: means for scanning an image; means for processing the image to obtain pixel values of a scan line; means for determining an absolute value of a difference between an nth pixel value in said scan line and an (n+1)th pixel value in said scan line; and means for modifying said nth pixel value in response to said absolute value not exceeding a critical value.

15. The apparatus of claim 14, wherein the modified nth pixel value substantially equals one half or nearly one half of a sum of the nth pixel value and the (n+1)th pixel value.

16. The apparatus of claim 14, wherein the modified nth pixel value substantially equals one half or nearly one half of the nth pixel value added to one half of the (n+1)th pixel value.

17. The apparatus of claim 14, and further comprising means for determining whether the absolute value exceeds the critical value.

18. The apparatus of claim 17, and further comprising means for inhibiting modification of the nth pixel in response to the nth pixel value exceeding the critical value.

19. The apparatus of claim 14, wherein the critical value comprises a predetermined value.

20. The apparatus of claim 14, and further comprising means for adjusting the critical value according to a modulation transfer function.

Description:

BACKGROUND OF THE INVENTION

1. Field of the Invention

The invention relates in general to a method of effacing zipper image, and more particularly, to a method of effacing zipper image by approximating the gray scales of two neighboring pixels.

2. Description of the Related Art

FIG. 1 shows a block diagram of a scanner having a stagger charge-coupled device. In FIG. 1, the scanner 100 is coupled to a computer 150. The scanner comprises a stagger charge-coupled device 110 with a primary line and a secondary line, an application specific integrated circuit (ASIC) 120, an image compensation buffer 130 and an I/O interface 140.

When the scanner having the stagger charge-coupled device is scanning a document, the pitch between the primary line and the secondary line is small. The primary line is thus affected by the light reflected from the secondary line. Similarly, the secondary line is also affected by the light reflected from the primary line. A zipper image (as shown in FIG. 3) in addition to a real image (as shown in FIG. 2) is thus produced by using the scanner with the stagger charge-coupled device to scan the document. When a document has a black-and-white boundary, the zipper image is more obvious, causing error in the actual image. Currently, a method to compensate the zipper image has not been found in the prior art.

SUMMARY OF THE INTENTION

The invention provides a method of effacing a zipper image by approximating the gray scales of two neighboring pixels.

The method of effacing the zipper image provided by the invention is applicable to scan a document using a scanner with a stagger charge-coupled device. The nth pixel obtained by scan on a scan line at which the zipper image is produced is subtracted by the (n+1)th pixel obtained by scan on the scan line. The absolute value of the subtraction result is compared to a critical value. When the result is smaller than the critical value, the nth pixel is modified as the nth pixel after process. If the result is larger than the critical value, no process is performed.

The processed nth pixel is one half of the sum of the nth pixel obtained by scan and the (n+1)th pixel obtained by scan.

In one embodiment of the present invention, the nth pixel after being processed is the sum of one half of the nth pixel obtained by scan and one half of the (n+1)th pixel obtained by scan.

In one embodiment of the present invention, the critical value is a predetermined value or produced by a logic circuit. The critical value can be adjusted according to the modulation transfer function of the scanner with the stagger charge-coupled device.

Both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a block diagram of a scanner with a stagger charge-coupled device;

FIG. 2 shows a real image of a document;

FIG. 3 shows a zipper image produced by scanning the document using a scanner with a stagger charge-coupled device; and

FIG. 4 shows a flow chart for a method of effacing a zipper image.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

Referring to FIG. 1, a compensation operation is performed on a document before the document is scanned by a scanner 100 with a stagger charge-coupled device 110. Thereby, an image compensation parameter is obtained and stored in a computer 150. When the stagger charge-coupled device 110 performs the scan on any part of the document, an image compensation parameter corresponding to the scanned part is retrieved from the computer 150 and transmitted to the image compensation buffer 130 via the I/O interface 140. The staggered scanned image obtained from the stagger scan by the stagger charge-coupled device 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 computer 150 via the I/O interface 140 for storage.

However, as the distance between the primary line and the secondary line is very short, the primary line is affected by the light reflected from the secondary line. Similarly, the secondary line is also affected by the light reflected from the primary line. A zipper image is thus produced to cause an error between the scanned image and the real image.

FIG. 4 shows a flow chart of effacing a zipper image according to the invention. In the following embodiment, a critical value used in the effacing process of the zipper image can be a predetermined value or a value generated by a logic circuit. In FIG. 4, assume that the nth (n is a positive integer) pixel obtained by scan on the scan line at which the zipper is produced is Pn, and the (n+1)th pixel obtained by scan on the scanning line is Pn+1. The nth pixel being processed is referred as Pn′, and the critical value is denoted as T. In this embodiment, whether Pn subtracted by Pn+1 is smaller than T is determined in step s400. When the absolute value of |Pn−Pn+1| is smaller than T, Pn is modified as Pn′. The value of Pn′ can be expressed as (Pn+Pn+1)/2 or (1/2)Pn+(1/2)Pn+1, as shown in step s410. The nth pixel after being processed as Pn′ approximates the gray values of the nth and (n+1)th pixel Pn and Pn+1 obtained by scan, so that the zipper image can be effaced. When |Pn−Pn+1| is larger than T, the effacing process is not performed.

The above embodiment compares two neighboring pixels at a scan line at which the zipper image is produced with a critical value as a reference for effacing process. If the effacing process is required, the gray values of these two neighboring pixels are approximated to each other to reduce the zipper image. However, the modulation transfer function of the scanner with the stagger charge-coupled device is slightly reduced.

According to the above, the invention has the following advantages:

1. Only a critical value is required to determine whether an effacing process is performed, thereby, two gray scales of two neighboring pixels are approximated to each other, and the zipper image is effaced.

2. The fabrication cost is not increased.

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.