Color matching control device, method for controlling color matching control device, and program
The color matching control device addresses color distortion by calculating dynamic ranges and using singular points to generate correction LUTs, ensuring accurate color matching across imaging devices, even outside the color chart's dynamic range.
Patent Information
- Application Number
- JP2023051644
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-10
AI Technical Summary
Existing color matching technologies suffer from color distortion and reduced image quality when operating outside the dynamic range of a color chart, particularly in high brightness gradations, due to the limitations of the color chart's dynamic range.
A color matching control device that extracts pixel values from both a reference and target image, calculates dynamic ranges, identifies singular points outside the chart's dynamic range, and generates correction LUTs using these values to accurately match colors across imaging devices.
Enables accurate color matching even in color spaces outside the dynamic range of the color chart, reducing color distortion and ensuring high-quality image reproduction across multiple imaging devices.
Smart Images

Figure 2024140488000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a color matching control device, a control method for the color matching control device, and a program. [Background technology]
[0002] For example, in a shooting site where a fashion model or a product sample is shot, shooting may be performed using a plurality of cameras. In such a shooting site, prior to shooting, color matching between images shot by each camera is performed. Here, among the plurality of cameras, a camera that is a reference for color matching is called a "reference camera", and a camera that is a target for color matching is called a "target camera". In color matching, a color chart is first arranged in the shooting environment, and the reference camera and the target camera are arranged side by side in front of the color chart. Shooting is performed in this arrangement, and images of the color chart are obtained from the reference camera and the target camera, respectively. Next, based on this image, parameters are generated to match the chromaticity and luminance obtained by shooting with the target camera to the chromaticity and luminance obtained by shooting with the reference camera. Next, color matching can be performed by applying this parameter to the target camera. The parameters are generated, for example, in a table (hereinafter referred to as a "correction LUT (Look up Table)").
[0003] However, when a correction LUT is created using a color chart, the dynamic range of the color chart may be relatively reduced, that is, may be narrower than the dynamic range of the camera, depending on, for example, the lighting environment at the shooting site or the setting state of the camera. Then, a correction LUT is generated in a state where the dynamic range of the color chart is reduced, and color matching is performed based on the correction LUT. In this case, in a color space outside the dynamic range of the color chart, for example, color matching at high luminance gradations becomes inaccurate, and color bending occurs. For example, Patent Document 1 discloses that in order to improve the color matching accuracy of colors not included in the color chart, a color specified by the user from an image is added as an important color and color matching is performed. This improves the color matching accuracy for the color added as an important color. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2009-175281 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, if an important color is a color that is included within the dynamic range of the color chart, color bending occurs in a color space outside the dynamic range of the color chart, causing degradation in image quality, as described above.
[0006] The present invention has been made in consideration of the above problems, and has an object to provide a color matching control device, a control method for the color matching control device, and a program for controlling the color matching control device, which are capable of accurately performing color matching between images captured by each imaging device, even in a color space outside the dynamic range of a color chart. [Means for solving the problem]
[0007] In order to achieve the above object, a color matching control device of the present invention is a color matching control device that performs color matching between images captured by a plurality of imaging devices, and includes an acquisition means that acquires a first image including a color chart area captured by a first imaging device included in the plurality of imaging devices, and a second image including a color chart area captured by a second imaging device included in the plurality of imaging devices, a first extraction means that extracts a pixel value of the color chart area included in the first image as a first pixel value, and extracts a pixel value of the color chart area included in the second image as a second pixel value, and a second extraction means that extracts a pixel value of the color chart area included in the first image as a second pixel value based on the first pixel value. a calculation means for calculating a dynamic range of the color chart area included in the first image as a first dynamic range; a second extraction means for setting a predetermined pixel in an area excluding the color chart area of the first image as a first singular point based on the first dynamic range and extracting a pixel value of the first singular point, and for setting a second singular point in the second image based on the first singular point and extracting a pixel value of the second singular point; and a generation means for generating parameters for performing the color matching based on the first pixel value, the second pixel value, the pixel value of the first singular point, and the pixel value of the second singular point. Effect of the Invention
[0008] According to the present invention, even in a color space outside the dynamic range of a color chart, it is possible to accurately perform color matching between images captured by each image capture device. [Brief description of the drawings]
[0009] [Figure 1] 1 is a diagram showing a system configuration according to a first embodiment. [Diagram 2] 2 is a block diagram showing a hardware configuration of a color matching control device; [Diagram 3] FIG. 2 is a diagram showing an example of an image of a color chart captured by an imaging device. [Figure 4]1 is a table showing an example of each first pixel value (the pixel value of each patch of the first image) and each second pixel value (the pixel value of each patch of the second image). [Diagram 5] 1 is a table showing input data and output data of an approximation formula. [Figure 6] FIG. 13 is a diagram showing a 3DLUT as a correction LUT. [Figure 7] 13 is a flowchart showing a process for generating a correction LUT for color matching between a target camera and a reference camera. [Figure 8] FIG. 2 is a diagram showing an example of a reference image and a target image. [Figure 9] FIG. 13 is a diagram showing an example of a state in which singular points are extracted from a reference image and a target image. [Figure 10] FIG. 13 is an image comparing gray scale data of the correction LUT. [Figure 11] FIG. 13 is a diagram illustrating an example of setting a singular point. [Figure 12] FIG. 11 is a block diagram showing a hardware configuration of a color matching control device according to a second embodiment. [Figure 13] 13 is a flowchart showing a process for generating a correction LUT for color matching between a target camera and a reference camera. [Figure 14] FIG. 13 is an image diagram of gray gradations of a correction LUT. [Figure 15] FIG. 13 is an image comparing gray scale data of the correction LUT. [Figure 16] FIG. 13 is a diagram illustrating an example of setting a singular point. [Figure 17] FIG. 13 is a diagram showing an example of a setting menu screen for setting a singular point. [Figure 18] FIG. 13 is a diagram showing an example of how singular points are displayed on an image. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Each embodiment of the present invention will be described in detail below with reference to the drawings. However, the configurations described in each of the following embodiments are merely examples, and the scope of the present invention is not limited by the configurations described in each embodiment. For example, each part constituting the present invention can be replaced with any configuration that can exert a similar function. In addition, any configuration may be added. In addition, any two or more configurations (features) of each embodiment can be combined.
[0011] First Embodiment Hereinafter, the first embodiment will be described with reference to FIG. 1 to FIG. 11. FIG. 1 is a diagram showing an example of the configuration of a system according to the first embodiment. The system 1 shown in FIG. 1 has two imaging devices 10 and a color matching control device 200 communicably connected to each imaging device 10. The connection between each imaging device 10 and the color matching control device 200 may be a wired connection or a wireless connection. The color matching control device 200 is a device that performs color matching between images captured by each imaging device 10. "Color matching" means matching at least chromaticity and luminance. In addition, one (one) imaging device 10 of the two imaging devices 10 is a reference camera 100 that captures a reference image that is a reference for color matching. In addition, the other (remaining) imaging device 10 is a target camera 101 that captures a target image to be subjected to color matching. Both the reference image and the target image include an area of the color chart 30 used for color matching. Then, the reference image and the target image are transmitted to the color matching control device 200. The color matching control device 200 generates a correction LUT (lookup table) for color matching based on the reference image and the target image. By applying the correction LUT to the target camera 101, color matching between the imaging devices 10 can be performed.
[0012] In the present embodiment, as an example, the target camera 101 is the first imaging device, and the reference camera 100 is the second imaging device. In this case, the target image captured by the target camera 101, which is the first imaging device, that is, the image including the area of the color chart 30, is the first image. Also, the reference image captured by the reference camera 100, which is the second imaging device, that is, the image including the area of the color chart 30, is the second image. Note that it is not limited to the target camera 101 being the first imaging device and the reference camera 100 being the second imaging device, and the reference camera 100 may be the first imaging device and the target camera 101 being the second imaging device. In this case, the reference image captured by the reference camera 100, which is the first imaging device, is the first image, and the target image captured by the target camera 101, which is the second imaging device, is the second image.
[0013] The reference image and the target image are not limited to being transmitted to the color matching control device 200 by the above-mentioned wired connection or wireless connection. For example, each image may be stored in a recording medium such as a memory card and transmitted to the color matching control device 200 via the recording medium. The number of imaging devices 10 arranged in the system 1 is not limited to two, and may be, for example, three or more. For example, when the number of imaging devices 10 arranged is three, one of these imaging devices 10 is set as a reference camera 100, and the remaining two imaging devices 10 are each set as a target camera 101. Then, in color matching, color matching is performed between the reference camera 100 and one of the two target cameras 101, and color matching is performed between the reference camera 100 and the other target camera 101.
[0014] Fig. 2 is a block diagram showing a hardware configuration of the color matching control device. As shown in Fig. 2, the color matching control device 200 has an image receiving unit (acquisition means) 201a, an image receiving unit (acquisition means) 201b, an image capturing unit 202a, an image capturing unit 202b, a control unit 203, and a UI operation unit 204. The color matching control device 200 also has a patch pixel value extracting unit (first extracting means) 205, a dynamic range calculating unit (calculating means) 206, and a singular point extracting unit (second extracting means) 207. The color matching control device 200 also has a correction LUT generating unit (generating means) 208, a correction LUT output unit 209, and a display unit (display means) 210.
[0015] The video receiving unit 201a receives the video (reference image) captured by the reference camera 100, i.e., acquires it (acquisition process). Thereafter, the video receiving unit 201a transmits the video received from the reference camera 100 to the video capture unit 202a. The video receiving unit 201b receives the video (target image) captured by the target camera 101, i.e., acquires it (acquisition process). Thereafter, the video receiving unit 201b transmits the video received from the target camera 101 to the video capture unit 202b. The video capture unit 202a generates an image by capturing the video of the reference camera 100 and transmits it to the control unit 203. The video capture unit 202b generates an image by capturing the video of the target camera 101 and transmits it to the control unit 203. To capture the video, for example, one frame of the video may be stored in a frame memory or the like and output. Note that the image by capturing the video of the reference camera 100 becomes the reference image, and the image by capturing the video of the target camera 101 becomes the target image.
[0016] The control unit 203 is a computer that performs overall control of the color matching control device 200. Note that the color matching control device 200 stores in advance a program for causing the control unit 203 to execute each unit and each means (control method of the color matching control device) of the color matching control device 200. The control unit 203 receives a reference image from the video capture unit 202a, and receives a target image from the video capture unit 202a. The control unit 203 also receives area information of each patch in the color chart 30 of each image from the UI operation unit 204. The area information of the patch will be described later. The control unit 203 also transmits the reference image, the target image, and area information of the patch to the patch pixel value extraction unit 205, and receives the pixel value of each patch extracted by the patch pixel value extraction unit 205. The control unit 203 also receives information on the dynamic range of the area of the color chart 30 calculated by the dynamic range calculation unit 206. Furthermore, the control unit 203 transmits the reference image, the target image, area information of each patch, and dynamic range information to the singularity extraction unit 207, and receives pixel values of the singularity calculated by the singularity extraction unit 207. Furthermore, the control unit 203 transmits pixel values of the reference image and the target image (pixel values of each patch and pixel values of the singularity) for generating a correction LUT to the correction LUT generation unit 208. Furthermore, the control unit 203 generates, for example, a display screen on which the reference image and the target image are arranged side by side, or a display screen on which area information of each patch is superimposed as a rectangle on the reference image and the target image, and transmits the generated display screen to the display unit 210.
[0017] The UI operation unit 204 accepts an operation from the user and transmits the operation result to the control unit 203. FIG. 3 is a diagram showing an example of an image of a color chart captured by an imaging device. As shown in FIG. 3, the color chart 30 is arranged in a matrix of six rows and four columns, has color parts with different adjacent colors, and includes patches 31 to 54 cut out (divided) for each of the color parts. The user can select the inside of the patches 31 to 54 with the rectangles 61 to 84, respectively, using an operation device such as a mouse. For example, the user can select the inside of the patch 31 with the rectangle 61, and the inside of the patch 54 with the rectangle 84. Note that the rectangles 61 to 84 are preferably, but not limited to, the same shape and size. The UI operation unit 204 transmits the coordinates of the start point and end point of the rectangles 61 to 84 to the control unit 203 as area information of the patches 31 to 54.
[0018] The patch pixel value extraction unit 205 receives the reference image, the target image, area information of the patches 31 to 54 of the reference image, and area information of the patches 31 to 54 of the target image from the control unit 203. Then, based on the target image and the area information of the patches 31 to 54 of the target image, the patch pixel value extraction unit 205 extracts pixel values of the patches 31 to 54 as first pixel values (first extraction step). The first pixel value is a pixel value of a color chart area included in the target image (first image). Similarly, based on the reference image and the area information of the patches 31 to 54 of the reference image, the patch pixel value extraction unit 205 extracts pixel values of the patches 31 to 54 as second pixel values (first extraction step). The second pixel value is a pixel value of a color chart area included in the reference image (second image). Moreover, the patch pixel value extraction unit 205 transmits each of the first pixel values and each of the second pixel values to the control unit 203, and also transmits each of the first pixel values and each of the second pixel values to the dynamic range calculation unit 206. FIG. 4 is a table showing an example of each of the first pixel values (pixel values of each patch of the first image) and each of the second pixel values (pixel values of each patch of the second image). In this embodiment, each value shown in FIG. 4(A) is the second pixel value, and each value shown in FIG. 4(B) is the first pixel value. The RGB values in FIG. 4 are not particularly limited, and for example, the average value of the pixel values in the patches 31 to 54 may be used, or the central pixel value in the patches 31 to 54 may be used.
[0019] The dynamic range calculation unit 206 receives each of the first pixel values and each of the second pixel values from the patch pixel value extraction unit 205. Then, the dynamic range calculation unit 206 calculates the dynamic range of the area of the color chart 30 included in the first image as the first dynamic range based on each of the first pixel values (calculation step). This calculation method is not particularly limited, and for example, a method in which the range from the minimum value to the maximum value of the multiple first pixel values is set as the range of the first dynamic range can be mentioned. Here, the "dynamic range of the color chart area" is different from the dynamic range of the imaging device 10, and refers to the dynamic range captured (acquired) by the imaging device 10 with respect to the color chart 30. In addition, the dynamic range calculation unit 206 transmits the first dynamic range to the control unit 203.
[0020] The singularity extraction unit 207 receives from the control unit 203 the reference image, the target image, area information of the patches 31 to 54 of each image, and information on the first dynamic range. Then, the singularity extraction unit 207 sets a predetermined pixel in an area of the target image (first image) excluding the area of the color chart 30 as a first singularity (first constraint point) based on the first dynamic range. The singularity extraction unit 207 extracts the pixel value of the first singularity as the first singularity pixel value (second extraction step). As a result, the first singularity pixel value becomes a pixel value outside the range of the first dynamic range. As a method of extracting the first singularity pixel value, for example, in an area of the target image (first image) excluding the area of the color chart 30, a point with a maximum pixel value is set as the first singularity, and the pixel value (maximum pixel value) of the first singularity is set as the first singularity. Note that instead of setting the point with the maximum pixel value as the first singularity, a point with a minimum pixel value may be set as the first singularity. Furthermore, the singularity extraction unit 207 sets a second singularity (second constraint point) in the reference image (second image) based on the first singularity. The singularity extraction unit 207 extracts a pixel value of the second singularity as a second singular pixel value (second extraction step). As a method of extracting the second singular pixel value, for example, when the reference image and the target image are superimposed on a common coordinate system, a point with the same coordinate as the first singularity is set as the second singularity, and the pixel value of the second singularity is set as the second singular pixel value.
[0021] The correction LUT generating unit 208 receives the first pixel value, the second pixel value, the first peculiar pixel value, and the second peculiar pixel value from the control unit 203. Then, the correction LUT generating unit 208 generates a correction LUT as a parameter for color matching based on the first pixel value, the second pixel value, the first peculiar pixel value, and the second peculiar pixel value (generation step). In addition, the correction LUT generating unit 208 transmits the correction LUT to the correction LUT output unit 209. As a method for generating the correction LUT, for example, a method of estimating pixel values other than each patch and each singular point by an approximation formula using the first pixel value, the second pixel value, the first peculiar pixel value, and the second peculiar pixel value (RGB value) can be given. For example, the approximation formula is obtained by determining coefficients of a multidimensional function of the following formula (1) based on average data of achromatic patches included in the color chart 30. Note that a and x will be described later.
[0022]
number
[0023] When there are multiple R, G, and B patches on the color chart 30, an approximation formula of each of the multidimensional functions of R, G, and B may be obtained as a multidimensional function. The approximation formula is not limited to the multidimensional function, and may be, for example, a linear approximation or a Log approximation. FIG. 5 is a table showing input data and output data of the approximation formula. For example, in the case of a 3DLUT in which the correction LUT has 17×17×17 lattice points, the combined RGB data for the lattice points is substituted for the input value x in the above formula (1). This results in a corresponding output value (f(x)). FIG. 6 is a diagram showing a 3DLUT as a correction LUT. As shown in FIG. 6, the output value of the correction LUT generated by the correction LUT generating unit 208 is calculated by the difference between the output value of the approximation formula for the reference camera 100 and the output value of the approximation formula for the target camera 101.
[0024] The correction LUT output unit 209 receives the correction LUT generated by the correction LUT generation unit 208. Then, the correction LUT output unit 209 transmits the correction LUT to the target camera 101 in an import format. As a result, the correction LUT is stored in the target camera 101, enabling color matching. Note that the import method is not particularly limited, and examples thereof include a method in which the correction LUT is once copied to a portable medium such as a USB memory, and the correction LUT is imported to the target camera 101 via the portable medium. In addition, for example, when the target camera 101 and the color matching control device 200 are connected via a LAN or the like, a method in which the correction LUT is imported to the target camera 101 via the LAN can also be used.
[0025] The display unit 210 can display various screens such as operation menus received from the control unit 203, images captured by each imaging device 10, and the like.
[0026] FIG. 7 is a flowchart showing a process for generating a correction LUT for color matching between a target camera and a reference camera. A program based on the flowchart shown in FIG. 7 is executed by the color matching control device 200. This program is started, for example, when the control unit 203 transmits a reference image 800a and a target image 800b, which will be described later, and area information of each patch to the patch pixel value extraction unit 205. FIG. 8 is a diagram showing an example of a reference image and a target image. FIG. 8(a) shows a reference image 800a captured by the reference camera 100. FIG. 8(b) shows a target image 800b captured by the target camera 101. In addition, the reference image 800a and the target image 800b each include a color chart 30.
[0027] As shown in FIG. 7, in step S701, the patch pixel value extraction unit 205 receives the reference image, the target image, and area information of patches 31 to 54 of each image from the control unit 203. Then, the patch pixel value extraction unit 205 extracts a first pixel value (see FIG. 4(B)) based on the target image and the area information of patches 31 to 54 of the target image. Also, the patch pixel value extraction unit 205 extracts a second pixel value (see FIG. 4(A)) based on the reference image and the area information of patches 31 to 54 of the reference image. After this extraction, the patch pixel value extraction unit 205 transmits each of the first pixel values (RGB values) and each of the second pixel values (RGB values) to the dynamic range calculation unit 206.
[0028] In step S702, the dynamic range calculation unit 206 receives each of the first pixel values and each of the second pixel values from the patch pixel value extraction unit 205. Then, the dynamic range calculation unit 206 calculates a first dynamic range based on each of the first pixel values. After this calculation, the dynamic range calculation unit 206 transmits the first dynamic range to the control unit 203. As an example, the dynamic range of the color chart in the reference image is 4 to 144, and the dynamic range of the color chart in the target image is 4 to 160. In this embodiment, the dynamic range of the color chart in the target image is used as the first dynamic range. Note that the dynamic range of the color chart in the reference image can also be used as the first dynamic range.
[0029] In step S703, the control unit 203 transmits to the singularity extraction unit 207 the reference image, the target image, area information of the patches 31 to 54 of each image, and information on the first dynamic range. This allows the singularity extraction unit 207 to receive these. Then, the singularity extraction unit 207 sets a predetermined pixel in an area of the target image excluding the area of the color chart 30 as a first singularity based on the first dynamic range. The singularity extraction unit 207 extracts the pixel value of this first singularity as a second singular pixel value. Next, the singularity extraction unit 207 sets a second singularity in the reference image 800a based on the first singularity. The singularity extraction unit 207 extracts the pixel value of this second singularity as the second singular pixel value. After extracting each singularity, the singularity extraction unit 207 transmits the singularity to the control unit 203. As described above, when the reference image and the target image are superimposed on a common coordinate system, the second singular point may be a point with the same coordinates as the first singular point. This extraction is possible, for example, by displaying the first singular point in the target image 800b and the second singular point in the reference image 800a on the display unit 210 and allowing the user to select the first singular point and the second singular point in this order. When the singular point in the target image 800b is the first singular point and the singular point in the reference image 800a is the second singular point, the selection order of the singular points is the selection of the singular point in the target image 800b and the selection of the singular point in the reference image 800a. This selection order is the reverse of the selection order. Also, by using a technique such as pattern matching, a singular point in one image may be extracted based on the position of a singular point extracted from the other image.
[0030] FIG. 9 is a diagram showing an example of a state in which singular points of the reference image and the target image are extracted. The singular point 90a (second singular point) of the reference image 800a and the singular point 90b (first singular point) of the target image 800b are both overlapped with the sun. The pixel values (R value, G value, B value) of the singular point 90a are (226, 226, 226). The pixel values (R value, G value, B value) of the singular point 90b are (241, 241, 241). Thus, in this embodiment, the singular point extraction unit 207 is configured to be able to perform a setting operation of the singular point 90a and a setting operation of the singular point 90b. This allows, for example, the singular points 90a and 90b to be set to arbitrary points more suitable for color matching. Although the singularity extraction unit 207 is configured to be capable of both the setting operation of the singularity 90a and the setting operation of the singularity 90b, the present invention is not limited thereto, and may be configured to be capable of setting the singularity 90a only. In this case, the setting of the singularity 90b follows the setting of the singularity 90a.
[0031] In step S704, the control unit 203 transmits the first pixel value, the second pixel value, the first singular pixel value, and the second singular pixel value to the correction LUT generation unit 208. This allows the correction LUT generation unit 208 to receive these pixel values. Then, the correction LUT generation unit 208 generates a correction LUT based on the first pixel value, the second pixel value, the first singular pixel value, and the second singular pixel value. In this generation, a multidimensional function of Equation (1) is used. The correction LUT generation unit 208 calculates the coefficient a in Equation (1) from the first pixel value, the second pixel value, the first singular pixel value, and the second singular pixel value. The correction LUT generation unit 208 generates a correction LUT based on the difference between the output value of the approximation equation for the reference image and the output value of the approximation equation for the target image.
[0032] Each coefficient of the approximation equation for the reference image is obtained from the following equation (2).
[0033]
number
[0034] Each coefficient of the approximation equation for the target image is obtained from the following equation (3).
[0035]
number
[0036] When calculation is performed only from the pixel values of the patch without using the singular pixel values, each coefficient of the approximation equation for the reference image is obtained from the following equation (4).
[0037]
number
[0038] Each coefficient of the approximation equation for the target image is obtained from the following equation (5).
[0039]
number
[0040] FIG. 10 is an image diagram comparing gray scale data of the correction LUT. In FIG. 10, the correction LUT1000 and the correction LUT1001 are illustrated, which show the relationship between the input tone and the output tone. The correction LUT1000 is a comparative example that is generated using only the pixel values of the patch without using the singular pixel values, that is, generated based on the formulas (1), (4), and (5). On the other hand, the correction LUT1001 is an embodiment that is generated by adding singular points, that is, generated based on the formulas (1), (2), and (3). In the correction LUT1000, it is recognized that the color falls in an arc from the pixel value of about 160, which is outside the dynamic range of the color chart, and color shift occurs. In the correction LUT1001, it is recognized that the color bending outside the dynamic range of the color chart is reduced. In this way, the color matching control device 200 can accurately perform color matching between images captured by each imaging device 10 even in a color space outside the dynamic range of the color chart.
[0041] The number of the first singular points and the second singular points is not limited to one, and may be, for example, two or more. The number of the first singular points can be appropriately set (determined) according to the ratio of the first dynamic range to the entire gradation in the first image (255 in the case of 8 bits). The number of the second singular points is set to the same number as the number of the first singular points. Thereby, for example, when the first dynamic range is comparatively narrow, color bending can be reduced by setting a plurality of singular points outside the range of the first dynamic range. Also, when the dynamic range is comparatively wide and occupies almost the entire gradation, the number of the singular points can be reduced.
[0042] FIG. 11 is a diagram showing an example of setting singular points. FIG. 11(a) shows an example in which a plurality of singular points are set when the ratio of the first dynamic range to the entire gradation in the image is small. FIG. 11(b) shows an example in which only a point with a maximum pixel value not included in the first dynamic range is set as a singular point when the ratio of the first dynamic range to the entire gradation in the image is large. As shown in FIG. 11(a), the maximum value of the first dynamic range is 105. When two singular points (first singular points) are set, the first singular point is set to a point with a maximum pixel value (for example, pixel value 255) not included in the first dynamic range in the image. As for the second singular point, a point with a pixel value (for example, pixel value 180) intermediate between the maximum value of the dynamic range (maximum value 105) and the pixel value of the first singular point (pixel value 255) is set. As shown in FIG. 11(b), the maximum value of the first dynamic range is 235. When one singular point (first singular point) is set, a point with a maximum pixel value (e.g., pixel value 255) not included in the first dynamic range in the image is set for that singular point. In this way, the singular point can also be set based on a point with a maximum pixel value (maximum value) in the area excluding the color chart area of the image. Furthermore, the singular point is set at a point on the higher gradation side than the first dynamic range. Note that the singular point may also be set based on a point with a minimum pixel value (minimum value) in the area excluding the color chart area of the image, or set at a point on the lower gradation side than the first dynamic range.
[0043] The number of first singular points may be set according to the number of patches when the area of the color chart 30 included in the first image is divided into a plurality of patches. This makes it possible to reduce the number of first singular points when the number of patches is small, for example. In this case, the number of second singular points is set to the same number as the number of first singular points.
[0044] By setting the singular points as described above, it is possible to generate a correction LUT that reduces color bending outside the first dynamic range while ensuring the color accuracy of the color chart.
[0045] <Second embodiment> Hereinafter, the second embodiment will be described with reference to Figs. 12 to 18, but the differences from the previous embodiment will be mainly described, and the description of the similar points will be omitted. In this embodiment, pixel values outside the dynamic range are estimated as singular points, and a correction LUT is generated using the pixel values of each patch of the color chart and the estimated singular points. An example will be described in which color bending outside the dynamic range is reduced by this correction LUT.
[0046] FIG. 12 is a block diagram showing a hardware configuration of a color matching control device according to the second embodiment. The color matching control device 1200 of this embodiment is the same as that of the first embodiment, except that the processing in the control unit 1201 and the processing in the singularity extraction unit 1202 are different. The control unit 1201 switches (changes) parameters to be transmitted to the correction LUT generation unit 208 according to the type of correction LUT generated by the correction LUT generation unit 208. Specifically, when generating a correction LUT for singularity calculation (singularity extraction) for calculating each singularity, the control unit 1201 transmits the first pixel value and the second pixel value received from the patch pixel value extraction unit 205 to the correction LUT generation unit 208. When generating a correction LUT to be applied to the target camera 101, the control unit 1201 transmits the first pixel value and the second pixel value from the patch pixel value extraction unit 205 and the first singular pixel value and the second singular pixel value estimated by the singularity extraction unit 1202 to the correction LUT generation unit 208. Furthermore, the control unit 1201 transmits information on the first dynamic range calculated by the dynamic range calculation unit 206 to the singular point extraction unit 1202. The singular point extraction unit 1202 estimates pixel values outside the dynamic range as each singular point, using the first dynamic range information received from the control unit 1201 and a correction LUT for calculating singular points generated by the correction LUT generation unit 208. The dynamic range information is not particularly limited, and may be, for example, the maximum pixel value of the first dynamic range.
[0047] FIG. 13 is a flowchart showing a process for generating a correction LUT for color matching between a target camera and a reference camera. FIG. 14 is an image diagram of gray gradation of the correction LUT. As shown in FIG. 13, in step S1301, the patch pixel value extraction unit 205 receives the reference image, the target image, and area information of the patches 31 to 54 of each image from the control unit 203. Then, the patch pixel value extraction unit 205 extracts a first pixel value based on the target image and area information of the patches 31 to 54 of the target image. In addition, the patch pixel value extraction unit 205 extracts a second pixel value based on the reference image and area information of the patches 31 to 54 of the reference image. After this extraction, the patch pixel value extraction unit 205 transmits each of the first pixel values and each of the second pixel values to the dynamic range calculation unit 206.
[0048] In step S1302, the dynamic range calculation unit 206 receives each of the first pixel values and each of the second pixel values from the patch pixel value extraction unit 205. Then, the dynamic range calculation unit 206 calculates the dynamic range of the area of the color chart 30 included in the target image (first image), that is, the first dynamic range, based on each of the first pixel values. After this calculation, the dynamic range calculation unit 206 transmits the first dynamic range to the control unit 203. As an example, similar to the first embodiment, the dynamic range of the color chart in the reference image is 4 to 144, and the dynamic range of the color chart in the target image is 4 to 160. Then, in this embodiment, similar to the first embodiment, the dynamic range of the color chart in the target image is used as the first dynamic range.
[0049] In step S1303, the control unit 1201 receives each of the first pixel values and each of the second pixel values from the patch pixel value extraction unit 205. Then, the control unit 1201 transmits each of the first pixel values and each of the second pixel values to the correction LUT generation unit 208 to generate a correction LUT for singularity calculation. Thereafter, the correction LUT generation unit 208 receives each of the first pixel values and each of the second pixel values from the control unit 1201. The correction LUT generation unit 208 sets the correction LUT created using the approximation equation of the multidimensional function as described above as the correction LUT for singularity calculation.
[0050] In step S1304, the control unit 1201 transmits information about the first dynamic range to the singularity extraction unit 1202. After that, the singularity extraction unit 1202 receives the information about the first dynamic range. Note that, as an example, the maximum pixel value of the first dynamic range of the target image is an RGB value (160, 160, 160). The singularity extraction unit 1202 estimates the first singularity based on the correction LUT for calculating singularities generated by the correction LUT generation unit 208 and the maximum pixel value of the first dynamic range received from the control unit 1201.
[0051] As shown in FIG. 14, a dashed line graph 1400 is drawn. The dashed line graph 1400 is a graph showing the gray scale of the correction LUT for calculating the singular point, which is generated by the correction LUT generating unit 208 using only the pixel values of the patch, that is, generated based on the formula (1), formula (4), and formula (5). In the dashed line graph 1400, it is recognized that the color curve (color shift) occurs, with the color decreasing in an arc from the vicinity of the pixel value 150, which is outside the dynamic range. In order to reduce this color curve, first, a first singular point is set based on the maximum pixel value of the first dynamic range. Specifically, the slope near the maximum pixel value in the first dynamic range is calculated, and based on the calculation result, a pixel value outside the first dynamic range is estimated as the pixel value of the first singular point (first singular pixel value). The slope can be calculated, for example, from two points, points 1401 and 1402. Note that point 1401 is the output value OUTm when the input value INm of the correction LUT for calculating the singular point is set. A point 1402 is an output value OUTn when an input value INn is a pixel value smaller than an input value INm. The slope T can be calculated by the following formula (6).
[0052] T=(OUTm-OUTn) / (INm-INn)...(6)
[0053] The correction LUT for calculating the singular points is generated by adding singular points, that is, based on formulas (1), (2), and (3). Hereinafter, an example will be described in which the output value for a gray scale input value of 160 is 157, and the output value for an input value of 144 is 149. When data other than lattice points is used as the input value, the output data can be interpolated using tetrahedral interpolation (triangular pyramid interpolation) or the like. The linear line near the maximum pixel value can be expressed by the following formula (7).
[0054] OUTp = T * INp + 77 =((157-149) / (160-144))*INp+77···(7)
[0055] Next, the singularity extraction unit 1202 calculates the singularity based on the formula (7). Here, a case where the point 1403 where the input value INp is 240 and the output value OUTp is 197 is taken as an example of the singularity is described. The input value INp is a pixel value of the target image, and the output value OUTp is a correction value for matching the target image to the reference image, that is, a pixel value of the reference image corresponding to the target image. Therefore, the second singularity of the reference image for the RGB value (240, 240, 240) of the first singularity of the target image is RGB value (197, 197, 197). Each of these RGB values is transmitted to the control unit 1201. The input value INp is a value that does not exceed the maximum value of the entire gradation (for example, 255 in the case of 8 bits), and when the output OUTp exceeds the maximum value of the entire gradation, it is rounded to the maximum value or a value that does not cause the output OUTp to exceed the maximum value.
[0056] As described above, in this embodiment, the maximum pixel value of the dynamic range is gray gradation as an example. In the case of mixed colors, for example, a linear function is calculated with the G value of the RGB value, and the G value outside the color chart is estimated based on the calculation result. Then, the R value and the B value are determined so that the ratio of the RGB value is equal to this G value.
[0057] 13, in step S1305, the control unit 1201 transmits the first pixel value, the first peculiar pixel value, the second pixel value, and the second peculiar pixel value to the correction LUT generation unit 208. This allows the correction LUT generation unit 208 to receive these pixel values. Then, the correction LUT generation unit 208 performs the same process as in step S704 described above based on the first pixel value, the second pixel value, the first peculiar pixel value, and the second peculiar pixel value, to generate a correction LUT to be applied to the target camera 101.
[0058] Each coefficient of the approximation equation for the reference image is obtained from the following equation (8).
[0059]
number
[0060] Each coefficient of the approximation equation for the target image is obtained from the following equation (9).
[0061]
number
[0062] FIG. 15 is an image diagram comparing gray scale data of the correction LUT. In FIG. 15, a correction LUT 1500 and a correction LUT 1501 showing the relationship between the input tone and the output tone are drawn. The correction LUT 1500 is a comparative example generated using only the pixel values of the patch without using the singular pixel values, that is, generated based on the formula (1), the formula (8), and the formula (9). On the other hand, the correction LUT 1501 is an embodiment generated by adding singular points, that is, generated based on the formula (1), the formula (2), and the formula (3). In the correction LUT 1500, it is recognized that the color falls in an arc from the pixel value 160, which is outside the dynamic range of the color chart, and color shift occurs. In the correction LUT 1501, it is recognized that the color bending outside the dynamic range of the color chart is reduced. In this way, in this embodiment, the color bending outside the dynamic range can be reduced, that is, color matching can be performed accurately.
[0063] In this embodiment, when performing color matching, for example, in combination with the first embodiment, a singular point extracted from an image and a predicted singular point may be used. For example, it is determined whether the pixel value of the singular point extracted from an image is closer to the maximum pixel value in the color chart or the pixel value of the predicted singular point. The method of this determination is not particularly limited, and for example, the difference between the pixel value of the singular point extracted from an image and the maximum pixel value of the color chart and the difference between the pixel value of the singular point extracted from an image and the pixel value of the predicted singular point are compared, and the one with the smaller difference may be determined to be closer. Then, as a result of this determination, if it is determined that the pixel value of the singular point extracted from an image is closer to the maximum pixel value in the color chart, the singular point extracted from an image and the predicted singular point may be used. On the other hand, if it is determined that the pixel value of the singular point extracted from an image is closer to the pixel value of the predicted singular point, only the singular point extracted from an image may be used. By using such a singular point, even if the pixel value of the singular point extracted from the image is small because the dynamic range of the entire image is relatively narrow, it is possible to estimate a point with a pixel value on the higher gradation side as the singular point, thereby making it possible to reduce color bending outside the dynamic range.
[0064] FIG. 16 is a diagram showing an example of setting a singular point. FIG. 16(a) is a diagram showing a case where a singular point 1602a extracted from within an image is closer to a maximum pixel value 1601 in a color chart than an estimated singular point 1603. FIG. 16(b) is a diagram showing a case where a singular point 1602b extracted from within an image is closer to an estimated singular point 1603 than a maximum pixel value 1601 in a color chart. As shown in FIG. 16(a), the singular point 1602a extracted from within an image is closer to a maximum pixel value 1601 in a color chart than an estimated singular point 1603. In this case, it is preferable to set the singular point 1602a and the singular point 1603 as the first singular point. As shown in FIG. 16(b), the singular point 1602b extracted from within an image is closer to an estimated singular point 1603 than a maximum pixel value 1601 in a color chart. In this case, it is preferable to set only the singular point 1602b as the first singular point.
[0065] Fig. 17 is a diagram showing an example of a setting menu screen for setting singular points. Fig. 18 is a diagram showing an example of displaying singular points on an image. Fig. 18(a) shows a reference image 1800a captured by the reference camera 100. Fig. 18(b) shows a target image 1800b captured by the target camera 101. In addition, the reference image 1800a and the target image 1800b each include a color chart 30.
[0066] As shown in FIG. 17, the setting menu screen 1700 includes a menu 1701, a menu 1702, a menu 1703, and a menu 1704. The menu 1701 is a section for setting the number of singular points (first singular points). The menu 1702 is a section for setting whether to use a singular point extracted from an image, to use an estimated singular point, or to use both as the type of singular point. The menu 1703 is a section for setting the maximum gradation value of the singular point (first singular point). The menus 1701 to 1703 allow the user to easily grasp what singular point is used to generate a correction LUT. In addition, it is possible to set a singular point taking into consideration the color accuracy in the color chart and the color accuracy outside the dynamic range. In addition, the menu 1704 is a section for selecting whether to display a singular point on an image. The menu 1704 can display two first singular points (first singular point 1801b and first singular point 1802b) on the target image 1800b (see FIG. 18(b)). This allows each first singular point to be easily understood. In addition, two second singular points (second singular point 1801a and second singular point 1802a) corresponding to the first singular point are displayed on the reference image 1800a (see FIG. 18(a)). This allows each second singular point to be easily understood. The color matching control device 200 may be configured to be able to select a singular point to be used from these singular points. That is, the color matching control device 200 may be configured to display a plurality of first singular point candidates on the screen, or to display a plurality of second singular point candidates on the screen. For example, when a plurality of first singular point candidates are displayed on the screen, a first singular point suitable for color matching can be arbitrarily selected.
[0067] The disclosure of each embodiment includes the following configurations, methods, and programs.
[0068] (Configuration 1) A color matching control device that performs color matching between images captured by a plurality of imaging devices, comprising: an acquisition means for acquiring a first image including a color chart area captured by a first imaging device included in the plurality of imaging devices, and a second image including a color chart area captured by a second imaging device included in the plurality of imaging devices; a first extraction means for extracting a pixel value of the color chart area included in the first image as a first pixel value, and extracting a pixel value of the color chart area included in the second image as a second pixel value; a calculation means for calculating a dynamic range of the color chart area included in the first image as a first dynamic range based on the first pixel value; a second extraction means for setting a predetermined pixel in an area of the first image excluding the color chart area as a first singular point based on the first dynamic range, and extracting a pixel value of the first singular point, and for setting a second singular point in the second image based on the first singular point, and extracting a pixel value of the second singular point; a generation means for generating parameters for performing the color matching based on the first pixel value, the second pixel value, the pixel value of the first singular point, and the pixel value of the second singular point. (Configuration 2) The color matching control device according to configuration 1, wherein the first singular point is a point having a maximum or minimum pixel value in an area of the first image excluding the color chart area. (Configuration 3) A color matching control device according to configuration 1 or 2, characterized in that the second singular point is a point with the same coordinates as the first singular point when the first image and the second image are superimposed on a common coordinate system. (Configuration 4) The color matching control device according to any one of configurations 1 to 3, wherein the pixel value of the first singular point is a pixel value outside the range of the first dynamic range. (Configuration 5) A color matching control device described in any one of configurations 1 to 4, characterized in that the first singular point is set at at least one of a point on the higher gradation side of the first dynamic range and a point on the lower gradation side of the first dynamic range. (Configuration 6) The color matching control device according to any one of configurations 1 to 5, wherein the first singular point is set based on a maximum pixel value of the first dynamic range. (Configuration 7) The number of the first singular points is set according to a ratio of the first dynamic range to the entire gradation in the first image; 7. The color matching control device according to any one of configurations 1 to 6, wherein the number of the second singular points set is set to be the same as the number of the first singular points set. (Configuration 8) A color matching control device described in any one of configurations 1 to 7, characterized in that the first extraction means extracts, when the color chart area included in the first image is divided into a plurality of patches, a pixel value of each of the patches as the first pixel value, and extracts, when the color chart area included in the second image is divided into a plurality of patches, a pixel value of each of the patches as the second pixel value. (Configuration 9) The number of the first singular points is set according to the number of patches when the color chart area included in the first image is divided into a plurality of patches; 9. The color matching control device according to configuration 8, wherein the number of the second singular points is set to be the same as the number of the first singular points. (Configuration 10) A color matching control device described in any one of configurations 1 to 9, characterized in that the second extraction means is configured to be capable of performing at least one of the operations of setting the first singular point and setting the number of the first singular points, or is configured to be capable of performing at least one of the operations of setting the second singular point and setting the number of the second singular points. (Configuration 11) The color matching control device described in Configuration 10, characterized in that the second extraction means displays candidates for the first singularity on a screen when at least one of the operations of setting the first singularity and setting the number of first singularities is performed, or displays candidates for the second singularity on a screen when at least one of the operations of setting the second singularity and setting the number of second singularities is performed. (Configuration 12) The color matching control device according to any one of configurations 1 to 11, wherein the parameters are generated by the generating means using approximations based on multidimensional functions. (Configuration 13) The color matching control device according to any one of configurations 1 to 12, wherein the generating means generates a lookup table as the parameters. (Configuration 14) The color matching control device according to any one of configurations 1 to 13, further comprising a display means for displaying the first singular point in the first image and the second singular point in the second image. (Method 1) A method for controlling a color matching control device that performs color matching between images captured by a plurality of image capture devices, comprising the steps of: an acquisition step of acquiring a first image including a color chart area captured by a first imaging device included in the plurality of imaging devices, and a second image including a color chart area captured by a second imaging device included in the plurality of imaging devices; a first extraction step of extracting a pixel value of the color chart area included in the first image as a first pixel value and extracting a pixel value of the color chart area included in the second image as a second pixel value; a calculation step of calculating a dynamic range of the color chart area included in the first image as a first dynamic range based on the first pixel value; a second extraction step of setting a predetermined pixel in an area of the first image excluding the color chart area as a first singular point based on the first dynamic range, and extracting a pixel value of the first singular point, and setting a second singular point in the second image based on the first singular point, and extracting a pixel value of the second singular point; a generating step of generating parameters for performing the color matching based on the first pixel value, the second pixel value, the pixel value of the first singular point, and the pixel value of the second singular point. (Program 1) A program for causing a computer to execute each means of the color matching control device according to configuration 1.
[0069] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the above-mentioned embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. The present invention can also be realized by supplying a program that realizes one or more functions of the above-mentioned embodiments to a system or device via a network or storage medium, and having one or more processors of a computer in the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that realizes one or more functions. [Explanation of symbols]
[0070] 30 Color Chart 10. Imaging device 100 Reference Camera 101 Target Camera 200 Color matching control device 201a Video receiving unit (acquisition means) 201b video receiving unit (acquisition means) 205 Patch pixel value extraction unit (first extraction means) 206 Dynamic range calculation unit (calculation means) 207 Singularity extraction unit (second extraction means) 208 Correction LUT generation unit (generation means)
Claims
1. A color matching control device that performs color matching between images captured by a plurality of imaging devices, an acquisition means for acquiring a first image including a color chart area captured by a first imaging device included in the plurality of imaging devices, and a second image including a color chart area captured by a second imaging device included in the plurality of imaging devices; a first extraction means for extracting a pixel value of the color chart area included in the first image as a first pixel value, and extracting a pixel value of the color chart area included in the second image as a second pixel value; a calculation means for calculating a dynamic range of the color chart area included in the first image as a first dynamic range based on the first pixel value; a second extraction means for setting a predetermined pixel in an area of the first image excluding the color chart area as a first singular point based on the first dynamic range, and extracting a pixel value of the first singular point, and for setting a second singular point in the second image based on the first singular point, and extracting a pixel value of the second singular point; a generation means for generating parameters for performing the color matching based on the first pixel value, the second pixel value, the pixel value of the first singular point, and the pixel value of the second singular point.
2. 2. The color matching control device according to claim 1, wherein the first singular point is a point having a maximum or minimum pixel value in an area of the first image excluding the color chart area.
3. 2. The color matching control device according to claim 1, wherein the second singular point is a point having the same coordinates as the first singular point when the first image and the second image are superimposed on a common coordinate system.
4. 2. The color matching control device according to claim 1, wherein the pixel value of the first singular point is a pixel value outside the range of the first dynamic range.
5. 2. The color matching control device according to claim 1, wherein the first singular point is set to at least one of a point on a higher gradation side than the first dynamic range and a point on a lower gradation side than the first dynamic range.
6. 2. The color matching control device according to claim 1, wherein the first singular point is set based on a maximum pixel value of the first dynamic range.
7. the number of the first singular points is set according to a ratio of the first dynamic range to the entire gradation in the first image; 2. The color matching control device according to claim 1, wherein the number of the second specific points is set to be the same as the number of the first specific points.
8. 2. The color matching control device according to claim 1, wherein the first extraction means extracts, as the first pixel value, a pixel value of each patch when the color chart area included in the first image is divided into a plurality of patches, and extracts, as the second pixel value, a pixel value of each patch when the color chart area included in the second image is divided into a plurality of patches.
9. the number of the first singular points is set according to the number of patches when the color chart area included in the first image is divided into a plurality of patches; 9. The color matching control device according to claim 8, wherein the number of the second specific points is set to be the same as the number of the first specific points.
10. 2. The color matching control device according to claim 1, wherein the second extraction means is configured to be capable of performing at least one of setting the first singular point and setting the number of the first singular points, or is configured to be capable of performing at least one of setting the second singular point and setting the number of the second singular points.
11. 11. The color matching control device according to claim 10, wherein the second extraction means displays candidates for the first singular point on a screen when at least one of an operation of setting the first singular point and a setting number of the first singular points is performed, or displays candidates for the second singular point on a screen when at least one of an operation of setting the second singular point and a setting number of the second singular points is performed.
12. 2. The color matching control device according to claim 1, wherein the parameters are generated by said generating means using approximations based on multidimensional functions.
13. 2. The color matching control device according to claim 1, wherein said generating means generates a look-up table as said parameters.
14. 2. The color matching control device according to claim 1, further comprising a display means for displaying the first singular point in the first image and the second singular point in the second image.
15. A method for controlling a color matching control device that performs color matching between images captured by a plurality of image capture devices, comprising: an acquisition step of acquiring a first image including a color chart area captured by a first imaging device included in the plurality of imaging devices, and a second image including a color chart area captured by a second imaging device included in the plurality of imaging devices; a first extraction step of extracting a pixel value of the color chart area included in the first image as a first pixel value and extracting a pixel value of the color chart area included in the second image as a second pixel value; a calculation step of calculating a dynamic range of the color chart area included in the first image as a first dynamic range based on the first pixel value; a second extraction step of setting a predetermined pixel in an area of the first image excluding the color chart area as a first singular point based on the first dynamic range, and extracting a pixel value of the first singular point, and setting a second singular point in the second image based on the first singular point, and extracting a pixel value of the second singular point; a generating step of generating parameters for performing the color matching based on the first pixel value, the second pixel value, the pixel value of the first singular point, and the pixel value of the second singular point.
16. A program for causing a computer to execute each of the means of the color matching control device according to claim 1.
Citation Information
Patent Citations
Image forming apparatus and image processing method
JP2009175281A
