JP4307485B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP4307485B2 JP4307485B2 JP2006352937A JP2006352937A JP4307485B2 JP 4307485 B2 JP4307485 B2 JP 4307485B2 JP 2006352937 A JP2006352937 A JP 2006352937A JP 2006352937 A JP2006352937 A JP 2006352937A JP 4307485 B2 JP4307485 B2 JP 4307485B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- block
- pixel
- correlation
- domain
- 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)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
本発明は、画像処理装置及び画像処理方法に関し、特に画像の解像度変換を行う画像処理装置及び画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method, and more particularly to an image processing apparatus and an image processing method that perform resolution conversion of an image.
画像の解像度を変換する手法として、画像の自己相関性(フラクタル性)を利用した方法(フラクタル解像度変換法)が知られている。 As a method for converting the resolution of an image, a method (fractal resolution conversion method) using the autocorrelation (fractal property) of the image is known.
例えば、図14に示すように、元画像における注目領域(以下「ドメインブロック」という)の画像(以下「ドメインブロック画像」という。)の解像度を変換する処理は以下のように行われる。 For example, as shown in FIG. 14, the process of converting the resolution of an image (hereinafter referred to as “domain block image”) of a region of interest (hereinafter referred to as “domain block image”) in the original image is performed as follows.
まず、ドメインブロックより大きな親領域候補の画像(以下「レンジブロック画像」という。)であってドメインブロック画像と相似度が高い画像を元画像中から探索する。具体的には元画像から複数のレンジブロック画像を抽出して、夫々をドメインブロックと同じサイズに縮小する。 First, an image of a parent region candidate larger than the domain block (hereinafter referred to as “range block image”) having a high similarity to the domain block image is searched from the original image. Specifically, a plurality of range block images are extracted from the original image, and each is reduced to the same size as the domain block.
その後、縮小した各レンジブロック画像のうち、ドメインブロック画像との相似度が最も高かったものを親領域(以下「レンジブロック」と称する)に設定する。 After that, among the reduced range block images, the one having the highest similarity to the domain block image is set as a parent region (hereinafter referred to as “range block”).
次に、ドメインブロック画像を縮小前のレンジブロックで置換して出力画像とする。 Next, the domain block image is replaced with the range block before reduction to obtain an output image.
この操作を元画像中のドメインブロックの位置をずらしながら繰り返し行うことで元画像の解像度を変換する。 By repeating this operation while shifting the position of the domain block in the original image, the resolution of the original image is converted.
しかし、この方法では画像の置換処理をドメインブロック毎に行うために隣接する他のドメインブロックとの処理結果の連続性が少ない。このため、図12の矢印で示すように、2つのドメインブロックの境界にブロック歪が発生するという問題が生じる。この歪を軽減する方法として、隣接するドメインブロックとブロックの一部が重複するようにドメインブロックを選択するブロックオーバーラップ処理が知られている(例えば、特許文献1,2参照)。
However, in this method, since image replacement processing is performed for each domain block, the continuity of processing results with other adjacent domain blocks is small. This causes a problem that block distortion occurs at the boundary between two domain blocks, as indicated by the arrows in FIG. As a method for reducing this distortion, block overlap processing is known in which domain blocks are selected so that adjacent domain blocks overlap part of the blocks (see, for example,
また、自己相関性を利用した解像度変換方法の応用として、直交変換を用いる方法と組み合わせた解像度変換方法が知られている(例えば、特許文献3参照)。これは、フラクタル解像度変換にて得られたレンジブロックの画像と元画像にそれぞれ直交変換を施し、レンジブロックの画像について直交変換されたものの高域成分のみを元画像について直交変換されたものと合成する。そして得られた合成画像に逆直交変換を施すことによって最終的な解像度変換画像を得る手法である。この方法では画像の基本部分である低域成分は元画像をそのまま使用し、補充するべき高域成分のみを自己相関性を利用して補うことで、画像の歪が少なくかつ鮮明な変換画像を得ることが可能となる。
しかしながら、上述した従来の技術においてはオーバーラップ部の処理方法として加算平均が用いられている。具体的には、図13に示すように、隣接するドメインブロックが互いにオーバーラップするように抽出すると、オーバーラップする部分の画素値は、各ドメインブロック画像に対して設定されたレンジブロック13a,13b,13cの画像の画素値を平均化したものとなる。従って、レンジブロック13a,13b,13cの重複している部分の画像の画素値が各レンジブロックで一致していれば明瞭な画素値が出力される。しかし、各レンジブロックで画素値が異なっている部分、例えば、斜線で示した部分1305の画像の画素値は黒でも白でもないグレーが出力されて画像としてはノイズやボケとして認識される。
However, in the above-described conventional technique, the averaging method is used as a method for processing the overlap portion. Specifically, as illustrated in FIG. 13, when adjacent domain blocks are extracted so as to overlap each other, the pixel values of the overlapping portions are the
すなわち、この方法では重複している画像の内容にかかわらず常に一定の割合で加算合成を行うため、処理を行う画像の絵柄によってはノイズやボケが出力画像に発生してしまう場合があった。 That is, in this method, addition and synthesis are always performed at a constant rate regardless of the contents of overlapping images, and noise and blur may occur in the output image depending on the pattern of the image to be processed.
本発明の目的は、元画像の解像度変換をする際に、隣接するドメインブロックの境界に生じるノイズやボケの発生を抑制することができる画像処理装置及び画像処理方法を提供することにある。 An object of the present invention is to provide an image processing apparatus and an image processing method capable of suppressing the occurrence of noise and blur occurring at the boundary between adjacent domain blocks when converting the resolution of an original image.
上記目的を達成するために、請求項1記載の画像処理装置は、フラクタル解像度変換法を用いて、複数の画素で構成される元画像を所定の解像度変換率で解像度変換した解像度変換画像を生成する画像処理装置であって、別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出手段と、前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出手段と、抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位のブロック相関度および画素単位の画素相関度を算出する算出手段と、前記算出手段で算出したブロック相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択手段と、前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択手段で選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御手段とを有することを特徴とする。
In order to achieve the above object, the image processing apparatus according to
上記目的を達成するために、請求項5記載の画像処理方法は、フラクタル解像度変換法を用いて、複数の画素で構成される元画像を所定の解像度変換率で解像度変換した解像度変換画像を生成する画像処理方法であって、別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出ステップと、前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出ステップと、抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位の相関度および画素単位の相関度を算出する算出ステップと、前記算出ステップで算出したブロック単位の相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択ステップと、前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択手段で選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御ステップとを有することを特徴とする。
In order to achieve the above object, the image processing method according to
上記目的を達成するために、請求項9記載の画像処理装置は、フラクタル解像度変換法を用いて、複数の画素で構成される元画像から解像度変換画像を生成する画像処理装置であって、別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出手段と、前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出手段と、抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位のブロック相関度を算出する第1の算出手段と、前記算出手段で算出したブロック相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択手段と、前記選択手段で選択されたレンジブロック画像と当該レンジブロックに対応するドメインブロック画像の夫々の画素値を用いて、各画素の画素相関度を算出する第2の算出手段と、前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択手段で選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御手段とを有することを特徴とする。
In order to achieve the above object, an image processing apparatus according to
上記目的を達成するために、請求項10記載の画像処理方法は、フラクタル解像度変換法を用いて、複数の画素で構成される元画像から解像度変換画像を生成する画像処理方法であって、別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出ステップと、前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出ステップと、抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位のブロック相関度を算出する第1の算出ステップと、前記算出ステップで算出したブロック相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択ステップと、前記選択ステップで選択されたレンジブロック画像と当該レンジブロックに対応するドメインブロック画像の夫々の画素値を用いて、各画素の画素相関度を算出する第2の算出ステップと、前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択ステップで選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御ステップとを有することを特徴とする。
In order to achieve the above object, an image processing method according to
本発明によれば、フラクタル解像度変換におけるオーバーラップ処理において、元画像の解像度変換をする際に、隣接するドメインブロックの境界に生じるノイズやボケの発生を抑制することができる。 According to the present invention, in the overlap processing in fractal resolution conversion, when the resolution conversion of the original image is performed, it is possible to suppress the occurrence of noise and blur occurring at the boundary between adjacent domain blocks.
[第1の実施形態]
以下、本発明の第1の実施の形態を図面を用いて詳述する。
[First Embodiment]
Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings.
図1は、本発明の第1の実施の形態に係る画像処理装置の構成を概略的に示すブロック図である。 FIG. 1 is a block diagram schematically showing the configuration of the image processing apparatus according to the first embodiment of the present invention.
図1において、画像処理装置100は、処理対象である元画像の画像データであるS1(以下「元画像S1」という。)を保持する元画像保持部1と、元画像S1からドメインブロック画像となる画像データS3(以下「ドメインブロック画像S3」という。)を切り出すドメインブロック画像切出部2とを備える。さらに、画像処理装置100は、元画像S1からレンジブロックの探索範囲内に存在し、レンジブロックの候補画像となる画像データS4(以下「レンジブロック候補画像S4」という。)を切り出すレンジブロック画像切出部3とを備える。このレンジブロック候補画像S4は、後述するレンジブロック画像選択部6内にある一次記憶部(不図示)に順に保存される。なお、本発明の説明において、画像データを切り出す、または抽出するという表現を用いているが、この表現は、元画像からドメインブロック画像やレンジブロック画像をトリミングするということに限定されるものではない。従って、実際に対象となる領域の画像データを別のメモリなどへ切り出すことや、コピーすることも含むが、単に、対象となる領域の画像データを特定することも含む。
In FIG. 1, an
ここで、元画像S1の画像サイズは256×256画素、ドメインブロック画像S3の画像サイズは4×4画素、レンジブロック探索範囲は設定されたドメインブロックを中心とした12×12画素とする。また、レンジブロック候補画像S4の画像サイズはドメインブロック画像S3の画像サイズに対して、任意の拡大率でユーザ指定されるものである。例えば、元画像S1に対する拡大率が縦横2倍としてユーザに指定された場合は、レンジブロック候補画像S4のサイズは8×8画素となる。 Here, the image size of the original image S1 is 256 × 256 pixels, the image size of the domain block image S3 is 4 × 4 pixels, and the range block search range is 12 × 12 pixels centered on the set domain block. Further, the image size of the range block candidate image S4 is designated by the user at an arbitrary enlargement ratio with respect to the image size of the domain block image S3. For example, when the enlargement ratio with respect to the original image S1 is designated by the user as vertical and horizontal twice, the size of the range block candidate image S4 is 8 × 8 pixels.
なお、本発明の実施形態の説明中に用いる「拡大率」は、単位面積あたりの画素数の増加率(解像度変換率)に相当するものであることに注意されたい。例えば、縦横2倍の拡大率と記載した場合は、元画像の1画素あたりの面積に解像度変換後の画像の4画素が相当するように画素数を増加させることとなる。 It should be noted that the “enlargement ratio” used in the description of the embodiment of the present invention corresponds to the increase rate (resolution conversion ratio) of the number of pixels per unit area. For example, when the enlargement ratio of 2 times in the vertical and horizontal directions is described, the number of pixels is increased so that the area per pixel of the original image corresponds to 4 pixels of the image after resolution conversion.
さらに、画像処理装置100は、切り出したレンジブロック候補画像S4を拡大率の逆数倍に縮小した縮小レンジブロック候補画像となる画像データS5(以下「縮小レンジブロック候補画像S5」という。)を出力するレンジブロック画像縮小部4を備える。例えば、上述のように拡大率が縦横2倍にユーザ指定された場合、レンジブロック画像縮小部4はレンジブロック候補画像S4を縦横1/2倍にして、その画素サイズを4×4画素とする。これにより、縮小レンジブロック候補画像S5の画像サイズをドメインブロック画像S3の画像サイズと同じサイズにすることができる。
Furthermore, the
また、画像処理装置100は、ドメインブロック画像S3及び縮小レンジブロック候補画像S5の間のブロック相関度を示すデータであるS6(以下「ブロック相関度S6」という。)及び画素相関度を示すデータであるS7(以下「画素相関度S7」という。)を算出するレンジブロック相関比較部5を備える。上記算出されたブロック相関度S6及び画素相関度S7はレンジブロック候補画像S4と対応づけられた後に上記一次記憶部に記憶される。
Further, the
画像処理装置100は、さらに、レンジブロック探索範囲内から縮小レンジブロック候補画像S5のブロック相関度S6が最も高いレンジブロック候補画像S4を選択し、正式なレンジブロック画像となる画像データS8(以下「選択レンジブロック画像S8」という。)とするレンジブロック画像選択部6を備える。このとき、選択レンジブロック画像S8に対応する縮小レンジブロック候補画像S5について算出されたブロック相関度S6及び画素相関度S7は、夫々選択レンジブロック相関度を示すデータであるS9(以下「選択レンジブロック相関度S9」という。)及び選択レンジブロック画素相関度を示すデータであるS10(以下「選択レンジブロック画素相関度S10」という。)に設定される。
The
また、画像処理装置100は、選択レンジブロック画像S8、選択レンジブロック相関度S9及び選択レンジブロック画素相関度S10を保持する選択保持部7を備える。選択保持部7は、図3に示すフォーマットで選択レンジブロック画像S8、選択レンジブロック相関度S9、及び選択レンジブロック画素相関度S10を保持する。
The
ドメインブロック画像切出部2は、元画像S1からドメインブロック画像S3を切り出す。ここで、切り出すドメインブロック画像S3が隣接する別のドメインブロック画像とオーバーラップする量(以後、オーバーラップ量と称する)は、本実施の形態ではユーザによって適宜設定されるものとする。本実施の形態においては、ドメインブロック画像S3のオーバーラップ量は2画素に設定されている。
The domain block
また、画像処理装置100は、ドメインブロック画像切出部2が元画像S1の全範囲についてドメインブロック画像S3の切り出しを終了したときに、出力画像を構成する画素の座標S14を設定する出力画素座標設定部8を備える。このとき、元画像S1の解像度は上記設定された拡大率で乗じた大きさだけ高くし、その解像度を高くした元画像S1の各画素の座標が出力画像を構成する画素の座標として設定される。本実施の形態においては、元画像S1のサイズが256×256画素、拡大率が縦横2倍であるので、512×512個の座標が座標S14として順に設定される。
Further, the
選択保持部7は、出力画素座標設定部8で画素の座標S14が設定される毎にその座標S14にオーバーラップする選択レンジブロック画像S8をレンジブロック画像群となる画像データS11(以下「レンジブロック画像群S11」という。)に設定する。このとき、選択保持部7は、レンジブロック画像群S11の夫々に対応する選択レンジブロック相関度S9、及び選択レンジブロック画素相関度S10をレンジブロック相関度群を示すデータであるS12(以下「レンジブロック相関度群S12」という。)及びレンジブロック画素相関度群を示すデータであるS13(以下「レンジブロック画素相関度群S13」という。)に設定する。
Each time the output pixel coordinate setting
さらに画像処理部100は、上記読み出したレンジブロック画像群S11、レンジブロック相関度群S12及びレンジブロック画素相関度群S13に基づきオーバーラップ処理を行うオーバーラップ処理部9とを備える。このオーバーラップ処理により、座標S14における出力画像S15を出力する。
The
図2は、図1の画像処理装置100により実行される画像処理の手順を示すフローチャートである。
FIG. 2 is a flowchart showing a procedure of image processing executed by the
図2において、まず、元画像保持部1が元画像S1を保持しているものとする(ステップS201)。続いて、ドメインブロック画像切出部2が元画像S1からドメインブロック画像S3を1つ切り出す(ステップS202)。
In FIG. 2, first, it is assumed that the original
次に、ステップS202で切り出されたドメインブロック画像S3の位置を中心としたレンジブロック探索範囲内からレンジブロック画像の候補となるレンジブロック候補画像S4をレンジブロック画像切出部3が1つ切り出す(ステップS203)。その後、レンジブロック画像縮小部4が切り出したレンジブロック候補画像S4を拡大率の逆数倍に縮小して、縮小レンジブロック候補画像S5を出力する(ステップS204)。次に、レンジブロック相関比較部5が、ドメインブロック画像S3及び縮小レンジブロック候補画像S5の間のブロック相関度S6及び画素相関度S7を算出する(ステップS205)。
Next, the range block
その後、レンジブロックの探索が終了したか否か、具体的には、現在のドメインブロック画像S3の位置を中心とするレンジブロック探索範囲内の選択レンジブロック画像となりうる全てのレンジブロック候補画像S4に対して、上述の処理がなされたか否かを判別する(ステップS206)。このとき、まだ処理されていないレンジブロック候補画像S4があるときは(ステップS206でNO)、レンジブロック画像切出部3によって、新たなレンジブロック候補画像S4を切り出して、ステップS203からの処理を繰り返す。
Thereafter, whether or not the search for the range block has ended, specifically, all the range block candidate images S4 that can be the selected range block image within the range block search range centered on the position of the current domain block image S3. On the other hand, it is determined whether or not the above processing has been performed (step S206). At this time, if there is a range block candidate image S4 that has not yet been processed (NO in step S206), the range block
一方、ステップS206の判別の結果、全てのレンジブロックに対して、ステップS205の相関度算出処理が終了したときは、ステップS207の処理に進む。ステップS207では、レンジブロック画像選択部6が全てのレンジブロック候補画像S4のうち、ドメインブロック画像S3及び縮小レンジブロック候補画像S5の間のブロック相関度S6が最も高いレンジブロック候補画像S4を選択レンジブロック画像S8として選択する。その後、選択レンジブロック画像S8に対応するブロック相関度S6及び画素相関度S7を夫々選択レンジブロック相関度S9及び選択レンジブロック画素相関度S10に設定する(ステップS208)。
On the other hand, as a result of the determination in step S206, when the correlation calculation processing in step S205 is completed for all the range blocks, the process proceeds to step S207. In step S207, the range block
その後、ドメインブロック画像切出部2がドメインブロック画像S3の探索が終了したか否か、具体的には、ドメインブロック画像切出部2が元画像S1の全範囲についてドメインブロック画像S3の切り出しを終了したか否かを判別する(ステップS209)。このとき、元画像S1の全範囲についてドメインブロック画像S3を切り出していないときは(ステップS209でNO)、ドメインブロック画像S3の切出位置を更新し(ステップS210)、ステップS202からの処理を繰り返す。
Thereafter, whether or not the domain block
一方、ステップS209の判別の結果、元画像S1の全範囲に対してドメインブロック画像S3の切り出し処理が終了したときは、ステップS211の処理に進む。 On the other hand, as a result of the determination in step S209, when the clipping process of the domain block image S3 is completed for the entire range of the original image S1, the process proceeds to step S211.
ステップS211では、出力画素座標設定部8が、上記拡大率だけ解像度を高くした元画像S1を構成する画素の1座標を、出力画像S15を構成する画素の座標S14に設定する。その後、選択保持部7が、出力画素座標設定部8によって設定された座標S14にオーバーラップする選択レンジブロック画像S8をレンジブロック画像群S11として設定する(ステップS212)。このとき、レンジブロック画像群S11の夫々に対応する選択レンジブロック相関度S9、及び選択レンジブロック画素相関度S10をレンジブロック相関度群S12及びレンジブロック画素相関度群S13に設定する。
In step S211, the output pixel coordinate setting
その後、オーバーラップ処理部9が画素座標S14に対して、後述するオーバーラップ処理を行い、座標S14に対する出力画像S15を決定する(ステップS213)。
Thereafter, the
次に、解像度を高くした元画像S1の各画素の座標について出力画像S15が決定されたか否かを判別する(ステップS214)。このとき、出力画像S15が決定されていない座標があるときは(ステップS214でNO)、ステップS209からの処理を繰り返す。 Next, it is determined whether or not the output image S15 has been determined for the coordinates of each pixel of the original image S1 with increased resolution (step S214). At this time, if there is a coordinate for which the output image S15 has not been determined (NO in step S214), the processing from step S209 is repeated.
一方、ステップS213の判別の結果、解像度を高くした元画像S1の全画素の座標について出力画像S15が決定されたとき、画像出力を行い(ステップS215)、本処理を終了する。 On the other hand, when the output image S15 is determined for the coordinates of all the pixels of the original image S1 with a higher resolution as a result of the determination in step S213, image output is performed (step S215), and this process is terminated.
次に、図2のステップS205の相関度算出処理の方法を具体的に説明する。 Next, the method of the correlation degree calculation process in step S205 in FIG. 2 will be specifically described.
まず、現在処理中のドメインブロック画像S3及び縮小レンジブロック候補画像S5の夫々を構成する画素をPd(X,Y)、Pr(X,Y)と表す。このとき、同一座標におけるドメインブロック画像S3及び縮小レンジブロック候補画像S5の夫々の画素の差分絶対値G(X,Y)が画素相関度S7として算出される。 First, the pixels constituting each of the domain block image S3 and the reduced range block candidate image S5 currently being processed are represented as Pd (X, Y) and Pr (X, Y). At this time, the difference absolute value G (X, Y) of each pixel of the domain block image S3 and the reduced range block candidate image S5 at the same coordinates is calculated as the pixel correlation S7.
つまり、画素相関度S7は、G(X,Y)=|Pd(X,Y)−Pr(X,Y)|という式で算出される。但し、この座標値(X,Y)は元画像の解像度における1画素に相当する値であるので、高解像度に変換した後の解像度における1画素とは一致しない。そこで、高解像度変換後の1画素の座標値G’(x,y)に対して、G(X,Y)の値を割り当てるようにして不図示のメモリなどに格納する。本実施形態では、拡大率が2倍であるので、高解像度変換後の4画素が元画像の1画素に相当する。従って、G(X,Y)の値をこの座標値に相当する4画素に割り当てればよい。 That is, the pixel correlation S7 is calculated by the equation G (X, Y) = | Pd (X, Y) −Pr (X, Y) |. However, since this coordinate value (X, Y) is a value corresponding to one pixel in the resolution of the original image, it does not coincide with one pixel in the resolution after conversion to high resolution. Therefore, the G (X, Y) value is assigned to the coordinate value G ′ (x, y) of one pixel after high resolution conversion and stored in a memory (not shown). In this embodiment, since the enlargement ratio is twice, four pixels after high resolution conversion correspond to one pixel of the original image. Therefore, the value of G (X, Y) may be assigned to 4 pixels corresponding to this coordinate value.
一方、ドメインブロック画像S3及び縮小レンジブロック候補画像S5の同一座標における夫々の画素の差分絶対値の総和がブロック相関度S6である。 On the other hand, the sum of the absolute difference values of the respective pixels at the same coordinates in the domain block image S3 and the reduced range block candidate image S5 is the block correlation S6.
つまり、ブロック相関度S6は、B=Σ{G(X,Y)}という式で算出される。 That is, the block correlation S6 is calculated by the equation B = Σ {G (X, Y)}.
尚、本実施の形態では、相関度の算出は差分絶対値により算出したが、これに限定されるものでなく、例えば、積率相関係数や順位相関係数等を適用してもよい。 In the present embodiment, the degree of correlation is calculated based on the absolute value of the difference. However, the present invention is not limited to this. For example, a product-moment correlation coefficient or a rank correlation coefficient may be applied.
図4は、図2のステップS213で実行するオーバーラップ処理の手順を示すフローチャートである。以下の処理は、制御部としてのオーバーラップ処理部9が実行するものである。
FIG. 4 is a flowchart showing the procedure of the overlap process executed in step S213 of FIG. The following processing is executed by the
本処理を行う場合、画素相関度影響係数Wを予め決定しておく。ここで、画素相関度影響係数Wの初期値は、ドメインブロック画像S3のサイズとするが、扱う画像の傾向などシステムの性格に応じてユーザが変更することができる。本実施の形態では、ドメインブロック画像S3のサイズは4×4であるので、画素相関度影響係数Wの初期値は16である。なお、画素相関度影響係数Wは、自己相関性の高い画像である場合は小さい値が適している。また、ノイズが多い画像である場合は大きい値が適している。 When performing this processing, the pixel correlation degree influence coefficient W is determined in advance. Here, the initial value of the pixel correlation degree influence coefficient W is the size of the domain block image S3, but can be changed by the user according to the system characteristics such as the tendency of the image to be handled. In the present embodiment, since the size of the domain block image S3 is 4 × 4, the initial value of the pixel correlation degree influence coefficient W is 16. Note that a small value is suitable for the pixel correlation degree influence coefficient W in the case of an image having high autocorrelation. A large value is suitable for an image with a lot of noise.
図4において、まず、オーバーラップ処理部9は、ステップS212で設定されたレンジブロック画像群S11、レンジブロック相関度群S12、レンジブロック画素相関度群S13と、ステップS211で設定された座標S14を取得する(ステップS401)。なお、ステップS209までの処理は、ドメインブロック単位に実行されるが、オーバーラップ処理では、画素単位に処理を行う。なぜなら、オーバーラップ処理は、最終的な解像度変換画像の各画素値を決定する処理であるからである。特に、本発明の場合、上述した通り、ドメインブロック画像を切り出す場合に、他のドメインブロック画像と画素が重複するようにしている。各ドメインブロックには最も相関度の高い縮小レンジブロック画像が1つ存在するだけである。しかし、そのドメインブロックに含まれる画素を基準とすると、ドメインブロック画像を画素が重複するように切り出しているため、画素には複数の縮小レンジブロック画像が対応する場合が生じる。従って、オーバーラップ処理では、複数の縮小レンジブロック画像が対応している画素の画素値の決定を以下に示す処理で実現する。
In FIG. 4, first, the
従って、ステップS401で取得した座標S14に相当する画素の画素値決定処理となる。また、ステップS401で取得するレンジブロック画像群S11は座標S14を含むレンジブロック画像であり、ここではレンジブロック画像の数がnで表される。オーバーラップ処理部9は、カウンタ値であるnをn=1に設定し(ステップS402)、レンジブロック画像群S11から縮小レンジブロック候補画像S5の1番目の画像を抽出する(ステップS403)。その後、オーバーラップ処理部9は、抽出された縮小レンジブロック候補画像S5の中から、画素値決定処理の対象座標S14に対応する座標位置にある画素値P(1)を抽出する(ステップS404)。また、オーバーラップ処理部9は、n=1の縮小レンジブロック候補画像S5に対応するブロック相関度B(1)及び、座標S14に対応する座標位置の画素相関度G(1)を抽出する(ステップS405)。その後、オーバーラップ処理部9は、相関度評価値H(1)=B(1)+W*G(1)を算出する(ステップS406)。
Accordingly, the pixel value determination process of the pixel corresponding to the coordinate S14 acquired in step S401 is performed. The range block image group S11 acquired in step S401 is a range block image including the coordinates S14, and here, the number of range block images is represented by n. The
次に、オーバーラップ処理部9は、レンジブロック画像群S11に含まれる縮小レンジブロック候補画像S5が全て処理されたか否かを判別する(ステップS407)。このとき、まだ処理されていない縮小レンジブロック候補画像S5があれば(ステップS407でNO)、nの値を1つインクリメントして(ステップS410)、レンジブロック画像群S11からn=2となる縮小レンジブロック候補画像S5を抽出し、ステップS403からの処理を繰り返す。
Next, the
一方、ステップS407の判別の結果、座標S14に相当する位置の画素を有する全てのレンジブロック画像の処理が終了した場合は、オーバーラップ処理部9は算出されたn個の相関度評価値H(n)が最大となるnを決定する。つまり、式:H(N)=max(H(n))を満たすNを求める(ステップS408)。従って、座標S14の画素位置におけるn個の相関度評価値のうち、最大となる相関度評価値となった画素を有するものが縮小レンジブロック候補画像Nとなる。
On the other hand, as a result of the determination in step S407, when the processing of all the range block images having the pixel at the position corresponding to the coordinate S14 is completed, the
その後、座標S14における出力画素S15の画素値を縮小レンジブロック候補画像Nの対象位置の画素値P(N)に設定して(ステップS409)、本処理を終了する。 Thereafter, the pixel value of the output pixel S15 at the coordinate S14 is set to the pixel value P (N) at the target position of the reduced range block candidate image N (step S409), and this process ends.
上述した処理は特定の座標S14に対する処理である。従って、座標S14とは異なる座標の画素に対する画素値の決定処理は、上記のオーバーラップ処理を実行することになる。 The above-described processing is processing for a specific coordinate S14. Therefore, the pixel value determination process for the pixel having a coordinate different from the coordinate S14 executes the overlap process.
つまり、オーバーラップ処理部9では、解像度変換後のある座標Qにおける画素値を決定する場合に、その座標Qの画素にオーバーラップしているn個のレンジブロックの夫々におけるブロック相関度と、レンジブロック画像内の画素で、座標Qに対応する位置にある画素の画素相関度を求め、これらの相関度を利用して相関度の評価を行う。つまり、相関度評価値を求める。そして、相関度評価値が最も高いレンジブロックにおける、当該座標Qに対応する画素の画素値を解像度変換後の画像の画素値として設定する。
That is, when determining the pixel value at a certain coordinate Q after resolution conversion, the
ここで、本実施の形態では、出力画素S15をP(N)としたが、これに限定されるわけでなく、複数の画素の値を相関度に応じた加重加算によって算出してもよい。具体的には、出力画素S15の値をΣ{P(n)*H(n)}/Σ{H(n)}とするようにしてもよい。この算出方法は、元画像S1が自己相関度が低い傾向にある場合に有効である。 In this embodiment, the output pixel S15 is P (N). However, the present invention is not limited to this, and the values of a plurality of pixels may be calculated by weighted addition according to the degree of correlation. Specifically, the value of the output pixel S15 may be Σ {P (n) * H (n)} / Σ {H (n)}. This calculation method is effective when the original image S1 tends to have a low autocorrelation.
図5は、図2の画像処理の概念図である。 FIG. 5 is a conceptual diagram of the image processing of FIG.
図5(a)に示すように、まず元画像S1からドメインブロック画像S3が1つ切り出されると、レンジブロック探索範囲501にあるレンジブロック候補画像S4が順に切り出される。レンジブロック候補画像S4を縮小した縮小レンジブロック候補画像S5のうち、ブロック相関度S6が最も高い縮小レンジブロック候補画像S5の縮小前の画像(レンジブロック候補画像S4)が選択レンジブロック画像S8として選択される。 As shown in FIG. 5A, when one domain block image S3 is first cut out from the original image S1, range block candidate images S4 in the range block search range 501 are cut out in order. Among the reduced range block candidate images S5 obtained by reducing the range block candidate image S4, the image before reduction (range block candidate image S4) of the reduced range block candidate image S5 having the highest block correlation S6 is selected as the selected range block image S8. Is done.
また、図5(b)に示すように、更新前のドメインブロック画像S3’と更新後のドメインブロック画像S3とが、一定量のオーバーラップ部502を有するようにドメインブロック画像S3の切り出し位置は順次更新される。
Further, as shown in FIG. 5B, the cut-out position of the domain block image S3 is such that the domain block image S3 ′ before update and the domain block image S3 after update have a certain amount of
元画像S1からのドメインブロックS3の切り出しが全て終了すると、上記拡大率で解像度を高くした元画像S1の画素の座標を出力画像S15を構成する画素の座標S14に順次設定し、座標S14とオーバーラップするn個のレンジブロック画像群S11を取得する。例えば、座標S14が図5(c)に示す位置にあるとき、レンジブロック画像群S11に含まれる選択レンジブロック画像S8はブロック画像503,504の2つである。なお、ここでは説明を簡略化するために、レンジブロック画像S8の数を2つ(ブロック画像503,504)としている。
When all the cutouts of the domain block S3 from the original image S1 are completed, the coordinates of the pixels of the original image S1 whose resolution is increased by the above-described enlargement ratio are sequentially set to the coordinates S14 of the pixels constituting the output image S15. The n range block image groups S11 to be wrapped are acquired. For example, when the coordinate S14 is at the position shown in FIG. 5C, the selected range block images S8 included in the range block image group S11 are two
次に、レンジブロック画像群S11に含まれる選択レンジブロック画像S8のうち、最も相関度評価値Hが大きいレンジブロック画像の座標S14の画素値を出力画素S15に設定する。図5(c)の例では、座標S14における相関度評価値Hはブロック画像504の方がブロック画像503より大きいことになる。このため、出力画素S15はブロック画像503の座標S14の画素P1でなく、ブロック画像504の座標S14の画素P2が設定される。
Next, among the selected range block images S8 included in the range block image group S11, the pixel value of the coordinate S14 of the range block image having the largest correlation evaluation value H is set as the output pixel S15. In the example of FIG. 5C, the correlation degree evaluation value H at the coordinate S <b> 14 is greater in the
なお、同様に、座標S14’が図5(c)の位置にあるとき、レンジブロック画像群S11に含まれる選択レンジブロック画像S8はブロック画像504、505の2つである。この場合、相関度評価値Hはブロック画像504の方がブロック画像505より大きいことになる。このため、座標S14’の出力画素S15はブロック画像504の画素となる。
Similarly, when the coordinate S14 'is at the position shown in FIG. 5C, the selected range block image S8 included in the range block image group S11 is two
以上、本実施の形態によれば、元画像S1から複数のドメインブロック画像S3のうち、隣接するドメインブロック画像が互いにユーザなどに指定されたオーバーラップ量(2画素)だけ重なりあうように切り出される(ステップS202)。次に、各ドメインブロックS3に対する選択レンジブロック画像S8を取得した後(ステップS207)、ユーザ指定された拡大率(縦横2倍)に解像度を高くした元画像S1の各画素の座標を順に座標S14に設定する(ステップS211)。その後、座標S14とオーバーラップするn個の選択レンジブロック画像S8のうち相関度評価値H(n)が最も高いものを算出し(ステップS408)、その選択レンジブロック画像S8に含まれる座標S14の画像を出力画像S15に設定する(ステップS409)。 As described above, according to the present embodiment, among the plurality of domain block images S3 from the original image S1, the adjacent domain block images are cut out so as to overlap each other by the overlap amount (2 pixels) designated by the user or the like. (Step S202). Next, after acquiring the selected range block image S8 for each domain block S3 (step S207), the coordinates of each pixel of the original image S1 whose resolution is increased to the enlargement ratio (twice vertically and horizontally) specified by the user are sequentially coordinate S14. (Step S211). Thereafter, the n selected range block images S8 that overlap with the coordinate S14 are calculated with the highest correlation evaluation value H (n) (step S408), and the coordinates S14 included in the selected range block image S8 are calculated. The image is set as the output image S15 (step S409).
すなわち、元画像S1を解像度変換をしたときの各画素の出力画像S15は、その出力画像S15の座標S14とオーバーラップする選択レンジブロック画像S8のうち相関度評価値Hが最も高くなるものに基づき設定される。 That is, the output image S15 of each pixel when the resolution of the original image S1 is converted is based on the selected range block image S8 that overlaps the coordinate S14 of the output image S15 and that has the highest correlation evaluation value H. Is set.
これにより、元画像S1の解像度変換をする際に、隣接するドメインブロック画像S3の境界に生じるノイズやボケの発生を抑制することができる。 Thereby, when the resolution conversion of the original image S1 is performed, it is possible to suppress the occurrence of noise and blur occurring at the boundary between adjacent domain block images S3.
尚、元画像S1のサイズ、ドメインブロック画像S3のサイズ、オーバーラップ量、拡大率等は、本実施の形態に係る値に限定されるものでなく、変更した場合でも同様の手順によって本発明を適用することが可能である。 Note that the size of the original image S1, the size of the domain block image S3, the overlap amount, the enlargement ratio, and the like are not limited to the values according to the present embodiment. It is possible to apply.
また、本実施の形態では、元画像S1の全てのドメインブロック画像S3に対応する選択レンジブロック画像S8を決定した後にオーバーラップ処理を行っている。しかし、これに限定されるわけでなく、例えば、レンジブロック探索とオーバーラップ処理を並行もしくは交互に行うようにしてもよい。この場合、選択保持部7のメモリ容量を削減することができる。
In the present embodiment, the overlap process is performed after the selection range block image S8 corresponding to all the domain block images S3 of the original image S1 is determined. However, the present invention is not limited to this. For example, range block search and overlap processing may be performed in parallel or alternately. In this case, the memory capacity of the
また、本実施の形態では、ステップS206においてブロック相関度S6とともに画素相関度S7の算出を行う形態を開示している。しかしながら、画素相関度S7は、選択レンジブロック画像の選択には寄与しないため、ステップS206の時点で画素相関度S7を算出しなくてもよい。ステップS206で算出しない場合、ステップS207においてブロック相関度S6に基づいて選択レンジブロック画像を選択した後、当該レンジブロック画像に対して画素相関度S7を算出するように構成すればよい。このように構成することで、画素相関度S7の算出に関する処理時間の低下や負荷の軽減といった効果が得られる。 In the present embodiment, a mode is disclosed in which the pixel correlation S7 is calculated together with the block correlation S6 in step S206. However, since the pixel correlation S7 does not contribute to selection of the selected range block image, it is not necessary to calculate the pixel correlation S7 at the time of step S206. If not calculated in step S206, the pixel correlation S7 may be calculated for the range block image after selecting the selected range block image based on the block correlation S6 in step S207. With this configuration, effects such as a reduction in processing time and a reduction in load related to the calculation of the pixel correlation S7 can be obtained.
また、本実施の形態では、レンジブロック相関比較部5でブロック相関度S6のみならず、画素相関度S7の算出も行なった。しかし、この形態に限定されるわけでなく、例えば、画素相関度S7の算出は行なわず、相関度評価値H(n)が選択ブロック相関度B(n)の値であるとしてオーバーラップ処理を行うようにしてもよい。
In this embodiment, the range block
この場合、図3と違い図6に示すように、選択保持部7は、画素相関度S7を含まないフォーマットのデータを保持することとなるので、選択保持部7のメモリ容量を減らすことができ、画像処理装置100を小型化することができる。よって、扱う絵柄や要求される変換品質によっては、この変形例を適用することによってシステムコストを削減することが可能である。
In this case, unlike FIG. 3, as shown in FIG. 6, the
[第2の実施形態]
図7は、本発明の第2の実施形態に係る画像処理装置の構成を概略的に示すブロック図である。
[Second Embodiment]
FIG. 7 is a block diagram schematically showing the configuration of the image processing apparatus according to the second embodiment of the present invention.
図7において、図1の画像処理装置100の構成要素と同じものには同一の符号を付して重複した説明を省略する。
In FIG. 7, the same components as those of the
図7において、画像処理装置100aは、ドメインブロック画像S3に直交変換処理を実施し、変換ドメインブロック画像S15を出力するドメインブロック画像直交変換部70を備える。この直交変換に用いられる行列の基底には特に制限は無いが、一般的には離散コサイン変換(DCT)が適当である。また、離散コサイン変換の代わりに、離散フーリエ変換やアダマール変換等を行なっても良い。
In FIG. 7, the
さらに、画像処理装置100aは、変換ドメインブロック画像S15の係数を上記拡大率だけ拡張した拡張ドメインブロック画像S16を出力する係数拡張部71を備える。図9に示すように、拡張された部分901の係数の値は不定でよく、また、ドメインブロック画像S3のサイズが4×4画素、拡大率が縦横2倍の場合は、拡張ドメインブロック画像S16のサイズは8×8画素となる。
Furthermore, the
また、画像処理装置100aは、選択レンジブロック画像S8に直交変換処理を実施し、変換レンジブロック画像S17を出力するレンジブロック画像直交変換部11を備える。この直交変換に用いられる行列の基底はドメインブロック画像直交変換部70で使用される行列の基底と同じものを用いる。
Further, the
さらに、画像処理装置100aは、図10に示すように、係数拡張部71により拡張された拡張ドメインブロック画像S16の係数不定の部分901を変換レンジブロック画像S17の該当する部分902の係数で置換する係数置換部72を備える。この置換処理により、置換ドメインブロック画像S18が出力される。
Furthermore, as shown in FIG. 10, the
画像処理装置100aは、さらに、置換ドメインブロック画像S18に逆直交変換処理を実施して、逆変換ドメインブロック画像S19を出力する逆変換部73を備える。
The
本実施形態では、さらに、この逆変換ドメインブロック画像S19で一次記憶部にある選択レンジブロック画像S8を更新する。 In the present embodiment, the selected range block image S8 in the primary storage unit is further updated with the inverse transformed domain block image S19.
図8は、図7の画像処理装置100aにより実行される画像処理の手順を示すフローチャートである。
FIG. 8 is a flowchart showing a procedure of image processing executed by the
図8の処理は、図2の処理と基本的に同じであり、図2のステップと同一のステップには同一符号を付して重複した説明は省略し、以下に図2の処理と異なる部分についてのみ説明する。 The processing in FIG. 8 is basically the same as the processing in FIG. 2, the same steps as those in FIG. 2 are denoted by the same reference numerals, and redundant description is omitted, and the following differences from the processing in FIG. Only will be described.
図8の処理は、ステップS208とステップS209の間にステップS801〜S805が配されている点でのみ図2のものと異なる。 The process of FIG. 8 differs from that of FIG. 2 only in that steps S801 to S805 are arranged between steps S208 and S209.
図8において、まず、ステップS201〜S208までの処理で、選択レンジブロック画像S8、選択レンジブロック相関度S9、選択レンジブロック画素相関度S10を設定する。 In FIG. 8, first, the selection range block image S8, the selection range block correlation degree S9, and the selection range block pixel correlation degree S10 are set by the processing from steps S201 to S208.
次に、ドメインブロック画像直交変換部70が、ドメインブロック画像S3に直交変換処理を実施して、変換ドメインブロック画像S15を生成する(ステップS801)。その後、係数拡張部71が変換ドメインブロック画像S15の係数を拡大率に従って拡張した拡張ドメインブロック画像S16を生成する(ステップS802)。
Next, the domain block image
また、レンジブロック画像直交変換部11が、選択レンジブロック画像S8に直交変換処理を実施して、変換レンジブロック画像S17を生成する(ステップS803)。その後、係数置換部72が、拡張ドメインブロック画像S16の係数不定の部分901を変換レンジブロック画像S17の該当する係数で置換した置換ドメインブロック画像S18を生成する(ステップS804)。
In addition, the range block image
その後、逆変換部73が、置換ドメインブロック画像S18に逆直交変換処理を実施して逆変換ドメインブロック画像S19を生成する(ステップS805)。この逆変換ドメインブロック画像S19で不図示の一次記憶部に記憶されている選択レンジブロック画像S8が更新される。
Thereafter, the
その後、ドメインブロック画像S3の探索が終了すると(ステップS209でYES)、座標S14を設定し(ステップS211)、レンジブロック画像群S11を設定する(ステップS212)。ここで、本変形例では、レンジブロック画像群S11に含まれる画像は、S805で生成された逆変換ドメインブロック画像S19で更新された選択レンジブロック画像S8である。 Thereafter, when the search for the domain block image S3 is completed (YES in step S209), the coordinate S14 is set (step S211), and the range block image group S11 is set (step S212). Here, in this modification, the image included in the range block image group S11 is the selected range block image S8 updated by the inverse transform domain block image S19 generated in S805.
その後、オーバーラップ処理により座標S14の出力画像S15が解像度を高くした元画像S1の画素の全座標について決定され(ステップS213,S214)、画像出力がされ(ステップS215)、本処理を終了する。 Thereafter, the output image S15 of the coordinate S14 is determined for all the coordinates of the pixels of the original image S1 with a higher resolution by the overlap processing (steps S213 and S214), the image is output (step S215), and this processing ends.
以上、本実施形態では、元画像S1から抽出したドメインブロック画像に直交変換を施して得られた変換ドメインブロック画像S15を、所定の拡大率で拡大した拡張ドメインブロック画像S16の低域成分の係数にはドメインブロック画像S3から生成された係数をそのまま流用する。また、拡張ドメインブロック画像S16の高域成分は選択レンジブロック画像S8に直交変換を施して得られた変換レンジブロック画像S17の係数で置換する。係数置換された置換ドメインブロック画像S18に逆直交変換処理を施すことで得られた逆変換ドメインブロック画像S19を選択レンジブロック画像S8の代わりに用いてオーバーラップ処理を行っている。これにより、図11に示すように、元画像S1に対する解像度変換後の出力画像(11b)は、第1の実施形態で得られる画像(11a)より歪が少なくかつ鮮明となる。また、元画像S1に忠実な解像度変換画像が生成される。 As described above, in the present embodiment, the coefficient of the low frequency component of the extended domain block image S16 obtained by enlarging the transformed domain block image S15 obtained by performing orthogonal transformation on the domain block image extracted from the original image S1 at a predetermined enlargement ratio. In this case, the coefficient generated from the domain block image S3 is used as it is. Further, the high frequency component of the extended domain block image S16 is replaced with the coefficient of the transform range block image S17 obtained by performing orthogonal transform on the selected range block image S8. An overlap process is performed by using an inverse transform domain block image S19 obtained by performing an inverse orthogonal transform process on the replacement domain block image S18 subjected to coefficient replacement, instead of the selected range block image S8. As a result, as shown in FIG. 11, the output image (11b) after resolution conversion for the original image S1 is less distorted and clearer than the image (11a) obtained in the first embodiment. In addition, a resolution-converted image that is faithful to the original image S1 is generated.
また、本発明の目的は、以下の処理を実行することによって達成される。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。 The object of the present invention is achieved by executing the following processing. That is, a storage medium that records a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is the process of reading the code.
この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.
また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。 Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.
また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。 Further, the present invention includes a case where the function of the above-described embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Is also included.
更に、前述した実施形態の機能が以下の処理によって実現される場合も本発明に含まれる。即ち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う場合である。 Furthermore, a case where the functions of the above-described embodiment are realized by the following processing is also included in the present invention. That is, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.
100 画像処理装置
1 元画像保持部
2 ドメインブロック画像切出部
3 レンジブロック画像切出部
4 レンジブロック画像縮小部
5 レンジブロック相関比較部
6 レンジブロック画像選択部
7 選択保持部
8 出力画素座標設定部
9 オーバーラップ処理部
DESCRIPTION OF
Claims (10)
別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出手段と、
前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出手段と、
抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位のブロック相関度および画素単位の画素相関度を算出する算出手段と、
前記算出手段で算出したブロック相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択手段と、
前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択手段で選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御手段とを有することを特徴とする画像処理装置。 An image processing apparatus that generates a resolution-converted image obtained by converting a resolution of an original image composed of a plurality of pixels at a predetermined resolution conversion rate using a fractal resolution conversion method,
First image extraction means for extracting a plurality of domain block images from the original image such that a part of the pixels overlaps with another domain block image;
Second image extraction means for extracting a plurality of range block images for each of the extracted domain block images from the original image;
A calculation means for calculating a block unit block correlation and a pixel unit pixel correlation between each of the extracted domain block images and a plurality of range block images for the domain block image;
Selection means for selecting a range block image corresponding to each domain block image based on the block correlation calculated by the calculation means;
The pixel values of the pixels constituting the image generated by converting the resolution of the original image are set to the range block image selected by the selection unit, the block correlation in the selected range block image, and the pixel value An image processing apparatus comprising: control means for determining based on a pixel correlation.
前記選択手段で選択したレンジブロック画像に対して直交変換処理を施す第2の直交変換処理手段と、
前記第1の直交変換処理手段で直交変換されたドメインブロック画像の係数を前記所定の解像度変換率に応じて拡張する係数拡張手段と、
前記係数拡張手段で拡張されたドメインブロック画像の係数が不定の部分領域を前記第2の直交変換処理手段で直交変換されたレンジブロック画像における前記部分領域に対応する領域の係数で置換する係数置換手段と、
前記係数置換手段で置換されたドメインブロック画像に逆直交変換処理を施す逆変換手段と、を有し、
前記制御手段は、前記逆変換がされたドメインブロック画像を前記選択されたレンジブロック画像の代わりに用いて画素値を決定することを特徴とする請求項1記載の画像処理装置。 First orthogonal transform processing means for performing orthogonal transform processing on the domain block image extracted by the first image extracting means;
Second orthogonal transform processing means for performing orthogonal transform processing on the range block image selected by the selecting means;
Coefficient expansion means for expanding the coefficient of the domain block image orthogonally transformed by the first orthogonal transformation processing means according to the predetermined resolution conversion rate;
Coefficient replacement that replaces a partial area in which the coefficient of the domain block image expanded by the coefficient expansion means is indefinite with a coefficient of an area corresponding to the partial area in the range block image orthogonally transformed by the second orthogonal transform processing means. Means,
Inverse transform means for performing inverse orthogonal transform processing on the domain block image replaced by the coefficient replacement means,
The image processing apparatus according to claim 1, wherein the control unit determines a pixel value by using the domain block image subjected to the inverse transform instead of the selected range block image.
別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出ステップと、
前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出ステップと、
抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位の相関度および画素単位の相関度を算出する算出ステップと、
前記算出ステップで算出したブロック単位の相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択ステップと、
前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択手段で選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御ステップとを有することを特徴とする画像処理方法。 An image processing method for generating a resolution-converted image obtained by converting a resolution of an original image composed of a plurality of pixels at a predetermined resolution conversion rate using a fractal resolution conversion method,
A first image extraction step of extracting a plurality of domain block images from the original image so that some of the pixels overlap with another domain block image;
A second image extraction step of extracting a plurality of range block images for each of the extracted domain block images from the original image;
A calculation step of calculating the degree of correlation in block units and the degree of correlation in pixel units between each of the extracted domain block images and a plurality of range block images for the domain block images;
A selection step of selecting a range block image corresponding to each domain block image based on the degree of correlation in block units calculated in the calculation step;
The pixel values of the pixels constituting the image generated by converting the resolution of the original image are set to the range block image selected by the selection unit, the block correlation in the selected range block image, and the pixel value And a control step of determining based on the degree of pixel correlation.
前記選択ステップで選択したレンジブロック画像に対して直交変換処理を施す第2の直交変換処理ステップと、
前記第1の直交変換処理ステップで直交変換されたドメインブロック画像の係数を前記所定の解像度変換率に応じて拡張する係数拡張ステップと、
前記係数拡張ステップで拡張されたドメインブロック画像の係数が不定の部分領域を前記第2の直交変換処理ステップで直交変換されたレンジブロック画像における前記部分領域に対応する領域の係数で置換する係数置換ステップと、
前記係数置換ステップで置換されたドメインブロック画像に逆直交変換処理を施す逆変換ステップと、を有し、
前記制御ステップでは、前記逆変換がされたドメインブロック画像を前記選択されたレンジブロック画像の代わりに用いて画素値を決定することを特徴とする請求項5記載の画像処理方法。 A first orthogonal transformation processing step for performing orthogonal transformation processing on the domain block image extracted in the first image extraction step;
A second orthogonal transform processing step for performing orthogonal transform processing on the range block image selected in the selection step;
A coefficient expansion step of expanding the coefficient of the domain block image orthogonally transformed in the first orthogonal transformation processing step according to the predetermined resolution conversion rate;
Coefficient replacement for substituting a partial area in which the coefficient of the domain block image expanded in the coefficient expansion step is indefinite with a coefficient of an area corresponding to the partial area in the range block image orthogonally transformed in the second orthogonal transformation processing step Steps,
An inverse transform step for performing an inverse orthogonal transform process on the domain block image replaced in the coefficient replacement step,
6. The image processing method according to claim 5, wherein in the control step, a pixel value is determined by using the domain block image subjected to the inverse transform instead of the selected range block image.
別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出手段と、
前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出手段と、
抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位のブロック相関度を算出する第1の算出手段と、
前記算出手段で算出したブロック相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択手段と、
前記選択手段で選択されたレンジブロック画像と当該レンジブロックに対応するドメインブロック画像の夫々の画素値を用いて、各画素の画素相関度を算出する第2の算出手段と、
前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択手段で選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御手段とを有することを特徴とする画像処理装置。 An image processing apparatus that generates a resolution-converted image from an original image composed of a plurality of pixels using a fractal resolution conversion method,
First image extraction means for extracting a plurality of domain block images from the original image such that a part of the pixels overlaps with another domain block image;
Second image extraction means for extracting a plurality of range block images for each of the extracted domain block images from the original image;
First calculation means for calculating a block unit degree of block correlation between each extracted domain block image and a plurality of range block images for the domain block image;
Selection means for selecting a range block image corresponding to each domain block image based on the block correlation calculated by the calculation means;
Second calculation means for calculating the pixel correlation of each pixel using the pixel values of the range block image selected by the selection means and the domain block image corresponding to the range block;
The pixel values of the pixels constituting the image generated by converting the resolution of the original image are set to the range block image selected by the selection unit, the block correlation in the selected range block image, and the pixel value An image processing apparatus comprising: control means for determining based on a pixel correlation.
別のドメインブロック画像と画素の一部が重複するように元画像からドメインブロック画像を複数抽出する第1の画像抽出ステップと、
前記抽出されたドメインブロック画像の各々に対する複数のレンジブロック画像を前記元画像から抽出する第2の画像抽出ステップと、
抽出された前記各ドメインブロック画像と、当該ドメインブロック画像に対する複数のレンジブロック画像とのブロック単位のブロック相関度を算出する第1の算出ステップと、
前記算出ステップで算出したブロック相関度に基づいて、前記各ドメインブロック画像に対応するレンジブロック画像を選択する選択ステップと、
前記選択ステップで選択されたレンジブロック画像と当該レンジブロックに対応するドメインブロック画像の夫々の画素値を用いて、各画素の画素相関度を算出する第2の算出ステップと、
前記元画像を解像度変換することで生成される画像を構成する画素の画素値を、前記選択ステップで選択されたレンジブロック画像と、当該選択されたレンジブロック画像におけるブロック相関度と、当該画素における画素相関度とに基づいて決定する制御ステップとを有することを特徴とする画像処理方法。 An image processing method for generating a resolution-converted image from an original image composed of a plurality of pixels using a fractal resolution conversion method,
A first image extraction step of extracting a plurality of domain block images from the original image so that some of the pixels overlap with another domain block image;
A second image extraction step of extracting a plurality of range block images for each of the extracted domain block images from the original image;
A first calculation step of calculating a block unit block correlation between each of the extracted domain block images and a plurality of range block images corresponding to the domain block images;
A selection step of selecting a range block image corresponding to each domain block image based on the block correlation calculated in the calculation step;
A second calculation step of calculating a pixel correlation degree of each pixel using each pixel value of the range block image selected in the selection step and the domain block image corresponding to the range block;
The pixel values of the pixels constituting the image generated by converting the resolution of the original image, the range block image selected in the selection step, the block correlation in the selected range block image, and the pixel And a control step of determining based on the degree of pixel correlation.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006352937A JP4307485B2 (en) | 2006-12-27 | 2006-12-27 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006352937A JP4307485B2 (en) | 2006-12-27 | 2006-12-27 | Image processing apparatus and image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008167041A JP2008167041A (en) | 2008-07-17 |
| JP4307485B2 true JP4307485B2 (en) | 2009-08-05 |
Family
ID=39695902
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006352937A Expired - Fee Related JP4307485B2 (en) | 2006-12-27 | 2006-12-27 | Image processing apparatus and image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4307485B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5192342B2 (en) * | 2008-10-03 | 2013-05-08 | キヤノン株式会社 | Image processing apparatus and image processing method |
| US20120163720A1 (en) * | 2009-09-04 | 2012-06-28 | Kabushiki Kaisha Toshiba | Image processing apparatus and method thereof |
-
2006
- 2006-12-27 JP JP2006352937A patent/JP4307485B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008167041A (en) | 2008-07-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7268599B2 (en) | Information processing device and method | |
| JP3031613B2 (en) | Color / shade image input / output device and input / output method | |
| JP5173898B2 (en) | Image processing method, image processing apparatus, and program | |
| EP3637363B1 (en) | Image processing device, image processing method and image processing program | |
| JP2004508639A (en) | Image matching | |
| JP2003143399A (en) | Image processing apparatus and program | |
| JP2003274157A (en) | Image processor, image processing method, image processing program, and computer readable recording medium with image processing program recorded | |
| JP2015232869A (en) | Image processing apparatus, image processing method, and image processing program | |
| KR101702925B1 (en) | An apparatus for scaling a resolution using an image patch of multi video frames and method for using it | |
| KR20110086826A (en) | Method, apparatus and software for determining motion vectors | |
| KR101653038B1 (en) | An apparatus for scaling a resolution using an image patch and method for using it | |
| JP4307485B2 (en) | Image processing apparatus and image processing method | |
| CN108986155B (en) | Depth estimation method and depth estimation apparatus for multi-viewpoint image | |
| JP2018190394A (en) | Data extension method and device in monitoring video | |
| JP2002319020A (en) | Image processing device and method | |
| CN116645513B (en) | Watermark extraction methods, model training methods, devices, electronic equipment and media | |
| JP3305140B2 (en) | Encoding device and method | |
| JP5198500B2 (en) | Signal processing apparatus and program | |
| JP4190739B2 (en) | Image feature value generating apparatus and method, and storage medium storing image feature value generating program | |
| JP2000348019A (en) | Data processing device, data processing method, and medium | |
| JP2005236864A (en) | Digital watermarking system and method | |
| JP4300787B2 (en) | Image processing apparatus and method, recording medium, and program | |
| JP5192342B2 (en) | Image processing apparatus and image processing method | |
| JP5085589B2 (en) | Image processing apparatus and method | |
| JP4493614B2 (en) | Analysis result information compression program, analysis result information expansion program, storage medium storing analysis result information compression program, storage medium storing analysis result information expansion program, analysis result information compression apparatus, analysis result information expansion apparatus, analysis result Information compression method and analysis result information expansion method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 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: 20090421 |
|
| 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: 20090428 |
|
| 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: 20120515 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120515 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130515 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140515 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |