Information
-
Patent Application
-
20030219170
-
Publication Number
20030219170
-
Date Filed
May 20, 200321 years ago
-
Date Published
November 27, 200321 years ago
-
CPC
-
US Classifications
-
International Classifications
- G06T005/00
- H04N001/04
- H04N001/401
- H04N001/409
Abstract
An image processing apparatus for processing image data, obtained from an image sensing unit in which plural sensor chips each having plural pixels are arrayed with an interval of a multiple of a pixel width therebetween, and interpolating image data for the interval. If an abnormal pixel exists, image data of the abnormal pixel is replaced with data in accordance with image data of a pixel adjacent to the abnormal pixel, and thereafter, interpolation is performed for the interval by using image data from a sensor chip adjacent to said interval.
Description
FIELD OF THE INVENTION
[0001] The present invention relates to image processing method and apparatus, and more particularly, to image processing method and apparatus for processing on image data obtained from an image sensing unit constituted with arrayed plural sensor chips.
BACKGROUND OF THE INVENTION
[0002] Conventionally, in a digital copying machine or the like, an original is read by using a contact image sensor (CIS) having a serially-connected plural sensor chips which read an image for 1 line. The CIS is formed by arraying and connecting the plural sensor chips on a circuit board. However, in a current chip-mounting technology, a pixel pitch in a seam portion between sensor chips is wider than a pixel pitch within each sensor chip. Accordingly, an image sampling period changes in the seam portions, and a stripe appears in an image especially when an original having a periodic pattern, such as a dot pattern, is read.
[0003] The problem of stripe always occurs unless the chip-mounting technology is advanced, since the pixel pitch of a sensor chip becomes smaller in accordance with improvement of resolution.
[0004] A known method to solve the problem is physically separating the sensor chips for the predetermined number of pixel/pixels upon connection of sensor chips, thereby giving some allowance upon mounting the chips, and interpolating data corresponding to the predetermined number of pixel/pixels with data generated by multiplying outputs from a last pixel of a sensor chip and a head pixel of an adjacent sensor chip by predetermined weighting coefficients.
[0005] However, in the above-described interpolation, if any of outputs from pixels near the sensor chip seam portion is abnormal, the interpolation is performed using the abnormal data. As a result, appropriate interpolation cannot be performed and the abnormal data portion is widened.
SUMMARY OF THE INVENTION
[0006] The present invention has been made in consideration of the above situation, and has its object to, even if there is abnormal data in image data obtained from an image sensing unit in which plural sensor chips are arrayed with a predetermined interval therebetween, interpolate a seam portion more naturally.
[0007] According to the present invention, the foregoing object is attained by providing an image processing method for processing image data, obtained from an image sensing unit in which plural sensor chips each having plural pixels are arrayed with an interval of a multiple of a pixel width therebetween, the method comprising: replacing image data of an abnormal pixel with data in accordance with image data of a pixel adjacent to the abnormal pixel; and interpolating image data for the interval by using image data from a sensor chip adjacent to the interval, wherein if an abnormal pixel exists, image data obtained as a result of replacing the image data of the abnormal pixel is used upon interpolating for the interval.
[0008] According to the present invention, the foregoing object is attained by providing an image processing apparatus for processing image data, obtained from an image sensing unit in which plural sensor chips each having plural pixels are arrayed with an interval of a multiple of a pixel width therebetween, the apparatus comprising: a first interpolation unit adapted to replace image data of an abnormal pixel with data in accordance with image data of a pixel adjacent to the abnormal pixel; and a second interpolation unit adapted to interpolate image data for the interval by using image data from a sensor chip adjacent to the interval the gap, wherein if an abnormal pixel exists, the second interpolation unit uses image data obtained as a result of the replacement by the first interpolation unit.
[0009] Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same name or similar parts throughout the figures thereof.
BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0011]
FIG. 1 is a schematic cross-sectional view of a digital scanner according to a first embodiment of the present invention;
[0012]
FIG. 2 is a schematic view of a contact image sensor according to the first embodiment;
[0013]
FIG. 3 is an enlarged view of a seam portion between CCDs in FIG. 2;
[0014]
FIGS. 4A and 4B are explanatory views showing a problem in the case of image reading by the contact image sensor in FIG. 2;
[0015]
FIG. 5 is a block diagram showing a control construction of the digital scanner according to the first embodiment;
[0016]
FIG. 6A is a schematic view showing the arrangement of the contact image sensor according to the first embodiment;
[0017]
FIG. 6B is an explanatory view showing the relation between a signal value obtained from the contact image sensor and a position in the main scanning direction according to the first embodiment;
[0018]
FIGS. 7A and 7B are explanatory views showing the conception of interpolation processing according to the first embodiment;
[0019]
FIGS. 8A and 8B are explanatory views showing the conception of the interpolation processing according to the first embodiment;
[0020]
FIGS. 9A and 9B are explanatory views showing the conception of the interpolation processing according to the first embodiment;
[0021]
FIG. 10 is an explanatory view showing detection of abnormal pixel position according to the first embodiment;
[0022]
FIGS. 11A and 11B are explanatory views showing the conception of the interpolation processing according to the first embodiment;
[0023]
FIGS. 12A and 12B are explanatory views showing the conception of the interpolation processing according to the first embodiment;
[0024]
FIGS. 13A and 13B are explanatory views showing the conception of the interpolation processing according to the first embodiment;
[0025]
FIGS. 14A and 14B are explanatory views showing the conception of the interpolation processing according to the first embodiment;
[0026]
FIG. 15 is a flowchart showing a procedure of the image reading and the interpolation processing on pixel data according to the first embodiment;
[0027]
FIG. 16 is a flowchart showing a procedure of abnormal pixel correction processing according to the first embodiment; and
[0028]
FIG. 17 is an explanatory view showing shading correction according to a second embodiment of the present invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] Preferred embodiments of the present invention will now be described in detail in accordance with the accompanying drawings.
[0030] <First Embodiment>
[0031]
FIG. 1 shows the construction of a general digital scanner which reads an original by using a contact image sensor according to a first embodiment of the present invention. A contact image sensor (CIS) unit 102 is provided with a contact image sensor (CIS) 101 and a lamp 106. The CIS unit 102 is connected with a motor 104 by a wire 108. A position sensor 107 indicates a home position of the CIS unit 102. The motor 104 is forward/reverse-rotated based on the home position, thereby the CIS unit 102 can scan the entire reading range of a glass plate 103.
[0032] When an original 100 placed on the glass plate 103 is read, the original 100 is read by the CIS 101 while the original 100 is irradiated by the lamp 106 and the CIS unit 102 is moved within the reading range. This reading operation is performed in a plate reading mode.
[0033] Further, the digital scanner of the present embodiment is provided with an automatic document feeder (ADF) 109. The CIS unit 102 is moved by the motor 104 and stopped in a position immediately below a platen roller 113, and the original 110, conveyed by a conveyance roller 112, is irradiated by the lamp 106 and read by the CIS unit 102 in the stopped status. This reading operation is performed in an ADF reading mode.
[0034] One of the reading modes is selected by an user's instruction.
[0035]
FIG. 2 is a schematic view of the CIS 101.
[0036] The CIS 101, constituted by, e.g., arraying 5 CCDs 201 each having 1500 pixels, reads an A4-sized original in 600 dpi resolution. An image is formed by combining outputs from these 5 CCDs 201 by an image processor to be described later. Note that the number of pixels and the resolution mentioned here are given as an example, and the present invention is not limited to these values.
[0037]
FIG. 3 is an enlarged view of a seam portion between the CCDS 201 in the CIS 101 in FIG. 2. Numeral 202 denotes a pixel. In the first embodiment, the CCDs are connected such that the interval between a rightmost pixel 202R of one CCD 201 and a leftmost pixel 202L of an adjacent CCD 201 is the width of 1 pixel (about 0.0423 mm). In a case where the CIS 101 having the above arrangement reads an image as shown in FIG. 4A (in a size readable by adjacent 2 CCDs 201) and an image is represented based on a signal obtained by the reading, obtained is an unnatural image in which 1 pixel corresponding to the seam portion is lost as shown in FIG. 4B. The unnaturalness can be lessened by interpolating data for the missing pixel by the image processor to be described later.
[0038]
FIG. 5 is a block diagram showing a control construction of the digital scanner according to the first embodiment. Note that elements corresponding to those in FIG. 1 have the same reference numerals and explanations of the elements will be omitted.
[0039] In FIG. 5, numeral 501 denotes an A/D converter which A/D converts an output signal from the CIS 101; 502, an image processor which receives an output from the A/D converter 501 and performs image processing such as shading correction, image processing on a seam portion and the like; 503, an abnormal pixel detector which detects an abnormal pixel in the CIS 101; and 504, an abnormal pixel corrector which corrects data from the abnormal pixel, if detected, by data of normal pixels around the abnormal pixel. The detection by the abnormal pixel detector 503 and the correction by the abnormal pixel corrector 504 are performed prior to the processing by the image processor 502. Further, numeral 506 denotes an operation unit which receives an instruction of mode setting to select the ADF reading mode or the plate reading mode, and an instruction of start of original reading from the user. Numeral 507 denotes a scanner controller which controls the respective constituent elements in the digital scanner. For example, the scanner controller 507 grasps the position of the CIS unit 102 from an output from an encoder 505 provided in the motor 104 and an output signal from the position sensor 107. Further, the scanner controller 507 receives an output signal value from the CIS 101 processed by the image processor 502 and transfers the output signal to an external apparatus (not shown) such as a PC or a printer.
[0040] Next, the operation of the digital scanner having the above construction including the image processing on a seam portion in the CIS 101 will be described with reference to the flowcharts of FIGS. 15 and 16.
[0041] First, at step S1501, the reading mode designated from the operation unit 506 is determined. At steps S1502 and S1503, the original 100 is read in the respective designated reading mode, and the process proceeds to step S1504.
[0042] At step S1504, abnormal pixel detection is performed by the abnormal pixel detector 503, and at step S1505, correction of pixel value of the abnormal pixel is performed by the abnormal pixel corrector 504. These processings will be described in detail later, and here the interpolation processing on a seam portion of image data read at steps S1506 and S1507 will be described.
[0043] As described with reference to FIG. 2, in the present embodiment, as it is known that 5 chips of CCDs 201 each having 1500 pixels are used in the CIS 101, a seam portion 601 of the CCDs 201 exists in 4 positions, i.e., as shown in FIG. 6A, every 1500 pixels, for 1 pixel, in the CIS 101. FIG. 6B shows output data corresponding to the positions of the CIS 101 in FIG. 6A in the main scanning direction when an uniform color (e.g., white) original is read by 1 line by the CIS 101. In FIG. 6B, a position surrounded with a circle indicates data corresponding to the seam portion 601.
[0044] In this manner, as the adjacent 2 CCDs 201 are arrayed with an interval of 1 pixel, in a case where an image as shown in FIG. 4A is read and a signal based on outputs from the respective pixels of the CCDs 201 is outputted by a PC or printer, the outputted image looks unnatural as shown in FIG. 4B.
[0045] In the present embodiment, to make this unnatural image more natural, the image processor 502 first inserts dummy data D (seam portion data) having an arbitrary value into the seam portion (step S1506). FIG. 7A shows an image where the dummy data D is inserted in the image in FIG. 4B. FIG. 7B shows output data of a portion 701 in FIG. 7A surrounded by a bold frame. After the insertion of the dummy data D, the image processor 502 performs weighting calculation as shown in the following equation (1) by using peripheral pixels of the seam portion, X−2, X−1, X+1 and X+2, and replaces the dummy data D with the result of calculation (step S1507). FIGS. 8A and 8B show an example after the dummy data D is replaced. Note that in the equation (1), (X−2), (X−1), (X+1) and (X+2) indicate values of corresponding pixels.
X=a
(X−2)+b(X−1)+c(X+1)+d(X+2) (1)
[0046] where
a+b+c+d=
1
[0047] In this manner, the seam portion data is replaced with the result of weighting of data of peripheral pixels, thereby a more natural image can be generated.
[0048] Note that in the present embodiment, the weighted result of 2 pixel data in each of the two directions is used as replacement data, however, a similar advantage can be expected in the case of replacement with a simple average value of pixels X−1 and X+1 or in the case of weighting by using pixel values of 3 or more pixels in the respective directions.
[0049] Next, the operation of the abnormal pixel detector 503 at step S1504 and the operation (referred to as “abnormal pixel correction”) of the abnormal pixel corrector 504 at steps S1504 and S1505, respectively, will be described.
[0050] In the ADF reading mode, an image is read by conveying the original 110 in a state where the CIS 101 is stopped. If a foreign material, dust, blot or the like are attached to a reading position on the glass plate 103, the CIS 101 reads it, and a stripe appears in a read image. FIG. 9A shows an example of image obtained by reading the image shown in FIG. 4A when a foreign material or the like is present on the glass plate 103. FIG. 9B shows output data of an image part 901 surrounded by a bold frame.
[0051] As shown in FIG. 10, the position of foreign material or the like can be detected by performing image reading by the CIS 101 with the platen roller 113 colored white and binarizing the read data with a predetermined threshold value. In this manner, at step S1504, the abnormal pixel detector 503 detects the position of abnormal pixel/pixels influenced by the foreign material or the like.
[0052] At step S1505, to correct data of the abnormal pixel/pixels, the abnormal pixel corrector 504 receives foreign-material position information based on the result of binarization by the abnormal pixel detector 503. If 4 continuous pixels correspond to the foreign material or the like, data of the 4 pixels are replaced with data using pixels on the both sides of the 4 pixels such that data of left 2 pixels are replaced with data using the left side pixels, and data of right 2 pixels, with data using the right side pixels of the 4 pixels. FIGS. 11A and 11B show the result of replacement.
[0053] In this manner, the data of pixels detected as abnormal pixels corresponding to the foreign material portion is replaced by using data of pixels on both sides of the abnormal pixels, thereby a more natural image can be generated.
[0054] Note that if the abnormal pixel detector 503 detects 10 or more continuous abnormal pixels corresponding to a foreign material or the like (YES at step S1601), in image formation of fine characters or lines, unnaturalness may remain even through the correction processing. In such case, the correction processing is not performed (step S1603) and the data is outputted to the PC or the like to notify the user of the occurrence of abnormality.
[0055] Considering that replacement of the seam portion data is performed prior to the abnormal pixel correction, in a case where a foreign material as shown in FIG. 12B exists in a position as shown in FIG. 12A, data to be interpolated at the seam portion X=75 holds assuming that weighting parameters A=B=C=D=0.25 holds, a maximum reading value is 100, the threshold value for abnormal pixel detection is 50, and (X−3)=0, (X−2)=0, (X−1)=100, (X+1)=0 and (X+2)=100 hold. In this case, the influence of the foreign material appears in the data X to be interpolated at the seam portion, however, as the threshold value in the abnormal pixel detector is 50, the foreign material cannot be detected and a stripe appears in an output image. FIG. 13A shows an image obtained by reading and outputting the image in FIG. 4A, and FIG. 13B shows data of a portion 1201 surrounded by a bold frame in FIG. 13A corresponding to the position in the main scanning direction.
[0056] For this reason, the abnormal pixel correction (step S1505) must be performed prior to the replacement of the seam portion data (step S1506 and S1507). FIGS. 14A and 14B show the result of processing in this order.
[0057] In this manner, in the digital scanner according to the first embodiment, as the abnormal pixel correction is performed prior to the replacement of the seam portion data, even if abnormal pixels influenced by a foreign material or the like exist, the seam portion can be interpolated such that a more natural image can be generated.
[0058] <Second Embodiment>
[0059] Next, a second embodiment of the present invention will be described. As the construction of the digital scanner of the second embodiment is the same as that of the first embodiment, explanation thereof will be omitted. In the second embodiment, the operation of the digital scanner will be described about a case where the replacement of seam portion data and abnormal pixel correction are performed on shading-corrected data.
[0060]
FIG. 17 shows data output obtained from the CIS 101 by reading a uniform white original irradiated by the lamp 106, which is a reference output in respective positions in the main scanning direction. Generally, values are nonuniform by pixel due to variation of lamp itself, variation of sensitivity of pixels in the CCD 201 or the like.
[0061] Accordingly, shading correction represented by the following equations (2) is applied to respective pixels, thereby outputs are uniformly corrected.
D
out=T/Dinw×Din (2)
[0062] where T=target value upon reading of uniform white reference original
[0063] Dinw=pixel output upon reading of uniform white reference original
[0064] Din=read data
[0065] Dout=pixel data after shading correction
[0066] As described above, prior to reading an original, a uniform white reference original is read then a pixel output is stored, and the above-described correction processing is performed, thereby outputs are uniformly corrected.
[0067] Interpolation data for seam portion generated in the process of replacing seam portion data is, e.g., pseudo data obtained by weighting data of peripheral pixels by the above-described equation (1). To perform accurate shading correction, the weighting of data of the peripheral pixels must be applied to the values obtained by reading the uniform white reference original. However, in this case, the image processing construction becomes complicated. Therefore, the shading correction must be performed prior to the replacement of seam portion data and abnormal pixel correction.
[0068] In the above-described first and second embodiments, in the CIS, an abnormal pixel position is detected and abnormal pixel correction is performed, then the replacement of seam portion data is performed. It goes without saying that a similar advantage can be obtained in a case where plural area sensors are serially connected.
[0069] The present invention can be applied to a system constituted by a plurality of devices (e.g., a host computer, an interface, a reader and a printer) or to an apparatus comprising a single device (e.g., a copy machine or a facsimile apparatus).
[0070] Further, the object of the present invention can also be achieved by providing a storage medium storing program codes for performing the aforesaid processes to a computer system or apparatus (e.g., a personal computer), reading the program codes, by a CPU or MPU of the computer system or apparatus, from the storage medium, then executing the program.
[0071] In this case, the program code read from the storage medium realizes the functions according to the embodiments, and the storage medium holding the program code constitutes the invention.
[0072] Further, the storage medium, such as a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a DVD, a magnetic tape, a non-volatile type memory card, a ROM, and a computer network such as a LAN (local area network) and a WAN (wide area network), can be used for providing the program code.
[0073] Furthermore, besides aforesaid functions according to the above embodiments are realized by executing the program code which is read by a computer, the present invention includes a case where an OS (operating system) or the like working on the computer performs a part or entire processes in accordance with designations of the program code and realizes functions according to the above embodiments.
[0074] Furthermore, the present invention also includes a case where, after the program code read form the storage medium is written in a function expansion card which is inserted into the computer or in a memory provided in a function expansion unit which is connected to the computer, a CPU or the like contained in the function expansion card or unit performs a part or entire processes in accordance with designations of the program code and realizes the functions of the above embodiments.
[0075] In a case where the present invention is applied to the aforesaid storage medium, the storage medium stores program codes corresponding to the flowcharts shown in FIGS. 15 and 16 described in the embodiments.
[0076] The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, to appraise the public of the scope of the present invention, the following claims are made.
Claims
- 1. An image processing method for processing image data, obtained from an image sensing unit in which plural sensor chips each having plural pixels are arrayed with an interval of a multiple of a pixel width therebetween, said method comprising:
replacing image data of an abnormal pixel with data in accordance with image data of a pixel adjacent to the abnormal pixel; and interpolating image data for said interval by using image data from a sensor chip adjacent to said interval, wherein if an abnormal pixel exists, image data obtained as a result of replacing the image data of said abnormal pixel is used upon interpolating for said interval.
- 2. The image processing method according to claim 1, further comprising:
detecting an abnormal pixel based on image data; and prior to said detection, performing shading correction processing on the image data obtained from said plural sensor chips.
- 3. The image processing method according to claim 2, wherein, if a predetermined number or more of continuous abnormal pixels are detected, said replacement of image data of an abnormal pixel is skipped.
- 4. The image processing method according to claim 1, wherein image data of a predetermined number of pixel or pixels is used upon interpolating for said interval.
- 5. The image processing method according to claim 1, wherein an average value of said image data is used upon interpolating for said interval.
- 6. The image processing method according to claim 1, wherein a weighted average value of said image data is used upon interpolating for said interval.
- 7. An image processing apparatus for processing image data, obtained from an image sensing unit in which plural sensor chips each having plural pixels are arrayed with an interval of a multiple of a pixel width therebetween, said apparatus comprising:
a first interpolation unit adapted to replace image data of an abnormal pixel with data in accordance with image data of a pixel adjacent to the abnormal pixel; and a second interpolation unit adapted to interpolate image data for said interval by using image data from a sensor chip adjacent to said interval said gap, wherein if an abnormal pixel exists, said second interpolation unit uses image data obtained as a result of the replacement by said first interpolation unit.
- 8. The image processing apparatus according to claim 7, further comprising:
a detection unit adapted to detect an abnormal pixel based on image data; and a shading correction unit adapted to, prior to said detection by said detection unit, perform shading correction processing on the image data obtained from said plural sensor chips.
- 9. The image processing apparatus according to claim 8, wherein, if said detection unit detects a predetermined number or more of continuous abnormal pixels, said first interpolation unit is inactivated.
- 10. The image processing apparatus according to claim 7, wherein said second interpolation unit uses image data of a predetermined number of pixel or pixels.
- 11. The image processing apparatus according to claim 7, wherein said second interpolation unit uses an average value of said image data.
- 12. The image processing apparatus according to claim 7, wherein said second interpolation unit uses a weighted average value of said image data.
- 13. An image reading apparatus including the image processing apparatus according to claim 7, a glass plate on which an original is placed, and a lamp which irradiates said original.
- 14. An image reading apparatus including the image processing apparatus according to claim 7, conveyance rollers which convey an original, and a lamp which irradiates said original.
- 15. A storage medium holding a program executable by an information processing apparatus, having program code to realize the image processing method according to claim 1.
- 16. A storage medium holding a program executable by an information processing apparatus, for causing the information processing apparatus which executes said program to function as the image processing apparatus according to claim 7.
Priority Claims (1)
Number |
Date |
Country |
Kind |
2002-150496 |
May 2002 |
JP |
|