Color image reading apparatus

Abstract: A color image reading apparatus has a reading unit for color-separating and reading a color image, an operating unit for obtaining an average value of each of a plurality of color-component signals output from the reading unit, and a transforming unit for transforming the plurality of color-component signals from the reading unit into a plurality of color-density signals on the basis of the average values of the plurality of color-component signals obtained by the operating unit.

Description: BACKGROUND OF THE INVENTION: Field of the Invention The present invention relates to a color image reading apparatus for reading a color image recorded on, e.g., a color negative film. Related Art The present inventor has proposed an apparatus for photoelectrically reading a color image by using a CCD image sensor for use in a color copying machine, a color facsimile apparatus, or the like in each of the US-A-4 679 073 and US-A-4 734 762. The present inventor has also proposed an apparatus for reading a color image recorded in a color film in the US-A-4 933 983. In such a color image reading apparatus, unlike in a conventional monochromatic image reading apparatus, an image must be read with not only a high light intensity but also a good color balance. For this purpose, various image processing operations must be performed. In particular, reading of a color image recorded in a color negative film has the following problems. That is, a color negative film is generally subjected to processing called an orange mask, i.e., a negative image is recorded on an orange-colored base film. Therefore, it is impossible to visually discriminate disturbance in a color balance of a negative film caused by light source conditions and the like upon photography. A color negative film reading apparatus, i.e., a color photograph printing apparatus is conventionally known as an apparatus for correcting a color unbalance to obtain a positive print having a proper color balance. This color photograph printing apparatus measures an average transmission density of a film for each of R, G, and B by utilizing an Evans' theorem, i.e., an empirical principle (US-A-2,571,697) in which an achromatic color is obtained by averaging colors of a camera subject in an entire frame, compares the measurement value with an average transmission density of a standard negative film, i.e., a negative film photographed outdoors in a fine day with a proper exposure value, and adjusts an exposure time t i upon printing in accordance with equation (1), thereby obtaining a positive film having a proper color balance (JP-A-6046693 and JP-A-6110817). logt i = α i D i + β i where t i : an exposure time (i = R, G, and B) for each of R, G, and B D i : an average transmission density of a negative film to be printed α i , β i = constants determined by an average density of a standard negative film, the type of a film, properties of printing paper, and the like A color negative film, however, differs in an orange base density, color development characteristics of a dye, the sensitivity of a dye layer of each of R, G, and B, and the like in accordance with a film manufacturer or the type of a film, i.e., values of the constants α i and β i differ between films. Therefore, the values of the constants α i and β i must be determined for each negative film and the predetermined constants must be stored. In addition, even if a photograph which does not satisfy the Evans' theorem, e.g., a photograph of an evening glow or a photograph in which a color balance is intentionally disturbed by using a color filter or the like is printed within an exposure time satisfying equation (1), a desired color is not reproduced in an obtained print. Document GB-A-1 016 561 discloses a color image reading apparatus according to the preamble of claim 1. Furthermore, document US-A-3 582 325 relates to a color image reading apparatus in which optimum exposure values for color printing are determined on the basis of the average transparency in three basic color components and the extend of deviation of most frequently occurring identical transparency values. Also in these apparatuses the constants used to determine the exposure values have to be adapted to the type of film or other reasons which might disturb the color balance in order to reproduce the desired color. It is therefore an object of the present invention to provide an improved color image reading apparatus capable of automatically reproducing a color image with a proper color balance. This object is achieved by an image forming apparatus according to claim 1. Accordingly, by precalculating, for every value of a color component signal, parameters according to which the transformation is effected such that the average values of each of the color components of the second set of color components are equivalent to an achromatic color, a proper color balance can be achieved regardless of the type of film used. BRIEF DESCRIPTION OF THE DRAWINGS : Fig. 1 is a block diagram showing a color negative film reading apparatus according to the first embodiment of the present invention; Fig. 2 is a graph showing a relationship between a logarithm of an exposure amount and a film transmission density; Fig. 3 is a graph showing a relationship between a density d of a camera subject and a density of reproduction d'; Fig. 4 is a block diagram showing a color negative film reading apparatus according to the second embodiment of the present invention; Fig. 5 is a block diagram showing a color negative film reading apparatus according to the fourth embodiment of the present invention; Fig. 6 is a block diagram showing a color negative film reading apparatus according to the fifth embodiment of the present invention; Fig. 7 is a schematic view showing a color negative film; Fig. 8A is a graph showing characteristics of the average transmission density as a function of exposure amounts of two types of films; Fig. 8B is a graph showing characteristics of an average transmission density as a function of an exposure amount obtained when an orange mask density is subtracted from each of R, G, and B; and Fig. 9 is a graph showing a relationship between a difference between an average transmission density and an orange mask density of a standard negative film and an exposure amount. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS: Fig. 1 shows the first embodiment of a color image reading apparatus according to the present invention. Referring to Fig. 1, a halogen lamp 101 transmission-illuminates a film 104, and a condensor lens 102 converts light from the light source into collimated light. A heat-absorbing filter 103 is arranged between the condensor lens 102 and the film 104. A focusing lens 105 focuses a film image, and a CCD line sensor 106 having three lines on which filters of three colors R, G, and B are coated converts the focused film image into an electrical signal. An amplifier 107 amplifies analog line sensor outputs of R, G, and B, a sample-hold circuit 108 sample-holds output signals from the amplifier 107, and an A/D converter 109 A/D-converts the sample-held signals. A shading correction circuit 110 corrects a sensitivity variation of the CCD line sensor 106 or an illumination variation of the illumination light, and a shading RAM 111 stores one line of correction data for shading correction for each of R, G, and B. The shading RAM 111 is also used as a temporary memory for storing a read signal. A logarithmic transformation circuit 112 is a density transforming means, constituted by a RAM, for transforming R, G, and B signals into density signals (C, M, and Y). A transformation table formed on the basis of an Evans' theorem (to be described later) is written in the logarithmic transformation circuit 112. A variable power source 113 supplies power to the light source 101. A central processing unit (CPU) 116 controls the logarithmic transformation circuit 112 and the RAM 111, controls a gain of the amplifier 107 via a D/A converter 115, and controls a voltage of the CVR 113 via a D/A converter 114. A UCR circuit 117 performs known UCR and black extraction for the logarithmically transformed density signal. A masking circuit 118 performs masking on the basis of the signal from the UCR circuit 117. A color LBP 119 of four colors outputs an image on the basis of the masked signal. The entire image on the color film 104 is scanned and read by a scanning mechanism (not shown) in a direction indicated by an arrow shown in Fig. 1. Gradation recording characteristics of the color negative film 104 are as shown in Fig. 2 in which the abscissa represents a logarithm of an exposure amount E and the ordinate represents a film transmission density (= -logT, T : film transmittivity). The R, G, and B dye layers are in a substantially proportional relationship in a normal exposure range. Assuming that inclinations (γ values) of linear portions shown in Fig. 2 are γ R , γ G , and γ B , the film transmission density D i (i = R, G, and B) at the linear portion can be represented by the following equation (2): D i = D 0i + γ i log(E/E 0 ) where E 0 and D 0i are constants. Although correlation between the linear portions varies in accordance with the type of a film, the inclination γ i is substantially the same regardless of the type of a film. Measurement of an average transmission density D i of a film to be read is performed by prescanning a plurality of lines of a predetermined region of the film 104 in units of lines, fetching image data for each line in the shading RAM 111, and adding the image data by the CPU 116. All of the average transmission densities D i in units of colors are assumed to be empirically equivalent to a transmission density of a film photographing an achromatic color having a uniform reflectivity r H (normally 18% to 30%) of a camera subject under the same photographing conditions as in the above film. Therefore, equation (2) can be represented as equation (3) by using a certain exposure coefficient k: D i = D 0i + γ i log(k r H/E 0 ) A relationship between an image recorded on the film at the transmission density D i and the corresponding reflectivity r of a camera subject is represented by equation (4) by using k as in equation (3): D i = D 0i + γ i log(k r /E 0 ) From equations (3) and (4), a relationship between the film transmission density D and the reflectivity r of a camera subject can be represented as an equation (5): D i = D i - γ i log(r H /r) Therefore, an equation for transforming the transmission density D i of an image on a film into a reflection density d (= -logr) of a camera subject is represented by the following equation (6) obtained by transforming equation (5): d = -logr = 1 γ i ( D i - D i ) - logr H By representing the film transmission density D i by the film transmittivity T i and deforming equation (6), the reflection density d of a camera subject can be represented by equation (7) in accordance with the relation D i = -logT i : d = 1 γ i log( 10 D i r H γ i ·T i ) Since the film transmittivity T i corresponds to an output from the CCD 106, the film transmittivity T i can be transformed into the reflection density d of a camera subject. By performing this transformation for each of R, G, and B, a density signal averagely equivalent to an achromatic color can be obtained, thereby realizing the Evans' theorem. In the circuit configuration shown in Fig. 1, therefore, data obtained by reading several lines of an image of a negative film is averaged by the shading RAM 111 and the CPU 116 to obtain the average transmission density D i . On the basis of the constant γ i corresponding to the negative film and the predetermined reflectivity r H of a camera subject, the CPU 116 calculates d with respect to T i by using equation (7) and writes the result as a transformation table in the logarithmic transformation circuit 112. The logarithmic transformation circuit 112 transforms the R, G, and B signals obtained by reading the negative film into C, M, and Y signals having a proper color balance by using the above Evans' theorem. (2nd Embodiment) Fig. 4 shows the second embodiment obtained by slightly modifying the arrangement shown in Fig. 1. A difference from the first embodiment is that, in the second embodiment, an output from a CCD 106 is amplified by n i times by an amplifier 307 and A/D-converted by an A/D converter 109, and a logarithmic transformation circuit 312 calculates equation (11). Since the output from the CCD 106, i.e., a film transmittivity T i is amplified by n i times by the amplifier 307, equation (7) can be represented as equation (8): d = 1 γ i log( 10 D i r H γ i ·n i T i ') for T i ' = T i n i . Assuming that T i ' = 1 (in this case, a maximum value of a quantization level is represented as 1. Actually, however, each term of equation (8) must be expressed as a digital amount) is obtained when d = d max (d max is a maximum value of a density of a camera subject to be read), the following equation is obtained from equation (8): d max = 1 γ i log( 10 D i r H γ i ·n i ) By solving equation (9): n i = 10 ( D i - γ i dmax) /r H γ i By substituting equation (10) into equation (8) to obtain equation (11): d = d max + 1 γ i log T i ' With the above arrangement, a quantization error can be effectively reduced. (3rd Embodiment) In this embodiment, a relationship between a density of a camera subject and an output image density differs from that in the first embodiment. That is, the first embodiment uses a curve 302 representing a substantially proportional relationship between the density of a camera subject and the output image density shown in Fig. 3. In the third embodiment, however, a curve 301 obtained in consideration of human visual characteristics shown in Fig. 3 is used. When the curve 301 is represented by d' = f(d), equation (7) can be represented as equation (12): d' = f(d) = f[ 1 γ i log( 10 D i r H γ i ·T i ) ] Conditions for minimizing a quantization error are assumed as the same as equation (10). Therefore, assuming that T i ' = n i T i , the logarithm transformation equation can be similarly represented as equation (13): d' = f[d max + 1 γ i logT i '] With the above arrangement, the output image density with respect to the density of a camera subject can be effectively improved in terms of a human visual sense. (4th Embodiment) Fig. 5 shows the fourth embodiment of the present invention. In Fig. 5, the same reference numerals as in Fig. 1 denote the same parts. Referring to Fig. 5, a mosaic filter type CCD area sensor 406 separates one frame of a film into colors of R, G, and B. An exponential transformation circuit 412 exponentially transforms an output from a shading correction circuit 110. A look-up table for transformation can be written in the exponential transformation circuit by a CPU 116. A matrix transformation circuit 417 matrix-transforms an output from the exponential transformation circuit 412 to perform color correction. A γ-correction circuit 418 performs γ-correction for an output from the matrix transformation circuit 417, thereby correcting a phosphor emission characteristics of a television. (A γ value of a television monitor is normally 2.2, and the γ-correction circuit 418 corrects this value.) A frame memory 419 stores one frame of R, G, and B signals obtained as described above and generates a television scan signal. In order to obtain a television signal, the R, G, and B signals from the exponential transformation circuit 412 must be proportional to a reflectivity of a camera subject. The reflectivity r of a camera subject and the density d of a camera subject satisfy a relation d = -logr. In addition, assuming that a reflectivity of the darkest portion to be reproduced is r min , d max = -logr min . Therefore, by substituting these equations into equation (11), the following equation (14) is obtained: - 1 γ i r = rmin(Ti') By writing a look-up table for realizing equation (14) in the exponential transformation circuit 412, luminance information of a camera subjet is effectively reproduced on a television monitor. Instead of changing a gain of an amplifier 107, a light amount of a light source 101 may be changed, or an ND filter or Y, M, and C filters normally used in a photograph printer may be used. Alternatively, a storage time of the CCD may be changed for each of R, G, and B, or a reference voltage of A/D conversion may be changed. With the arrangement described above, a positive print having a good color balance can be effectively obtained regardless of the type of a film. (5th Embodiment) Fig. 6 shows the fifth embodiment of the present invention. Referring to Fig. 5, a halogen lamp 501 transmission-illuminates a color negative film 505, a condensor lens 502 converts light from a light source into collimated light. A capstan roller 503 moves a film in a direction perpendicular to an optical axis, i.e., in a direction indicated by an arrow in Fig. 6. A film guiding capstan roller 504 guides a color negative film original 505 to be read. A focusing lens 506 focuses a film image. A CCD sensor 507 has three lines on which filters of three colors R, G, and B are coated and converts the focused image into color-separated electrical signals of three colors. A sample-hold circuit 508 sample-holds an output from the CCD sensor 507 to obtain an RGB time-serial signal. An operational amplifier 509 amplifies R, G, and B outputs from the sample-hold circuit 508. An A/D converter 510 A/D-converts outputs from the operational amplifier 509. A shading correction circuit 511 corrects a sensitivity variation of the CCD sensor 507 and an illumination variation in illumination light and outputs 8-bit digital R, G, and B signals. A shading RAM 512 stores one line of correction data for shading correction for each of R, G, and B. A logarithmic transformation circuit as density transforming means has a RAM for storing a look-up table and transforms the R, G, and B signals into 8-bit digital density signals C (cyan), M (magenta), and Y (yellow). The look-up table of the logarithmic transformation circuit 513 stores C, M, and Y of the following equation (15): where K R , K G , and K B are predetermined constants. A stepping motor 514 drives the capstan roller 503. A CPU 515 performs a write operation for the RAM 512 and the RAM of the logarithmic transformation circuit 513 and controls the stepping motor 514. Fig. 7 shows a color negative film. Referring to Fig. 7, a photographed frame 601 has a scan region 602 to be scanned for average transmission density detection. Non-exposed portions 603 and 604 are formed between frames. The non-exposed portion is normally an orange mask itself. Fig. 8A shows gradation recording characteristics of a color negative film. The gradation recording characteristics are represented by solid lines 701, 702, and 703 for a certain film, while they are represented by dotted lines 704, 705, and 706 for another. These characteristics do not coincide with each other if types of films are different. Fig. 8B shows a relationship between a transmission density obtained by subtracting an orange mask density from each of R, G, and B and an exposure amount. As is apparent from Fig. 8B, characteristics of two types of films represented by solid and broken lines substantially coincide with each other after the orange mask density is subtracted. Color negative film reading procedures will be described below. (1) For a color negative film having a good color balance A relation C = M = Y must be satisfied on the basis of the Evans' theorem between average values C , M , and Y of C, M, and Y in the scan region. That is, equation (15) is rewritten into equation (16) by using average transmission densities D R , D G , and D B of R, G, and B detected by scanning the scan region 602 of the color negative film 505 by the CCD sensor 507. The transformation table in the logarithmic transformation circuit 513 is rewritten in accordance with a relationship between R, G, and B and Y, M, and C obtained from equation (16). R, G, and B are transformed in accordance with this table and output from the logarithmic transformation circuit 513. where a is a constant determined in accordance with the form of a processing system. In this manner, the Evans' theorem is satisfied, and processing is performed such that an average color in the frame becomes an achromatic color. (2) For a color negative film having a disturbed color balance Fig. 9 shows a relationship between a difference between a transmission density of a standard negative film (obtained by photographing a standard camera subject outdoors in a fine day) and an orange mask density. Differences D R - O R , D G - O G , and D B - O B between average transmission densities D R , D G , and D B and orange mask densities O R , O G , and O B , however, correspond to the difference exposure amounts on the characteristic curves shown in Fig. 9. In this case, densities on a straight line 804 correspond to differences D R ' - O R , D G ' - O G , and D B ' - O B between the average densities and the orange mask densities. Assuming that film densities with respect to a certain exposure amount logE 0 are N R , N G , and N B and inclinations of linear portions of curves 401, 402, and 403, are γ R , γ G , and γ B , the average transmission densities D R , D G , and D B are obtained as follows: D R ' = N R + (γ R /γ G ) ( D G - O G - N G ) + O R D G ' = D G D B ' = N B + (γ B /γ G ) ( D G - O G - N G ) + O B By replacing D R , D G , and D B in equations (16) with D R ', D G ', and D B ', respectively, and substituting D R ', D G '. and D B ' in equations (17) into equations (16), a relationship between R, G, and B and Y, M, and C is obtained and used as a transformation table of the logarithmic transformation circuit 513. As a result, C, M, and Y which maintain a color balance upon photography are output from the logarithmic transformation circuit 113. Actually, γ R , γ G , γ B , N R , N G , and N B are stored as common values to any film, and the orange mask 603 or 604 of the film shown in Fig. 7 is read by the CCD sensor 507 to measure the orange mask densities O R , O G , and O B . In addition, several lines are read in the region 202 by the CCD sensor 507 to measure the average transmission density D G , and equation (17) is applied. In this embodiment, a portion between image frames is focused on the CCD sensor 507 to read a density of a film non-exposed portion. The same film, however, as a film to be used may be developed without exposure and set at a read position shown in Fig. 6 prior to image reading, thereby reading the orange mask densities O R , O G , and O B , and then an image film may be set at the read position to read the average transmission densities D R , D G , and D B . In addition, a plurality of non-exposed and developed films may be set at the read position to measure and store the orange mask densities O R , O G , and O B in a memory so that an operator can select the memory contents in accordance with each film to be used. As described above, according to the fifth embodiment having the above arrangement, desired colors can be reproduced from a color negative film not satisfying the Evans' theorem. The preferred embodiments of the present invention have been described above. The present invention, however, is not limited to these embodiments. For example, the present invention can be applied to reading of a color image other than a color negative film. In addition, logarithmic transformation can be executed not by a table look-up scheme but by an operation using a microcomputer. That is, the present invention can be variously modified and changed within the scope of the appended claims.

Claims: A color image reading apparatus comprising: a) reading means (105, 106; 406; 506, 507) for color-separating and outputting a first set of color component signals (R, G, B) representing color transmittivity of a color image (104) of a camera subject; b) transforming means (107, 112; 307, 312; 412) for transforming said first set of color component signals (R, G, B) into a second set of color component signals (C, M, Y), said transforming means including at least one of logarithmic transformation means (112; 312) for performing logarithmic transformation on said first set of color component signals (R, G, B) and amplifier means (107; 307) for amplifying said first set of color component signals (R, G, B) ; c) operating means (110, 111, 116; 511, 512, 515) for obtaining an average value D i for each of said first set of color component signals (R, G, B) by prescanning a plurality of lines of a predetermined region of said color image (104) , characterized in that d) said operating means pre-calculates a plurality of parameters used for controlling at least one of said logarithmic transformation means and said amplifying means, said plurality of parameters include a first parameter which is formulated by D i, r H and γ i and a second parameter which is formulated by D i, γ t , d maX and r H , wherein D i denotes said average value, r H denotes a reflectivity of an achromatic camera subject, γ i denotes an inclination of a transmission characteristic of a medium (505) on which said color image (104) is recorded, and d max denotes a maximum value of a logarithmic reflectivity of said camera subject of said color image, each of said parameters corresponding to one of said first set of color component signals, said parameters being determined by using said average value D i of each of said first set of color component signals (R, G, B) such that the average values of each of the color components of said second set of color component signals (C, M, Y) which correspond to said color image and which represent logarithmic color reflectivity of said camera subject are equivalent to an achromatic color. An apparatus according to claim 1, characterized in that said reading means (105, 106; 406; 506, 507) reads a color image recorded on a color negative film (505) . An apparatus according to claim 1, characterized in that detecting means (507) are provided for detecting a non-image portion transmittivity of said plurality of color-component signals (R, G, B) outputted when a non-image portion is read by said reading means (506, 507) , and that said operating means (513) corrects said average value D i of each of said first set of color component signals (R, G, B) obtained by prescanning said predetermined region on the basis of said non-image portion transmittivity detected by said detecting means (507) .

Inventors: OUTA KEN-ICHI, OUTA, KEN-ICHI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1989
Main classification: H04N1
IPC codes: H04N9, H04N1, H04N5, G03B27