JP4033006B2 - Image processing apparatus and method, and program - Google Patents

Image processing apparatus and method, and program Download PDF

Info

Publication number
JP4033006B2
JP4033006B2 JP2003067176A JP2003067176A JP4033006B2 JP 4033006 B2 JP4033006 B2 JP 4033006B2 JP 2003067176 A JP2003067176 A JP 2003067176A JP 2003067176 A JP2003067176 A JP 2003067176A JP 4033006 B2 JP4033006 B2 JP 4033006B2
Authority
JP
Japan
Prior art keywords
image
images
pixel value
transparency
subject
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.)
Expired - Fee Related
Application number
JP2003067176A
Other languages
Japanese (ja)
Other versions
JP2004282167A (en
Inventor
裕人 松岡
晃 小野澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2003067176A priority Critical patent/JP4033006B2/en
Publication of JP2004282167A publication Critical patent/JP2004282167A/en
Application granted granted Critical
Publication of JP4033006B2 publication Critical patent/JP4033006B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Studio Circuits (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、被写体が撮影された画像から被写体部分だけを切り出し、別の2次元の画像上に被写体を合成する画像処理方法及び画像処理装置に関するものである。
【0002】
【従来の技術】
撮影した被写体の画像を、全く別の背景画像上に合成する処理は、映画やテレビ等、また、被写体をあらゆる方向から撮影することにより3次元画像を得る場合等によく使われている。この処理では、撮影した被写体画像から背景の画像を除去するセグメント処理が必要である。
【0003】
一般的なセグメンテーション手法の一つに、クロマキー手法がある。これは、背景をある決められた単色にして撮影して、背景と同色の部分を切り取る手法である。しかしながら、このクロマキー手法では、撮影環境等により背景に色むらが生じたり、また、被写体に背景色に近い色が使われている場合、うまく切り出せない問題がある。
【0004】
また、被写体を置かない状態で、予め背景を撮影しておき、その画像と被写体が写っている画像とを比較して、抜き出す手法もある。この抜き出す手法では、背景が単色でなくても抜き出しが行えるメリットがあるが、クロマキー手法と同様、被写体の影等が背景に写った場合や、背景と同様な部分が物体にある場合には、うまく抜き出すことができない。
【0005】
また、特開2001−148021号公報(特許文献1)の手法では、背景を変えた複数の画像を用いることにより、上記セグメンテーション手法の問題を解決している。しかしながら、この手法でも、被写体の表面反射が強く背景が写り込む場合や、被写体が半透明で背景が透けて見える場合は、被写体に欠けが生じ、背景画像と合成した場合、被写体に不自然な欠けが生じるという問題が生じる。
【0006】
また、特開2001−143085号公報(特許文献2)では、白黒のストラップの背景を用いて、被写体表面の透明度を求める手法が提案されているが、この手法は被写体表面の透明度が均一である場合に限られている。
【0007】
その他、画像から被写体部分を切り出すことに関連する技術として特許文献3、非特許文献1に記載された技術がある。
【0008】
【特許文献1】
特開2001−148021号公報
【0009】
【特許文献2】
特開2001−143085号公報
【0010】
【特許文献3】
米国特許第6377269号公報
【0011】
【非特許文献1】
H. Matsuoka, T. Takeuchi, H. Kitazawa and A. Onozawa, “Representation of Pseudo Inter-reflection and Transparency by Considering Characteristics of Human Vision", Proceedings of Eurographics 2002, pp503-510.
【0012】
【発明が解決しようとする課題】
上述のように、従来のセグメンテーション手法では、被写体が半透明であったり、表面反射の強い物体では、被写体の切り出し画像に不自然に欠けが生じ、正確に、背景と被写体を切り分けることができず、その画像を、他の画像上に合成する場合、醜い画像となるという問題があった。
【0013】
本発明は、上記条件でも正確に被写体部分を抽出し、他の画像等と合成した場合に、半透明性や反射性を再現し、自然な画像を得ることを可能とし、また、被写体が動物体の場合にも適用できる画像処理方法とその装置を提供することを課題とする。
【0014】
【課題を解決するための手段】
上記の課題は、被写体の画像を別の画像に合成する画像処理装置であって、背景部分の画像に差が出るように異なる偏光条件で撮影された2枚の画像を入力する手段と、その2枚の画像を用いて被写体の透明度画像を求める手段と、その透明度画像を用いて、前記2枚の画像のうちの1枚の画像と背景画像とを合成する手段とを有し、前記被写体の透明度画像を求める手段は、前記2枚の画像を画像P1及び画像P2とし、画像P1上のある1点(x,y)の画素値をP1(x,y)、画像P2上のその点の画素値をP2(x,y)とし、その差の絶対値|P1(x,y)−P2(x,y)|の全画素における最大値をPPMAXとしたときに、前記透明度画像上の各画素の画素値PT(x,y)を、PT(x,y)=1−|(P1(x,y)−P2(x,y))|/PPMAXの式により求め、前記合成する手段は、前記透明度画像上の各画素の画素値である透明度に基づく比率で、前記2枚の画像のうちの1枚の画像と前記背景画像とを合成して合成画像を求めることを特徴とする画像処理装置により解決される
【0015】
本発明によれば、背景の異なる2枚の画像を入力とすることから、マスク画像として透明度画像を求めることができ、透明度画像を用いることにより半透明性や反射性を再現し、自然な画像を得ることが可能となる。また、偏光条件を異ならせることにより背景を異ならせるようにしたので、例えば、ビームスプリッタを用いることにより、背景の異なる画像を1度に撮影できる。従って、被写体が動物体の場合にも適用できる。
【0018】
前記2枚の画像は、偏光を発する背景部分を含む被写体を撮影した画像と、同じ背景部分と被写体を、その偏光を遮断する偏光フィルタを介して撮影した画像であるとすることができる。
【0019】
また、前記2枚の画像は、異なる偏光条件で撮影された3枚以上の画像うちの、背景部分の輝度の差が最大の2枚の画像とすることができる。これにより、合成画像を生成するのに最適な2枚の画像を容易に選択することができる。
【0020】
また、上記の課題は、被写体の画像を別の画像に合成する画像処理装置であって、被写体が無い状態でn台の撮影装置C1〜Cnにより異なる偏光条件で撮影を行ったn枚の画像PE1〜PEnと、被写体を置いてn台の撮影装置C1〜Cnで被写体が無い状態と同じ偏光条件で撮影を行ったn枚の画像P1〜Pnを入力する手段と、各画像の1点(x、y)における画像PEk(1≦k≦n)の画素値をPEk(x,y)、画像Pkの画素値をPk(x,y)とし、画素値PE1(x,y)〜PEn(x,y)のうちの全ての組み合わせの中で、画素値の差分が最大となる2枚の画像をPEa、PEbとし、これらに対応する画像P1〜Pnの中の画像PaとPbの画素値をPa(x,y)とPb(x,y)としたときに、1−|Pa(x,y)−Pb(x,y)|/|PEa(x,y)−PEb(x,y)|の式を用いて透明度画像の画素の画素値AP(x,y)を計算する処理を、全ての画素に対して行うことにより透明度画像を求める手段と、前記透明度画像上の各画素の画素値である透明度に基づく比率で、画像P1〜Pnのうちの1枚の画像と背景画像とを合成して合成画像を求める手段とを有することを特徴とする画像処理装置によっても解決される
【0021】
すなわち、本発明によれば、偏光が画像内で一様でない場合でも、画素毎に、背景の差が最大となる偏光条件の2枚の画像を選択して透明度画像を求めるので、正確な合成画像を求めることができる。
【0022】
また、上述した2枚の画像は、偏光を発生させる背景表示装置と、背景表示装置の前に置かれた被写体からの光を二つに分けるビームスプリッタと、ビームスプリッタの一方の出力光を撮影する第1の撮影装置と、ビームスプリッタの他方の出力光を撮影する第2の撮影装置と、ビームスプリッタと第1の撮影装置との間に備えられた偏光フィルタとを有する撮影システムを用いて取得することができる。
【0023】
また、上記のn枚の画像は、偏光を発生させる背景表示装置と、背景表示装置の前に置かれた被写体からの光を3つ以上に分割するビームスプリッタと、ビームスプリッタからの各出力光を撮影する複数の撮影装置と、各撮影装置とビームスプリッタ間に設けられたそれぞれ偏光方向が異なる偏光フィルタとを有する撮影システムを用いて取得することができる。
【0024】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態について説明する。
【0025】
図1に、本発明の実施の形態における画像処理の対象となる複数の画像を撮影するための撮影システムの構成図を示す。図1に示すように、この撮影システムは、発光する背景表示装置1、背景表示装置1からの光を偏光にする偏光フィルタA2、被写体3及び背景表示装置1の発光面を撮影する撮影装置A4と撮影装置B5、ビームスプリッタ6、撮影装置A4とビームスプリッタ6との間に挿入される偏光フィルタB7を有している。また、撮影装置A4、撮影装置B5により撮影された画像を、本発明の処理手順に従って処理する画像処理装置8を有している。なお、背景表示装置1と偏光フィルタA2とを合わせて背景表示装置とすることもできる。
【0026】
ビームスプリッタ6は、光線のある部分は反射し、他の部分は透過する反射鏡あるいは光学素子である。また、偏光フィルタA2と偏光フィルタB7の偏光方向は直交している。
【0027】
図2は図1の撮影システムを真上から見た場合の図であり、矢印が光の進行方向を示している。
【0028】
背景表示装置1から出力した光は偏光フィルタA2を通して偏光となる。背景表示装置1からの偏光及び被写体3からの光は、ビームスプリッタ6により二分され、撮影装置A4、撮影装置B5方向に同一の光が出される。そして、撮影装置A4には二分された光のうちの一つがそのまま入射し、撮影装置B5には、二分された光のうちの一つが偏光フィルタB7を介して入射する。
【0029】
このように、撮影装置A4にはビームスプリッタ6から直接光が入射するので、撮影装置A4により撮影された画像は、図3(a)に示すように背景が明るい画像となる。一方、撮影装置B5には、偏光フィルタB7を介してビームスプリッタ6からの光が入射する。すなわち、背景表示装置1からの光は、偏光フィルタA2と偏光フィルタB7を介して撮影装置B5に達することになる。ここで、偏光フィルタA2とB7の偏光方向が直交しているので、背景表示装置1からの光は偏光フィルタB7により遮断され、撮影装置B5により撮影された画像は、図3(b)に示すように背景が暗い画像となる。
【0030】
なお、背景表示装置1と同様の光を発生させるテーブルを用い、その表面に偏光フィルタA2と同じ偏光方向の偏光フィルタを設け、被写体3をそのテーブルの上に置いて撮影装置A4及び撮影装置B5を用いて撮影を行うようにしてもよい。
【0031】
上記背景表示装置1、及び上記テーブルを構成するものとしては、例えば、ELパネル、液晶パネル、液晶シャッター、投影型スクリーン、プラズマディスプレイ、CRTなどを使用することができる。
【0032】
上記のようにして得られた、背景の明るい画像の画素値(例えば、輝度値)と背景の暗い画像の画素値との差分をとり、その差分が予め定めた閾値より小さい部分を被写体の部分とし、例えば、被写体の部分を1、背景の部分を0として2値化を行えば、図3(c)に示すような、被写体部分を示す2値マスク画像を生成することができる。そして、被写体部分を示す2値マスク画像を用いることにより、被写体画像と別の背景画像との合成を行うことができる。
【0033】
ただし、2値化されたマスク画像では、ガラスのような透明な物や反射を表現することができない。そこで、2値化されたマスク画像ではなく、多値からなるマスク画像である透明度画像を生成し、その透明度画像を用いて、被写体と別の背景画像との合成を行うこともできる。以下、透明度画像を用いて、被写体と別の背景画像との合成を行う場合について説明する。なお、図4に記載の画像処置装置は、透明度画像を用いる方法の他、上記のように2値マスク画像を用いる方法にも適用できる。
【0034】
図4に、本発明の実施の形態における画像処理装置8の構成を示す。画像処理装置8は画像入力部11、画像処理部12、画像出力部13を有している。また、画像処理装置8には必要に応じて撮影装置A4、撮影装置B5と画像表示装置20が接続される。また、図示していない格納装置を有しており、合成の際に使用する背景画像などを格納する。なお、合成の際に使用する背景画像は、必要に応じて画像入力部11から入力してもよい。
【0035】
画像処理装置8は例えば画像入出力インタフェースを有するコンピュータを用いて構成することができ、その場合、画像処理部12はコンピュータが有するCPU、記憶装置、及び本発明の方法における各ステップを実行する処理を行うプログラムなどにより実現される。また、そのプログラムはCD−ROMなどの記録媒体に格納することができる。
【0036】
画像処理装置8は撮影装置A4により撮影した画像と撮影装置B5により撮影した画像とを入力し、画像処理部12で画像処理を施し、画像出力部13から被写体と背景画像とを合成した合成画像を出力する。なお、本明細書における“画像”とは、処理の対象となる画像データの意味を含む。
【0037】
図5に、画像処理装置における処理のフローチャートを示す。
【0038】
まず、図1、2に示した撮影システムで撮影された2枚の画像を画像入力部11から入力する(ステップS1)。次に、2枚の画像を用いて透明度画像を生成する(ステップS2)。そして、透明度画像を用いて、撮影システムで撮影した画像のうちの1枚と別の背景画像とを合成した合成画像を生成する(ステップS3)。最後に、生成した合成画像を出力する(ステップS4)。ステップS2とS3が上記の画像処理に対応する。なお、2値マスク画像を用いる場合には、被写体の2値マスク画像を求めて、当該2値マスク画像を用いて、撮影画像と背景とを合成する処理が上記の画像処理に対応する。
【0039】
上記の透明度画像は次のような計算を行うことにより生成する。
【0040】
撮影装置A4により撮影された画像を画像Aとし、撮影装置B5により撮影された画像を画像Bとする。画像A、B各々の横の画素数をw、縦の画素数をhとし、画像A及び画像Bの対応する点(x,y)(0≦x<w,0≦y<h)における画像Aの画素値(本実施の形態では輝度値)をP1(x,y)、画像Bの画素値をP2(x,y)とする。そして、画像A及び画像Bの対応する全画素でP1(x,y)−P2(x,y)の値の絶対値が最大となるときその絶対値(PPMAXとする)を求める。
【0041】
そして、透明を0、不透明を1とし、透明度を0から1の実数で表すとき、透明度画像上の1点PT(x,y)の値を、
1−|(P1(x,y)−P2(x,y))/PPMAX|
の式により求める。すなわち、P1(x,y)とP2(x,y)の違いが大きいほどPT(x,y)の値は0に近づき、その部分に対応する被写体は透明に近いことがわかる。また、P1(x,y)とP2(x,y)の違いが小さいほどPT(x,y)の値は1に近づき、その部分に対応する被写体は不透明に近いことがわかる。そして、画像上の全ての画素について上記式で計算を行うことにより、透明度画像を求めることができる。求めた透明度画像の例を図6(a)に示す。
【0042】
図5のフローチャートにおけるステップS3の合成画像は、透明度の比率でブレンディンクを行う一般的な式である、
PS(x,y)=PT(x,y)×PC(x,y)+(1−PT(x,y))×PZ(x,y)
の式を用いることにより、計算することができる。ここで、PC(x,y)は、画像P1又はP2の色彩画素値を示し、PZ(x,y)は背景画像の画素値を示す。
【0043】
上記の式を用いて、図6(b)に示す背景画像と、撮影装置A4の撮影画像である図3(a)に示す画像とを、透明度画像図6(a)を用いて合成した例を図6(c)に示す。図中のガラスコップの透明感が表現されていることが分る。
【0044】
上記の実施の形態では、撮影装置の手前に配置する偏光フィルタの有無で背景の輝度が異なる画像の取得している。しかし、偏光フィルタはランダム偏光も50%減衰させるので、撮影装置A4、B5により撮影された2枚の撮影画像に写っている被写体の輝度も異なることになり、正確な合成画像を得られない場合が生じ得る。
【0045】
そこで、ビームスプリッタ6と撮影装置A4との間に偏光フィルタCを付加し、偏光フィルタCの偏光方向を偏光フィルタB7と直交させることにより、2画像間での被写体の輝度の変化を抑えることができる。
【0046】
また、上記手法では偏光フィルタA2と偏光フィルタB7の偏光方向を直交させる必要がある。しかし、背景としてのテーブルに回転台などを用いることにより偏光方向が一様に定まらない場合には、背景がうまく除去できない場合がある。
【0047】
そこで、このような場合には、背景及び被写体からの光を3以上に分光することができるビームスプリッタを用い、それぞれの光を分光の数と同じ台数の撮影装置で撮影する。このとき、各撮影装置とビームスプリッタとの間には、それぞれ異なる偏光方向の偏光フィルタを配置する。そして、複数の撮影装置で撮影された複数画像の中から、背景部分の輝度差が最大となる2枚の画像を選び、その2枚の画像に対してこれまでに説明した方法で2値マスク画像や透明度画像を求める処理を行えばよい。
【0048】
また、どの2台の撮影装置から撮影された2枚の画像を選択するかを、画像の画素毎に行うことにより、背景からの光の偏光方向が様々であっても、正確に処理することができる。
【0049】
この場合、ある1つの画素に対して、被写体が無い状態で撮影した複数の画像から、どの2台の撮影装置から撮影した2枚の画像を選ぶかを判断し、その2枚の画像に対応する被写体を置いて撮影した2枚の画像を用いて、背景か被写体かの判断、もしくは透明度画像の計算を行う。この処理を全ての画素に対して行う。
【0050】
より詳細には、図4に示す画像処理装置8に、被写体が無い状態でn台の撮影装置C1〜Cnで撮影したn枚の画像PE1〜PEnと、被写体を置いてn台の撮影装置C1〜Cnで撮影したn枚の画像P1〜Pnを入力する。そして、これら画像の横の画素数をw、縦の画素数をhとし、各画像の1点(x、y)(0≦x<w、0≦y<h)における画像PEk(1≦k≦n)の画素値(輝度値)をPEk(x, y)、画像Pkの画素値をPk(x, y)とし、画素値PE1(x,y)〜PEn(x,y)のうちの全ての組み合わせの中で、その画素値の差分が最大となる2枚の画像をPEa、PEbとすると、これらに対応する画像P1〜Pnの中の画像PaとPbの画素値Pa(x,y)と画素値Pb(x,y)の差が閾値より少なければ、その部分を被写体の部分とする処理を行う。この処理をすべての画素に対して行い、2値マスク画像を作成し、2値マスク画像を用いて被写体部分と、別の背景との合成画像を求めて出力する。
【0051】
透明度画像を計算する場合には、上記の処理において、画像PaとPbを選択した後に、透明度画像の画素値をAP(x,y)として、AP(x,y)=1−|Pa(x,y)−Pb(x,y)|/|PEa(x,y)−PEb(x,y)|により透明度画像の画素値を計算する。上記の処理を全ての画素に対して行い、透明度画像を求め、上述したブレンディングの式を用いて被写体と別の背景との合成を行い、合成画像を出力する。
【0052】
なお、上記の実施の形態のように偏光フィルタを用いて背景の異なる複数枚の画像を得る方法の他に、偏光フィルタを用いないで、背景を替えて異なる複数の画像を撮影する方法も考えられる。しかし、この手法では、背景が異なる被写体が同じ位置で写った2枚の画像が必要であり、背景を変えて2枚撮影する必要がある。このため、人や動物など動く被写体は、背景を変えている間に被写体の位置や形が変わるため、正確な2値マスク画像や透明度画像を得ることができない。従って、この方法では被写体は静止物に限られる。
【0053】
一方、本実施の形態で説明したような偏光フィルタを用いる方法では、背景の異なる複数枚の画像を1回の撮影で得ることが可能になるので、被写体は静止物に限られることはなく、動物体でもよい。
【0054】
なお、本発明は、上記の実施例に限定されることなく、特許請求の範囲内において、種々変更・応用が可能である。
【0055】
【発明の効果】
以上述べたように、本発明を用いることにより、被写体が動物体でかつ半透明または表面反射の強い物体でも、被写体の切出し画像に不自然に欠けが生じたりすることがなく、正確に、背景と被写体を切り分けることができ、他の画像等と合成した場合に、半透明性や反射性を再現し、自然な画像を得ることができる。
【図面の簡単な説明】
【図1】本発明の実施の形態における撮影システムの構成図である。
【図2】図1の撮影システムを真上から見た図である。
【図3】 (a)は撮影装置A4により撮影された画像例を示し、(b)は撮影装置B5により撮影された画像例を示し、(c)は被写体部分を示す2値マスク画像の例を示す。
【図4】本発明の実施の形態における画像処理装置の構成を示す図である。
【図5】本発明の実施の形態における画像処理装置における処理のフローチャートである。
【図6】 (a)は透明度画像の例を示し、(b)は背景画像の例を示し、(c)は合成画像の例を示す。
【符号の説明】
1 背景表示装置
2 偏光フィルタA
3 被写体
4 撮影装置A
5 撮影装置B
6 ビームスプリッタ
7 偏光フィルタB
8 画像処理装置
11 画像入力部
12 画像処理部
13 画像出力部
20 画像表示装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and an image processing apparatus for cutting out only a subject portion from an image of a subject and synthesizing the subject on another two-dimensional image.
[0002]
[Prior art]
The process of synthesizing a photographed subject image on a completely different background image is often used when a three-dimensional image is obtained by photographing a subject from any direction, such as a movie or a television. In this process, a segment process for removing the background image from the photographed subject image is necessary.
[0003]
One common segmentation technique is the chroma key technique. This is a technique in which the background is taken with a certain single color and a portion having the same color as the background is cut out. However, with this chroma key method, there are problems that color unevenness occurs in the background depending on the shooting environment or the like, and when a color close to the background color is used for the subject, it cannot be cut out well.
[0004]
In addition, there is a technique in which a background is photographed in advance without placing a subject, and the image is extracted by comparing the image with the subject. This extraction method has the merit that it can be extracted even if the background is not a single color, but like the chroma key method, when the subject's shadow etc. is reflected in the background, or when the object has the same part as the background, I can't get it out.
[0005]
Moreover, in the technique of Unexamined-Japanese-Patent No. 2001-148021 (patent document 1), the problem of the said segmentation technique is solved by using the several image from which the background was changed. However, even with this method, if the subject's surface reflection is strong and the background is reflected, or if the subject is translucent and the background is seen through, the subject will be chipped. The problem of chipping arises.
[0006]
Japanese Patent Laid-Open No. 2001-143085 (Patent Document 2) proposes a method for obtaining the transparency of the subject surface using the background of the black and white strap, but this method has a uniform transparency of the subject surface. Limited to cases.
[0007]
In addition, there are techniques described in Patent Document 3 and Non-Patent Document 1 as techniques related to extracting a subject portion from an image.
[0008]
[Patent Document 1]
Japanese Patent Laid-Open No. 2001-148021
[Patent Document 2]
Japanese Patent Laid-Open No. 2001-143085
[Patent Document 3]
US Pat. No. 6,377,269 [0011]
[Non-Patent Document 1]
H. Matsuoka, T. Takeuchi, H. Kitazawa and A. Onozawa, “Representation of Pseudo Inter-reflection and Transparency by Considering Characteristics of Human Vision”, Proceedings of Eurographics 2002, pp503-510.
[0012]
[Problems to be solved by the invention]
As described above, with the conventional segmentation method, the subject is not transparent when the subject is translucent or has a strong surface reflection, and the background and the subject cannot be accurately separated. When the image is combined with another image, there is a problem that the image becomes an ugly image.
[0013]
The present invention makes it possible to accurately extract a subject portion even under the above-described conditions, and to reproduce a translucency and reflectivity when combined with another image or the like to obtain a natural image. It is an object of the present invention to provide an image processing method and apparatus that can be applied to a body.
[0014]
[Means for Solving the Problems]
The above-described problem is an image processing apparatus that synthesizes an image of a subject with another image, a means for inputting two images taken under different polarization conditions so that a difference occurs in the background image, and its It means for determining a transparency image of a subject using two images, using the transparency image, and means for combining the one image and the background image of the two images, the subject Means for obtaining the transparency images of the two images as images P1 and P2, the pixel value of one point (x, y) on the image P1 is P1 (x, y), and that point on the image P2 Is the pixel value of P2 (x, y), and the absolute value of the difference | P1 (x, y) −P2 (x, y) | The pixel value PT (x, y) of each pixel is expressed as PT (x, y) = 1− | (P1 (x, y -P2 (x, y)) | / PPMAX, and the means for combining is one of the two images at a ratio based on transparency which is a pixel value of each pixel on the transparency image. This is solved by an image processing apparatus characterized in that a synthesized image is obtained by synthesizing the image and the background image .
[0015]
According to the present invention, since two images with different backgrounds are input, a transparency image can be obtained as a mask image. By using the transparency image, translucency and reflectivity are reproduced, and a natural image is obtained. Can be obtained. In addition, since the background is made different by changing the polarization condition, for example, by using a beam splitter, images with different backgrounds can be taken at a time. Therefore, the present invention can also be applied when the subject is a moving object.
[0018]
The two images may be an image obtained by photographing a subject including a background portion that emits polarized light, and an image obtained by photographing the same background portion and the subject through a polarization filter that blocks the polarization.
[0019]
The two images may be two images having a maximum difference in luminance of the background portion among three or more images taken under different polarization conditions. This makes it possible to easily select two images that are optimal for generating a composite image.
[0020]
In addition, the above problem is an image processing apparatus that synthesizes an image of a subject with another image, and n images captured under different polarization conditions by n imaging devices C1 to Cn in the absence of the subject. PE1 to PEn, means for inputting n images P1 to Pn photographed under the same polarization condition as when no subject is present with n photographing devices C1 to Cn, and one point ( The pixel value of the image PEk (1 ≦ k ≦ n) in x, y) is PEk (x, y), the pixel value of the image Pk is Pk (x, y), and the pixel values PE1 (x, y) to PEn ( Among all the combinations of x, y), the two images having the maximum difference in pixel values are designated as PEa and PEb, and the pixel values of the images Pa and Pb in the images P1 to Pn corresponding to these images. Is Pa (x, y) and Pb (x, y), 1− | Pa (x y) -Pb (x, y) | / | PEa (x, y) -PEb (x, y) | of the pixel value AP (x of each pixel of the transparency image using the equation, the process of calculating y) , means for determining a transparency image by performing for every pixel, a ratio based on a transparency which is the pixel value of each pixel on the transparency image, and one image and the background image among the image P1~Pn It is also solved by an image processing apparatus characterized by having means for obtaining a synthesized image by synthesizing.
[0021]
That is, according to the present invention, even if the polarization is not uniform in the image, the transparency image is obtained by selecting two images with the polarization condition that maximizes the background difference for each pixel, so that accurate synthesis is possible. An image can be obtained.
[0022]
The two images described above are taken from a background display device that generates polarized light, a beam splitter that divides light from a subject placed in front of the background display device into two, and one output light of the beam splitter. An imaging system having a first imaging device that performs imaging, a second imaging device that images the other output light of the beam splitter, and a polarization filter provided between the beam splitter and the first imaging device. Can be acquired.
[0023]
The n images include a background display device that generates polarized light, a beam splitter that divides light from a subject placed in front of the background display device into three or more, and each output light from the beam splitter. Can be obtained using an imaging system having a plurality of imaging devices that capture the image and a polarizing filter provided between each imaging device and the beam splitter and having different polarization directions.
[0024]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
[0025]
FIG. 1 shows a configuration diagram of a photographing system for photographing a plurality of images to be subjected to image processing in the embodiment of the present invention. As shown in FIG. 1, this photographing system includes a background display device 1 that emits light, a polarizing filter A2 that polarizes light from the background display device 1, a subject 3 and a photographing device A4 that photographs the light emitting surface of the background display device 1. And an imaging device B5, a beam splitter 6, and a polarizing filter B7 inserted between the imaging device A4 and the beam splitter 6. In addition, the image processing apparatus 8 has an image processing apparatus 8 that processes images captured by the image capturing apparatus A4 and the image capturing apparatus B5 according to the processing procedure of the present invention. The background display device 1 and the polarizing filter A2 can be combined to form a background display device.
[0026]
The beam splitter 6 is a reflecting mirror or an optical element that reflects a part of a light beam and transmits the other part. The polarization directions of the polarizing filter A2 and the polarizing filter B7 are orthogonal to each other.
[0027]
FIG. 2 is a view of the photographing system of FIG. 1 as viewed from directly above, and an arrow indicates a traveling direction of light.
[0028]
The light output from the background display device 1 is polarized through the polarizing filter A2. The polarized light from the background display device 1 and the light from the subject 3 are divided into two by the beam splitter 6, and the same light is emitted in the direction of the photographing devices A4 and B5. Then, one of the bisected lights is directly incident on the photographing apparatus A4, and one of the bisected lights is incident on the photographing apparatus B5 via the polarizing filter B7.
[0029]
As described above, since light is directly incident on the photographing apparatus A4 from the beam splitter 6, the image photographed by the photographing apparatus A4 is an image with a bright background as shown in FIG. On the other hand, the light from the beam splitter 6 enters the imaging device B5 via the polarizing filter B7. That is, the light from the background display device 1 reaches the photographing device B5 via the polarizing filter A2 and the polarizing filter B7. Here, since the polarization directions of the polarizing filters A2 and B7 are orthogonal to each other, the light from the background display device 1 is blocked by the polarizing filter B7, and an image photographed by the photographing device B5 is shown in FIG. As a result, the background becomes dark.
[0030]
Note that a table that generates light similar to that of the background display device 1 is used, a polarizing filter having the same polarization direction as the polarizing filter A2 is provided on the surface thereof, and the subject 3 is placed on the table, and the photographing device A4 and the photographing device B5. You may make it image | photograph using.
[0031]
For example, an EL panel, a liquid crystal panel, a liquid crystal shutter, a projection screen, a plasma display, or a CRT can be used as the background display device 1 and the table.
[0032]
The difference between the pixel value (for example, the luminance value) of the bright background image and the pixel value of the dark background image obtained as described above is taken, and the portion where the difference is smaller than a predetermined threshold is the portion of the subject. For example, if binarization is performed with the subject portion set to 1 and the background portion set to 0, a binary mask image showing the subject portion as shown in FIG. 3C can be generated. Then, by using the binary mask image indicating the subject portion, the subject image and another background image can be synthesized.
[0033]
However, a binary mask image cannot express a transparent object such as glass or reflection. Therefore, it is also possible to generate a transparency image that is a multi-value mask image instead of a binarized mask image, and to synthesize the subject and another background image using the transparency image. Hereinafter, a case where a subject and another background image are combined using a transparency image will be described. Note that the image processing apparatus shown in FIG. 4 can be applied to a method using a binary mask image as described above, in addition to a method using a transparency image.
[0034]
FIG. 4 shows the configuration of the image processing apparatus 8 in the embodiment of the present invention. The image processing apparatus 8 includes an image input unit 11, an image processing unit 12, and an image output unit 13. Further, the image processing device 8 is connected to a photographing device A4, a photographing device B5, and an image display device 20 as necessary. In addition, it has a storage device (not shown), and stores a background image and the like used for the composition. Note that the background image used in the synthesis may be input from the image input unit 11 as necessary.
[0035]
The image processing apparatus 8 can be configured using, for example, a computer having an image input / output interface. In this case, the image processing unit 12 is a CPU included in the computer, a storage device, and a process for executing each step in the method of the present invention. It is realized by a program that performs The program can be stored in a recording medium such as a CD-ROM.
[0036]
The image processing device 8 inputs an image photographed by the photographing device A4 and an image photographed by the photographing device B5, performs image processing by the image processing unit 12, and combines the subject and the background image from the image output unit 13. Is output. Note that “image” in this specification includes the meaning of image data to be processed.
[0037]
FIG. 5 shows a flowchart of processing in the image processing apparatus.
[0038]
First, two images photographed by the photographing system shown in FIGS. 1 and 2 are input from the image input unit 11 (step S1). Next, a transparency image is generated using two images (step S2). Then, using the transparency image, a synthesized image is generated by synthesizing one of the images photographed by the photographing system and another background image (step S3). Finally, the generated composite image is output (step S4). Steps S2 and S3 correspond to the image processing described above. When a binary mask image is used, a process of obtaining a binary mask image of a subject and using the binary mask image to synthesize a captured image and a background corresponds to the image processing described above.
[0039]
The transparency image is generated by performing the following calculation.
[0040]
An image photographed by the photographing apparatus A4 is referred to as an image A, and an image photographed by the photographing apparatus B5 is referred to as an image B. An image at a corresponding point (x, y) (0 ≦ x <w, 0 ≦ y <h) of the images A and B, where w is the number of horizontal pixels of the images A and B, and h is the number of vertical pixels. The pixel value of A (luminance value in this embodiment) is P1 (x, y), and the pixel value of image B is P2 (x, y). Then, when the absolute value of the value of P1 (x, y) −P2 (x, y) is the maximum in all the corresponding pixels of the image A and the image B, the absolute value (referred to as PPMAX) is obtained.
[0041]
Then, when transparency is 0, opacity is 1, and transparency is represented by a real number from 0 to 1, the value of one point PT (x, y) on the transparency image is
1− | (P1 (x, y) −P2 (x, y)) / PPMAX |
It is calculated by the following formula. That is, it can be seen that the larger the difference between P1 (x, y) and P2 (x, y), the closer the value of PT (x, y) is to 0, and the subject corresponding to that part is nearly transparent. It can also be seen that the smaller the difference between P1 (x, y) and P2 (x, y), the closer the value of PT (x, y) is to 1, and the subject corresponding to that part is nearly opaque. Then, a transparency image can be obtained by performing the calculation using the above formula for all the pixels on the image. An example of the obtained transparency image is shown in FIG.
[0042]
The composite image in step S3 in the flowchart of FIG. 5 is a general formula for blending with a transparency ratio.
PS (x, y) = PT (x, y) × PC (x, y) + (1−PT (x, y)) × PZ (x, y)
Can be calculated by using the following equation. Here, PC (x, y) represents the color pixel value of the image P1 or P2, and PZ (x, y) represents the pixel value of the background image.
[0043]
An example in which the background image shown in FIG. 6 (b) and the image shown in FIG. 3 (a), which is a photographed image of the photographing apparatus A4, are synthesized by using the above-described formula, using the transparency image FIG. 6 (a). Is shown in FIG. It can be seen that the transparency of the glass cup in the figure is expressed.
[0044]
In the above-described embodiment, images with different background brightness are obtained depending on the presence or absence of a polarizing filter arranged in front of the photographing apparatus. However, since the polarization filter attenuates random polarization by 50%, the brightness of the subject in the two captured images taken by the photographing apparatuses A4 and B5 is different, and an accurate composite image cannot be obtained. Can occur.
[0045]
Therefore, by adding a polarizing filter C between the beam splitter 6 and the photographing apparatus A4 and making the polarization direction of the polarizing filter C orthogonal to the polarizing filter B7, it is possible to suppress the change in the luminance of the subject between the two images. it can.
[0046]
Moreover, in the said method, it is necessary to make the polarization direction of polarizing filter A2 and polarizing filter B7 orthogonal. However, if the polarization direction is not uniformly determined by using a turntable or the like for the table as the background, the background may not be removed well.
[0047]
Therefore, in such a case, a beam splitter capable of splitting light from the background and the subject into three or more is used, and each light is photographed by the same number of photographing devices as the number of the spectra. At this time, polarizing filters having different polarization directions are arranged between the imaging devices and the beam splitter. Then, two images having the maximum luminance difference in the background portion are selected from a plurality of images photographed by a plurality of photographing devices, and a binary mask is applied to the two images by the method described above. What is necessary is just to perform the process which calculates | requires an image and a transparency image.
[0048]
In addition, it is possible to accurately process even when the polarization direction of light from the background is various by selecting for each pixel of the image which two images taken from which two photographing devices are to be selected. Can do.
[0049]
In this case, for a certain pixel, it is determined which two images taken from which two photographing devices are to be selected from a plurality of images taken without a subject, and the two images are supported. Using two images taken with the subject to be photographed, it is determined whether the subject is the background or the subject, or a transparency image is calculated. This process is performed for all pixels.
[0050]
More specifically, the image processing apparatus 8 shown in FIG. 4 includes n images PE1 to PEn photographed by n photographing devices C1 to Cn in a state where there is no subject, and n photographing devices C1 placed with the subject. Input n images P1 to Pn photographed at ~ Cn. The number of horizontal pixels of these images is w, the number of vertical pixels is h, and the image PEk (1 ≦ k) at one point (x, y) (0 ≦ x <w, 0 ≦ y <h) of each image. ≦ n) is assumed to be PEk (x, y), the pixel value of the image Pk is Pk (x, y), and pixel values PE1 (x, y) to PEn (x, y) If two images having the largest difference in pixel value among all the combinations are defined as PEa and PEb, the pixel values Pa (x, y) of the images Pa and Pb in the images P1 to Pn corresponding to these images. ) And the pixel value Pb (x, y) are less than the threshold value, the process is performed for that portion as the subject portion. This process is performed for all the pixels, a binary mask image is created, and a composite image of the subject portion and another background is obtained and output using the binary mask image.
[0051]
When calculating the transparency image, in the above processing, after selecting the images Pa and Pb, the pixel value of the transparency image is AP (x, y), and AP (x, y) = 1− | Pa (x , Y) −Pb (x, y) | / | PEa (x, y) −PEb (x, y) | The above processing is performed on all the pixels, a transparency image is obtained, the subject is combined with another background using the blending formula described above, and a composite image is output.
[0052]
In addition to the method of obtaining a plurality of images with different backgrounds using a polarizing filter as in the above embodiment, a method of taking a plurality of images with different backgrounds without using a polarizing filter is also considered. It is done. However, this method requires two images in which subjects with different backgrounds are captured at the same position, and it is necessary to shoot two images with different backgrounds. For this reason, moving subjects such as people and animals change the position and shape of the subject while changing the background, and thus an accurate binary mask image and transparency image cannot be obtained. Therefore, in this method, the subject is limited to a stationary object.
[0053]
On the other hand, in the method using the polarization filter as described in the present embodiment, it is possible to obtain a plurality of images with different backgrounds by one shooting, so the subject is not limited to a stationary object, It may be an animal body.
[0054]
The present invention is not limited to the above-described embodiments, and various modifications and applications are possible within the scope of the claims.
[0055]
【The invention's effect】
As described above, by using the present invention, even if the subject is a moving object and is semitransparent or has a strong surface reflection, the clipped image of the subject is not unnaturally chipped, and the background accurately And the subject can be separated, and when combined with other images, translucency and reflectivity can be reproduced and a natural image can be obtained.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a photographing system according to an embodiment of the present invention.
FIG. 2 is a view of the photographing system of FIG. 1 as viewed from directly above.
3A shows an example of an image taken by an imaging device A4, FIG. 3B shows an example of an image taken by an imaging device B5, and FIG. 3C shows an example of a binary mask image showing a subject portion. Indicates.
FIG. 4 is a diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention.
FIG. 5 is a flowchart of processing in the image processing apparatus according to the embodiment of the present invention.
6A shows an example of a transparency image, FIG. 6B shows an example of a background image, and FIG. 6C shows an example of a composite image.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Background display apparatus 2 Polarizing filter A
3 Subject 4 Imaging device A
5 Shooting device B
6 Beam splitter 7 Polarizing filter B
8 Image Processing Device 11 Image Input Unit 12 Image Processing Unit 13 Image Output Unit 20 Image Display Device

Claims (20)

被写体の画像を別の画像に合成する画像処理装置であって、
背景部分の画像に差が出るように異なる偏光条件で撮影された2枚の画像を入力する手段と、
その2枚の画像を用いて被写体の透明度画像を求める手段と、
その透明度画像を用いて、前記2枚の画像のうちの1枚の画像と背景画像とを合成する手段とを有し、
前記被写体の透明度画像を求める手段は、前記2枚の画像を画像P1及び画像P2とし、画像P1上のある1点(x,y)の画素値をP1(x,y)、画像P2上のその点の画素値をP2(x,y)とし、その差の絶対値|P1(x,y)−P2(x,y)|の全画素における最大値をPPMAXとしたときに、前記透明度画像上の各画素の画素値PT(x,y)を、
PT(x,y)=1−|(P1(x,y)−P2(x,y))|/PPMAX
の式により求め、
前記合成する手段は、前記透明度画像上の各画素の画素値である透明度に基づく比率で、前記2枚の画像のうちの1枚の画像と前記背景画像とを合成して合成画像を求める
ことを特徴とする画像処理装置。
An image processing apparatus that combines an image of a subject with another image,
Means for inputting two images taken under different polarization conditions so that a difference occurs in the background image;
Means for obtaining a transparency image of a subject using the two images;
Means for synthesizing one of the two images and a background image using the transparency image ;
The means for obtaining the transparency image of the subject is the image P1 and the image P2 of the two images, the pixel value of one point (x, y) on the image P1 is P1 (x, y), and the image P2 When the pixel value at that point is P2 (x, y) and the maximum value of all the pixels of the absolute value | P1 (x, y) −P2 (x, y) | The pixel value PT (x, y) of each pixel above is
PT (x, y) = 1- | (P1 (x, y) -P2 (x, y)) | / PPMAX
Calculated by
The synthesizing unit obtains a synthesized image by synthesizing one of the two images and the background image at a ratio based on transparency that is a pixel value of each pixel on the transparency image. An image processing apparatus.
前記合成する手段は、画像P1又は画像P2のあるThe means for combining is the image P1 or the image P2. 11 点(x,y)の色彩画素値をPC(x,y)、前記背景画像のその点の画素値をPZ(x,y)としたときに、前記合成画像を、When the color pixel value of the point (x, y) is PC (x, y) and the pixel value of the point of the background image is PZ (x, y), the composite image is
PT(x,y)×PC(x,y)+(1−PT(x,y))×PZ(x,y)  PT (x, y) x PC (x, y) + (1-PT (x, y)) x PZ (x, y)
の式を用いることにより求める請求項1に記載の画像処理装置。The image processing apparatus according to claim 1, wherein the image processing apparatus is obtained by using the formula:
前記2枚の画像は、偏光を発する背景部分を含む被写体を撮影した画像と、同じ背景部分と被写体を、その偏光を遮断する偏光フィルタを介して撮影した画像である請求項1又は2に記載の画像処理装置。The two images, an image obtained by photographing a subject comprising a background portion that emits polarized light, the same background portion and the object, according to claim 1 or 2 is a photographed image through a polarizing filter for blocking its polarization Image processing apparatus. 前記2枚の画像は、異なる偏光条件で撮影された3枚以上の画像うちの、背景部分の輝度の差が最大の2枚の画像である請求項1又は2に記載の画像処理装置。The two images are different among the three or more images taken with the polarization condition, the image processing apparatus according to claim 1 or 2 difference in luminance of the background portion is a maximum of two images. 被写体の画像を別の画像に合成する画像処理装置であって、
被写体が無い状態でn台の撮影装置C1〜Cnにより異なる偏光条件で撮影を行ったn枚の画像PE1〜PEnと、被写体を置いてn台の撮影装置C1〜Cnで被写体が無い状態と同じ偏光条件で撮影を行ったn枚の画像P1〜Pnを入力する手段と、
各画像の1点(x、y)における画像PEk(1≦k≦n)の画素値をPEk(x,y)、画像Pkの画素値をPk(x,y)とし、画素値PE1(x,y)〜PEn(x,y)のうちの全ての組み合わせの中で、画素値の差分が最大となる2枚の画像をPEa、PEbとし、これらに対応する画像P1〜Pnの中の画像PaとPbの画素値をPa(x,y)とPb(x,y)としたときに、
1−|Pa(x,y)−Pb(x,y)|/|PEa(x,y)−PEb(x,y)|
の式を用いて透明度画像の画素の画素値AP(x,y)を計算する処理を、全ての画素に対して行うことにより透明度画像を求める手段と、
前記透明度画像上の各画素の画素値である透明度に基づく比率で、画像P1〜Pnのうちの1枚の画像と背景画像とを合成して合成画像を求める手段と
を有することを特徴とする画像処理装置。
An image processing apparatus that combines an image of a subject with another image,
The n images PE1 to PEn photographed under different polarization conditions by the n photographing devices C1 to Cn in the absence of the subject, and the same as the state where the subject is placed and the n photographing devices C1 to Cn have no subject. Means for inputting n images P1 to Pn photographed under polarization conditions;
The pixel value of the image PEk (1 ≦ k ≦ n) at one point (x, y) of each image is PEk (x, y), the pixel value of the image Pk is Pk (x, y), and the pixel value PE1 (x , Y) to PEn (x, y), the two images having the largest difference in pixel values are designated as PEa and PEb, and the images in the images P1 to Pn corresponding to these images. When the pixel values of Pa and Pb are Pa (x, y) and Pb (x, y),
1− | Pa (x, y) −Pb (x, y) | / | PEa (x, y) −PEb (x, y) |
Means for obtaining a transparency image by performing the process of calculating the pixel value AP (x, y) of each pixel of the transparency image using the equation
A ratio based on a transparency which is the pixel value of each pixel on the transparency image, and having a means for obtaining a synthesized and the synthesized image and one image and the background image among the image P1~Pn Image processing device.
前記合成画像を求める手段は、画像P1〜Pnのうちの1枚の画像のある  The means for obtaining the composite image includes one of the images P1 to Pn. 11 点(x,y)の色彩画素値をPC(x,y)、前記背景画像のその点の画素値をPZ(x,y)としLet the color pixel value of the point (x, y) be PC (x, y) and the pixel value of that point of the background image be PZ (x, y). たときに、前記合成画像を、When the composite image is
AP(x,y)×PC(x,y)+(1−AP(x,y))×PZ(x,y)  AP (x, y) x PC (x, y) + (1-AP (x, y)) x PZ (x, y)
の式を用いることにより求める請求項5に記載の画像処理装置。The image processing apparatus according to claim 5, wherein the image processing apparatus is obtained by using the formula:
偏光を発生させる背景表示装置と、背景表示装置の前に置かれた被写体からの光を二つに分けるビームスプリッタと、ビームスプリッタの一方の出力光を撮影して画像P1を取得する第1の撮影装置と、ビームスプリッタの他方の出力光を撮影して画像P2を取得する第2の撮影装置と、ビームスプリッタと第1の撮影装置との間に備えられた偏光フィルタと、画像処理装置とを有する撮影システムであって、前記画像処理装置は、
背景部分の画像に差が出るように異なる偏光条件で撮影された画像P1と画像P2を入力する手段と、
画像P1と画像P2とを用いて被写体の透明度画像を求める手段と、
その透明度画像を用いて、画像P1又は画像P2と背景画像とを合成する手段とを有し、
前記被写体の透明度画像を求める手段は、画像P1上のある1点(x,y)の画素値をP1(x,y)、画像P2上のその点の画素値をP2(x,y)とし、その差の絶対値|P1(x,y)−P2(x,y)|の全画素における最大値をPPMAXとしたときに、前記透明度画像上の各画素の画素値PT(x,y)を、
PT(x,y)=1−|(P1(x,y)−P2(x,y))|/PPMAX
の式により求め、
前記合成する手段は、前記透明度画像上の各画素の画素値である透明度に基づく比率で、前記2枚の画像のうちの1枚の画像と前記背景画像とを合成して合成画像を求める
ことを特徴とする撮影システム
A background display device that generates polarized light, a beam splitter that divides light from a subject placed in front of the background display device into two, and a first output that captures one output light of the beam splitter and acquires an image P1 An imaging apparatus; a second imaging apparatus that captures the other output light of the beam splitter to acquire an image P2; a polarizing filter provided between the beam splitter and the first imaging apparatus; and an image processing apparatus; The image processing apparatus includes:
Means for inputting an image P1 and an image P2 photographed under different polarization conditions so as to make a difference in the background image;
Means for obtaining a transparency image of the subject using the image P1 and the image P2,
Means for combining the image P1 or the image P2 and the background image using the transparency image;
The means for obtaining the transparency image of the subject is such that the pixel value of one point (x, y) on the image P1 is P1 (x, y) and the pixel value of that point on the image P2 is P2 (x, y). , The absolute value | P1 (x, y) −P2 (x, y) | of the difference is set to PPMAX, the pixel value PT (x, y) of each pixel on the transparency image. The
PT (x, y) = 1- | (P1 (x, y) -P2 (x, y)) | / PPMAX
Calculated by
The synthesizing unit obtains a synthesized image by synthesizing one image of the two images and the background image at a ratio based on transparency that is a pixel value of each pixel on the transparency image.
An imaging system characterized by that .
前記合成する手段は、画像P1又は画像P2のあるThe means for combining is the image P1 or the image P2. 11 点(x,y)の色彩画素値をPC(x,y)、前記背景画像のその点の画素値をPZ(x,y)としたときに、前記合成画像を、When the color pixel value of the point (x, y) is PC (x, y) and the pixel value of the point of the background image is PZ (x, y), the composite image is
PT(x,y)×PC(x,y)+(1−PT(x,y))×PZ(x,y)  PT (x, y) x PC (x, y) + (1-PT (x, y)) x PZ (x, y)
の式を用いることにより算出する請求項7に記載の撮影システム。The imaging system according to claim 7, wherein the imaging system is calculated by using the formula:
前記ビームスプリッタと前記第2の撮影装置と間に前記偏光フィルタと異なる偏光方向を有する偏光フィルタを備えた請求項7又は8に記載の撮影システム。Imaging system according to claim 7 or 8 with a polarizing filter having a polarization direction different from the polarization filter between the beam splitter and the second imaging device. 被写体を置くためのテーブルを更に備え、
そのテーブルは前記背景表示装置と同様の偏光を発生する請求項7ないし9のうちいずれか1項に記載の撮影システム。
A table for placing a subject;
The imaging system according to claim 7, wherein the table generates polarized light similar to that of the background display device.
前記背景表示装置及び前記テーブルを、ELパネル、液晶パネル、液晶シャッター、投影型スクリーン、プラズマディスプレイ、又はCRTと、その表面に偏光フィルタを備えて構成した請求項10に記載の撮影システム。  The imaging system according to claim 10, wherein the background display device and the table include an EL panel, a liquid crystal panel, a liquid crystal shutter, a projection screen, a plasma display, or a CRT, and a polarizing filter on a surface thereof. 偏光を発生させる背景表示装置と、背景表示装置の前に置かれた被写体からの光を3つ以上に分割するビームスプリッタと、ビームスプリッタからの各出力光を撮影する複数の撮影装置C1〜Cnと、各撮影装置とビームスプリッタ間に設けられたそれぞれ偏光方向が異なる偏光フィルタと、画像処理装置とを有する撮影システムであって、前記画像処理装置は、
被写体が無い状態でn台の前記撮影装置C1〜Cnにより異なる偏光条件で撮影を行ったn枚の画像PE1〜PEnと、被写体を置いてn台の撮影装置C1〜Cnで被写体が無い状態と同じ偏光条件で撮影を行ったn枚の画像P1〜Pnを入力する手段と、
各画像の1点(x、y)における画像PEk(1≦k≦n)の画素値をPEk(x, y)、画像Pkの画素値をPk(x, y)とし、画素値PE1(x,y)〜PEn(x,y)のうちの全ての組み合わせの中で、画素値の差分が最大となる2枚の画像をPEa、PEbとし、これらに対応する画像P1〜Pnの中の画像PaとPbの画素値をPa(x,y)とPb(x,y)としたときに、
1−|Pa(x,y)−Pb(x,y)|/|PEa(x,y)−PEb(x,y)|
の式を用いて透明度画像の各画素の画素値AP(x,y)を計算する処理を、全ての画素に対して行うことにより透明度画像を求める手段と、
前記透明度画像上の各画素の画素値である透明度に基づく比率で、画像P1〜Pnのうちの1枚の画像と背景画像とを合成して合成画像を求める手段とを有する
ことを特徴とする撮影システム
A background display device that generates polarized light, a beam splitter that divides light from a subject placed in front of the background display device into three or more, and a plurality of imaging devices C1 to Cn that shoot each output light from the beam splitter And an imaging system having a polarizing filter provided between each imaging device and the beam splitter, each having a different polarization direction, and an image processing device , wherein the image processing device comprises:
The n images PE1 to PEn photographed under different polarization conditions by the n imaging devices C1 to Cn in the absence of the subject, and the n imaging devices C1 to Cn in the absence of the subject. Means for inputting n images P1 to Pn photographed under the same polarization condition;
The pixel value of the image PEk (1 ≦ k ≦ n) at one point (x, y) of each image is represented by PEk (x, y), the pixel value of the image Pk is set to Pk (x, y), and among the combinations of all the pixel values PE1 (x, y) to PEn (x, y), the two images having the maximum difference in pixel values are designated as PEa and PEb, and these are supported. When the pixel values of the images Pa and Pb in the images P1 to Pn are Pa (x, y) and Pb (x, y),
1− | Pa (x, y) −Pb (x, y) | / | PEa (x, y) −PEb (x, y) |
Means for obtaining a transparency image by performing the process of calculating the pixel value AP (x, y) of each pixel of the transparency image using the equation
Means for obtaining a synthesized image by synthesizing one of the images P1 to Pn with a background image at a ratio based on transparency which is a pixel value of each pixel on the transparency image.
An imaging system characterized by that .
前記合成画像を求める手段は、画像P1〜Pnのうちの1枚の画像のある  The means for obtaining the composite image includes one of the images P1 to Pn. 11 点(x,y)の色彩画素値をPC(x,y)、前記背景画像のその点の画素値をPZ(x,y)としたときに、前記合成画像を、When the color pixel value of the point (x, y) is PC (x, y) and the pixel value of the point of the background image is PZ (x, y), the composite image is
AP(x,y)×PC(x,y)+(1−AP(x,y))×PZ(x,y)  AP (x, y) x PC (x, y) + (1-AP (x, y)) x PZ (x, y)
の式を用いることにより算出する請求項12に記載の撮影システム。The imaging system according to claim 12, wherein the imaging system is calculated by using the formula:
被写体の画像を別の画像に合成する画像処理装置における画像処理方法であって、
背景部分の画像に差が出るように異なる偏光条件で撮影された2枚の画像を入力するステップと、
その2枚の画像を用いて被写体の透明度画像を求めるステップと、
その透明度画像を用いて、前記2枚の画像のうちの1枚の画像と背景画像とを合成するステップとを有し、
前記被写体の透明度画像を求めるステップにおいて、前記画像処理装置は、前記2枚の画像を画像P1及び画像P2とし、画像P1上のある1点(x,y)の画素値をP1(x,y)、画像P2上のその点の画素値をP2(x,y)とし、その差の絶対値|P1(x,y)−P2(x,y)|の全画素における最大値をPPMAXとしたときに、前記透明度画像上の各画素の画素値PT(x,y)を、
PT(x,y)=1−|(P1(x,y)−P2(x,y))|/PPMAX
の式により求め、
前記合成するステップにおいて、前記画像処理装置は、前記透明度画像上の各画素の画素値である透明度に基づく比率で、前記2枚の画像のうちの1枚の画像と前記背景画像とを合成して合成画像を求める
ことを特徴とする画像処理方法。
An image processing method in an image processing apparatus for combining an image of a subject with another image,
Inputting two images photographed under different polarization conditions so that a difference occurs in the background image;
Obtaining a transparency image of the subject using the two images;
Using the transparency image, it possesses a step of synthesizing the one image and the background image of the two images,
In the step of obtaining the transparency image of the subject, the image processing apparatus uses the two images as an image P1 and an image P2, and sets a pixel value of one point (x, y) on the image P1 to P1 (x, y ), The pixel value of the point on the image P2 is P2 (x, y), and the maximum value of all the pixels of the difference | P1 (x, y) −P2 (x, y) | Sometimes, the pixel value PT (x, y) of each pixel on the transparency image is
PT (x, y) = 1- | (P1 (x, y) -P2 (x, y)) | / PPMAX
Calculated by
In the combining step, the image processing device combines one image of the two images and the background image at a ratio based on transparency that is a pixel value of each pixel on the transparency image. An image processing method characterized in that a composite image is obtained.
前記合成するステップにおいて、前記画像処理装置は、画像P1又は画像P2のあるIn the synthesizing step, the image processing apparatus has an image P1 or an image P2. 11 点(x,y)の色彩画素値をPC(x,y)、前記背景画像のその点の画素値をPZ(x,y)としたときに、前記合成画像を、When the color pixel value of the point (x, y) is PC (x, y) and the pixel value of the point of the background image is PZ (x, y), the composite image is
PT(x,y)×PC(x,y)+(1−PT(x,y))×PZ(x,y)  PT (x, y) x PC (x, y) + (1-PT (x, y)) x PZ (x, y)
の式を用いることにより算出する請求項14に記載の画像処理方法。The image processing method according to claim 14, which is calculated by using the formula:
前記2枚の画像は、偏光を発する背景部分を含む被写体を撮影した画像と、同じ背景部分と被写体を、その偏光を遮断する偏光フィルタを介して撮影した画像である請求項14又は15のうちいずれか1項に記載の画像処理方法。The two images, an image obtained by photographing a subject comprising a background portion that emits polarized light, the same background portion and the object, of the claims 14 or 15, which is a captured image through the polarizing filter for blocking its polarization The image processing method according to claim 1. 前記2枚の画像は、異なる偏光条件で撮影された3枚以上の画像うちの、背景部分の輝度の差が最大の2枚の画像である請求項14又は15のうちいずれか1項に記載の画像処理方法。16. The two images according to any one of claims 14 and 15, wherein the two images are two images having a maximum difference in luminance of a background portion among three or more images photographed under different polarization conditions. Image processing method. 被写体の画像を別の画像に合成する画像処理装置における画像処理方法であって、
被写体が無い状態でn台の撮影装置C1〜Cnにより異なる偏光条件で撮影を行ったn枚の画像PE1〜PEnと、被写体を置いてn台の撮影装置C1〜Cnで被写体が無い状態と同じ偏光条件で撮影を行ったn枚の画像P1〜Pnを入力するステップと、
各画像の1点(x、y)における画像PEk(1≦k≦n)の画素値をPEk(x,y)、画像Pkの画素値をPk(x,y)とし、画素値PE1(x,y)〜PEn(x,y)のうちの全ての組み合わせの中で、画素値の差分が最大となる2枚の画像をPEa、PEbとし、これらに対応する画像P1〜Pnの中の画像PaとPbの画素値をPa(x,y)とPb(x,y)としたときに、
1−|Pa(x,y)−Pb(x,y)|/|PEa(x,y)−PEb(x,y)|
の式を用いて透明度画像の画素の画素値AP(x,y)を計算する処理を、全ての画素に対して行うことにより透明度画像を求めるステップと、
前記透明度画像上の各画素の画素値である透明度に基づく比率で、画像P1〜Pnのうちの1枚の画像と背景画像とを合成して合成画像を求めるステップと
を有することを特徴とする画像処理方法。
An image processing method in an image processing apparatus for combining an image of a subject with another image,
The n images PE1 to PEn photographed under different polarization conditions by the n photographing devices C1 to Cn in the absence of the subject, and the same as the state where the subject is placed and the n photographing devices C1 to Cn have no subject. Inputting n images P1 to Pn photographed under polarization conditions;
The pixel value of the image PEk (1 ≦ k ≦ n) at one point (x, y) of each image is PEk (x, y), the pixel value of the image Pk is Pk (x, y), and the pixel value PE1 (x , Y) to PEn (x, y), the two images having the largest difference in pixel values are designated as PEa and PEb, and the images in the images P1 to Pn corresponding to these images. When the pixel values of Pa and Pb are Pa (x, y) and Pb (x, y),
1− | Pa (x, y) −Pb (x, y) | / | PEa (x, y) −PEb (x, y) |
A process of calculating a pixel value AP (x, y) of each pixel of the transparency image using the equation of
A ratio based on a transparency which is the pixel value of each pixel on the transparency image, characterized by a step of obtaining a synthesized and the synthesized image and one image and the background image among the image P1~Pn Image processing method.
前記合成画像を求めるステップにおいて、前記画像処理装置は、画像P1〜Pnのうちの1枚の画像のある  In the step of obtaining the composite image, the image processing apparatus has one image among the images P1 to Pn. 11 点(x,y)の色彩画素値をPC(x,y)、前記背景画像のその点の画素値をPZ(x,y)としたときに、前記合成画像を、When the color pixel value of the point (x, y) is PC (x, y) and the pixel value of the point of the background image is PZ (x, y), the composite image is
AP(x,y)×PC(x,y)+(1−AP(x,y))×PZ(x,y)  AP (x, y) x PC (x, y) + (1-AP (x, y)) x PZ (x, y)
の式を用いることにより算出する請求項18に記載の画像処理方法。The image processing method according to claim 18, which is calculated by using the formula:
請求項14ないし19のうちのいずれか1項に記載の画像処理方法における各ステップをコンピュータに実行させるプログラム。A program for causing a computer to execute each step in the image processing method according to any one of claims 14 to 19.
JP2003067176A 2003-03-12 2003-03-12 Image processing apparatus and method, and program Expired - Fee Related JP4033006B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003067176A JP4033006B2 (en) 2003-03-12 2003-03-12 Image processing apparatus and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003067176A JP4033006B2 (en) 2003-03-12 2003-03-12 Image processing apparatus and method, and program

Publications (2)

Publication Number Publication Date
JP2004282167A JP2004282167A (en) 2004-10-07
JP4033006B2 true JP4033006B2 (en) 2008-01-16

Family

ID=33284870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003067176A Expired - Fee Related JP4033006B2 (en) 2003-03-12 2003-03-12 Image processing apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP4033006B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7835571B2 (en) 2005-03-10 2010-11-16 Fujifilm Corporation Background replacing apparatus, background replacing program, and background replacing method
JP4642764B2 (en) * 2005-03-10 2011-03-02 富士フイルム株式会社 Background replacement device, background replacement program, and background replacement method
JP4689662B2 (en) * 2005-03-10 2011-05-25 富士フイルム株式会社 Shooting system
KR100780701B1 (en) * 2006-03-28 2007-11-30 (주)오픈브이알 Apparatus automatically creating three dimension image and method therefore
PE20140057A1 (en) * 2010-09-20 2014-03-01 Fraunhofer Ges Forschung METHOD TO DIFFERENTIATE BETWEEN THE BACKGROUND AND THE FRONT OF THE SCENARIO AND ALSO METHOD TO REPLACE A BACKGROUND IN THE IMAGES OF A DECORATION
US11023771B2 (en) 2017-02-09 2021-06-01 Sony Corporation Information processing apparatus, information processing method, and recording medium
JP6855368B2 (en) * 2017-12-26 2021-04-07 関西テレビ放送株式会社 Image generation method and image composition method
JP7267122B2 (en) * 2019-06-20 2023-05-01 日東電工株式会社 Sets of optical films for imaging systems
JP7267123B2 (en) * 2019-06-20 2023-05-01 日東電工株式会社 Sets of optical films for imaging systems

Also Published As

Publication number Publication date
JP2004282167A (en) 2004-10-07

Similar Documents

Publication Publication Date Title
Korus Digital image integrity–a survey of protection and verification techniques
Wan et al. Benchmarking single-image reflection removal algorithms
JP4879326B2 (en) System and method for synthesizing a three-dimensional image
US10825157B2 (en) Glare reduction in captured images
US7295720B2 (en) Non-photorealistic camera
JP5342036B2 (en) Method for capturing 3D surface shapes
CN109565551B (en) Synthesizing images aligned to a reference frame
KR100791372B1 (en) Apparatus and method for facial image compensating
EP1433139B1 (en) Device and method for digitizing an object
US20130335535A1 (en) Digital 3d camera using periodic illumination
US20040183812A1 (en) Reducing texture details in images
JP2004289829A (en) Method for generating stylized image
JP2004288186A (en) Method for enhancing image quality of video with low image quality
JP2004288185A (en) Method for enhancing image quality of image of naturally illuminated scene
GB2372168A (en) Automatic enhancement of facial features in images
US7609327B2 (en) Polarization difference matting using a screen configured to reflect polarized light
JP2005353010A (en) Image processor and imaging device
KR20140123580A (en) Lighting system and method for image and object enhancement
JP4033006B2 (en) Image processing apparatus and method, and program
US7071953B2 (en) Image processing method and image processing apparatus for obtaining overlaid image
WO2020151078A1 (en) Three-dimensional reconstruction method and apparatus
US20210350625A1 (en) Augmenting live images of a scene for occlusion
JPWO2019167527A1 (en) Projection control device, projection device, projection control method, and projection control program
Nisaka et al. Fast separation of specular, diffuse, and global components via polarized pattern projection
KR20110074442A (en) Image processing apparatus, image processing method and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070522

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070723

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071015

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

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 3

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121102

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121102

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131102

Year of fee payment: 6

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

LAPS Cancellation because of no payment of annual fees