Background of the Invention
1. Field of the Invention
This invention relates to a color image input apparatus or scanner which is used in a color copying machine and the like. The invention particularly relates to a color image input apparatus which inputs a color image by plural CCDs which are installed in parallel.
2. Discussion of the Background
Conventionally, there is an apparatus which is shown in FIG. 5 as a color image input apparatus. That is, three CCDs 501R, 501G, 501B which corresponded to R, G, B respectively are installed in some interval (8 lines in FIG. 5) in the sub-scanning direction in parallel. The three line CCDs 501 resolve a color image into image pixel data of R, G, B which corresponded to the CCDs, 501R, 501G, 501B. In this apparatus, the three line CCDs 501 move in a sub-scanning direction, relative to a document being scanned, in the order of B, G, R and are installed at 8 line intervals respectively. Therefore, the CCD 501B reads at a given position of a document image, the CCD 501R reads at position which is delayed 8 lines and the CCD 501R reads the position at a delay of 16 lines. B pixel data which is read by the CCD 501B is output at a delay of 16 lines, G pixel data which is read by the CCD 501G is outputted at a delay of 8 lines, and R pixel data which is read by the CCD 501R is output at real time. As a result, the document image in the position can be obtained as R, G, B pixel data.
According to the above technique, the time difference of line unit in the sub-direction is corrected by a delay process and therefore the R, G, B pixel data of the same line of the document image can be obtained. However, it is assumed that the three CCDs read the image of the same position in the main scanning direction, and the different of the reading position in the main direction is not considered. Therefore, a problem of a color difference by the difference of the reading position in the main direction occurs. Specifically, as shown in FIG. 6, the difference of the reading position in the main direction by the twist of the three line CCDs and the distortion when they are installed (.DELTA.x in FIG. 6) and the like may occur. As a result, the problem of a color difference occurs and a clear image cannot be obtained.
Summary of the Invention
Accordingly, one object of this invention is to provide a color image input apparatus which corrects the color difference in the main scanning direction which occurs due to a twist or misalignment of the three line CCDs. The invention also corrects the distortion which occurs when the three line CCDs are installed and the like, and obtains a clear image.
These and other objects and advantages are achieved by the present invention which provides for a digital electronic camera apparatus having three color input devices which input three color images and then convert color image optical signals to analog electric signals. Three analog/digital convertors convert the analog signals to digital signals and three shading correction devices execute shading correction for the signals. Line correction devices execute line delays for the signals and then correct color difference of the three colors in the sub-scanning direction. There are three color dot or pixel correction devices which shift the position of each dot of each color within .+-.1 dot in the main scanning direction; that is each position of re-sampling or correction in the main scanning direction determines data values or correction information from correction coefficients of each position of the re-sampling. Three color output devices which output three color images. The color image apparatus can correct the color image difference in the main scanning direction.
Brief Description of the Drawings
In describing preferred embodiment of the present invention illustrated in the drawings, specified terminology is employed for the sake of clarity. However, the invention is not intended to be limited to the specific terminology so selected, and it is to be understood that each specific element includes all technical equivalents which operate in a similar purpose.
A more complete appreciation of the present invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description, particularly when considered in connection with the accompanying drawings, wherein:
FIG. 1 is a block diagram of an apparatus of the present invention;
FIG. 2 shows a re-sampling method (cubical function convolution method) of the present invention;
FIG. 3 shows the relation between the amount of the difference and the correction coefficients of the present invention;
FIG. 4 shows an example of a part where the amount of the difference is corrected of the present invention;
FIG. 5 shows the structure of the three line CCDs; and
FIG. 6 shows the difference of the reading position in the main scanning direction.
Description of the Preferred Embodiment
Referring now to the drawings, wherein like reference numerals designate identical or corresponding parts throughout the several views, and more particularly to FIG. 1 thereof, there is illustrated a block diagram of an apparatus of the present invention. As shown in FIG. 1, 101 indicates three line CCDs which are installed in parallel at 8 line intervals. The three line CCDs 101 are composed of an R CCD 102 which converts a red light signal from a document to an analog electric signal, a G CCD 103 which converts a green light to an analog electric signal, and a B CCD 104 which converts a blue light signal to an analog electric signal.
Numbers 105-107 indicate A/D converters which convert the analog signals to digital signals, numbers 108-110 indicate shading correction circuits, numbers 111-113 indicate line interval correction circuits in which 8 lines of image data are delayed and a difference of reading position in the sub-scanning direction is corrected.
Number 114 indicates an R dot correction block in which the image data from the CCD 102 is shifted within the range of .+-.1 dot (pixel) in the main scanning direction that is re-sampling. Number 115 indicates a G dot correction block in which the image data from the CCD 103 is shifted within the range of .+-.1 dot (pixel) in the main scanning direction that is re-sampling. Number 116 indicates a B dot correction block in which the image data from the CCD 104 is shifted within the range of .+-.1 dot (pixel) in the main scanning direction that is re-sampling.
The operation of the present invention will now be described. Light from a light source is reflected on a color document and the reflected light is inputted to the three line CCDs 101. The light is converted to image data in the form of R, G and B analog electric signals by the R CCD 102, the G CCD 103 and the B CCD 104, respectively.
The image data is converted to digital signals in the A/D converters 105-107 and then shading correction is executed on the digital signals in the shading correction circuits 108-110. The image data from G CCD 103 is delayed 8 lines in the line interval correction circuit 111 and then is inputted to the G dot correction bock 115. The image data from B CCD 104 is delayed 16 lines in the line interval correction circuits 112 and 13 and then is inputted to the B dot correction block 116. On the other hand, the image data from the R CCD 102 is inputted to the R dot correction block 114 without delay; that is in real time.
The difference of the reading positions among R CCD 102, G CCD 103 and B CCD 104 in the sub-direction, the difference of 8 line intervals, is corrected by the above line interval correction (delay process). Therefore the same line is inputted to the R dot correction block 114, the G dot correction block 115 and the B dot line correction block, respectively.
In the R dot correction block 114, the G dot correction block 115 and the B dot line correction block, each image data is shifted within .+-.1 dot (pixel) in the main scanning direction. As a result, the difference of the reading positions caused by the twist of the three line CCD, the distortion due to the installation and the like is corrected and the corrected image data is outputted.
The detailed operation of the dot correction in the R dot correction block 114, the G dot correction block 115 and the B dot line correction block will now be described. The dot correction blocks 114-116 correct the difference of the reading position within .+-.1 dot (pixel) in the main scanning direction by the re-sampling. The method of re-sampling is, for example, the cubical function convolution method or the sinc function method, etc.
The cubical function convolution method is as follows. The point n1 which is to be shifted or corrected, the second or next point n2, the third point n3 and previous point n0 are used and the corrected point n'1 (re-sampling point) between n1 and n2 is calculated using the following equation:
where k0, k1, k2 and k3 are correction coefficients. When the position precision is 1/8 dot, the relation between the amount of the lag and the correction coefficients is set in the table of FIG. 3. Therefore, if the position of re-sampling, that is the amount of the difference from the point in question such as n1 is found, the correction coefficients are decided according to FIG. 3 and the data n'1 of the re-sampling is obtained by (1).
As described above, the R dot correction block 114, the G dot correction block 115 and the B dot correction block 116 seek the correction coefficients using the correction coefficient which is stored in accordance with the address in the main direction and then determine the data or point n'1 of the sampling point n1 using the cubical function convolution method. As a result, the difference of the reading position in the main scanning direction, which is caused by the twist or the distortion of the installation, etc., is corrected and the corrected image data is outputted as output R, output G and output B. Therefore a clear image without color difference can be obtained.
The amount of the difference from the point which is to be shifted or corrected can be obtained as follows. The amount of the lag caused by the twist of the three line CCD 101, the distortion of their installation and the like in the left and the right parts of the R CCD 102 and the B CCD 104 can be larger than that in the middle part of the R CCD 102 and the B CCD 104, considering the G CCD a reference position. The amount of the lag in the middle part of the R CCD 102 and the B CCD 104 is almost none. Moreover, if the amount of the lag is treated as 1/8 of a pixel, the difference in the main direction can be corrected.
Therefore, as shown in FIG. 4, the R CCD 102 and the B CCD 104 are divided into three parts which are the left part 1600 dots, the middle part 1600 dots and the right part 1600 dots, respectively. The left and the right parts are corrected by 1/8 dot accuracy in the main scanning direction. When the amount of the difference is adjusted on shipping of the apparatus, the amount of the difference of the left and the right parts of the R CCD 102 and the B CCD 14 is measured and the correction coefficients are determined and stored in accordance with an address in the main direction. At this time, as the correction coefficients are determined using the measured amount of the difference, the correction coefficient of the R CCD 102 may be different from that of the B CCD 104. One way in which the invention can be calibrated or set up to determine how much shift is necessary is to scan a predetermined test pattern to determine how much correction is needed.
The described embodiment indicates that when the difference is adjusted on shipping the apparatus, the amount of the difference is measured and the correction coefficient is stored in accordance with the address. However, for example, some types of typical difference patterns can be installed and a serviceman can select a pattern and adjust it.
Moreover, a calculator for calculating the amount of the difference can be installed within the apparatus. At that time, four dots which have the highest difference, which are the lead dot (the left edge dot) and the end dot (the right edge) of R CCD 102, the lead dot (the left edge dot) and the end dot (the right edge) of B CCD 104, are inputted as parameters and then the correction coefficient of each dot are calculated automatically in accordance with the address in the main direction.
Furthermore, in the described embodiment, the amount of the difference is determined to a precision of 1/8 of a pixel. However, for example, when a correction is determined more precisely, for example by 1/16 or 1/30 pixel or less, the amount of the difference can be corrected more accurately and a higher image quality can be obtained.
Moreover, in the described embodiment, the CCDs are arranged in the order of R, G, B in the sub-scanning direction. However, other arrangements are possible, for example, the arrangement of the order of B, G, R in the sub-direction. Further, the invention can be performed using software, hardware, or combination thereof.
Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that, within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein.