JP2006033639A - Program, information storage medium, photograph printing device, and photograph printing method - Google Patents

Program, information storage medium, photograph printing device, and photograph printing method Download PDF

Info

Publication number
JP2006033639A
JP2006033639A JP2004212238A JP2004212238A JP2006033639A JP 2006033639 A JP2006033639 A JP 2006033639A JP 2004212238 A JP2004212238 A JP 2004212238A JP 2004212238 A JP2004212238 A JP 2004212238A JP 2006033639 A JP2006033639 A JP 2006033639A
Authority
JP
Japan
Prior art keywords
value
image
pixel
subject image
hue
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
Application number
JP2004212238A
Other languages
Japanese (ja)
Other versions
JP4084784B2 (en
Inventor
Shinichi Hagino
真一 萩野
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.)
SYSTEM KEIKAKU KENKYUSHO KK
Namco Ltd
Research Institute of Systems Planning Inc
Original Assignee
SYSTEM KEIKAKU KENKYUSHO KK
Namco Ltd
Research Institute of Systems Planning Inc
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 SYSTEM KEIKAKU KENKYUSHO KK, Namco Ltd, Research Institute of Systems Planning Inc filed Critical SYSTEM KEIKAKU KENKYUSHO KK
Priority to JP2004212238A priority Critical patent/JP4084784B2/en
Publication of JP2006033639A publication Critical patent/JP2006033639A/en
Application granted granted Critical
Publication of JP4084784B2 publication Critical patent/JP4084784B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a program capable of generating a highly accurate image with α-channel which is capable of highly accurate chroma key synthesis, and to provide a photograph printing device and an information storage medium. <P>SOLUTION: This program includes an α value operating means for obtaining a chroma key synthesis parameter of each pixel on the basis of the hue component of each pixel of an object image and the hue component of an extracted color thereof, and operating an α value corresponding to each pixel of the object image on the basis of the chroma key synthesis parameter; and an extracted color eliminating means for eliminating an extracted color printed on the object image. The α value operating means decides an α value of each pixel of the object image so as to have a functional relation in which the variation ratio of the α value for the chroma key synthesis parameter may be reduced, in the vicinity of a first value indicating that the chroma key synthesis parameter is a foreground image or in the vicinity of a second value indicating that the parameter is a background image. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、プログラム、情報記憶媒体、写真印刷装置及び写真印刷方法に関する。   The present invention relates to a program, an information storage medium, a photo printing apparatus, and a photo printing method.

従来より、CCDカメラ等の撮影部で撮影されたユーザー被写体の画像を編集してプリントする写真シール製造機(写真印刷装置の一例)が知られている。   2. Description of the Related Art Conventionally, a photo sticker manufacturing machine (an example of a photo printing apparatus) that edits and prints an image of a user subject photographed by a photographing unit such as a CCD camera is known.

写真シール製造機では、撮影ブースの被写体の背景面を特定色にして、クロマキー処理やマスク処理等の特定色領域抜き出し処理で、特定色領域を抜き、抜けた部分を他の画像と合成することが行われている。
特開平8−65705号
In photo sticker making machines, the background of the subject of the shooting booth is made a specific color, the specific color area is extracted by chroma key processing, mask processing, etc., and the missing part is combined with another image. Has been done.
JP-A-8-65705

図23はクロマキー合成について説明するための図である。   FIG. 23 is a diagram for explaining the chroma key composition.

クロマキー合成とは対象画像(被写体画像)840から前景850と背景(抜き取り色)860を分離し、前景850を新しい背景(所与の背景)870と合成するための技術である。   The chroma key composition is a technique for separating the foreground 850 and the background (extracted color) 860 from the target image (subject image) 840 and compositing the foreground 850 with a new background (given background) 870.

画素値をXベクトル=(R,G,B)、前景をFGベクトル、背景をBGベクトルとすると、
が成り立つと仮定している。
If the pixel value is X vector = (R, G, B), the foreground is an FG vector, and the background is a BG vector,
Is assumed to hold.

k=0の時は背景、k=1の特は前景、0<k<1の時は半透明部分などを意味する。
(39)より新しい背景BG’ベクトルと合成した画素値をX’ベクトルとすると、
であり、(39)と(40)から、
となり、kが求まれば新しい画素値を計算することができる。
When k = 0, the background is k = 1, the foreground is when k = 1, and when 0 <k <1, it means a translucent portion.
(39) If the pixel value synthesized with the newer background BG ′ vector is the X ′ vector,
From (39) and (40),
If k is obtained, a new pixel value can be calculated.

単色背景で撮影したときはBGベクトル=Constと考えられるが(39)にはFGベクトルが未知数として含まれているため、(39)をといてkを求めることができない。そこでFGの領域をパラメータで設定しkを計算する方法を工夫するのが従来の方法であった。   When shooting with a monochrome background, it is considered that BG vector = Const. However, since (39) includes the FG vector as an unknown, k cannot be obtained by taking (39). Therefore, the conventional method has been to devise a method for calculating k by setting the FG region with parameters.

図24は従来の方式で生成された画像である。   FIG. 24 shows an image generated by the conventional method.

図25は図24の毛先の部分810であり、被写体の毛先が背景色(抜き取り色)とまじりあって中間色になっている様子812を示した図である。このように従来は単色背景で撮影すると、輪郭や毛先などで前景色と背景色が混じりあい前景と背景の中間色になる場合があった。特に暗い背景と合成するときに髪の毛先などに背景色がまじりあい、精度のよい画像がえられなかった。   FIG. 25 is a hair tip portion 810 of FIG. 24 and shows a state 812 in which the hair tip of the subject is mixed with the background color (extracted color) and becomes an intermediate color. Thus, conventionally, when photographing with a single color background, the foreground color and the background color are mixed with each other by the outline or the hair tip, and the intermediate color between the foreground and the background may be obtained. In particular, when synthesizing with a dark background, the background color was mixed with the tip of the hair, etc., and an accurate image could not be obtained.

また図26は図24のスカート部分820であり、被写体の一部に背景色(抜き取り色)が映り込んでいる様子822を表している。このように、被写体が背景等に近い場合には被写体に背景色が映り込む現象が見られる。   FIG. 26 is the skirt portion 820 of FIG. 24 and shows a state 822 in which the background color (extracted color) is reflected in a part of the subject. As described above, when the subject is close to the background or the like, a phenomenon in which the background color is reflected on the subject is seen.

クロマキー合成ではこのような中間色領域を自然に合成することが精度向上につながる。   In the chroma key composition, naturally synthesizing such intermediate color areas leads to an improvement in accuracy.

上記文献にはその精度向上の手法の一例として、RGB色空間をBGベクトルを中心とする三角錐の集合で分割し、背景領域、前景領域、その中間領域を設定する手法が記載されている。   In the above document, as an example of a technique for improving the accuracy, a technique is described in which the RGB color space is divided by a set of triangular pyramids centered on the BG vector, and a background area, a foreground area, and an intermediate area are set.

しかし上記引用文献の方法は128面体を用いた計算法であるので、その頂点である66点に、3,4種類のパラメータを設定する必要があり、パラメータ調整には非常に手間がかかるという問題点があった。   However, since the method of the above cited reference is a calculation method using a 128-hedron, it is necessary to set three or four kinds of parameters at 66 points which are the vertices, and it is very troublesome to adjust the parameters. There was a point.

またパーソナルコンピュータで画像合成ツールを使ってクロマキー合成を行う場合には個別の画像状態に合わせて人手によってパラメータを調整して精度のよい画像を合成することも可能である。しかし写真印刷装置等に適用する場合には、撮影状況(背景や照明の明るさや色むら等の個別具体的な状況)を考慮してパラメータを調節して画像の調整を行うことは困難である。   In addition, when chroma key composition is performed using an image composition tool on a personal computer, it is possible to synthesize a highly accurate image by manually adjusting parameters according to individual image states. However, when applied to a photographic printing apparatus or the like, it is difficult to adjust an image by adjusting parameters in consideration of shooting conditions (individual specific conditions such as background, brightness of illumination, and color unevenness). .

ここで対象画像(被写体画像)840から前景850の画像を取り出して各画素のRGB値にα値を追加した画像であるαチャネル付レイヤー(画像)を生成し、これを用いて新しい背景(所与の背景)870と合成することがある。例えば写真印刷装置において被写体の輪郭線を抽出してエフェクトをかけるような編集(例えば被写体の輪郭に沿って発光エフェクトをかける場合等)する場合には、
このαチャネル付レイヤー(画像)FGと背景BGをαに従って次式に従って半透明合成(αブレンディング処理)を行うことによって新しい背景(所与の背景)870と合成画像が計算される。
Here, an image of the foreground 850 is extracted from the target image (subject image) 840, and an α channel-added layer (image), which is an image obtained by adding an α value to the RGB value of each pixel, is generated. May be combined with (given background) 870. For example, when editing a photo printing apparatus to extract an outline of a subject and apply an effect (for example, when applying a light emitting effect along the contour of the subject),
A semi-transparent composition (α blending process) is performed on the α-channel layer (image) FG and the background BG according to the following equation according to α to calculate a new background (given background) 870 and a composite image.

αチャネル付レイヤー(画像)の形式でデータを保持すると、色調整などの画像処理がしやすくなるが、上記問題点を解決し精度のよい画像を生成するためには、αチャネル付レイヤー(画像)を高精度に作成する必要がある。   Retaining data in the form of a layer with an α channel (image) facilitates image processing such as color adjustment, but in order to solve the above problems and generate a highly accurate image, a layer with an α channel (image ) Must be created with high accuracy.

本発明は、以上のような課題を解決するためになされたものであり、その目的とするところは、精度のよいクロマキー合成が可能な高精度なαチャネル付レイヤー(画像)を生成可能なプログラム、情報記憶媒体、写真印刷装置及び写真印刷方法を提供することにある。   The present invention has been made to solve the above-described problems, and an object thereof is a program capable of generating a layer (image) with a high-precision alpha channel capable of accurate chroma key composition. Another object of the present invention is to provide an information storage medium, a photo printing apparatus, and a photo printing method.

(1)本発明は、
抜き取り色を背景として撮影された被写体の画像からα値付き被写体画像を生成するためのプログラムであって、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(1) The present invention
A program for generating a subject image with an α value from an image of a subject photographed with a sampling color as a background,
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

前記クロマキー合成パラメータが前景画像であることを表す第1の値とは例えば1である。   The first value indicating that the chroma key composition parameter is a foreground image is 1, for example.

前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率がより小さくなるように補正を行うとは、例えば前記近傍付近で前記α値を第1の値に近づけるような補正を行う場合である。   In the vicinity of the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, correction is performed so that the rate of change of the α value with respect to the chroma key composition parameter is smaller. Is corrected so as to be close to the first value.

本発明により生成されるα値付き被写体画像は、各画素のα値に基づき所与の背景(新たな背景)と半透明合成(例えばαブレンディング処理)を行うことに用いられたりする。かかる場合に色相平面における背景中心からの距離が遠い部分(被写体画像と背景の境界付近)においてクロマキー合成パラメータの変化率が緩やかになるのと同じ効果を有する。   The subject image with an α value generated according to the present invention is used for performing a translucent composition (for example, α blending process) with a given background (new background) based on the α value of each pixel. In this case, it has the same effect as the change rate of the chroma key composition parameter becomes gentle at a portion (near the boundary between the subject image and the background) that is far from the background center on the hue plane.

前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近にある場合には、背景色が映り込んでいる可能性が高い。   When the chroma key composition parameter is in the vicinity of the first value indicating that it is a foreground image, there is a high possibility that a background color is reflected.

本発明のようにα値を設定することで、後に半透明合成等を行う場合に前景と背景の境界付近では、前景画像が新背景の影響をあまり受けないように制御することができる。   By setting the α value as in the present invention, it is possible to control so that the foreground image is not significantly affected by the new background in the vicinity of the boundary between the foreground and the background when translucent synthesis or the like is performed later.

(2)本発明は、
抜き取り色を背景として撮影された被写体の画像からα値付き被写体画像を生成するためのプログラムであって、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(2) The present invention
A program for generating a subject image with an α value from an image of a subject photographed with a sampling color as a background,
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

前記クロマキー合成パラメータが背景画像であることを表す第2の値とは例えば0である。   The second value indicating that the chroma key composition parameter is a background image is 0, for example.

前記クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率がより小さくなるように補正を行うとは、例えば前記α値を第2の値に近づけるような補正を行う場合である。   In the vicinity of the vicinity of the second value indicating that the chroma key composition parameter is a background image, the correction is performed so that the rate of change of the α value with respect to the chroma key composition parameter becomes smaller. This is a case where correction is performed so as to approach the value.

本発明により生成されるα値付き被写体画像は、各画素のα値に基づき所与の背景(新たな背景)と半透明合成(例えばαブレンディング処理)を行うことに用いられたりする。かかる場合に色相平面における背景中心からの距離が近い部分(背景部分)においてクロマキー合成パラメータの変化率が緩やかになるのと同じ効果を有する。   The subject image with an α value generated according to the present invention is used for performing a translucent composition (for example, α blending process) with a given background (new background) based on the α value of each pixel. In this case, it has the same effect as the change rate of the chroma key composition parameter becomes gentle in the portion (background portion) where the distance from the background center is short on the hue plane.

前記クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近にある場合には、当該画素は背景画像である可能性が高い。   When the chroma key composition parameter is in the vicinity of the second value indicating that it is a background image, the pixel is likely to be a background image.

本発明のようにα値を設定することで、後に半透明合成等を行う場合に背景の色相成分の変動を受けないように制御することができる。従って背景となるカーテン等に色むらや色ずれがある場合でも、これらの違いを吸収してきれいな画像が生成可能な背景の色むらや色ずれにつよいシステムを提供することができる。   By setting the α value as in the present invention, it is possible to control so as not to be subject to fluctuations in the hue component of the background when performing translucent synthesis or the like later. Therefore, even when there is color unevenness or color misregistration in the curtain or the like as the background, it is possible to provide a system that can absorb these differences and generate a clean image and is resistant to color unevenness or color misregistration in the background.

(3)本発明のプログラムは、
前記抜き取り色除去手段が、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする。
(3) The program of the present invention
The sampling color removing means is
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. It is characterized by that.

(4)本発明は、
抜き取り色を背景として撮影された被写体の画像からα値付き被写体画像を生成するためのプログラムであって、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記抜き取り色除去手段は、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする。
(4) The present invention
A program for generating a subject image with an α value from an image of a subject photographed with a sampling color as a background,
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The sampling color removing means includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. It is characterized by that.

クロマキー合成では所与の画素の画素値(色等)から背景色の混合がない状態の画素値(色等)を推定し、その画素値(色等)を新背景(所与の画像)の画素値(色等)から合成後の画素値(色等)を計算する。本発明のようにα値付き被写体画像においては背景色の混合がない状態の画素値(色等)を求めることが重要である。   In chroma key composition, a pixel value (color, etc.) in a state where there is no background color mixture is estimated from the pixel value (color, etc.) of a given pixel, and that pixel value (color, etc.) is used for the new background (given image). The combined pixel value (color, etc.) is calculated from the pixel value (color, etc.). As in the present invention, it is important to obtain a pixel value (color, etc.) in a state where there is no background color mixing in a subject image with an α value.

色相平面において線形性を仮定するならば色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点によって特定される色相値に基づき抜き取り色を除去した被写体画像の画素値を求めるのが好ましい。しかし各画素の色相位置によっては前記交点までの距離が大きくなりすぎて色相平面の上限値をこえてしまう場合がある。本発明によれば、このような場合各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の画素値を近似することができる。   If linearity is assumed on the hue plane, the distance between the hue position of each pixel on the hue plane and the background position set based on the sampling color is closer to the hue position of each pixel of the two predetermined straight lines. It is preferable to obtain the pixel value of the subject image from which the extracted color is removed based on the hue value specified by the point intersecting with the straight line. However, depending on the hue position of each pixel, the distance to the intersection may be too large and exceed the upper limit of the hue plane. According to the present invention, in such a case, the vertical line drawn on the straight line closer to the hue position of each pixel of the two straight lines from the hue position of each pixel intersects with the straight line. The pixel value of the subject image from which the extracted color is removed based on the specified hue value can be approximated.

従って各画素の色相位置によらず抜き取り色を除去した被写体画像の画素値を求めることができる。   Therefore, the pixel value of the subject image from which the extracted color is removed can be obtained regardless of the hue position of each pixel.

(5)本発明のプログラムは、
前記α値演算手段が、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(5) The program of the present invention
The α value calculating means is
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(6)本発明のプログラムは、
前記α値演算手段が、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(6) The program of the present invention
The α value calculating means is
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(7)本発明は、
コンピュータにより読みとり可能な情報記憶媒体であって、上記のいずれかに記載のプログラムを記憶することを特徴とする情報記憶媒体である。
(7) The present invention
An information storage medium readable by a computer, wherein the program according to any one of the above is stored.

(8)本発明は、
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込み手段と、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成手段と、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像手段と、
合成画像に基づきプリント画像を生成する手段とを含み、
前記α値付き被写体画像生成手段は、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(8) The present invention
A photo printing device that captures, edits, and prints an image of a photographed subject,
Subject image capturing means for capturing an image of a subject by capturing an image of the subject using an extraction unit as a background with an extraction color; and
Subject image generation means with α value for generating a subject image with α value based on the captured subject image;
a composite image means for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generating means
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(9)本発明は、
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込み手段と、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成手段と、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像手段と、
合成画像に基づきプリント画像を生成する手段とを含み、
前記α値付き被写体画像生成手段は、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(9) The present invention
A photo printing device that captures, edits, and prints an image of a photographed subject,
Subject image capturing means for capturing an image of a subject by capturing an image of the subject using an extraction unit as a background with an extraction color; and
Subject image generation means with α value for generating a subject image with α value based on the captured subject image;
a composite image means for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generating means
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(10)本発明の写真印刷装置は、
前記抜き取り色除去手段が、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする。
(10) The photo printing apparatus of the present invention comprises:
The sampling color removing means is
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. It is characterized by that.

(11)本発明は、
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込み手段と、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成手段と、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像手段と、
合成画像に基づきプリント画像を生成する手段とを含み、
前記α値付き被写体画像生成手段は、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記抜き取り色除去手段は、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする。
(11) The present invention
A photo printing device that captures, edits, and prints an image of a photographed subject,
Subject image capturing means for capturing an image of a subject by capturing an image of the subject using an extraction unit as a background with an extraction color; and
Subject image generation means with α value for generating a subject image with α value based on the captured subject image;
a composite image means for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generating means
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The sampling color removing means includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. It is characterized by that.

(12)本発明の写真印刷装置は、
前記α値演算手段が、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(12) The photo printing apparatus of the present invention is
The α value calculating means is
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(13)本発明の写真印刷装置は、
前記α値演算手段が、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(13) The photo printing apparatus of the present invention
The α value calculating means is
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(14)本発明は、
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置の写真印刷方法であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込みステップと、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成ステップと、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像ステップと、
合成画像に基づきプリント画像を生成するステップとを含み、
前記α値付き被写体画像生成ステップは、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算ステップと、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去ステップとを含み、
前記α値演算ステップは、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(14) The present invention provides:
A photo printing method of a photo printing apparatus for capturing, editing, and printing a photographed subject image,
A subject image capturing step of capturing an image of a subject by capturing an image of the subject using an extraction unit with a sampling color as a background; and
A subject image generation step with an α value that generates a subject image with an α value based on the captured subject image;
a composite image step for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generation step includes:
An α value calculation step for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color, and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal step for removing the sampling color reflected in the subject image,
The α value calculating step includes:
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(15)本発明は、
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置の写真印刷方法であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込みステップと、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成ステップと、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像ステップと、
合成画像に基づきプリント画像を生成するステップとを含み、
前記α値付き被写体画像生成ステップは、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算ステップと、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去ステップとを含み、
前記α値演算ステップは、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
(15) The present invention provides:
A photo printing method of a photo printing apparatus for capturing, editing, and printing a photographed subject image,
A subject image capturing step of capturing an image of a subject by capturing an image of the subject using an extraction unit with a sampling color as a background; and
A subject image generation step with an α value that generates a subject image with an α value based on the captured subject image;
a composite image step for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generation step includes:
An α value calculation step for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color, and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal step for removing the sampling color reflected in the subject image,
The α value calculating step includes:
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. It is characterized by determining.

(16)本発明は、
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置の写真印刷方法であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込みステップと、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成ステップと、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像ステップと、
合成画像に基づきプリント画像を生成するステップとを含み、
前記α値付き被写体画像生成ステップは、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算ステップと、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去ステップとを含み、
前記抜き取り色除去ステップは、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする。
(16) The present invention provides:
A photo printing method of a photo printing apparatus for capturing, editing, and printing a photographed subject image,
A subject image capturing step of capturing an image of a subject by capturing an image of the subject using an extraction unit with a sampling color as a background; and
A subject image generation step with an α value that generates a subject image with an α value based on the captured subject image;
a composite image step for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generation step includes:
An α value calculation step for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color, and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal step for removing the sampling color reflected in the subject image,
The sampling color removal step includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. It is characterized by that.

以下、本発明の好適な実施の形態について図面を用いて説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

1.写真印刷装置
図1、図2、図3に本実施形態の写真印刷装置(狭義には写真自販装置、写真シール印刷装置)の外観図の一例を示す。なお図1は本実施形態の写真印刷装置の右側面図であり、図2は本実施形態の写真印刷装置の正面図であり、図3は本実施形態の写真印刷装置の背面図である。
1. Photo Printing Device FIGS. 1, 2 and 3 show an example of an external view of a photo printing device of the present embodiment (in the narrow sense, a photo vending device and a photo sticker printing device). 1 is a right side view of the photographic printing apparatus of the present embodiment, FIG. 2 is a front view of the photographic printing apparatus of the present embodiment, and FIG. 3 is a rear view of the photographic printing apparatus of the present embodiment.

まずユーザー(図1のP1)は、筐体の正面側(図2)において被写体(例えば自己)の撮影を行う。次にユーザー(図1のP2)は、筐体の背面側(図3)において撮影した画像の編集操作を行う。   First, the user (P1 in FIG. 1) takes a picture of a subject (for example, self) on the front side (FIG. 2) of the housing. Next, the user (P2 in FIG. 1) performs an editing operation on the photographed image on the back side (FIG. 3) of the housing.

図2の正面図に示すように、本実施形態の写真印刷装置1は、被写体撮影用のカメラ10、12(撮像デバイス)を含む。これらのカメラ10、12は、例えばCCDカメラ、C−MOSカメラ、又はビデオカメラなどにより実現できる。なお、カメラを、複数ではなく1つだけ設ける構成としてもよい。   As shown in the front view of FIG. 2, the photo printing apparatus 1 of the present embodiment includes cameras 10 and 12 (imaging devices) for photographing a subject. These cameras 10 and 12 can be realized by, for example, a CCD camera, a C-MOS camera, or a video camera. Note that only one camera may be provided instead of a plurality.

カメラ10は、被写体を正面方向から撮影するもので、第1の撮像手段として機能する。またカメラ12は、オリジナルスタンプ作成用の小物(第2の被写体)を上方から撮影するもので、第2の撮像手段として機能する。   The camera 10 photographs a subject from the front direction and functions as a first imaging unit. The camera 12 captures an original stamp creation accessory (second subject) from above, and functions as a second imaging unit.

写真印刷装置1はディスプレイ20を含む。このディスプレイ20は、ユーザーの視点の高さで、ユーザーに対してその表示画面がほぼ正対するように、筺体50に取り付けられている。カメラ10(被写体撮影用カメラ)で撮影された映像はディスプレイ20に表示され、ユーザーはこのディスプレイ20に表示された映像を見て自身のポーズが適当か否かを確認するようにしてもよい。   The photo printing apparatus 1 includes a display 20. The display 20 is attached to the housing 50 so that the display screen faces the user at the height of the user's viewpoint. The video shot by the camera 10 (subject shooting camera) is displayed on the display 20, and the user may check whether the user's own pose is appropriate by viewing the video displayed on the display 20.

写真印刷装置1はディスプレイ22を含む。カメラ12(小物撮影用カメラ)で撮影された映像はディスプレイ22に表示され、ユーザーはこのディスプレイ22に表示された映像を見て、小物の配置やアングルが適当か否かを確認するようにしてもよい。   The photo printing apparatus 1 includes a display 22. The video shot by the camera 12 (small camera) is displayed on the display 22, and the user looks at the video displayed on the display 22 and confirms whether or not the arrangement and angle of the small items are appropriate. Also good.

本実施の形態では、オリジナルスタンプ作成用の小物(第2の被写体)は、スタンプ用小物撮影ボックス16の中の載置台18に載置され、載置台18の上方に設定されたカメラ12(小物撮影用カメラ)で撮影される。   In the present embodiment, the original stamp making accessory (second subject) is placed on the mounting table 18 in the stamp accessory photographing box 16, and the camera 12 (small accessory) set above the mounting table 18. Taken with a shooting camera.

また図1に示すように写真印刷装置の筺体50には、基台52、背面板54が設けられている。基台52は、撮影時に被写体(ユーザー)がその上に立つための台である。この基台52には、被写体(ユーザー)が立ち位置を決めるための目印を付けておくことが望ましい。この場合の目印は、例えば足の裏の形をした目印であってもよいし、被写体(ユーザー)がカメラ10に近づきすぎないようにするための線であってもよい。   Further, as shown in FIG. 1, a base 52 and a back plate 54 are provided in the housing 50 of the photo printing apparatus. The base 52 is a base for a subject (user) to stand on it during shooting. The base 52 is preferably provided with a mark for the subject (user) to determine the standing position. The mark in this case may be, for example, a mark in the shape of the sole of the foot or a line for preventing the subject (user) from approaching the camera 10 too much.

背面板54(背面部材)は撮影時に外部からの光を遮断するためのものである。この背面板54には、後述するように、付加表示物(背景又は文字等)の合成にクロマキー合成を行う場合には、ブルーバックとしての機能を持たせることもできる。   The back plate 54 (back member) is for blocking light from the outside during photographing. As will be described later, the back plate 54 may have a function as a blue back when chroma key composition is performed for composition of additional display objects (background or characters).

なお背面板54として、カーテンなどを用いてもよい。   A curtain or the like may be used as the back plate 54.

図3に示すように、本実施形態の写真印刷装置1は、編集用ディスプレイ22,24を含む。編集用ディスプレイ22,24は、液晶ディスプレイやタッチパネル方式のディスプレイを用いてよい。   As shown in FIG. 3, the photo printing apparatus 1 of the present embodiment includes editing displays 22 and 24. The editing displays 22 and 24 may be liquid crystal displays or touch panel displays.

写真印刷装置1は操作部30、32を含む。この操作部30、32は撮影された画像の編集操作や編集メニューの選択操作を行うためのものである。
この操作部30の機能は例えばポインティングデバイス等により実現できる。
The photo printing apparatus 1 includes operation units 30 and 32. The operation units 30 and 32 are for performing an operation for editing a captured image and an operation for selecting an edit menu.
The function of the operation unit 30 can be realized by, for example, a pointing device.

写真印刷装置1は、図1に示すように写真の受け取り口40を含む。この受け取り口40には、撮影して編集された画像が印刷されたシール等が出力される。   The photo printing apparatus 1 includes a photo receiving port 40 as shown in FIG. A seal or the like on which a photographed and edited image is printed is output to the receiving port 40.

図4は、本実施形態の写真印刷装置のブロック図の一例である。なお、写真印刷装置は、図4の構成要素(各部)を全て含む必要はなく、その一部を省略した構成としてもよい。   FIG. 4 is an example of a block diagram of the photo printing apparatus of the present embodiment. Note that the photo printing apparatus does not have to include all the components (respective parts) in FIG. 4, and may be configured such that some of them are omitted.

撮影部は、被写体を撮影するためのもので、例えばCCDカメラ、C−MOSカメラ、又はビデオカメラなどにより実現でき、被写体画像取り込み手段として機能する。例えば2つの撮像デバイスを用意して、第1の撮像デバイスを用いて第1の被写体の画像を撮影して第1の被写体の画像を取り込み、第2の撮像デバイスを用いて第2の被写体の画像を撮影して第2の被写体の画像を取り込むようにしてもよい。   The photographing unit is for photographing a subject and can be realized by, for example, a CCD camera, a C-MOS camera, or a video camera, and functions as a subject image capturing unit. For example, two imaging devices are prepared, an image of the first subject is captured using the first imaging device, an image of the first subject is captured, and an image of the second subject is captured using the second imaging device. An image may be taken and an image of the second subject may be captured.

またオリジナルスタンプ作成用の小物(第2の被写体)を撮影するためのスタンプ用小物撮影ボックスを設け、スタンプ用小物撮影ボックスの中の載置台に載置されたスタンプ用小物が撮影可能な位置(例えば載置台の上方)に、第2の撮像デバイスを配置するようにしてもよい。   In addition, a stamp accessory shooting box for shooting an accessory for creating an original stamp (second subject) is provided, and the stamp accessory placed on the mounting table in the stamp accessory shooting box can be shot ( For example, the second imaging device may be arranged above the mounting table.

操作部160(ポインティングデバイス、レバー、ボタン等)は、ユーザが編集用コンテンツ選択メニューの選択操作や編集操作を行うためのものである。   An operation unit 160 (a pointing device, a lever, a button, or the like) is used by the user to perform a selection operation or an editing operation of the editing content selection menu.

記憶部170(RAM)は、処理部100や通信部196などのワーク領域となるものである。情報記憶媒体180(CD、DVD、HDD、ROMなどのコンピュータにより読み取り可能な媒体)は、プログラムやデータなどを格納するものである。この情報記憶媒体180には、本実施形態の各部としてコンピュータを機能させるためのプログラム(各部の処理をコンピュータに実行させるためのプログラム)が記憶される。   The storage unit 170 (RAM) is a work area such as the processing unit 100 or the communication unit 196. An information storage medium 180 (a computer-readable medium such as a CD, DVD, HDD, or ROM) stores programs and data. The information storage medium 180 stores a program for causing a computer to function as each unit of the present embodiment (a program for causing a computer to execute processing of each unit).

ディスプレイ190は画像を表示するものであり、例えば図2の撮影用のディスプレイ20や図3の編集用ディスプレイ22,24等である。編集用ディスプレイとしては、例えば液晶タブレットやタッチパネル等が用いられ、タッチペン(ポインティングデバイスの一例)等の先端をディスプレイ表面に接触させ、文字や図形を描くことにより手書き画像を入力できるようになっている。また予め用意された星マークやハートマーク等のスタンプ画像を選択して、タッチペンの先端をディスプレイ表面に接触させることによりスタンプ画像を入力出来るようになっている。   The display 190 displays an image, for example, the photographing display 20 in FIG. 2 or the editing displays 22 and 24 in FIG. As the editing display, for example, a liquid crystal tablet, a touch panel, or the like is used, and a handwritten image can be input by drawing a character or a figure by bringing the tip of a touch pen (an example of a pointing device) into contact with the display surface. . Further, a stamp image such as a star mark or a heart mark prepared in advance is selected, and the stamp image can be input by bringing the tip of the touch pen into contact with the display surface.

音出力部192は音声、ゲーム音などの音を出力するものである。   The sound output unit 192 outputs sounds such as sounds and game sounds.

携帯型情報記憶装置194は、ユーザの個人データや編集用のセーブデータなどが記憶されるものである。   The portable information storage device 194 stores user personal data, save data for editing, and the like.

印刷部195は、撮影された画像を印刷媒体(シール紙、印画紙、プラスチック板又は記録層)に画像を印刷する処理を行う。この場合の印刷方式としては昇華型、熱転写型、インクジェット方式、レーザプリント方式などの種々の方式がある。また印刷用のプリンタとしては、インクジェット式プリンタ、レーザープリンタ、昇華型プリンタ、熱転写型プリンタ、溶融型プリンタ、サーマルプリンタ、印画紙プリンタ、インスタントフィルムプリンタ等をもちいるようにしてもよい。   The printing unit 195 performs processing for printing the captured image on a print medium (seal paper, photographic paper, plastic plate, or recording layer). In this case, there are various printing methods such as a sublimation type, a thermal transfer type, an ink jet method, and a laser printing method. As the printer for printing, an ink jet printer, a laser printer, a sublimation printer, a thermal transfer printer, a melt printer, a thermal printer, a photographic paper printer, an instant film printer, or the like may be used.

通信部196は、インターネットなどのネットワークを介して通信を行うための各種の制御を行うものである。この通信部196を用いることで、生成された画像データをネットワークを介して送信することができる。   The communication unit 196 performs various controls for performing communication via a network such as the Internet. By using the communication unit 196, the generated image data can be transmitted via the network.

処理部100(プロセッサ)は、操作部160からの操作データやプログラムなどに基づいて、ゲーム処理、画像生成処理、或いは音生成処理などの各種の処理を行う。この場合、処理部100は、記憶部170内の主記憶部172をワーク領域として使用して、各種の処理を行う。この処理部100の機能は、各種プロセッサ(CPU、DSP等)又はASIC(ゲートアレイ等)などのハードウェアや、プログラム(ゲームプログラム)により実現できる。   The processing unit 100 (processor) performs various processes such as a game process, an image generation process, and a sound generation process based on operation data from the operation unit 160, a program, and the like. In this case, the processing unit 100 performs various processes using the main storage unit 172 in the storage unit 170 as a work area. The function of the processing unit 100 can be realized by hardware such as various processors (CPU, DSP, etc.) or ASIC (gate array, etc.) and a program (game program).

処理部100は、編集処理部110、画像生成部120、音生成部130を含む。   The processing unit 100 includes an editing processing unit 110, an image generation unit 120, and a sound generation unit 130.

画像生成部120は、編集処理部110で行われる種々の編集処理の結果に基づいて画像を生成し、ディスプレイ190に出力する。   The image generation unit 120 generates an image based on the results of various editing processes performed by the editing processing unit 110 and outputs the image to the display 190.

ここで画像生成部120は、クロマキー合成部122、αチャネル付き被写体画像生成部124を含む。   Here, the image generation unit 120 includes a chroma key composition unit 122 and a subject image generation unit 124 with an α channel.

クロマキー合成部122は、被写体画像の各画素のRGB成分を輝度成分と色相成分に変換する手段と、所与の背景画像の各画素のRGB成分を輝度成分と色相成分に変換する手段と、被写体画像の各画素値と抜き取り色の各画素値に基づき、各画素のクロマキー合成パラメータを求めるクロマキー合成パラメータ演算手段と、前記クロマキー合成パラメータに基づき被写体画像の色相成分と所与の背景画像の色相成分を各画素毎に線形合成して、合成画像の色相成分を演算する色相成分合成手段と、前記クロマキー合成パラメータに基づき被写体画像の輝度成分と所与の背景画像の輝度成分を各画素毎に非線形合成して、合成画像の輝度成分を演算する輝度成分合成手段と、演算された合成画像の色相成分、輝度成分をRGB成分に変換する手段として機能する。   The chroma key composition unit 122 converts a RGB component of each pixel of the subject image into a luminance component and a hue component, a unit for converting an RGB component of each pixel of a given background image into a luminance component and a hue component, Chroma key composition parameter calculation means for obtaining a chroma key composition parameter of each pixel based on each pixel value of the image and each pixel value of the extracted color, and a hue component of the subject image and a hue component of a given background image based on the chroma key composition parameter The hue component synthesis means for calculating the hue component of the synthesized image by linearly synthesizing each pixel, and the luminance component of the subject image and the luminance component of the given background image based on the chroma key synthesis parameter are nonlinear for each pixel. A luminance component combining means for combining and calculating the luminance component of the combined image, and converting the calculated hue component and luminance component of the combined image into RGB components And functions as a device.

クロマキー合成部122は、被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求めるクロマキー合成パラメータ演算手段と、各画素毎に、前記クロマキー合成パラメータに基づき被写体画像と所与の背景画像の合成を行い合成画像を演算する手段として機能し、前記クロマキー合成パラメータ演算手段は、所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属しないと判断した画素については、当該クロマキー合成パラメータが前景画像であることを表す第1の値とし、背景領域に属すると判断した画素については、当該クロマキー合成パラメータが背景画像であることを表す第2の値又は第1の値と第2の値の間に位置するいずれかの値にする処理を行う。   The chroma key composition unit 122 includes a chroma key composition parameter calculation unit that obtains a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color, and a subject based on the chroma key composition parameter for each pixel. The chroma key composition parameter computing means defines a background area in the hue plane by two predetermined straight lines, and combines the hue of each pixel of the subject image. A pixel for which it is determined whether or not the value belongs to the background area, and for which it is determined that the value does not belong to the background area, is a first value indicating that the chroma key composition parameter is a foreground image, and a pixel that is determined to belong to the background area For the second value or the first value indicating that the chroma key composition parameter is the background image and the first value. Performs processing for any of the values lying between the values.

ここで被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求める処理を行うようにしてもよい。   Here, based on the hue component of each pixel of the subject image and the hue component of the extracted color, a process for obtaining a chroma key synthesis parameter of each pixel may be performed.

また前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータの変化率がより小さくなるように補正を行った当該クロマキー合成パラメータを用いて合成画像の輝度成分を非線形合成演算する処理を行うようにしてもよい。   In addition, the luminance component of the composite image using the chroma key composition parameter corrected so that the rate of change of the chroma key composition parameter becomes smaller near the first value indicating that the chroma key composition parameter is a foreground image. A process for performing a non-linear synthesis operation may be performed.

また前記クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータの変化率がより小さくなるように補正を行った当該クロマキー合成パラメータを用いて合成画像の輝度成分を非線形合成演算するようにしてもよい。   Further, in the vicinity of the second value indicating that the chroma key composition parameter is a background image, the luminance component of the composite image is obtained using the chroma key composition parameter corrected so that the rate of change of the chroma key composition parameter becomes smaller. May be subjected to nonlinear synthesis calculation.

また被写体画像の輝度成分、所与の背景画像の輝度成分、抜き取り色の輝度成分及び各画素の輝度成分の対数値が線形であると仮定して合成画像の輝度成分を非線形合成演算するようにしてもよい。   Also, it is assumed that the luminance component of the composite image is nonlinearly combined, assuming that the luminance component of the subject image, the luminance component of the given background image, the luminance component of the sampling color, and the luminance component of each pixel are linear. May be.

また所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属しないと判断した画素については、当該クロマキー合成パラメータが前景画像であることを表す第1の値とし、背景領域に属すると判断した画素については、当該クロマキー合成パラメータが背景画像であることを表す第2の値又は第1の値と第2の値の間に位置するいずれかの値にするようにしてもよい。   Further, a background area in the hue plane is defined by two predetermined straight lines, it is determined whether or not the hue value of each pixel of the subject image belongs to the background area, and for the pixels determined not to belong to the background area, the chroma key composition parameter Is a first value indicating that the image is a foreground image, and for pixels determined to belong to the background area, the second value or the first value and the second value indicating that the chroma key composition parameter is a background image. Any value positioned between the values may be used.

また色相平面において、抜き取り色に基づき設定した背景中心となる色相値及びその周囲の所定のエリアに属する色相値を有する画素については、クロマキー合成パラメータを第2の値とし、背景領域には属するが前記所定のエリア外に位置する色相値を有する画素については、前記画素の色相平面における位置と前記所定のエリアの外延と前記所定の2直線のいずれかとの距離関係に基づきクロマキー合成パラメータを求めるようにしてもよい。   On the hue plane, for the pixel having the hue value that is the background center set based on the extracted color and the hue value that belongs to the predetermined area around it, the chroma key composition parameter is the second value, and the pixel belongs to the background area. For a pixel having a hue value located outside the predetermined area, a chroma key composition parameter is obtained based on a distance relationship between the position of the pixel on the hue plane, the extension of the predetermined area, and one of the two predetermined straight lines. It may be.

また前記所定の2直線の少なくとも一方を色相平面における原点を通らない直線として定義するようにしてもよい。   Further, at least one of the two predetermined straight lines may be defined as a straight line that does not pass through the origin on the hue plane.

αチャネル付き被写体画像生成部124は、被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段として機能し、前記α値演算手段は、当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。   The α-channel subject image generation unit 124 obtains the chroma key composition parameter of each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color, and corresponds to each pixel of the subject image based on the chroma key composition parameter. It functions as an α value calculating means for calculating an α value and a sampling color removing means for removing a sampling color reflected in the subject image. The α value calculating means indicates that the chroma key composition parameter is a foreground image. In the vicinity of the value of 1, the α value of each pixel of the subject image is determined so as to have a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small.

また前記α値演算手段は、当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定するようにしてもよい。   Further, the α value calculation means has a functional relationship such that a change rate of the α value with respect to the chroma key composition parameter is small in the vicinity of the second value indicating that the chroma key composition parameter is a background image. The α value of each pixel of the subject image may be determined.

前記抜き取り色除去手段は、所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めるようにしてもよい。   The sampling color removing means defines a background area on the hue plane by two predetermined straight lines, determines whether or not the hue value of each pixel of the subject image belongs to the background area, and for pixels determined to belong to the background area A point where a line connecting the hue position of each pixel on the hue plane and the background center set based on the sampling color intersects a straight line that is closer to the hue position of each pixel among the two predetermined straight lines, or each pixel The extracted color is removed based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel of the two straight lines from the hue position intersects the straight line. The hue value of the subject image may be obtained.

音生成部130は、処理部100で行われる種々の処理の結果に基づいて音処理を行い、BGM、効果音、又は音声などのゲーム音を生成し、音出力部192に出力する。   The sound generation unit 130 performs sound processing based on the results of various processes performed by the processing unit 100, generates game sounds such as BGM, sound effects, or sounds, and outputs the game sounds to the sound output unit 192.

写真印刷装置は通信部196を含む。この通信部196は、インターネットなどのネットワークを介してデータを送信又は受信する処理を行う。より具体的には、通信部196は、カメラの撮影画像により生成されたデータを、ネットワークを介して外部のサーバなどに送信する。このようにすればユーザ(被写体)は、自身が被写体となっている画像のデータを、自分の家のパーソナルコンピュータにサーバからダウンロードすることが可能になる。そしてダウンロードした画像データに基づいて、自分の家のプリンタを用いて、紙やシールに画像を印刷して出力することが可能になる。またユーザーが撮影した画像をサーバに保存しておき、写真印刷装置にダウンロードして印刷して出力することも可能である。   The photo printing apparatus includes a communication unit 196. The communication unit 196 performs processing for transmitting or receiving data via a network such as the Internet. More specifically, the communication unit 196 transmits data generated from the captured image of the camera to an external server or the like via the network. In this way, the user (subject) can download image data of the subject himself / herself from the server to the personal computer of his / her home. Based on the downloaded image data, it is possible to print and output an image on paper or a sticker using a printer at home. It is also possible to store images taken by the user on a server, download them to a photo printing apparatus, print them, and output them.

この通信部196の機能は、例えば通信用のデバイス(IC)などのハードウェアや、通信用のプログラムなどにより実現できる。なお印刷部195、通信部196のいずれか一方を設けない構成としてもよい。   The function of the communication unit 196 can be realized by hardware such as a communication device (IC), a communication program, or the like. Note that either the printing unit 195 or the communication unit 196 may be omitted.

なお本実施形態の写真印刷装置は、被写体を全身撮影するものには限定されず、被写体の上半身だけを撮影するものであってもよい。   Note that the photo printing apparatus according to the present embodiment is not limited to the one that shoots the entire body of the subject, and may shoot only the upper body of the subject.

また本実施形態の写真印刷装置で撮影される被写体は人間には限定されない。例えばオークションなどに出品する商品の写真を撮影する装置にも本実施形態は適用できる。この場合には、通信部196を用いて行うインターネットを介したデータの送信と、オークションの出品とを連動させれば、出品者に便宜な写真印刷装置を提供できる。   The subject photographed by the photo printing apparatus of the present embodiment is not limited to a human being. For example, the present embodiment can be applied to an apparatus that takes a photograph of a product to be exhibited at an auction or the like. In this case, if data transmission via the Internet using the communication unit 196 is linked to the auction listing, a photo printing apparatus convenient for the exhibitor can be provided.

また本実施形態の写真印刷装置を、プレーヤの写真画像をゲームに使用するようなタイプのゲーム装置に利用することも可能である。即ち本実施形態の写真印刷装置を、ゲーム装置の画像取り込み装置として機能させることも可能である。   The photo printing apparatus of this embodiment can also be used for a game apparatus of a type that uses a photo image of a player in a game. That is, the photo printing apparatus of the present embodiment can be made to function as an image capturing device of a game device.

2.第1の実施の形態の特徴
本実施の形態では、抜き取り色(単色背景)を背景として撮影された被写体の画像と所与の背景画像を合成する際に、被写体画像の各画素のRGB成分を輝度成分(Y)と色相成分(IQ)に変換し、所与の背景画像の各画素のRGB成分を輝度成分(Y)と色相成分(IQ)に変換し、被写体画像の各画素値と抜き取り色の各画素値に基づき、各画素のクロマキー合成パラメータを求め、前記クロマキー合成パラメータに基づき被写体画像の色相成分と所与の背景画像の色相成分を各画素毎に線形合成し合成画像の色相成分を演算し、前記クロマキー合成パラメータに基づき被写体画像の輝度成分と所与の背景画像の輝度成分を各画素毎に非線形合成して合成画像の輝度成分を演算し、演算された合成画像の色相成分、輝度成分をRGB成分に変換する。
2. Features of the First Embodiment In this embodiment, when a given background image is synthesized with an image of a subject taken with a sampling color (single color background) as a background, the RGB components of each pixel of the subject image are used. Converts luminance component (Y) and hue component (IQ), converts RGB component of each pixel of a given background image into luminance component (Y) and hue component (IQ), extracts each pixel value of subject image Based on each pixel value of the color, a chroma key composition parameter of each pixel is obtained, and based on the chroma key composition parameter, the hue component of the subject image and the hue component of the given background image are linearly synthesized for each pixel, and the hue component of the composite image And calculating the luminance component of the synthesized image by nonlinearly synthesizing the luminance component of the subject image and the luminance component of the given background image for each pixel based on the chroma key synthesis parameter, and calculating the hue component of the calculated synthesized image. The luminance component is converted into RGB components.

被写体画像の各画素及び所与の背景画像のRGB成分の輝度成分(Y)と色相成分(IQ)への変換については、後述する「5.2.RBG値から輝度成分、色相成分への変換」に記載されている手法により行うことができる。   The conversion of the RGB components of each pixel of the subject image and the RGB components of the given background image into luminance components (Y) and hue components (IQ) will be described later in “5.2. Conversion from RBG values to luminance components and hue components”. It can be performed by the method described in the above.

ここにおいてクロマキー合成パラメータは、被写体画像と抜き取り色のRGB値またはそのいずれかの成分又はRGB値を変換して得られる画素値又はそのいずれかの成分(例えばYIQ値又はそのいずれかの成分)等により求めるようにしてもよい。   Here, the chroma key composition parameter is the RGB value of the subject image and the extracted color, or any component thereof, the pixel value obtained by converting the RGB value, or any component thereof (for example, the YIQ value or any component thereof), etc. You may make it obtain | require by.

また前記クロマキー合成パラメータkに基づく被写体画像の色相成分と所与の背景画像の色相成分の線形合成については、「5.3 色相成分の変換」に記載されている手法により行うことができる。   The linear composition of the hue component of the subject image and the hue component of the given background image based on the chroma key composition parameter k can be performed by the method described in “5.3 Hue component conversion”.

ここで線形合成とは、例えば線形関数(f(x+y)=f(x)+f(y)が成り立つ場合fを線形関数という)を用いて、被写体画像の色相成分と背景画像の色相成分を合成する場合をいう。   Here, the linear composition is a composition of the hue component of the subject image and the hue component of the background image using, for example, a linear function (when f (x + y) = f (x) + f (y) holds, f is called a linear function). If you do.

また前記クロマキー合成パラメータkに基づく被写体画像の輝度成分と所与の背景画像の輝度成分の非線形合成については、「5.4 輝度成分の変換」に記載されている手法により行うことができる。   The nonlinear composition of the luminance component of the subject image and the luminance component of the given background image based on the chroma key composition parameter k can be performed by the method described in “5.4 Conversion of the luminance component”.

ここで非線形合成とは、例えば非線形関数(f(x+y)=f(x)+f(y)が成り立たない関数)を用いて、被写体画像の色相成分と背景画像の色相成分を合成する場合をいう。   Here, the non-linear composition refers to a case where the hue component of the subject image and the hue component of the background image are synthesized using, for example, a non-linear function (function in which f (x + y) = f (x) + f (y) does not hold). .

合成画像の色相成分、輝度成分をRGB成分変換については、後述する「5.5 YIQ成分からRGB成分への変換」に記載されている手法により行うことができる。   The RGB component conversion of the hue component and the luminance component of the composite image can be performed by the method described in “5.5 Conversion from YIQ component to RGB component” described later.

本実施の形態によれば、色相成分は線形合成を行い、輝度成分については非線形合成を行う。画素値(例えばRGB値)に線形性を仮定して合成を行うと、背景等が暗い場合に合成がうまくいかない状況が生じていた。かかる状況に対して例えば従来は、パラメータを追加して撮影状況に応じて個別に補正する方法等により対応されていた。   According to the present embodiment, the hue component is linearly synthesized, and the luminance component is nonlinearly synthesized. When combining pixel values (for example, RGB values) assuming linearity, there has been a situation where the combining is not successful when the background is dark. Conventionally, for example, such a situation has been dealt with by a method in which parameters are added and individually corrected in accordance with the photographing situation.

これに対し本実施の形態では、輝度成分について非線形合成を行うことにより、個別にパラメータの調整等を行うことなしに背景が暗い場合でも精度良く合成することができる。すなわち背景色の明るさによらず常に精度良く合成することができる。   On the other hand, in the present embodiment, nonlinear composition is performed on the luminance component, so that the composition can be performed accurately even when the background is dark without individually adjusting parameters. In other words, it can always be accurately synthesized regardless of the brightness of the background color.

一般に写真印刷装置の撮影状況は照明の状態や設置されている場所によってばらつきが生じるが、本実施の形態によればこれらのばらつきによらず精度良く画像合成を行うことができる。   In general, the photographing situation of the photographic printing apparatus varies depending on the illumination state and the location where it is installed. However, according to the present embodiment, it is possible to perform image composition with high accuracy regardless of these variations.

また写真印刷装置に適用する場合には、個別にパラメータの調整を行うのは困難であるが、本実施の形態によれば、パラメータの個別調整が不要であるという顕著な効果を有する。   When applied to a photographic printing apparatus, it is difficult to individually adjust parameters, but according to the present embodiment, there is a remarkable effect that individual adjustment of parameters is unnecessary.

また被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求めるようにしてもよい。   Further, the chroma key synthesis parameter of each pixel may be obtained based on the hue component of each pixel of the subject image and the hue component of the extracted color.

ここにおいてクロマキー合成パラメータkは、「6.クロマキー合成パラメータkの計算方法」に記載されている手法により求めることができる。   Here, the chroma key composition parameter k can be obtained by the method described in “6. Method for calculating chroma key composition parameter k”.

また前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータの変化率がより小さくなるように補正を行った当該クロマキー合成パラメータを用いて合成画像の輝度成分を非線形合成演算するようにしてもよい。   Further, in the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the luminance component of the composite image is corrected using the chroma key composition parameter corrected so that the change rate of the chroma key composition parameter becomes smaller. May be subjected to nonlinear synthesis calculation.

前記クロマキー合成パラメータが前景画像であることを表す第1の値とは例えば1である。   The first value indicating that the chroma key composition parameter is a foreground image is 1, for example.

前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータの変化率がより小さくなるように補正を行った当該クロマキー合成パラメータとは、例えば図21の710に示すような変化率を有するように補正を行ったパラメータのことである。   The chroma key composition parameter corrected so that the rate of change of the chroma key composition parameter becomes smaller near the first value indicating that the chroma key composition parameter is a foreground image is, for example, 710 in FIG. It is a parameter that has been corrected to have a change rate as shown.

また前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータの変化率がより小さくなるように補正を行うとは、例えば前記近傍付近で前記クロマキー合成パラメータを第1の値に近づけるような補正を行う場合である。   In addition, correction is performed so that the change rate of the chroma key composition parameter is smaller in the vicinity of the first value indicating that the chroma key composition parameter is a foreground image. For example, the chroma key composition parameter is set in the vicinity of the vicinity. This is a case where correction is performed so as to approach the first value.

このようにすると色相平面における背景中心からの距離が所定の所定の範囲外(遠い)部分においてクロマキー合成パラメータの変化率が緩やかになるのと同じ効果を有する。   This has the same effect as the change rate of the chroma key composition parameter becomes gentle in a portion where the distance from the background center on the hue plane is outside (far) a predetermined range.

前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近にある場合には、撮影時に被写体画像(前景画像)に背景色の映り込みがおこりやすい。例えばグリーンバックで撮影を行う場合には、被写体画像(前景画像)の背景との境界付近に背景色のグリーンが映り込む現象が現れる。この場合新たな背景(所与の背景)と合成した場合には新たな背景(所与の背景)の色を映り込ませることが自然である。しかし輝度については前景と背景の境界付近では、前景画像は旧背景の輝度の影響をあまり受けない方がきれいな画像となる。   When the chroma key composition parameter is in the vicinity of the first value indicating that it is a foreground image, the background color is likely to appear in the subject image (foreground image) during shooting. For example, when shooting with a green background, a phenomenon in which green of the background color appears near the boundary of the subject image (foreground image) with the background appears. In this case, when a new background (given background) is combined, it is natural to reflect the color of the new background (given background). However, with regard to the brightness, in the vicinity of the boundary between the foreground and the background, the foreground image is more beautiful when it is less affected by the brightness of the old background.

本発明のようにクロマキー合成パラメータを補正することで、輝度については非線形合成により前景と背景の境界付近では、前景画像は旧背景の輝度の影響をあまり受けないように制御することができる。   By correcting the chroma key composition parameter as in the present invention, the foreground image can be controlled to be less affected by the luminance of the old background near the boundary between the foreground and the background by nonlinear composition.

また前記クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータの変化率がより小さくなるように補正を行った当該クロマキー合成パラメータを用いて合成画像の輝度成分を非線形合成演算するようにしてもよい。   Further, in the vicinity of the second value indicating that the chroma key composition parameter is a background image, the luminance component of the composite image is obtained using the chroma key composition parameter corrected so that the rate of change of the chroma key composition parameter becomes smaller. May be subjected to nonlinear synthesis calculation.

前記クロマキー合成パラメータが背景画像であることを表す第2の値とは例えば0である。   The second value indicating that the chroma key composition parameter is a background image is 0, for example.

前記クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータの変化率がより小さくなるように補正を行うとは、例えば前記近傍付近で前記クロマキー合成パラメータを第2の値に近づけるような補正を行う場合である。   In the vicinity of the second value indicating that the chroma key composition parameter is a background image, correction is performed so that the rate of change of the chroma key composition parameter becomes smaller. In this case, correction is performed so that the value approaches 2.

このようにすると色相平面における背景中心からの距離が所定の範囲内(近い)部分においてクロマキー合成パラメータの変化率が緩やかになるのと同じ効果を有する。   This has the same effect as the change rate of the chroma key composition parameter becomes gentle at a portion where the distance from the center of the background in the hue plane is within a predetermined range (near).

このようにすることによって、背景画像の明るさのばらつきを吸収することができる。   By doing so, it is possible to absorb variations in the brightness of the background image.

また被写体画像の輝度成分、所与の背景画像の輝度成分、抜き取り色の輝度成分及び各画素の輝度成分の対数値が線形であると仮定して合成画像の輝度成分を非線形合成演算するようにしてもよい。輝度成分の対数値が線形であると仮定した非線形合成演算については、「5.4 輝度成分の変換」に記載されている手法により行うことができる。   Also, it is assumed that the luminance component of the composite image is nonlinearly combined, assuming that the luminance component of the subject image, the luminance component of the given background image, the luminance component of the sampling color, and the luminance component of each pixel are linear. May be. The nonlinear composition calculation assuming that the logarithmic value of the luminance component is linear can be performed by the method described in “5.4 Conversion of the luminance component”.

所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属しないと判断した画素については、当該クロマキー合成パラメータが前景画像であることを表す第1の値とし、背景領域に属すると判断した画素については、当該クロマキー合成パラメータが背景画像であることを表す第2の値又は第1の値と第2の値の間に位置するいずれかの値にするようにしてもよい。   A background area on the hue plane is defined by two predetermined straight lines, and it is determined whether or not the hue value of each pixel of the subject image belongs to the background area. For pixels that are determined not to belong to the background area, the chroma key composition parameter is For a pixel that has been determined to belong to the background area as the first value representing the foreground image, the second value or the first value and the second value representing that the chroma key composition parameter is the background image. You may make it be either value located between.

色相成分とは例えばYIQ色空間のIQ平面でもよいし、YUV色空間のUV平面でもよい。またYCrCb色空間のCrCb平面でもよい。R,G,B成分に対しY=aR+bG+cB(a,b,cは所定の定数)で定義されるY軸に垂直な平面(RGB色空間から線形変換によって得られるもの)であればよい。   The hue component may be, for example, an IQ plane in the YIQ color space or a UV plane in the YUV color space. Alternatively, the CrCb plane of the YCrCb color space may be used. Any plane that is perpendicular to the Y axis defined by Y = aR + bG + cB (a, b, and c are predetermined constants) for R, G, and B components (obtained by linear conversion from the RGB color space) may be used.

所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否かの判断は、例えば図7等で説明した手法により行うことができる。   The background area in the hue plane is defined by two predetermined straight lines, and the determination as to whether the hue value of each pixel of the subject image belongs to the background area can be made by the method described with reference to FIG.

前記クロマキー合成パラメータは、例えば色相平面において、背景中心と前記画素の色相平面における位置を結ぶ直線が前記所定のエリアの外延(を特定する外周)と交わる第1の点、また前記直線が前記所定の2直線のいずれかと交わる第2の点を求め、前記画素の色相平面に置ける位置と第1の点の距離及び前記画素の色相平面に置ける位置と第2の点の距離比に基づき求めるようにしてもよい。   The chroma key composition parameter is, for example, a first point on a hue plane where a straight line connecting a background center and a position of the pixel in the hue plane intersects an extension of the predetermined area (an outer periphery that specifies the predetermined area), and the straight line is the predetermined plane. A second point that intersects one of the two straight lines is obtained, and is obtained based on a distance between the position on the hue plane of the pixel and the distance between the first point and a distance ratio between the position on the hue plane of the pixel and the second point. It may be.

また色相平面において、抜き取り色に基づき設定した背景中心となる色相値及びその周囲の所定のエリアに属する色相値を有する画素については、クロマキー合成パラメータを第2の値とし、背景領域には属するが前記所定のエリア外に位置する色相値を有する画素については、前記画素の色相平面における位置と前記所定のエリアの外延と前記所定の2直線のいずれかとの距離関係に基づきクロマキー合成パラメータを求めるようにしてもよい。   On the hue plane, for the pixel having the hue value that is the background center set based on the extracted color and the hue value that belongs to the predetermined area around it, the chroma key composition parameter is the second value, and the pixel belongs to the background area. For a pixel having a hue value located outside the predetermined area, a chroma key composition parameter is obtained based on a distance relationship between the position of the pixel on the hue plane, the extension of the predetermined area, and one of the two predetermined straight lines. It may be.

例えば図8に示すように、例えば色相平面において、背景中心と前記画素の色相平面における位置を結ぶ直線が前記所定のエリアの外延(を特定する外周)と交わる第1の点250、また前記直線が前記所定の2直線のいずれかと交わる第2の点260を求め、前記画素の色相平面に置ける位置270と第1の点250の距離及び前記画素の色相平面に置ける位置270と第2の点260の距離に基づきクロマキー合成パラメータkを求めるようにしてもよい。   For example, as shown in FIG. 8, for example, in the hue plane, a first point 250 where a straight line connecting the center of the background and the position of the pixel in the hue plane intersects the outer extension (identifying the outer periphery) of the predetermined area, and the straight line Finds a second point 260 that intersects one of the two predetermined straight lines, and determines the distance between the position 270 and the first point 250 on the hue plane of the pixel and the position 270 and the second point on the hue plane of the pixel. The chroma key composition parameter k may be obtained based on the distance 260.

また前記クロマキー合成パラメータ演算手段は、前記所定の2直線の少なくとも一方を色相平面における原点を通らない直線として定義するようにしてもよい。かかる定義は例えば図11や(19)式によって行うようにしてもよい。   The chroma key composition parameter calculation means may define at least one of the two predetermined straight lines as a straight line that does not pass through the origin on the hue plane. Such definition may be performed, for example, according to FIG. 11 or equation (19).

3.第2の実施の形態の特徴
本実施の形態では、抜き取り色(単色背景)を背景として撮影された被写体の画像と所与の背景画像をクロマキー合成する際に、被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、各画素毎に、前記クロマキー合成パラメータに基づき被写体画像と所与の背景画像の合成を行う。クロマキー合成パラメータを演算する際に所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属しないと判断した画素については、当該クロマキー合成パラメータが前景画像であることを表す第1の値とし、背景領域に属すると判断した画素については、当該クロマキー合成パラメータが背景画像であることを表す第2の値又は第1の値と第2の値の間に位置するいずれかの値にすることを特徴とする。
3. Features of Second Embodiment In the present embodiment, the hue component of each pixel of a subject image when chroma key composition is performed on the subject image captured with the extracted color (single color background) and the given background image. Then, the chroma key composition parameter of each pixel is obtained based on the hue component of the extracted color, and the subject image and a given background image are synthesized for each pixel based on the chroma key composition parameter. Pixels for which a background area in the hue plane is defined by predetermined two straight lines when calculating the chroma key composition parameter, and whether or not the hue value of each pixel of the subject image belongs to the background area, is determined not to belong to the background area Is a first value indicating that the chroma key composition parameter is a foreground image, and for a pixel determined to belong to the background area, a second value or a second value indicating that the chroma key composition parameter is a background image. Any one of the values located between the value of 1 and the second value is used.

色相成分とは例えばYIQ色空間のIQ平面でもよいし、YUV色空間のUV平面でもよい。またYCrCb色空間のCrCb平面でもよい。R,G,B成分に対しY=aR+bG+cB(a,b,cは所定の定数)で定義されるY軸に垂直な平面(RGB色空間から線形変換によって得られるもの)であればよい。   The hue component may be, for example, an IQ plane in the YIQ color space or a UV plane in the YUV color space. Alternatively, the CrCb plane of the YCrCb color space may be used. Any plane that is perpendicular to the Y axis defined by Y = aR + bG + cB (a, b, and c are predetermined constants) for R, G, and B components (obtained by linear conversion from the RGB color space) may be used.

所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否かの判断は、例えば図7等で説明した手法により行うことができる。   The background area in the hue plane is defined by two predetermined straight lines, and the determination as to whether the hue value of each pixel of the subject image belongs to the background area can be made by the method described with reference to FIG.

背景領域属する画素のクロマキー合成パラメータの値は、例えば色相平面に置ける背景中心と画素を結ぶ直線が2直線のいずれかと交わる点を求め、これらの距離比に応じて決定するようにしても良い。   The value of the chroma key composition parameter of the pixel belonging to the background region may be determined according to a distance ratio obtained by, for example, obtaining a point where a straight line connecting the background center and the pixel on the hue plane intersects one of the two straight lines.

本実施の形態によれば、色相成分(色相平面)においてクロマキー合成パラメータを求めるため、RGBの3成分に基づきクロマキー合成パラメータを求める場合に比べ簡単なアルゴリズム及び少ない演算付加でクロマキー合成を行うことができる。   According to the present embodiment, since the chroma key composition parameter is obtained in the hue component (hue plane), the chroma key composition can be performed with a simple algorithm and fewer operations compared to the case of obtaining the chroma key composition parameter based on the three RGB components. it can.

また背景中心となる色相値及びその周囲の所定のエリアに属する色相値を有する画素については、クロマキー合成パラメータを第2の値とし、背景領域であって所定のエリア外に属する色相値を有する画素については、前記画素の色相平面における位置と前記所定のエリアの外延と前記2直線のいずれかとの距離関係に基づきクロマキー合成パラメータを求めるようにしてもよい。例えば図8にしめすように、色相平面において、背景中心と前記画素の位置を結ぶ直線が前記所定のエリアの外延(を特定する外周)と交わる第1の点、また前記直線が前記2直線のいずれかと交わる第2の点を求め、前記画素の色相平面に置ける位置と第1の点の距離及び前記画素の色相平面に置ける位置と第2の点の距離に基づき求めるようにしてもよい。   For a pixel having a hue value that is the center of the background and a hue value that belongs to a predetermined area around it, the chroma key composition parameter is the second value, and a pixel that has a hue value that belongs to the background area and is outside the predetermined area For the above, the chroma key composition parameter may be obtained based on the distance relationship between the position of the pixel in the hue plane, the extension of the predetermined area, and one of the two straight lines. For example, as shown in FIG. 8, on the hue plane, a first point where a straight line connecting the center of the background and the position of the pixel intersects with the extension of the predetermined area (the outer periphery that specifies), and the straight line is the two straight lines. A second point that intersects either one may be obtained and obtained based on the distance between the position on the hue plane of the pixel and the first point and the distance between the position on the hue plane of the pixel and the second point.

このようにすることで色相中心から2直線のいずれかの距離に基づきクロマキー合成パラメータを求め背景中心の回りについてクロマキー合成パラメータを0にする構成に比べ、クロマキー合成パラメータが不連続とならずなめらかな変換を行うことができる。   By doing this, the chroma key composition parameter is obtained based on one of the two straight lines from the hue center, and the chroma key composition parameter is set to zero around the background center. Conversion can be performed.

また色相平面を原点を通らない2つの直線により前景領域と背景領域をわけて、被写体画像の各画素の色相値がいずれの領域に属するか判断するようにしてもよい。色相平面を原点を通らない2つの直線は例えば式(19)を用いて定義することができる。   Further, the foreground area and the background area may be separated by two straight lines that do not pass through the origin on the hue plane, and it may be determined to which area the hue value of each pixel of the subject image belongs. Two straight lines that do not pass through the origin on the hue plane can be defined using, for example, Expression (19).

色相平面の原点付近はグレーに近いため、背景領域として計算すると不自然な合成になる場合がある。本発明によれば原点領域を背景領域に含めないようにできるので、自然な合成を実現することができる。   Since the vicinity of the origin of the hue plane is close to gray, calculation as a background region may result in an unnatural composition. According to the present invention, since the origin region can be excluded from the background region, natural composition can be realized.

4.第3の実施の形態の特徴
本実施の形態では抜き取り色を背景として撮影された被写体の画像からα値付き被写体画像を生成する際に、被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算し、被写体画像に映り込んだ抜き取り色を除去する。ここで前記α値を演算する際に当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。
4). Features of the Third Embodiment In this embodiment, when generating a subject image with an α value from a subject image taken with a sampling color as a background, the hue component of each pixel of the subject image and the hue component of the sampling color Then, the chroma key composition parameter of each pixel is obtained, the α value corresponding to each pixel of the subject image is calculated based on the chroma key composition parameter, and the extracted color reflected on the subject image is removed. Here, when calculating the α value, there is a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small in the vicinity of the first value indicating that the chroma key composition parameter is a foreground image. Further, the α value of each pixel of the subject image is determined.

前記クロマキー合成パラメータが前景画像であることを表す第1の値とは例えば1である。   The first value indicating that the chroma key composition parameter is a foreground image is 1, for example.

ここで前記α値を演算する際に当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するような被写体画像の各画素のα値の決定は、例えば図21に示すような関数関係を有する変換を行うことにより実現できる。   Here, when calculating the α value, there is a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small in the vicinity of the first value indicating that the chroma key composition parameter is a foreground image. Determination of the α value of each pixel of a subject image can be realized by performing conversion having a functional relationship as shown in FIG.

また図27において横軸をk(0〜255を0〜1と見る)、縦軸をαとした関数関係を有する変換を行うことにより実現できる。ここで変換は予め用意された関数式により行う場合でもよいし、図28に示すように関数関係を有するような変換テーブルを用意しておいて変換テーブルを用いてクロマキー合成パラメータに対応したα値を演算するようにしてもよい。   In FIG. 27, this can be realized by performing a transformation having a functional relationship where the horizontal axis is k (0 to 255 is regarded as 0 to 1) and the vertical axis is α. Here, the conversion may be performed using a function formula prepared in advance, or a conversion table having a functional relationship as shown in FIG. 28 is prepared, and the α value corresponding to the chroma key synthesis parameter using the conversion table is prepared. May be calculated.

前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率がより小さくなるように補正を行うとは、例えば前記近傍付近で前記α値を第1の値に近づけるような補正を行う場合である。   In the vicinity of the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, correction is performed so that the rate of change of the α value with respect to the chroma key composition parameter is smaller. Is corrected so as to be close to the first value.

本発明により生成されるα値付き被写体画像は、各画素のα値に基づき所与の背景(新たな背景)と半透明合成(例えばαブレンディング処理)を行うことに用いられたりする。かかる場合に色相平面における背景中心からの距離が遠い部分(被写体画像と背景の境界付近)においてクロマキー合成パラメータの変化率が緩やかになるのと同じ効果を有する。   The subject image with an α value generated according to the present invention is used for performing a translucent composition (for example, α blending process) with a given background (new background) based on the α value of each pixel. In this case, it has the same effect as the change rate of the chroma key composition parameter becomes gentle at a portion (near the boundary between the subject image and the background) that is far from the background center on the hue plane.

前記クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近にある場合には、背景色が映り込んでいる可能性が高い。   When the chroma key composition parameter is in the vicinity of the first value indicating that it is a foreground image, there is a high possibility that a background color is reflected.

本発明のようにα値を設定することで、後に半透明合成等を行う場合に前景と背景の境界付近では、前景画像が新背景の影響をあまり受けないように制御することができる。   By setting the α value as in the present invention, it is possible to control so that the foreground image is not significantly affected by the new background in the vicinity of the boundary between the foreground and the background when translucent synthesis or the like is performed later.

またα値を演算する際に当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする。   Further, when calculating the α value, in the vicinity of the second value indicating that the chroma key composition parameter is a background image, a functional relationship is set such that the rate of change of the α value with respect to the chroma key composition parameter is small. The α value of each pixel of the subject image is determined.

前記クロマキー合成パラメータが背景画像であることを表す第2の値とは例えば0である。   The second value indicating that the chroma key composition parameter is a background image is 0, for example.

ここで前記α値を演算する際に当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するような被写体画像の各画素のα値の決定は、例えば図27において横軸をk(0〜255を0〜1と見る)、縦軸をαとした関数関係を有する変換を行うことにより実現できる。ここで変換は予め用意された関数式により行う場合でもよいし、図28に示すように関数関係を有するような変換テーブルを用意しておいて変換テーブルを用いてクロマキー合成パラメータに対応したα値を演算するようにしてもよい。   Here, when calculating the α value, there is a functional relationship in which the rate of change of the α value with respect to the chroma key composition parameter is small in the vicinity of the second value indicating that the chroma key composition parameter is a background image. The determination of the α value of each pixel of a subject image can be realized, for example, by performing transformation having a functional relationship in which the horizontal axis is k (0 to 255 is regarded as 0 to 1) and the vertical axis is α in FIG. . Here, the conversion may be performed using a function formula prepared in advance, or a conversion table having a functional relationship as shown in FIG. 28 is prepared, and the α value corresponding to the chroma key synthesis parameter using the conversion table is prepared. May be calculated.

前記クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率がより小さくなるように補正を行うとは、例えば前記α値を第2の値に近づけるような補正を行う場合である。   In the vicinity of the vicinity of the second value indicating that the chroma key composition parameter is a background image, the correction is performed so that the rate of change of the α value with respect to the chroma key composition parameter becomes smaller. This is a case where correction is performed so as to approach the value.

本発明により生成されるα値付き被写体画像は、各画素のα値に基づき所与の背景(新たな背景)と半透明合成(例えばαブレンディング処理)を行うことに用いられたりする。かかる場合に色相平面における背景中心からの距離が近い部分(背景部分)においてクロマキー合成パラメータの変化率が緩やかになるのと同じ効果を有する。   The subject image with an α value generated according to the present invention is used for performing a translucent composition (for example, α blending process) with a given background (new background) based on the α value of each pixel. In this case, it has the same effect as the change rate of the chroma key composition parameter becomes gentle in the portion (background portion) where the distance from the background center is short on the hue plane.

前記クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近にある場合には、当該画素は背景画像である可能性が高い。   When the chroma key composition parameter is in the vicinity of the second value indicating that it is a background image, the pixel is likely to be a background image.

本発明のようにα値を設定することで、後に半透明合成等を行う場合に背景の色相成分の変動を受けないように制御することができる。従って背景となるカーテン等に色むらや色ずれがある場合でも、これらの違いを吸収してきれいな画像が生成可能な背景の色むらや色ずれにつよいシステムを提供することができる。   By setting the α value as in the present invention, it is possible to control so as not to be subject to fluctuations in the hue component of the background when performing translucent synthesis or the like later. Therefore, even when there is color unevenness or color misregistration in the curtain or the like as the background, it is possible to provide a system that can absorb these differences and generate a clean image and is resistant to color unevenness or color misregistration in the background.

また被写体画像から抜き取り色の除去を行う際に、所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする。   Further, when removing the extracted color from the subject image, a background area on the hue plane is defined by two predetermined straight lines, and it is determined whether or not the hue value of each pixel of the subject image belongs to the background area. For the pixel determined to be, a line connecting the hue position of each pixel on the hue plane and the background center set based on the sampling color is a straight line having a shorter distance from the hue position of each pixel of the two predetermined lines. The hue value specified by one of the intersecting points or the perpendicular line of the two straight lines that are closer to the hue position of each pixel from the hue position of each pixel intersects the straight line. Based on this, the hue value of the subject image from which the extracted color is removed is obtained.

クロマキー合成では所与の画素の画素値(色等)から背景色の混合がない状態の画素値(色等)を推定し、その画素値(色等)を新背景(所与の画像)の画素値(色等)から合成後の画素値(色等)を計算する。本発明のようにα値付き被写体画像においては背景色の混合がない状態の画素値(色等)を求めることが重要である。   In chroma key composition, a pixel value (color, etc.) in a state where there is no background color mixture is estimated from the pixel value (color, etc.) of a given pixel, and that pixel value (color, etc.) is used for the new background (given image). The combined pixel value (color, etc.) is calculated from the pixel value (color, etc.). As in the present invention, it is important to obtain a pixel value (color, etc.) in a state where there is no background color mixing in a subject image with an α value.

例えば図16に示すように色相平面において線形性を仮定するならば色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点によって特定される色相値に基づき抜き取り色を除去した被写体画像の画素値を求めるのが好ましい。しかし各画素の色相位置によっては前記交点までの距離が大きくなりすぎて色相平面の上限値をこえてしまう場合がある。本発明によれば、このような場合各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点によって特定される色相値に基づき抜き取り色を除去した被写体画像の画素値を近似することができる。   For example, as shown in FIG. 16, if linearity is assumed in the hue plane, a straight line connecting the hue position of each pixel in the hue plane and the background center set based on the sampling color is the hue of each pixel out of the two predetermined straight lines. It is preferable to obtain the pixel value of the subject image from which the extracted color is removed based on the hue value specified by the point that intersects the straight line that is closer to the position. However, depending on the hue position of each pixel, the distance to the intersection may be too large and exceed the upper limit of the hue plane. According to the present invention, in such a case, the hue value specified by the point at which the perpendicular line of the two straight lines closer to the hue position of each pixel from the hue position of each pixel intersects the straight line. Based on this, the pixel value of the subject image from which the extracted color has been removed can be approximated.

従って各画素の色相位置によらず抜き取り色を除去した被写体画像の画素値を求めることができる。   Therefore, the pixel value of the subject image from which the extracted color is removed can be obtained regardless of the hue position of each pixel.

5.非線形クロマキー合成
5.1 線形クロマキー合成の問題点
前景の色ベクトルをFGベクトル、背景の色ベクトルをとBGベクトル、輪郭、毛先などの中間領域MDベクトルは、
が成り立つことを前提とし、新背景をBG’ベクトルとすると、変換後の背景MD’ベクトルは、
とし、kを求める方法を工夫するのが従来の方法であった。
5. 5.1 Non-linear chroma key composition 5.1 Problems of linear chroma key composition Foreground color vector is FG vector, background color vector is BG vector, intermediate region MD vector such as contour, hair tip is
If the new background is a BG ′ vector, the converted background MD ′ vector is
The conventional method is to devise a method for obtaining k.

(1)の関係式は光学的には妥当といえるが、コンピューターやテレビ信号で扱うデータは、
のようにガンマ補正がかかっており物理的な色情報に対して線形ではない。またカメラにおいてはCCDで光を信号化し、画像データを生成するまでに非線形を有しているために、(1)の関係式がなりたたない。
The relational expression (1) is optically valid, but the data handled by computers and TV signals is
Gamma correction is applied and the physical color information is not linear. In addition, since the camera has nonlinearity until the light is converted into a signal by the CCD and the image data is generated, the relational expression (1) is not satisfied.

それでも画像が明るい領域では(1)が成り立っており、明るい背景画像と合成するときは実用に耐えうるものであった。   Nevertheless, (1) holds in a bright area of the image, and it can withstand practical use when combined with a bright background image.

しかし、暗い背景との合成や、被写体の動きが激しいときなどは(1)、(2)の式の計算では不自然さが目立つ結果となる。   However, when combined with a dark background or when the subject is moving rapidly, the results of the expressions (1) and (2) are unnatural.

第1の実施の形態では色相成分と輝度成分を分けて計算する。その際に、色相成分は線形合成を行い、輝度成分については非線形計算を行うことで自然な合成を実現する。   In the first embodiment, the hue component and the luminance component are calculated separately. At that time, the hue component is linearly synthesized, and the luminance component is non-linearly calculated to realize natural synthesis.

5.2 RBG値から輝度成分、色相成分への変換
コンピュータではカラー画像データを一画素あたりR,G,Bの3値データで扱う。本実施の形態では、撮像手段が撮影した被写体画像をRGBの3値データで受け取り、このRGBデータを以下の変換式でYIQ色空間に変換する。
5.2 Conversion from RBG value to luminance component and hue component A computer handles color image data as ternary data of R, G, and B per pixel. In the present embodiment, the subject image captured by the imaging unit is received as RGB ternary data, and this RGB data is converted into the YIQ color space by the following conversion formula.

5.3 色相成分の変換
図10は色相成分の変換について説明するための図である。
5.3 Hue Component Conversion FIG. 10 is a diagram for explaining the hue component conversion.

被写体画像のRBG値を(4)式を用いてYIQ色空間に変換する。そしてIQ平面において新背景合成後の色相データの変換を行う。IQ成分に関しては(1),(2)式の線形性を仮定する。   The RBG value of the subject image is converted into the YIQ color space using equation (4). Then, the hue data after the new background composition is converted on the IQ plane. For the IQ component, the linearity of equations (1) and (2) is assumed.

パラメータkについては、kの計算方法ついては「7.クロマキー合成パラメータkの計算方法」に従って求めてもよいし、他の方法により求めてもよい。   The parameter k may be calculated according to “7. Method for calculating the chroma key composition parameter k” or may be calculated by another method.

Xベクトルは変換対象画素の色相値310であり、BCベクトルは色相平面に置ける背景中心(旧背景(抜き取り色))320であり、BC”は新背景(所与の背景画像)の色相値であり、ベクトルX’は変換後(合成画像)の色相(IQ)値である。FGベクトルは前景の色相値である。本実施の形態では、色相平面においてXベクトルの色相値310、背景中心320を結ぶ直線330が前景領域と背景領域の境界を特定する直線Lと交差する点350をFGベクトルと仮定する。   X vector is the hue value 310 of the pixel to be converted, BC vector is the background center (old background (sampled color)) 320 that can be placed on the hue plane, and BC ″ is the hue value of the new background (given background image). The vector X ′ is the hue (IQ) value after conversion (composite image), the FG vector is the hue value of the foreground, and in this embodiment, the hue value 310 of the X vector and the background center 320 in the hue plane. It is assumed that a point 350 where a straight line 330 connecting the two intersects a straight line L that specifies the boundary between the foreground region and the background region is an FG vector.

図10より以下の式が成り立つ。   From FIG. 10, the following expression is established.

(33)−1、(33)−2より
From (33) -1 and (33) -2

(13)式より、参照点(画素)のIQ値ベクトルX、旧背景(抜き取り色)BCベクトル、パラメータk、新背景(所与の背景画像)BC”ベクトルが与えられば変換後(合成画像)のIQ値ベクトルX’が計算できる。 If the IQ value vector X of the reference point (pixel), the old background (sampling color) BC vector, the parameter k, and the new background (given background image) BC ″ vector are given from the equation (13), the converted (composite image) ) IQ value vector X ′ can be calculated.

5.4 輝度成分の変換
輝度成分に関しては非線形変換を行う。
5.4 Conversion of luminance component Non-linear conversion is performed for the luminance component.

まず上記(14)式よりβを計算する。γは任意に決めるパラメータである。   First, β is calculated from the above equation (14). γ is an arbitrarily determined parameter.

次にYがYtherより大きいときは次式により補正をかける。 Next, when Y is greater than Y ther, correction is performed according to the following equation.

これはYが大きいときはIQが小さくなるため、意図しない領域がBG領域と判断されるからである。 This is because when Y is large, IQ is small, and an unintended region is determined as a BG region.

明るい領域の適用を抑えるために補正を行う。   Make corrections to reduce the application of bright areas.

次にβよりYを計算する。   Next, Y is calculated from β.

被写体によって生じた背景への影を残す場合、変換前の輝度をYX、旧背景の輝度をYBC,新背景の輝度をYBC",とすると変換後の輝度YX'は次式で計算する。 When leaving a shadow on the background caused by the subject, assuming that the luminance before conversion is Y X , the luminance of the old background is Y BC , and the luminance of the new background is Y BC " , the luminance Y X ′ after conversion is calculate.

の式で計算する。 Calculate with the following formula.

被写体によって生じた背景への影を消す場合には、変換前の輝度をYX,新背景の輝度をYBC"とすると変換後の輝度YX'は次式で計算する。 When erasing the shadow on the background caused by the subject, assuming that the luminance before conversion is Y X and the luminance of the new background is Y BC ″ , the luminance Y X ′ after conversion is calculated by the following equation.

5.5 YIQ成分からRGB成分への変換
(13),(16),(17)より変換後のYIQを計算しして次式でYIQからRGBに変換し、新画素値とする。
5.5 Conversion from YIQ component to RGB component YIQ after conversion is calculated from (13), (16), and (17) and converted from YIQ to RGB by the following equation to obtain a new pixel value.

5.6 非線形クロマキー合成の処理の流れ
図6は本実施の形態の輝度成分について非線形合成を行うクロマキー合成処理の流れの一例について説明するためのフローチャート図である。
5.6 Non-linear Chroma Key Composition Process Flow FIG. 6 is a flowchart for explaining an example of a chroma key composition process flow for performing non-linear composition for the luminance component of the present embodiment.

まずA1ベクトル、A2ベクトル、BCベクトル、rの定義に基づき背景領域を定義する(ステップS210)。   First, a background region is defined based on the definitions of A1 vector, A2 vector, BC vector, and r (step S210).

画像データの終わりが来るまで各画素について以下の処理を行う(ステップS220)。   The following processing is performed for each pixel until the end of the image data comes (step S220).

まず参照画素のRGB値を取得する(ステップS230)。   First, the RGB value of the reference pixel is acquired (step S230).

RGB値をYIQに変換する(ステップS240)。   The RGB value is converted into YIQ (step S240).

ベクトルX=(I,Q)とする(ステップS250)。ここでベクトルXは参照画像のI,Q成分である。   Vector X = (I, Q) is set (step S250). Here, the vector X is the I and Q components of the reference image.

ベクトルXが背景領域に属するか否か判断する(ステップS260)。例えばベクトルXが式(7)−1〜(7)−4のいずれを満たすかを調べることにより背景領域に属するか否か判断することができる。この場合(7)−4を満たす場合には背景領域に属し、それ以外の場合には前景領域に属すると判断することができる。   It is determined whether or not the vector X belongs to the background area (step S260). For example, it can be determined whether or not the vector X belongs to the background region by examining which of the expressions (7) -1 to (7) -4 is satisfied. In this case, if (7) -4 is satisfied, it can be determined that it belongs to the background area, and otherwise, it belongs to the foreground area.

前景領域に属すると判断した場合には画素値の置き換えはせずにステップS220に戻る(ステップS270)。   If it is determined that the pixel belongs to the foreground area, the process returns to step S220 without replacing the pixel value (step S270).

また背景領域に属すると判断した場合にはベクトルXが直線L1とL2のどちらに近いか判断する(ステップS280)。   If it is determined that it belongs to the background area, it is determined whether the vector X is closer to the straight line L1 or L2 (step S280).

L1に近い場合にはAベクトルをA1ベクトルとし(ステップS290)、L2に近い場合にはAベクトルをA2ベクトルとする(ステップS300)。   When it is close to L1, the A vector is set as the A1 vector (step S290), and when close to L2, the A vector is set as the A2 vector (step S300).

そしてIQ値ベクトルX、旧背景BCベクトル、パラメータk、新背景BCベクトルより変換後のIQ値を計算する(ステップS310)。例えば(13)式により変換後のIQ値を計算することができる。   Then, the IQ value after conversion is calculated from the IQ value vector X, the old background BC vector, the parameter k, and the new background BC vector (step S310). For example, the converted IQ value can be calculated by the equation (13).

次にまた変換前の輝度YX、新背景の輝度YBC"、パラメータkから非線形変換を行い、変換後の輝度Yx’を計算する(ステップS320)。例えば式(14)(15)から変換パラメータβを求め、式(16)又は式(17)により変換後の輝度Yx’を計算するようにしてもよい。 Next, non-linear conversion is performed from the luminance Y X before conversion, the luminance Y BC ″ of the new background, and the parameter k, and the converted luminance Yx ′ is calculated (step S320). For example, conversion from equations (14) and (15) is performed. The parameter β may be obtained, and the converted luminance Yx ′ may be calculated according to the equation (16) or the equation (17).

そしてステップS310及びS320で求めたYIQ値をRGB値に変換する(ステップS330)。YIQ値からRGB値への変換は例えば式(18)の座標変換により行うことができる。   Then, the YIQ value obtained in steps S310 and S320 is converted into an RGB value (step S330). The conversion from the YIQ value to the RGB value can be performed by, for example, coordinate conversion of Expression (18).

5.7 非線形合成の一例
図13は、毛先画像の写真であり、図14は毛先画像の写真のQY分布を示している。図14に示すように画像の輝度が低い領域では、髪の毛と背景の交じり合う部分が直線上に分布していない。これはCCDによる光の信号変換後、γ補正や各種画像処理の結果によって生ずる信号変換の非線形性による結果である。
クロマキーアルゴリズムでは新背景に変換するときに、背景と前景の中間領域がどのような過程でそうなったかを仮定して新背景に変換するが、従来の方法では線形性を仮定していたため、暗い領域の変換がうまくいかず、そのためにパラメータを追加して調整する方法等が取られていたため、パラメータの数が増え、自動的に調整することは困難であった。
5.7 Example of Non-Linear Synthesis FIG. 13 is a photograph of a hair tip image, and FIG. 14 shows a QY distribution of the photograph of the hair tip image. As shown in FIG. 14, in the region where the luminance of the image is low, the portion where the hair and the background intersect is not distributed on a straight line. This is a result of nonlinearity of signal conversion caused by γ correction and various image processing results after the light signal conversion by CCD.
In the chroma key algorithm, when converting to the new background, it is converted to the new background by assuming what process the intermediate area between the background and the foreground is, but in the conventional method, the linearity is assumed. Since the conversion of the area did not go well, and a method for adjusting by adding parameters was taken for that purpose, the number of parameters increased and it was difficult to adjust automatically.

図15は、輝度Yの対数とQの分布を示した図である。同図のように輝度Yの対数をとると色の分布はほぼ直線上に乗る。本実施の形態ではこれに着目し、中間領域の生成過程を線形ではなく、対数軸上で線形と仮定して新背景に変換する。   FIG. 15 is a diagram showing the logarithm of luminance Y and the distribution of Q. When the logarithm of luminance Y is taken as shown in the figure, the color distribution is almost on a straight line. In the present embodiment, attention is paid to this, and the process of generating the intermediate region is assumed to be linear on the logarithmic axis, not linear, and converted to a new background.

そして変換後の輝度をYnew、旧背景をYBC'新背景をYBC"として以下の式で新しいYを計算する。 Then, a new Y is calculated by the following formula, assuming that the converted luminance is Y new , the old background is Y BC ′ and the new background is Y BC ” .

この式を整理すると次式になる。   When this formula is arranged, the following formula is obtained.

(24)式でβ=1とすると以下の式となる。 If β = 1 in the equation (24), the following equation is obtained.

つまりβ=1の背景領域ではYx=YBCのとき新背景の輝度に変換され、それ以外はYX/YBCの比を保って変換され、輝度情報の比が保存される。つまり影が保たれることを意味する。
(24)式のYBCをYXとすると次式になる。
That is, in the background area of β = 1, the brightness is converted to the brightness of the new background when Yx = YBC, and the others are converted while maintaining the ratio of Y X / Y BC and the ratio of the brightness information is stored. In other words, it means that the shadow is kept.
When YBC in the equation (24) is Y X , the following equation is obtained.

β=1のときは次式となり新背景に変換される。   When β = 1, it becomes the following formula and is converted to a new background.

この場合輝度情報はすべて新背景に変換されるので影が消されることを意味する。   In this case, all the luminance information is converted to the new background, which means that the shadow is erased.

6.クロマキー合成パラメータkの計算方法
クロマキー合成に使用する、クロマキー合成パラメータkの計算方法を以下に示す。
6). Calculation method of chroma key composition parameter k A calculation method of chroma key composition parameter k used for chroma key composition is shown below.

図5は、被写体と背景領域の関係について説明するための図である。   FIG. 5 is a diagram for explaining the relationship between the subject and the background region.

被写体が前景領域220となり、単一色で撮影された部分が背景領域210となる。   The subject is the foreground area 220, and the portion captured with a single color is the background area 210.

通常クロマキー合成は緑や青などの単一色の背景で被写体を撮影し、背景色の情報を元にして、撮影画像の背景を別の画像におきかえる。
よって別の画像に置き換える背景色領域を定義する必要がある。ここでは明るさ(輝度成分)であるY軸に直交するIQ平面で色範囲を決定する
IQ平面は色相をあらわしている。このIQ平面で原点をとおる2直線により前景領域FGと背景領域BGを分ける。
In normal chroma key composition, a subject is photographed with a single color background such as green or blue, and the background of the photographed image is replaced with another image based on the background color information.
Therefore, it is necessary to define a background color area to be replaced with another image. Here, the color range is determined by the IQ plane orthogonal to the Y axis, which is the brightness (luminance component).
The IQ plane represents the hue. The foreground region FG and the background region BG are separated by two straight lines passing through the origin on the IQ plane.

図7は2直線と前景領域FGと背景領域BGの関係について説明するための図である。
原点を通る直線Lは、直線に直交するベクトルAベクトルを用いて、
FIG. 7 is a diagram for explaining the relationship between two straight lines, the foreground region FG, and the background region BG.
A straight line L passing through the origin is expressed by using a vector A vector orthogonal to the straight line,

とあらわすことができる。
よって直線L1に直交するベクトルをA1ベクトル、直線L2に直交するベクトルをA2ベクトルとすると2直線は
It can be expressed.
Therefore, if the vector orthogonal to the straight line L1 is A1, and the vector orthogonal to the straight line L2 is A2, the two straight lines are

とあらわすことができ、2直線に囲まれる領域は、以下の4つパターンで表すことができる。 An area surrounded by two straight lines can be expressed by the following four patterns.

よってベクトルA1ベクトル、A2ベクトルと領域(1)〜(4)を定義すれば、背景領域BGと前景領域FGを定義できる。   Therefore, if the vectors A1 and A2 and the areas (1) to (4) are defined, the background area BG and the foreground area FG can be defined.

図8はパラメータkの計算方法について説明するための図である。
背景領域を定義したら背景中心BCベクトルを定義する。BCベクトルには単一背景色のIQ値を指定する。
いまIQ平面におけるベクトルXが与えられたとき、ベクトルXのkを計算する。
ベクトルXとBCベクトルを通る直線と、直線Lとの交点をFGベクトルとする。
ベクトルXとBCベクトルを通る直線上のBCベクトルから距離rの点をBC’ベクトルとする。
FIG. 8 is a diagram for explaining a method for calculating the parameter k.
After the background area is defined, a background center BC vector is defined. An IQ value of a single background color is designated for the BC vector.
Now, when a vector X in the IQ plane is given, k of the vector X is calculated.
An intersection of a straight line passing through the vector X and the BC vector and the straight line L is defined as an FG vector.
A point at a distance r from a BC vector on a straight line passing through the vector X and the BC vector is defined as a BC ′ vector.

背景色のIQ値は一定であることが好ましいが、撮影時には物理的要因のため必ずばらつきが出る。本実施の形態ではそのばらつきを考慮してBCベクトルから半径rの円内はk=0とし、その他のkは次式により計算する。   It is preferable that the IQ value of the background color is constant, but variations always occur due to physical factors during shooting. In the present embodiment, in consideration of the variation, a circle with a radius r from the BC vector is set to k = 0, and the other k is calculated by the following equation.

具体的には、直線Lに直交するベクトルをAベクトルとすると、直線Lは以下の式となる。   Specifically, when a vector orthogonal to the straight line L is an A vector, the straight line L is expressed by the following expression.

BCベクトルは、
とあらわせる。従ってベクトルXとBC’ベクトルを通る直線は
The BC vector is
It shows. Therefore, the straight line passing through vector X and BC 'vector is

とあらわせる。
(9)(11)より次式でkを計算することができる。
It shows.
(9) k can be calculated by the following equation from (11).

ベクトルXがBCベクトルに近いときはk<0となる場合があるが、そのときはk=0とする。   When the vector X is close to the BC vector, k <0 may be satisfied. In this case, k = 0.

図9は本実施の形態でクロマキー合成パラメータkを求める処理の一例について説明するためのフローチャート図である。   FIG. 9 is a flowchart for explaining an example of processing for obtaining the chroma key composition parameter k in the present embodiment.

まずBCベクトル、A1ベクトル、A2ベクトル、BCベクトル、rの定義に基づき背景領域を設定する(ステップS10)。   First, a background region is set based on the definitions of BC vector, A1 vector, A2 vector, BC vector, and r (step S10).

画像データの終わりが来るまで各画素について以下の処理を行う(ステップS20)。   The following processing is performed for each pixel until the end of the image data comes (step S20).

まず参照画素のRGB値を取得する(ステップS30)。   First, the RGB value of the reference pixel is acquired (step S30).

RGB値をYIQに変換する(ステップS40)。   The RGB value is converted into YIQ (step S40).

ベクトルX=(I,Q)とする(ステップS50)。ここでベクトルXは参照画像のI,Q成分である。   Vector X = (I, Q) is set (step S50). Here, the vector X is the I and Q components of the reference image.

ベクトルXが背景領域に属するか否か判断する(ステップS60)。例えばベクトルXが式(7)−1〜(7)−4のいずれを満たすかを調べることにより背景領域に属するか否か判断することができる。この場合(7)−4を満たす場合には背景領域に属し、それ以外の場合には前景領域に属すると判断することができる。   It is determined whether or not the vector X belongs to the background area (step S60). For example, it can be determined whether or not the vector X belongs to the background region by examining which of the expressions (7) -1 to (7) -4 is satisfied. In this case, if (7) -4 is satisfied, it can be determined that it belongs to the background area, and otherwise, it belongs to the foreground area.

前景領域に属すると判断した場合にはk=1をセットしてステップS20に戻る(ステップS70)。   If it is determined that it belongs to the foreground area, k = 1 is set and the process returns to step S20 (step S70).

また背景領域に属すると判断した場合にはベクトルXが直線L1とL2のどちらに近いか判断する(ステップS80)。   If it is determined that it belongs to the background area, it is determined whether the vector X is closer to the straight line L1 or L2 (step S80).

L1に近い場合にはAベクトルをA1ベクトルとし(ステップS90)、L2に近い場合にはAベクトルをA2ベクトルとし(ステップS100)、Aベクトル、r、BCベクトルからkを計算する(ステップS110)。例えば式(12)から計算することができる。   If close to L1, the A vector is set to A1 vector (step S90), and if close to L2, the A vector is set to A2 vector (step S100), and k is calculated from the A vector, r, and BC vectors (step S110). . For example, it can be calculated from equation (12).

そしてk<0の場合はk=0としてステップS20に戻る(ステップS120、S130)。   If k <0, k = 0 and the process returns to step S20 (steps S120 and S130).

上記例ではRGB色空間からYIQ色空間に変換し、IQ平面で計算を行う場合を例にとり説明したがこれに限られない。Y軸に垂直な平面(RGB色空間から線形変換によって得られるもの)ならばすべて同じ計算になる。   In the above example, the case where the RGB color space is converted to the YIQ color space and the calculation is performed on the IQ plane has been described as an example, but the present invention is not limited thereto. All planes that are perpendicular to the Y axis (obtained by linear transformation from the RGB color space) are the same calculation.

例えばYUV色空間のUV平面においても同じ計算になる。またYCrCb色空間のCrCb平面においても同じ計算になる。   For example, the same calculation is performed in the UV plane of the YUV color space. The same calculation is performed in the CrCb plane of the YCrCb color space.

またいずれの場合にも(9)式を次式に拡張することによって、前景領域と背景領域を区別する直線を、原点を通る直線以外にも拡張することができる。   In any case, the straight line that distinguishes the foreground region and the background region can be extended to a line other than the straight line passing through the origin by extending the expression (9) to the following expression.

そのさい以下の式によりクロマキー合成パラメータkを計算することができる。   At that time, the chroma key composition parameter k can be calculated by the following equation.

このように拡張した場合図11のように原点を通らない領域を定義することができる。   When expanded in this way, a region that does not pass through the origin can be defined as shown in FIG.

色相平面の原点付近はグレーに近いため、背景領域として計算すると不自然な合成になる場合がある。そのときには図11のように定義することで原点領域を背景領域に含めないようにできる。   Since the vicinity of the origin of the hue plane is close to gray, calculation as a background region may result in an unnatural composition. At that time, the origin area can be excluded from the background area by defining it as shown in FIG.

また図12のように新たに直線L3,L4を追加することで色抜き領域MGを定義することができる。
色抜き領域とは次式の色相の変換と輝度の変換を行い、α値は1とし、新たな背景と合成を行わない領域である。
Further, the color removal region MG can be defined by newly adding straight lines L3 and L4 as shown in FIG.
The color removal area is an area in which hue conversion and luminance conversion of the following expression are performed, an α value is set to 1, and no new background is combined.

この場合、BG領域では、(22)式の計算にはA3ベクトル、A4ベクトルを使用し、kの計算にはA1ベクトル、A2ベクトルを用いる。
この方法によりクロマキーの課題である、背景領域と前景領域の混じりあう領域(BG)の合成と前景領域に背景色が写りこんだ領域(MG)の合成の二つを達成することができる。
In this case, in the BG region, the A3 vector and the A4 vector are used for calculating the expression (22), and the A1 vector and the A2 vector are used for calculating k.
This method can achieve two chroma key issues: the synthesis of a region (BG) in which the background region and the foreground region are mixed, and the synthesis of a region (MG) in which the background color is reflected in the foreground region.

7.αチャネル付きレイヤーの生成方法
αチャンネル付レイヤーとは、各画素のRGB値にα値を追加した画像である。
このレイヤーFGを背景BGと合成するときは次式によって合成画像が計算される。
7). Generation method of layer with α channel The layer with α channel is an image in which an α value is added to the RGB value of each pixel.
When this layer FG is combined with the background BG, a composite image is calculated by the following equation.

(35)の式はαに関して線形の合成となっている。αチャンネル付レイヤーの形式でデータを保持すると、色調整などの画像処理がしやすくなる。よって実用としてはαチャンネル付レイヤーを高精度に作成する必要がある。   Equation (35) is a linear composition with respect to α. Holding the data in the form of a layer with an α channel facilitates image processing such as color adjustment. Therefore, in practical use, it is necessary to create a layer with an α channel with high accuracy.

図16は背景色を除去した前景画像の作成について説明するための図である。   FIG. 16 is a diagram for explaining the creation of a foreground image with the background color removed.

クロマキー合成ではベクトルXから背景色の混合がない状態のFGベクトルを推定し、そのFGベクトルと新背景BC”ベクトルから合成後のベクトルX’を計算する。ベクトルX’の計算は(24)によってなされるから重要なのはFGベクトルである。   In chroma key composition, an FG vector with no background color mixture is estimated from the vector X, and a synthesized vector X ′ is calculated from the FG vector and the new background BC ″ vector. The calculation of the vector X ′ is performed according to (24). What is important is the FG vector.

IQ平面におけるFGベクトルの計算は次式で行う。   Calculation of the FG vector on the IQ plane is performed by the following equation.

これは、ベクトルXから直線Lへの射影を表している。本来は図16のようにベクトルXとBCベクトルを結ぶ直線とLとの交点をFGベクトルとすべきであるが、それではFGベクトルが非常に大きくなり、IQの上限値を超えることがしばしば起こる。   This represents the projection from the vector X to the straight line L. Originally, as shown in FIG. 16, the intersection of the line X connecting the vector X and the BC vector and L should be the FG vector. However, the FG vector becomes very large and often exceeds the upper limit of IQ.

例えば図16においてベクトルX2が410の位置にあるとすると、ベクトルXとBCベクトルを結ぶ直線とLとの交点は420となりIQの上限値を超えてしまう。従ってかかる場合には、ベクトルX2の点410から直線Lにおろした垂線440が直線Lと交わる点430をベクトルFGとする。すなわち近似として、ベクトルXのLへの射影を採用する。ただしパラメータkに関しては420にFGベクトルがあるものとして計算する。   For example, assuming that the vector X2 is at the position 410 in FIG. 16, the intersection of the straight line connecting the vector X and the BC vector and L is 420, which exceeds the upper limit of IQ. Therefore, in such a case, a point 430 where a perpendicular 440 extending from the point 410 of the vector X2 to the straight line L intersects the straight line L is set as a vector FG. That is, as an approximation, the projection of the vector X onto L is adopted. However, the parameter k is calculated on the assumption that 420 has an FG vector.

FGベクトルのYの計算は以下のようにして行う。   The calculation of Y of the FG vector is performed as follows.

FGベクトルの輝度成分をYFG、ベクトルXの輝度成分をYx、BCベクトルの輝度をYBCとすると、線形性を仮定するならば以下の式となる。   Assuming that the luminance component of the FG vector is YFG, the luminance component of the vector X is Yx, and the luminance of the BC vector is YBC, the following equation is obtained if linearity is assumed.

カメラなどの入力装置が持つ非線形性より、YXが小さい領域ではこの式がなりたたなくなる。 Due to the non-linearity of the input device such as a camera, this equation is lost in the region where Y X is small.

よって、YBCに関しては以下の近似式を適用する。まず次式によりβを計算する。 Therefore, with respect to Y BC applying the following approximate expression. First, β is calculated by the following equation.

ここでγはユーザが定義するパラメータであり、写真印刷装置ではγ=2を採用している。   Here, γ is a parameter defined by the user, and γ = 2 is adopted in the photo printing apparatus.

γ<2のときは、Yが補正境界値Ythreより大きいときに次式で補正をかける。 When γ <2, when Y is greater than the correction boundary value Y thre , correction is performed using the following equation.

これはYが大きいときはIQが小さくなるため、意図しない領域がBG領域と判断される。明るい領域の適用を抑えるために補正を行う。   This is because, when Y is large, IQ becomes small, so an unintended region is determined as a BG region. Make corrections to reduce the application of bright areas.

次にβよりYを計算する。   Next, Y is calculated from β.

高速性を求めるならば、
としてもそれなりの結果は得られる。
最後に画像のα値は次式により計算する
If you want high speed,
Even so, some results can be obtained.
Finally, the α value of the image is calculated by the following formula

図17は本実施の形態のαチャネル付きレーヤーを生成について非線形合成を行うクロマキー合成処理の一例について説明するためのフローチャート図である。   FIG. 17 is a flowchart for explaining an example of chroma key composition processing for performing nonlinear composition for generating a layer with an α channel according to the present embodiment.

まずA1ベクトル、A2ベクトル、BCベクトル、r、補正境界値Ythreの定義に基づき背景領域を設定する(ステップS410)。 First, a background region is set based on the definitions of the A1 vector, A2 vector, BC vector, r, and the corrected boundary value Y thre (step S410).

画像データの終わりが来るまで各画素について以下の処理を行う(ステップS420)。   The following processing is performed for each pixel until the end of the image data comes (step S420).

まず参照画素のRGB値を取得する(ステップS430)。   First, the RGB value of the reference pixel is acquired (step S430).

RGB値をYIQに変換する(ステップS440)。   The RGB value is converted into YIQ (step S440).

ベクトルX=(I,Q)とする(ステップS450)。ここでベクトルXは参照画像のI,Q成分である。   Vector X = (I, Q) is set (step S450). Here, the vector X is the I and Q components of the reference image.

ベクトルXが背景領域に属するか否か判断する(ステップS460)。例えばベクトルXが式(7)−1〜(7)−4のいずれを満たすかを調べることにより背景領域に属するか否か判断することができる。この場合(7)−4を満たす場合には背景領域に属し、それ以外の場合には前景領域に属すると判断することができる。   It is determined whether or not the vector X belongs to the background area (step S460). For example, it can be determined whether or not the vector X belongs to the background region by examining which of the expressions (7) -1 to (7) -4 is satisfied. In this case, if (7) -4 is satisfied, it can be determined that it belongs to the background area, and otherwise, it belongs to the foreground area.

前景領域に属すると判断した場合には、FGベクトル=ベクトルX、α=αmaxをセットしてステップS530にいく(ステップS470)。   If it is determined that the image belongs to the foreground area, FG vector = vector X and α = αmax are set, and the process proceeds to step S530 (step S470).

また背景領域に属すると判断した場合にはベクトルXが直線L1とL2のどちらに近いか判断する(ステップS480)。   If it is determined that the vector belongs to the background area, it is determined whether the vector X is closer to the straight line L1 or L2 (step S480).

L1に近い場合にはAベクトルをA1ベクトルとし(ステップS490)、L2に近い場合にはAベクトルをA2ベクトルとする(ステップS500)。   If close to L1, the A vector is set as the A1 vector (step S490), and if close to L2, the A vector is set as the A2 vector (step S500).

そしてAベクトル、ベクトルXからFGベクトルを計算する(ステップS510)。例えば(36)式を用いて計算することができる。   Then, an FG vector is calculated from the A vector and the vector X (step S510). For example, it can be calculated using the equation (36).

そしてY、YBC、kから、YFG、αを計算する(ステップS520)。例えば(38)(27)〜(31)式を用いて計算することができる。 Then, Y FG and α are calculated from Y, Y BC and k (step S520). For example, it can be calculated using equations (38), (27) to (31).

そしてステップS510及びS520で求めたYIQ値をRGB値に変換する(ステップS530)。YIQ値からRGB値への変換は例えば式(18)の座標変換により行うことができる。   Then, the YIQ value obtained in steps S510 and S520 is converted into an RGB value (step S530). The conversion from the YIQ value to the RGB value can be performed by, for example, coordinate conversion of Expression (18).

このαチャンネル付レイヤーを作成する上で、色相平面において直線で領域を定義する点、α値の計算法に非線形計算をつかっている点がポイントとなる。   In creating the layer with the α channel, the point is that the region is defined by a straight line on the hue plane, and the point where nonlinear calculation is used for the α value calculation method.

原点(I=Q=0)を通る1又は2の直線又は原点以外を通る1又は2の直線で前景領域と背景領域を分け、背景領域にある色要素をすべて、直線上のどこかの点に移すことがポイントとなる。人間の眼は色相の差には敏感であるが、彩度の差には鈍感であるからである。   Divide the foreground area from the background area by a 1 or 2 straight line passing through the origin (I = Q = 0) or a 1 or 2 straight line passing through other than the origin, and all the color elements in the background area are located anywhere on the straight line. The point is to move to. This is because the human eye is sensitive to hue differences but insensitive to saturation differences.

ここでいう色相とは原点を通る直線の傾きを表し、彩度は原点からの距離に相当する。   Hue here refers to the slope of a straight line passing through the origin, and saturation corresponds to the distance from the origin.

直線上のどこかの点に移す手法としては、例えば図16で説明したように直線への射影を取るようにしても良いが、他の方法で直線上のどこかに移されるようにしてもよい。   As a method of moving to some point on the straight line, for example, projection to a straight line may be taken as described in FIG. 16, but it may be moved to some point on the straight line by another method. Good.

クロマキー合成の課題としては(1)毛先などの背景と前景の交じり合ったところや(2)洋服などへの背景色の移りこみをいかに自然に合成するかが重要である。(2)に関しては背景画像との合成でなく、単一色への色の置き換えが必要となる。   The challenges of chroma key composition are (1) where the background of the hair ends and the foreground are mixed, and (2) how the background color transfer to the clothes is naturally synthesized. Regarding (2), it is necessary to replace the color with a single color instead of combining with the background image.

図18の写真はグーリーンバックで撮影したときの影響で被写体に背景色の緑色が映り込んでいる様子610を表している。   The photograph of FIG. 18 shows a state 610 in which the background color green is reflected on the subject due to the effect of shooting with the green back.

図19の写真では緑色がオレンジ(オレンジの映り込み620)に変換されている様子を表している。このように背景の映り込みが新背景の色に変化しているのでより自然な画像となっている。   In the photograph of FIG. 19, the green color is converted to orange (orange reflection 620). Since the background reflection changes to the new background color, the image is more natural.

多くのクロマキーソフトではこの写りこみ除去のために、合成する領域と背景色を除去する領域に分けて処理を行っている。ここで背景色除去の領域では単に背景色を除去するだけで、図19の例のように新たにオレンジを合成する処理をおこなっていない。   In many chroma key software, in order to remove this reflection, processing is divided into a region to be combined and a region from which the background color is removed. Here, in the background color removal area, the background color is simply removed, and the process of newly synthesizing orange as in the example of FIG. 19 is not performed.

本実施の形態では例えば以下の式でαを設定することができ、新たな背景色の映り込みを実現することができる。   In this embodiment, for example, α can be set by the following expression, and a new background color can be reflected.

図20はIQ平面上のkに対してαが比例関係にある場合のkとαの関係にすいて示した図である。   FIG. 20 is a diagram showing the relationship between k and α when α is proportional to k on the IQ plane.

これに対し図21はIQ平面上のkに対してαに非線形性を持たせた場合のkとαの関係について示した図である。   On the other hand, FIG. 21 is a diagram showing the relationship between k and α when α is nonlinear with respect to k on the IQ plane.

例えば(32)式のように非線形を持たせることにより、色相平面における距離(例えばクロマキー合成パラメータk)が所定範囲内(kに近い部分)710ではαの変化率を小さくすることができる。   For example, by providing nonlinearity as in Expression (32), the change rate of α can be reduced when the distance (for example, chroma key composition parameter k) in the hue plane is within a predetermined range (portion close to k) 710.

これは図22に示すように直線付近に色抜きの領域を追加したのと同様の効果を生じさせることを意味する。   This means that an effect similar to that obtained by adding a colored region near the straight line as shown in FIG. 22 is produced.

しかも通常の色抜き領域で処理を行う場合と異なり、若干背景画像とも合成を行うために、あたかも新背景色が移りこんだかのような効果をもたらすことができ、通常の色抜き処理よりもよりリアルな合成が可能となる。   In addition, unlike the case of processing in the normal color removal area, the background image is also combined slightly, so that the effect is as if the new background color has been transferred. Realistic synthesis is possible.

また、色相平面における距離が所定範囲外(色相平面における距離が大きいとき、又はαが0に近い部分)620ではαの減少率を小さくすることができる。
このようにすることにより背景の明るさのばらつきの影響を受けない画像を生成することができる。
Further, when the distance on the hue plane is outside the predetermined range (when the distance on the hue plane is large, or where α is close to 0) 620, the reduction rate of α can be reduced.
By doing so, it is possible to generate an image that is not affected by variations in the brightness of the background.

ここで背景画像との合成度が大きいと背景が透けてしまうが、図21のような曲線とすることによって、透けない程度のバランスを保つことが可能となる。   Here, if the degree of synthesis with the background image is large, the background is transparent. However, by using a curve as shown in FIG. 21, it is possible to maintain a balance that is not transparent.

γを大きくすると色抜きに相当する領域を広くすることを意味する。
このようにαの計算に(32)式のような非線形式を用いることによって、これまでは別々であった、合成領域の処理と色抜き領域の処理が同じ処理で扱えるようになった。
Increasing γ means widening the area corresponding to color removal.
In this way, by using a nonlinear expression such as the expression (32) in the calculation of α, the process of the synthesis area and the process of the color removal area, which have been separated so far, can be handled by the same process.

またγが2以上のときは原点付近が色抜き領域となることで、式(28)の補正が不必要となる。従って簡単な処理でαチャンネル付レイヤーを作成することができる。   When γ is 2 or more, the vicinity of the origin is a color removal region, so that correction of equation (28) is unnecessary. Therefore, a layer with an α channel can be created by a simple process.

なおα値は上記記載のクロマキー合成パラメータkを用いて(32)式のように変換して求める構成でもよいし、例えば式(38)〜(40)に示すようにいずれかの従来技術により求めたk値(α値)や線形性を仮定して得られたを補正して求めるようにしてもよい。   It should be noted that the α value may be obtained by conversion as shown in equation (32) using the chroma key composition parameter k described above, or may be obtained by any conventional technique as shown in equations (38) to (40), for example. Alternatively, it may be obtained by correcting the k value (α value) or the linearity obtained.

以下所与の手法により得られたα値を補正して本実施の形態のα’値を求める手法について説明する。   A method for obtaining the α ′ value of the present embodiment by correcting the α value obtained by a given method will be described below.

図27は所与の手法により得られたα値と補正後のα値(本実施のα値)の関係について説明するための図である。   FIG. 27 is a diagram for explaining the relationship between the α value obtained by a given method and the corrected α value (α value in this embodiment).

ここにおいて所与の手法により得られたα値とは例えば数式(39)に示すように線形性を仮定したkに基づき得られたα値でもよいし、本実施の形態のkの計算方法(例えば数式(12)によって得られた)に基づき得られたα値でもよい。   Here, the α value obtained by a given method may be, for example, an α value obtained based on k assuming linearity as shown in Equation (39), or a calculation method of k in the present embodiment ( For example, it may be an α value obtained based on the equation (12).

680はα’=f(α)となる補正関数である。α値は0〜255の値をとるものとする。α値が第1のエリア(α値が0に近いエリア)650ではfの変化率を小さくし(例えば当該エリアのfの傾きが1より小さくなるようにする)、α値が第3のエリア(α値が256に近いエリア)670ではfの変化率を小さくする(例えば当該エリアのfの傾きが1より小さくなるようにする)。そして第1のエリアと第3のエリアの間の第2のエリアではα値がα’に線形変換されるようにしてもよい(例えばfが直線で傾きが1程度にする)。   Reference numeral 680 denotes a correction function that satisfies α ′ = f (α). The α value takes a value from 0 to 255. In the area where the α value is the first area (the area where the α value is close to 0) 650, the rate of change of f is reduced (for example, the inclination of f in the area is smaller than 1), and the α value is the third area. (Area where α value is close to 256) In 670, the rate of change of f is reduced (for example, the slope of f in the area is made smaller than 1). In the second area between the first area and the third area, the α value may be linearly converted to α ′ (for example, f is a straight line and the inclination is about 1).

このようにすると、第1のエリア650付近では多少αが変化してもα’に影響をあたえないようにすることができる。従って、背景色の明るさの変動に強い前景画像を抜き出すことができる。   In this way, even if α changes slightly in the vicinity of the first area 650, it is possible to prevent α ′ from being affected. Therefore, it is possible to extract a foreground image that is resistant to variations in the brightness of the background color.

また第3のエリア650付近でも多少αが変化してもα’に影響をあたえないようにして、背景の映り込み等が自然に除去できる。   Even in the vicinity of the third area 650, even if α slightly changes, α ′ is not affected, so that the reflection of the background can be removed naturally.

例えば次式に示すような所定の変換式を用いて所与の手法により得られたα値を補正して本実施の形態のα’値に変換するようにしても良い。   For example, the α value obtained by a given method may be corrected using a predetermined conversion formula as shown in the following formula and converted to the α ′ value of the present embodiment.

また例えば図28に示すようなαからα’への変換テーブルを用意しておいて当該テーブルを用いてαからα’への補正を行うよにしてもよい。   Further, for example, a conversion table from α to α ′ as shown in FIG. 28 may be prepared, and correction from α to α ′ may be performed using the table.

なお、本発明は、上記実施の形態で説明したものに限らず、種々の変形実施が可能である。   The present invention is not limited to the one described in the above embodiment, and various modifications can be made.

なお本発明は、上記実施形態で説明したものに限らず、種々の変形実施が可能である。   The present invention is not limited to that described in the above embodiment, and various modifications can be made.

また、本発明のうち従属請求項に係る発明においては、従属先の請求項の構成要件の一部を省略する構成とすることもできる。また、本発明の1の独立請求項に係る発明の要部を、他の独立請求項に従属させることもできる。   In the invention according to the dependent claims of the present invention, a part of the constituent features of the dependent claims can be omitted. Moreover, the principal part of the invention according to one independent claim of the present invention can be made dependent on another independent claim.

本実施形態の写真印刷装置の右側面図である。It is a right view of the photographic printing apparatus of this embodiment. 本実施形態の写真印刷装置の正面図である。It is a front view of the photo printing apparatus of this embodiment. 本実施形態の写真印刷装置の背面図である。It is a rear view of the photo printing apparatus of this embodiment. 本実施形態の写真印刷装置のブロック図の一例である。It is an example of the block diagram of the photo printing apparatus of this embodiment. 被写体と背景領域の関係について説明するための図である。It is a figure for demonstrating the relationship between a to-be-photographed object and a background area | region. 実施の形態の輝度成分について非線形合成を行うクロマキー合成処理の流れの一例について説明するためのフローチャート図である。It is a flowchart for demonstrating an example of the flow of the chroma key synthetic | combination process which performs nonlinear composition about the luminance component of embodiment. 色相平面における背景領域と前景領域について説明するための図である。It is a figure for demonstrating the background area | region and foreground area | region in a hue plane. パラメータkの計算方法について説明するための図である。It is a figure for demonstrating the calculation method of the parameter k. 本実施の形態でクロマキー合成パラメータkを求める処理の一例について説明するためのフローチャート図である。It is a flowchart for demonstrating an example of the process which calculates | requires the chroma key synthetic | combination parameter k in this Embodiment. 色相成分の変換について説明するための図である。It is a figure for demonstrating conversion of a hue component. 原点を通らない直線による背景領域の定義について説明するための図である。It is a figure for demonstrating the definition of the background area | region by the straight line which does not pass through an origin. 色抜き領域の定義手法について説明するための図である。It is a figure for demonstrating the definition method of a color removal area | region. 毛先画像の写真である。It is a photograph of a hair tip image. 毛先画像の写真のQY分布を示している。The QY distribution of the photograph of a hair end image is shown. 毛先画像の写真の輝度Yの対数とQの分布を示した図である。It is the figure which showed the logarithm of the brightness | luminance Y, and Q distribution of the photograph of a hair-end image. 背景色を除去した前景画像の作成について説明するための図である。It is a figure for demonstrating preparation of the foreground image which removed the background color. 実施の形態のαチャネル付きレーヤーを生成について非線形合成を行うクロマキー合成処理の一例について説明するためのフローチャート図である。It is a flowchart for demonstrating an example of the chroma key synthetic | combination process which performs nonlinear synthetic | combination about the production | generation of the layer with an alpha channel of embodiment. グーリーンバックで撮影したときの影響で被写体に背景色の緑色が映り込んでいる様子を表している。It shows how the background color of green is reflected in the subject due to the effect of shooting with green back. 緑色がオレンジ(オレンジの映り込み)に変換されている様子を表している。It shows how the green color has been converted to orange (orange reflection). IQ平面上のkに対してαが比例関係にある場合のkとαの関係について示した図である。It is the figure shown about the relationship between k and (alpha) when (alpha) is proportional to k on IQ plane. IQ平面上のkに対してαに非線形性を持たせた場合のkとαの関係について示した図である。It is the figure shown about the relationship of k and (alpha) at the time of giving non-linearity to (alpha) with respect to IQ plane. 直線付近に色抜きの領域を追加した場合の図である。It is a figure at the time of adding the color removal area | region near the straight line. クロマキー合成について説明するための図である。It is a figure for demonstrating chroma key composition. 従来の方式で生成された画像である。It is the image produced | generated by the conventional system. 毛先の部分を示している。The part of the hair end is shown. スカート部分を示している。The skirt is shown. 所与の手法により得られたα値と補正後のα値(本実施のα値)の関係について説明するための図である。It is a figure for demonstrating the relationship between (alpha) value obtained by the given method, and (alpha) value after correction | amendment (alpha value of this Embodiment). αからα’への変換テーブルをもちいた補正について説明するための図である。It is a figure for demonstrating the correction | amendment using the conversion table from (alpha) to (alpha) '.

符号の説明Explanation of symbols

1 写真印刷装置
10、12 カメラ
20 ディスプレイ
22,24 編集用ディスプレイ
40 写真の受け取り口
100 処理部
110 編集処理部
120 画像生成部
122 クロマキー合成部
124 αチャネル付き被写体画像生成部
130 音生成部
140 撮影部
160 操作部
170 記憶部
174 描画バッファ
180 情報記憶媒体
190 ディスプレイ
192 音出力部、
194 携帯型情報記憶装置
195 印刷部
196 通信部
DESCRIPTION OF SYMBOLS 1 Photo printing apparatus 10, 12 Camera 20 Display 22, 24 Editing display 40 Photo receiving port 100 Processing part 110 Editing processing part 120 Image generation part 122 Chroma key composition part 124 Subject image generation part 130 with alpha channel Sound generation part 140 Photographing Unit 160 operation unit 170 storage unit 174 drawing buffer 180 information storage medium 190 display 192 sound output unit,
194 Portable information storage device 195 Printing unit 196 Communication unit

Claims (16)

抜き取り色を背景として撮影された被写体の画像からα値付き被写体画像を生成するためのプログラムであって、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とするプログラム。
A program for generating a subject image with an α value from an image of a subject photographed with a sampling color as a background,
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. A program characterized by determining.
抜き取り色を背景として撮影された被写体の画像からα値付き被写体画像を生成するためのプログラムであって、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とするプログラム。
A program for generating a subject image with an α value from an image of a subject photographed with a sampling color as a background,
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. A program characterized by determining.
請求項1乃至2のいずれかにおいて、
前記抜き取り色除去手段は、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とするプログラム。
In any one of Claims 1 thru | or 2.
The sampling color removing means includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. A program characterized by that.
抜き取り色を背景として撮影された被写体の画像からα値付き被写体画像を生成するためのプログラムであって、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記抜き取り色除去手段は、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とするプログラム。
A program for generating a subject image with an α value from an image of a subject photographed with a sampling color as a background,
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The sampling color removing means includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. A program characterized by that.
請求項4において、
前記α値演算手段は、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とするプログラム。
In claim 4,
The α value calculation means includes
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. A program characterized by determining.
請求項4乃至5のいずれかにおいて、
前記α値演算手段は、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とするプログラム。
In any one of Claims 4 thru | or 5.
The α value calculation means includes
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. A program characterized by determining.
コンピュータにより読みとり可能な情報記憶媒体であって、請求項1乃至6のいずれかに記載のプログラムを記憶することを特徴とする情報記憶媒体。   An information storage medium readable by a computer, wherein the program according to any one of claims 1 to 6 is stored. 撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込み手段と、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成手段と、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像手段と、
合成画像に基づきプリント画像を生成する手段とを含み、
前記α値付き被写体画像生成手段は、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする写真印刷装置。
A photo printing device that captures, edits, and prints an image of a photographed subject,
Subject image capturing means for capturing an image of a subject by capturing an image of the subject using an extraction unit as a background with an extraction color; and
Subject image generation means with α value for generating a subject image with α value based on the captured subject image;
a composite image means for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generating means
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. A photographic printing apparatus characterized by determining
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込み手段と、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成手段と、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像手段と、
合成画像に基づきプリント画像を生成する手段とを含み、
前記α値付き被写体画像生成手段は、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記α値演算手段は、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする写真印刷装置。
A photo printing device that captures, edits, and prints an image of a photographed subject,
Subject image capturing means for capturing an image of a subject by capturing an image of the subject using an extraction unit as a background with an extraction color; and
Subject image generation means with α value for generating a subject image with α value based on the captured subject image;
a composite image means for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generating means
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The α value calculation means includes
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. A photographic printing apparatus characterized by determining
請求項8乃至9のいずれかにおいて、
前記抜き取り色除去手段は、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする写真印刷装置。
In any one of Claims 8 thru | or 9.
The sampling color removing means includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. A photographic printing apparatus characterized by that.
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込み手段と、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成手段と、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像手段と、
合成画像に基づきプリント画像を生成する手段とを含み、
前記α値付き被写体画像生成手段は、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算手段と、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去手段とを含み、
前記抜き取り色除去手段は、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする写真印刷装置。
A photo printing device that captures, edits, and prints an image of a photographed subject,
Subject image capturing means for capturing an image of a subject by capturing an image of the subject using an extraction unit as a background with an extraction color; and
Subject image generation means with α value for generating a subject image with α value based on the captured subject image;
a composite image means for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generating means
Α value calculation means for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal means for removing the sampling color reflected in the subject image,
The sampling color removing means includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The point where the straight line connecting the hue position and the background center set based on the sampling color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. A photographic printing apparatus characterized by that.
請求項11において、
前記α値演算手段が、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする写真印刷装置。
In claim 11,
The α value calculating means is
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. A photographic printing apparatus characterized by determining
請求項11乃至12のいずれかにおいて、
前記α値演算手段が、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする写真印刷装置。
In any of claims 11 to 12,
The α value calculating means is
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. A photographic printing apparatus characterized by determining
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置の写真印刷方法であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込みステップと、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成ステップと、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像ステップと、
合成画像に基づきプリント画像を生成するステップとを含み、
前記α値付き被写体画像生成ステップは、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算ステップと、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去ステップとを含み、
前記α値演算ステップは、
当該クロマキー合成パラメータが前景画像であることを表す第1の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする写真印刷方法。
A photo printing method of a photo printing apparatus for capturing, editing, and printing a photographed subject image,
A subject image capturing step of capturing an image of a subject by capturing an image of the subject using an extraction unit with a sampling color as a background; and
A subject image generation step with an α value that generates a subject image with an α value based on the captured subject image;
a composite image step for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generation step includes:
An α value calculation step for obtaining a chroma key composition parameter for each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color, and computing an α value corresponding to each pixel of the subject image based on the chroma key composition parameter; ,
A sampling color removal step for removing the sampling color reflected in the subject image,
The α value calculating step includes:
In the vicinity of the first value indicating that the chroma key composition parameter is a foreground image, the α value of each pixel of the subject image has a functional relationship such that the rate of change of the α value with respect to the chroma key composition parameter is small. A photographic printing method characterized in that
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置の写真印刷方法であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込みステップと、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成ステップと、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像ステップと、
合成画像に基づきプリント画像を生成するステップとを含み、
前記α値付き被写体画像生成ステップは、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算ステップと、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去ステップとを含み、
前記α値演算ステップは、
当該クロマキー合成パラメータが背景画像であることを表す第2の値の近傍付近では当該クロマキー合成パラメータに対するα値の変化率が小さくなるような関数関係を有するように、被写体画像の各画素のα値を決定することを特徴とする写真印刷方法。
A photo printing method of a photo printing apparatus for capturing, editing, and printing a photographed subject image,
A subject image capturing step of capturing an image of a subject by capturing an image of the subject using an extraction unit with a sampling color as a background; and
A subject image generation step with an α value that generates a subject image with an α value based on the captured subject image;
a composite image step for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generation step includes:
An α value calculating step for obtaining a chroma key synthesis parameter of each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and calculating an α value corresponding to each pixel of the subject image based on the chroma key synthesis parameter; ,
A sampling color removal step for removing the sampling color reflected in the subject image,
The α value calculating step includes:
In the vicinity of the second value indicating that the chroma key composition parameter is a background image, the α value of each pixel of the subject image has a functional relationship such that the change rate of the α value with respect to the chroma key composition parameter is small. A photographic printing method characterized in that
撮影された被写体の画像を取り込み、編集してプリントする写真印刷装置の写真印刷方法であって、
撮像手段を用いて、抜き取り色を背景として被写体の画像を撮影して、被写体画像を取り込む被写体画像取り込みステップと、
取り込まれた被写体画像に基づきα値付き被写体画像を生成するα値付き被写体画像生成ステップと、
α値付き被写体画像と所与の背景画像を半透明合成して合成画像を生成する合成画像ステップと、
合成画像に基づきプリント画像を生成するステップとを含み、
前記α値付き被写体画像生成ステップは、
被写体画像の各画素の色相成分と抜き取り色の色相成分に基づき、各画素のクロマキー合成パラメータを求め、当該クロマキー合成パラメータに基づき被写体画像の各画素に対応したα値を演算するα値演算ステップと、
被写体画像に映り込んだ抜き取り色を除去する抜き取り色除去ステップとを含み、
前記抜き取り色除去ステップは、
所定の2直線により色相平面における背景領域を定義し、被写体画像の各画素の色相値が背景領域に属するか否か判断し、背景領域に属すると判断した画素については、色相平面における各画素の色相位置と、抜き取り色に基づき設定した背景中心を結ぶ直線が前記所定の2直線のうち各画素の色相位置との距離が近いほうの直線と交わる点又は、各画素の色相位置から前記2直線のうち各画素の色相位置との距離が近いほうの直線におろした垂線が当該直線と交わる点のいずれかの点によって特定される色相値に基づき抜き取り色を除去した被写体画像の色相値を求めることを特徴とする写真印刷方法。
A photo printing method of a photo printing apparatus for capturing, editing, and printing a photographed subject image,
A subject image capturing step of capturing an image of a subject by capturing an image of the subject using an extraction unit with a sampling color as a background; and
A subject image generation step with an α value that generates a subject image with an α value based on the captured subject image;
a composite image step for generating a composite image by translucently combining a subject image with an α value and a given background image;
Generating a print image based on the composite image,
The α-valued subject image generation step includes:
An α value calculating step for obtaining a chroma key synthesis parameter of each pixel based on the hue component of each pixel of the subject image and the hue component of the extracted color and calculating an α value corresponding to each pixel of the subject image based on the chroma key synthesis parameter; ,
A sampling color removal step for removing the sampling color reflected in the subject image,
The sampling color removal step includes
A background area on the hue plane is defined by two predetermined straight lines, whether or not the hue value of each pixel of the subject image belongs to the background area, and for each pixel determined to belong to the background area, The straight line connecting the hue position and the background center set based on the extracted color intersects the straight line that is closer to the hue position of each pixel of the two predetermined straight lines, or the two straight lines from the hue position of each pixel. The hue value of the subject image from which the extracted color is removed is obtained based on the hue value specified by one of the points where the perpendicular line that is closer to the hue position of each pixel intersects the straight line. A photographic printing method characterized by the above.
JP2004212238A 2004-07-20 2004-07-20 Program, information storage medium, photo printing apparatus and photo printing method Active JP4084784B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004212238A JP4084784B2 (en) 2004-07-20 2004-07-20 Program, information storage medium, photo printing apparatus and photo printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004212238A JP4084784B2 (en) 2004-07-20 2004-07-20 Program, information storage medium, photo printing apparatus and photo printing method

Publications (2)

Publication Number Publication Date
JP2006033639A true JP2006033639A (en) 2006-02-02
JP4084784B2 JP4084784B2 (en) 2008-04-30

Family

ID=35899415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004212238A Active JP4084784B2 (en) 2004-07-20 2004-07-20 Program, information storage medium, photo printing apparatus and photo printing method

Country Status (1)

Country Link
JP (1) JP4084784B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010044446A1 (en) 2008-10-17 2010-04-22 オリンパス株式会社 Image generating device, endoscopic system, and image generating method
JP2014072697A (en) * 2012-09-28 2014-04-21 Dainippon Printing Co Ltd Automatic chroma key synthesizing device, automatic chroma key synthesizing method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010044446A1 (en) 2008-10-17 2010-04-22 オリンパス株式会社 Image generating device, endoscopic system, and image generating method
US9443321B2 (en) 2008-10-17 2016-09-13 Olympus Corporation Imaging device, endoscope system and imaging method using yellow-eliminated green data
JP2014072697A (en) * 2012-09-28 2014-04-21 Dainippon Printing Co Ltd Automatic chroma key synthesizing device, automatic chroma key synthesizing method and program

Also Published As

Publication number Publication date
JP4084784B2 (en) 2008-04-30

Similar Documents

Publication Publication Date Title
US5469536A (en) Image editing system including masking capability
JP4481236B2 (en) Program, information storage medium, photo printing apparatus and photo printing method
CN100365656C (en) Image processing apparatus, image processing method and program product therefor
JP2017059235A (en) Apparatus and method for adjusting brightness of image
JP2001169174A (en) Digital image pickup device, image processing-system provided therewith, image processor, digital image pickup method and recording medium
JP4783035B2 (en) Projection display device, projection display method, projection display program, and recording medium storing projection display program
JP2006081151A (en) Graphical user interface for keyer
JP2005117407A (en) Image processor
JP6757004B2 (en) Image processing equipment and methods, image processing programs, and projection equipment
JP4084784B2 (en) Program, information storage medium, photo printing apparatus and photo printing method
JP2002044469A (en) Image processing method and recording medium with recorded image processing program stored
JP4171722B2 (en) Program, information storage medium, photo printing apparatus and photo printing method
JP4220441B2 (en) Program, information storage medium, photo printing apparatus and photo printing method
JP2008079185A (en) Automatic photograph creating apparatus, and automatic photograph creating method
JP2005078158A (en) Image processing device, image processing method, program and recording medium
JP2006350621A (en) Image processor and image processing program
JP2000013625A (en) Image processing method, device and recording medium
JP5900826B2 (en) Image editing apparatus, image editing method, and control program
KR20020084321A (en) real-time character composition method using template
AU2262900A (en) Image enhancement for rasterized images
KR19980074996A (en) How to make animated composite photos
JP4208889B2 (en) Image processing method, apparatus, and recording medium
JP2006072743A (en) Catch light composition method and device
JP5854333B2 (en) Image output device
JP4148090B2 (en) Blocked decoration image

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071026

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071031

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071227

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: 20080130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080215

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4084784

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: 20110222

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120222

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: 20120222

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130222

Year of fee payment: 5

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: 20130222

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140222

Year of fee payment: 6

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

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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