JP2005267410A - Image processing method and device, and printer - Google Patents
Image processing method and device, and printer Download PDFInfo
- Publication number
- JP2005267410A JP2005267410A JP2004081001A JP2004081001A JP2005267410A JP 2005267410 A JP2005267410 A JP 2005267410A JP 2004081001 A JP2004081001 A JP 2004081001A JP 2004081001 A JP2004081001 A JP 2004081001A JP 2005267410 A JP2005267410 A JP 2005267410A
- Authority
- JP
- Japan
- Prior art keywords
- color
- image
- correction information
- generating
- blurred
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims description 15
- 238000006243 chemical reaction Methods 0.000 claims abstract description 13
- 230000008859 change Effects 0.000 claims abstract description 10
- 210000001747 pupil Anatomy 0.000 claims description 14
- 238000001914 filtration Methods 0.000 claims description 2
- 238000003702 image correction Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 11
- 238000000034 method Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 4
- 239000003086 colorant Substances 0.000 description 2
- 230000037308 hair color Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 101000860173 Myxococcus xanthus C-factor Proteins 0.000 description 1
- 241001469893 Oxyzygonectes dovii Species 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000004043 dyeing Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Images
Abstract
Description
本発明は画像処理方法及び装置並びにプリンタに係り、特に髪の毛の色を変更する技術に関する。 The present invention relates to an image processing method and apparatus, and a printer, and more particularly to a technique for changing the color of hair.
従来、デジタル画像のうち、ある指定された色領域を別の色に変換することはよく行われる。例えば、デジタル画像編集ソフト(Adobe Photoshop など) を使用して色領域を指定した後、その指定した領域の色を所望の色に色変換することがよく行われる。 Conventionally, it is often performed to convert a designated color area into another color in a digital image. For example, after a color area is designated using digital image editing software (such as Adobe Photoshop), the color of the designated area is often converted to a desired color.
また、特許文献1には、デジタル画像の特定部分のデータからR、G、Bごとにヒストグラムを作成し、この作成したヒストグラムに基づいて色変換テーブルを作成し、この色変換テーブルを利用して撮影データの色合いを調整するデジタルカメラが記載されている。また、このデジタルカメラは、プレビュー画像を参照しながら入力操作によって上記色変換テーブルを変更する機能を有している。
近年、撮影した顔写真とテンプレート画像とを合成してプリントするアミューズメントシールプリント機を利用するユーザの低年齢化が進んでおり、従来は女子高校生がメインユーザであったが、女子中学生が増えている。 In recent years, the age of users using amusement sticker printing machines that synthesize and print photographed face photos and template images has been declining, and in the past, high school girls were the main users, but the number of junior high school girls has increased. Yes.
中学生は、校則で髪の毛を染めることが禁止されているため、アミューズメントシールプリント機で茶髪化してプリントしてあげると、女子中学生の茶髪願望を叶えてあげることができる。 Since junior high school students are prohibited from dyeing their hair according to school regulations, if they print with brown hair using an amusement sticker printing machine, they can fulfill their desire for female junior high school students.
デジタル画像中の髪の毛を茶髪にする場合、従来のデジタル画像編集ソフトを使用して髪の毛の領域を指定し、その指定した領域の色を茶色に色変換する場合、髪の毛の領域を正確に指定するのが難しいという問題がある。 When converting the hair in the digital image to brown hair, use the conventional digital image editing software to specify the hair area, and when converting the color of the specified area to brown, specify the hair area accurately. There is a problem that it is difficult.
また、特許文献1に記載のように色変換テーブルを利用した画像の色合いを調整する場合、黒や黒褐色の髪の毛の色が茶色になるように調整すると、顔等の他の領域のカラーバランスが大幅にずれるという問題がある。更に、明度の暗い特定の色(黒や黒褐色)に対してのみ、その色を茶色に色変換する技術があるが、この場合、瞳の色も茶色になってしまうという問題がある。
In addition, when adjusting the color tone of an image using a color conversion table as described in
本発明はこのような事情に鑑みてなされたもので、大面積の領域の色と小面積の領域の色とで色変換の程度を変えることができ、特に小面積の瞳の領域の色は変えずに、大面積の髪の毛の領域の色のみを茶髪の色等に自動的に変えることができる画像処理方法及び装置並びにプリンタを提供することを目的とする。 The present invention has been made in view of such circumstances, and the degree of color conversion can be changed between the color of a large area region and the color of a small area region. It is an object of the present invention to provide an image processing method and apparatus, and a printer that can automatically change only the color of the hair area of a large area to the color of brown hair without changing.
前記目的を達成するために請求項1に係る画像処理方法は、デジタルのカラー画像からボケ画像を生成する工程と、前記生成したボケ画像の各画素の明るさに基づいて前記カラー画像のうちの大面積の領域の色と小面積の領域の色とで色変換の程度を変えるための色補正情報を生成する工程と、前記カラー画像を前記生成した色補正情報に基づいて補正する工程と、を含むことを特徴としている。
In order to achieve the above object, an image processing method according to
即ち、デジタルのカラー画像からボケ画像を作成する。このボケ画像を使用して大面積の色の領域の画像(画素)と小面積の色の領域の画像(画素)とを分離可能にする。ボケ画像は、複数の画素の明るさが平均化されるため、大面積の色の領域におけるボケ画像の明るさは、元の画像の明るさに対する変化が少ないのに対し、小面積の色の領域におけるボケ画像の明るさは、元の画像の明るさに対する変化が大きくなる。従って、ボケ画像の各画素ごとに、その画素の明るさに基づいて当該画素が大面積の色の領域の画素か小面積の色の領域の画素かを判別することができる。そして、カラー画像のうちの大面積の色の領域の画素と小面積の色の領域の画素とで色変換の程度を変えるための色補正情報を生成し、この色補正情報に基づいてカラー画像の対応する画素の色を補正するようにしている。 That is, a blurred image is created from a digital color image. Using this blurred image, an image (pixel) of a large-area color region and an image (pixel) of a small-area color region can be separated. Since the brightness of a plurality of pixels is averaged in a blurred image, the brightness of the blurred image in a large-area color region has little change with respect to the brightness of the original image, whereas the brightness of a small-area color The brightness of the blurred image in the region varies greatly with respect to the brightness of the original image. Therefore, for each pixel of the blurred image, it is possible to determine whether the pixel is a pixel in a large area color region or a small area color pixel based on the brightness of the pixel. Then, color correction information for changing the degree of color conversion is generated between a pixel in a large area color region and a pixel in a small area color region in the color image, and the color image is generated based on the color correction information. The color of the corresponding pixel is corrected.
請求項2に示すように請求項1に記載の画像処理方法において、前記カラー画像は黒又は黒褐色の髪の毛を有する人物を含む画像であり、前記大面積の領域は髪の毛の領域を含むものであり、前記小面積の領域は瞳の領域を含むものであることを特徴としている。これにより、元のカラー画像では、髪の毛の領域の色と瞳の領域の色とが近似していても、瞳の色を変えずに髪の毛の色のみを変更することが可能になる。
The image processing method according to
請求項3に示すように請求項2に記載の画像処理方法において、前記ボケ画像を生成する工程は、瞳の領域の方が、髪の毛の領域に比べて原画像に対するボケ画像の明るさが、より明るくなるようなボケ画像を生成することを特徴としている。これにより、ボケ画像の明るさから、髪の毛の領域と瞳の領域とを区別することができ、瞳の色を髪の毛の色と同様に変更しないようにすることができる。即ち、面積の大きな暗い領域のみカラーバランスを変えることができる。 In the image processing method according to claim 2, in the image processing method according to claim 2, in the step of generating the blurred image, the brightness of the blurred image with respect to the original image is higher in the pupil region than in the hair region. A feature is that a blurred image that is brighter is generated. Accordingly, the hair region and the pupil region can be distinguished from the brightness of the blurred image, and the pupil color can be prevented from being changed in the same manner as the hair color. That is, the color balance can be changed only in a dark area having a large area.
請求項4に示すように請求項1乃至3のいずれかに記載の画像処理方法において、前記ボケ画像を生成する工程は、前記カラー画像から明度を示す画像を生成する工程と、前記明度を示す画像を所定のデジタルフィルタでフィルタ処理してボケ画像を生成する工程とを含むことを特徴としている。
The image processing method according to any one of
まず、カラー画像から明度を示す画像を作成し、この明度を示す画像を、IIR(Infinite Impulse Response)型フィルタ、FIR(Finite Impulse Response)型フィルタなどの所定のデジタルフィルタによってボケ画像化する。 First, an image showing lightness is created from a color image, and the image showing lightness is blurred by a predetermined digital filter such as an IIR (Infinite Impulse Response) filter or FIR (Finite Impulse Response) filter.
請求項5に示すように請求項1乃至4のいずれかに記載の画像処理方法において、前記カラー画像から無彩色を含む無彩色近辺の画像を抽出する工程と、前記抽出した無彩色近辺の画像に基づいて該無彩色近辺の画像の色を変更すべく前記色補正情報に重み付けを行う工程とを更に含むことを特徴としている。
5. The image processing method according to
これにより、髪の毛等の大面積の色の領域の画像で、かつ無彩色近辺の画像の色のみを変更することができる。 Thereby, it is possible to change only the color of an image of a large-area color area such as hair and an image near an achromatic color.
請求項6に係る画像処理装置は、デジタルのカラー画像からボケ画像を生成するボケ画像生成手段と、前記生成したボケ画像の各画素の明るさに基づいて前記カラー画像のうちの大面積の領域の色と小面積の領域の色とで色変換の程度を変えるための色補正情報を生成する色補正情報生成手段と、前記カラー画像を前記生成した色補正情報に基づいて補正する色補正手段と、を備えたことを特徴としている。 An image processing apparatus according to claim 6, wherein a blurred image generation unit that generates a blurred image from a digital color image, and a large-area area of the color image based on the brightness of each pixel of the generated blurred image Color correction information generating means for generating color correction information for changing the degree of color conversion between the color of the image and the color of the small area, and color correction means for correcting the color image based on the generated color correction information It is characterized by having.
請求項7に示すように請求項6に記載の画像処理装置において、前記色補正情報生成手段は、予め入力画素の明るさ情報に対応して色補正情報を記憶するルックアップテーブルを有し、前記生成したボケ画像の各画素の明るさ情報を入力するごとに前記ルックアップテーブルから対応する色補正情報を読み出して出力することを特徴としている。尚、ルックアップテーブルは、色変換の内容に応じて複数設け、適宜選択したルックアップテーブルを使用するようにしてもよい。 As shown in claim 7, in the image processing apparatus according to claim 6, the color correction information generating means has a look-up table for storing color correction information corresponding to brightness information of input pixels in advance, Each time the brightness information of each pixel of the generated blurred image is input, the corresponding color correction information is read from the look-up table and output. Note that a plurality of lookup tables may be provided according to the contents of color conversion, and an appropriately selected lookup table may be used.
請求項8に示すように請求項6又は7に記載の画像処理装置において、前記色補正情報生成手段は、黒又は黒褐色の髪の毛を茶髪にするための色補正情報を生成することを特徴としている。 The image processing apparatus according to claim 6 or 7, wherein the color correction information generating means generates color correction information for making black or black-brown hair brown. .
請求項9に係るプリンタは、請求項6乃至8のいずれかに記載の画像処理装置と、該画像処理装置によって画像処理された画像を印画紙に印画する印刷手段とを備えたことを特徴としている。 A printer according to a ninth aspect includes the image processing apparatus according to any one of the sixth to eighth aspects, and a printing unit that prints an image processed by the image processing apparatus on photographic paper. Yes.
請求項10に示すように請求項9に記載のプリンタにおいて、人物を撮影してデジタルのカラー画像を取得するカメラを更に備えたことを特徴としている。 According to a tenth aspect of the present invention, the printer according to the ninth aspect further includes a camera for photographing a person and acquiring a digital color image.
本発明によれば、処理対象のカラー画像からボケ画像を生成し、このボケ画像を使用して大面積の色の領域の画像と小面積の色の領域の画像とを識別可能にしたため、カラー画像のうちの大面積の色の領域の画像と小面積の色の領域の画像とで色変換の程度を変えることができ、これにより小面積の瞳の領域の色は変えずに、大面積の髪の毛の領域の色のみを茶髪の色等に自動的に変えることができる。 According to the present invention, the blur image is generated from the color image to be processed, and the image of the large color area and the image of the small color area can be identified using the blur image. The degree of color conversion can be changed between the image of the large area color area and the image of the small area color area of the image, and the color of the small area pupil area can be changed without changing the color of the small area area. Only the color of the hair area can be automatically changed to the color of brown hair.
以下添付図面に従って本発明に係る画像処理方法及び装置並びにプリンタの好ましい実施の形態について詳説する。 Hereinafter, preferred embodiments of an image processing method and apparatus and a printer according to the present invention will be described in detail with reference to the accompanying drawings.
図1は本発明に係るプリンタの実施の形態を示すブロック図である。 FIG. 1 is a block diagram showing an embodiment of a printer according to the present invention.
同図に示すように、この実施の形態のプリンタ100は、ゲームセンタや店頭に設置されているアミューズメントシールプリント機であり、主としてカメラ部110と、画像処理部120と、表示制御部130と、表示器140と、中央処理装置(CPU)150と、主メモリ160と、ストレージ170と、プリントエンジン180と、操作部190とから構成されている。
As shown in the figure, the
カメラ部110は、ユーザの顔を撮影してデジタルのカラー画像データ(R、G、B信号)を出力する。画像処理部120は、カメラ部110から出力されたR、G、B信号に基づいて本発明に係る画像処理(以下、「茶髪処理」という)を行う機能と、ユーザの顔画像と予め準備されているテンプレート画像や落書きなどを合成処理する機能と、合成後の画像データから印画用のデータを作成する機能等を有している。尚、茶髪処理の詳細については後述する。
The
画像処理部120は、各種の画像処理を施したR、G、B信号をY、M、C(イエロー、マゼンタ、シアン)信号に変換し、この変換したY、M、C信号をプリントエンジン180に出力する。
The
表示制御部130は、カメラ部110から入力する画像データ(動画を示す画像データ)から表示器140にユーザの顔画像を表示するための表示用の画像データを作成し、これを表示器140に出力して画像を表示させたり、上記ユーザの顔画像と予め準備されているテンプレート画像とが合成された合成画像を表示器140に表示させる。
The
CPU150は、システム全体を統括的に制御する処理部であり、このCPU150により、カメラ部110への撮影指示や、カメラ部110からの画像データの読み出し、この読み出した画像データに対する処理指示や各制御ブロックに対する画像データの受け渡し、印画の実行等の各種指示を与える。CPU150への各種処理の指示は、使用者の操作に基づいて操作部190から与えられる。例えば、操作部190は、表示器140に表示されるテンプレート画像を見ながら画像合成に使用するテンプレート画像の選択指示を行うボタン、プリント出力するプリント種類を選択するためのボタン、茶髪処理の有無の選択や、茶髪処理の種類を選択するボタン等を有している。尚、操作部190は、表示器140上にタッチパネルのソフトボタンによって実現するようにしてもよい。
The
主メモリ160は、プリンタの制御プログラムが格納されたり、プログラム実行時の作業領域として使用され、ストレージ170は、不揮発性の記憶手段であり、各種のテンプレート画像や茶髪処理用のルックアップテーブル(LUT)などが記憶されている。
The
プリントエンジン180は、例えば、印画方式としてTA(サーモオートクローム)方式を採用したもので、C、M、Yの各発色層を有するカラー印画紙(以下、「TAペーパー」という)自体を熱で発色させ、所定の波長の光の照射で定着するものであり、TAペーパーを搬送する手段、サーマルヘッド、定着ランプ等を有している。カラー画像をTAペーパーに印画する場合には、まずTAペーパーを搬送するとともにY信号によってサーマルヘッドを制御し、TAペーパーのイエロー層を発色させ、続いて定着ランプによってイエローの発色を定着させる。TAペーパーのマゼンタ層及びシアン層の発色もM信号、C信号に基づいて同様に行われ、これによりTAペーパーにカラー画像を印画する。尚、この実施の形態のプリンタは、TAプリンタであるが、これに限らず、本発明は他の感熱プリンタやインクジェットプリンタ等の他の形式のプリンタにも適用できる。
The
次に、上記画像処理部120での茶髪処理について説明する。
Next, brown hair processing in the
図2は画像処理部120の茶髪処理部の実施の形態を示すブロック図である。
FIG. 2 is a block diagram showing an embodiment of the brown hair processing unit of the
図2に示すように茶髪処理部は、明暗信号生成部121と、ボケ画像生成部122と、茶髪LUT123と、乗算器124と、彩度算出部125と、ウエイト算出部126と、加算器127とから構成されている。
As shown in FIG. 2, the brown hair processing unit includes a light / dark
明暗信号生成部121は、入力するR、G、B信号に基づいて次式により明暗信号Yを生成する。
[数1]
Y=(5R+6G+5B)/16 …(1)
尚、明暗信号Yは、式(1) に限らず、Y=0.3 R+0.6 G+0.1 B、Y=(R+G+B)/3などの式によって求めてもよい。
The light /
[Equation 1]
Y = (5R + 6G + 5B) / 16 (1)
The light / dark signal Y is not limited to the equation (1), but may be obtained by an equation such as Y = 0.3 R + 0.6 G + 0.1 B, Y = (R + G + B) / 3.
ボケ画像生成部122は、明暗信号生成部121から入力する明暗信号Yに基づいてボケ画像を示す明暗信号YLを生成する。
The blurred
図3はボケ画像生成部122における処理手順のフローチャートであり、図4はボケ画像生成部122の各処理段階における画像のイメージを示す図である。
FIG. 3 is a flowchart of a processing procedure in the blurred
ボケ画像生成部122は、明暗信号生成部121から明暗信号Yを入力する。この明暗信号Yの画像(1) の一例を、図4(A)に示す。
The blurred
ボケ画像生成部122は、画像(1) を1/2間引き処理して縮小した画像(2) を生成する(図3のステップS10、図4(B))。図4(B)に示すように、縮小した画像(2) の画像サイズ(画素数)は元の画像(1) の画素数の1/4になるため、後段の処理は、演算時間を短縮することができる。
The blurred
続いて、ボケ画像生成部122は、縮小した画像(2) に対してIIR 型ローパスフィルタをかけてボケ画像(3) を生成する(ステップS12、図4(C))。
Subsequently, the blurred
図5はIIR 型ローパスフィルタのモデルを示している。同図に示すようにIIR 型ローパスフィルタは、加算器132と、1画素遅延素子134と、乗算器136、138とから構成されている。尚、乗算器136、138では、所定のフィルタ係数α、(1−α)が乗算される。
FIG. 5 shows a model of an IIR low-pass filter. As shown in the figure, the IIR low-pass filter includes an
入力する画像(2) に対して上記構成のIIR 型ローパスフィルタを上下左右に4回かけることでボケ画像(3) が得られる。また、フィルタ係数αは、31/32 、15/16 、7/8 などの値が適切である。 The blurred image (3) is obtained by applying the IIR low-pass filter having the above configuration to the input image (2) four times in the vertical and horizontal directions. Further, the filter coefficient α is appropriately 31/32, 15/16, 7/8, or the like.
尚、ボケ画像(3) を生成するためのフィルタは、IIR 型ローパスフィルタに限らず、例えば、FIR 型ローパスフィルタでもよく、要はデジタル的に画像をぼかすフィルタであれば、いかなるものでもよい。 Note that the filter for generating the blurred image (3) is not limited to the IIR low-pass filter, but may be, for example, an FIR low-pass filter. In short, any filter may be used as long as it digitally blurs the image.
次に、ボケ画像(3) を2倍に拡大しての元の画像(1) と同じ画素数のボケ画像(4) を生成する(ステップS14、図4(D))。ボケ画像(3) の拡大処理は、隣接する画素の明暗データを補間して新たな画素を生成することによって行う。尚、ステップS10、ステップS14の縮小、拡大の処理は、図3では1/2間引き、×2拡大としたが、これに限らず、1/3間引き、×3拡大、あるいは1/4間引き、×4拡大などでもよい。 Next, a blur image (4) having the same number of pixels as the original image (1) obtained by magnifying the blur image (3) by a factor of two is generated (step S14, FIG. 4D). The enlargement process of the blurred image (3) is performed by interpolating the brightness data of adjacent pixels to generate a new pixel. Note that the reduction and enlargement processes in steps S10 and S14 are 1/2 thinning and x2 enlargement in FIG. 3, but not limited to this, 1/3 thinning, x3 enlargement, or 1/4 thinning, × 4 enlargement may be used.
図6(A)はボケ画像生成部122に入力する画像の明暗信号Yのヒストグラムの一例を示し、図6(B)はボケ画像生成部122によって生成されたボケ画像の明暗信号YLのヒストグラムの一例を示している。
6A shows an example of the histogram of the light / dark signal Y of the image input to the blurred
図6(A)のヒストグラムに示すようにボケていない画像の明暗信号Yにおける髪の毛と瞳の明度は接近しているが、図6(B)のヒストグラムに示すようにボケ画像の明暗信号YLにおける髪の毛と瞳の明度の差は広がる。これは、髪の毛の領域は面積が大きいため、ボケ画像における髪の毛の領域の明度は変化が少ないのに対し、瞳の領域は面積が小さく、その周囲は白眼や明るい肌色の領域であるため、ボケ画像における瞳の領域の明度は変化が大きくなる(明度が上がる)からである。 As shown in the histogram of FIG. 6 (A), the brightness of the hair and the pupil in the light / dark signal Y of the unblurred image is close, but as shown in the histogram of FIG. 6 (B), in the light / dark signal YL of the blurred image. The difference between the brightness of the hair and the pupil widens. This is because the area of the hair has a large area, so the brightness of the area of the hair in the blurred image has little change, while the area of the pupil is small and the surrounding area is a white eye or bright skin color area. This is because the brightness of the pupil region in the image varies greatly (the brightness increases).
図2に戻って、茶髪LUT123は、R、G、Bの各色の3つのLUTからなり、3つのLUTは、それぞれ明暗信号YLの大きさに対応する色補正データを記憶している。尚、3つのLUTは、黒又は黒褐色の髪の毛を示すR、G、B信号を、茶髪を示すR′、G′、B′信号に補正するための、それぞれ異なる色補正データを記憶している。そして、茶髪LUT123を構成する3つのLUTは、ボケ画像生成部122によって生成されたボケ画像の明暗信号YLに基づいてその明暗信号YLに対応する色補正データを読み出し、R、G、B信号ごとの色補正データを乗算器126に出力する。尚、茶髪LUT123の詳細については後述する。
Returning to FIG. 2, the
彩度算出部125は、入力するR、G、B信号に基づいて式(2) により、色差信号Cb 、Cr を生成し、この色差信号Cb 、Cr に基づいて式(3) により彩度Cを算出する。
[数2]
Cb =B−Y、Cr =R−Y …(2)
(ただし、Yは明暗信号)
[数3]
C=√(Cb 2 +Cr 2 ) …(3)
ウエイト算出部126は、彩度算出部125から入力する彩度Cの大きさに応じたウエイトWgreyを算出する。
[Equation 2]
C b = B−Y, C r = R−Y (2)
(However, Y is a light / dark signal)
[Equation 3]
C = √ (C b 2 + C r 2 ) (3)
The
即ち、図7(A)に示すように彩度Cの大きさが彩度算出部125にて算出されると、ウエイト算出部126は、図7(B)に示すように彩度Cの大きさに対応するウエイトWgreyを出力する。
That is, when the saturation C is calculated by the
図7(B)に示すようにウエイト算出部126は、彩度Cが0〜C1 の範囲の場合には、ウエイトWgrey=1を出力し、彩度CがC2 以上の場合にはウエイトWgrey=0を出力し、彩度CがC1 〜C2 の範囲では、その彩度Cの大きさに応じて1〜0に連続的に変化するウエイトWgreyを出力する。尚、0〜C1 の範囲の彩度Cは、ほぼ無彩色と認められる範囲であり、C2 以上は比較的大きな有彩色であり、C1 〜C2 の範囲の彩度は、無彩色と有彩色との中間の彩度である。
このようにしてウエイト算出部126によって算出されたウエイトWgreyは、乗算器124に出力される。
The weight W gray calculated by the
乗算器124は、茶髪LUT123から入力する色補正データと、ウエイト算出部126から入力するウエイトWgreyとを乗算する。この乗算によって得られる色補正データは、無彩色近辺の画素の色のみを補正するデータとなる。これは、無彩色又は無彩色近辺の髪の毛に相当する画素の色のみを色補正するためである。
The
乗算器124の乗算結果は、加算器127に出力される。加算器127の他の入力には、R、G、B信号が加えられており、加算器127は両者を加算して色補正(茶髪処理)後のR′、G′、B′信号を出力する。
The multiplication result of the
図8は図2に示した茶髪処理部の要部ブロック図である。 FIG. 8 is a main block diagram of the brown hair processing unit shown in FIG.
図8に示すように茶髪LUT123は、3つのLUT_R、LUT_G、LUT_Bからなり、各LUT_R、LUT_G、LUT_Bには、ボケ画像の明暗信号YLが加えられる。
As shown in FIG. 8, the
図9(A)、(B)及び(C)に示すように3つのLUT_R、LUT_G、及びLUT_Bは、明暗信号YLに対応して色補正データを記憶しており、入力する明暗信号YLに対応する色補正データを読み出す。LUT_Rは、図9(A)に示すように明暗信号YLが所定の明暗信号YL′よりも小さくなる場合には、明暗信号YLが小さくなる程、大きな色補正データを読み出す。ここで、所定の明暗信号YL′よりも小さな明暗信号YLは、髪の毛の領域のボケ画像の明暗信号に相当しており、この明暗信号YLの入力時に色補正データを出力する。また、この実施の形態では、LUT_G、及びLUT_Bは、図9(A)及び(C)に示すように全ての明暗信号YLにわたって0の色補正データを記憶している。 As shown in FIGS. 9A, 9B, and 9C, the three LUT_R, LUT_G, and LUT_B store color correction data corresponding to the light / dark signal YL, and correspond to the input light / dark signal YL. Read the color correction data. As shown in FIG. 9A, LUT_R reads larger color correction data as the light / dark signal YL becomes smaller when the light / dark signal YL becomes smaller than the predetermined light / dark signal YL ′. Here, the light / dark signal YL smaller than the predetermined light / dark signal YL ′ corresponds to the light / dark signal of the blurred image of the hair region, and color correction data is output when the light / dark signal YL is input. In this embodiment, LUT_G and LUT_B store 0 color correction data over all the light / dark signals YL as shown in FIGS.
上記LUT_R、LUT_G、及びLUT_Bから読み出された色補正データは、それぞれ乗算器124R、124G、及び124Bに出力される。乗算器124R、124G、及び124Bの他の入力には、無彩色近辺に大きな重み付けを行うウエイトWgreyが加えられており、乗算器124R、124G、及び124Bは、それぞれ入力する2入力を乗算して乗算結果を加算器127R、127G、及び127Bに出力する。
The color correction data read from the LUT_R, LUT_G, and LUT_B are output to the
加算器127R、127G、及び127Bの他の入力には、それぞれR、G、B信号が加えられており、加算器127R、127G、及び127Bは、それぞれR、G、B信号と、重み付けがされた色補正データとを加算し、その加算結果を示すR′、G′、B′信号を出力する。
The other inputs of the
ここで、髪の毛の領域のボケ画像の明暗信号YLが得られるときのR信号に対しては、図9(A)に示したように色補正データが加算されるため、加算後のR′信号は大きくなる。一方、G、B信号に対しては図9(B)及び(C)に示したように色補正データが加算されないため、G、B信号は変化しない(G′=G、B′=B)。その結果、R、G、B信号のカラーバランスがR方向に変化し、黒又は黒褐色の髪の毛が茶髪になる。 Here, since the color correction data is added to the R signal when the light / dark signal YL of the blurred image of the hair region is obtained as shown in FIG. 9A, the R ′ signal after the addition is added. Will grow. On the other hand, since the color correction data is not added to the G and B signals as shown in FIGS. 9B and 9C, the G and B signals do not change (G ′ = G, B ′ = B). . As a result, the color balance of the R, G, and B signals changes in the R direction, and black or black-brown hair becomes brown hair.
尚、図9に示したLUTの一例では、LUT_Rのみ色補正データを有するものとしたが、3つのLUT_R、LUT_G、及びLUT_Bにそれぞれ異なる色補正データを記憶させて所望の色補正ができるようにしてもよい。また、3つのLUT_R、LUT_G、及びLUT_Bを複数セット準備し、茶髪処理1、茶髪処理2等の種々の茶髪処理を実現できるようにしてもよい。
In the example of the LUT shown in FIG. 9, only LUT_R has color correction data. However, different color correction data is stored in each of the three LUT_R, LUT_G, and LUT_B so that desired color correction can be performed. May be. Alternatively, a plurality of sets of three LUT_R, LUT_G, and LUT_B may be prepared so that various brown hair processing such as
また、この実施の形態では、明暗信号Yからボケ画像の明暗信号YLを生成し、この明暗信号YLを3つのLUT_R、LUT_G、及びLUT_Bの共通の入力信号としたが、これに限らず、R、G、Bごとにボケ画像の明暗信号RL、GL、BLを生成し、これらの明暗信号RL、GL、BLをそれぞれ3つのLUT_R、LUT_G、及びLUT_Bの入力信号としてもよい。 In this embodiment, the light / dark signal YL of the blurred image is generated from the light / dark signal Y, and the light / dark signal YL is used as a common input signal for the three LUT_R, LUT_G, and LUT_B. , G, and B may be generated for each of the light and dark signals RL, GL, and BL of the blurred image, and these light and dark signals RL, GL, and BL may be used as input signals for three LUT_R, LUT_G, and LUT_B, respectively.
100…プリンタ、110…カメラ部、120…画像処理部、121…明暗信号生成部、122…ボケ画像生成部、123…茶髪LUT、124、124R、124G、124B…乗算器、125…彩度算出部、126…ウエイト算出部、127、127R、127G、127B…加算器、130…表示制御部、140…表示器、150…中央処理装置(CPU)、160…主メモリ、170…ストレージ、180…プリントエンジン、190…操作部
DESCRIPTION OF
Claims (10)
前記生成したボケ画像の各画素の明るさに基づいて前記カラー画像のうちの大面積の領域の色と小面積の領域の色とで色変換の程度を変えるための色補正情報を生成する工程と、
前記カラー画像を前記生成した色補正情報に基づいて補正する工程と、
を含むことを特徴とする画像処理方法。 Generating a blurred image from a digital color image;
Generating color correction information for changing the degree of color conversion between a color of a large area and a color of a small area of the color image based on the brightness of each pixel of the generated blurred image When,
Correcting the color image based on the generated color correction information;
An image processing method comprising:
前記生成したボケ画像の各画素の明るさに基づいて前記カラー画像のうちの大面積の領域の色と小面積の領域の色とで色変換の程度を変えるための色補正情報を生成する色補正情報生成手段と、
前記カラー画像を前記生成した色補正情報に基づいて補正する色補正手段と、
を備えたことを特徴とする画像処理装置。 A blurred image generating means for generating a blurred image from a digital color image;
A color for generating color correction information for changing the degree of color conversion between a color of a large area and a color of a small area of the color image based on the brightness of each pixel of the generated blurred image Correction information generating means;
Color correction means for correcting the color image based on the generated color correction information;
An image processing apparatus comprising:
The printer according to claim 9, further comprising a camera that captures a digital color image by photographing a person.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004081001A JP4150925B2 (en) | 2004-03-19 | 2004-03-19 | Image processing method and apparatus, and printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004081001A JP4150925B2 (en) | 2004-03-19 | 2004-03-19 | Image processing method and apparatus, and printer |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005267410A true JP2005267410A (en) | 2005-09-29 |
JP4150925B2 JP4150925B2 (en) | 2008-09-17 |
Family
ID=35091878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004081001A Expired - Fee Related JP4150925B2 (en) | 2004-03-19 | 2004-03-19 | Image processing method and apparatus, and printer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4150925B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7894674B2 (en) | 2006-03-27 | 2011-02-22 | Fujifilm Corporation | Image-processing method and apparatus, and printer including enhancement of head hair |
-
2004
- 2004-03-19 JP JP2004081001A patent/JP4150925B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7894674B2 (en) | 2006-03-27 | 2011-02-22 | Fujifilm Corporation | Image-processing method and apparatus, and printer including enhancement of head hair |
Also Published As
Publication number | Publication date |
---|---|
JP4150925B2 (en) | 2008-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4421761B2 (en) | Image processing method and apparatus, and recording medium | |
JP2004274720A (en) | Data conversion apparatus and data conversion program | |
JP4368513B2 (en) | Image processing method and apparatus, and recording medium | |
JP2005269639A (en) | Method and system for converting color image to gray scale image, gray scale image, method for improving conversion from color to gray scale, and edge emphasizing method | |
JP2002016818A (en) | Color correction method and device, and recording medium | |
US8340411B2 (en) | Smart image resizing with color-based entropy and gradient operators | |
JP2007228131A (en) | Correction of color of image data | |
US8369654B2 (en) | Developing apparatus, developing method and computer program for developing processing for an undeveloped image | |
JP2002016939A (en) | Method and apparatus for processing image as well as recording medium | |
JP2002016874A (en) | Method and apparatus for processing image as well as recording medium for recording program therefor | |
JP2003264699A (en) | Method for adjusting color, brightness and tone scale of rendered digital image | |
JP4203808B2 (en) | Image processing device | |
JP2009282860A (en) | Developing processor and development processing method for undeveloped image data, and computer program for development processing | |
JP2001211339A (en) | Method and device for image processing and recording medium | |
JP4258735B2 (en) | Image processing method, apparatus, program, and printer | |
JP2006114006A (en) | Gradation conversion apparatus, program, electronic camera, and method therefor | |
JP4150925B2 (en) | Image processing method and apparatus, and printer | |
JP4002526B2 (en) | Image correction method, apparatus and program | |
JP4539778B2 (en) | Image data color correction | |
JP4389951B2 (en) | Image processing device | |
US7660479B2 (en) | Image processing method, image processing apparatus and program for the same | |
JP5353382B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2008283286A (en) | Development processor for undeveloped image data, development processing method, and computer program for development processing | |
JP2004234251A (en) | Image forming apparatus | |
JP2001292332A (en) | Color correction method, color correction device, and recording medium for recording color correction control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060522 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061225 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080221 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080312 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080509 |
|
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: 20080604 |
|
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: 20080617 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4150925 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110711 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110711 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120711 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120711 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130711 Year of fee payment: 5 |
|
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 |
|
LAPS | Cancellation because of no payment of annual fees |