JP4192671B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP4192671B2 JP4192671B2 JP2003136763A JP2003136763A JP4192671B2 JP 4192671 B2 JP4192671 B2 JP 4192671B2 JP 2003136763 A JP2003136763 A JP 2003136763A JP 2003136763 A JP2003136763 A JP 2003136763A JP 4192671 B2 JP4192671 B2 JP 4192671B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- image
- mask pattern
- enlargement
- mask
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Studio Circuits (AREA)
- Editing Of Facsimile Originals (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、入力画像から合成時の有効画素を指定するマスクパターンに従って、入力画像を他の画像上に合成する画像処理装置および画像処理方法に関し、特に、入力画像に対して拡大縮小処理を施した後に他の画像上に合成する画像処理装置および画像処理方法に関する。
【0002】
【従来の技術】
近年では、画像をデジタルデータとして取り扱い、コンピュータグラフィックスにより生成した画像や、受信したテレビ画像、光ディスク等の記録データからの再生画像等を拡大縮小し、その画像を別の画像と合成して新たな画像を生成する画像処理装置が一般的に使用されている。例えば、テレビ受像器では、内部のメモリにあらかじめ記憶されたメニュー画面や文字列を拡大縮小して、受信したテレビ画像上に合成して表示する機能を有するものがある。また、拡大縮小した画像中から、輝度や色のデータ等について特定の値を有する画素を取り出し、色データの置き換えや透明化等の特殊処理を施して、別の画像と合成させることも行われている。
【0003】
画像を拡大する場合には、拡大率に応じた画素の補間を行い、また縮小の場合には、縮小率に応じた画素の間引きが行われる。この際に、例えば、元の画像と同じ画素を並べることで画像を拡大したり、あるいは画素を単に間引くことで画像を縮小しただけでは、生成される画像の画質が著しく劣化することが多い。このため、拡大縮小後の画素に対応する元の画像の所定区間内の画素を用いて、これらの画素値を基に所定の係数を用いた演算を行うフィルタ処理を行った後、別の画像との合成を行うのが一般的である。
【0004】
なお、元の画像中の所定区間内の画素データを基に、生成した画像の画素データを補正する一般的な従来例として、以下のような階層データの生成装置があった。この階層データの生成装置は、解像度の異なる複数の階層の画像信号を生成する階層符号化を行う装置であり、下位階層の隣接4画素の画素値の平均値によりその上位階層における画素を生成し、下位階層の隣接4画素のうちの1画素を、生成した上位階層の画素によって置き換えることで、上位階層の生成時に発生する誤差をその下位階層データの中に分散して重畳し、データ量を圧縮している(例えば、特許文献1参照)。
【0005】
【特許文献1】
特開2000−92331号公報(段落番号〔0049〕〜〔0061〕、第5図)
【0006】
【発明が解決しようとする課題】
しかし、拡大縮小時に上記のようなフィルタ処理を施した画像を他の画像と合成した場合には、画像の境界部の色がにじんでぼやけた画像となり、画質が劣化することがあった。以下、このようなフィルタ処理を用いて生成した画像について具体的に説明する。ここでは、画像を拡大処理した場合の画像を例に挙げて説明する。
【0007】
図8は、画像を拡大して別の画像に合成する場合の従来の画像の例を示す図である。
図8では、アルファベットの“A”のテキストが描かれた画像101を、画像102のように拡大し、背景画像103と合成して合成画像104を生成する場合について示している。画像を合成する場合には、元の画像中の各画素を合成画像上で表示するか否かを示すためのマスクパターンが使用される。例えば、表示する場合にマスクパターンの値(マスク値)を“0”、表示しない場合のマスク値を“1”とし、図8の画像101において、テキスト“A”の表示領域のマスク値を“1”、それ以外の領域のマスク値を“0”とする。このようなマスクパターンを用いることにより、テキスト“A”の表示領域に背景画像103が表示されるような合成処理が行われる。
【0008】
ところで、画像101を拡大した場合には、その拡大率に応じたマスクパターンを生成する必要がある。画像101を拡大した画像102では、フィルタ処理によって、テキスト“A”の表示領域の境界部におけるマスク値が“0”と“1”の間の値となる。図8では、画像101内の隣り合う2画素を基に補間を行うこととし、画素値に係数を用いた演算を行うことで、境界部のマスク値が“0.8”と算出されている。これにより、合成画像104では、テキスト“A”の表示領域の境界部において、画像102と背景画像103とが2:8の割合で合成されることになる。従って、この境界部では、背景画像103の色と元のテキスト“A”の色とが混ざり合ってにじんでしまい、鮮明な表示とならない。
【0009】
画像を縮小して合成した場合にも、同様の現象が起こり得る。また、フォントデータ等のように細い線や点で構成される画像では、同様のフィルタ処理を施した場合に線や点が消滅するといった画質劣化の現象が生じる。
【0010】
本発明はこのような課題に鑑みてなされたものであり、画像を拡大縮小して他の画像と合成する場合における画質の劣化を防止することが可能な画像処理装置を提供することを目的とする。
【0011】
また、本発明の他の目的は、画像を拡大縮小して他の画像と合成する場合における画質の劣化を防止することが可能な画像処理方法を提供することである。
【0012】
【課題を解決するための手段】
本発明では上記課題を解決するために、入力画像から合成時の有効画素を指定するマスクパターンに従って、前記入力画像を他の画像上に合成する画像処理装置において、前記入力画像および前記マスクパターンのそれぞれに対して、フィルタ処理を伴う拡大縮小処理を実行する第1および第2の拡大縮小手段と、前記第2の拡大縮小手段から出力されたマスクパターンの各画素のマスク値に応じて前記各画素を前記有効画素とするか否かを判定し、新たなマスクパターンに変換するマスクパターン変換手段とを有し、前記マスクパターン変換手段は、前記各画素のマスク値を所定のしきい値と比較して、その比較結果を基に前記有効画素とするか否かを判定し、前記しきい値は、前記第1および第2の拡大縮小手段における拡大縮小率に応じて任意に設定されることを特徴とする画像処理装置が提供される。
【0013】
ここで、第1および第2の拡大縮小手段は、それぞれ入力画像およびマスクパターンに対してフィルタ処理を伴う拡大縮小処理を実行する。マスクパターン変換手段は、第2の拡大縮小手段から出力されたマスクパターンの各画素のマスク値に応じて、これらの各画素を有効画素とするか否かを判定し、新たなマスクパターンに変換する。従って、変換された新たなマスクパターンは、各画素のマスク値に応じて変換された2値のマスク値によって構成されるようになり、他の画像との合成時に、各画像の境界部で色が混ざり合うことがなくなる。また、マスクパターン変換手段は、第2の拡大縮小手段からのマスクパターンの各画素のマスク値を所定のしきい値と比較して、その比較結果を基に有効画素とするか否かを判定する。このとき、比較に用いるしきい値は、第1および第2の拡大縮小手段における拡大縮小率に応じて任意に設定される。
【0014】
また、本発明では、入力画像から合成時の有効画素を指定するマスクパターンに従って、前記入力画像を他の画像上に合成する画像処理装置において、前記入力画像および前記マスクパターンのそれぞれに対して、フィルタ処理を伴う拡大縮小処理を実行する第1および第2の拡大縮小手段と、前記第2の拡大縮小手段から出力されたマスクパターンの各画素のマスク値に応じて前記各画素を前記有効画素とするか否かを判定し、新たなマスクパターンに変換するマスクパターン変換手段とを有し、前記マスクパターン変換手段は、前記各画素のマスク値を所定のしきい値と比較して、その比較結果を基に前記有効画素とするか否かを判定し、前記しきい値は、前記入力画像に応じて任意に設定されることを特徴とする画像処理装置が提供される。
【0015】
ここで、第1および第2の拡大縮小手段は、それぞれ入力画像およびマスクパターンに対してフィルタ処理を伴う拡大縮小処理を実行する。マスクパターン変換手段は、第2の拡大縮小手段から出力されたマスクパターンの各画素のマスク値に応じて、これらの各画素を有効画素とするか否かを判定し、新たなマスクパターンに変換する。従って、変換された新たなマスクパターンは、各画素のマスク値に応じて変換された2値のマスク値によって構成されるようになり、他の画像との合成時に、各画像の境界部で色が混ざり合うことがなくなる。また、マスクパターン変換手段は、第2の拡大縮小手段からのマスクパターンの各画素のマスク値を所定のしきい値と比較して、その比較結果を基に有効画素とするか否かを判定する。このとき、比較に用いるしきい値は、入力画像に応じて任意に設定される。
【0016】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して説明する。
図1は、本発明の実施の形態に係る画像処理装置の構成例を示すブロック図である。
【0017】
図1に示す画像処理装置は、入力画像を拡大縮小して、背景画像上に合成した合成画像を生成するための装置である。入力画像としては、例えば、メモリに記憶された画像から所定の領域を切り出して生成した画像や、テレビチューナによって受信したテレビ画像、光ディスク等の記録媒体からデータを読み出して再生した画像等を適用することが可能である。
【0018】
この画像処理装置は、入力画像の各画素がキーに合致するか否かを判定するキー判定部11と、キー判定部11の判定結果に応じてマスクパターンを生成するマスクパターン生成部12と、入力画像およびマスクパターンに対してそれぞれフィルタ処理を伴う拡大縮小処理を施す拡大縮小部13および14と、拡大縮小処理されたマスクパターンから有効画素を再判定して新たなマスクパターンに変換するマスクパターン変換部15と、変換されたマスクパターンに従って入力画像の有効画素を出力する出力画素セレクタ16と、出力された画素をマスクパターンに従って背景画像上に合成して、合成画像のデータ(以下、合成画像データと呼称する)を出力する合成処理部17によって構成される。
【0019】
キー判定部11には、入力画像の画像データ(以下、入力画像データと呼称する)とともに、この入力画像から特定の画素を抽出するための画素値のしきい値が入力される。このしきい値はキーと呼ばれ、特定の画素値の上限値および下限値を示すパラメータとして入力される。キー判定部11は、入力画像の各画素値がキーで指定された上限値から下限値の範囲に収まる場合に、この画素がキーに合致すると判定し、判定結果を画素ごとにマスクパターン生成部12に出力する。
【0020】
マスクパターン生成部12は、キー判定部11の判定結果に基づいて、入力画像から合成する画素を抽出するためのマスクパターンを生成する。ここで生成されるマスクパターンの各画素のマスク値は、各画素が抽出対象として有効か無効かを示す2値のデータによって構成される。また、マスクパターン生成部12には、キーに合致する画素を抽出対象として有効とするか、合致しない画素を有効とするかを指定するキーモードを設定することが可能となっている。
【0021】
拡大縮小部13は、入力画像の各画素のデータを受けて、拡大縮小率の指定に従って入力画像の拡大縮小処理を行う。拡大時には拡大率に応じた画素補間を行い、縮小時には縮小率に応じた画素の間引きを行う。このような拡大縮小処理時に、拡大縮小後の各画素に対応する元の入力画像中の隣接する複数の画素を用いて、これらの画素値を基に所定の係数を用いた演算を行うことで拡大縮小後の画素値を決定するフィルタ処理が行われる。
【0022】
拡大縮小部14は、マスクパターン生成部12から出力されたマスクパターンに対して、拡大縮小部13と同一の拡大縮小率で拡大縮小処理を行う。この拡大縮小処理は、拡大縮小部13において入力画像データに対して実行される処理と基本的に同じである。この拡大縮小処理時に実行されるフィルタ処理により、拡大縮小部14から出力されるマスクパターンのマスク値は、多値のデータをとることになる。
【0023】
マスクパターン変換部15は、拡大縮小部14から出力されたマスクパターンのマスク値から、マスク判定基準情報に従って各画素を有効とするか否かについて再び判定して、マスク値を有効画素と無効画素とを示す2値のデータに変換し、新たなマスクパターンとして出力する。マスク判定基準情報は、入力されたマスクパターンのマスク値に対して、有効・無効の判定基準を設定するための情報である。
【0024】
出力画素セレクタ16は、拡大縮小部13から画像データと、マスクパターン変換部15からのマスクパターンの入力を受け、拡大縮小処理された画像から、マスクパターンによって有効とされた画素のデータを出力する。これにより、入力画像を拡大縮小した画像から所定領域を取り出した画像が生成される。また、画素置換値および画素置換モードの設定に従って、有効とされた画素の画素値を所定の値に置換して出力することが可能となっている。置換画素値は、例えば有効画素の色を所定の色に変化させるための画素値を指定する情報であり、画素置換モードは、指定された画素値の置換を行うか否かを指定する情報である。
【0025】
合成処理部17は、出力画素セレクタ16からの画像データと、マスクパターン変換部15からのマスクパターンと、背景画像の画像データ(以下、背景画像データと呼称する)の入力を受け、出力画素セレクタ16から出力された画像データをマスクパターンに従って背景画像データに合成し、合成画像データを出力する。これにより、出力画素セレクタ16によって取り出された画像の所定領域が、背景画像上に合成表示された合成画像が生成される。
【0026】
この画像処理装置では、入力画像に対してフィルタ処理を伴う拡大縮小処理が行われるとともに、入力画像から生成したマスクパターンに対しても同様な拡大縮小処理が行われる。そして、拡大縮小処理されたマスクパターンがマスクパターン変換部15によって新たなマスクパターンに変換され、変換されたマスクパターンを用いて、拡大縮小処理された入力画像が背景画像上に合成される。ここで、拡大縮小処理されたマスクパターンのマスク値を、マスクパターン変換部15においてマスク判定基準情報に従って2値のデータに変換することにより、合成される各画像の境界部における画質の低下を防止することが、本発明の最も特徴的な点である。
【0027】
次に、上記の画像処理装置の動作について具体的に説明する。
本実施の形態では、例として、入力画像の画素値が輝度成分と色差成分(青、赤)で表されるものとする。以下の説明では、画素値の各成分をYin、Uin、Vinとし、これらがそれぞれ8ビットのデータで表されるものとする。そして、キー判定部11に入力されるキーは、各成分の上限値および下限値について同様にそれぞれ8ビットのデータとして指定される。以下、画素値の各成分について、その上限をYmax、Umax、Vmaxとし、下限をYmin、Umin、Vminとして表す。
【0028】
図2は、入力されるキーについて、画素値の各成分に対するビット割り当てを示す図である。
図2に示すように、画素値の上限値および下限値を示すキーは、それぞれ24ビットのデータとしてキー判定部11に入力される。そして、画素値の上限値については、上位から8ビット分にYmaxが割り当てられ、次の8ビット分にUmax、さらに次の8ビット分にVmaxが割り当てられる。下限値についても同様に、上位から8ビット分ずつYmin、Umin、Vminの順に割り当てられる。
【0029】
キー判定部11は、入力画像データの各画素の画素値が、キーによって指定される条件に合致するか否かを判定する。具体的には、Yin、Uin、Vinが次の式(1)〜(3)のすべてを満たす場合に、条件に合致すると判定する。
【0030】
【数1】
Ymax≧Yin≧Ymin ……(1)
Umax≧Uin≧Umin ……(2)
Vmax≧Vin≧Vmin ……(3)
以上のように指定されたキーに対して入力画像の画素値が合致するか否かが画素ごとに判定され、その判定結果がマスクパターン生成部12に出力される。マスクパターン生成部12は、キー判定部11の判定結果に応じて各画素のマスク値を設定し、マスクパターンを生成する。マスク値は、入力画像の各画素を、抽出する画素として有効とするか無効とするかを示す値であり、ここでは、有効の場合は“0”、無効の場合は“1”が設定されるものとする。これは、マスク値が“0”とされた画素を背景画像上に合成し、“1”とされた画素を合成しないように指定することを意味する。
【0031】
また、マスクパターン生成部12では、キー判定部11によってキーに合致すると判定された画素を有効とするか、あるいは合致しない画素を有効とするかについて、キーモードによって指定される。ここでは前者をキー・マッチモードと呼称し、後者をキー・ノット・マッチモードと呼称する。
【0032】
図3は、キー判定部の判定結果とマスク信号との対応をキーモード別に示す図である。
キー・ノット・マッチモードの場合は、図3(A)に示すように、キー判定部11における判定によりキーに合致した画素に対して、マスク信号のレベルを無効を示す“1”とし、合致しなかった画素に対してマスク信号のレベルを有効を示す“0”として出力する。逆に、キー・マッチモードの場合は、図3(B)に示すように、キーに合致した画素に対してマスク信号のレベルを“0”とし、合致しなかった画素に対してマスク信号のレベルを“1”として出力する。このように、キーモードを指定することにより、キーで指定した抽出領域を反転させることが可能となる。
【0033】
このマスクパターン生成部12から出力されたマスクパターンは、拡大縮小部14に入力される。拡大縮小部14は、指定された拡大縮小率に従って、入力されたマスクパターンに対してフィルタ処理を伴う拡大縮小処理を行う。フィルタ処理は、例えば画素を補間して画像を拡大する際、あるいは画素を間引いて画像を縮小する際に、元のマスクパターンの画素のうち、拡大縮小後の画素に対応する隣接する複数の画素のマスク値を基にして所定の係数を用いた演算を行うことで、拡大縮小後の画素のマスク値を算出する処理である。
【0034】
ここで、図4は、画像の拡大を行う場合のマスク値の算出例について説明する図である。
図4では、拡大処理時に、元のマスクパターン中の隣接する2画素のマスク値から、拡大処理後のマスク値を算出する場合の例を示している。また、5画素分の区間がおよそ7画素分の区間となるように拡大率が設定された場合を想定する。この図において、例えば、元のマスクパターンの画素aから画素bまでの区間は、拡大されたマスクパターンでは画素cにより補間される。この場合、画素cのマスク値は、この画素cに対応する元のマスクパターン上の隣接する2画素、すなわち画素aおよび画素bのマスク値を基に係数を用いた演算を行うことにより算出される。画素a、b、cのマスク値をそれぞれP(a)、P(b)、P(c)とし、画素aおよびbに適用する係数をそれぞれcoefa、coefbとすると、画素cのマスク値P(c)は以下の式(4)によって算出される。
【0035】
【数2】
P(c)=P(a)*coefa+P(b)*coefb ……(4)
拡大縮小部14は、拡大処理後のマスクパターンの画素を順次シフトし、上記の式(4)を用いた演算を繰り返し行って、マスク値を順次算出する。また、このような演算を、水平方向、垂直方向ともに行う。図4では、coefa、coefbをそれぞれ“0.3”“0.7”とした場合の算出結果を例示している。なお、図4では説明を簡単にするために、水平方向の画素にのみ上記の演算を行った場合について示している。
【0036】
このようなフィルタ処理を行うことにより、図4に示すように、拡大処理後の画素が、元のマスクパターンにおいてマスク値が“0”および“1”となる2画素が隣接する区間に対応する場合には、拡大処理後の画素のマスク値は“0”と“1”との中間値をとるようになる。このような画素は、拡大処理されたマスクパターンを用いて生成された合成画像において、元の画像と背景画像とが混ざり合って表示される領域となる。なお、図4では、合成時において、拡大処理後の入力画像が表示される画素を白色、背景画像が表示される画素を黒色でそれぞれ示し、入力画像と背景画像とが混ざり合って表示される画素を斜線で示している。
【0037】
一方、拡大縮小部13は、入力画像データの画素値の各成分に対して、拡大縮小部14と同様の演算を行うことにより、拡大縮小処理後の画像の画素値を算出する。これにより、拡大縮小部13から出力される画像の各画素と、拡大縮小部14から出力されるマスクパターンの各画素との位置関係は1対1である。従ってこの状態では、拡大縮小処理後された画像において、マスク値が“0”と“1”との中間値をとる画素に対応する画素は、合成時にマスク値に応じた合成率で背景画像の該当する画素と混ざり合うように指定されており、この画素が合成時の画質劣化を生むことになる。
【0038】
そこで、拡大縮小処理されたマスクパターンを、マスクパターン変換部15において、マスク判定基準情報に基づいてマスク値が有効と無効のいずれかを示すように変換することにより、元の画像が背景画像と混ざり合う領域をなくし、画質の劣化を防止する。本実施の形態では、例として、マスク判定基準情報により2つの判定モードが指定されるものとする。その1つは、マスク値が“0”である画素のみを有効としてそれ以外をすべて無効とする判定モードであり、他の1つは、マスク値が“1”である画素のみを無効としてそれ以外をすべて有効とする判定モードである
図5は、各判定モードに従って変換されたマスク値の例を示す図である。
【0039】
図5では、図4に示されたものと同じ領域の画素について、判定モードに応じたマスク値の変化を示している。拡大縮小部14によって拡大処理されたマスクパターンのマスク値は、図5(A)のように“0”から“1”までの値をとっている。これに対して、マスク値が“0”である画素のみ有効とする判定モードの場合は、図5(B)に示すように、“0”と“1”との中間のマスク値が指定されていた画素については、そのマスク値が“1”に変換される。また、マスク値が“1”である画素のみ無効とする判定モードの場合は、図5(C)に示すように、“0”と“1”との中間のマスク値が指定されていた画素については、そのマスク値が“0”に変換される。
【0040】
出力画素セレクタ16では、以上のように変換されたマスクパターンに従って、拡大縮小部13から出力された画像の各画素が選択出力される。ここで、画素置換モードにより画素値の置換を行わないように設定された場合には、マスクパターンのマスク値に応じて、各画素の信号が100%出力されるか、あるいはまったく出力されないかのいずれかとなり、合成処理部17で背景画像と合成された場合に、背景画像の色と元の画像の色とが混ざり合って表示される画素は存在しないことになる。従って、合成画像においては、合成された各画像の境界部が鮮明に表示されるようになり、画質が向上する。
【0041】
ところで、出力画素セレクタ16では、有効とされた画素の画素値を所定の値に置換して出力することが可能となっている。画素置換モードにより画素の置換を行うように設定された場合には、マスク値が“0”とされた画素について、置換画素値で指定された値に画素値の各成分が置換されて出力される。出力画素セレクタ16に入力されるマスクパターンは、すべてのマスク値が“0”または“1”のいずれかをとるので、置換された画素の領域の色は鮮明に表示され、背景画像と混ざり合うことがない。
【0042】
次に、図6および図7を用いて、具体的な画像例を挙げてその画像およびマスクパターンの遷移について説明する。この図6および図7では、テキストとしてアルファベットの“A”が描かれた画像を拡大して、テキスト“A”の表示領域をくり抜いて、その領域に背景画像が現れるように合成する場合を想定する。
【0043】
図6は、この場合のマスクパターンの遷移の例を示す図である。
まず、キー判定部11では、テキスト“A”の色に相当する画素値がキーとして指定され、さらに、マスクパターン生成部12において、キー・ノット・マッチモードが設定されることで、キーに合致しない領域が有効画素として指定されたマスクパターン61が得られる。このマスクパターン61では、すなわち、テキスト“A”を構成する画素のマスク値が無効を示す“1”とされ、それ以外の画素のマスク値が有効を示す“0”とされる。
【0044】
このようなマスクパターン61が、拡大縮小部14によって拡大処理される。処理後のマスクパターン62では、フィルタ処理による演算に伴って、テキスト“A”の表示領域の境界部の画素について、そのマスク値が“0”と“1”との中間値となっている。図6では例として、この画素のマスク値が“0.8”とされている。
【0045】
次に、このマスクパターン62がマスクパターン変換部15に入力される。ここで例えば、マスク値が“0”である画素のみを有効としてそれ以外をすべて無効とする判定モードがマスク判定基準情報により設定された場合には、“0”と“1”の中間のマスク値がすべて“1”に変換されて、有効画素および無効画素のみからなるマスクパターン63が生成される。
【0046】
図7は、図6に対応する画像の遷移の例を示す図である。
上述したように、入力画像71にはテキスト“A”が描かれている。そして、この入力画像71が、拡大縮小部13によって拡大処理され、画像72が生成される。画像72では、フィルタ処理による演算に伴って、テキスト“A”の表示領域の境界部において、テキスト“A”の色とそれに隣接する領域の色とが混ざり合った状態となっている。そして、このような画像72に対して、出力画素セレクタ16が、変換されたマスクパターン63に従って各画素を選択出力する。
【0047】
図7に示すように、マスクパターン63では、拡大された画像72中で、テキスト“A”の領域と、その領域および隣接領域の各色が混ざり合う部分とを含めて無効画素に指定されていることから、合成画像74では、入力画像71のテキスト“A”以外の領域の色と、背景画像73の色とがそれらの境界領域で混ざり合うことがなく、各部の境界が鮮明に表示される。
【0048】
以上のように、上記の画像処理装置では、フィルタ処理を伴う拡大縮小処理が施されたマスクパターンのマスク値を、マスクパターン変換部15においてマスク判定基準情報に従って2値のデータに変換し、出力画素セレクタにおいて、変換されたマスクパターンに従って拡大縮小処理された画像の各画素の出力選択が行われる。これにより、拡大縮小処理された画像と背景画像との境界部において、各画像の色が混ざり合って不鮮明な表示となることがなく、高品位な合成画像を生成することができる。
【0049】
また、出力画素セレクタ16において、有効画素の画素値を置換することにより、入力画像から抽出した領域の色を置換したり、あるいはこの領域に例えば透明化処理を施すといった特殊効果を施すことができるが、このような場合にも、背景画像との境界が鮮明な高品位な合成画像を生成することができる。
【0050】
また、上記の画像処理装置において用いた拡大縮小処理機能は従来から一般的に用いられていたものであり、このような一般的な拡大縮小処理機能を活用して、比較的簡易な構成により高品位な合成画像が生成されるので、部品コストの削減効果も得られる。
【0051】
ところで、上記の実施の形態では、マスクパターン変換部15において、マスク値が“0”である画素のみ有効とする場合と、マスク値が“1”である画素のみ無効とする場合の2つの判定モードを用いていた。これらの判定モードは、例えば、キーによって入力画像からテキストが抽出される場合に、この抽出領域を基にキー・マッチモードでマスクパターンを生成するか、あるいはキー・ノット・マッチモードで生成するかによって切り換えて用いることができる。
【0052】
一般に、キー・マッチモードによりテキスト自体を背景画像上に合成した場合には、テキストを細く表示した方が視認時の印象がよい。従って、マスク値が“0”である画素のみ有効とする判定モードを指定して、有効画素の領域を狭くすることが好ましい。逆に、キー・ノット・マッチモードにより、テキストの表示領域をくり抜いて背景画像を表示させる場合には、その領域を大きくした方が視認時の印象がよい。従って、マスク値が“1”である画素のみ無効とする判定モードを指定して、有効画素の領域を広くすることが好ましい。
【0053】
また、このような2つの判定モード以外に、例えば、各画素を有効とするか無効とするかを判定するためのマスク値のしきい値として、“0”と“1”の中間値を指定してもよい。さらに、このしきい値は、例えば入力画像データの状態や拡大縮小率等に応じて指定されるようにしてもよい。
【0054】
上記のしきい値が大きいほど有効画素の数が多くなり、その領域が広くなる。逆にしきい値が小さいほど有効画素の数が少なくなり、その領域が狭くなる。例えば、マスクパターン生成部12に対してキー・マッチモードが設定されている場合に、入力画像からの抽出領域が細い線や小さな点によって構成されるとき、あるいは線が太くても隣接する線との距離が短いとき等には、有効画素の数を多くすると、細かい線や点の部分がつぶれてしまうことがある。従ってこのような場合、一般にはしきい値を小さくすることが好ましい。
【0055】
また、このような入力画像を拡大した場合には、線や点の部分はつぶれにくいことから、しきい値を大きくすることが可能である。しかし、縮小した場合を考えると、細かい線や点が多い場合には、これらが消滅しないように、しきい値を大きくしてその表示領域を大きくする必要がある。これに対して、線がある程度太く、隣接する線との距離が近い場合には、縮小により線同士がつながってしまう場合があるので、しきい値を小さくする必要が生じる場合もある。
【0056】
一例として、キーによって入力画像からテキストを抽出する場合には、テキストのフォントごとに上記のしきい値を設定する方法が考えられる。さらに、各フォントに対する拡大縮小率や、キーモードの選択に応じて、しきい値を所定量ずつ上下に変化させてもよい。
【0057】
また、入力画像データが個別のファイルとして入力される場合には、このファイルの選択に応じて上記のしきい値が設定されるようにしてもよい。また、キーに基づいて抽出した領域の入力画像における画素の割合を算出して、この割合に応じてしきい値を自動的に設定するようにしてもよい。
【0058】
このように、上記の画像処理装置は、キーの指定とキーモードの指定との組み合わせに応じて、入力画像から様々な画像を容易に抽出することができるとともに、抽出される画像に応じて最適なしきい値をマスクパターン変換部15に設定することができるため、広い用途に対して好適に使用することが可能である。
【0059】
【発明の効果】
以上説明したように、本発明の画像処理装置によれば、マスクパターン変換手段によって変換された新たなマスクパターンが、各画素のマスク値に応じて変換された2値のマスク値によって構成されるようになり、他の画像との合成時に、各画像の境界部で色が混ざり合って不鮮明になることがなくなるので、合成された画像の画質を改善することができる。
【0060】
また、マスクパターン変換手段が、第2の拡大縮小手段からのマスクパターンの各画素のマスク値を所定のしきい値と比較して、その比較結果を基に有効画素とするか否かを判定し、このときに用いるしきい値を、第1および第2の拡大縮小手段における拡大縮小率に応じて、あるいは入力画像に応じて、任意に設定するようにしたことで、合成された画像の画質を一層改善することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係る画像処理装置の構成例を示すブロック図である。
【図2】入力されるキーについて、画素値の各成分に対するビット割り当てを示す図である。
【図3】キー判定部の判定結果とマスク信号との対応をキーモード別に示す図である。
【図4】画像の拡大を行う場合のマスク値の算出方法の例について説明する図である。
【図5】各判定モードに従って変換されたマスク値の例を示す図である。
【図6】マスクパターンの遷移の例を示す図である。
【図7】画像の遷移の例を示す図である。
【図8】画像を拡大して別の画像に合成する場合の従来の画像の例を示す図である
【符号の説明】
11……キー判定部、12……マスクパターン生成部、13、14……拡大縮小部、15……マスクパターン変換部、16……出力画素セレクタ、17……合成処理部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and an image processing method for synthesizing an input image on another image in accordance with a mask pattern for designating effective pixels at the time of synthesis from the input image, and in particular, performing an enlargement / reduction process on the input image. The present invention relates to an image processing apparatus and an image processing method for synthesizing on another image.
[0002]
[Prior art]
In recent years, images are handled as digital data, and images generated by computer graphics, received television images, playback images from recorded data such as optical disks, etc. are enlarged and reduced, and these images are combined with other images to create new ones. An image processing apparatus that generates a simple image is generally used. For example, some television receivers have a function of enlarging / reducing menu screens and character strings stored in advance in an internal memory, and combining and displaying them on a received television image. Also, a pixel having a specific value for luminance, color data, etc. is taken out from the enlarged / reduced image, and is subjected to special processing such as replacement of color data or transparency to be combined with another image. ing.
[0003]
When enlarging an image, interpolation of pixels according to the enlargement ratio is performed, and when reducing, reduction of pixels according to the reduction ratio is performed. In this case, for example, if the image is enlarged by arranging the same pixels as the original image or the image is reduced by simply thinning out the pixels, the image quality of the generated image often deteriorates significantly. For this reason, after performing a filter process that performs a calculation using a predetermined coefficient based on these pixel values using pixels in a predetermined section of the original image corresponding to the enlarged and reduced pixels, another image is obtained. Is generally synthesized.
[0004]
As a general conventional example for correcting pixel data of a generated image based on pixel data in a predetermined section in the original image, there is a hierarchical data generation device as follows. This hierarchical data generation device is a device that performs hierarchical encoding to generate image signals of a plurality of layers having different resolutions, and generates pixels in the upper layer based on the average value of the pixel values of adjacent four pixels in the lower layer. By replacing one pixel of the adjacent four pixels in the lower layer with the generated upper layer pixel, errors generated when the upper layer is generated are dispersed and superimposed in the lower layer data, and the amount of data is reduced. Compressed (see, for example, Patent Document 1).
[0005]
[Patent Document 1]
Japanese Unexamined Patent Publication No. 2000-92331 (paragraph numbers [0049] to [0061], FIG. 5)
[0006]
[Problems to be solved by the invention]
However, when an image subjected to the above-described filter processing at the time of enlargement / reduction is combined with another image, the color of the boundary portion of the image blurs and becomes an blurred image, and the image quality may deteriorate. Hereinafter, an image generated using such filter processing will be specifically described. Here, an image when an image is enlarged will be described as an example.
[0007]
FIG. 8 is a diagram illustrating an example of a conventional image when an image is enlarged and combined with another image.
FIG. 8 shows a case where the
[0008]
By the way, when the
[0009]
A similar phenomenon can occur when images are reduced and combined. In addition, in an image composed of thin lines and points such as font data, a phenomenon of image quality deterioration such as disappearance of lines and points occurs when the same filter processing is performed.
[0010]
The present invention has been made in view of such problems, and an object of the present invention is to provide an image processing apparatus capable of preventing deterioration in image quality when an image is enlarged and reduced and combined with another image. To do.
[0011]
Another object of the present invention is to provide an image processing method capable of preventing deterioration of image quality when an image is enlarged and reduced and combined with another image.
[0012]
[Means for Solving the Problems]
In the present invention, in order to solve the above-described problem, in an image processing apparatus that synthesizes the input image on another image in accordance with a mask pattern for designating effective pixels at the time of synthesis from the input image, the input image and the mask pattern The first and second enlargement / reduction means for executing enlargement / reduction processing accompanied by filter processing, and the respective mask values of the mask pattern output from the second enlargement / reduction means for each pixel A mask pattern conversion means for determining whether or not the pixel is the effective pixel and converting the pixel into a new mask pattern.Then, the mask pattern conversion means compares the mask value of each pixel with a predetermined threshold value and determines whether or not to make the effective pixel based on the comparison result. It is arbitrarily set according to the enlargement / reduction ratio in the first and second enlargement / reduction means.An image processing apparatus is provided.
[0013]
Here, the first and second enlargement / reduction means execute enlargement / reduction processing with filter processing on the input image and the mask pattern, respectively. The mask pattern conversion means determines whether or not to make each of these pixels effective pixels according to the mask value of each pixel of the mask pattern output from the second enlargement / reduction means, and converts it to a new mask pattern. To do. Therefore, the converted new mask pattern is composed of binary mask values converted according to the mask value of each pixel, and the color at the boundary portion of each image is combined with other images. Will not mix.Further, the mask pattern conversion means compares the mask value of each pixel of the mask pattern from the second enlargement / reduction means with a predetermined threshold value, and determines whether or not to make it an effective pixel based on the comparison result. To do. At this time, the threshold value used for the comparison is arbitrarily set according to the enlargement / reduction ratio in the first and second enlargement / reduction means.
[0014]
Further, according to the present invention, image processing for synthesizing the input image on another image according to a mask pattern for designating effective pixels at the time of synthesis from the input imageapparatus, An enlargement / reduction process with a filter process is performed on each of the input image and the mask pattern.Output from the first and second enlargement / reduction means and the second enlargement / reduction meansAccording to the mask value of each pixel of the mask patternBeforeDetermine whether each pixel is the effective pixel,Convert to new mask patternAnd a mask pattern conversion unit that compares the mask value of each pixel with a predetermined threshold value and determines whether or not to determine the effective pixel based on the comparison result. The threshold value is arbitrarily set according to the input image.Image processing characterized byapparatusIs provided.
[0015]
Here, the first and second enlargement / reduction means execute enlargement / reduction processing with filter processing on the input image and the mask pattern, respectively. The mask pattern conversion means determines whether or not to make each of these pixels effective pixels according to the mask value of each pixel of the mask pattern output from the second enlargement / reduction means, and converts it to a new mask pattern. To do. Therefore, the converted new mask pattern is composed of binary mask values converted according to the mask value of each pixel, and the color at the boundary portion of each image is combined with other images. Will not mix. Further, the mask pattern conversion means compares the mask value of each pixel of the mask pattern from the second enlargement / reduction means with a predetermined threshold value, and determines whether or not to make it an effective pixel based on the comparison result. To do. At this time, the threshold used for comparison is arbitrarily set according to the input image.The
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating a configuration example of an image processing apparatus according to an embodiment of the present invention.
[0017]
The image processing apparatus shown in FIG. 1 is an apparatus for generating a composite image obtained by scaling an input image and combining it on a background image. As an input image, for example, an image generated by cutting out a predetermined area from an image stored in a memory, a television image received by a television tuner, an image read out from a recording medium such as an optical disk, or the like is applied. It is possible.
[0018]
The image processing apparatus includes a
[0019]
The
[0020]
The mask
[0021]
The enlargement /
[0022]
The enlargement /
[0023]
The mask
[0024]
The
[0025]
The
[0026]
In this image processing apparatus, an enlargement / reduction process with a filter process is performed on an input image, and a similar enlargement / reduction process is also performed on a mask pattern generated from the input image. Then, the mask pattern that has been subjected to the enlargement / reduction process is converted into a new mask pattern by the mask
[0027]
Next, the operation of the image processing apparatus will be specifically described.
In the present embodiment, as an example, it is assumed that the pixel value of the input image is represented by a luminance component and a color difference component (blue, red). In the following description, it is assumed that each component of the pixel value is Yin, Uin, Vin, and these are each represented by 8-bit data. The key input to the
[0028]
FIG. 2 is a diagram showing bit allocation for each component of the pixel value for the input key.
As shown in FIG. 2, the keys indicating the upper limit value and the lower limit value of the pixel value are each input to the
[0029]
The
[0030]
[Expression 1]
Ymax ≧ Yin ≧ Ymin (1)
Umax ≧ Uin ≧ Umin (2)
Vmax ≧ Vin ≧ Vmin (3)
Whether or not the pixel value of the input image matches the specified key as described above is determined for each pixel, and the determination result is output to the mask
[0031]
Further, the mask
[0032]
FIG. 3 is a diagram showing the correspondence between the determination result of the key determination unit and the mask signal for each key mode.
In the case of the key-not-match mode, as shown in FIG. 3A, the mask signal level is set to “1” indicating invalidity for the pixel that matches the key by the determination in the
[0033]
The mask pattern output from the mask
[0034]
Here, FIG. 4 is a diagram for explaining an example of calculating a mask value when enlarging an image.
FIG. 4 shows an example in which the mask value after the enlargement process is calculated from the mask values of two adjacent pixels in the original mask pattern during the enlargement process. In addition, it is assumed that the enlargement ratio is set so that the section for five pixels becomes the section for about seven pixels. In this figure, for example, a section from pixel a to pixel b of the original mask pattern is interpolated by pixel c in the enlarged mask pattern. In this case, the mask value of the pixel c is calculated by performing an operation using a coefficient based on the mask values of two adjacent pixels on the original mask pattern corresponding to the pixel c, that is, the pixel a and the pixel b. The If the mask values of the pixels a, b, and c are P (a), P (b), and P (c), respectively, and the coefficients applied to the pixels a and b are coefa and coefb, respectively, the mask value P ( c) is calculated by the following equation (4).
[0035]
[Expression 2]
P (c) = P (a) * coefa + P (b) * coefb (4)
The enlargement /
[0036]
By performing such a filter process, as shown in FIG. 4, the pixel after the enlargement process corresponds to a section in which two pixels having mask values “0” and “1” in the original mask pattern are adjacent to each other. In this case, the mask value of the pixel after the enlargement process takes an intermediate value between “0” and “1”. Such a pixel is an area where the original image and the background image are mixed and displayed in the composite image generated using the enlarged mask pattern. In FIG. 4, at the time of synthesis, the pixels on which the enlarged input image is displayed are shown in white, the pixels on which the background image is displayed are shown in black, and the input image and the background image are mixed and displayed. Pixels are indicated by diagonal lines.
[0037]
On the other hand, the enlargement /
[0038]
Therefore, the mask pattern that has been subjected to the enlargement / reduction processing is converted by the mask
FIG. 5 is a diagram illustrating an example of mask values converted according to each determination mode.
[0039]
FIG. 5 shows changes in the mask value according to the determination mode for pixels in the same region as that shown in FIG. The mask value of the mask pattern enlarged by the enlargement /
[0040]
The
[0041]
By the way, the
[0042]
Next, the transition of the image and the mask pattern will be described using a specific image example with reference to FIGS. In FIGS. 6 and 7, it is assumed that an image in which the alphabet “A” is drawn as the text is enlarged, the display area of the text “A” is cut out, and the background image appears in the area. To do.
[0043]
FIG. 6 is a diagram showing an example of mask pattern transition in this case.
First, the
[0044]
Such a
[0045]
Next, the
[0046]
FIG. 7 is a diagram illustrating an example of image transition corresponding to FIG.
As described above, the text “A” is drawn in the
[0047]
As shown in FIG. 7, the
[0048]
As described above, in the above-described image processing apparatus, the mask value of the mask pattern that has been subjected to the enlargement / reduction process with the filter process is converted into binary data in accordance with the mask determination criterion information by the mask
[0049]
Further, by replacing the pixel value of the effective pixel in the
[0050]
In addition, the enlargement / reduction processing function used in the above-described image processing apparatus has been generally used in the past, and by using such a general enlargement / reduction processing function, a high-performance by a relatively simple configuration. Since a high-quality composite image is generated, an effect of reducing component costs can be obtained.
[0051]
By the way, in the above-described embodiment, the mask
[0052]
In general, when the text itself is synthesized on the background image by the key match mode, the impression of visual recognition is better when the text is thinly displayed. Therefore, it is preferable to specify a determination mode in which only a pixel having a mask value of “0” is valid to narrow the effective pixel area. On the other hand, when the background image is displayed by cutting out the text display area by the key-knot match mode, the impression at the time of visual recognition is better when the area is enlarged. Therefore, it is preferable to specify a determination mode in which only pixels having a mask value of “1” are invalid to widen the effective pixel area.
[0053]
In addition to these two determination modes, for example, an intermediate value between “0” and “1” is specified as a threshold value of a mask value for determining whether each pixel is valid or invalid. May be. Further, this threshold value may be specified according to the state of the input image data, the enlargement / reduction ratio, and the like.
[0054]
The larger the threshold value, the larger the number of effective pixels and the wider the area. Conversely, the smaller the threshold value, the smaller the number of effective pixels and the smaller the area. For example, when the key match mode is set for the mask
[0055]
Further, when such an input image is enlarged, the threshold value can be increased because lines and points are not easily collapsed. However, considering the case of reduction, when there are many fine lines and points, it is necessary to increase the display area by increasing the threshold value so that they do not disappear. On the other hand, when the line is thick to some extent and the distance from the adjacent line is short, the line may be connected due to the reduction, so the threshold may need to be reduced.
[0056]
As an example, when extracting text from an input image with a key, a method of setting the above threshold value for each font of the text can be considered. Furthermore, the threshold value may be changed up and down by a predetermined amount in accordance with the enlargement / reduction ratio for each font or the selection of the key mode.
[0057]
When the input image data is input as an individual file, the above threshold value may be set according to the selection of the file. Further, the ratio of pixels in the input image of the extracted region based on the key may be calculated, and the threshold value may be automatically set according to this ratio.
[0058]
As described above, the image processing apparatus can easily extract various images from the input image according to the combination of the key designation and the key mode designation, and is optimal for the extracted image. Since a simple threshold value can be set in the mask
[0059]
【The invention's effect】
As described above, according to the image processing apparatus of the present invention, the new mask pattern converted by the mask pattern conversion means is constituted by the binary mask value converted according to the mask value of each pixel. As a result, when the image is combined with another image, colors are not mixed at the boundary portion of each image and unclear, so that the image quality of the combined image can be improved.
[0060]
Also,The mask pattern conversion means compares the mask value of each pixel of the mask pattern from the second enlargement / reduction means with a predetermined threshold value and determines whether or not to make it an effective pixel based on the comparison result, The threshold used at this time is arbitrarily set according to the enlargement / reduction ratio in the first and second enlargement / reduction means, or according to the input image, so that the image quality of the synthesized image can be increased. One layerCan be improved.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration example of an image processing apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram showing bit allocation for each component of a pixel value for an input key.
FIG. 3 is a diagram illustrating a correspondence between a determination result of a key determination unit and a mask signal for each key mode.
FIG. 4 is a diagram illustrating an example of a method for calculating a mask value when enlarging an image.
FIG. 5 is a diagram illustrating an example of mask values converted according to each determination mode;
FIG. 6 is a diagram illustrating an example of transition of a mask pattern.
FIG. 7 is a diagram illustrating an example of image transition.
FIG. 8 is a diagram illustrating an example of a conventional image when an image is enlarged and combined with another image.
[Explanation of symbols]
DESCRIPTION OF
Claims (4)
前記入力画像および前記マスクパターンのそれぞれに対して、フィルタ処理を伴う拡大縮小処理を実行する第1および第2の拡大縮小手段と、
前記第2の拡大縮小手段から出力されたマスクパターンの各画素のマスク値に応じて前記各画素を前記有効画素とするか否かを判定し、新たなマスクパターンに変換するマスクパターン変換手段と、
を有し、
前記マスクパターン変換手段は、前記各画素のマスク値を所定のしきい値と比較して、その比較結果を基に前記有効画素とするか否かを判定し、前記しきい値は、前記第1および第2の拡大縮小手段における拡大縮小率に応じて任意に設定されることを特徴とする画像処理装置。In an image processing apparatus for synthesizing the input image on another image according to a mask pattern for designating effective pixels at the time of synthesis from the input image,
First and second enlargement / reduction means for executing enlargement / reduction processing with filter processing on each of the input image and the mask pattern;
Mask pattern conversion means for determining whether or not each pixel is to be the effective pixel according to a mask value of each pixel of the mask pattern output from the second enlargement / reduction means, and converting the pixel into a new mask pattern; ,
I have a,
The mask pattern conversion means compares the mask value of each pixel with a predetermined threshold value and determines whether or not to make the effective pixel based on the comparison result. the image processing apparatus according to claim Rukoto be optionally set depending on the scaling rate in the first and second scaling means.
前記入力画像および前記マスクパターンのそれぞれに対して、フィルタ処理を伴う拡大縮小処理を実行する第1および第2の拡大縮小手段と、
前記第2の拡大縮小手段から出力されたマスクパターンの各画素のマスク値に応じて前記各画素を前記有効画素とするか否かを判定し、新たなマスクパターンに変換するマスクパターン変換手段と、
を有し、
前記マスクパターン変換手段は、前記各画素のマスク値を所定のしきい値と比較して、その比較結果を基に前記有効画素とするか否かを判定し、前記しきい値は、前記入力画像に応じて任意に設定されることを特徴とする画像処理装置。 In an image processing apparatus for synthesizing the input image on another image according to a mask pattern for designating effective pixels at the time of synthesis from the input image,
First and second enlargement / reduction means for executing enlargement / reduction processing with filter processing on each of the input image and the mask pattern;
Mask pattern conversion means for determining whether or not each pixel is to be the effective pixel according to a mask value of each pixel of the mask pattern output from the second enlargement / reduction means, and converting the pixel into a new mask pattern; ,
Have
The mask pattern conversion means compares the mask value of each pixel with a predetermined threshold value and determines whether or not to make the effective pixel based on the comparison result. An image processing apparatus that is arbitrarily set according to an image.
前記入力画像および前記マスクパターンのそれぞれに対して、フィルタ処理を伴う拡大縮小処理を実行し、 For each of the input image and the mask pattern, an enlargement / reduction process with a filter process is performed,
前記拡大縮小処理が実行されたマスクパターンの各画素のマスク値に応じて、前記各画素を前記有効画素とするか否かを判定して新たなマスクパターンに変換し、 According to the mask value of each pixel of the mask pattern on which the enlargement / reduction processing has been performed, it is determined whether or not each pixel is the effective pixel, and is converted into a new mask pattern,
変換された前記新たなマスクパターンと前記拡大縮小処理が実行された前記入力画像の画像データとを用いて、前記他の画像との合成処理を実行し、 Using the converted new mask pattern and the image data of the input image on which the enlargement / reduction processing has been executed, a synthesis process with the other image is performed,
前記新たなマスクパターンに変換する処理では、前記各画素のマスク値を所定のしきい値と比較して、その比較結果を基に前記有効画素とするか否かを判定し、前記しきい値は、前記拡大縮小処理における拡大縮小率に応じて任意に設定されることを特徴とする画像処理方法。 In the process of converting to the new mask pattern, the mask value of each pixel is compared with a predetermined threshold value, and it is determined whether or not to be the effective pixel based on the comparison result. Is arbitrarily set according to the enlargement / reduction ratio in the enlargement / reduction process.
前記入力画像および前記マスクパターンのそれぞれに対して、フィルタ処理を伴う拡大縮小処理を実行し、 For each of the input image and the mask pattern, an enlargement / reduction process with a filter process is performed,
前記拡大縮小処理が実行されたマスクパターンの各画素のマスク値に応じて、前記各画素を前記有効画素とするか否かを判定して新たなマスクパターンに変換し、 According to the mask value of each pixel of the mask pattern on which the enlargement / reduction processing has been performed, it is determined whether or not each pixel is the effective pixel, and is converted into a new mask pattern,
変換された前記新たなマスクパターンと前記拡大縮小処理が実行された前記入力画像の画像データとを用いて、前記他の画像との合成処理を実行し、 Using the converted new mask pattern and the image data of the input image on which the enlargement / reduction processing has been executed, a synthesis process with the other image is performed,
前記新たなマスクパターンに変換する処理では、前記各画素のマスク値を所定のしきい値と比較して、その比較結果を基に前記有効画素とするか否かを判定し、前記しきい値は、前記入力画像に応じて任意に設定されることを特徴とする画像処理方法。 In the process of converting to the new mask pattern, the mask value of each pixel is compared with a predetermined threshold value, and it is determined whether or not to be the effective pixel based on the comparison result. Is arbitrarily set according to the input image.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003136763A JP4192671B2 (en) | 2003-05-15 | 2003-05-15 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003136763A JP4192671B2 (en) | 2003-05-15 | 2003-05-15 | Image processing apparatus and image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004343367A JP2004343367A (en) | 2004-12-02 |
| JP4192671B2 true JP4192671B2 (en) | 2008-12-10 |
Family
ID=33526595
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003136763A Expired - Fee Related JP4192671B2 (en) | 2003-05-15 | 2003-05-15 | Image processing apparatus and image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4192671B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6739374B2 (en) * | 2017-03-01 | 2020-08-12 | 株式会社日立製作所 | Image processing apparatus, image processing method, and image processing program |
-
2003
- 2003-05-15 JP JP2003136763A patent/JP4192671B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004343367A (en) | 2004-12-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5920659A (en) | Method and apparatus for scaling image data having associated transparency data | |
| KR100292160B1 (en) | Image synthesis method, image synthesis device, and data recording medium | |
| US8385639B2 (en) | Compressive coding device and visual display control device | |
| JP4749477B2 (en) | Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium | |
| JP3466656B2 (en) | Method and apparatus for filling object-based rasterized images | |
| EP0650287A2 (en) | Image processing method and apparatus | |
| KR101276056B1 (en) | Image processing apparatus and image processing method thereof | |
| TWI328391B (en) | Prioritized pdl segmentation producing two bit selector | |
| JPH1188700A (en) | Color image signal encoding method, decoding method, and color image processing apparatus | |
| US20010048771A1 (en) | Image processing method and system for interpolation of resolution | |
| JP4226484B2 (en) | Method and system for improving weak selector signal of mixed raster signal | |
| JP3007001B2 (en) | Image processing apparatus and method | |
| JP4192671B2 (en) | Image processing apparatus and image processing method | |
| JP4507279B2 (en) | Image processing apparatus, image processing method, and program thereof | |
| US7567259B2 (en) | System and method for display compositing | |
| JP4164215B2 (en) | Image processing method, apparatus, and recording medium | |
| JP4140362B2 (en) | Image processing device | |
| JP2703223B2 (en) | Color image processing equipment | |
| JP3503136B2 (en) | Pixel interpolation device and pixel interpolation method | |
| JP4590986B2 (en) | Encoding device, decoding device, encoding method, decoding method, and program thereof | |
| CA2058363C (en) | Method for decoding compressed images | |
| JPH07262351A (en) | Image processing apparatus and control method thereof | |
| JP3054299B2 (en) | Image processing apparatus and method | |
| TWI335549B (en) | Segmentation method and system for multiple raster content (mrc) representation of documents | |
| JPH08251397A (en) | Image processing method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060413 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080318 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080603 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080801 |
|
| 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: 20080826 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080908 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111003 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |