Method of determining exposure

Abstract: An exposure determination method for determining exposure by extracting feature image data including person's face data. A color original image is divided into many picture elements, each picture element is resolved into three colors of red, green, and blue to photometrically measure them, a histogram of hue values is obtained in accordance with the data obtained through photometry, and the obtained histogram is divided into mountains. Picture elements are classified into groups corresponding to the divided mountains by judging which divided mountain each picture element of the color original image belongs to, the color original image is divided for each group, and at least one of the divided regions is selected to extract the data for the selected region as feature image data. Then, exposure for a copying material is determined in accordance with the extracted feature image data.

Description: The present invention relates to a method of determining feature image data relating to a person's face according to claim 1, and, more particularly to a method for extracting feature image data such as data for density of person's face, which is used to copy a color original image to a color or black-and-white copying material and the exposure determination method for determining an exposure by using the extracted data. Description of the related art: A portion most remarked for appreciation of a portrait is the face of the person. To finish a high-quality photo, it is necessary to print the person's face with a proper color. Conventionally, the face region in the original image of a color film is specified by a light pen to extract the data for the density of a person's face and an exposure is determined so that the face color is properly printed according to the extracted density data. This type of art is disclosed in the official gazettes of Japanese Patent Application Laid-Open Nos. 62-115430, 62-115431, 62-115432, 62-189456, 62-189457, 63-138340, and 63-178222. However, the above related art has a problem that printing requires a lot of time because the operator has to specify the face region for each image by a light pen. Moreover, it is difficult to realize automation because the operator has to visually specify the face region. Official gazettes of Japanese Patent Application Laid-Open Nos. 52-156624, 52-156625 corresponding to US-4,120,581, 53-12330, 53-145620, 53-145621, and 53-145622 disclose the following method for extracting the data for person's face by extracting flesh-color data. A color original image is divided into many photometric points, each photometric point is resolved into three colors of R (red), G (green), and B (blue) and photometrically measured, and it is judged if the color of each photometric point calculated from photometric data is kept within the flesh-color range. Then, a cluster (group) of the photometric points decided as a color within the flesh-color range is used for face density data. For this method, however, because colors within the flesh-color range are assumed as face density data, flesh color of ground, trunk of a tree, and clothes, or portions other than face having a color close to flesh color are extracted as face density data. Moreover, when the same object is photographed under the same condition, it may not be possible to automatically extract face density data if the type of film differs because the color tone differs in photographed images. Furthermore, when the color of a light source for illuminating an object differs, it may not be possible to automatically extract face density data if the color of the light source differs because the color tone of a photographed image differs (for example, an image photographed by using a fluorescent light for the light source shows green tone). To solve the problem caused by the difference of light-source color, it is only necessary to correct the light-source color before extracting photometric data within the flesh-color range. The light source can roughly be classified into sunlight, fluorescent light, and tungsten light. The color tone of sunlight depends on the season and time zone and also on direct or indirect light even if the season and time zone are the same. Artificial light such as fluorescent light has various color tones because products are diversified. Therefore, it is difficult to correct the light source by specifying the type of light source for each light source. Even if light source correction can completely be performed, it is impossible to avoid extracting flesh color of ground and trunk of a tree or portions with a color close to flesh color. Therefore, it is impossible to take action when the type of film differs. From US-A-4950894 a method of reading out a radiation image stored in a stimulable phosphor sheet is known, in which reading out is performed by a preliminary readout step for approximately detecting the image and a final readout step. The range for final read out conditions is determined on the basis of minimum values of a histogram. Using these values, an accumulative histogram is calculated and the read out conditions in the final read out step are corrected based on a characteristic value of the commulative histogram. It is the object of the present invention to provide a person's face data extraction method for automatically extracting only person's face data from a colour original image on a negative film or the like at a high accuracy. This object is achieved by the features set forth in the independent claim 1. The invention also makes it possible to extract person's face data by obtaining a two-dimensional histogram of hue values and saturation values in accordance with the data obtained through photometry instead of the histogram of hue values and dividing the obtained two-dimensional histogram into mountains. Moreover, it is possible to determine exposure for a copying material in accordance with the extracted person's face data. It is also possible to extract the data for the region decided as a person's face as person's face data by selecting one of the above divided regions and judging if the selected region is a person's face in accordance with the shape of regions around the selected region. In a further aspect, picture elements with hue values kept within the predetermined range are included in one region on the color original image. Thus, feature image data can be extracted by selecting at least one region showing the feature of the image because the data for the selected region shows feature image data. The color tone of color original image is uniformly changed in the whole screen due to difference of the type of film or light source, change of film characteristic with time, or difference between developed films. However, divided regions of the color original image are not changed due to change of color tone because groups consisting of picture elements of an image are stored though only the position on the histogram changes even if the color tone changes. Therefore, the present invention makes it possible to extract person's face density data even if the color tone or color range of the color original image changes due to difference of the type of film or light source, change of film characteristic with time, or difference between developed films. Thus, by determining exposure in accordance with the feature image data extracted by the above procedure and making a print, the feature image portion can be printed with a proper color. If the color original image is divided in accordance with a histogram of only hue values when the color tone of a feature image which is the featured portion of the image is the same as or close to the color tone of other portion, it may not possible to discriminate the feature image from other portion. Therefore, saturation values are adopted in addition to hue values, a two-dimensional histogram of the hue values and saturation values is obtained, the color original image is divided similarly to the above by diving the two-dimensional histogram into mountains, feature image data is extracted by selecting at least one of the divided regions, and exposure is determined in accordance with the extracted feature image data. Therefore, by using hue values and saturation values, feature image data can be extracted even if portions having a color tone same as or close to the feature image are mixed. Because a person's face is most remarked for appreciation of a portrait, it is preferable to judge if a divided region of a color original image is a person's face and extract the data for the region decided as a person's face as feature image data. In this case, because the person's face is located at a position upper than the body and lower than the head, the person's face can be decided by judging the shape of regions around the selected region to judge if the body and head are present. Moreover, because the contour of a person's face is completely different from that of other portions and the internal structure of the person's face is completely different from that of other portions, the person's face can be decided by judging at least one of the contours and internal structures of each region. Though person's face data which is feature image data can be extracted in accordance with a one-dimensional histogram of hue values described above, it can also be extracted in accordance with a two-dimensional histogram of hue values and saturation values described above. The color tone of person's face is similar to that of flesh color portions of ground and tree. However, the saturation of it is different from that of them in most cases. Therefore, person's face data can also be extracted from an image in which a person's face is mixed with portions of ground and trees with the color tone same as or close to that of the person's face by extracting person's face data in accordance with the two-dimensional histogram of hue values and saturation values. As described above, the present invention makes it possible to extract feature image data such as person's face data at a high accuracy even if the color tone or color range of a color original image changes due to difference of the type of film or light source, change of film characteristic with time, or difference between developed films because feature image data is extracted in accordance with a histogram of hue values and thereby improve the color repeatability of feature image. Moreover, because feature image data is extracted in accordance with a two-dimensional histogram of hue values and saturation values, the present invention makes it possible to extract feature image data even if portions with the color tone same as or close to a feature image such as a person's face are mixed and thereby improve the color repeatability of the feature image. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic diagram showing the printer which is the first embodiment of the present invention; Fig. 2 is a flow chart showing the face extraction routine of a face extraction circuit; Fig. 3 is a diagram showing color coordinates; Fig. 4A is a diagram showing a two-dimensional histogram of hue values and saturation values; Fig. 4B is a diagram showing a divided original image; Fig. 4C is a diagram showing the single mountain with one crest extracted from the two-dimensional histogram; Fig. 5 is a diagram showing details of the step 106 in Fig. 2; Fig. 6 is a diagram showing a histogram and a performance function; Fig. 7 is a diagram showing details of the step 108 in Fig. 2; Fig. 8 is a diagram showing details of the step 110 in Fig. 2; Fig. 9 is a flow chart of the face extraction routine of the second embodiment of the present invention; Fig. 10 is a flow chart of the face extraction routine of the third embodiment of the present invention; Fig. 11 is a schematic diagram of the exposure amountcomputation unit to which the present invention is applied; Fig. 12 is a schematic diagram of a exposure computation unit for performing parallel processing by a plurality of face extraction circuits; and Fig. 13 is a diagram showing a time chart of parallel processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention is described below by referring to the drawings. The embodiment is made by applying the present invention to an automatic printer. As shown in Fig. 1, the automatic printer of this embodiment has carrying rollers 12 for carrying a color negative film 10. A light source 14, color correction filter 16 such as a color modulation filter, and diffusion box 18 are arranged in order under the negative film 10 to be carried by the carrying rollers 12. A distribution prism for distributing the ray transmitted through the negative film 10 in two ways is arranged above the negative film 10. A projective optical system 22, black shutter 23, and color paper (photographic paper) 24 are arranged in order on one optical path distributed by the distribution prism 20, and a projective optical system 26 and a CCD image sensor 28 are arranged in order on the other optical path. The CCD image sensor 28 divides one full screen (one frame) of the negative film 10 into many picture elements (e.g. 256 x 256 picture elements) and resolves each picture element into three colors of R (red), G (green), and B (blue) to photometrically measure them. The CCD image sensor 28 is connected to a 3x3 matrix circuit 34 for correcting the sensitivity of the CCD image sensor through an amplifier 30 for amplifying the CCD image sensor output and an analog-to-digital (A-D) converter 32. The 3x3 matrix circuit 34 is connected to a proper exposure computation circuit 40 through a face extraction circuit 36 consisting of a microcomputer storing the program of a routine to be described later and through an average density computation circuit 38 for computing the average density of one full screen. The proper exposure computation circuit 40 is connected to the color correction filter 16 through a driver 42 for driving the color correction filter. The following is the description of functions of this embodiment. The ray emitted from the light source 14 passes through the color correction filter 16, diffusion box 18, and color negative film 10, and is distributed by the distribution prism 20 and received by the CCD image sensor 28. In this case, the black shutter 28 is closed. When the CCD image sensor 28 receives the ray, it divides one full screen into many picture elements, resolves each picture element into three colors of R, G, and B to photometrically measure them, and outputs a photometric data signal. The photometric data signal is amplified by the amplifier 30 before it is converted into a digital signal by the A-D converter 32. Then, the sensitivity of the image sensor is corrected by the 3x3 matrix circuit 34 and the digital signal is inputted to the face extraction circuit 36 and the average density computation circuit 38. The average density computation circuit 38 computes the average density of one full screen. The face extraction circuit 36, as described later, estimates the portion of a person's face in one screen and outputs three-color photometric data for R, G, and B. The exposure computation circuit 40 computes an exposure by using the three-color photometric data outputted from the face extraction circuit 36 and the average density obtained by the average density computation circuit 38, controls the color correction filter 16 through the driver 42, and performs printing by operating the black shutter 23. The exposure correction value for the average density can be obtained by using the average density obtained by the average density computation circuit 38. Unless the exposure correction value is obtained, the average density computation circuit 38 is not always necessary and it is possible to directly obtain an exposure from the three-color photometric data outputted by the face extraction circuit 36. Fig. 2 shows a face extraction routine by the face extraction circuit 36, in which elimination of noises from inputted three-color photometric data, that is, smoothing is executed in the step 100. In the next step 102, three-color photometric data for R, G, and B is converted into H (hue value), L (lightness value), and S (saturation value). L = (R + G + B)/3 S = 1 - min (r' , g' , b' ) H=H' /2P i Where, R, G, and B are three-color photometric data specified so that the minimum value is 0 and the maximum value is 1 respectively as shown in the three-dimensional coordinates in Fig. 3; "min ( )" is the minimum value of the values in parentheses; and r', g', and b' represent r' = R/L, g' = G/L, and b' = B/L. H' is given by the following expression (4) and Pi ("i" is one of R, G, and B) is P in Fig. 3. H' = Pi 2 - tan -1 x 1-x 2 Where, x = 2 (R-L) 2 + (G-L) 2 + (B-L) 2 6L (R-L) 2 + (G-L) 2 + (B+L) 2 In the step 104, a two-dimensional histogram of hue values and saturation values is obtained by using a coordinate system consisting of the hue value axis, saturation value axis, and number-of-picture-element axis which are perpendicular to each other as shown in Fig. 4A. In the step 106, as described later, the obtained two-dimensional histogram is divided into mountains, that is, the two-dimensional histogram is clustered. In the next step 108, many picture elements are clustered in accordance with the mountains of the clustered two-dimensional histogram and a screen is divided in accordance with the clustering to extract an region prospective for a person's face among divided regions. In the next step 110, the region of a face is estimated from the region extracted as a prospect of the face and three-color photometric data for R, G, and B of the region estimated as the face is outputted. In the step 112, it is judged if all frames are printed. If so, the routine is completed. The following is the description of details of the above steps 106 through 110. Fig. 5 shows details of the step 106. In the step 120, a region to be evaluated is cut out of the two-dimensional histogram of hue values and saturation values. In Fig. 4, one frame is used as an evaluation region to simplify explanation. In the step 122, it is judged if any evaluation region is present. When the evaluation region cannot be cut out in the step 120, that is, when evaluation of all regions is completed, the routine is completed because no evaluation region is present. When any evaluation region is present, X and Y axes are determined to make a histogram for cutting out mountains in the step 124. That is, the evaluation region is rotated around the axis parallel with the number-of-picture-element axis to obtain a position where priority is given to multi-crest property and the mountains become sharpest when viewing mountains of the histogram from the side and determine the X and Y axes on the basis of the position. When the processing time should be decreased, it is possible to use either X or Y axis in which the variance of the histogram is maximized though the accuracy slightly decreases. For the example in Fig. 4A, the position where priority is given to multi-crest property and mountains become sharpest when viewing four mountains marked with numerals 1 through 4 from the side is the position where three mountains can be seen. Therefore, X axis is determined in the direction perpendicular to the direction when they can be seen and Y axis is determined in the direction perpendicular to the X axis. In the next step 126, each one-dimensional histogram is made by projecting the two-dimensional histogram on X and Y axes. For the example in Fig. 4A, when viewing the mountains from the direction perpendicular to X axis, three mountains including the mountain marked with the numerals 3, the mountain marked with numerals 1 and 2, and the mountain marked with numeral 4 appear in the one-dimensional histogram about X axis because the mountains marked with numerals 1 and 2 are overlapped like one mountain. When viewing the mountains from the direction perpendicular to X axis, one mountain appears in the one-dimensional histogram about Y axis because the mountains marked with numerals 1 through 4 are overlapped like one mountain. In the next step 128, the histogram is converted into a performance function H (a) by the following expression (5) and mountains are cut out of the histogram about X axis in accordance with the performance function. H (a) = Σ 2f (a)-f (a+x)-f (a-x) x Where, "f (a)" is the number of picture elements when the value (feature value) in X-axis direction is "a" and "x" is the deviation from the feature value "a". That is, the average value T of the performance function H (a) is obtained and the range (trough and foot existing range) lower than the average value T of the performance function H (a) is obtained. Then, the position where the histogram within this range is minimum is obtained as the trough or foot of the histogram. Then, the histogram is cut out at the obtained trough or foot. The following is the description of cutting out the above mountain by referring to Fig. 6. The broken line in Fig. 6 represents the performance function H (a) obtained from the histogram shown by the continuous line S1. The range in which the performance function H (a) is equal to or lower than the average value T about the negative portion is the range in which the feature value ranges between v0 and v1 and between v2 and v3. The position where the frequency of the histogram within this range is minimized is av0 = v0 for the range between v0 and v1 and av1 for the range between v2 and v3, and av0 is obtained as a foot and av2 is obtained as a trough. The histogram is cut out at these positions. In the step 130, mountains of the histogram about Y axis are cut out similarly to cutting-out of mountains of the histogram about X axis. In the next step 132, an region where mountains of the one-dimensional histogram about X and Y axes cut out in the above manner on the two-dimensional histogram are overlapped is obtained to cut mountains out of the two-dimensional histogram of hue values and saturation values. The region E1 in Fig. 4A shows the mountains cut out in the above manner. In the next step 134, it is judged if the mountain cut out of the two-dimensional histogram has one crest. If not, Steps 124 through 134 are repeated until the mountain cut out of the two-dimensional histogram has one crest. The region E2 in Fig. 4C shows the one-crest mountain cut out in the above manner. In the next step 136, the processing for providing cut-out one-crest mountains with a label to identify them (i.e. labeling) is performed. In the step 138, labeled mountains are masked to restart the step 120. The above steps are repeated to divide all regions of the two-dimensional histogram of hue values and saturation values into one-crest mountains. Fig. 7 shows the details of the step 108. In the step 104, the X-axis directional range XR {Fig. 4C} of one-crest mountains divided in the above manner and the Y-axis directional range YR {Fig. 4C} of them are obtained for each one-crest mountain, it is judged about each picture element of the original image if hue values and saturation values are kept within these ranges in order to cluster picture elements, and the picture elements enclosed by the ranges XR and YR are collected to divide the original image so that the collected picture elements form one region on the original image. The divided regions are numbered. Fig. 4B shows a divided original image, in which the picture elements in regions marked with numerals 1 through 4 correspond to the picture elements enclosed by one-crest mountains marked with numerals 1 through 4. The picture elements belonging to the same one-crest mountain in Fig. 4A are divided into different regions in Fig. 4B. This is because the picture elements having the hue value range and saturation value range of one-crest mountain in Fig. 4A are located in different regions in Fig. 4B. In the next step 142, micro regions are removed and numbering is retried by judging the area of divided regions. In the next step 114, small regions connected with a large region are separated from the large region by executing contraction for removing all picture elements at the boundary between regions to remove one layer and expansion for increasing picture elements at the boundary in the background picture element direction to add one layer contrary to contraction. In the next step 146, numbering is executed by removing micro regions similarly to the step 142 and contraction and expansion similar to the above are executed to separate regions slightly bonded in the step 148 from each other. In the step 150, removal of micro regions and numbering are executed similarly to the above. Fig. 8 shows the details of the step 110. In the step 162, one region is selected as a remarked region among the regions extracted by the routine in the step 108 or Fig. 7, the size of the remarked region is standardized by expanding and contracting the remarked region so that the horizontal-and vertical-fillet diameters of the remarked region will have the predetermined value, and the density or brightness value is standardized in accordance with the following expression (6). d r = d s d max - d min · (d-d min ) Where, dmax: Maximum density value (or brightness value) in region dmin: Minimum density value (or brightness value) in region ds: Full-scale density value (or brightness value) of image sensor dr: Standardized density value (or brightness value) In the step 164, the correlation coefficient "gamma" of the remarked region for previously stored several types (ten types for this embodiment) of standard face images {e.g. face images viewed from the front, viewed from the side (right and left respectively), turned downward, and turned upward) is computed by the following expression (7) and the correlation coefficient is assumed as the feature value. These standard face images can be the data for only the contour of face or the data obtained by adding the data for internal structures of face (e.g. eyes, nose, and mouth) to the data for the contour of face. γ = σ fg σ f σ g where, T represents the horizontal- and vertical-fillet diameters of image (both fillet diameters are the same in this case), "f (x, y)" represents the remarked region, and "g (x, y)" represents the standard face image. In the step 166, it is judged whether or not the remarked region is a person's face through the linear discrimination analysis using the above feature value as a variable and R-, G-, and B-photometric data for the region decided as a face is outputted to the proper exposure computation circuit 40. In the step 168, it is judged if the decision on whether or not all extracted regions belong to a face is completed. If not, the steps 162 through 168 are repeated. In the above case, the correlation coefficient is used as the feature value for the judgment on a person's face. However, it is also possible to use the invariant, autocorrelation function, or geometrical invariant obtained from the central moment. When assuming the (p + q)-degree central moment "mu pq " of the image "f (x, y)" around the center of gravity as: Where, x = m 10 m 00 y = m 01 m 00 The normalized central moment "eta pq " around the center of gravity is shown as follows: η pq = µ pq (µ 00 ) y Where, y= (p+q+2)/2 p + q = 2, 3, .... From the above, the following seven invariants "Psi-i" (i = 1, 2 and 7) are obtained from the secondary and tertiary normalized central moments around the center of gravity.  1 = η 20 +η 02  2 = (η 20 -η 02 ) 2 + 4η 11 2  3 = (η 30 -3η 12 ) 2 + (3η 21 -η 03 ) 2  4 = (η 30 +η 12 ) 2 + (η 21 +η 03 ) 2  5 = (η 30 -3η 12 )(η 30 +η 12 )[(η 30 +η 12 ) 2 3(η 21 +η 03 ) 2 ] + (3η 21 -η 03 )(η 21 +η 03 ) × [3(η 30 +η 12 ) 2 - (η 21 +η 03 ) 2 ]  6 = (η 20 -η 02 ) [(η 30 +η 12 ) 2 - (η 21 +η 03 ) 2 ] + 4η 11 (η 30 +η 12 ) (η 21 +η 03 )  7 = (3η 21 -η 03 )(η 30 +η 12 ) [(η 30 +η 12 ) 2 - 3(η 21 +η 03 ) 2 ] +(3η 12 -η 30 )(η 21 +η 03 ) × [3(η 30 +η 12 ) 2 - (η 21 +η 03 ) 2 The autocorrelation function Rf is expressed as follows: And the geometrical invariant feature value is expressed as follows: The proper exposure computation circuit 40 computes the proper exposure Ei in accordance with the following expression by using the R-, G-, and B-photometric data for the face region extracted by the face extraction circuit 36 in the above manner and the one-frame average density Di (i = any one of R, G, and B) computed by the average density computation circuit 38 and outputs Ei to the driver 42. The driver 42 computes an exposure control value with the proper exposure Ei to control the color modulation filter 16. logE i = LM i · CS i · (DN i -D i )+PB i +LB i +MB i +NB i +K 1 +K 2 Where, LM: Magnification slope coefficient which is previously set in accordance with the enlargement ratio determined by the type of negative and the print size CS: Color slope coefficient prepared for each type of negative, which includes the under- and over-exposure types. It is decided whether the average density of the frame to be printed is under or over the standard negative density before the under- or over-exposure type is selected. DN: Standard negative density value D: Average density value of print frame PB: Correction balance value for standard color paper, which is determined in accordance with the type of the color paper LB: Correction balance value for standard printing lens, which is determined in accordance with the type of the printing lens MB: Correction value (master balance value) for fluctuation of the printing light source or change of paper developing performance NB: Negative balance (color balance) value determined by the characteristic of negative film K2: Color correction value K1: Density correction value shown by the following expression Ka ( D R + D G + D B 3 - FD R + FD G + FD B 3 ) + K b Where, Ka and Kb are a constant and FD is the average density of face region. It is also possible to express the color correction value K2 by assuming the density correction value K1 in the above expression (8) as the correction value obtained by a film tester and using the average density of face region as shown below. (K 2 ) i = K c {(FD i - FD R + FD G + FD B 3 ) - (DN i - DN R + DN B + DN G 3 )} Where, Kc is a constant. Moreover, it is possible to obtain an exposure by assuming the density correction value K1 and color correction value K2 in the above expression (8) as the correction value obtained by the film tester and replacing the average density Di of the print frame in the expression (8) with the average density FDi of face region. Because this embodiment makes judgment by using the contour and internal structure of a region, face data can also be extracted from an image in which a face, ground, and tree having similar hue are mixed. The second embodiment of the present invention is described below. This embodiment judges whether the remarked region is a face or not on each prospective region extracted in the step 108 by using the shape and color information of the remarked region and those of adjacent regions which are located around the remarked region. Fig. 9 shows the routine for judging a face or not. In the step 170, it is judged whether or not a region corresponding to the hand or foot of a person is extracted by judging if a region which has the hue value and saturation value same as or close to those of the remarked region around the remarked region and whose size (capable of adopting, for example, horizontal or vertical fillet diameter) is 25 to 100% of that of the remarked region is extracted. The range to be judged should be a range in which the body of a person is present, in order words, a range having the radius five times as large as the diameter of the circle with the same area as that of the remarked region. If image information is discontinued, the objective range should be up to the position where image information is discontinued in the discontinuous direction. When a region corresponding to the hand or foot is present around the remarked region, the flag Fa is set in the step 172. In the next step 174, it is judged whether or not a region of the body of a person is extracted by judging if a region connected with the remarked region is present and the region corresponds to the body of the person. Because the body of a person is normally symmetric to the axis for the right and left and asymmetric for the top and bottom and connects with his face, it is possible to decide whether or not the region corresponding to the body of the person is present by judging if a region connected with the remarked region is present and it is symmetric to the axis for the right and left and asymmetric for the top and bottom. When the region corresponding to the body of the person is present, the flag Fb is set in the step 176. In the next step 178, it is decided whether or not a head is present by judging the following conditions. The head is adjacent to a face and shows an approximate ellipse when it is combined with the face. Because a cap, helmet, or hair is normally present on the head, the hue or saturation of the head is different from that of the face. Therefore, it is possible to decide whether the head is present or not by judging if the ratio of the peripheral length of a region adjacent to the remarked region to the boundary length at the adjacent portion with the remarked region is 30% or more, the roundness when the remarked region is combined with the adjacent region is improved, the saturation value difference or brightness value difference to the hue difference between the hue value of the remarked region and that of the region adjacent to the remarked region is large, and the saturation value or brightness value of the region adjacent to the remarked region is small than that of the remarked region. When it is decided that the region corresponding to the head is present, the flag Fc is set in the step 180. In the step 182, it is judged if the flags Fa and Fb are set. If so, in other words, when a region corresponding to the hand or foot is present around the remarked region and the region connected with the remarked region is a region corresponding to the body, it is decided that the remarked region is a person's face and the R-, G-, and B-photometric data for the remarked region is outputted in the step 188. If not in the step 188, it is judged in the step 184 if the flags Fb and Fc are set. If so, in other words, when the region connected with the remarked region is a region corresponding to the body and the region adjacent to the remarked region is a region corresponding to the head, it is decided that the remarked region is a person's face and the step 188 starts. If not in the step 184, it is judged in the step 186 if the flags Fa, Fb, and Fc are set. If so, it is decided that the remarked region is a person's face and the step 188 starts. In the next step 190, the flags Fa, Fb, and Fc are reset in order to decide the remarked region. To decide whether the remarked region is a hand, foot, body, or head in this embodiment, it is also possible to previously store a plurality of standard hand or foot images, a plurality of standard body images, and a plurality of standard head images and compare the remarked region with these standard images for decision as described in the above first embodiment. The third embodiment of the present invention is described below. This embodiment converts an extracted region into a line graphic to judge whether or not the remarked region is a face in accordance with the shape of regions around the remarked region and that of the remarked region. Fig. 10 shows a face decision routine in accordance with line graphic conversion, in which each region is converted into a line graphic by extracting line information from the extracted region for one screen in the above manner. In the step 202, it is judged whether or not a line graphic showing the shoulder of a person is present by comparing the previously stored standard line graphic showing the person's shoulder with the line graphics for one screen. Unless the line graphic showing the shoulder is present, this routine is completed. When the line graphic showing the shoulder is present, it is judged if any line graphic is present on the former line graphic. If so, the latter line graphic is assumed as a remarked line graphic to judge if any line graphic showing a head (e.g. cap, hair, or helmet) is present on the top of the remarked line graphic in the step 206. If so in the step 206, the remarked line graphic has a large probability that the remarked line graphic is a face line graphic because the line graphic showing the face is present at the top of the remarked line graphic and the line graphic showing the shoulder is present at the bottom of the remarked line graphic. Therefore, it is judged in the step 208 if the contour of the remarked line graphic is similar to that of the standard face line graphic. If so in the step 208, it is decided in the step 210 that the remarked line graphic is a face and the R-, G-, and B-photometric data for the region corresponding to the remarked line graphic is outputted. If not in the step 208, however, it is decided in the step 212 that the lower portion of the line graphic at the top of the line graphic showing the shoulder is a face and R-, G-, and B-photometric data for the portion is outputted. For this embodiment, because a face is decided with the shape of the remarked region, face data can also be extracted from an image including a face, ground, and tree with similar hue. Moreover, because a face is not decided by using the microstructure of the face, the face can be decided with a short computation time even if the resolution of the image to be decided is low. Fig. 11 shows a modification in which the present invention is applied to a exposure determination apparatus separate from a printer or printer processor. In Fig. 11, the portion corresponding to that in Fig. 1 is provided with the same numeral to omit its description. The average density computation circuit 38 is not always necessary. Instead, it is also possible to use an integrating transmission density detection circuit for detecting LATD of the entire screen. Fig. 12 shows that an exposure is computed through parallel processing by constituting the face extraction circuit in Fig. 11 with a plurality of face extraction circuits 36 1 , 36 2 ,..., and 36n. The face extraction circuits 36 1 , 36 2 ,...., and 36n read an image in accordance with the time chart in Fig. 13, compute an exposure, and output the result. In Fig. 13, t1 is the image read time for one frame, t2 is the exposure computation time for one frame, and t3 is the exposure computation result transfer time for one frame, where t2 >> t1 and t2. The face extraction circuit 36 1 reads the image for one frame for the time of t1, computes the exposure for the time of t2, and transfers the computation result for the time of t3. As soon as one-frame image read is completed by the face extraction circuit 36 1 , the film is advanced by one frame and one-frame image read is started by the face extraction circuit 36 2 , exposure computation by the face extraction circuit 36 1 and one-frame image read by the face extraction circuit 36 2 are simultaneously executed, and subsequently parallel processing is continued by the face extraction circuits 36 3 , 36 4 ,..., and 36n. The time Tp required for parallel processing of "mxn" frames is shown as follows: Tp = m(t 1 +t 2 +t 3 )+(n-1)t 1 While, the processing time Ts without executing parallel processing is shown as follows: Ts = m · n(t 1 +t 2 +t 3 ) Therefore, the processing speed can be increased by Ts/Tp times. In this case, Ts/Tp is shown as follows: T s /T p = m·n (t 1 + t 2 + t 3 ) m (t 1 + t 2 + t 3 ) + (n-1) t 1 This parallel-processing system can also be applied to the printer in Fig. 1. The present invention can also be applied not only to determination of exposure of a photo-printing equipment but to determination of exposure of a digital color printer, determination of copying conditions of a copying machine, determination of exposure of a camera, determination of display conditions of a CRT screen, and determination of exposure when a hard copy is made with magnetic image data.

Claims: A method of determining feature image data relating to a person's face, comprising the steps of: (a) resolving a color original image into many picture elements and resolving each picture element into three colors of red, green and blue and photometrically measuring them; (b) converting the red, green and blue values into hue (H) and saturation (S) values; (c) obtaining a two-dimensional histogram of the hue and saturation values of the data obtained through photometry; (d) dividing the obtained histogram into mountains (1-4), a mountain representing a cluster of picture elements in the hue and saturation space of the two-dimensional histogram; (e) judging to which mountain each picture element of the color original image belongs, classifying the picture elements into groups corresponding to the mountains, and dividing the color original image into regions (1-4) for each group; and (f) selecting at least one (1) of the regions (1-4) as said person's face and extracting data for the selected region as said feature image data. The method according to claim 1, wherein in said step (f) at least one of the contours and internal structures of each divided region is selected to judge whether or not it is a person's face. The method according to claim 1, wherein, in said step (f), one of the divided regions is selected to judge if the selected region is a person's face in accordance with the shape of the regions around the selected region. The method according to claim 3, wherein it is judged if said selected region is a person's face in accordance with the shape and color information of said neighboring regions. A method according to at least one of the claims 1-4, further comprising the step of: determining exposure for a copying material based on said extracted feature image data.

Inventors: NAKAMURA HIROAKI, TERASHITA TAKAAKI, NAKAMURA, HIROAKI, TERASHITA, TAKAAKI, NAKAMURA, HIROAKI, C/O FUJI PHOTO FILM CO., LTD., TERASHITA, TAKAAKI, C/O FUJI PHOTO FILM CO., LTD.
Applicants: FUJI PHOTO FILM CO LTD, FUJI PHOTO FILM CO., LTD.
Application year: 1992
Main classification: G03B27
IPC codes: G03B27