JP4505356B2 - Image processing apparatus, image processing method and program thereof - Google Patents

Image processing apparatus, image processing method and program thereof Download PDF

Info

Publication number
JP4505356B2
JP4505356B2 JP2005071762A JP2005071762A JP4505356B2 JP 4505356 B2 JP4505356 B2 JP 4505356B2 JP 2005071762 A JP2005071762 A JP 2005071762A JP 2005071762 A JP2005071762 A JP 2005071762A JP 4505356 B2 JP4505356 B2 JP 4505356B2
Authority
JP
Japan
Prior art keywords
color
color information
dynamic range
correction
image
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.)
Active
Application number
JP2005071762A
Other languages
Japanese (ja)
Other versions
JP2006254374A (en
Inventor
康治 横内
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.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2005071762A priority Critical patent/JP4505356B2/en
Publication of JP2006254374A publication Critical patent/JP2006254374A/en
Application granted granted Critical
Publication of JP4505356B2 publication Critical patent/JP4505356B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Exposure In Printing And Copying (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、カラー画像のダイナミックレンジを圧縮するための画像処理装置、画像処理方法およびそのプログラムに関するものである。   The present invention relates to an image processing apparatus, an image processing method, and a program for compressing the dynamic range of a color image.

従来より、デジタルカメラ等の撮像装置により被写体を撮影することにより取得された画像や、ネガフイルム、リバーサルフイルム等の写真フイルムや印刷物等に記録された画像を光電的に読み取ることにより得られた画像をプリンタ等の再生装置において再生することが行われている。このように画像を再生装置において再生する場合において、画像上の明部および/または暗部がつぶれてしまうことを防止するために、画像のダイナミックレンジが再生装置のダイナミックレンジ内に収まるように、画像のダイナミックレンジを圧縮することが行われている。   Conventionally, an image obtained by photoelectrically reading an image obtained by photographing a subject with an imaging device such as a digital camera, an image recorded on a photographic film such as a negative film or a reversal film, or a printed matter. Is reproduced on a reproducing apparatus such as a printer. In this way, when the image is reproduced on the reproduction device, in order to prevent the bright portion and / or the dark portion on the image from being crushed, the image is set so that the dynamic range of the image is within the dynamic range of the reproduction device. The dynamic range of compression has been done.

このようなダイナミックレンジ圧縮方法において、画像に対してローパスフィルタによるフィルタリング処理を施して、画像中の空間周波数が低い構造物のみを表すボケ画像を作成し、ボケ画像を用いてダイナミックレンジを圧縮することにより、画像に含まれる明部および暗部内の細かなテクスチャのコントラストを残しつつも、画像の明部および暗部の双方のつぶれを抑える方法が提案されている(特許文献1、2参照)。具体的には、画像の低濃度域を圧縮する場合、画像のダイナミックレンジに基づいて、図8に示すように画像の低濃度域を圧縮するための圧縮テーブルを求めるとともに、画像における各画素のRGB各色情報から各画素のグレイ値を算出する。なお、図8においてY0は入力画素値におけるダイナミックレンジを圧縮する境界を表す基準画素値である。また、横軸は左へ行くほど濃度が低いことを示している。そして、圧縮テーブルを参照して、各画素のグレイ値から各画素の色情報の修正値(C30とする)を決定し、下記の式(1)に示すように、各画素の色情報(すなわちRGB各色の色情報R30,G30,B30)に修正値C30を加算することにより、各画素の色情報がR31,G31,B31からなる処理済み画像を得る。   In such a dynamic range compression method, a filtering process using a low-pass filter is performed on an image to create a blurred image representing only a structure having a low spatial frequency in the image, and the dynamic range is compressed using the blurred image. Thus, there has been proposed a method for suppressing the collapse of both the bright and dark portions of the image while keeping the fine texture contrast in the bright and dark portions included in the image (see Patent Documents 1 and 2). Specifically, when compressing the low density area of the image, a compression table for compressing the low density area of the image is obtained based on the dynamic range of the image as shown in FIG. The gray value of each pixel is calculated from the RGB color information. In FIG. 8, Y0 is a reference pixel value representing a boundary for compressing the dynamic range of the input pixel value. The horizontal axis indicates that the concentration is lower as it goes to the left. Then, referring to the compression table, the correction value (referred to as C30) of the color information of each pixel is determined from the gray value of each pixel, and as shown in the following equation (1), the color information (that is, each pixel) By adding the correction value C30 to the RGB color information R30, G30, B30), a processed image in which the color information of each pixel is R31, G31, B31 is obtained.

R31=R30+C30
G31=G30+C30 (1)
B31=B30+C30
特開平9−130609号公報 特開2001−245153号公報
R31 = R30 + C30
G31 = G30 + C30 (1)
B31 = B30 + C30
JP-A-9-130609 JP 2001-245153 A

しかしながら、上記特許文献1,2に記載された方法においては、各画素のグレイ値に基づいて修正値を決定しているため、決定された修正値により画像のダイナミックレンジを圧縮すると、画像に含まれる高彩度の色が飽和してつぶれてしまうという問題がある。以下、この問題点について説明する。   However, in the methods described in Patent Documents 1 and 2, since the correction value is determined based on the gray value of each pixel, if the dynamic range of the image is compressed by the determined correction value, the correction value is included in the image. There is a problem that the high-saturation color that is generated becomes saturated and collapses. Hereinafter, this problem will be described.

図9は従来の問題点を説明するための図である。図9において実線はAE処理により画像中の濃度が低い明部が出力デバイスのダイナミックレンジ(濃度再現域)外となった入力画像のグレイ階調を示す。このような階調を有する入力画像は、基準画素値Y0を基準として破線に示すように明度側の出力濃度を高く(すなわち暗く)して出力デバイスのダイナミックレンジ内となるように入力画像の各画素の色情報を補正する圧縮テーブルが求められ、入力画像の各画素のグレイ値から圧縮テーブルを参照して修正値が求められ、修正値が各画素のすべての色情報に加算されることにより、処理済み画像が得られる。   FIG. 9 is a diagram for explaining a conventional problem. In FIG. 9, a solid line indicates a gray gradation of an input image in which a bright portion having a low density in the image is outside the dynamic range (density reproduction area) of the output device by AE processing. The input image having such a gradation has a high output density on the lightness side (ie, it is darkened) as indicated by a broken line with reference to the reference pixel value Y0, and each input image has a dynamic range within the output device. A compression table for correcting the color information of the pixel is obtained, a correction value is obtained by referring to the compression table from the gray value of each pixel of the input image, and the correction value is added to all the color information of each pixel. A processed image is obtained.

ここで簡単のために入力画像がRおよびBの2色からなるものとし、各画素におけるグレイ値がR信号およびB信号の平均値として算出されるものとする。図9に示すようにある画素P30におけるR信号がR30、B信号がB30であったとすると、画素P30のグレイ値Y30は(R30+B30)/2により算出される。この際、画素P30の修正値はC30に決定される。したがって、画素P30のR信号R30およびB信号B30に修正値C30が加算されることにより、画素P30のR信号およびB信号はそれぞれR31,B31に修正される。   Here, for simplicity, it is assumed that the input image is composed of two colors R and B, and the gray value at each pixel is calculated as an average value of the R signal and the B signal. As shown in FIG. 9, when the R signal at a certain pixel P30 is R30 and the B signal is B30, the gray value Y30 of the pixel P30 is calculated by (R30 + B30) / 2. At this time, the correction value of the pixel P30 is determined as C30. Therefore, by adding the correction value C30 to the R signal R30 and the B signal B30 of the pixel P30, the R signal and the B signal of the pixel P30 are corrected to R31 and B31, respectively.

図9に示すように、修正されたB信号B31は出力デバイスのダイナミックレンジ内にあるが、修正されたR信号R31は、修正されたにも拘わらず出力デバイスのダイナミックレンジ内にはない。このため、出力デバイスにおいて処理済み画像を再生するとR信号R31が出力デバイスが再現可能な最も明るい値にクリップされてしまう。例えば出力デバイスのダイナミックレンジが8ビット(0〜255)である場合において、R31,B31がそれぞれ300,200の画素値であるとすると、R31は255にクリップされてしまう。このため、画素P30についてはダイナミックレンジ圧縮処理により彩度が飽和し、その結果、再生画像においては、彩度が低下してしまうこととなる。   As shown in FIG. 9, the modified B signal B31 is within the dynamic range of the output device, but the modified R signal R31 is not within the dynamic range of the output device despite being modified. For this reason, when the processed image is reproduced in the output device, the R signal R31 is clipped to the brightest value that can be reproduced by the output device. For example, when the dynamic range of the output device is 8 bits (0 to 255), if R31 and B31 are pixel values of 300 and 200, respectively, R31 is clipped to 255. For this reason, the saturation of the pixel P30 is saturated by the dynamic range compression process, and as a result, the saturation is reduced in the reproduced image.

本発明は上記事情に鑑みなされたものであり、彩度が低下しないように画像のダイナミックレンジを圧縮することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to compress the dynamic range of an image so that the saturation does not decrease.

本発明の画像処理装置は、複数の色情報を有する画素からなるカラー画像を入力する画像入力手段と、
前記カラー画像の明度を上げるように該カラー画像の画素の色情報の濃度を補正した補正画像を作成する補正画像作成手段と、
前記補正画像の画素の色情報の濃度値のうち低濃度域の濃度値を、所定のダイナミックレンジを越えた濃度値が前記ダイナミックレンジ内に収まるように修正する修正値を算出する算出方法を互いに異にする複数の修正値算出手段と、
前記補正画像の画素の色情報の濃度値が前記低濃度域内にあるときは、前記補正画像の画素に対応する前記カラー画像の画素の色に応じた割合で前記複数の修正値算出手段から得られた複数の修正値を用いてダイナミックレンジ圧縮処理を施すダイナミックレンジ圧縮手段とを備えたことを特徴とするものである。
An image processing apparatus according to the present invention includes an image input unit that inputs a color image including pixels having a plurality of color information,
A corrected image creating means for creating a corrected image by correcting the density of color information of pixels of the color image so as to increase the brightness of the color image;
A calculation method for calculating a correction value for correcting a density value in a low density region among density values of color information of pixels of the corrected image so that a density value exceeding a predetermined dynamic range is within the dynamic range. A plurality of different correction value calculation means,
When the density value of the color information of the pixel of the corrected image is within the low density range, the correction value is obtained from the plurality of correction value calculating means at a ratio according to the color of the pixel of the color image corresponding to the pixel of the corrected image. And dynamic range compression means for performing dynamic range compression processing using a plurality of correction values obtained.

また、本願発明の画像処理方法は、
複数の色情報を有する画素からなるカラー画像を入力する画像入力ステップと、
前記カラー画像の明度を上げるように該カラー画像の画素の色情報の濃度を補正した補正画像を作成する補正画像作成ステップと、
前記補正画像の画素の色情報の濃度値のうち低濃度域の濃度値を、所定のダイナミックレンジを越えた濃度値が前記ダイナミックレンジ内に収まるように修正する修正値を算出する算出方法を互いに異にする複数の修正値算出ステップと、
前記補正画像の画素の色情報の濃度値が前記低濃度域内にあるときは、前記補正画像の画素に対応する前記カラー画像の画素の色に応じた割合で前記複数の修正値算出ステップから得られた複数の修正値を用いてダイナミックレンジ圧縮処理を施すダイナミックレンジ圧縮ステップとを備えたことを特徴とするものである。
The image processing method of the present invention is
An image input step of inputting a color image composed of pixels having a plurality of color information;
A corrected image creating step of creating a corrected image in which the density of color information of pixels of the color image is corrected so as to increase the brightness of the color image;
A calculation method for calculating a correction value for correcting a density value in a low density region among density values of color information of pixels of the corrected image so that a density value exceeding a predetermined dynamic range is within the dynamic range. A plurality of different correction value calculation steps,
When the density value of the color information of the pixel of the corrected image is within the low density range, the correction value is obtained from the plurality of correction value calculating steps at a ratio according to the color of the pixel of the color image corresponding to the pixel of the corrected image. And a dynamic range compression step for performing a dynamic range compression process using the plurality of correction values obtained.

さらに、また、本願発明のプログラムは、コンピュータを、
複数の色情報を有する画素からなるカラー画像を入力する画像入力手段と、
前記カラー画像の明度を上げるように該カラー画像の画素の色情報の濃度を補正した補正画像を作成する補正画像作成手段と、
前記補正画像の画素の色情報の濃度値のうち低濃度域の濃度値を、所定のダイナミックレンジを越えた濃度値が前記ダイナミックレンジ内に収まるように修正する修正値を算出する算出方法を互いに異にする複数の修正値算出手段と、
前記補正画像の画素の色情報の濃度値が前記低濃度域内にあるときは、前記補正画像の画素に対応する前記カラー画像の画素の色に応じた割合で前記複数の修正値算出手段から得られた複数の修正値を用いてダイナミックレンジ圧縮処理を施すダイナミックレンジ圧縮手段として機能させることを特徴とするものである。
Furthermore, the program of the present invention is a computer,
Image input means for inputting a color image composed of pixels having a plurality of color information;
A corrected image creating means for creating a corrected image by correcting the density of color information of pixels of the color image so as to increase the brightness of the color image;
A calculation method for calculating a correction value for correcting a density value in a low density region among density values of color information of pixels of the corrected image so that a density value exceeding a predetermined dynamic range is within the dynamic range. A plurality of different correction value calculation means,
When the density value of the color information of the pixel of the corrected image is within the low density range, the correction value is obtained from the plurality of correction value calculating means at a ratio according to the color of the pixel of the color image corresponding to the pixel of the corrected image. It is characterized by functioning as dynamic range compression means for performing dynamic range compression processing using a plurality of correction values.

ここで、「カラー画像」は各画素の色情報がITU Rec.709などで定める輝度(0〜1の値をとる)を表す場合と、これをlog変換した濃度を表す場合とがあるが、「ダイナミックレンジ圧縮処理」を行うに際し、色信号が輝度を表す場合は修正値を乗算し、色信号が濃度を表す場合は修正値を加算すればよい。したがって、「修正値を用いてダイナミックレンジ圧縮処理を施す」とは、色情報が輝度を表す場合には修正値を乗算し、色信号が濃度を表す場合には修正値を加算することを意味する。   Here, the color information of each pixel is “ITU Rec. In some cases, it represents the luminance (taken a value of 0 to 1) defined by 709 or the like, and in some cases represents the density obtained by log conversion, but in the case where the color signal represents the luminance when performing “dynamic range compression processing” Is multiplied by the correction value, and if the color signal represents density, the correction value may be added. Therefore, “the dynamic range compression process is performed using the correction value” means that the correction value is multiplied when the color information represents luminance, and the correction value is added when the color signal represents density. To do.

「所定のダイナミックレンジ」とは、プリンタやモニタ等の所定の画像再生装置が信号を再現する再現能力を表わすものである。   The “predetermined dynamic range” represents the reproduction ability of a predetermined image reproduction device such as a printer or a monitor to reproduce a signal.

「所定のダイナミックレンジを越えた低濃度域の濃度値を前記ダイナミックレンジ内に収まるように修正する」は、カラー画像は各画素の複数の色情報の全てがダイナミックレンジを越えていなくても、そのうちの1つがダイナミックレンジを越えていれば、色情報がダイナミックレンジ内に収まるように修正することをいう。また、「ダイナミックレンジ内に収まるように修正する」とは、ダイナミックレンジ内の値になるように各色情報の値を修正することをいうが、ダイナミックレンジを越えていた濃度値の大部分がダイナミックレンジ内の収まるようにすれば、一部(極めて濃度値が低い部分)にダイナミックレンジを越えた値が残ってもよい。   “Correct the density value in the low density range exceeding the predetermined dynamic range so that it falls within the dynamic range” means that the color image has a plurality of color information of each pixel not exceeding the dynamic range. If one of them exceeds the dynamic range, the color information is corrected to be within the dynamic range. “Correction to be within the dynamic range” means to correct each color information value so that it is within the dynamic range, but most of the density values that exceed the dynamic range are dynamic. As long as it falls within the range, a value exceeding the dynamic range may remain in a part (part where the density value is extremely low).

また、前記複数の修正値算出手段の1つが、肌色用の修正値を算出するものであり、 前記複数の修正値算出手段の1つが、非肌色用の修正値を算出するものであれば、
前記ダイナミックレンジ圧縮手段は、前記補正画像の画素に対応する前記カラー画像の画素の色の肌色らしさを表す肌色率と非肌色らしさを表す非肌色率とに応じて、肌色用の修正値と非肌色用の修正値を加重平均した修正値を用いてダイナミックレンジ圧縮処理を施すようにしてもよい。
If one of the plurality of correction value calculation means calculates a correction value for skin color, and one of the plurality of correction value calculation means calculates a correction value for non-skin color,
The dynamic range compression means determines the skin color correction value and the non-skin color according to the skin color rate representing the skin color likelihood of the color of the color image pixel corresponding to the pixel of the correction image and the non-skin color rate representing the non skin color. The dynamic range compression processing may be performed using a correction value obtained by weighted averaging the correction values for skin color.

本発明によれば、ダイナミックレンジを越えた低濃度域の値をダイナミックレンジ内に収まるように修正する修正値を複数の算出方法で求め、カラー画像の画素の色に応じた割合で複数の修正値を用いてダイナミックレンジ圧縮処理を施すようにすれば、ターゲットとなる対象物の色を適したダイナミックレンジ圧縮を行うことが可能である。   According to the present invention, a correction value for correcting a value in a low density region exceeding the dynamic range so as to be within the dynamic range is obtained by a plurality of calculation methods, and a plurality of corrections are performed at a rate according to the color of the pixel of the color image. If dynamic range compression processing is performed using values, it is possible to perform dynamic range compression suitable for the color of the target object.

また、肌色と非肌色によって修正値を変えるようにすることで、人物の顔が撮影された画像を、人物の顔が自然な感じに仕上がるようにダイナミックレンジ圧縮を行うことができる。   Further, by changing the correction value depending on the skin color and the non-skin color, it is possible to perform dynamic range compression on an image in which a person's face is photographed so that the person's face is finished in a natural feeling.

以下、図面を参照して本発明の実施形態について説明する。図1は本発明の実施形態による画像処理装置の構成を示す概略ブロック図である。図1に示すように、本実施形態による画像処理装置1は、RGBの各色データからなるカラー画像(以下、原画像という)S0を入力する画像入力手段2と、原画像S0の画像全体の明度をあげるようにAE補正して補正画像S1を作成する補正画像作成手段3と、ダイナミックレン圧縮するための修正値を算出方法が異なる複数の修正値算出手段4と、補正画像の画素に対応する原画像の画素の色に応じた割合で複数の修正値算出手段から得られた修正値を加算してダイナミックレンジ圧縮処理を施した処理済み画像データS2を生成するダイナミックレンジ圧縮手段5とを備える。また、画像処理装置1にはダイナミックレンジ圧縮処理を施した処理済み画像データS2を再生するプリンタやモニタ等の画像出力部7が接続されている。なお、本実施形態においては、画像出力部7を処理済み画像データS2のプリントPを得るプリンタとする。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. As shown in FIG. 1, the image processing apparatus 1 according to the present embodiment includes an image input unit 2 that inputs a color image (hereinafter referred to as an original image) S0 composed of RGB color data, and the brightness of the entire image of the original image S0. The corrected image generating means 3 for generating the corrected image S1 by performing AE correction so as to increase the number of correction values, the correction value calculating means 4 for calculating the correction values for dynamic len compression, and the pixels of the corrected image. Dynamic range compression means 5 that generates processed image data S2 that has been subjected to dynamic range compression processing by adding correction values obtained from a plurality of correction value calculation means at a rate according to the color of the pixel of the original image. . The image processing apparatus 1 is connected to an image output unit 7 such as a printer or a monitor that reproduces the processed image data S2 subjected to the dynamic range compression process. In the present embodiment, the image output unit 7 is a printer that obtains the print P of the processed image data S2.

画像入力手段2は、原画像データS0をメディアから読み出すメディアドライブや、ネットワーク経由で送信された画像データS0の入力を受け付ける各種インターフェースである。原画像データS0はデジタルカメラ等の撮像装置により取得されたものであってもよく、フイルムや原稿に記録された画像を光電的に読み出すことにより取得されたものであってもよい。   The image input means 2 is a media drive that reads the original image data S0 from the medium, and various interfaces that accept input of the image data S0 transmitted via the network. The original image data S0 may be acquired by an imaging device such as a digital camera, or may be acquired by photoelectrically reading an image recorded on a film or a document.

補正画像作成手段3は、原画像データS0にAE補正を行なって補正画像データS1を作成する。例えば、原画像S0中に含まれる被写体が逆光等により暗くなっている場合は、原画像S0全体を明るくするために原画像S0全体の濃度を下げる。具体的には、原画像S0の各画素におけるRGB各色情報に一定値を加算することによりAE補正処理を施して補正画像S1を作成する。補正前と補正後の画像データからの入力値と画像出力部7の出力濃度の関係をグラフであらわすと、図2に示すようにAE補正前のlからAE補正後のlになる。 The corrected image creation means 3 performs AE correction on the original image data S0 to create corrected image data S1. For example, when the subject included in the original image S0 is dark due to backlight or the like, the density of the entire original image S0 is lowered to brighten the entire original image S0. Specifically, the corrected image S1 is created by performing AE correction processing by adding a fixed value to each RGB color information in each pixel of the original image S0. When representing the uncorrected output density of the relationship between the input value and the image output section 7 from the corrected image data in the graph consists of l 0 before AE correction as shown in FIG. 2 to l 1 after AE correction.

また、画像処理装置1には画像出力部7が再生可能な最低濃度Dminの情報が入力されており、最低濃度Dminよりも大きい色情報となる画素が補正画像S1に含まれているか否かを判定し、この判定が否定されると補正画像データS1をそのまま画像出力部7へ出力するが、この判定が肯定されると、修正値算出手段4で修正値を算出する。   Further, the image processing apparatus 1 is input with information on the minimum density Dmin that can be reproduced by the image output unit 7, and whether or not the corrected image S1 includes a pixel having color information larger than the minimum density Dmin. If the determination is negative and the determination is negative, the corrected image data S1 is output to the image output unit 7 as it is. If the determination is positive, the correction value calculation means 4 calculates the correction value.

修正値算出手段4は、以下のようにして修正値を算出する。まず、下記の式(2)により補正画像S1の各画素のグレイ値Yを算出する。なお、R1,G1,B1は、補正画像S1の各画素のRGBの各色情報である。
Y=0.3125R1+0.3750G1+0.3125B1 (2)
次いで修正値算出手段4はグレイ値Yのヒストグラムを求める。図3はグレイ値YのヒストグラムHを示す図である。修正値算出手段4は、ヒストグラムHにおいて、ハイライト側からの累積相対度数が3%を示す濃度を画像データS0のハイライトグレイ値Yhとして求める。なお、補正画像S1が8ビットで表される場合、RGB各色情報は0〜255の値をとるが、AE補正処理により明部の画素値が255よりも大きくなっている場合がある。
The correction value calculation means 4 calculates the correction value as follows. First, the gray value Y of each pixel of the corrected image S1 is calculated by the following equation (2). R1, G1, and B1 are RGB color information of each pixel of the corrected image S1.
Y = 0.3125R1 + 0.3750G1 + 0.3125B1 (2)
Next, the correction value calculation unit 4 obtains a gray value Y histogram. FIG. 3 is a diagram showing a histogram H of gray values Y. In the histogram H, the correction value calculation unit 4 obtains the density at which the cumulative relative frequency from the highlight side is 3% as the highlight gray value Yh of the image data S0. When the corrected image S1 is represented by 8 bits, each color information of RGB takes a value of 0 to 255, but the pixel value of the bright portion may be larger than 255 by the AE correction process.

一方、修正値算出手段4には画像出力部7が再生可能な最低濃度Dminの情報が入力されており、ハイライトグレイ値Yhと最低濃度Dminとを比較して、ハイライトグレイ値Yhの方が低い、すなわちハイライトグレイ値Yhが最低濃度Dminよりもより明るくなる場合には、あらかじめ設定されている基準グレイ値Y0を中心として、ハイライトグレイ値Yhが最低濃度Dmin内に収まるようにするためのダイナミックレンジ圧縮率を算出する。すなわち、図4(a)に示す入力値と出力濃度との関係を示すグラフにおいて、実線に示すように補正画像S1のグレイ階調における低濃度域が最低濃度Dminよりも明るくなる場合に、図4(a)の破線に示すように低濃度域が最低濃度Dminに収まるようにするためのダイナミックレンジ圧縮率P0を算出する。具体的には、下記の式(3)に示すようにダイナミックレンジ圧縮率P0を算出する。
P0=(Y0−Yh)/(Y0−Dmin) (3)
On the other hand, information on the minimum density Dmin that can be reproduced by the image output unit 7 is input to the correction value calculation means 4, and the highlight gray value Yh is compared with the highlight gray value Yh. When the highlight gray value Yh becomes brighter than the minimum density Dmin, the highlight gray value Yh is set within the minimum density Dmin around the preset reference gray value Y0. For calculating the dynamic range compression ratio. That is, in the graph showing the relationship between the input value and the output density shown in FIG. 4A, when the low density region in the gray gradation of the corrected image S1 becomes brighter than the minimum density Dmin as shown by the solid line, FIG. The dynamic range compression rate P0 is calculated so that the low density region falls within the minimum density Dmin as indicated by the broken line 4 (a). Specifically, the dynamic range compression rate P0 is calculated as shown in the following formula (3).
P0 = (Y0−Yh) / (Y0−Dmin) (3)

ここで、基準グレイ値Y0の値としては、例えば画像S0に含まれる被写体が人物である場合、肌色と略同一の濃度である0.50〜0.70の間の値(ビット数に対する割合として)、好ましくは0.6に設定される。   Here, as the value of the reference gray value Y0, for example, when the subject included in the image S0 is a person, a value between 0.50 and 0.70 that is substantially the same density as the skin color (as a ratio to the number of bits). ), Preferably 0.6.

さらに修正値算出手段4は、ダイナミックレンジ圧縮率P0に基づいて圧縮テーブルT0を生成する。図4(b)は圧縮テーブルの例を示す図である。図4に示すように圧縮テーブルT0において、Y0は上述した基準グレイ値であり、直線部分の傾きは1/P0−1となっている。このような圧縮テーブルを用いることにより、画像S0のグレイ階調における低濃度域が図4(a)の実線に示すように最低濃度Dminよりも小さい場合に、図4(b)の破線に示すように、低濃度域が最低濃度Dmin内に収まることとなる。   Further, the correction value calculation means 4 generates a compression table T0 based on the dynamic range compression rate P0. FIG. 4B is a diagram illustrating an example of a compression table. As shown in FIG. 4, in the compression table T0, Y0 is the reference gray value described above, and the slope of the straight line portion is 1 / P0-1. By using such a compression table, when the low density region in the gray gradation of the image S0 is smaller than the minimum density Dmin as shown by the solid line in FIG. 4A, it is shown by the broken line in FIG. As described above, the low concentration region falls within the minimum concentration Dmin.

なお、圧縮テーブルT0において、傾きが変化するところ(すなわち基準グレイ値Y0の点)が不連続に変化すると、処理済み画像にアーチファクトが生じる場合があるため、傾きが連続するような関数を設定することにより、アーチファクトの発生を防止することができる。   In the compression table T0, when the slope changes (that is, the point of the reference gray value Y0) changes discontinuously, an artifact may occur in the processed image. Therefore, a function is set so that the slope is continuous. As a result, the occurrence of artifacts can be prevented.

修正値算出手段4は、以下のようにして補正画像データS1各画素の色情報の修正値C0を算出する。   The correction value calculation means 4 calculates the correction value C0 of the color information of each pixel of the corrected image data S1 as follows.

まず、第1の算出方法について説明する。第1の算出方法では、画像S0の各画素におけるRGB各色情報のうち最明色の色情報から修正値を求める。ここで、最明色とは、画像S0の各画素におけるRGB各色情報のうち、最も値が大きい色のことをいう。例えば、画像データS0が8ビットである場合、RGB各色情報は0〜255の値をとるが、AE処理により明部の画素値が255よりも大きくなっている場合があるため、最明色の色情報は255よりも大きい値となる場合がある。   First, the first calculation method will be described. In the first calculation method, the correction value is obtained from the color information of the brightest color among the RGB color information in each pixel of the image S0. Here, the brightest color is a color having the largest value among the RGB color information in each pixel of the image S0. For example, when the image data S0 is 8 bits, each color information of RGB takes a value of 0 to 255, but the pixel value of the bright part may be larger than 255 by the AE process, so The color information may have a value larger than 255.

例えば、ある画素P1におけるRGB各色情報R1,G1,B1のうち最明色がRである場合、圧縮テーブルT0における横軸の色情報R1に対応する修正値をその画素P1におけるすべての色情報R1,G1,B1に加算する修正値C0に決定する。   For example, when the brightest color is R among the RGB color information R1, G1, B1 in a certain pixel P1, the correction value corresponding to the color information R1 on the horizontal axis in the compression table T0 is set to all the color information R1 in the pixel P1. , G1, B1 is determined as a correction value C0.

なお、最明色の色情報が基準グレイ値Y0以下である場合には、修正値C0は0となる。このため、処理の対象となる画素の最明色の色情報が基準グレイ値Y0より大きいか否かを判定し、この判定が肯定された場合にのみ圧縮テーブルT0を参照して修正値C0を決定する。   When the color information of the brightest color is equal to or less than the reference gray value Y0, the correction value C0 is 0. For this reason, it is determined whether or not the color information of the brightest color of the pixel to be processed is larger than the reference gray value Y0. Only when this determination is affirmative, the correction value C0 is referred to the compression table T0. decide.

この修正値C0を用いた場合、各画素のすべての色情報R1,G1,B1に加算することにより、処理済みの色情報R2,G2,B2を得ることができる。
R2=R1+C0 (4)
G2=G1+C0 (5)
B2=B1+C0 (6)
When this correction value C0 is used, processed color information R2, G2, B2 can be obtained by adding to all the color information R1, G1, B1 of each pixel.
R2 = R1 + C0 (4)
G2 = G1 + C0 (5)
B2 = B1 + C0 (6)

ここで簡単のために原画像S0および補正画像S1がRおよびBの2色からなるものとし、図5に示す入力値と出力濃度との関係を示すグラフを用いて説明する。画素P1におけるRの値がR1、BがB1であったとすると、最明色はRであるため、画素P1の修正値はRの値R1の修正値であるC0に決定される。したがって、画素P1の他の色情報の値R1およびB1に修正値C0が加算されることにより、画素P1のRおよびBの色情報はそれぞれR2,B2に修正される。これにより、修正されたR2およびB2は双方とも画像出力部7のダイナミックレンジ内に収まることになる。   Here, for simplicity, it is assumed that the original image S0 and the corrected image S1 are composed of two colors R and B, and a description will be given using a graph showing the relationship between the input value and the output density shown in FIG. If the value of R in the pixel P1 is R1 and B is B1, the brightest color is R. Therefore, the correction value of the pixel P1 is determined as C0 which is the correction value of the R value R1. Therefore, by adding the correction value C0 to the other color information values R1 and B1 of the pixel P1, the color information of R and B of the pixel P1 is corrected to R2 and B2, respectively. As a result, both of the corrected R2 and B2 are within the dynamic range of the image output unit 7.

このような修正は低濃度域で行われ、図5からもわかるように、低濃度域(破線部分)では階調による変化が緩やかになり画像の濃淡が少なくなる。被写体の顔などが撮影されている肌色の領域はこの低濃度域内に入ることが多く、このように修正処理をおこなうと諧調による変化が緩やかになり、顔の凹凸がなくなり平面的に見えることがある。   Such correction is performed in the low density region, and as can be seen from FIG. 5, in the low density region (broken line portion), the change due to gradation becomes gradual and the density of the image is reduced. The skin-colored area where the subject's face is photographed often falls within this low-density area. is there.

そこで、肌色の領域は上述と異なる第2の算出方法で修正値を決定する。まず、第2の算出方法では、第1の算出方法と同様に式(3)に示すようなダイナミックレンジ圧縮率P0を算出する。第2の算出方法では、全ての色情報を同じ値で修正を行わずに、色情報ごとに異なる修正値を求める。   Therefore, the correction value for the skin color region is determined by a second calculation method different from that described above. First, in the second calculation method, the dynamic range compression rate P0 as shown in the equation (3) is calculated as in the first calculation method. In the second calculation method, a correction value different for each color information is obtained without correcting all the color information with the same value.

まず、図5の破線と実線の間に破線(一点鎖線)を引いて、図6に示すようなグラフを作成する。第1段階として、色情報Rを修正する修正値C1と、色情報を修正する修正値C2を決定する。修正値C1は、AE補正後のRの色情報R1(l上の値)を一点鎖線l上の濃度値まで修正する修正値であり、修正値C2は、AE補正後のBの色情報B1(l上の値)を一点鎖線l上の濃度値まで修正する修正値である。さらに、第2段階として、グレイ値D(ここでは、簡単のため色情報RとBの平均値をグレイ値とする)を一点鎖線l上の濃度値まで修正するように修正値C3を決定し、R1およびB1の双方をさらに修正値C3を用いて修正する。 First, a broken line (dashed line) is drawn between the broken line and the solid line in FIG. 5 to create a graph as shown in FIG. As a first step, a correction value C1 for correcting the color information R and a correction value C2 for correcting the color information B are determined. Correction value C1 is a correction value for correcting color information of R after AE corrected R1 (the value on l 1) to a concentration value of the one-dot chain line l 2, correction value C2, the color of B after AE correction information B1 (the value of the l 1) is a correction value for correcting up to a concentration value of the one-dot chain line l 2. Further, as the second stage, the correction value C3 is determined so that the gray value D (here, for simplicity, the average value of the color information R and B is the gray value) is corrected to the density value on the alternate long and short dash line l 2. Then, both R1 and B1 are further corrected using the correction value C3.

この第1段階の修正値C1、C2と第2段階の修正値C3を用いて、各画素のすべての色情報R1,B1に加算することにより、処理済みの色情報R2,B2を得る。
R2=R1+C1+C3 (7)
B2=B1+C2+C3 (8)
By using the first-stage correction values C1 and C2 and the second-stage correction value C3, all the color information R1 and B1 of each pixel are added to obtain processed color information R2 and B2.
R2 = R1 + C1 + C3 (7)
B2 = B1 + C2 + C3 (8)

第1の算出方法のように、同じ修正値C0を用いて全ての色情報を修正する場合には色合い(色相)が維持されることになる。一方、第2の算出方法のように修正すると、修正値C1,C2の差によって本来の色合いとは若干異なった色合いになる可能性があるが、第1の算出方法より階調の違いによる濃度の変化が大きくなり濃淡が表れる。しかし、修正値C1,C2の差を非常に大きくして修正値C3の割合を小さくすると、本来の色からかなり異なった色合いとなる可能性が高くなるため、この色合いが大きくずれて不自然にならないような修正値C1,C2,C3を求める。   When all the color information is corrected using the same correction value C0 as in the first calculation method, the hue (hue) is maintained. On the other hand, when the correction is performed as in the second calculation method, there is a possibility that the original hue may be slightly different due to the difference between the correction values C1 and C2, but the density due to the difference in gradation is higher than that in the first calculation method. The change of becomes large and the light and shade appears. However, if the difference between the correction values C1 and C2 is made very large and the ratio of the correction value C3 is made small, there is a high possibility that the hue will be considerably different from the original color. Correction values C1, C2, and C3 are calculated so as not to be satisfied.

肌色はRの色情報が最も大きい値を持つが、修正値C3はグレイ値(色情報の平均値)を基準に算出しているため、Rは低濃度域の一部(極めて低濃度で明るい部分)で最低濃度Dminを超えた値となることがあり、そこでは彩度が低下することになる。しかし、このように彩度が低下しても顔の一部であって広い部分に現われなければ、むしろ彩度が低下しても顔の凹凸がわかるように階調による変化が大きい画像のほうが好ましい。   The skin color has the largest value in the R color information, but the correction value C3 is calculated on the basis of the gray value (average value of the color information), so that R is a part of the low density region (very low and bright). In some cases, the value may exceed the minimum density Dmin, and the saturation will decrease there. However, even if the saturation decreases in this way, it is a part of the face and does not appear in a wide area. preferable.

一方、空の部分に第2の算出手段を用いると、空の明度が非常に高く白に近い青の場合には、空全体の彩度が低下してグレーがかった空になり不自然な画像となる。そこで、このような青色の部分には第1の算出方法を用いるようにすれば、ダイナミックレンジ内に濃度値が収まり彩度が低下しない。   On the other hand, when the second calculation means is used for the sky part, when the sky is very light and blue is close to white, the saturation of the entire sky is lowered and the sky becomes grayish, resulting in an unnatural image. It becomes. Therefore, if the first calculation method is used for such a blue portion, the density value falls within the dynamic range and the saturation does not decrease.

つまり、第1の算出手段は、原画像S0の画素の色情報の色に応じて、階調による濃度の変化よりも色相が変わらないことを優先して決められるものであり、一方、第2の算出手段は、色相が変わらないことより、原画像S0の階調による濃度の変化に近くなるように各色情報の修正値を決めるものである。各算出手段から得られた修正値を修正する対象に応じて変えることにより、好ましい画像に修正することが可能になる。   In other words, the first calculation means is determined according to the color of the color information of the pixel of the original image S0, giving priority to the fact that the hue does not change rather than the density change due to the gradation, while the second The calculation means determines the correction value of each color information so as to be close to the change in density due to the gradation of the original image S0 because the hue does not change. By changing the correction value obtained from each calculation unit according to the target to be corrected, it is possible to correct to a preferable image.

ダイナミックレンジ圧縮手段5は、補正画像S1の画素に対応する原画像S0の画素の色が肌色であるか肌色以外の色(非肌色)であるかによって、第1の算出手段によって求めた修正値と第2の算出手段によって求めた修正値を加重平均した修正値を用いてダイナミックレンジ圧縮処理を施した処理済み画像S2を生成する。   The dynamic range compression unit 5 determines the correction value obtained by the first calculation unit depending on whether the color of the pixel of the original image S0 corresponding to the pixel of the corrected image S1 is a skin color or a color other than the skin color (non-skin color). And a processed image S2 subjected to dynamic range compression processing using a correction value obtained by weighted averaging of the correction values obtained by the second calculation means.

画像に現れる色が、肌色であるか否かを明確に判定することは困難であるので、ある色空間の中で肌色らしさを表す肌色率rを求めることにする。図7に示すように、色情報Gの画素値から色情報Bの画素値を差し引いた値を示す軸(G−B)と、色情報Rの画素値から色情報Gの画素値を差し引いた値を示す軸(R−G)とからなる肌色率マップMap上の濃度値で肌色率を表すものとし、まっ白なところは肌色率がr=1、真っ黒なところは肌色率がr=0、グレーは中間の肌色率(0<r<1)を表すものとする。また、非肌率は、1−rとなる。   Since it is difficult to clearly determine whether or not the color appearing in the image is a skin color, the skin color ratio r representing the skin color is determined in a certain color space. As shown in FIG. 7, the axis (GB) indicating the value obtained by subtracting the pixel value of the color information B from the pixel value of the color information G, and the pixel value of the color information G from the pixel value of the color information R are subtracted. The skin color rate is expressed by the density value on the skin color rate map Map composed of the axis indicating the value (RG), and the skin color rate is r = 1 for the pure white part, and the skin color rate is r = 0 for the black part. Gray represents an intermediate skin color rate (0 <r <1). Further, the non-skin rate is 1-r.

補正画像S1上の画素に対応する原画像S0の画素の色情報から、G−Bの値とR−Gの値を求め、肌色率マップMap上のグレー値より肌色率rを求める。修正値は肌色率rと非肌色率1−rに応じて、第1の算出方法で得られた修正値と、第2の算出方法で得られた修正値を加算して求める。例えば、原画像S0の画素が図7の肌色率マップMapの矢印の示す点にあり、この点のグレー値の示す肌色率が0.3である場合には、非肌率は0.7となり、第1の算出方法と第2の算出方法の修正値を非肌率と非肌率に応じて加重平均して、Rの修正値D1と,Bの修正値D2とを求める。
D1=r(C1+C3)+(1−r)C0
=0.3(C1+C3)+0.7×C0 (9)
D2=r(C2+C3)+(1−r)C0
=0.3(C2+C3)+0.7×C0 (10)
From the color information of the pixel of the original image S0 corresponding to the pixel on the corrected image S1, the values of GB and RG are obtained, and the skin color rate r is obtained from the gray value on the skin color rate map Map. The correction value is obtained by adding the correction value obtained by the first calculation method and the correction value obtained by the second calculation method according to the skin color rate r and the non-skin color rate 1-r. For example, when the pixel of the original image S0 is at the point indicated by the arrow in the skin color rate map Map in FIG. 7 and the skin color rate indicated by the gray value at this point is 0.3, the non-skin rate is 0.7. The correction values of the first calculation method and the second calculation method are weighted and averaged according to the non-skin rate and the non-skin rate to obtain the R correction value D1 and the B correction value D2.
D1 = r (C1 + C3) + (1-r) C0
= 0.3 (C1 + C3) + 0.7 x C0 (9)
D2 = r (C2 + C3) + (1-r) C0
= 0.3 (C2 + C3) + 0.7 × C0 (10)

この修正値D1、D2を用いて、補正画像の各画素のすべての色情報R1,B1に加算することにより、処理済みの色情報R2,B2を得ることができる。
R2=R1+D1 (11)
B2=B1+D2 (12)
By using the correction values D1 and D2 and adding to all the color information R1 and B1 of each pixel of the corrected image, processed color information R2 and B2 can be obtained.
R2 = R1 + D1 (11)
B2 = B1 + D2 (12)

このように、肌色率を求めて修正値を変えることにより、顔のように彩度が低下したところが多少あっても諧調が現れた方がよい部分には、諧調を優先したダイナミックレンジ圧縮をし、空のように彩度が低下しない方がよいところでは、色相が変わらないようにダイナミックレンジ圧縮をすることが可能になる。   In this way, by calculating the skin color rate and changing the correction value, dynamic range compression that prioritizes gradation is applied to areas where gradation is better even if there is a slight decrease in saturation, such as the face. In a place where it is better not to lower the saturation as in the sky, it is possible to perform dynamic range compression so that the hue does not change.

上述では、圧縮テーブルの算出をグレイ値から求める場合について説明したが、最明色の色情報から求めるようにしてもよい。具体的には、補正画像S1の各画素におけるRGBの各色情報から最明色の画素値を抽出して、図10に示すように、全画素から最明色のヒストグラムH1を求めて、修正値算出手段4で、ヒストグラムH1におけるハイライト側からの累積相対度数が3%を示す値Ch3%を、図4(a)に示す画像データS0のYhとして求めるようにしてもよい。 In the above description, the compression table is calculated from the gray value. However, the compression table may be calculated from the color information of the brightest color. Specifically, the pixel value of the brightest color is extracted from each color information of RGB in each pixel of the correction image S1, and the histogram H1 of the brightest color is obtained from all the pixels as shown in FIG. The calculation unit 4 may obtain a value Ch 3% indicating that the cumulative relative frequency from the highlight side in the histogram H1 is 3% as Yh of the image data S0 shown in FIG.

また、図11(a)に示すように、ヒストグラムH1におけるハイライト側の最大値Chmaxが最低濃度Dmin内に収まるようにダイナミックレンジ圧縮率を求めることにより、非肌は全ての画像の色情報が最低濃度Dmin内に収まるように圧縮テーブル(図11(b))を決めることができる。あるいは、図11(a)における最大値Chmaxが累積相対度数が3%を示す値Ch3%であってもよい。 Further, as shown in FIG. 11A, by calculating the dynamic range compression ratio so that the highlight side maximum value Chmax in the histogram H1 falls within the minimum density Dmin, the color information of all images is obtained for non-skins. The compression table (FIG. 11 (b)) can be determined so as to be within the minimum density Dmin. Alternatively, the maximum value Chmax in FIG. 11A may be a value Ch 3% indicating that the cumulative relative frequency is 3%.

また、上記各手段をコンピュータ上に機能させるようなプログラムを記録した媒体を用いてコンピュータにインストールすることによって、画像処理装置として動作させることができる。また、このプログラムはネットワークを介して提供することも可能である。   Moreover, it can operate as an image processing apparatus by installing in a computer using the medium which recorded the program which functions each said means on a computer. This program can also be provided via a network.

以上詳細に説明したように、彩度をなるべく低下をしないようにしつつも、顔が自然な仕上がりとなって不快な感じを与えないようにすることが可能になる。 As described above in detail, it is possible to prevent the face from becoming unnatural and uncomfortable while keeping the saturation as low as possible.

本発明の実施形態による画像処理装置の構成を示す概略ブロック図1 is a schematic block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. AE補正処理を説明するための図The figure for demonstrating AE correction processing グレイ値のヒストグラムを示す図Diagram showing gray value histogram ダイナミックレンジを圧縮する圧縮テーブルの生成を説明するための図(その1)The figure for demonstrating the production | generation of the compression table which compresses a dynamic range (the 1) ダイナミックレンジを圧縮を説明するための図(その1)Diagram for explaining compression of dynamic range (part 1) ダイナミックレンジを圧縮を説明するための図(その2)Diagram for explaining compression of dynamic range (part 2) 肌率のマップを表す図Diagram showing skin rate map 圧縮テーブルを示す図Diagram showing compression table 従来のダイナミックレンジ圧縮処理を説明するための図The figure for demonstrating the conventional dynamic range compression process 最明色の値のヒストグラムを示す図The figure which shows the histogram of the value of the brightest color ダイナミックレンジを圧縮する圧縮テーブルの生成を説明するための図(その2)Diagram for explaining generation of compression table for compressing dynamic range (part 2)

符号の説明Explanation of symbols

1 画像処理装置
2 画像入力手段
3 補正画像作成手段
4 複数の修正値算出手段
5 ダイナミックレンジ圧縮手段
7 画像出力部
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 2 Image input means 3 Correction | amendment image creation means 4 Several correction value calculation means 5 Dynamic range compression means 7 Image output part

Claims (5)

複数の色情報を有する画素からなるカラー画像を入力する画像入力手段と、
前記カラー画像の明度を上げるように該カラー画像の画素の色情報の濃度を補正した補正画像を作成する補正画像作成手段と、
前記補正画像中の画素のうち、低濃度側において所定のダイナミックレンジを越えた濃度値の色情報を有する画素に対して、該画素の全ての色情報が前記ダイナミックレンジ内に収まるように該画素の全ての色情報を修正する修正値を算出する修正値算出手段と、
前記補正画像の画素のうち前記ダイナミックレンジを越えた濃度値の色情報を有する画素に対して前記修正値算出手段から得られた修正値を用いてダイナミックレンジ圧縮処理を施すダイナミックレンジ圧縮手段とを備え、
前記修正値算出手段が、前記ダイナミックレンジを越えた濃度値の色情報を有する画素の全ての色情報が前記ダイナミックレンジ内に収まるように各色情報ごとに異なる修正候補値を算出する非同一修正候補値算出部を有し、前記ダイナミックレンジを越えた濃度値の色情報を有する画素が所定の色空間の中で予め規定された肌色らしさを表す肌色率rがr=1である肌色画素である場合、前記非同一修正候補値算出部で算出した修正候補値を前記修正値とするものであることを特徴とする画像処理装置。
Image input means for inputting a color image composed of pixels having a plurality of color information;
A corrected image creating means for creating a corrected image by correcting the density of color information of pixels of the color image so as to increase the brightness of the color image;
Among the pixels in the corrected image, with respect to a pixel having color information with a density value exceeding a predetermined dynamic range on the low density side, the pixel so that all the color information of the pixel falls within the dynamic range. Correction value calculation means for calculating a correction value for correcting all the color information of
Dynamic range compression means for applying dynamic range compression processing to the pixels having color information of density values exceeding the dynamic range among the pixels of the corrected image using the correction values obtained from the correction value calculation means; Prepared,
Non-identical correction candidates in which the correction value calculation means calculates different correction candidate values for each color information so that all color information of pixels having color information of density values exceeding the dynamic range falls within the dynamic range A skin color pixel having a skin color ratio r representing a skin color-likeness defined in advance in a predetermined color space is a skin color pixel having a value calculation unit and having color information of density values exceeding the dynamic range. In this case, the image processing apparatus is characterized in that the correction candidate value calculated by the non-identical correction candidate value calculation unit is the correction value.
前記修正値算出手段が、前記ダイナミックレンジを越えた濃度値の色情報を有する画素の全ての色情報が前記ダイナミックレンジ内に収まるように各色情報に対して同じ値の修正候補値を算出する同一修正候補値算出部をさらに有し、前記ダイナミックレンジを越えた濃度値の色情報を有する画素が前記肌色率rが0≦r<1である非肌色画素である場合、該画素の前記肌色率が小さくなるに従い、前記同一修正候補値算出部の修正候補値の割合が大きくなるように、前記非同一修正候補値算出部の修正候補値と前記同一修正候補値算出部の修正候補値とを加重平均して前記修正値を算出するものであることを特徴とする請求項1記載の画像処理装置。 The same correction value calculation means calculates correction candidate values having the same value for each color information so that all color information of pixels having color information of density values exceeding the dynamic range fall within the dynamic range. suggestions value calculator further includes a, the case where a pixel with color information of the density values exceeding the dynamic range is the skin color index r is a non-skin color pixels is 0 ≦ r <1, the skin color ratio of the pixel The correction candidate value of the non-identical correction candidate value calculation unit and the correction candidate value of the same correction candidate value calculation unit are set so that the ratio of the correction candidate value of the same correction candidate value calculation unit increases as The image processing apparatus according to claim 1, wherein the correction value is calculated by weighted averaging. 前記補正画像作成手段が、前記各画素の全ての色情報に対して一定値を加算して補正を行うものであることを特徴とする請求項1または2記載の画像処理装置。   3. The image processing apparatus according to claim 1, wherein the corrected image creating means performs correction by adding a constant value to all color information of each pixel. 複数の色情報を有する画素からなるカラー画像を入力する画像入力ステップと、
前記カラー画像の明度を上げるように該カラー画像の画素の色情報の濃度を補正した補正画像を作成する補正画像作成ステップと、
前記補正画像中の画素のうち、低濃度側において所定のダイナミックレンジを越えた濃度値の色情報を有する画素に対して、該画素の全ての色情報が前記ダイナミックレンジ内に収まるように該画素の全ての色情報を修正する修正値を算出する修正値算出ステップと、
前記補正画像の画素のうち前記ダイナミックレンジを越えた濃度値の色情報を有する画素に対して前記修正値算出ステップから得られた修正値を用いてダイナミックレンジ圧縮処理を施すダイナミックレンジ圧縮ステップとを備え、
前記修正値算出ステップが、前記ダイナミックレンジを越えた濃度値の色情報を有する画素の全ての色情報が前記ダイナミックレンジ内に収まるように各色情報ごとに異なる修正候補値を算出する非同一修正候補値算出ステップを有し、前記ダイナミックレンジを越えた濃度値の色情報を有する画素が所定の色空間の中で予め規定された肌色らしさを表す肌色率rがr=1である肌色画素である場合、前記非同一修正候補値算出ステップで算出した修正候補値を前記修正値とするものであることを特徴とする画像処理方法。
An image input step of inputting a color image composed of pixels having a plurality of color information;
A corrected image creating step of creating a corrected image in which the density of color information of pixels of the color image is corrected so as to increase the brightness of the color image;
Among the pixels in the corrected image, with respect to a pixel having color information with a density value exceeding a predetermined dynamic range on the low density side, the pixel so that all the color information of the pixel falls within the dynamic range. A correction value calculating step for calculating a correction value for correcting all of the color information;
A dynamic range compression step of performing dynamic range compression processing using a correction value obtained from the correction value calculation step on a pixel having color information of a density value exceeding the dynamic range among the pixels of the corrected image. Prepared,
Non-identical correction candidates in which the correction value calculation step calculates different correction candidate values for each color information so that all color information of pixels having color information of density values exceeding the dynamic range are within the dynamic range A skin color pixel having a skin color ratio r representing a skin color likeness defined in advance in a predetermined color space , wherein the pixel having color information having a density value exceeding the dynamic range has a value calculation step. A correction candidate value calculated in the non-identical correction candidate value calculation step is used as the correction value.
コンピュータを、
複数の色情報を有する画素からなるカラー画像を入力する画像入力手段と、
前記カラー画像の明度を上げるように該カラー画像の画素の色情報の濃度を補正した補正画像を作成する補正画像作成手段と、
前記補正画像中の画素のうち、低濃度側において所定のダイナミックレンジを越えた濃度値の色情報を有する画素に対して、該画素の全ての色情報が前記ダイナミックレンジ内に収まるように該画素の全ての色情報を修正する修正値を算出する修正値算出手段と、
前記補正画像の画素のうち前記ダイナミックレンジを越えた濃度値の色情報を有する画素に対して前記修正値算出手段から得られた修正値を用いてダイナミックレンジ圧縮処理を施すダイナミックレンジ圧縮手段として機能させるプログラムであって、
前記修正値算出手段が、前記ダイナミックレンジを越えた濃度値の色情報を有する画素の全ての色情報が前記ダイナミックレンジ内に収まるように各色情報ごとに異なる修正候補値を算出する非同一修正候補値算出部を有し、前記ダイナミックレンジを越えた濃度値の色情報を有する画素が所定の色空間の中で予め規定された肌色らしさを表す肌色率rがr=1である肌色画素である場合、前記非同一修正候補値算出部で算出した修正候補値を前記修正値とするものであることを特徴とするプログラム。
Computer
Image input means for inputting a color image composed of pixels having a plurality of color information;
A corrected image creating means for creating a corrected image by correcting the density of color information of pixels of the color image so as to increase the brightness of the color image;
Among the pixels in the corrected image, with respect to a pixel having color information with a density value exceeding a predetermined dynamic range on the low density side, the pixel so that all the color information of the pixel falls within the dynamic range. Correction value calculation means for calculating a correction value for correcting all the color information of
Functions as a dynamic range compression unit that performs dynamic range compression processing using a correction value obtained from the correction value calculation unit on a pixel having color information of a density value exceeding the dynamic range among the pixels of the corrected image. A program to
Non-identical correction candidates in which the correction value calculation means calculates different correction candidate values for each color information so that all color information of pixels having color information of density values exceeding the dynamic range falls within the dynamic range A skin color pixel having a skin color ratio r representing a skin color-likeness defined in advance in a predetermined color space is a skin color pixel having a value calculation unit and having color information of density values exceeding the dynamic range. In this case, the correction candidate value calculated by the non-identical correction candidate value calculation unit is used as the correction value.
JP2005071762A 2005-03-14 2005-03-14 Image processing apparatus, image processing method and program thereof Active JP4505356B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005071762A JP4505356B2 (en) 2005-03-14 2005-03-14 Image processing apparatus, image processing method and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005071762A JP4505356B2 (en) 2005-03-14 2005-03-14 Image processing apparatus, image processing method and program thereof

Publications (2)

Publication Number Publication Date
JP2006254374A JP2006254374A (en) 2006-09-21
JP4505356B2 true JP4505356B2 (en) 2010-07-21

Family

ID=37094330

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005071762A Active JP4505356B2 (en) 2005-03-14 2005-03-14 Image processing apparatus, image processing method and program thereof

Country Status (1)

Country Link
JP (1) JP4505356B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001245153A (en) * 1999-12-20 2001-09-07 Fuji Photo Film Co Ltd Image processing method and apparatus
JP2002118764A (en) * 2000-10-10 2002-04-19 Mitsubishi Electric Corp Color reproduction area compression method and color reproduction area compression device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3669448B2 (en) * 1995-10-31 2005-07-06 富士写真フイルム株式会社 Image reproduction method and apparatus
JPH11328388A (en) * 1998-05-12 1999-11-30 Fuji Photo Film Co Ltd Method and device for image reproduction

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001245153A (en) * 1999-12-20 2001-09-07 Fuji Photo Film Co Ltd Image processing method and apparatus
JP2002118764A (en) * 2000-10-10 2002-04-19 Mitsubishi Electric Corp Color reproduction area compression method and color reproduction area compression device

Also Published As

Publication number Publication date
JP2006254374A (en) 2006-09-21

Similar Documents

Publication Publication Date Title
US7076119B2 (en) Method, apparatus, and program for image processing
JP3668014B2 (en) Image processing method and apparatus
JP2013211662A (en) Gradation correction apparatus or method thereof
JP5157678B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
US8345121B2 (en) Image processing apparatus, method, and program
JP7296745B2 (en) Image processing device, image processing method, and program
US20080225313A1 (en) Image processing apparatus and method and computer-readable recording medium having stored therein the program
JP2018019239A (en) Imaging apparatus, control method therefor and program
JP2004246644A (en) Apparatus, method, and program for image processing
US7580158B2 (en) Image processing apparatus, method and program
JP4208767B2 (en) Image processing apparatus and image processing method
EP2246818A1 (en) Image signal processing device and image signal processing program
JP4505356B2 (en) Image processing apparatus, image processing method and program thereof
JP5157760B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
JP4261290B2 (en) Image processing apparatus and method, and program
JP4303061B2 (en) Image processing apparatus and method, and program
JP2008227959A (en) Image processing device, image processing method and image processing system
JP4024735B2 (en) Image processing method, image processing apparatus, image forming apparatus, imaging apparatus, and computer program
JP2019029781A (en) Image processing system
JP2006019847A (en) Image processor, processing method and program
JP4091220B2 (en) Image processing method and apparatus, and recording medium
JPH11127361A (en) Image processor, its method and recording medium
JPH01252069A (en) Picture processing method in color picture forming device
JP2005109871A (en) Image processor, method and program
KR20150127524A (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061209

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070713

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090511

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100208

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100406

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100426

R150 Certificate of patent or registration of utility model

Ref document number: 4505356

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130430

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130430

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140430

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250