US20040091147A1 - Image converting method and image converting apparatus - Google Patents

Image converting method and image converting apparatus Download PDF

Info

Publication number
US20040091147A1
US20040091147A1 US10/702,534 US70253403A US2004091147A1 US 20040091147 A1 US20040091147 A1 US 20040091147A1 US 70253403 A US70253403 A US 70253403A US 2004091147 A1 US2004091147 A1 US 2004091147A1
Authority
US
United States
Prior art keywords
chromaticity coordinate
converting
coordinate values
unit
color region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US10/702,534
Inventor
Nobuhito Matsushiro
Noboru Ota
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Data Corp filed Critical Oki Data Corp
Assigned to OKI DATA CORPORATION reassignment OKI DATA CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: MATSUSHIRO, NOBUHITO, OTA, NOBORU
Publication of US20040091147A1 publication Critical patent/US20040091147A1/en
Priority to US12/405,570 priority Critical patent/US7817853B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • G06T5/92
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • H04N1/60Colour correction or control
    • H04N1/6077Colour balance, e.g. colour cast correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • H04N1/60Colour correction or control
    • H04N1/62Retouching, i.e. modification of isolated colours only or in isolated picture areas only
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Definitions

  • the invention relates to an image converting method and an image converting apparatus for converting image data influenced by a colored light source upon photographing into image data obtained under an ideal white light source.
  • gray world an image converting method called a gray world (hereinafter, simply referred to as a gray world) is used to eliminate such an influence of the colored light source.
  • the gray world it is presumed that a color obtained by averaging chromaticity coordinate values of respective pixels of the image data becomes chromaticity coordinate values showing achromatic gray, and by converting the image data by using such chromaticity coordinate values showing the achromatic gray, that is, by executing what is called a chromatic adaptation conversion, bluishness is eliminated. That is, the gray world is a method of obtaining the same image data as that photographed under an ideal white light source in which spectra are uniformed as shown in FIG. 6. A technique using the gray world has been disclosed in a patent literature 1 (JPA-2002-232901).
  • the conversion is performed to the image data by using the chromaticity coordinate values obtained by averaging the chromaticity coordinate values of the respective pixels. That is, the averaging of the chromaticity coordinate values of the respective pixels is performed to obtain average values of the chromaticity coordinate values which take into consideration of a frequency of occurrence of the color of each pixel. Therefore, average values of chromaticity coordinate values of image data obtained by photographing, for example, a small white sandy beach, a blue sea, and a blue sky, as objects, by using a digital camera or the like are not chromaticity coordinate values showing the achromatic gray but chromaticity coordinate values which are deviated to blue and based on blue. Therefore, even if the conversion is executed by using those chromaticity coordinate values, the image data cannot be properly converted into the image data which is obtained under the ideal white light source.
  • an image converting method comprising the steps of: converting chromaticity coordinate values which each pixel of an input image consisting of a plurality of pixels has into a 2-dimensional chromaticity coordinate plane and obtaining 2-dimensional conversion chromaticity coordinate values of each pixel; obtaining an outline of a color region defined by the 2-dimensional conversion chromaticity coordinate values of the plurality of pixels converted into the 2-dimensional chromaticity coordinate plane; obtaining 2-dimensional conversion chromaticity coordinate values, on a 2-dimensional chromaticity coordinate plane, of a barycenter of an area of a region which is specified by the outline of the color region; and executing a color conversion of the input image by using the 2-dimensional conversion chromaticity coordinate values of the barycenter as a new coordinate origin.
  • Each pixel of an input image is converted into 2-dimensional conversion chromaticity coordinate values obtained by projecting conversion chromaticity coordinate values obtained by converting each pixel by using parameters for converting into chromaticity coordinate values onto a unit plane, in a color region including the 2-dimensional conversion chromaticity coordinate values, parameter values in which an area of the color region becomes the maximum are obtained, and the input image is converted by the obtained parameter values.
  • Each pixel of an input image is converted into 2-dimensional conversion chromaticity coordinate values obtained by projecting conversion chromaticity coordinate values obtained by converting each pixel by using parameters for converting into chromaticity coordinate values onto a unit plane, parameter values in which a barycenter of a color region including the 2-dimensional conversion chromaticity coordinate values is set to 1 ⁇ 3 are obtained, and the input image is converted by the obtained parameter values.
  • the parameter values can be obtained when the barycenter lies within a predetermined threshold value including 1 ⁇ 3.
  • an image converting apparatus comprising: a parameter setting unit which sets parameters for converting each pixel of an input image into predetermined chromaticity coordinate values; a chromaticity coordinate converting unit which obtains conversion chromaticity coordinate values obtained by converting each of the pixels on the basis of the parameters set by the parameter setting unit; a color region obtaining unit which obtains a color region including 2-dimensional conversion chromaticity coordinate values obtained by projecting each of the conversion chromaticity coordinate values onto a unit plane; an area calculation processing unit which calculates an area of the color region with respect to the parameters and obtains parameter values at the time when the calculated area value becomes the maximum; and an image converting unit which converts the input image on the basis of the obtained parameter values.
  • an image converting apparatus comprising: a parameter setting unit which sets parameters for converting each pixel of an input image into predetermined chromaticity coordinate values; a chromaticity coordinate converting unit which obtains conversion chromaticity coordinate values obtained by converting each of the pixels on the basis of the parameters set by the parameter setting unit; a color region obtaining unit which obtains a color region including 2-dimensional conversion chromaticity coordinate values obtained by projecting each of the conversion chromaticity coordinate values onto a unit plane so that additive color mixture can be performed; a barycenter calculation processing unit which calculates a barycenter of the color region with respect to the parameters and obtains parameter values at the time when the calculated barycenter is set to 1 ⁇ 3; and an image converting unit which converts the input image on the basis of the obtained parameter values.
  • the barycenter calculation processing unit can obtain the parameter values at the time when the barycenter lies within a predetermined threshold value including 1 ⁇ 3.
  • FIG. 1 is a block diagram of an image converting apparatus according to an embodiment 1;
  • FIG. 2 is a diagram showing conversion chromaticity coordinate values (R′, G′, B′);
  • FIG. 3 is a diagram showing 2-dimensional conversion chromaticity coordinate values (r′, g′);
  • FIG. 4 is a diagram showing a color region
  • FIG. 5 is a flowchart showing the operation of the image converting apparatus according to the embodiment 1;
  • FIG. 6 is a diagram showing spectral distribution of an ideal white light source
  • FIG. 7 is a block diagram of an image converting apparatus according to an embodiment 2.
  • FIG. 8 is a flowchart showing the operation of the image converting apparatus according to the embodiment 2.
  • FIG. 1 is a block diagram of an image converting apparatus 10 according to an embodiment 1.
  • the image converting apparatus 10 comprises: an input image holding unit 11 which holds an input image, that is, image data to be converted; a parameter setting unit 12 which sets predetermined parameters for converting the image data held in the input image holding unit 11 ; a chromaticity coordinate converting unit 13 which obtains conversion chromaticity coordinate values by converting chromaticity coordinate values showing a color of each pixel of the image data on the basis of the parameters set by the parameter setting unit 12 ; a color region obtaining unit 14 which obtains a region, as a color region, including 2-dimensional conversion chromaticity coordinate values, in a convex polygonal shape, obtained by projecting the conversion chromaticity coordinate values formed by the chromaticity coordinate converting unit 13 onto a unit plane so that additive color mixture can be performed; an area calculation processing unit 15 which calculates an area of the color region obtained by the color region obtaining unit 14 and obtains parameter values at the time when the calculated area becomes the maximum; and an image converting unit 16 which converts the input image data by using the
  • the input image holding unit 11 holds image data of an object photographed by a digital camera or the like.
  • the image data is constructed by a plurality of pixels and each pixel is shown by the RGB calorimetric system which has conventionally been known.
  • the parameter setting unit 12 performs a conversion to (R, G, B) values of the pixel on a pixel unit basis of the image data held in the input image holding unit 11 by using coefficients ( ⁇ , ⁇ , ⁇ ) of three channels as parameter values. Values of ⁇ , ⁇ , and ⁇ are changed at predetermined sampling intervals within ranges of 0 ⁇ max , 0 ⁇ max , and 0 ⁇ max , respectively.
  • 0.05 unit is used as a sampling interval and 2 is used as values of ⁇ max , ⁇ max , and ⁇ max .
  • 2-dimensional conversion chromaticity coordinate values (r′, g′) in which the obtained (r′, g′, b′) are projected onto a 2-dimensional plane (2-dimensional chromaticity coordinate plane) are obtained.
  • the 2-dimensional conversion chromaticity coordinate values (r′, g′) are projected onto a (r, g) plane shown by an R axis and a G axis.
  • the (r, g) plane is shown by an r axis and a g axis.
  • the color region obtaining unit 14 obtains a region, as a color region, where an outermost shell of the 2-dimensional conversion chromaticity coordinate values (r′, g′) is surrounded by an outline showing a convex polygon (n-angled polygon) in order to include the 2-dimensional conversion chromaticity coordinate values (r′, g′) so that additive color mixture can be performed.
  • the color region obtained by the color region obtaining unit 14 shows a color gamut which can be expressed by the image data to which the conversion has been made by using the parameters. In the converted image data, therefore, the color region shows a color gamut of the colors which are used in the image data. Even in the image data of an object which is unbalanced in color arrangement, for example, a bluish object to be photographed, the blue color is not particularly reflected to the image data but the color region simply shows a color gamut of the colors which are used in the image data.
  • the area calculation processing unit 15 obtains an area of the color region.
  • n the number of vertices of a polygon showing the color region
  • the area of the color region is calculated by using the following equation (4) obtained by further converting the equation (3).
  • the area calculation processing unit 15 holds the calculated area into the storing unit. Such a series of processes is repeated for each of the various parameters set by the parameter setting unit 12 . Therefore, areas of the color regions corresponding to all of the parameters are calculated and the maximum value of the calculated areas of the color regions is held in the storing unit. At this time, together with the maximum value, the parameter values ( ⁇ , ⁇ , ⁇ ) corresponding to the color region of the maximum area are held in the storing unit.
  • the area calculation processing unit 15 holds the area value of the color region and the parameter values ( ⁇ , ⁇ , ⁇ ) set by the parameter setting unit 12 into the storing unit without making the comparison of the area values.
  • the color region shows the color gamut which can be expressed by the image data to which the conversion has been made by using the parameters as mentioned above, if the area of the color region is large, the color gamut which can be expressed by the image data is widened. Therefore, in image data obtained by photographing an object under, for example, a reddish light source serving as a colored light source shown in FIG. 6, the color gamut which can be expressed is narrowed due to reddishness. However, in image data obtained by photographing an object under the ideal white light source, since it is not influenced by a hue of the colored light source, the color gamut which can be expressed, that is, the area of the color region is widened.
  • the color region is not much influenced by the color arrangement balance of the object.
  • the parameter values ( ⁇ , ⁇ , ⁇ ) obtained on the basis of the area of the color region are not directly influenced by the color arrangement balance of the object either.
  • the image converting unit 16 executes a conversion to the image data held in the input image holding unit 11 by using the parameter values ( ⁇ , ⁇ , ⁇ ) held in the storing unit mentioned above, that is, the parameter values in which the area of the color region becomes the maximum. Owing to such a conversion, the image data is converted to obtain a state as if the object were photographed under the ideal white light source.
  • Image data of an object photographed by a digital camera or the like is obtained as an input image and held in the input image holding unit 11 (step S 11 ).
  • the chromaticity coordinate converting unit 13 executes a conversion to the chromaticity coordinate values (R, G, B) of each pixel of the image data held in the input image holding unit 11 by using the parameters ( ⁇ , ⁇ , ⁇ ) set by the parameter setting unit 12 , thereby obtaining the conversion chromaticity coordinate values (R′, G′, B′) (step S 12 ).
  • the color region obtaining unit 14 projects the conversion chromaticity coordinate values (R′, G′, B′) onto the (r, g) plane as a unit plane, thereby obtaining the 2-dimensional conversion chromaticity coordinate values (r′, g′) (step S 13 ).
  • the color region obtaining unit 14 obtains a convex polygonal region, as a color region, including the 2-dimensional conversion chromaticity coordinate values (r′, g′) plotted onto the (r, g) plane so that additive color mixture can be performed (step S 14 ).
  • the area of the color region is calculated by the area calculation processing unit 15 by using the equation (4) (step S 15 ).
  • the area calculation processing unit 15 compares the calculated area with the area value held in the storing unit not shown in FIG. 1 (step S 16 ).
  • the storing unit holds the area value of the maximum color region among the area values of the color regions obtained with respect to the various parameters and the parameter values which correspond to such an area value and were used when the conversion is performed to the image data by the chromaticity coordinate converting unit 13 .
  • the area calculation processing unit 15 executes a process in step S 18 without updating the contents held in the storing unit.
  • step S 18 whether the comparison between the area of each color region obtained every parameter and the value held in the storing unit has been finished or not is discriminated. That is, the parameters ( ⁇ , ⁇ , ⁇ ) are changed at predetermined sampling intervals within the ranges of 0 ⁇ max , 0 ⁇ max , and 0 ⁇ max , respectively, and in the color regions in all of the changed parameters, whether the maximum area value among the color regions has completely been obtained or not is discriminated (step S 18 ).
  • the processing routine is returned to the process in step S 11 .
  • the parameters ( ⁇ , ⁇ , ⁇ ) are changed at the predetermined sampling intervals by the parameter setting unit 12 and the processes are executed in a manner similar to those mentioned above.
  • the image converting unit 16 executes a conversion to the image data held in the input image holding unit 11 by using the parameter values corresponding to the color region of the maximum area value held in the storing unit.
  • the image converting apparatus 10 of the invention therefore, by obtaining the parameter values ( ⁇ , ⁇ , ⁇ ) in which the area of the color region becomes the maximum and executing the conversion to the image data by using the obtained parameter values ( ⁇ , ⁇ , ⁇ ), the image data in which the color gamut which is expressed is narrowed due to the influence of the colored light source can be converted into the image data in which the color gamut which is expressed becomes widest, that is, the image data obtained under the ideal white light source.
  • the parameter values ( ⁇ , ⁇ , ⁇ ) are obtained on the basis of the area of the color region showing the color gamut which can be expressed by the image data to be converted without being directly influenced by the color arrangement balance of the object. Therefore, a drawback such that the image data is influenced by the degrees of the chromaticity coordinate values of each pixel of the image data to be converted as in the case of the conventional gray world is eliminated. Thus, the image conversion can be properly executed even to the image data obtained by photographing the object which is unbalanced in color arrangement.
  • the correction is made by using the average values of the chromaticity coordinate values of each pixel of the image data. Therefore, since the frequency of occurrence of the expressing color is considered, the image data obtained by photographing the object which is unbalanced in color arrangement cannot be properly corrected.
  • the frequency of occurrence of the expressing color is not considered but the color region shows the color gamut expressed in the image data. Therefore, since the foregoing degrees are not reflected to such a color region, the degrees are not reflected to a barycenter of the color region either.
  • FIG. 7 is a block diagram of an image converting apparatus 20 according to the embodiment 2.
  • the image converting apparatus 20 of the embodiment 2 has a construction using a barycenter calculation processing unit 17 in place of the area calculation processing unit 15 in the embodiment 1.
  • the image converting apparatus 20 comprises: the input image holding unit 11 which holds the image data to be converted; the parameter setting unit 12 which sets the various parameters ( ⁇ , ⁇ , ⁇ ) for executing the conversion to the image data held in the input image holding unit 11 ; the chromaticity coordinate converting unit 13 which obtains the conversion chromaticity coordinate values (R′, G′, B′) by converting the chromaticity coordinate values showing the color of each pixel of the image data on the basis of the parameters set by the parameter setting unit 12 ; the color region obtaining unit 14 which obtains a region, as a color region, including the 2-dimensional conversion chromaticity coordinate values (r′, g′), in a convex polygonal shape, obtained by projecting the conversion chromaticity coordinate values formed by the chromaticity coordinate converting unit 13 onto the unit plane so that the additive color mixture can be performed; the barycenter calculation processing unit 17 which calculates the barycenter of the color region obtained by the color region obtaining unit 14 and obtains parameter values at the
  • the barycenter calculation processing unit 17 obtains the parameters ( ⁇ , ⁇ , ⁇ ) at the time when the barycenter of the color region obtained by the color region obtaining unit 14 lies within the predetermined threshold value including 1 ⁇ 3.
  • the image data obtained under the ideal white light source can be obtained by converting the image data by using the obtained parameters as will be explained by using equations.
  • n the number of vertices of the polygon showing the color region
  • the equations (6) and (7) indicate the extremal parameter values ( ⁇ and ⁇ ) at the time when the area is maximized, respectively.
  • equations (8) and (9) are obtained by rearranging the equations (6) and (7).
  • Equation (3) a right side of each of the equations (8) and (9) indicates a double area of the color region. Therefore, the equations (8) and (9) are simplified to the following equations (10) and (11).
  • a barycenter (r′ c , g′ c ) of the color region whose area is maximized is set to 1 ⁇ 3.
  • each value of R, G, and B indicates 1 ⁇ 3 and it coincides with the barycenter of the color region mentioned above.
  • the barycenter of the color region of the ideal white light source is also set to 1 ⁇ 3.
  • FIG. 4 shows a barycenter (C) of the color region mentioned above.
  • FIG. 4 also shows chromaticity coordinate values P obtained by the conventional gray world.
  • the chromaticity coordinate values of each pixel are shown by a dot in the color region shown in FIG. 4.
  • the gray world which takes into consideration of the frequency of occurrence of the chromaticity coordinate values of each pixel
  • the coordinate values P which are away from the coordinate values C indicative of the barycenter of the color region of the ideal white light source are shown.
  • Image data of an object photographed by a digital camera or the like is obtained as an input image and held in the input image holding unit 11 (step S 21 ).
  • the chromaticity coordinate converting unit 13 executes a conversion to the chromaticity coordinate values (R, G, B) of each pixel of the image data held in the input image holding unit 11 by using the parameters ( ⁇ , ⁇ , ⁇ ) set by the parameter setting unit 12 , thereby obtaining the conversion chromaticity coordinate values (R′, G′, B′) (step S 22 ).
  • the color region obtaining unit 14 projects the conversion chromaticity coordinate values (R′, G′, B′) onto the (r, g) plane as a unit plane, thereby obtaining the 2-dimensional conversion chromaticity coordinate values (r′, g′) (step S 23 ).
  • the color region obtaining unit 14 obtains a convex polygonal region, as a color region, where the 2-dimensional conversion chromaticity coordinate values (r′, g′) plotted onto the (r, g) plane are included so that additive color mixture can be performed (step S 24 ).
  • the barycenter calculation processing unit 17 discriminates whether the calculated coordinates of the barycenter lie within a predetermined threshold value or not as shown by the following inequalities (17) (step S 26 ).
  • the barycenter calculation processing unit 17 obtains the parameter values ( ⁇ , ⁇ , ⁇ ) set by the parameter setting unit 12 .
  • the image converting unit 16 executes a conversion to the image data held in the input image holding unit 11 by using the parameter values corresponding to the color region where the barycenter lies within the predetermined threshold value including 1 ⁇ 3, that is, the parameter values ( ⁇ , ⁇ , ⁇ ) obtained from the parameter setting unit 12 in step S 26 .
  • the coordinate values showing the barycenter of the color region are set to a new coordinate origin and the conversion is executed to the input image.
  • the parameter values ( ⁇ , ⁇ , ⁇ ) in which the barycenter at the time when the area of the color region showing the color gamut of the image data to be converted is maximized lies within the predetermined threshold value including 1 ⁇ 3 are obtained and the conversion is performed to the image data by using the obtained parameter values ( ⁇ , ⁇ , ⁇ ). Therefore, since the degrees of the chromaticity coordinate values of each pixel of the image data are not considered, even the image data obtained by photographing the object which is unbalanced in color arrangement can be converted into the image data obtained by photographing the object under the ideal white light source.
  • the convex polygonal color region including the 2-dimensional conversion chromaticity coordinate values (r′, g′) is obtained every parameters ( ⁇ , ⁇ , ⁇ ) which are set to various values so that the additive color mixture can be performed.
  • the arithmetic operating processes for converting the image data by using the parameters every various parameters ( ⁇ , ⁇ , ⁇ ) and obtaining the color region where the converted chromaticity coordinate values are projected onto the unit plane can be omitted.
  • the parameter values in which the area of the color region becomes the maximum or the parameter values in which the barycenter at the time when the area of the color region is maximized is set to 1 ⁇ 3 are obtained and the chromatic coordinate conversion is performed to the input image by using the obtained parameter values.
  • the degrees of the chromatic coordinate values of each pixel of the image data are not considered, even the image data obtained by photographing the object which is unbalanced in color arrangement can be converted into the image data obtained under the ideal white light source.

Abstract

An image converting apparatus has: a parameter setting unit which sets parameters for converting each pixel of an input image into predetermined chromaticity coordinate values; a chromaticity coordinate converting unit which obtains conversion chromaticity coordinate values obtained by converting each pixel by the set parameters; a color region obtaining unit which obtains a color region including 2-dimensional conversion chromaticity coordinate values obtained by projecting each conversion chromaticity coordinate value onto a unit plane; an area calculation processing unit which calculates an area of the color region obtained every parameter and obtains parameter values at the time of the maximum area value; and an image converting unit which converts the input image by the parameter values. The image data unbalanced in color arrangement of an object is converted into image data obtained under an ideal white light source.

Description

    BACKGROUND OF THE INVENTION
  • 1. Field of the Invention [0001]
  • The invention relates to an image converting method and an image converting apparatus for converting image data influenced by a colored light source upon photographing into image data obtained under an ideal white light source. [0002]
  • 2. Related Background Art [0003]
  • When an object to be photographed is photographed by using, for example, a fluorescent lamp as a light source, image data in which the object is bluish is obtained. An image converting method called a gray world (hereinafter, simply referred to as a gray world) is used to eliminate such an influence of the colored light source. [0004]
  • According to the gray world, it is presumed that a color obtained by averaging chromaticity coordinate values of respective pixels of the image data becomes chromaticity coordinate values showing achromatic gray, and by converting the image data by using such chromaticity coordinate values showing the achromatic gray, that is, by executing what is called a chromatic adaptation conversion, bluishness is eliminated. That is, the gray world is a method of obtaining the same image data as that photographed under an ideal white light source in which spectra are uniformed as shown in FIG. 6. A technique using the gray world has been disclosed in a patent literature 1 (JPA-2002-232901). [0005]
  • According to the conventional gray world, the conversion is performed to the image data by using the chromaticity coordinate values obtained by averaging the chromaticity coordinate values of the respective pixels. That is, the averaging of the chromaticity coordinate values of the respective pixels is performed to obtain average values of the chromaticity coordinate values which take into consideration of a frequency of occurrence of the color of each pixel. Therefore, average values of chromaticity coordinate values of image data obtained by photographing, for example, a small white sandy beach, a blue sea, and a blue sky, as objects, by using a digital camera or the like are not chromaticity coordinate values showing the achromatic gray but chromaticity coordinate values which are deviated to blue and based on blue. Therefore, even if the conversion is executed by using those chromaticity coordinate values, the image data cannot be properly converted into the image data which is obtained under the ideal white light source. [0006]
  • SUMMARY OF THE INVENTION
  • It is, therefore, an object of the invention to provide an image converting method and an image converting apparatus which can convert image data whose photographed object is unbalanced in color arrangement into the image data which is obtained under an ideal white light source. [0007]
  • According to the first aspect of the invention, to accomplish the above object, there is provided an image converting method comprising the steps of: converting chromaticity coordinate values which each pixel of an input image consisting of a plurality of pixels has into a 2-dimensional chromaticity coordinate plane and obtaining 2-dimensional conversion chromaticity coordinate values of each pixel; obtaining an outline of a color region defined by the 2-dimensional conversion chromaticity coordinate values of the plurality of pixels converted into the 2-dimensional chromaticity coordinate plane; obtaining 2-dimensional conversion chromaticity coordinate values, on a 2-dimensional chromaticity coordinate plane, of a barycenter of an area of a region which is specified by the outline of the color region; and executing a color conversion of the input image by using the 2-dimensional conversion chromaticity coordinate values of the barycenter as a new coordinate origin. [0008]
  • Each pixel of an input image is converted into 2-dimensional conversion chromaticity coordinate values obtained by projecting conversion chromaticity coordinate values obtained by converting each pixel by using parameters for converting into chromaticity coordinate values onto a unit plane, in a color region including the 2-dimensional conversion chromaticity coordinate values, parameter values in which an area of the color region becomes the maximum are obtained, and the input image is converted by the obtained parameter values. [0009]
  • Each pixel of an input image is converted into 2-dimensional conversion chromaticity coordinate values obtained by projecting conversion chromaticity coordinate values obtained by converting each pixel by using parameters for converting into chromaticity coordinate values onto a unit plane, parameter values in which a barycenter of a color region including the 2-dimensional conversion chromaticity coordinate values is set to ⅓ are obtained, and the input image is converted by the obtained parameter values. [0010]
  • The parameter values can be obtained when the barycenter lies within a predetermined threshold value including ⅓. [0011]
  • According to the second aspect of the invention, there is provided an image converting apparatus comprising: a parameter setting unit which sets parameters for converting each pixel of an input image into predetermined chromaticity coordinate values; a chromaticity coordinate converting unit which obtains conversion chromaticity coordinate values obtained by converting each of the pixels on the basis of the parameters set by the parameter setting unit; a color region obtaining unit which obtains a color region including 2-dimensional conversion chromaticity coordinate values obtained by projecting each of the conversion chromaticity coordinate values onto a unit plane; an area calculation processing unit which calculates an area of the color region with respect to the parameters and obtains parameter values at the time when the calculated area value becomes the maximum; and an image converting unit which converts the input image on the basis of the obtained parameter values. [0012]
  • According to the third aspect of the invention, there is provided an image converting apparatus comprising: a parameter setting unit which sets parameters for converting each pixel of an input image into predetermined chromaticity coordinate values; a chromaticity coordinate converting unit which obtains conversion chromaticity coordinate values obtained by converting each of the pixels on the basis of the parameters set by the parameter setting unit; a color region obtaining unit which obtains a color region including 2-dimensional conversion chromaticity coordinate values obtained by projecting each of the conversion chromaticity coordinate values onto a unit plane so that additive color mixture can be performed; a barycenter calculation processing unit which calculates a barycenter of the color region with respect to the parameters and obtains parameter values at the time when the calculated barycenter is set to ⅓; and an image converting unit which converts the input image on the basis of the obtained parameter values. [0013]
  • The barycenter calculation processing unit can obtain the parameter values at the time when the barycenter lies within a predetermined threshold value including ⅓. [0014]
  • The above and other objects and features of the present invention will become apparent from the following detailed description and the appended claims with reference to the accompanying drawings.[0015]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a block diagram of an image converting apparatus according to an [0016] embodiment 1;
  • FIG. 2 is a diagram showing conversion chromaticity coordinate values (R′, G′, B′); [0017]
  • FIG. 3 is a diagram showing 2-dimensional conversion chromaticity coordinate values (r′, g′); [0018]
  • FIG. 4 is a diagram showing a color region; [0019]
  • FIG. 5 is a flowchart showing the operation of the image converting apparatus according to the [0020] embodiment 1;
  • FIG. 6 is a diagram showing spectral distribution of an ideal white light source; [0021]
  • FIG. 7 is a block diagram of an image converting apparatus according to an [0022] embodiment 2; and
  • FIG. 8 is a flowchart showing the operation of the image converting apparatus according to the [0023] embodiment 2.
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • Embodiments of the invention will be described in detail hereinbelow with reference to the drawings. [0024]
  • <[0025] Embodiment 1>
  • FIG. 1 is a block diagram of an [0026] image converting apparatus 10 according to an embodiment 1.
  • The [0027] image converting apparatus 10 comprises: an input image holding unit 11 which holds an input image, that is, image data to be converted; a parameter setting unit 12 which sets predetermined parameters for converting the image data held in the input image holding unit 11; a chromaticity coordinate converting unit 13 which obtains conversion chromaticity coordinate values by converting chromaticity coordinate values showing a color of each pixel of the image data on the basis of the parameters set by the parameter setting unit 12; a color region obtaining unit 14 which obtains a region, as a color region, including 2-dimensional conversion chromaticity coordinate values, in a convex polygonal shape, obtained by projecting the conversion chromaticity coordinate values formed by the chromaticity coordinate converting unit 13 onto a unit plane so that additive color mixture can be performed; an area calculation processing unit 15 which calculates an area of the color region obtained by the color region obtaining unit 14 and obtains parameter values at the time when the calculated area becomes the maximum; and an image converting unit 16 which converts the input image data by using the parameter values obtained by the area calculation processing unit 15.
  • Subsequently, each unit will be explained. [0028]
  • The input [0029] image holding unit 11 holds image data of an object photographed by a digital camera or the like. The image data is constructed by a plurality of pixels and each pixel is shown by the RGB calorimetric system which has conventionally been known.
  • The [0030] parameter setting unit 12 performs a conversion to (R, G, B) values of the pixel on a pixel unit basis of the image data held in the input image holding unit 11 by using coefficients (ρ, γ, β) of three channels as parameter values. Values of ρ, γ, and β are changed at predetermined sampling intervals within ranges of 0<ρ<ρmax, 0<γ<γmax, and 0<β<βmax, respectively.
  • For example, 0.05 unit is used as a sampling interval and [0031] 2 is used as values of ρmax, γmax, and βmax. The narrower the sampling interval is and the larger the values of ρmax, γmax, and βmax are set, the larger an amount of arithmetic operating processes, which will be explained hereinlater, increases. Therefore, it is preferable to properly set them in accordance with arithmetic operating processing ability.
  • Results obtained by executing a conversion to chromaticity coordinate values (R, G, B) of each pixel on the basis of the parameters (ρ, γ, β) are assumed to be conversion chromaticity coordinate values (R′, G′, B′) and their relations are shown by the following equations (1). [0032]
  • R′=ρ·R G′=γ·G B′=β·B   (1)
  • When the conversion chromaticity coordinate values (R′, G′, B′) are received from the chromaticity [0033] coordinate converting unit 13, the color region obtaining unit 14 executes a conversion shown by the following equations (2) in order to show the conversion chromaticity coordinate values (R′, G′, B′) onto a unit plane shown by a relation (R+G+B=1).
  • r′=R′/(R′+G′+B′) g′=G′/(R′+G′+B′) b′=B′/(R′+G′+B′)   (2)
  • The relations between (r′, g′, b′) obtained by the above conversion and the conversion chromaticity coordinate values (R′, G′, B′) are shown in FIG. 2 in which RGB are assumed to be coordinate axes. [0034]
  • Further, 2-dimensional conversion chromaticity coordinate values (r′, g′) in which the obtained (r′, g′, b′) are projected onto a 2-dimensional plane (2-dimensional chromaticity coordinate plane) are obtained. As shown in FIG. 3, the 2-dimensional conversion chromaticity coordinate values (r′, g′) are projected onto a (r, g) plane shown by an R axis and a G axis. The (r, g) plane is shown by an r axis and a g axis. An explanation will be made hereinbelow on the assumption that the 2-dimensional conversion chromaticity coordinate values (r′, g′) are shown on such an rg coordinate system. [0035]
  • When the 2-dimensional conversion chromaticity coordinate values (r′, g′) corresponding to all pixels are obtained, as shown in FIG. 4, the color [0036] region obtaining unit 14 obtains a region, as a color region, where an outermost shell of the 2-dimensional conversion chromaticity coordinate values (r′, g′) is surrounded by an outline showing a convex polygon (n-angled polygon) in order to include the 2-dimensional conversion chromaticity coordinate values (r′, g′) so that additive color mixture can be performed.
  • The color region obtained by the color [0037] region obtaining unit 14 shows a color gamut which can be expressed by the image data to which the conversion has been made by using the parameters. In the converted image data, therefore, the color region shows a color gamut of the colors which are used in the image data. Even in the image data of an object which is unbalanced in color arrangement, for example, a bluish object to be photographed, the blue color is not particularly reflected to the image data but the color region simply shows a color gamut of the colors which are used in the image data.
  • After the color region is obtained, the area [0038] calculation processing unit 15 obtains an area of the color region. The area of the color region is shown by the following equation (3). S = 1 2 [ r 1 g 1 r 2 g 2 + r 2 g 2 r 3 g 3 + + r n g n r 1 g 1 ] ( 3 )
    Figure US20040091147A1-20040513-M00001
  • where, n: the number of vertices of a polygon showing the color region [0039]
  • The area of the color region is calculated by using the following equation (4) obtained by further converting the equation (3). [0040] S = 1 2 i = 1 n ρ · r i + γ · g i + 1 - ρ · r i + 1 + γ · g i ( ρ · r i + γ · g i + β · b i ) ( ρ · r i + 1 + γ · g i + 1 + β · b i + 1 ) ( 4 )
    Figure US20040091147A1-20040513-M00002
  • If the calculated area is larger than an area held in a storing unit (not shown), the area [0041] calculation processing unit 15 holds the calculated area into the storing unit. Such a series of processes is repeated for each of the various parameters set by the parameter setting unit 12. Therefore, areas of the color regions corresponding to all of the parameters are calculated and the maximum value of the calculated areas of the color regions is held in the storing unit. At this time, together with the maximum value, the parameter values (ρ, γ, β) corresponding to the color region of the maximum area are held in the storing unit.
  • When the area value is calculated for the first time, since the area value to be compared with is not held in the storing unit, the area [0042] calculation processing unit 15 holds the area value of the color region and the parameter values (ρ, γ, β) set by the parameter setting unit 12 into the storing unit without making the comparison of the area values.
  • Since the color region shows the color gamut which can be expressed by the image data to which the conversion has been made by using the parameters as mentioned above, if the area of the color region is large, the color gamut which can be expressed by the image data is widened. Therefore, in image data obtained by photographing an object under, for example, a reddish light source serving as a colored light source shown in FIG. 6, the color gamut which can be expressed is narrowed due to reddishness. However, in image data obtained by photographing an object under the ideal white light source, since it is not influenced by a hue of the colored light source, the color gamut which can be expressed, that is, the area of the color region is widened. [0043]
  • Further, the color region is not much influenced by the color arrangement balance of the object. The parameter values (ρ, γ, β) obtained on the basis of the area of the color region are not directly influenced by the color arrangement balance of the object either. [0044]
  • The [0045] image converting unit 16 executes a conversion to the image data held in the input image holding unit 11 by using the parameter values (ρ, γ, β) held in the storing unit mentioned above, that is, the parameter values in which the area of the color region becomes the maximum. Owing to such a conversion, the image data is converted to obtain a state as if the object were photographed under the ideal white light source.
  • Subsequently, the operation of the [0046] image converting apparatus 10 of the invention will be described with reference to a flowchart of FIG. 5.
  • Image data of an object photographed by a digital camera or the like is obtained as an input image and held in the input image holding unit [0047] 11 (step S11).
  • The chromaticity coordinate converting [0048] unit 13 executes a conversion to the chromaticity coordinate values (R, G, B) of each pixel of the image data held in the input image holding unit 11 by using the parameters (ρ, γ, β) set by the parameter setting unit 12, thereby obtaining the conversion chromaticity coordinate values (R′, G′, B′) (step S12).
  • After the conversion chromaticity coordinate values (R′, G′, B′) are obtained, the color [0049] region obtaining unit 14 projects the conversion chromaticity coordinate values (R′, G′, B′) onto the (r, g) plane as a unit plane, thereby obtaining the 2-dimensional conversion chromaticity coordinate values (r′, g′) (step S13).
  • Further, the color [0050] region obtaining unit 14 obtains a convex polygonal region, as a color region, including the 2-dimensional conversion chromaticity coordinate values (r′, g′) plotted onto the (r, g) plane so that additive color mixture can be performed (step S14).
  • After the color region is obtained, the area of the color region is calculated by the area [0051] calculation processing unit 15 by using the equation (4) (step S15).
  • The area [0052] calculation processing unit 15 compares the calculated area with the area value held in the storing unit not shown in FIG. 1 (step S16).
  • By this comparison, if the area calculated this time is larger than the area value held in the storing unit, contents in the storing unit are updated on the basis of the area value of the color region calculated this time and the parameter values corresponding to the color region (step S[0053] 17). Therefore, the storing unit holds the area value of the maximum color region among the area values of the color regions obtained with respect to the various parameters and the parameter values which correspond to such an area value and were used when the conversion is performed to the image data by the chromaticity coordinate converting unit 13.
  • On the other hand, if the area calculated this time is equal to or smaller than the area value held in the storing unit, the area [0054] calculation processing unit 15 executes a process in step S18 without updating the contents held in the storing unit.
  • In the process in step S[0055] 18, whether the comparison between the area of each color region obtained every parameter and the value held in the storing unit has been finished or not is discriminated. That is, the parameters (ρ, γ, β) are changed at predetermined sampling intervals within the ranges of 0<ρ<ρmax, 0<γ<γmax, and 0<β<βmax, respectively, and in the color regions in all of the changed parameters, whether the maximum area value among the color regions has completely been obtained or not is discriminated (step S18).
  • As a result of the discrimination, if the processes for obtaining and comparing the area values of the color regions are not finished yet with respect to all of the parameters, the processing routine is returned to the process in step S[0056] 11. The parameters (ρ, γ, β) are changed at the predetermined sampling intervals by the parameter setting unit 12 and the processes are executed in a manner similar to those mentioned above.
  • After the maximum area value is obtained, the [0057] image converting unit 16 executes a conversion to the image data held in the input image holding unit 11 by using the parameter values corresponding to the color region of the maximum area value held in the storing unit.
  • According to the [0058] image converting apparatus 10 of the invention, therefore, by obtaining the parameter values (ρ, γ, β) in which the area of the color region becomes the maximum and executing the conversion to the image data by using the obtained parameter values (ρ, γ, β), the image data in which the color gamut which is expressed is narrowed due to the influence of the colored light source can be converted into the image data in which the color gamut which is expressed becomes widest, that is, the image data obtained under the ideal white light source.
  • Further, according to the [0059] image converting apparatus 10 of the invention, the parameter values (ρ, γ, β) are obtained on the basis of the area of the color region showing the color gamut which can be expressed by the image data to be converted without being directly influenced by the color arrangement balance of the object. Therefore, a drawback such that the image data is influenced by the degrees of the chromaticity coordinate values of each pixel of the image data to be converted as in the case of the conventional gray world is eliminated. Thus, the image conversion can be properly executed even to the image data obtained by photographing the object which is unbalanced in color arrangement.
  • <[0060] Embodiment 2>
  • As mentioned above, in the conventional gray world, the correction is made by using the average values of the chromaticity coordinate values of each pixel of the image data. Therefore, since the frequency of occurrence of the expressing color is considered, the image data obtained by photographing the object which is unbalanced in color arrangement cannot be properly corrected. In the color region as a feature of the invention, the frequency of occurrence of the expressing color is not considered but the color region shows the color gamut expressed in the image data. Therefore, since the foregoing degrees are not reflected to such a color region, the degrees are not reflected to a barycenter of the color region either. [0061]
  • According to the [0062] embodiment 2, parameters in which the barycenter of the color region to which the degrees are not reflected is set to ⅓ are obtained.
  • FIG. 7 is a block diagram of an [0063] image converting apparatus 20 according to the embodiment 2.
  • The [0064] image converting apparatus 20 of the embodiment 2 has a construction using a barycenter calculation processing unit 17 in place of the area calculation processing unit 15 in the embodiment 1.
  • The [0065] image converting apparatus 20 comprises: the input image holding unit 11 which holds the image data to be converted; the parameter setting unit 12 which sets the various parameters (ρ, γ, β) for executing the conversion to the image data held in the input image holding unit 11; the chromaticity coordinate converting unit 13 which obtains the conversion chromaticity coordinate values (R′, G′, B′) by converting the chromaticity coordinate values showing the color of each pixel of the image data on the basis of the parameters set by the parameter setting unit 12; the color region obtaining unit 14 which obtains a region, as a color region, including the 2-dimensional conversion chromaticity coordinate values (r′, g′), in a convex polygonal shape, obtained by projecting the conversion chromaticity coordinate values formed by the chromaticity coordinate converting unit 13 onto the unit plane so that the additive color mixture can be performed; the barycenter calculation processing unit 17 which calculates the barycenter of the color region obtained by the color region obtaining unit 14 and obtains parameter values at the time when the calculated barycenter lies within a predetermined threshold value including ⅓; and the image converting unit 16 which converts the image data by using the parameter values obtained by the barycenter calculation processing unit 17.
  • Since the input [0066] image holding unit 11, parameter setting unit 12, chromaticity coordinate converting unit 13, color region obtaining unit 14, and image converting unit 16 are the same as those in the embodiment 1 mentioned above, their description is omitted here.
  • The barycenter [0067] calculation processing unit 17 obtains the parameters (ρ, γ, β) at the time when the barycenter of the color region obtained by the color region obtaining unit 14 lies within the predetermined threshold value including ⅓. The image data obtained under the ideal white light source can be obtained by converting the image data by using the obtained parameters as will be explained by using equations.
  • In the color region shown in FIG. 4, although the area of the color region influenced by the colored light source is narrowed, since the image data obtained by photographing the object under the ideal white light source is not influenced by the hue of the colored light source, the color gamut which is expressed, that is, the color region becomes the maximum. The parameter values (ρ, γ, β) of a relation shown in the following equation (5) are obtained in order to maximize an area S of the color region. [0068]
  • S/∂ρ=∂S/∂γ=∂S/∂β=0   (5)
  • First, a partial differentiation of the area S shown in the equation (4) is executed with respect to ρ and γ, thereby obtaining the following equations (6) and (7). [0069] S ρ = 1 2 i = 1 n ( 1 - r i - r i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) ρ ( 6 ) S γ = 1 2 i = 1 n ( 1 - g i - g i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) γ ( 7 )
    Figure US20040091147A1-20040513-M00003
  • where, n: the number of vertices of the polygon showing the color region [0070]
  • The equations (6) and (7) indicate the extremal parameter values (ρ and γ) at the time when the area is maximized, respectively. When ∂S/∂ρ=0 and ∂S/∂γ=0 are satisfied, a sum of numerators of the equations (6) and (7) is equal to 0. Thus, the following equations (8) and (9) are obtained by rearranging the equations (6) and (7). [0071] i = 1 n ( r i + r i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) = i = 1 n ( r i · g i + 1 - r i + 1 · g i ) ( 8 ) i = 1 n ( g i + g i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) = i = 1 n ( r i · g i + 1 - r i + 1 · g i ) ( 9 )
    Figure US20040091147A1-20040513-M00004
  • According to the equation (3), a right side of each of the equations (8) and (9) indicates a double area of the color region. Therefore, the equations (8) and (9) are simplified to the following equations (10) and (11). [0072] i = 1 n ( r i + r i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) = 2 · S ( 10 ) i = 1 n ( g i + g i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) = 2 · S ( 11 )
    Figure US20040091147A1-20040513-M00005
  • Coordinate values showing the barycenter of the color region are shown by the following equations (12) and (13). [0073] r c = 1 6 i = 1 n ( r i + r i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) S ( 12 ) g c = 1 6 i = 1 n ( g i + g i + 1 ) ( r i · g i + 1 - r i + 1 · g i ) S ( 13 )
    Figure US20040091147A1-20040513-M00006
  • By substituting the equation (10) into the equation (12), the following equation (14) is obtained and by substituting the equation (11) into the equation (13), the following equation (15) is obtained. [0074]
  • r′c=⅓  (14)
  • g′c=⅓  (15)
  • A barycenter (r′[0075] c, g′c) of the color region whose area is maximized is set to ⅓.
  • On the other hand, as is known hitherto, when the colors of R, G, and B each having an equal amount are mixed (additive color mixture), a white color is shown. In the above color mixture, if the colors of R, G, and B of the maximum values of the equal amount (R=G=B) are mixed so as not to cause a spot in spectral distribution (that is, so as to obtain flat spectral distribution), an ideal white light source is obtained. In such an ideal white light source called a flat white light source, since the colors of R, G, and B of the equal amount are uniformly mixed, a relation shown by the following equations (16) is satisfied. [0076]
  • R/(R+G+B)=⅓ G/(R+G+B)=⅓ B/(R+G+B)=⅓  (16)
  • When the relation shown by the equations (16) is shown by coordinates on a unit plane of (R+G+B=1), each value of R, G, and B indicates ⅓ and it coincides with the barycenter of the color region mentioned above. In other words, the barycenter of the color region of the ideal white light source is also set to ⅓. [0077]
  • FIG. 4 shows a barycenter (C) of the color region mentioned above. FIG. 4 also shows chromaticity coordinate values P obtained by the conventional gray world. The chromaticity coordinate values of each pixel are shown by a dot in the color region shown in FIG. 4. According to the gray world which takes into consideration of the frequency of occurrence of the chromaticity coordinate values of each pixel, in the image data having a deviation of each dot (chromaticity coordinate values of each pixel) shown in FIG. 4, that is, the image data obtained by photographing the object which is unbalanced in color arrangement, the coordinate values P which are away from the coordinate values C indicative of the barycenter of the color region of the ideal white light source are shown. [0078]
  • Subsequently, the operation of the [0079] image converting apparatus 20 of the embodiment 2 will be described with reference to a flowchart of FIG. 8.
  • Image data of an object photographed by a digital camera or the like is obtained as an input image and held in the input image holding unit [0080] 11 (step S21).
  • The chromaticity coordinate converting [0081] unit 13 executes a conversion to the chromaticity coordinate values (R, G, B) of each pixel of the image data held in the input image holding unit 11 by using the parameters (ρ, γ, β) set by the parameter setting unit 12, thereby obtaining the conversion chromaticity coordinate values (R′, G′, B′) (step S22).
  • After the conversion chromaticity coordinate values (R′, G′, B′) are obtained, the color [0082] region obtaining unit 14 projects the conversion chromaticity coordinate values (R′, G′, B′) onto the (r, g) plane as a unit plane, thereby obtaining the 2-dimensional conversion chromaticity coordinate values (r′, g′) (step S23).
  • Further, the color [0083] region obtaining unit 14 obtains a convex polygonal region, as a color region, where the 2-dimensional conversion chromaticity coordinate values (r′, g′) plotted onto the (r, g) plane are included so that additive color mixture can be performed (step S24).
  • After the color region is obtained, coordinates of the barycenter of the color region is calculated by the barycenter [0084] calculation processing unit 17 by using the above equations (step S25).
  • Further, the barycenter [0085] calculation processing unit 17 discriminates whether the calculated coordinates of the barycenter lie within a predetermined threshold value or not as shown by the following inequalities (17) (step S26).
  • |r′c−⅓|<εr |g′c−⅓|<εg   (17)
  • where, ε[0086] r:threshold value of the r coordinate
  • ε[0087] g:threshold value of the g coordinate
  • At this time, the barycenter [0088] calculation processing unit 17 obtains the parameter values (ρ, γ, β) set by the parameter setting unit 12.
  • By this discrimination, if the calculated coordinates of the barycenter are out of the range shown by the inequalities (17), the processing routine is returned to the process in step S[0089] 21. The parameters (ρ, γ, β) are changed at predetermined sampling intervals by the parameter setting unit 12 and the above processes are similarly executed.
  • If the calculated coordinates of the barycenter of the color region are within the range shown by the inequalities (17), the [0090] image converting unit 16 executes a conversion to the image data held in the input image holding unit 11 by using the parameter values corresponding to the color region where the barycenter lies within the predetermined threshold value including ⅓, that is, the parameter values (ρ, γ, β) obtained from the parameter setting unit 12 in step S26. Thus, the coordinate values showing the barycenter of the color region are set to a new coordinate origin and the conversion is executed to the input image.
  • As mentioned above, according to the [0091] image converting apparatus 20 of the invention, the parameter values (ρ, γ, β) in which the barycenter at the time when the area of the color region showing the color gamut of the image data to be converted is maximized lies within the predetermined threshold value including ⅓ are obtained and the conversion is performed to the image data by using the obtained parameter values (ρ, γ, β). Therefore, since the degrees of the chromaticity coordinate values of each pixel of the image data are not considered, even the image data obtained by photographing the object which is unbalanced in color arrangement can be converted into the image data obtained by photographing the object under the ideal white light source.
  • In the foregoing embodiments, the convex polygonal color region including the 2-dimensional conversion chromaticity coordinate values (r′, g′) is obtained every parameters (ρ, γ, β) which are set to various values so that the additive color mixture can be performed. However, it is also possible that initial states of the parameters (ρ, γ, β) are assumed to be ρ=1, γ=1, and β=1, coordinate values of each vertex of the color region in those parameters are obtained, a vertex coordinate holding unit for holding those coordinate values is provided, and the arithmetic operations which have conventionally been known are executed by using the obtained coordinate values in the initial states. Thus, the arithmetic operating processes for converting the image data by using the parameters every various parameters (ρ, γ, β) and obtaining the color region where the converted chromaticity coordinate values are projected onto the unit plane can be omitted. [0092]
  • As mentioned above, in the color region including the 2-dimensional conversion chromaticity coordinate values obtained by projecting the conversion chromaticity coordinate values obtained by converting each pixel of the input image by using the parameters onto the unit plane so that the additive color mixture can be performed, the parameter values in which the area of the color region becomes the maximum or the parameter values in which the barycenter at the time when the area of the color region is maximized is set to ⅓ are obtained and the chromatic coordinate conversion is performed to the input image by using the obtained parameter values. Thus, since the degrees of the chromatic coordinate values of each pixel of the image data are not considered, even the image data obtained by photographing the object which is unbalanced in color arrangement can be converted into the image data obtained under the ideal white light source. [0093]
  • The present invention is not limited to the foregoing embodiments but many modifications and variations are possible within the spirit and scope of the appended claims of the invention. [0094]

Claims (7)

What is claimed is:
1. An image converting method comprising the steps of:
converting chromaticity coordinate values which each pixel of an input image consisting of a plurality of pixels has into a 2-dimensional chromaticity coordinate plane and obtaining 2-dimensional conversion chromaticity coordinate values of each pixel;
obtaining an outline of a color region defined by the 2-dimensional conversion chromaticity coordinate values of said plurality of pixels converted into said 2-dimensional chromaticity coordinate plane;
obtaining 2-dimensional conversion chromaticity coordinate values, on a 2-dimensional chromaticity coordinate plane, of a barycenter of an area of a region which is specified by the outline of said color region; and
executing a color conversion of the input image by using the 2-dimensional conversion chromaticity coordinate values of said barycenter as a new coordinate origin.
2. An image converting method comprising the steps of:
converting each pixel of an input image into 2-dimensional conversion chromaticity coordinate values which are obtained by projecting conversion chromaticity coordinate values obtained by converting each of said pixels by using parameters for converting in chromaticity coordinates onto a unit plane, and in a color region including said 2-dimensional conversion chromaticity coordinate values, obtaining parameter values in which an area of said color region becomes the maximum; and
converting said input image by said obtained parameter values.
3. An image converting method comprising the steps of:
converting each pixel of an input image into 2-dimensional conversion chromaticity coordinate values which are obtained by projecting conversion chromaticity coordinate values obtained by converting each of said pixels by using parameters for converting in chromaticity coordinates onto a unit plane, and obtaining parameter values in which a barycenter of a color region including said 2-dimensional conversion chromaticity coordinate values is set to ⅓; and
converting the input image by said obtained parameter values.
4. The method according to claim 3, wherein the parameter values at the time when the barycenter lies within a predetermined threshold value including ⅓ are obtained.
5. An image converting apparatus comprising:
a parameter setting unit which sets parameters for converting each pixel of an input image into predetermined chromaticity coordinate values;
a chromaticity coordinate converting unit which obtains conversion chromaticity coordinate values obtained by converting each of said pixels on the basis of the parameters set by said parameter setting unit;
a color region obtaining unit which obtains a color region including 2-dimensional conversion chromaticity coordinate values obtained by projecting each of said conversion chromaticity coordinate values onto a unit plane;
an area calculation processing unit which calculates an area of said color region with respect to the parameters and obtains parameter values at the time when a value of the calculated area becomes the maximum; and
an image converting unit which converts said input image on the basis of the obtained parameter values.
6. An image converting apparatus comprising:
a parameter setting unit which sets parameters for converting each pixel of an input image into predetermined chromaticity coordinate values;
a chromaticity coordinate converting unit which obtains conversion chromaticity coordinate values obtained by converting each of said pixels on the basis of the parameters set by said parameter setting unit;
a color region obtaining unit which obtains a color region including 2-dimensional conversion chromaticity coordinate values obtained by projecting each of said conversion chromaticity coordinate values onto a unit plane so that additive color mixture can be performed;
a barycenter calculation processing unit which calculates a barycenter of said color region with respect to the parameters and obtains parameter values at the time when the calculated barycenter is set to ⅓; and
an image converting unit which converts said input image on the basis of the obtained parameter values.
7. The apparatus according to claim 6, wherein said barycenter calculation processing unit obtains the parameter values at the time when the barycenter lies within a predetermined threshold value including ⅓.
US10/702,534 2002-11-08 2003-11-05 Image converting method and image converting apparatus Abandoned US20040091147A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US12/405,570 US7817853B2 (en) 2002-11-08 2009-03-17 Image converting method and image converting apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JPJP2002-324752 2002-11-08
JP2002324752A JP4126487B2 (en) 2002-11-08 2002-11-08 Image conversion method and image conversion apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/405,570 Division US7817853B2 (en) 2002-11-08 2009-03-17 Image converting method and image converting apparatus

Publications (1)

Publication Number Publication Date
US20040091147A1 true US20040091147A1 (en) 2004-05-13

Family

ID=32211932

Family Applications (2)

Application Number Title Priority Date Filing Date
US10/702,534 Abandoned US20040091147A1 (en) 2002-11-08 2003-11-05 Image converting method and image converting apparatus
US12/405,570 Expired - Fee Related US7817853B2 (en) 2002-11-08 2009-03-17 Image converting method and image converting apparatus

Family Applications After (1)

Application Number Title Priority Date Filing Date
US12/405,570 Expired - Fee Related US7817853B2 (en) 2002-11-08 2009-03-17 Image converting method and image converting apparatus

Country Status (2)

Country Link
US (2) US20040091147A1 (en)
JP (1) JP4126487B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060209125A1 (en) * 2005-03-16 2006-09-21 Kabushiki Kaisha Toshiba Color image processing apparatus
US20110187735A1 (en) * 2008-08-29 2011-08-04 Sharp Kabushiki Kaisha Video display device
RU2481728C2 (en) * 2009-01-13 2013-05-10 Шарп Кабусики Кайся Video display device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369699B1 (en) * 2003-08-29 2008-05-06 Apple Inc. Methods and apparatuses for restoring color and enhancing electronic images
JP5029187B2 (en) * 2007-07-20 2012-09-19 株式会社ニコン Color coordinate conversion device, imaging device, color coordinate conversion program, and color coordinate conversion method
JP6017389B2 (en) * 2013-09-17 2016-11-02 オリンパス株式会社 Imaging apparatus, electronic viewfinder, display control method, and display control program

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5414811A (en) * 1991-11-22 1995-05-09 Eastman Kodak Company Method and apparatus for controlling rapid display of multiple images from a digital image database
US5771311A (en) * 1995-05-17 1998-06-23 Toyo Ink Manufacturing Co., Ltd. Method and apparatus for correction of color shifts due to illuminant changes
US5828780A (en) * 1993-12-21 1998-10-27 Ricoh Company, Ltd. Image processing apparatus with improved color correction
US6130675A (en) * 1997-01-14 2000-10-10 Fuji Xerox Co., Ltd. Color image formation method and color image formation apparatus
US6330076B1 (en) * 1995-06-15 2001-12-11 Minolta Co., Ltd. Image processing apparatus
US6340976B1 (en) * 1998-04-15 2002-01-22 Mitsubishi Denki Kabushiki Kaisha Multivision system, color calibration method and display
US6870567B2 (en) * 2000-12-22 2005-03-22 Eastman Kodak Company Camera having user interface with verification display and color cast indicator
US6873727B2 (en) * 2001-07-23 2005-03-29 Hewlett-Packard Development Company, L.P. System for setting image characteristics using embedded camera tag information
US6947079B2 (en) * 2000-12-22 2005-09-20 Eastman Kodak Company Camera having verification display with reverse white balanced viewer adaptation compensation and method
US7015955B2 (en) * 2000-12-22 2006-03-21 Eastman Kodak Company Camera having verification display with viewer adaptation compensation for reference illuminants and method
US7227586B2 (en) * 2000-01-12 2007-06-05 University Of East Anglia Color signal processing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5432863A (en) * 1993-07-19 1995-07-11 Eastman Kodak Company Automated detection and correction of eye color defects due to flash illumination
JPH09171220A (en) * 1995-12-20 1997-06-30 Fuji Photo Film Co Ltd Exposure deciding method
JP3778229B2 (en) * 1996-05-13 2006-05-24 富士ゼロックス株式会社 Image processing apparatus, image processing method, and image processing system
JPH11252391A (en) 1998-03-05 1999-09-17 Dainippon Printing Co Ltd Image converter and recording medium thereof
US6775408B1 (en) * 1999-06-25 2004-08-10 Minolta Co., Ltd. Image processor

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5414811A (en) * 1991-11-22 1995-05-09 Eastman Kodak Company Method and apparatus for controlling rapid display of multiple images from a digital image database
US5828780A (en) * 1993-12-21 1998-10-27 Ricoh Company, Ltd. Image processing apparatus with improved color correction
US5771311A (en) * 1995-05-17 1998-06-23 Toyo Ink Manufacturing Co., Ltd. Method and apparatus for correction of color shifts due to illuminant changes
US6330076B1 (en) * 1995-06-15 2001-12-11 Minolta Co., Ltd. Image processing apparatus
US6130675A (en) * 1997-01-14 2000-10-10 Fuji Xerox Co., Ltd. Color image formation method and color image formation apparatus
US6340976B1 (en) * 1998-04-15 2002-01-22 Mitsubishi Denki Kabushiki Kaisha Multivision system, color calibration method and display
US7227586B2 (en) * 2000-01-12 2007-06-05 University Of East Anglia Color signal processing
US6870567B2 (en) * 2000-12-22 2005-03-22 Eastman Kodak Company Camera having user interface with verification display and color cast indicator
US6947079B2 (en) * 2000-12-22 2005-09-20 Eastman Kodak Company Camera having verification display with reverse white balanced viewer adaptation compensation and method
US7015955B2 (en) * 2000-12-22 2006-03-21 Eastman Kodak Company Camera having verification display with viewer adaptation compensation for reference illuminants and method
US6873727B2 (en) * 2001-07-23 2005-03-29 Hewlett-Packard Development Company, L.P. System for setting image characteristics using embedded camera tag information

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060209125A1 (en) * 2005-03-16 2006-09-21 Kabushiki Kaisha Toshiba Color image processing apparatus
US7570403B2 (en) * 2005-03-16 2009-08-04 Kabushiki Kaisha Toshiba Color image processing apparatus
US20110187735A1 (en) * 2008-08-29 2011-08-04 Sharp Kabushiki Kaisha Video display device
RU2481728C2 (en) * 2009-01-13 2013-05-10 Шарп Кабусики Кайся Video display device

Also Published As

Publication number Publication date
JP2004157901A (en) 2004-06-03
US7817853B2 (en) 2010-10-19
US20090196499A1 (en) 2009-08-06
JP4126487B2 (en) 2008-07-30

Similar Documents

Publication Publication Date Title
EP1909486B1 (en) Method and apparatus for performing gamut mapping between heterogeneous devices
US7817853B2 (en) Image converting method and image converting apparatus
EP1898624B1 (en) Image processing device, image processing method, image processing program product, and image-capturing device
US9485391B2 (en) Method, apparatus and program for restoring and correcting surface reflectance with color image processing
EP1089552A2 (en) Color correction apparatus and method
US7024034B2 (en) Color temperature conversion system and method using the same
US20080240605A1 (en) Image Processing Apparatus, Image Processing Method, and Image Processing Program
US7830568B2 (en) Color processing apparatus and color processing method
US20020031256A1 (en) Color matching method and device, color matching program, and computer readable record medium that stores color matching program allowing appropriate color matching at high speed
EP1805982B1 (en) Apparatus, system, and method for optimizing gamma curves for digital image devices
EP1137257A2 (en) Method of and apparatus for image processing
US6041136A (en) Image processing apparatus and method
US10834292B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
US20070195382A1 (en) Apparatus for gamut mapping and method of generating gamut boundary using the same
US7064769B2 (en) Systems and methods for computing the presence of self-luminous elements in an image
US7944584B2 (en) Color-converting device
US7514669B2 (en) Imaging apparatus and light source estimating device for the imaging apparatus
US20020122120A1 (en) Automatic white-balance correction for digital camera
US20040057060A1 (en) Method for fast color saturation control
US20030174350A1 (en) Color signal processing device capable of storing a color gamut efficiently and a method using the same
JP4633806B2 (en) Color correction techniques for color profiles
US7123378B2 (en) Image processing apparatus, method and program enabling high-precision color conversion
US6501563B1 (en) Image processing apparatus
US9826120B2 (en) Image process device that converts color image data into monochrome image data based on a converted brightness component value and image forming system including same
JP3493148B2 (en) Image color processing apparatus, image color processing method, and recording medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: OKI DATA CORPORATION, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:MATSUSHIRO, NOBUHITO;OTA, NOBORU;REEL/FRAME:014679/0825

Effective date: 20031029

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION