JP2004349785A - Apparatus and method for image processing - Google Patents

Apparatus and method for image processing Download PDF

Info

Publication number
JP2004349785A
JP2004349785A JP2003141647A JP2003141647A JP2004349785A JP 2004349785 A JP2004349785 A JP 2004349785A JP 2003141647 A JP2003141647 A JP 2003141647A JP 2003141647 A JP2003141647 A JP 2003141647A JP 2004349785 A JP2004349785 A JP 2004349785A
Authority
JP
Japan
Prior art keywords
color
value
image
transparent
primary
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
JP2003141647A
Other languages
Japanese (ja)
Other versions
JP3914895B2 (en
Inventor
Hideki Murata
秀樹 村田
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.)
NEC Platforms Ltd
Original Assignee
NEC AccessTechnica Ltd
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 NEC AccessTechnica Ltd filed Critical NEC AccessTechnica Ltd
Priority to JP2003141647A priority Critical patent/JP3914895B2/en
Publication of JP2004349785A publication Critical patent/JP2004349785A/en
Application granted granted Critical
Publication of JP3914895B2 publication Critical patent/JP3914895B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and an image processing method capable of specifying color corresponding to a background more exactly and performing the transparent processing of an image thereof comparatively easily. <P>SOLUTION: When the value of a B color of a chroma key color in an inputted pixel is larger than the one having a large value of an R color and a G color as other colors by a first value or larger (step 12:Y), and when an absolute value of the difference between the R color and the G color is equal to or lower than a second value (step S13: Y); the pixel is subjected to transparent processing as one belonging to a region corresponding to the background (step S15). The others are processed as foreground images (step S14). In this way, the number of comparing processings is reduced, and further, pixels corresponding to the background can be extracted more precisely. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は特定の色の領域を透明にしてこの部分に背景の画像を合成するための画像処理装置に関する。
【0002】
【従来の技術】
たとえばビデオ編集等の画像処理を行う場合には、1枚の画像の背景部分を他の画像と置き換えて2枚の画像を1枚に合成する技術が使用されることが多い。このような場合には、背景にする箇所の色を透明色として扱って、画像における人物等の前景物を抜き出し、透明となった箇所に別に用意した背景の画像を合成する。
【0003】
図5〜図7は従来行われたこのような処理を説明するためのものである。このうち図5は、肌色と補色関係にある青色の布、紙等(以下、単に布という。)のブルーバック(背景)11の前に人物12を配置して撮った画像である。図6は、この人物12の画像の背景に設定する山の画像13である。図5に示した画像からブルーバック11の部分を透明色として人物12を抜き出し、図6に示した山の画像13の上に重ねると、図7に示すように山13を背景としてその前に人物12がいるような画像14が合成される。
【0004】
このようなクロマキ処理を用いた画像処理が従来から提案されている(たとえば特許文献1参照)。この技術では、自然画像から指定された範囲を透明にする透明処理を行うことにしている。具体的には、クロマキ処理(透明処理)を行う範囲を24ビットのディジタル画像データを使用してR色(赤)、G色(緑)、B色(青)の各色の成分についてそれぞれ上限または下限を指定し、これによって定まる色の範囲を透明色として処理することで、この部分を別に作成した背景画像に置き換えるようにしている。ここで、背景処理を行う画像の部分は青色の布のブルーバックで構成しておくが、ブルーバックの部分はまったく同一の色調や明度の画像で構成されているわけではない。実際には同じブルーバックの画像でも光が反射して明るくなっている部分もあれば反対に影になって暗くなっている部分もある。これらいずれの部分でも同じように透明色として処理する必要がある。
【0005】
そこで、この提案ではR色、G色、B色の各色の成分についてそれぞれ上限または下限を指定することで、ある幅をもって画像の透明処理を行う部分を拡張し、これによって光が反射した部分や影が生じた部分でも透明色としての処理が確実に行えるようにしている。この半面で、この提案された処理を行うと、R色、G色、B色の各範囲の組み合わせによっては、青色の特徴を持たない色まで透明処理を行う危険性が生じてくる。これを次に説明する。
【0006】
図8〜図12は、各種の照明状態におけるブルーバックの画像の特性を表わしたものである。これらの図で横軸はR色、G色、B色の各色の成分を表わし、縦軸にそれぞれの色の値を256段階で表示している。このうち図8はブルーバックとして使用される青色の理想的な照明状態でのR色、G色、B色の各値を表わしている。図8に示した例では、B色の成分のみが存在しており、青色の特徴を持たないR色、G色は含まれていない。
【0007】
これに対して図9は光が反射して明るくなった状態での3色の特性を表わしたものであり、B色の成分は図8の例と変わらないが、青色の特徴を持たないR色、G色の値が大きくなっている。図10は、これに対してR色、G色の値は図9と変わらないが、B色の値が小さくなるような画像の特性を表わしている。
【0008】
これら図8〜図10に示した各照明状態に対してクロマキ処理を行えれば、照明むらを生じたB色に対しても透明処理を行うことが可能になる。このためには、R色、G色、B色の3色の成分それぞれについて上限および下限を設定する必要が生じる。これら3色の成分について設定される上限および下限は、この提案によれば次の(1)式のようになる。
“0”<R<r
“0”<G<r
b<B<“255” ……(1)
ここで符号r、bは、図9または図10に示した値を示すものである。
【0009】
【特許文献1】
特開平6−308938号公報(第0013段落、図1)
【0010】
【発明が解決しようとする課題】
このようにこの提案によれば、本来のB色の色成分だけでなくR色やG色の色成分が(1)式の範囲内で含まれる結果、クロマキカラーの特徴を有する各色を透明色として処理することができる。しかしながら、その一方で、これら(1)式の範囲内であれば3色のすべての組み合わせを透明色として処理することになる。この結果、クロマキカラーとは本来的に異なる色までが透明色として処理される場合が生じることになる。
【0011】
図11はその一例としてクロマキカラーとは本来的に異なる色、すなわち青色としての特徴を持たない本来透明処理されるべきでない画像部分が透明色として扱われる例を示したものである。この例では、R色が“0”あるいはこれに近い下限値となっている一方で、G色が上限値となっている。この場合、全体としては図8に示すクロマキカラーとはかなり異なるねずみ色に近い青色となる。提案された手法では、このような色までも透明色として扱われ、背景色と置き換わることになる。
【0012】
また、(1)式ではB色の値が値“b”よりも大きい必要がある。この結果として影になった暗いB色が透明色から除外される場合が生じる。
【0013】
図12は、透明処理されるべき画像部分が照明の状態によって透明色から除外される場合の例を表わしたものである。この図12に示した例の場合では、R色およびG色の色成分がこれらの下限値としての値“0”となっており、B色の成分の値はその下限値としての値“b”未満となっている。したがって、このような画像部分は透明色として扱われず前景色として残ってしまう。このように背景を透明色にするためにクロマキカラーの布を使用して画像を撮影したような場合、照明(ライティング)の状態によって、本来、前景色として処理される画像の一部が透明色として扱われたり、透明色として処理される画像の一部が前景色として残ってしまうという不都合が発生する。
【0014】
もちろん、このようにR色、G色、B色の3色それぞれに個別に上限および下限を設けることは、1画素当たり3色ずつ2つの値を判定することになり、それぞれ6つの判定が必要となる。したがって、特に画像の解像度が高いような場合には、画像処理の負荷が大きくなるという問題もある。
【0015】
そこで本発明の目的は、背景に対応する色をより正確に特定し、しかもその画像部分の透明処理を比較的簡単に行うことができる画像処理装置および画像処理方法を提供することにある。
【0016】
【課題を解決するための手段】
請求項1記載の発明では、(イ)特定の1色を背景に置き換えるための第1の原色とし、それ以外の2色をそれぞれ第2の原色および第3の原色とし、更にこれら3つの原色の採り得る最小値および最大値が同一であるとするとき、所定の画像を構成する画素ごとに第1の原色の値が第2および第3の原色の値のうちの大きいものよりも最大値よりも小さな所定の第1の値以上大きいか否かを比較する第1の比較手段と、(ロ)前記した所定の画像を構成する画素ごとに第2および第3の原色の差の絶対値が所定の正の第2の値以下であるか否かを比較する第2の比較手段と、(ハ)第1の比較手段が第1の原色の値が第2および第3の原色の値よりも第1の値以上大きいと判別し、かつ第2の比較手段が第2および第3の原色の差の絶対値が第2の値以下であると判別した画素のみを透明色として所定の背景画像の画素と置き換える透明色処理手段とを画像処理装置に具備させる。
【0017】
すなわち請求項1記載の発明では、3原色のうちの1つを背景に置き換えるための第1の原色とする。第1の原色で表示された画素は背景色としての処理を行う。実際の画素は3原色を組み合わせている。第1の比較手段ではこれら3原色のそれぞれの値を比較する。その前提として各原色の採り得る最小値および最大値が同一である。第1の比較手段は、第1の原色の値が第2および第3の原色の値のうちの大きいものよりも更に第1の値以上大きいか否かを比較する。背景色と一致する画素あるいは一致すると判定しようとする画素は当然ながら第1の原色と同一の色あるいはこれに似ている色である必要があるからである。このため、第1の条件は第1の原色の値は第2の原色および第3の原色の値からある程度以上値が開いていることを要求している。第2の比較手段は、第2および第3の原色の差の絶対値が所定の正の第2の値以下であるか否かを比較することにしている。これは、照明の過不足で背景に相当する画像の3原色が異なったとした場合、第1の原色以外の2色の値は大きく開くことがないという事実に着目している。3原色が均等の値のときに無彩色となることと同様の原理である。ただし、照明が純粋な白色光でない等の事情があるので、第2および第3の原色の値には所定の幅を認めている。
【0018】
請求項2記載の発明では、請求項1記載の画像処理装置で、透明色処理手段が透明色として処理しない画素について、背景の手前に位置する前景を構成する画素として処理する前景処理手段を具備している。
【0019】
すなわち請求項2記載の発明では、透明色として処理しない画素については背景に置き換えず、背景の手前に位置する前景の画像としてそのまま使用する場合を示している。
【0020】
請求項3記載の発明では、請求項1記載の画像処理装置で、第1の原色は青色であり、第2の原色と第3の原色は赤色あるいは緑色のうちのそれぞれ異なった1色であることを特徴としている。
【0021】
すなわち請求項3記載の発明では、第1の原色が青色の場合を示している。青色は人の顔色と補色に近い色なので、これを抽出して透明色として処理すると顔の画像の一部が背景に置き換わる可能性が少ない。もちろん、第1の原色を青色以外の原色に設定することは自由である。
【0022】
請求項4記載の発明では、(イ)特定の1色を背景に置き換えるための第1の原色とし、それ以外の2色をそれぞれ第2の原色および第3の原色とし、更にこれら3つの原色の採り得る最小値および最大値が同一であるとするとき、所定の画像を構成する画素ごとに第1の原色の値が第2および第3の原色の値のうちの大きいものよりも最大値よりも小さな所定の第1の値以上大きいか否かを比較する第1の比較ステップと、(ロ)前記した所定の画像を構成する画素ごとに第2および第3の原色の差の絶対値が所定の正の第2の値以下であるか否かを比較する第2の比較ステップと、(ハ)第1の比較ステップで第1の原色の値が第2および第3の原色の値よりも第1の値以上大きいと判別し、かつ第2の比較ステップで第2および第3の原色の差の絶対値が第2の値以下であると判別した画素のみを透明色として所定の背景画像の画素と置き換える透明色処理ステップとを画像処理方法に具備させる。
【0023】
すなわち請求項4記載の発明では、3原色のうちの1つを背景に置き換えるための第1の原色とする。第1の原色で表示された画素は背景色としての処理を行う。実際の画素は3原色を組み合わせている。第1の比較ステップではこれら3原色のそれぞれの値を比較する。その前提として各原色の採り得る最小値および最大値が同一である。第1のステップでは、第1の原色の値が第2および第3の原色の値のうちの大きいものよりも更に第1の値以上大きいか否かを比較する。背景色と一致する画素あるいは一致すると判定しようとする画素は当然ながら第1の原色と同一の色あるいはこれに似ている色である必要があるからである。このため、第1の条件は第1の原色の値は第2の原色および第3の原色の値からある程度以上値が開いていることを要求している。第2の比較ステップでは、第2および第3の原色の差の絶対値が所定の正の第2の値以下であるか否かを比較することにしている。これは、照明の過不足で背景に相当する画像の3原色が異なったとした場合、第1の原色以外の2色の値は大きく開くことがないという事実に着目している。3原色が均等の値のときに無彩色となることと同様の原理である。ただし、照明が純粋な白色光でない等の事情があるので、第2および第3の原色の値には所定の幅を認めている。
【0024】
請求項5記載の発明では、請求項4記載の画像処理方法で、透明色処理ステップで透明色として処理しない画素について、背景の手前に位置する前景を構成する画素として処理する前景処理ステップを具備している。
【0025】
すなわち請求項5記載の発明では、請求項4記載の画像処理方法で、透明色として処理しない画素については背景に置き換えず、背景の手前に位置する前景の画像としてそのまま使用する場合を示している。
【0026】
【発明の実施の形態】
図1は本発明の実施の形態における画像処理方法の概要を示したものである。この画像処理方法では、所定の画像の中から背景色を透明処理するようになっている。ここで透明色として処理されるクロマキカラーはR色(赤)、G色(緑)、B色(青)の中から任意に選択することができるが、この実施の形態では、人物の顔の色に対して補色の関係に近いB色をこれに設定する。R色、G色、B色はそれぞれ値“0”から値“255”までの256段階で表現されているものとする。ここで値“0”はその色が含まれていない状態を示しており、値“255”はその色が最大値である状態を示している。
【0027】
まず、処理の対象となる画像の中の未処理の1画素の画像データを入力する(ステップS11)。そして、その画像データにおけるR色、G色、B色の各値をチェックして、クロマキカラーとしてのB色の値がその他の色としてのR色およびG色の値のうちの大きい方よりも第1の値以上大きいかどうかを判別する(ステップS12)。これを透明処理の第1の条件とする。
【0028】
この透明処理の第1の条件が必要とされる理由を説明する。図8は背景として最も理想的な場合である。この図8ではR色およびG色の値が共に“0”でB色が最大値なので、透明処理の第1の条件を満足する。図9ではB色が最大値を示しているが、同時にR色およびG色もある値“r”となっている。しかしながらこれらの値“r”は最大値としての値“255”よりも小さいので、クロマキカラーの布にしわがあって照明の反射となって白っぽくなっているような部分の画像データと見ることができる。このような画像データも透明処理を行う必要がある。本実施の形態では第1の値が最大値“255”から値“r”を引いた値よりも小さな所定値としている。これは図12における値“b”よりも小さな値である。
【0029】
図12の場合にはR色およびG色の値が共に“0”となっているが、B色も最大値とはなっておらず、値“b”よりもわずかに小さくなっている。ここで値“b”はどこまでも小さい範囲を含むのではなく、図9に示した反射により現われた他の色の値“r”よりは大きいものとする。このような状態の図12の画像データは、たとえばクロマキカラーの布にしわがあって照明の影になった状態である。このような場合も透明処理を行う必要がある。図12の例の場合、透明処理の第1の条件を満たしている。
【0030】
一方、図10に示したような画像の画像データの場合には、R色およびG色の値が共に値“r”となっているにもかかわらず、B色も最大値よりも低い前記した値“b”となっている。ここでは、1つの画素の位置で同時に光の照射と影の生成が生じたような画像内容となっており、透明処理を行う対象でないことは明らかである。したがって、このような場合を除外するために、B色の値と次に値の大きな色の値との差が第1の値以上であることを透明処理の第1の条件としている。したがって、たとえばB色が画像の読取時の何らかの状況によって最大値よりもわずかに低い値となっていた場合では、R色とG色の値のうちの大きい方が同様にこの低下分以上に値を低下させているときに、同様に透明処理の第1の条件を満たすことになる。
【0031】
入力された画素が図1のステップS12で示した透明処理の第1の条件を満たしていた場合には(Y)、透明処理の第2の条件を更に満たしているかどうかのチェックが行われる。この透明処理の第2の条件は、R色とG色の差の絶対値は第2の値以下であるという条件である(ステップS13)。これは、クロマキカラーとは無関係なカラーとしてのR色とG色が画像データに現われたとしても、照明の不均一によって生じる場合が多いので、一方の色のみが極端に大きな値として現われることは考えられないという理由に基づくものである。図11ではねずみ色に近い青色となっており、透明処理の第2の条件はこのような画像データを透明処理しないための条件である。
【0032】
図2は、以上説明した透明処理の第1の条件と第2の条件を図解したものである。透明処理の第1の条件ではクロマキカラーとしてのB色とそれ以外のR色とG色のうちの大きな方の値との開きVを見ている。これに対して第2の条件ではクロマキカラー以外のR色とG色の開きVを見ていることになる。先に示した従来技術の(1)式と透明処理する対象の画素を抽出する手法がまったく相違することになる。
【0033】
図1に戻って説明を続ける。ステップS12あるいはステップS13で透明処理の第1または第2の条件を具備していないと判別された画素の画像データに対しては、透明処理は行わない。すなわち、その画素を前景を構成するものとして処理する(ステップS14)。その画素についてたとえば透明処理を行わない旨のマスク処理が行われてもよい。
【0034】
ステップS13で示した透明処理の第2の条件も更に満足した画素については(Y)、これを透明処理する(ステップS15)。この場合も透明処理をその時点で行う必要はなく、たとえば透明処理を行う旨のマスク処理が行われてもよい。次に処理すべき画素が残っているかどうかを判別し(ステップS16)、残りの画素がある場合には(Y)、ステップS11に戻って次の画素について同様の処理を行う。ステップS14の処理が行われた後も同様にステップS16の処理に進む。ステップS16で最終的に処理すべき残りの画素がなくなった場合には(N)、以上説明した一連の画像処理が終了することになる(エンド)。
【0035】
【実施例】
以下実施例につき本発明を更に詳細に説明する。
【0036】
図3は本発明の一実施例における画像処理装置の構成の概要を表わしたものである。本実施例の画像処理装置21は、通常のパーソナルコンピュータあるいはワークステーションと同様の構成となっており、CPU(中央処理装置)22を備えている。CPU22はデータバス等のバス23を介して、プログラム記録媒体24、作業メモリ25、画像入力部26、変換画像格納部27および画像出力部28を備えている。
【0037】
ここでプログラム記録媒体24は後に詳細に説明する本実施例による画像処理の一連の処理手順を制御プログラムとして格納した記録媒体である。記録媒体としては図示しない磁気ディスク、光ディスク、ROM(リード・オンリ・メモリ)あるいはRAM(ランダム・アクセス・メモリ)等の各種のデータ書込可能な記録媒体を当てることができる。作業メモリ25は、プログラム記録媒体24に格納された制御プログラムを実行する際に一時的に必要とされる各種データを一時的に格納するメモリ領域である。画像入力部26はクロマキ処理を行う対象となる画像を入力するようになっている。画像入力の態様としては各種のものが存在している。たとえばフロッピディスクや光ディスク等の外部記憶媒体を使用して画像データを入力してもよいし、インターネットのような通信ネットワークに接続してこれから必要な画像データを得てもよい。USB(Universal Serial Bus)や専用のケーブルを使用して画像データを入手してもよい。変換画像格納部27は変換後の画像データを格納する部分であり、磁気ディスク、RAM等の各種記憶媒体で構成することが可能である。画像出力部28は変換画像格納部27に格納された画像データを出力する部分である。前記した記録媒体に出力するものであってもよいし、ケーブルあるいは通信ネットワーク上に送出するものであってもよい。
【0038】
図4は、本実施例の画像処理装置による画像の処理の流れを表わしたものである。画像処理装置21の図3に示したCPU22は、画像入力部26から入力された1画素分の画像データを入力する(ステップS31)。この1画素分の画像データはR色、G色、B色の3原色をそれぞれ256階調で表わしたものである。本実施例では、このうちのB色をクロマキ処理(透明処理)する色とする。
【0039】
CPU22は入力された1画素分の画像データにおけるR色の値とG色の値を比較する(ステップS32)。この結果としてR色の値の方がG色の値よりも大きかった場合には(Y)、R色の値からG色の値を差し引いた値VとB色の値からR色の値を差し引いた値V(図2参照)を演算する(ステップS33)。これに対してR色の値がG色の値と等しいかこれよりも小さい場合には(ステップS32:N)、G色の値からR色の値を差し引いた値VとB色の値からG色の値を差し引いた値V(図2参照)を演算する(ステップS34)。
【0040】
そして次のステップS35では前記した透明処理の第1および第2の条件を共に満たすかどうかの判別を行う。まず、透明処理の第1の条件として値Vが予め定めた第1の値MINBRよりも大きいことが確認される。大きければ、透明処理の第2の条件として値Vは予め定めた第2の値MAXRGよりも小さいことが確認される。これら第1および第2の条件のいずれの1つでも満たさないような場合には(ステップS35:N)、その1画面の画像データとしてのR色、G色、B色の3原色の各値がそのまま前景色として出力されることになる(ステップS36)。
【0041】
これに対して、その画素の画像データが透明処理の第1および第2の条件の双方を同時に満たした場合には(ステップS35:Y)、これを背景の画素の画像データに置き換える(ステップS37)。すなわちR色については対応する位置の背景の画像データの値RBGに変更し、G色については対応する位置の背景の画像データの値GBGに変更し、B色については対応する位置の背景の画像データの値BBGに変更する。そして変更後の画素の画像データを出力する(ステップS36)。この後、処理すべき残りの画素が存在するかどうかをチェックして(ステップS38)、存在すれば(Y)、ステップS31に処理を戻す。処理すべき残りの画素が存在しなくなったら(ステップS38:N)、一連の処理を終了させることになる(エンド)。
【0042】
なお、本実施例では透明処理の第1の条件に使用する第1の値MINBRは透明処理の第2の条件に使用する第2の値MAXRGよりも大きい値として設定したが、これに限るものではない。
【0043】
また、以上説明した実施の形態および実施例ではクロマキカラーをB色としたがR色あるいはG色をクロマキカラーとして指定してもよい。シアン、マゼンタ、イエロ等の他の3原色の概念でも本発明を同様に適用できることも当然である。
【0044】
【発明の効果】
以上説明したように請求項1および請求項4記載の発明によれば、背景色(透明色)に置き換える布等に実際に当たる照明が白色光に近い状況を考慮して第1および第2の条件を設定したので、透明色の特定がより的確に行われ、これにより高品位な画像のクロマキ合成が可能になる。しかもそれぞれの画素について2つの比較を行えばよく、従来と比べて比較処理が簡略化したので、画像の高速処理が可能になり、その分だけ解像度を高めることができる。これが結果的に背景色(透明色)のエッジを鮮明にするので、この意味でも画質を向上することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態における画像処理方法の概要を示した流れ図である。
【図2】本発明における第1の条件と第2の条件を示した説明図である。
【図3】本発明の一実施例における画像処理装置の概要を示すブロック図である。
【図4】本実施例の画像処理装置による画像の処理の流れを表わした流れ図である。
【図5】青色の布のブルーバックの前に人物を配置して撮った画像の平面図である。
【図6】背景に設定する山の画像を示した平面図である。
【図7】図5と図6の両図を合成して得られた画像の平面図である。
【図8】透明処理されるべき画像部分が理想的な照明状態の場合のR色、G色およびB色の各値を表わした特性図である。
【図9】透明処理されるべき画像部分の照明による反射が生じた第1の例におけるR色、G色およびB色の各値を表わした特性図である。
【図10】透明処理されるべき画像部分の照明による影が生じた第2の例におけるR色、G色およびB色の各値を表わした特性図である。
【図11】透明処理されるべきでない画像の一例におけるR色、G色およびB色の各値を表わした特性図である。
【図12】透明処理されるべき画像部分が照明の状態によって透明色から除外される場合の例を表わしたR色、G色およびB色の特性図である。
【符号の説明】
21 画像処理装置
22 CPU
23 データバス等のバス
24 プログラム記録媒体
25 作業メモリ
26 画像入力部
27 変換画像格納部
28 画像出力部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus for making a region of a specific color transparent and combining a background image with this region.
[0002]
[Prior art]
For example, when performing image processing such as video editing, a technique is often used in which the background portion of one image is replaced with another image to combine two images into one image. In such a case, the color of the portion to be the background is treated as a transparent color, a foreground object such as a person in the image is extracted, and a separately prepared background image is combined with the transparent portion.
[0003]
FIG. 5 to FIG. 7 are for explaining such processing conventionally performed. 5 is an image obtained by arranging a person 12 in front of a blue background (background) 11 of a blue cloth, paper, or the like (hereinafter simply referred to as cloth) having a complementary color relationship with the skin color. FIG. 6 shows a mountain image 13 set as a background of the image of the person 12. When the person 12 is extracted from the image shown in FIG. 5 with the portion of the blue background 11 as a transparent color and is superimposed on the mountain image 13 shown in FIG. 6, as shown in FIG. An image 14 in which a person 12 is present is synthesized.
[0004]
Image processing using such chroma processing has been conventionally proposed (for example, see Patent Document 1). In this technique, a transparent process for making a designated range transparent from a natural image is performed. Specifically, the range in which the chroma processing (transparency processing) is to be performed is set to the upper limit or the upper limit for each of the components of R (red), G (green), and B (blue) using 24-bit digital image data. By specifying a lower limit and processing the range of colors determined by this as a transparent color, this portion is replaced with a separately created background image. Here, the portion of the image to be subjected to the background processing is configured by a blue cloth blue background, but the blue background portion is not necessarily configured by an image having exactly the same color tone and brightness. Actually, even in the image of the same blue background, there are portions where light is reflected and brightened, and conversely, there are portions where shadows are darkened. All of these parts need to be treated as a transparent color in the same manner.
[0005]
Therefore, in this proposal, by specifying the upper limit or the lower limit for each of the components of R, G, and B colors, the portion for performing the transparent processing of the image with a certain width is extended, and the portion where light is reflected and It is ensured that the processing as a transparent color can be reliably performed even in a portion where a shadow occurs. On the other hand, if the proposed processing is performed, there is a risk that the transparent processing is performed up to a color having no blue feature depending on the combination of the respective ranges of the R, G, and B colors. This will be described below.
[0006]
8 to 12 show the characteristics of the blue-back image under various lighting conditions. In these figures, the horizontal axis represents the components of each of the R, G, and B colors, and the vertical axis displays the values of each color in 256 levels. FIG. 8 shows the values of R, G, and B in an ideal blue illumination state used as a blue background. In the example shown in FIG. 8, only the B color component exists, and the R color and the G color having no blue feature are not included.
[0007]
On the other hand, FIG. 9 shows the characteristics of three colors in a state where light is reflected and brightened, and the component of B color is the same as that of FIG. The values of the colors G and G are large. FIG. 10 shows the characteristics of an image in which the values of R and G colors are the same as in FIG. 9, but the value of B color is reduced.
[0008]
If the chroma processing can be performed for each of the illumination states shown in FIGS. 8 to 10, the transparent processing can be performed even for the B color in which the illumination unevenness occurs. For this purpose, it is necessary to set upper and lower limits for each of the three components of R, G, and B colors. According to this proposal, the upper and lower limits set for these three color components are given by the following equation (1).
“0” <R <r
“0” <G <r
b <B <“255” (1)
Here, the symbols r and b indicate the values shown in FIG. 9 or FIG.
[0009]
[Patent Document 1]
JP-A-6-308938 (paragraph 0013, FIG. 1)
[0010]
[Problems to be solved by the invention]
As described above, according to this proposal, not only the original B color component but also the R and G color components are included in the range of the expression (1), so that each color having the characteristic of the chroma color is transparent. Can be processed as a color. However, on the other hand, all combinations of the three colors are processed as transparent colors within the range of the expression (1). As a result, there may be a case where a color that is originally different from the chroma color is processed as a transparent color.
[0011]
FIG. 11 shows an example in which a color which is originally different from the chroma color, that is, an image portion which does not have a characteristic of blue and which should not be transparently processed is treated as a transparent color. In this example, the R color has a lower limit value of “0” or a value close thereto, while the G color has an upper limit value. In this case, as a whole, the color becomes blue which is substantially different from the chroma color shown in FIG. In the proposed method, even such a color is treated as a transparent color, and is replaced with a background color.
[0012]
Further, in the equation (1), the value of the B color needs to be larger than the value “b”. As a result, there is a case where the dark B color that is shaded is excluded from the transparent colors.
[0013]
FIG. 12 shows an example in which an image portion to be subjected to the transparent processing is excluded from the transparent color depending on the lighting condition. In the case of the example shown in FIG. 12, the color components of R and G have the value “0” as their lower limit, and the value of the component of B has the value “b” as its lower limit. "Less than. Therefore, such an image portion is not treated as a transparent color and remains as a foreground color. When an image is photographed using a chromatic color cloth to make the background transparent as described above, a part of the image that is originally processed as the foreground color is transparent depending on the lighting (lighting) state. There is an inconvenience that a part of an image treated as a color or processed as a transparent color remains as a foreground color.
[0014]
Of course, setting the upper and lower limits individually for each of the three colors of R, G, and B in this way means that two values are determined for each of three colors per pixel, and six determinations are required for each. It becomes. Therefore, there is also a problem that the load of image processing increases when the resolution of the image is high.
[0015]
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing apparatus and an image processing method capable of specifying a color corresponding to a background more accurately and performing transparent processing of the image portion relatively easily.
[0016]
[Means for Solving the Problems]
According to the first aspect of the present invention, (a) one specific color is used as a first primary color for replacing the background, two other colors are used as a second primary color and a third primary color, respectively, and these three primary colors are further used. When the minimum value and the maximum value that can be taken are the same, the value of the first primary color is larger than the larger value of the values of the second and third primary colors for each pixel constituting the predetermined image. A first comparing means for comparing whether the value is greater than or equal to a predetermined first value smaller than (b); and (b) an absolute value of a difference between the second and third primary colors for each pixel constituting the predetermined image. (C) comparing whether the value of the first primary color is equal to or less than a predetermined positive second value, and (c) determining that the value of the first primary color is the value of the second and third primary colors. And the second comparing means determines the absolute value of the difference between the second and third primary colors. To and a transparent color processing means for replacing the pixel of the predetermined background image only pixels determined to be equal to or less than the second value as a transparent color in the image processing apparatus.
[0017]
That is, in the first aspect of the present invention, one of the three primary colors is used as the first primary color for replacing the background. Pixels displayed in the first primary color are processed as a background color. Actual pixels combine three primary colors. The first comparing means compares the values of these three primary colors. As a premise, the minimum value and the maximum value that can be taken for each primary color are the same. The first comparing means compares whether the value of the first primary color is larger than the larger value of the second and third primary colors by a first value or more. This is because the pixel that matches the background color or the pixel that is to be determined to match needs to be the same color as the first primary color or a color similar thereto. Therefore, the first condition requires that the value of the first primary color be larger than the value of the second primary color and the value of the third primary color by a certain degree or more. The second comparing means compares whether the absolute value of the difference between the second and third primary colors is equal to or less than a predetermined positive second value. This focuses on the fact that, if the three primary colors of the image corresponding to the background are different due to excessive or insufficient illumination, the values of the two colors other than the first primary color do not greatly open. This is the same principle that an achromatic color is obtained when the three primary colors have equal values. However, given that the illumination is not pure white light, the values of the second and third primary colors have a predetermined width.
[0018]
According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, foreground processing means for processing a pixel which is not processed by the transparent color processing means as a transparent color as a pixel constituting a foreground positioned in front of the background. are doing.
[0019]
That is, the second aspect of the present invention shows a case in which pixels that are not processed as a transparent color are not replaced with a background, and are used as they are as a foreground image located in front of the background.
[0020]
According to a third aspect of the present invention, in the image processing apparatus of the first aspect, the first primary color is blue, and the second primary color and the third primary color are different colors of red and green, respectively. It is characterized by:
[0021]
That is, the third aspect of the present invention shows a case where the first primary color is blue. Since blue is a color close to the color of a person's face, if it is extracted and processed as a transparent color, there is little possibility that a part of the face image will be replaced by the background. Of course, it is free to set the first primary color to a primary color other than blue.
[0022]
According to the fourth aspect of the present invention, (a) one specific color is used as a first primary color for replacing a background, and the other two colors are used as a second primary color and a third primary color, respectively, and further, these three primary colors are used. When the minimum value and the maximum value that can be taken are the same, the value of the first primary color is larger than the larger value of the values of the second and third primary colors for each pixel constituting the predetermined image. A first comparing step of comparing whether or not the value is greater than or equal to a predetermined first value smaller than (b) an absolute value of a difference between the second and third primary colors for each pixel constituting the predetermined image A second comparison step of comparing whether is less than or equal to a predetermined positive second value, and (c) the value of the first primary color is the value of the second and third primary colors in the first comparison step Is greater than or equal to the first value and the second and third values in the second comparing step. It is provided with the absolute value of the transparent color processing step of replacing a pixel of predetermined background image only pixels determined to be equal to or less than the second value as a transparent color differences in the color image processing method.
[0023]
That is, in the invention described in claim 4, one of the three primary colors is used as the first primary color for replacing the background. Pixels displayed in the first primary color are processed as a background color. Actual pixels combine three primary colors. In the first comparison step, the values of these three primary colors are compared. As a premise, the minimum value and the maximum value that can be taken for each primary color are the same. In the first step, a comparison is made as to whether the value of the first primary color is greater than the greater of the values of the second and third primary colors by a first value or more. This is because the pixel that matches the background color or the pixel that is to be determined to match needs to be the same color as the first primary color or a color similar thereto. Therefore, the first condition requires that the value of the first primary color be larger than the value of the second primary color and the value of the third primary color by a certain degree or more. In the second comparison step, it is determined whether or not the absolute value of the difference between the second and third primary colors is equal to or less than a predetermined positive second value. This focuses on the fact that, if the three primary colors of the image corresponding to the background are different due to excessive or insufficient illumination, the values of the two colors other than the first primary color do not greatly open. This is the same principle that an achromatic color is obtained when the three primary colors have equal values. However, given that the illumination is not pure white light, the values of the second and third primary colors have a predetermined width.
[0024]
According to a fifth aspect of the present invention, in the image processing method of the fourth aspect, a foreground processing step is provided in which a pixel not processed as a transparent color in the transparent color processing step is processed as a pixel constituting a foreground positioned in front of the background. are doing.
[0025]
That is, the invention according to claim 5 shows a case in which, in the image processing method according to claim 4, pixels that are not processed as a transparent color are not replaced with a background, but are used as they are as a foreground image located in front of the background. .
[0026]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 shows an outline of an image processing method according to an embodiment of the present invention. In this image processing method, a background color is transparently processed from a predetermined image. Here, the chromaki color processed as a transparent color can be arbitrarily selected from R (red), G (green), and B (blue). In this embodiment, The B color which is close to the complementary color relationship to the color is set to this. It is assumed that the R, G, and B colors are each represented in 256 levels from a value “0” to a value “255”. Here, the value “0” indicates a state where the color is not included, and the value “255” indicates a state where the color is the maximum value.
[0027]
First, image data of one unprocessed pixel in an image to be processed is input (step S11). Then, the respective values of R, G, and B in the image data are checked, and the value of B as the chroma color is determined by the larger of the values of R and G as the other colors. Is also determined to be greater than or equal to the first value (step S12). This is the first condition of the transparent processing.
[0028]
The reason why the first condition of the transparent processing is required will be described. FIG. 8 shows the most ideal case as a background. In FIG. 8, the values of the R and G colors are both “0” and the B color is the maximum value, so that the first condition of the transparent processing is satisfied. In FIG. 9, the B color shows the maximum value, but the R color and the G color also have a certain value “r” at the same time. However, since these values “r” are smaller than the maximum value “255”, it can be regarded as image data of a portion where the chromaki color cloth is wrinkled and becomes whitish as a reflection of illumination. it can. Such image data also needs to be transparently processed. In the present embodiment, the first value is a predetermined value smaller than a value obtained by subtracting the value “r” from the maximum value “255”. This is a value smaller than the value "b" in FIG.
[0029]
In the case of FIG. 12, the values of the R color and the G color are both “0”, but the B color is not the maximum value, and is slightly smaller than the value “b”. Here, it is assumed that the value “b” does not include an infinitely small range, but is larger than the value “r” of the other colors appearing by the reflection shown in FIG. The image data of FIG. 12 in such a state is, for example, a state in which the chromaki color cloth is wrinkled and becomes a shadow of illumination. In such a case, it is necessary to perform the transparent processing. In the case of the example of FIG. 12, the first condition of the transparent processing is satisfied.
[0030]
On the other hand, in the case of the image data of the image as shown in FIG. 10, although the values of the R color and the G color both have the value “r”, the B color is also lower than the maximum value. The value is “b”. Here, the image content is such that light irradiation and shadow generation occur simultaneously at one pixel position, and it is clear that the image content is not a target to be subjected to the transparent processing. Therefore, in order to exclude such a case, the first condition of the transparent processing is that the difference between the value of the B color and the value of the next largest color is not less than the first value. Therefore, for example, if the color B is slightly lower than the maximum value due to some situation at the time of reading an image, the larger of the values of the colors R and G is similarly larger than this decrease. , The first condition of the transparent processing is similarly satisfied.
[0031]
When the input pixel satisfies the first condition of the transparent processing shown in step S12 of FIG. 1 (Y), it is checked whether or not the second condition of the transparent processing is further satisfied. The second condition of the transparent processing is that the absolute value of the difference between the R color and the G color is equal to or less than the second value (step S13). This is because even if R and G colors, which are unrelated to the chroma color, appear in image data, they often occur due to non-uniform illumination, so that only one color appears as an extremely large value. Is based on the inconceivable reason. In FIG. 11, the color is blue, which is close to a gray color, and the second condition of the transparent processing is a condition for not performing such transparent processing on the image data.
[0032]
FIG. 2 illustrates the first condition and the second condition of the transparent processing described above. Looking at opening V 1 of the value of the larger of the B color and the other R color and G-color as black Maki color in the first condition of the transparency processing. We will be looking at the open V 2 of black color R except Maki color and G color at a second condition for this. The method of extracting the pixel to be subjected to the transparent processing is completely different from the above-described prior art expression (1).
[0033]
Returning to FIG. 1, the description will be continued. The transparent processing is not performed on the image data of the pixel determined not to satisfy the first or second condition of the transparent processing in step S12 or S13. That is, the pixel is processed as constituting the foreground (step S14). For example, a mask process for not performing the transparency process may be performed on the pixel.
[0034]
For a pixel that further satisfies the second condition of the transparency processing shown in step S13 (Y), the pixel is subjected to transparency processing (step S15). Also in this case, it is not necessary to perform the transparent processing at that time, and for example, a mask processing for performing the transparent processing may be performed. It is determined whether there is a pixel to be processed next (step S16). If there is a remaining pixel (Y), the process returns to step S11 to perform the same processing for the next pixel. After the process of step S14 is performed, the process similarly proceeds to step S16. If there are no remaining pixels to be processed finally in step S16 (N), the series of image processing described above ends (END).
[0035]
【Example】
Hereinafter, the present invention will be described in more detail with reference to examples.
[0036]
FIG. 3 shows an outline of the configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus 21 of the present embodiment has the same configuration as a normal personal computer or workstation, and includes a CPU (central processing unit) 22. The CPU 22 includes a program recording medium 24, a working memory 25, an image input unit 26, a converted image storage unit 27, and an image output unit 28 via a bus 23 such as a data bus.
[0037]
Here, the program recording medium 24 is a recording medium in which a series of image processing according to the present embodiment described later in detail is stored as a control program. As the recording medium, various data writable recording media such as a magnetic disk, an optical disk, a ROM (Read Only Memory) or a RAM (Random Access Memory), not shown, can be used. The working memory 25 is a memory area for temporarily storing various data temporarily required when executing the control program stored in the program recording medium 24. The image input unit 26 inputs an image to be subjected to the chroma processing. There are various image input modes. For example, image data may be input using an external storage medium such as a floppy disk or an optical disk, or may be connected to a communication network such as the Internet to obtain necessary image data. The image data may be obtained using a USB (Universal Serial Bus) or a dedicated cable. The converted image storage section 27 is a section for storing the converted image data, and can be constituted by various storage media such as a magnetic disk and a RAM. The image output unit 28 is a unit that outputs the image data stored in the converted image storage unit 27. The data may be output to the above-described recording medium, or may be output to a cable or a communication network.
[0038]
FIG. 4 shows a flow of image processing by the image processing apparatus of the present embodiment. The CPU 22 shown in FIG. 3 of the image processing device 21 inputs the image data of one pixel input from the image input unit 26 (Step S31). The image data for one pixel represents the three primary colors of R, G, and B in 256 gradations. In this embodiment, the B color is a color to be subjected to the chroma processing (transparency processing).
[0039]
The CPU 22 compares the R color value and the G color value in the input image data of one pixel (step S32). As a result of this the case towards the R color value is greater than the value of G color (Y), from the values of R color values values V 2 and B color values are subtracted G color from the R color value calculates a subtracted value V 1 (see FIG. 2) (step S33). This is when the value of R color is less than or equal to the value of G color against (step S32: N), G color values from the color value V 2 obtained by subtracting the value of R color B value Then, a value V 1 (see FIG. 2) obtained by subtracting the value of the G color from is calculated (step S34).
[0040]
Then, in the next step S35, it is determined whether or not both the first and second conditions of the above-described transparent processing are satisfied. First, it is confirmed greater than the first value MIN BR value V 1 is predetermined as a first condition transparent process. Greater if the value V 2 as a second condition transparent treatment is small is confirmed than the second value MAX RG a predetermined. If any one of the first and second conditions is not satisfied (step S35: N), the values of the three primary colors of R, G, and B as the image data of the one screen Is output as the foreground color as it is (step S36).
[0041]
On the other hand, when the image data of the pixel satisfies both the first and second conditions of the transparent processing at the same time (step S35: Y), this is replaced with the image data of the background pixel (step S37). ). That change in the value R BG image data of the background in the corresponding position for the R color, to change the value G BG image data of the background in the corresponding position for the G color, background corresponding position for B color Is changed to the value BBG of the image data. Then, the image data of the pixel after the change is output (step S36). Thereafter, it is checked whether or not there is a remaining pixel to be processed (step S38). If there is (Y), the process returns to step S31. When there are no more remaining pixels to be processed (step S38: N), a series of processing ends (end).
[0042]
In the present embodiment, the first value MIN BR used for the first condition of the transparent processing is set as a value larger than the second value MAX RG used for the second condition of the transparent processing. It is not limited.
[0043]
Further, in the embodiments and examples described above, the chroma color is B color, but the R color or G color may be designated as the chroma color. Naturally, the present invention can be similarly applied to other three primary color concepts such as cyan, magenta, and yellow.
[0044]
【The invention's effect】
As described above, according to the first and fourth aspects of the present invention, the first and second conditions are set in consideration of the situation where the illumination actually illuminating the cloth or the like to be replaced with the background color (transparent color) is close to white light. Is set, the transparent color is specified more accurately, and this enables the chroma synthesis of a high-quality image. In addition, two comparisons need to be performed for each pixel, and the comparison processing is simplified as compared with the related art, so that high-speed processing of an image can be performed, and the resolution can be increased accordingly. As a result, the edge of the background color (transparent color) is sharpened, so that the image quality can be improved in this sense.
[Brief description of the drawings]
FIG. 1 is a flowchart showing an outline of an image processing method according to an embodiment of the present invention.
FIG. 2 is an explanatory diagram showing a first condition and a second condition in the present invention.
FIG. 3 is a block diagram illustrating an outline of an image processing apparatus according to an embodiment of the present invention.
FIG. 4 is a flowchart showing a flow of image processing by the image processing apparatus of the present embodiment.
FIG. 5 is a plan view of an image obtained by placing a person in front of a blue background of a blue cloth.
FIG. 6 is a plan view showing an image of a mountain set as a background.
7 is a plan view of an image obtained by synthesizing both FIGS. 5 and 6. FIG.
FIG. 8 is a characteristic diagram showing respective values of R, G, and B colors when an image portion to be subjected to a transparent process is in an ideal illumination state.
FIG. 9 is a characteristic diagram showing respective values of R, G, and B colors in the first example in which reflection by illumination of an image portion to be subjected to a transparent process occurs.
FIG. 10 is a characteristic diagram illustrating respective values of R, G, and B colors in a second example in which a shadow due to illumination of an image portion to be subjected to a transparent process occurs.
FIG. 11 is a characteristic diagram illustrating values of R, G, and B colors in an example of an image that should not be subjected to the transparent processing.
FIG. 12 is a characteristic diagram of R, G, and B colors illustrating an example in which an image portion to be subjected to a transparent process is excluded from a transparent color depending on an illumination state.
[Explanation of symbols]
21 image processing device 22 CPU
23 bus such as data bus 24 program recording medium 25 working memory 26 image input unit 27 converted image storage unit 28 image output unit

Claims (5)

特定の1色を背景に置き換えるための第1の原色とし、それ以外の2色をそれぞれ第2の原色および第3の原色とし、更にこれら3つの原色の採り得る最小値および最大値が同一であるとするとき、所定の画像を構成する画素ごとに第1の原色の値が第2および第3の原色の値のうちの大きいものよりも前記最大値よりも小さな所定の第1の値以上大きいか否かを比較する第1の比較手段と、
前記所定の画像を構成する画素ごとに前記第2および第3の原色の差の絶対値が所定の正の第2の値以下であるか否かを比較する第2の比較手段と、
前記第1の比較手段が第1の原色の値が第2および第3の原色の値よりも第1の値以上大きいと判別し、かつ第2の比較手段が前記第2および第3の原色の差の絶対値が第2の値以下であると判別した画素のみを透明色として所定の背景画像の画素と置き換える透明色処理手段
とを具備することを特徴とする画像処理装置。
One specific color is used as a first primary color for replacing the background, the other two colors are used as a second primary color and a third primary color, respectively, and the minimum and maximum values that can be taken by these three primary colors are the same. When it is assumed that the value of the first primary color is larger than the larger of the values of the second and third primary colors for each of the pixels constituting the predetermined image, and is equal to or larger than the predetermined first value. First comparing means for comparing whether or not it is greater;
Second comparing means for comparing whether or not the absolute value of the difference between the second and third primary colors is equal to or less than a predetermined positive second value for each pixel constituting the predetermined image;
The first comparing means determines that the value of the first primary color is greater than the values of the second and third primary colors by a first value or more, and the second comparing means determines that the value of the second and third primary colors is larger. An image processing apparatus comprising: a transparent color processing unit that replaces only pixels determined to have an absolute value of a difference of not more than a second value with pixels of a predetermined background image as transparent colors.
前記透明色処理手段が透明色として処理しない画素について、前記背景の手前に位置する前景を構成する画素として処理する前景処理手段を具備することを特徴とする請求項1記載の画像処理装置。2. The image processing apparatus according to claim 1, further comprising foreground processing means for processing pixels which are not processed by the transparent color processing means as a transparent color as pixels constituting a foreground positioned in front of the background. 前記第1の原色は青色であり、第2の原色と第3の原色は赤色あるいは緑色のうちのそれぞれ異なった1色であることを特徴とする請求項1記載の画像処理装置。2. The image processing apparatus according to claim 1, wherein the first primary color is blue, and the second primary color and the third primary color are respectively different ones of red and green. 特定の1色を背景に置き換えるための第1の原色とし、それ以外の2色をそれぞれ第2の原色および第3の原色とし、更にこれら3つの原色の採り得る最小値および最大値が同一であるとするとき、所定の画像を構成する画素ごとに第1の原色の値が第2および第3の原色の値のうちの大きいものよりも前記最大値よりも小さな所定の第1の値以上大きいか否かを比較する第1の比較ステップと、
前記所定の画像を構成する画素ごとに前記第2および第3の原色の差の絶対値が所定の正の第2の値以下であるか否かを比較する第2の比較ステップと、
前記第1の比較ステップで第1の原色の値が第2および第3の原色の値よりも第1の値以上大きいと判別し、かつ第2の比較ステップで前記第2および第3の原色の差の絶対値が第2の値以下であると判別した画素のみを透明色として所定の背景画像の画素と置き換える透明色処理ステップ
とを具備することを特徴とする画像処理方法。
One specific color is used as a first primary color for replacing the background, the other two colors are used as a second primary color and a third primary color, respectively, and the minimum and maximum values that can be taken by these three primary colors are the same. When it is assumed that the value of the first primary color is larger than the larger of the values of the second and third primary colors for each of the pixels constituting the predetermined image, and is equal to or larger than the predetermined first value. A first comparing step of comparing whether it is greater or not;
A second comparing step of comparing whether or not the absolute value of the difference between the second and third primary colors is equal to or less than a predetermined positive second value for each pixel constituting the predetermined image;
In the first comparing step, it is determined that the value of the first primary color is larger than the values of the second and third primary colors by a first value or more, and in the second comparing step, the second and third primary colors are determined. A transparent color processing step of replacing only pixels determined as having an absolute value of the difference of not more than a second value with pixels of a predetermined background image as transparent colors.
前記透明色処理ステップで透明色として処理しない画素について、前記背景の手前に位置する前景を構成する画素として処理する前景処理ステップ
を具備することを特徴とする請求項4記載の画像処理方法。
5. The image processing method according to claim 4, further comprising a foreground processing step of processing pixels not processed as a transparent color in the transparent color processing step as pixels constituting a foreground positioned in front of the background.
JP2003141647A 2003-05-20 2003-05-20 Image processing apparatus and image processing method Expired - Fee Related JP3914895B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003141647A JP3914895B2 (en) 2003-05-20 2003-05-20 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003141647A JP3914895B2 (en) 2003-05-20 2003-05-20 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2004349785A true JP2004349785A (en) 2004-12-09
JP3914895B2 JP3914895B2 (en) 2007-05-16

Family

ID=33529949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003141647A Expired - Fee Related JP3914895B2 (en) 2003-05-20 2003-05-20 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3914895B2 (en)

Also Published As

Publication number Publication date
JP3914895B2 (en) 2007-05-16

Similar Documents

Publication Publication Date Title
US7027662B2 (en) Method and apparatus for the removal of flash artifacts
US6348953B1 (en) Device and process for producing a composite picture
US6608926B1 (en) Image processing method, image processing apparatus and recording medium
US7679786B2 (en) Color correction method
JP2000134486A (en) Image processing unit, image processing method and storage medium
US6262778B1 (en) Image processing system
JP2001186325A (en) Method and device for processing picture, recording medium and transmitting medium
WO1999017254A1 (en) Digital redeye removal
JP3171146B2 (en) Image processing device
US5487020A (en) Refinement of color images using reference colors
US6906826B1 (en) Medium on which image modifying program is recorded, image modifying apparatus and method
JP2010273077A (en) Image processing apparatus and method, and program-recorded storage medium
US20150339808A1 (en) Image processing apparatus, image processing method, program, and recording medium
US9754363B2 (en) Method and system for processing image content for enabling high dynamic range (UHD) output thereof and computer-readable medium comprising UHD content created using same
JPH11298736A (en) Image processing method, readable recording medium with image processing program recorded therein and image processor thereof
JPH11250227A (en) Method and device for correcting face area and record medium for recording face area correction program
US20080002881A1 (en) Image processor
JPH11146219A (en) Image processing device and method and medium recording image processing program
US20170213327A1 (en) Method and system for processing image content for enabling high dynamic range (uhd) output thereof and computer-readable program product comprising uhd content created using same
KR20070088108A (en) Apparatus and method for enhancing color device-adaptively
US8922580B2 (en) Method and system to modify a color lookup table
JP3914895B2 (en) Image processing apparatus and image processing method
Zamir et al. Perceptually-based gamut extension algorithm for emerging wide color gamut display and projection technologies
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP3709656B2 (en) Image processing device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060922

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061017

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070205

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100209

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110209

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120209

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120209

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130209

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130209

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140209

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees