JP5781370B2 - Image processing apparatus, image processing method, image display apparatus including image processing apparatus, program, and recording medium - Google Patents

Image processing apparatus, image processing method, image display apparatus including image processing apparatus, program, and recording medium Download PDF

Info

Publication number
JP5781370B2
JP5781370B2 JP2011126622A JP2011126622A JP5781370B2 JP 5781370 B2 JP5781370 B2 JP 5781370B2 JP 2011126622 A JP2011126622 A JP 2011126622A JP 2011126622 A JP2011126622 A JP 2011126622A JP 5781370 B2 JP5781370 B2 JP 5781370B2
Authority
JP
Japan
Prior art keywords
pixel
interpolation
temporary
input
value
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.)
Active
Application number
JP2011126622A
Other languages
Japanese (ja)
Other versions
JP2012253684A (en
Inventor
豊久 松田
豊久 松田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2011126622A priority Critical patent/JP5781370B2/en
Publication of JP2012253684A publication Critical patent/JP2012253684A/en
Application granted granted Critical
Publication of JP5781370B2 publication Critical patent/JP5781370B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)

Description

本発明は、高解像度処理を行う画像処理装置、画像処理方法、画像処理装置を備える画像表示装置、プログラムおよび記録媒体に関する。   The present invention relates to an image processing device that performs high-resolution processing, an image processing method, an image display device including the image processing device, a program, and a recording medium.

画像処理および映像処理において用いられる重要な技術としてアップスケーリング処理が知られている。例えば、近年のFHD(Full High Definition)解像度に対応したディスプレイの普及に伴い、SD(Standard Definition)解像度の映像コンテンツをFHD解像度ディスプレイで表示するにはアップスケーリング処理が必要である。また、FHD解像度を超えるQFHD(Quad Full High Definition)解像度に対応したディスプレイが開発されており、さらにはQFHDを超えるUHD(Ultra High Definition)解像度のディスプレイも研究されている。このように、ディスプレイの高解像度化が進むにつれ、高性能なアップスケーリング処理の重要性が高まっている。   Upscaling processing is known as an important technique used in image processing and video processing. For example, with the widespread use of displays that support FHD (Full High Definition) resolution in recent years, upscaling processing is required to display video content with SD (Standard Definition) resolution on an FHD resolution display. In addition, a display corresponding to a QFHD (Quad Full High Definition) resolution exceeding the FHD resolution has been developed, and a display having a UHD (Ultra High Definition) resolution exceeding the QFHD is also being studied. Thus, as display resolution increases, the importance of high-performance upscaling processing is increasing.

アップスケーリング処理は、一般的な技術として最近傍補間(ニアレストネイバー)、双一次補間(バイリニア補間)、双三次補間(バイキュービック補間)の補間方法がある。最近傍補間は参照する位置に最も近い位置にある画素値を用いて補間を行うものであり、拡大率が高くなると同じ画素が何個か続くため階調再現が悪く、また、エッジ部がギザギザになってしまう。双一次補間は参照する位置の周辺の2×2画素(4画素)を用いて、画素値を直線的に補間して画素値を求めるものであり、最近傍補間より精度は良いものの、線形補間された画素値を用いるためぼやけてしまう。双三次補間は参照する位置の周辺の4×4画素(16画素)を用いて三次式で補間して画素値を求めるものであり、最近傍補間や双一次補間に比べ性能は良いものの、エッジ部にジャギーが発生する問題がある。   The upscaling process includes interpolation methods such as nearest neighbor interpolation (nearest neighbor), bilinear interpolation (bilinear interpolation), and bicubic interpolation (bicubic interpolation). Nearest-neighbor interpolation is performed by using the pixel value closest to the reference position. When the enlargement ratio is high, some of the same pixels continue, resulting in poor gradation reproduction, and jagged edges. Become. Bilinear interpolation is to obtain pixel values by linearly interpolating pixel values using 2 × 2 pixels (4 pixels) around the reference position, and linear interpolation is performed with higher accuracy than nearest neighbor interpolation. The pixel value is blurred because it is used. Bicubic interpolation is a method of obtaining pixel values by interpolating with a cubic equation using 4 × 4 pixels (16 pixels) around a reference position. Although the performance is better than nearest neighbor interpolation or bilinear interpolation, edge There is a problem that jaggy occurs in the part.

特許文献1は、複雑な処理を必要とすることなく画像、及び、映像を高品質にアップスケーリング処理する方法が記載されている。特許文献1に記載のアップスケーリング処理は、まず斜め方向に隣接する低解像度入力画素を用いて斜め高解像度(HR)画素を生成する。次に、水平方向に隣接する低解像度入力画素、及び、垂直方向に隣接する斜め高解像度(HR)画素を用いて水平高解像度(HR)画素を生成する。最後に、垂直方向に隣接する低解像度入力画素、及び、水平方向に隣接する斜め高解像度(HR)画素を用いて垂直高解像度(HR)画素を生成することにより、高解像度(HR)画像を生成する。また、各高解像度(HR)画素を生成する際に、エッジ方向に近い方向は重み付けが大きく、エッジ方向から離れた方向は重み付けが小さくなるよう制御する。これにより、オーバーシュートを発生させることなく、ジャギーアーティファクタを抑制させている。   Patent Document 1 describes a method for upscaling images and videos with high quality without requiring complicated processing. In the upscaling process described in Patent Document 1, first, a diagonal high resolution (HR) pixel is generated using low resolution input pixels adjacent in the diagonal direction. Next, a horizontal high resolution (HR) pixel is generated using a low resolution input pixel adjacent in the horizontal direction and an oblique high resolution (HR) pixel adjacent in the vertical direction. Finally, a high resolution (HR) image is generated by generating vertical high resolution (HR) pixels using low resolution input pixels adjacent in the vertical direction and diagonal high resolution (HR) pixels adjacent in the horizontal direction. Generate. Further, when generating each high resolution (HR) pixel, control is performed such that the direction close to the edge direction is heavily weighted, and the direction away from the edge direction is small. This suppresses the jaggy art factor without causing overshoot.

特開2010−67272号公報(2010年3月25日公開)JP 2010-67272 A (published March 25, 2010)

しかしながら、特許文献1に記載のアップスケーリング処理は、入力される低解像度画素の中間に位置する補間画素を生成するためのものである。低解像度入力画素の右下画素値を算出し、次に、右下画素値の算出結果を用いて低解像度入力画素の右画素値、及び、下画素値を算出するものであり、常に1つの低解像度入力画素から、新たに3つの出力画素を生成するものであるため、2倍以外の任意倍率拡大処理を実現することが難しい。   However, the upscaling process described in Patent Document 1 is for generating an interpolation pixel located in the middle of input low resolution pixels. The lower right pixel value of the low resolution input pixel is calculated, and then the right pixel value and the lower pixel value of the low resolution input pixel are calculated using the calculation result of the lower right pixel value. Since three new output pixels are generated from low-resolution input pixels, it is difficult to realize an arbitrary magnification enlargement process other than double.

また、従来技術として双一次補間や双三次補間の補間方法を併用することで任意倍率拡大処理をすることは可能であるが、結局、上記したこれらの補間方法の問題を発生させる結果となってしまう。   In addition, it is possible to perform arbitrary magnification enlargement processing by using bilinear interpolation or bicubic interpolation as a conventional technique. However, this results in the problems of these interpolation methods described above. End up.

本発明は、上記課題を解決するためになされたものであり、この発明の目的は、任意倍率拡大処理を実現するとともに、画質の低下を抑制させた画像処理が可能な画像処理装置、画像処理方法、画像処理装置を備える画像表示装置、プログラムおよび記録媒体を提供することである。   The present invention has been made to solve the above-described problems, and an object of the present invention is to realize an arbitrary magnification enlargement process and an image processing apparatus and an image process capable of performing image processing with suppressed deterioration in image quality A method, an image display device including an image processing device, a program, and a recording medium are provided.

上記の課題を解決するために、本発明の画像処理装置は、設定された拡大縮小率に従って、入力された画像データに含まれる入力画素間に補間画素を設けることにより上記画像データを拡大縮小する画像処理装置において、各入力画素について、エッジの方向を示すエッジ方向、または、当該エッジ方向から所定角度だけずれたエッジ勾配を推定するエッジ方向推定処理部と、上記補間画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該補間画素におけるエッジの方向を補間画素エッジ方向とするとき、当該補間画素エッジ方向に沿った領域であり、かつ、当該補間画素を囲む領域である補間領域を設定する補間領域設定部と、上記補間領域において、入力画素間の画素である仮画素を設定し、当該仮画素の値を算出する仮画素値算出処理部と、上記補間領域に含まれる入力画素および仮画素の値を用いて上記補間画素の値を算出する補間処理部とを備えることを特徴とする。   In order to solve the above-described problem, the image processing apparatus of the present invention enlarges or reduces the image data by providing an interpolation pixel between input pixels included in the input image data according to a set enlargement / reduction ratio. In the image processing apparatus, for each input pixel, an edge direction indicating an edge direction or an edge direction estimation processing unit that estimates an edge gradient shifted by a predetermined angle from the edge direction, and an input existing in the vicinity of the interpolation pixel When the direction of the edge in the interpolation pixel specified using the edge direction or edge gradient of the pixel is the interpolation pixel edge direction, it is an area along the interpolation pixel edge direction and an area surrounding the interpolation pixel. An interpolating area setting unit that sets an interpolating area, and a temporary pixel that is a pixel between input pixels is set in the interpolating area. A temporary pixel value calculation processing unit for calculating a value, characterized in that it comprises an interpolation processor for calculating the value of the interpolation pixel by using a value of the input pixel and the temporary pixel included in the interpolation region.

上記の構成によれば、設定された拡大縮小率に従って、入力された画像データに含まれる入力画素間に補間画素が設けられるので、拡大縮小率に関係なく補間画素を設けることができる。これにより、任意倍率拡大処理を実現することができる。また、補間画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて、当該補間画素におけるエッジの方向を示す補間画素エッジ方向が特定され、特定された補間画素エッジ方向に沿った領域であり、かつ、当該補間画素を囲む領域である補間領域が設定され、補間領域に含まれる入力画素および仮画素の値を用いて補間画素の値が算出されるので、補間画素のエッジ方向に沿った補間領域を設定することができる。さらに、補間画素エッジ方向に沿って設定された補間領域に含まれる入力画素および仮画素の値を用いて補間画素の値が算出されるので、エッジ方向に関係なく補間領域が設定される場合に比べ、補間処理により生じるジャギーを抑制することができる。特に、補間画素エッジ方向が斜め方向である場合、斜め方向のジャギーを抑制することができる。さらに、補間領域において入力画素が存在しない位置に仮画素が算出されるので、補間領域内の画素間の距離を適度に保つことができる。特に、補間面に入力画素のみが存在する場合に比べて、補間の対象となる補間画素との距離を適度に保つことができる。これにより、画素間の距離が遠くならないので、ウインドウサイズが大きくなり、メモリ消費量が増加するのを防ぐことができる。また、画質の低下を抑制定することができる。したがって、任意倍率拡大処理を実現するとともに、画質の低下を抑制させた画像処理が可能な画像処理装置を提供することができる。   According to the above configuration, since the interpolation pixels are provided between the input pixels included in the input image data according to the set enlargement / reduction ratio, the interpolation pixels can be provided regardless of the enlargement / reduction ratio. Thereby, an arbitrary magnification enlargement process can be realized. Further, using the edge direction or edge gradient of the input pixel existing in the vicinity of the interpolation pixel, the interpolation pixel edge direction indicating the direction of the edge in the interpolation pixel is specified, and in the region along the specified interpolation pixel edge direction And an interpolation area that is an area surrounding the interpolation pixel is set, and the value of the interpolation pixel is calculated using the values of the input pixel and the temporary pixel included in the interpolation area. The interpolation area can be set. Furthermore, since the value of the interpolation pixel is calculated using the values of the input pixel and the temporary pixel included in the interpolation area set along the interpolation pixel edge direction, the interpolation area is set regardless of the edge direction. In comparison, jaggy caused by the interpolation process can be suppressed. In particular, when the interpolation pixel edge direction is an oblique direction, jaggy in the oblique direction can be suppressed. Furthermore, since the temporary pixel is calculated at a position where no input pixel exists in the interpolation area, the distance between the pixels in the interpolation area can be kept moderate. In particular, the distance from the interpolation pixel to be interpolated can be kept moderate as compared with the case where only the input pixel exists on the interpolation plane. Thereby, since the distance between pixels does not become long, it can prevent that a window size becomes large and memory consumption increases. In addition, it is possible to suppress deterioration in image quality. Therefore, it is possible to provide an image processing apparatus that can perform arbitrary magnification enlargement processing and can perform image processing in which deterioration in image quality is suppressed.

さらに、本発明の画像処理装置において、補間領域設定部は、補間画素エッジ方向に沿った第1軸に平行な2辺と、第1軸とは異なる方向の第2軸に平行な2辺とからなる平行四辺形の領域を補間領域として設定することが好ましい。   Furthermore, in the image processing apparatus of the present invention, the interpolation area setting unit includes two sides parallel to the first axis along the interpolation pixel edge direction, and two sides parallel to the second axis in a direction different from the first axis. It is preferable to set a parallelogram area consisting of as an interpolation area.

上記の構成によれば、設定される補間領域が平行四辺形の領域であるので、補間画素エッジ方向に沿わせるのに適した形状である。   According to the above configuration, since the set interpolation region is a parallelogram region, the shape is suitable for being along the interpolation pixel edge direction.

さらに、本発明の画像処理装置において、補間処理部は、補間領域内において、第1軸および第2軸に沿って配列された複数の画素の値を用いて補間画素の値を算出することが好ましい。   Furthermore, in the image processing apparatus of the present invention, the interpolation processing unit can calculate the value of the interpolation pixel using the values of a plurality of pixels arranged along the first axis and the second axis in the interpolation region. preferable.

上記の構成によれば、補間画素エッジ方向を考慮した補間演算を容易に行うことができる。   According to said structure, the interpolation calculation which considered the interpolation pixel edge direction can be performed easily.

さらに、本発明の画像処理装置において、上記仮画素値算出処理部は、仮画素を含み、上記補間画素エッジ方向に沿った仮画素値算出用領域を設定し、当該仮画素値算出用領域に含まれる入力画素の値を用いて当該仮画素の値を算出することが好ましい。   Furthermore, in the image processing apparatus of the present invention, the temporary pixel value calculation processing unit includes a temporary pixel, sets a temporary pixel value calculation area along the interpolation pixel edge direction, and sets the temporary pixel value calculation area in the temporary pixel value calculation area. It is preferable to calculate the value of the temporary pixel using the value of the included input pixel.

具体的には、上記仮画素値算出処理部は、仮画素に対して上記補間画素エッジ方向または当該補間画素エッジ方向から所定角度範囲内の方向に隣接する入力画素の値を用いて当該仮画素の値を算出してもよい。   Specifically, the temporary pixel value calculation processing unit uses the value of the input pixel adjacent to the temporary pixel in the interpolation pixel edge direction or a direction within a predetermined angle range from the interpolation pixel edge direction. May be calculated.

上記の構成によれば、仮画素の値を本来の値に近づけることができる。これにより、画像を滑らかに保つことができる。   According to the above configuration, the value of the temporary pixel can be brought close to the original value. Thereby, an image can be kept smooth.

もしくは、本発明の画像処理装置において、上記仮画素値算出処理部は、上記仮画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該仮画素におけるエッジの方向を仮画素エッジ方向とするとき、当該仮画素を含み、上記仮画素エッジ方向に沿った仮画素値算出用領域を設定し、当該仮画素値算出用領域に含まれる入力画素の値を用いて当該仮画素の値を算出することが好ましい。   Alternatively, in the image processing apparatus of the present invention, the temporary pixel value calculation processing unit temporarily calculates the edge direction of the temporary pixel specified using the edge direction or edge gradient of the input pixel existing in the vicinity of the temporary pixel. When the pixel edge direction is set, a temporary pixel value calculation area including the temporary pixel and along the temporary pixel edge direction is set, and the temporary pixel value calculation area is set using the input pixel value included in the temporary pixel value calculation area. It is preferable to calculate the pixel value.

具体的には、上記仮画素値算出処理部は、上記仮画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該仮画素におけるエッジの方向を仮画素エッジ方向とするとき、上記仮画素エッジ方向または当該仮画素エッジ方向から所定角度範囲内の方向に隣接する入力画素の値を用いて当該仮画素の値を算出してもよい。   Specifically, the temporary pixel value calculation processing unit sets the edge direction of the temporary pixel specified by using the edge direction or the edge gradient of the input pixel existing in the vicinity of the temporary pixel as the temporary pixel edge direction. At this time, the value of the temporary pixel may be calculated using the value of the input pixel adjacent in the temporary pixel edge direction or the direction within the predetermined angle range from the temporary pixel edge direction.

補間画素エッジ方向は、仮画素エッジ方向と異なる場合があり、仮画素により近い位置に位置する入力画素を用いることにより特定された仮画素エッジ方向の方が補間画素エッジ方向よりエッジ方向が正確である。このため、上記の構成によれば、仮画素の値を本来の値により近づけることができる。これにより、画像を滑らかに保つことができる。   The interpolated pixel edge direction may differ from the interim pixel edge direction, and the interpolated pixel edge direction is more accurate than the interpolated pixel edge direction specified by using an input pixel located closer to the interim pixel. is there. For this reason, according to said structure, the value of a temporary pixel can be made closer to an original value. Thereby, an image can be kept smooth.

さらに、本発明の画像処理装置において、上記補間処理部により補間演算された後の画像データを鮮鋭化する補正処理部をさらに備えることが好ましい。   Furthermore, it is preferable that the image processing apparatus of the present invention further includes a correction processing unit that sharpens the image data after the interpolation calculation by the interpolation processing unit.

上記の構成によれば、補間演算後に生じるボヤケを抑制することができる。   According to said structure, the blurring which arises after interpolation calculation can be suppressed.

さらに、本発明の画像処理装置において、上記補正処理部は、上記補間処理部により補間演算された後の画像データから、注目画素を含む所定の範囲の画素における最大の画素値および最小の画素値を算出する最大値・最小値算出処理部と、鮮鋭化処理を行うためのフィルタ処理部と、上記最大値・最小値算出処理部により算出された最大の画素値および最小の画素値と、上記フィルタ処理部により算出されたフィルタ処理結果と、上記補間処理部により補間演算された後の画像データの画素とに基づいて、鮮鋭化の度合いを制御する飽和処理部とを含むことが好ましい。   Furthermore, in the image processing apparatus of the present invention, the correction processing unit is configured such that the maximum pixel value and the minimum pixel value in pixels in a predetermined range including the target pixel are calculated from the image data after the interpolation calculation by the interpolation processing unit. A maximum value / minimum value calculation processing unit, a filter processing unit for performing sharpening processing, a maximum pixel value and a minimum pixel value calculated by the maximum value / minimum value calculation processing unit, and the above It is preferable to include a saturation processing unit that controls the degree of sharpening based on the filter processing result calculated by the filter processing unit and the pixels of the image data after the interpolation calculation by the interpolation processing unit.

上記構成によれば、鮮鋭化の度合いが制御されるので、人間の目にとって目障りなアンダーシュートおよびオーバーシュートの発生を抑制することができる。これにより、補間演算で生じたボヤケを補正することができる。   According to the above configuration, since the degree of sharpening is controlled, it is possible to suppress the occurrence of undershoot and overshoot that are annoying for human eyes. As a result, it is possible to correct the blur caused by the interpolation calculation.

上記の課題を解決するために、本発明の画像処理方法は、設定された拡大縮小率に従って、入力された画像データに含まれる入力画素間に補間画素を設けることにより上記画像データを拡大縮小する画像処理方法であって、各入力画素について、エッジの方向を示すエッジ方向、または、当該エッジ方向から所定角度だけずれたエッジ勾配を推定するステップと、上記補間画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該補間画素におけるエッジの方向を補間画素エッジ方向とするとき、当該補間画素エッジ方向に沿った領域であり、かつ、当該補間画素を囲む領域である補間領域を設定するステップと、上記補間領域において、入力画素間の画素である仮画素を設定し、当該仮画素の値を算出するステップと、上記補間領域に含まれる入力画素および仮画素の値を用いて上記補間画素の値を算出するステップとを含むことを特徴とする。   In order to solve the above-described problem, the image processing method of the present invention enlarges or reduces the image data by providing an interpolation pixel between input pixels included in the input image data according to a set enlargement / reduction ratio. An image processing method, for each input pixel, estimating an edge direction indicating an edge direction or an edge gradient shifted by a predetermined angle from the edge direction, and an input pixel existing in the vicinity of the interpolation pixel When the edge direction of the interpolation pixel specified using the edge direction or the edge gradient is the interpolation pixel edge direction, the interpolation is an area along the interpolation pixel edge direction and an area surrounding the interpolation pixel. A step of setting a region, and a step of setting a temporary pixel that is a pixel between input pixels in the interpolation region and calculating a value of the temporary pixel. And flop, characterized in that it comprises the steps of calculating the value of the interpolation pixel by using a value of the input pixel and the temporary pixel included in the interpolation region.

上記構成によれば、任意倍率拡大処理を実現するとともに、画質の低下を抑制させた画像処理が可能な画像処理方法を提供することができる。   According to the above configuration, it is possible to provide an image processing method capable of realizing an arbitrary magnification enlargement process and performing image processing in which deterioration in image quality is suppressed.

なお、本発明の画像処理装置は、コンピュータによって実現してもよく、この場合には、コンピュータを上記各部として動作させることにより上記画像処理装置をコンピュータにて実現させるプログラム、及びそのプログラムを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The image processing apparatus of the present invention may be realized by a computer. In this case, a program for realizing the image processing apparatus by the computer by operating the computer as each of the units, and the program are recorded. Computer-readable recording media are also within the scope of the present invention.

本発明は、各入力画素について、エッジの方向を示すエッジ方向、または、当該エッジ方向から所定角度だけずれたエッジ勾配を推定するエッジ方向推定処理部と、上記補間画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該補間画素におけるエッジの方向を補間画素エッジ方向とするとき、当該補間画素エッジ方向に沿った領域であり、かつ、当該補間画素を囲む領域である補間領域を設定する補間領域設定部と、上記補間領域において、入力画素間の画素である仮画素を設定し、当該仮画素の値を算出する仮画素値算出処理部と、上記補間領域に含まれる画素の値を用いて上記補間画素の値を算出する補間処理部とを備える。これにより、任意倍率拡大処理を実現するとともに、画質の低下を抑制させた画像処理を行うことができるという効果を奏する。   The present invention provides, for each input pixel, an edge direction indicating an edge direction, or an edge direction estimation processing unit that estimates an edge gradient shifted from the edge direction by a predetermined angle, and an input pixel existing in the vicinity of the interpolation pixel. When the edge direction of the interpolation pixel specified using the edge direction or the edge gradient is the interpolation pixel edge direction, it is an area along the interpolation pixel edge direction and an area surrounding the interpolation pixel. Included in the interpolation area setting section that sets an interpolation area, a temporary pixel value calculation processing section that sets a temporary pixel that is a pixel between input pixels in the interpolation area, and that calculates a value of the temporary pixel. An interpolation processing unit that calculates the value of the interpolated pixel using the value of the pixel to be processed. As a result, it is possible to realize an arbitrary magnification enlargement process and to perform an image process in which a reduction in image quality is suppressed.

本実施の形態の1つにおけるテレビジョン受像機の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the television receiver in one of this Embodiment. 映像信号処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of a video signal processing circuit. スケーラー処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a scaler process part. Sobelフィルタを示す図である。It is a figure which shows a Sobel filter. エッジ方向推定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of an edge direction estimation process. 補間画素を含む4×4のブロック内に設定された補間面の一例を示す図である。It is a figure which shows an example of the interpolation surface set in the 4x4 block containing an interpolation pixel. 仮画素算出処理により算出された仮画素の一例を示す第1の図である。It is a 1st figure which shows an example of the temporary pixel calculated by the temporary pixel calculation process. 仮画素算出処理により算出された仮画素の一例を示す第2の図である。It is a 2nd figure which shows an example of the temporary pixel calculated by the temporary pixel calculation process. 仮画素算出処理により算出された仮画素の一例を示す第3の図である。It is a 3rd figure which shows an example of the temporary pixel calculated by the temporary pixel calculation process. 第1の補間面とともに補間演算に用いるパラメータを示す図である。It is a figure which shows the parameter used for an interpolation calculation with a 1st interpolation surface. 第2の補間面とともに補間演算に用いるパラメータを示す図である。It is a figure which shows the parameter used for an interpolation calculation with a 2nd interpolation surface. 第3の補間面とともに補間演算に用いるパラメータを示す図である。It is a figure which shows the parameter used for an interpolation calculation with a 3rd interpolation surface. 第4の補間面とともに補間演算に用いるパラメータを示す図である。It is a figure which shows the parameter used for an interpolation calculation with a 4th interpolation surface. 第5の補間面とともに補間演算に用いるパラメータを示す図である。It is a figure which shows the parameter used for an interpolation calculation with a 5th interpolation surface. 第6の補間面とともに補間演算に用いるパラメータを示す図である。It is a figure which shows the parameter used for an interpolation calculation with a 6th interpolation surface. 重み係数の分布の一例を示す図である。It is a figure which shows an example of distribution of a weighting coefficient. 補間画素を含む6×6のブロック内に設定された補間面の一例を示す図である。It is a figure which shows an example of the interpolation surface set in the 6x6 block containing an interpolation pixel. 第7の補間面とともに補間演算に用いるパラメータを示す図である。It is a figure which shows the parameter used for an interpolation calculation with a 7th interpolation surface. 図6に代えて、4×4のブロック内に設定される4通りの補間面の一例を示す図である。FIG. 7 is a diagram illustrating an example of four interpolation planes set in a 4 × 4 block instead of FIG. 6. 映像信号処理回路により実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed by a video signal processing circuit. 変形例における映像信号処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of the video signal processing circuit in a modification. 補正処理部の構成を示す図である。It is a figure which shows the structure of a correction process part. オーバーシュートおよびアンダーシュートの抑制効果の一例を示す図である。It is a figure which shows an example of the suppression effect of an overshoot and an undershoot. 変形例における映像信号処理回路により実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed by the video signal processing circuit in a modification. 飽和処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a saturation process. 本実施の形態におけるテレビジョン受像機で構成されるマルチディスプレイの一例を示す図である。It is a figure which shows an example of the multi display comprised with the television receiver in this Embodiment. Prewittフィルタの一例を示す図である。It is a figure which shows an example of a Prewitt filter. Scharrフィルタを示す図である。It is a figure which shows a Scherr filter. テンプレートの一例を示す図である。It is a figure which shows an example of a template. 補間画素の画素値と位置との関係を示す図である。It is a figure which shows the relationship between the pixel value and position of an interpolation pixel. エッジ方向とエッジ勾配の関係を示す図である。It is a figure which shows the relationship between an edge direction and an edge gradient.

図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。   Embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

図1は、本実施の形態の1つにおけるテレビジョン受像機の構成の概略を示すブロック図である。図1に示されるように、テレビジョン受像機1は、その全体を制御する中央演算装置(CPU)11、映像信号処理回路21、音声信号処理回路23およびパネルコントローラー25を含む集積回路(LSI)3と、電源ユニット5と、チューナー7と、インターフェース9と、表示部13と、操作部15と、スピーカー17とを備える。   FIG. 1 is a block diagram showing an outline of the configuration of a television receiver according to one embodiment. As shown in FIG. 1, a television receiver 1 is an integrated circuit (LSI) including a central processing unit (CPU) 11 that controls the whole, a video signal processing circuit 21, an audio signal processing circuit 23, and a panel controller 25. 3, a power supply unit 5, a tuner 7, an interface 9, a display unit 13, an operation unit 15, and a speaker 17.

インターフェース9は、TVアンテナ41と、TMDS(Transition Minimized Differential Signaling)方式でシリアル通信するためのDVI(Digital Visual Interface)端子43およびHDMI(High Definition Multimedia Interface)端子45と、TCP(Transmission Control Protocol)またはUDP(User Datagram Protocol)等の通信プロトコルで通信するためのLAN端子47とを含む。インターフェース9は、CPU11からの指示に従って、DVI端子43、HDMI端子45またはLAN端子47に接続された外部の機器との間でデータを送受信する。   The interface 9 includes a TV antenna 41, a digital visual interface (DVI) terminal 43 and a high-definition multimedia interface (HDMI) and a high-definition multimedia interface (TMD) terminal 43 for serial communication using a TMDS (Transition Minimized Differential Signaling) method. And a LAN terminal 47 for communicating with a communication protocol such as UDP (User Datagram Protocol). The interface 9 transmits / receives data to / from an external device connected to the DVI terminal 43, the HDMI terminal 45, or the LAN terminal 47 in accordance with an instruction from the CPU 11.

操作部15は、電源スイッチと、切替スイッチとを少なくとも含む。電源スイッチは、テレビジョン受像機1の電源のオンとオフの切り替えを指示する操作指示を入力するためスイッチである。切替スイッチは、テレビジョン受像機1で受像する放送チャンネルを指定する操作指示を入力するためのスイッチである。操作部15は、電源スイッチおよび切替スイッチが押下されることに応じて、各スイッチに対応する操作指示をCPU11に出力する。   The operation unit 15 includes at least a power switch and a changeover switch. The power switch is a switch for inputting an operation instruction for instructing to turn on or off the power of the television receiver 1. The change-over switch is a switch for inputting an operation instruction for designating a broadcast channel to be received by the television receiver 1. The operation unit 15 outputs an operation instruction corresponding to each switch to the CPU 11 in response to pressing of the power switch and the changeover switch.

なお、ここでは、テレビジョン受像機1が備える操作部15が操作される場合を例に説明したが、テレビジョン受像機1と無線で通信することが可能なリモートコントローラに操作部15を備えるようにして、各スイッチに対応する操作指示をテレビジョン受像機1に送信するようにしてもよい。この場合、リモートコントローラがテレビジョン受像機1と通信する通信媒体は、赤外光であってもよいし、電磁波であってもよい。   Here, the case where the operation unit 15 included in the television receiver 1 is operated has been described as an example, but the operation unit 15 is provided in a remote controller capable of wirelessly communicating with the television receiver 1. Thus, an operation instruction corresponding to each switch may be transmitted to the television receiver 1. In this case, the communication medium with which the remote controller communicates with the television receiver 1 may be infrared light or electromagnetic waves.

表示部13は、例えば、液晶表示装置(LCD)、プラズマディスプレイパネル等であり、テレビジョン番組を表示することが可能である。   The display unit 13 is, for example, a liquid crystal display (LCD), a plasma display panel, or the like, and can display a television program.

電源ユニット5は、外部から供給される電力を制御する。CPU11は、電源スイッチから入力される操作指示に応じて、電源ユニット5に電力を供給させる、または、電力の供給を遮断させる。電源スイッチから入力される操作指示が電源オンに切り替える操作指示である場合、テレビジョン受像機1の全体に電力が供給され、電源スイッチから入力される操作指示が電源オフに切り替える操作指示である場合、テレビジョン受像機1に供給される電力が遮断される。   The power supply unit 5 controls electric power supplied from the outside. The CPU 11 supplies power to the power supply unit 5 or cuts off supply of power in accordance with an operation instruction input from the power switch. When the operation instruction input from the power switch is an operation instruction to switch on the power, when power is supplied to the entire television receiver 1 and the operation instruction input from the power switch is an operation instruction to switch off the power The electric power supplied to the television receiver 1 is cut off.

チューナー7は、例えば、地上波デジタルチューナーまたはBS/CSデジタルチューナーであり、TVアンテナ41と接続され、TVアンテナ41が受信する放送信号が入力される。放送信号は、映像データおよび音声データを含む高周波デジタル変調信号である。チューナー7は、逆インターリーブ回路、誤り訂正回路を備えており、取り出した特定の周波数の高周波デジタル変調信号を復調して可変長符号を生成する。チューナー7は、TVアンテナ41で受信された放送信号のうちからCPU11で指定されたチャンネルの放送信号を選択し、その放送信号に基づいて生成された可変長符号を映像信号処理回路21および音声信号処理回路23に出力する。   The tuner 7 is, for example, a terrestrial digital tuner or a BS / CS digital tuner, is connected to the TV antenna 41, and receives a broadcast signal received by the TV antenna 41. The broadcast signal is a high frequency digital modulation signal including video data and audio data. The tuner 7 includes a deinterleave circuit and an error correction circuit, and demodulates the extracted high frequency digital modulation signal of a specific frequency to generate a variable length code. The tuner 7 selects a broadcast signal of a channel designated by the CPU 11 from the broadcast signals received by the TV antenna 41, and uses the video signal processing circuit 21 and the audio signal for the variable length code generated based on the broadcast signal. Output to the processing circuit 23.

映像信号処理回路21は、チューナー7から入力される可変長符号に各種の処理を実行し、映像信号を生成する。   The video signal processing circuit 21 performs various processes on the variable length code input from the tuner 7 to generate a video signal.

パネルコントローラー25は、表示部13を制御して、映像信号処理回路21が出力する映像信号の映像を表示部13に表示する。具体的には、パネルコントローラー25は、パネル駆動回路、バックライト制御回路を備え、CPU11からの指示に従って、パネル駆動回路の駆動を制御し、表示部13の背面に配置されたバックライトの点灯および消灯を制御する。   The panel controller 25 controls the display unit 13 to display the video of the video signal output from the video signal processing circuit 21 on the display unit 13. Specifically, the panel controller 25 includes a panel drive circuit and a backlight control circuit, controls the drive of the panel drive circuit in accordance with an instruction from the CPU 11, and turns on the backlight disposed on the back surface of the display unit 13. Controls turning off.

音声信号処理回路23は、オーディオデコーダを備えており、チューナー7から入力される可変長符号を復号して音声信号を生成し、音声信号をD/A(デジタル/アナログ)変換して、スピーカー17に出力する。   The audio signal processing circuit 23 includes an audio decoder, decodes the variable length code input from the tuner 7 to generate an audio signal, performs D / A (digital / analog) conversion on the audio signal, and outputs the speaker 17. Output to.

なお、ここでは、チューナー7がTVアンテナ41により受信された放送信号に基づいて、映像信号処理回路21が映像信号を生成する場合を例に説明したが、外部の機器がDVI端子43、HDMI端子45またはLAN端子47を介して送信した映像データに基づいて、映像信号処理回路21が映像信号を生成するようにしてもよい。また、チューナー7は、地上波デジタルチューナーとBS/CSデジタルチューナーとの両方を備えていてもよい。   Here, the case where the tuner 7 generates the video signal based on the broadcast signal received by the TV antenna 41 has been described as an example. However, the external device includes the DVI terminal 43 and the HDMI terminal. The video signal processing circuit 21 may generate the video signal based on the video data transmitted via the 45 or LAN terminal 47. The tuner 7 may include both a terrestrial digital tuner and a BS / CS digital tuner.

図2は、映像信号処理回路の構成を示すブロック図である。図2に示されるように、映像信号処理回路21は、ビデオデコーダ51と、IP変換処理部53と、ノイズ低減処理部55と、シャープネス処理部57と、カラー調整処理部59と、スケーラー処理部61とを含む。   FIG. 2 is a block diagram showing the configuration of the video signal processing circuit. As shown in FIG. 2, the video signal processing circuit 21 includes a video decoder 51, an IP conversion processing unit 53, a noise reduction processing unit 55, a sharpness processing unit 57, a color adjustment processing unit 59, and a scaler processing unit. 61.

ビデオデコーダ51は、チューナー7から入力される可変長符号を復号して映像信号を生成し、映像信号をD/A変換して、IP変換処理部53に出力する。IP変換処理部53は、必要に応じて、ビデオデコーダ51から入力される映像信号をインタレース方式からプログレッシブ方式に変換する。ノイズ低減処理部55は、IP変換処理部53が出力する映像信号に含まれるノイズ成分を軽減するためのノイズ低減処理を実行する。シャープネス処理部57は、ノイズ低減処理部55が出力する映像信号の映像を鮮鋭化するシャープネス処理を実行する。カラー調整処理部59は、ノイズ低減処理部55が出力する映像信号に対して、コントラストや彩度等を調整するカラー処理を実行する。スケーラー処理部61は、カラー調整処理部59が出力する映像信号に対して、表示部13の画素数に応じたスケーリング処理を実行する。なお、CPU11は、図示しないフレームメモリに、映像信号処理回路21により各種の処理が実行される際の映像信号をフレーム単位で適宣記憶させる。   The video decoder 51 decodes the variable length code input from the tuner 7 to generate a video signal, performs D / A conversion on the video signal, and outputs the video signal to the IP conversion processing unit 53. The IP conversion processing unit 53 converts the video signal input from the video decoder 51 from the interlace method to the progressive method as necessary. The noise reduction processing unit 55 executes noise reduction processing for reducing noise components included in the video signal output from the IP conversion processing unit 53. The sharpness processing unit 57 executes sharpness processing that sharpens the video of the video signal output from the noise reduction processing unit 55. The color adjustment processing unit 59 performs color processing for adjusting contrast, saturation, and the like on the video signal output from the noise reduction processing unit 55. The scaler processing unit 61 performs a scaling process on the video signal output from the color adjustment processing unit 59 according to the number of pixels of the display unit 13. Note that the CPU 11 appropriately stores a video signal when various processing is executed by the video signal processing circuit 21 in a frame memory (not shown) in units of frames.

スケーリング処理は、表示部13の画素数に応じた倍率に、映像データに含まれるフレーム単位の画像データを拡大(または縮小)し、拡大(または縮小)により補間が必要な画素を補間画素として算出する処理を少なくとも含む。補間画素は、画像データが拡大(または縮小)された倍率により、位置が定まる。具体的には、画像データにおいて、縦方向、横方向および斜め方向それぞれの入力画素と入力画素との間の位置である。例えば、倍率が2倍である場合、縦方向、横方向および斜め方向それぞれの入力画素と入力画素との間を2等分する位置に補間画素が設定される。一般的には、画像データをn倍に拡大すると、縦方向および横方向に隣接する4つの入力画素の間をn×n等分する位置に補間画素が設定される。   The scaling process enlarges (or reduces) the frame-unit image data included in the video data to a magnification according to the number of pixels of the display unit 13, and calculates pixels that need interpolation by enlargement (or reduction) as interpolation pixels. Including at least processing to perform. The position of the interpolation pixel is determined by the magnification at which the image data is enlarged (or reduced). Specifically, it is the position between the input pixel and the input pixel in the vertical direction, the horizontal direction, and the diagonal direction in the image data. For example, when the magnification is 2, the interpolation pixel is set at a position that equally divides the input pixel between the input pixel and the input pixel in the vertical direction, the horizontal direction, and the diagonal direction. In general, when image data is enlarged n times, interpolation pixels are set at positions that equally divide four input pixels adjacent in the vertical and horizontal directions by n × n.

図3は、スケーラー処理部の構成を示すブロック図である。図3に示されるように、スケーラー処理部61は、エッジ方向推定処理部71と、補間面設定部73と、仮画素値算出処理部75と、補間処理部77とを含む。   FIG. 3 is a block diagram illustrating a configuration of the scaler processing unit. As shown in FIG. 3, the scaler processing unit 61 includes an edge direction estimation processing unit 71, an interpolation plane setting unit 73, a provisional pixel value calculation processing unit 75, and an interpolation processing unit 77.

エッジ方向推定処理部71は、カラー調整処理部59から入力される映像信号に基づいて、フレーム単位の画像データにおける入力画素のエッジ方向、または、当該エッジ方向から所定角度だけずれたエッジ勾配を推定する。ここで、入力画素は、入力された画像データに存在する画素である。エッジ方向、つまり、エッジ線分の方向は、エッジ勾配の方向に直交する。本実施形態では、エッジ方向推定処理部71は、エッジ勾配の方向(つまり、エッジ方向から90度だけずれた方向)が含まれる角度範囲を判定することにより、エッジ方向を推定する。エッジ勾配の方向は、周知の技術を用いて算出することができる。ここでは、Sobelフィルタを用いて水平方向および垂直方向のエッジ勾配の方向θを算出する場合を例に説明する。なお、エッジ勾配の方向θは、水平方向であるX軸に対する角度で表される。   Based on the video signal input from the color adjustment processing unit 59, the edge direction estimation processing unit 71 estimates the edge direction of the input pixel in the image data in units of frames or an edge gradient shifted by a predetermined angle from the edge direction. To do. Here, the input pixel is a pixel existing in the input image data. The edge direction, that is, the direction of the edge line segment is orthogonal to the direction of the edge gradient. In the present embodiment, the edge direction estimation processing unit 71 estimates the edge direction by determining an angle range that includes the direction of the edge gradient (that is, the direction shifted by 90 degrees from the edge direction). The direction of the edge gradient can be calculated using a known technique. Here, a case will be described as an example in which the direction θ of the edge gradient in the horizontal direction and the vertical direction is calculated using the Sobel filter. Note that the direction θ of the edge gradient is represented by an angle with respect to the X axis, which is the horizontal direction.

図4は、Sobelフィルタを示す図である。図4(a)は、水平方向に対応するSobelフィルタを示す図である。図4(b)は、垂直方向に対応するSobelフィルタを示す図である。エッジ方向推定処理部71は、図4(a),(b)に示すSobelフィルタを用いて算出される水平方向(X軸方向)および垂直方向(Y軸方向)の1次微分を用いて、エッジ勾配の方向θを算出する。水平方向の1次微分gradX(垂直方向のエッジを検出)は、図4(a)に示すSobelフィルタを用いて式(1)に従って算出される。   FIG. 4 is a diagram illustrating the Sobel filter. FIG. 4A is a diagram illustrating a Sobel filter corresponding to the horizontal direction. FIG. 4B is a diagram illustrating a Sobel filter corresponding to the vertical direction. The edge direction estimation processing unit 71 uses the first-order differentiation in the horizontal direction (X-axis direction) and the vertical direction (Y-axis direction) calculated using the Sobel filter shown in FIGS. The direction θ of the edge gradient is calculated. The first-order differential gradX in the horizontal direction (detecting the edge in the vertical direction) is calculated according to the equation (1) using the Sobel filter shown in FIG.

gradX=IN(x+1,y−1)+IN(x+1,y)×2
+IN(x+1,y+1)−IN(x−1,y−1)
−IN(x−1,y)×2−IN(x−1,y+1)・・・・・・式(1)
ただし、IN(x,y)は、座標(x,y)の入力画素の画素濃度を示す。
gradX = IN (x + 1, y−1) + IN (x + 1, y) × 2
+ IN (x + 1, y + 1) -IN (x-1, y-1)
−IN (x−1, y) × 2−IN (x−1, y + 1) (1)
However, IN (x, y) represents the pixel density of the input pixel at the coordinates (x, y).

垂直方向の1次微分gradY(水平方向のエッジを検出)は、図4(b)に示すSobelフィルタを用いて式(2)に従って算出される。   The first-order differential gradY in the vertical direction (detecting an edge in the horizontal direction) is calculated according to the equation (2) using the Sobel filter shown in FIG.

gradY=IN(x−1,y+1)+IN(x,y+1)×2
+IN(x+1,y+1)−IN(x−1,y−1)
−IN(x,y−1)×2−IN(x+1,y−1)・・・・・・式(2)
ただし、IN(x,y)は、座標(x,y)の入力画素の画素濃度を示す。
gradY = IN (x-1, y + 1) + IN (x, y + 1) × 2
+ IN (x + 1, y + 1) -IN (x-1, y-1)
−IN (x, y−1) × 2-IN (x + 1, y−1) (2)
However, IN (x, y) represents the pixel density of the input pixel at the coordinates (x, y).

ここで、水平方向の1次微分gradXおよび垂直方向の1次微分gradYを用いて、エッジ勾配の方向が含まれる角度範囲を判定するエッジ方向推定処理について説明する。図5は、エッジ方向推定処理の流れを示すフローチャートである。エッジ方向推定処理は、ROMまたはHDD等に記憶されたエッジ方向推定プログラムが実行されることにより実行される処理である。図5に示されるように、下記の数1で示される式で算出されたエッジの強さが所定の閾値T(例えば16)より小さいか否かを判断する(ステップS01)。エッジの強さが所定の閾値Tより小さいならば処理をステップS02に進めるが、そうでなければ処理をステップS03に進める。   Here, an edge direction estimation process for determining an angle range including the direction of the edge gradient using the horizontal first-order differential gradX and the vertical first-order differential gradY will be described. FIG. 5 is a flowchart showing the flow of the edge direction estimation process. The edge direction estimation process is a process executed by executing an edge direction estimation program stored in a ROM or HDD. As shown in FIG. 5, it is determined whether or not the edge strength calculated by the following equation 1 is smaller than a predetermined threshold T (for example, 16) (step S01). If the edge strength is smaller than predetermined threshold value T, the process proceeds to step S02; otherwise, the process proceeds to step S03.

Figure 0005781370
Figure 0005781370

ステップS02においては、エッジ勾配の方向が不定、すなわちエッジ勾配の方向θの判定不能と判断する。   In step S02, it is determined that the direction of the edge gradient is indefinite, that is, it is impossible to determine the direction θ of the edge gradient.

ステップS03においては、下記の式(4)の条件を満たすか否かを判断する。換言すれば、gradXの符号とgradYの符号とが異なるか否かを判断する。gradXの符号とgradYの符号とが異なるならば処理をステップS13に進めるが、そうでなれば処理をステップS04に進める。   In step S03, it is determined whether or not a condition of the following formula (4) is satisfied. In other words, it is determined whether the code of gradX is different from the code of gradY. If the code of gradX and the code of gradY are different, the process proceeds to step S13. If not, the process proceeds to step S04.

gradX×gradY<0・・・・・式(4)
ステップS04においては、下記の式(5)の条件を満たすか否かを判断する。式(5)の条件を満たすならば処理をステップS05に進めるが、そうでなければ処理をステップS06に進める。
gradX × gradY <0 Equation (4)
In step S04, it is determined whether or not a condition of the following equation (5) is satisfied. If the condition of equation (5) is satisfied, the process proceeds to step S05; otherwise, the process proceeds to step S06.

|gradY|≦t×|gradX|・・・・・・式(5)
ただし、tはπ/16における正接の値(小数点以下4桁で表す場合0.1989)である。
| GradY | ≦ t 1 × | gradX |
However, t 1 is the value of the tangent at π / 16 (0.1989 if expressed in four decimal places).

ステップS05においては、エッジ勾配の方向が−π/16≦θ≦π/16、または、15π/16≦θ≦17π/16の範囲にあると判定する。   In step S05, it is determined that the direction of the edge gradient is in the range of −π / 16 ≦ θ ≦ π / 16 or 15π / 16 ≦ θ ≦ 17π / 16.

ステップS06においては、下記の式(6)の条件を満たすか否かを判断する。式(6)の条件を満たすならば処理をステップS07に進めるが、そうでなければ処理をステップS08に進める。   In step S06, it is determined whether or not the following equation (6) is satisfied. If the condition of equation (6) is satisfied, the process proceeds to step S07; otherwise, the process proceeds to step S08.

|gradY|≦t×|gradX|・・・・・・式(6)
ただし、tは3π/16における正接の値(小数点以下4桁で表す場合0.6682)である。
| GradY | ≦ t 2 × | gradX |
However, t 2 is the value of the tangent at 3π / 16 (0.6682 if expressed in four decimal places).

ステップS07においては、エッジ勾配の方向がπ/16<θ≦3π/16、または、−15π/16<θ≦−13π/16の範囲にあると判定する。   In step S07, it is determined that the direction of the edge gradient is in the range of π / 16 <θ ≦ 3π / 16 or -15π / 16 <θ ≦ -13π / 16.

ステップS08においては、下記の式(7)の条件を満たすか否かを判断する。式(7)の条件を満たすならば処理をステップS09に進めるが、そうでなければ処理をステップS10に進める。   In step S08, it is determined whether or not the following equation (7) is satisfied. If the condition of expression (7) is satisfied, the process proceeds to step S09; otherwise, the process proceeds to step S10.

|gradY|≦t×|gradX|・・・・・・式(7)
ただし、tは5π/16における正接の値(小数点以下4桁で表す場合1.4966)である。
| GradY | ≦ t 3 × | gradX | Expression (7)
However, t 3 is the value of loss tangent at 5π / 16 (1.4966 if expressed in four decimal places).

ステップS09においては、エッジ勾配の方向が3π/16<θ≦5π/16、または、−13π/16<θ≦−11π/16の範囲にあると判定する。   In step S09, it is determined that the direction of the edge gradient is in the range of 3π / 16 <θ ≦ 5π / 16 or −13π / 16 <θ ≦ -11π / 16.

ステップS10においては、下記の式(8)の条件を満たすか否かを判断する。式(8)の条件を満たすならば処理をステップS11に進めるが、そうでなければ処理をステップS12に進める。   In step S10, it is determined whether or not the following equation (8) is satisfied. If the condition of equation (8) is satisfied, the process proceeds to step S11; otherwise, the process proceeds to step S12.

|gradY|≦t×|gradX|・・・・・・式(8)
ただし、tは7π/16における正接の値(小数点以下4桁で表す場合5.0273)である。
| GradY | ≦ t 4 × | gradX | Expression (8)
However, t 4 is the value of loss tangent at 7π / 16 (5.0273 if expressed in four decimal places).

ステップS11においては、エッジ勾配の方向が5π/16<θ≦7π/16、または、−11π/16<θ≦−9π/16の範囲にあると判定する。   In step S11, it is determined that the direction of the edge gradient is in the range of 5π / 16 <θ ≦ 7π / 16 or -11π / 16 <θ ≦ -9π / 16.

ステップS12においては、エッジ勾配の方向が7π/16≦θ<9π/16、または、−9π/16<θ≦−7π/16の範囲にあると判定する。なお、ステップS02、S05〜S12の処理が終了すると、エッジ方向推定処理は終了する。   In step S12, it is determined that the edge gradient direction is in a range of 7π / 16 ≦ θ <9π / 16 or −9π / 16 <θ ≦ −7π / 16. Note that when the processes in steps S02 and S05 to S12 are finished, the edge direction estimation process is finished.

ステップS13は、ステップS12においてgradXの符号とgradYの符号とが異なると判断された場合である。ステップS13においては、式(5)の条件を満たすか否かを判断する。式(5)の条件を満たすならば処理をステップS14に進めるが、そうでなければ処理をステップS15に進める。   Step S13 is a case where it is determined in step S12 that the code of gradX and the code of gradY are different. In step S13, it is determined whether or not the condition of equation (5) is satisfied. If the condition of equation (5) is satisfied, the process proceeds to step S14; otherwise, the process proceeds to step S15.

ステップS14においては、エッジ勾配の方向が−π/16≦θ≦π/16、または、15π/16≦θ≦17π/16の範囲にあると判定する。   In step S14, it is determined that the direction of the edge gradient is in the range of −π / 16 ≦ θ ≦ π / 16 or 15π / 16 ≦ θ ≦ 17π / 16.

ステップS15においては、式(6)の条件を満たすか否かを判断する。式(6)の条件を満たすならば処理をステップS16に進めるが、そうでなければ処理をステップS17に進める。   In step S15, it is determined whether or not the condition of equation (6) is satisfied. If the condition of equation (6) is satisfied, the process proceeds to step S16; otherwise, the process proceeds to step S17.

ステップS16においては、エッジ勾配の方向が13π/16≦θ<15π/16、または、−3π/16≦θ<−π/16の範囲にあると判定する。   In step S16, it is determined that the direction of the edge gradient is in the range of 13π / 16 ≦ θ <15π / 16 or −3π / 16 ≦ θ <−π / 16.

ステップS17においては、式(7)の条件を満たすか否かを判断する。式(7)の条件を満たすならば処理をステップS18に進めるが、そうでなければ処理をステップS19に進める。   In step S17, it is determined whether or not the condition of equation (7) is satisfied. If the condition of equation (7) is satisfied, the process proceeds to step S18; otherwise, the process proceeds to step S19.

ステップS18においては、エッジ勾配の方向11π/16≦θ<13π/16、または、−5π/16≦θ<−3π/16の範囲にあると判定する。   In step S18, it is determined that the edge gradient direction is in the range of 11π / 16 ≦ θ <13π / 16 or −5π / 16 ≦ θ <−3π / 16.

ステップS19においては、式(8)の条件を満たすか否かを判断する。式(8)の条件を満たすならば処理をステップS20に進めるが、そうでなければ処理をステップS21に進める。   In step S19, it is determined whether or not the condition of equation (8) is satisfied. If the condition of equation (8) is satisfied, the process proceeds to step S20; otherwise, the process proceeds to step S21.

ステップS20においては、エッジ勾配の方向が9π/16≦θ<11π/16、または、−7π/16<θ≦−5π/16の範囲にあると判定する。   In step S20, it is determined that the direction of the edge gradient is in the range of 9π / 16 ≦ θ <11π / 16 or −7π / 16 <θ ≦ −5π / 16.

ステップS21においては、エッジ勾配の方向が7π/16<θ<9π/16、または、−9π/16<θ<−7π/16の範囲にあると判定する。なお、全ての入力画素についてステップS14〜S21の処理が終了すると、エッジ方向推定処理は終了する。   In step S21, it is determined that the direction of the edge gradient is in the range of 7π / 16 <θ <9π / 16 or -9π / 16 <θ <-7π / 16. Note that when the processes in steps S14 to S21 are completed for all input pixels, the edge direction estimation process is terminated.

なお、ここでは、入力画素の画素濃度を用いてエッジ勾配の方向を算出したが、入力画素の画素濃度に代えてRGB画像から生成した輝度値を用いてもよい。この場合、例えば、RGBデータを、下記の式(9)に示すマトリックス演算を用いて輝度Yに変換するようにすればよい。   Here, although the edge gradient direction is calculated using the pixel density of the input pixel, a luminance value generated from an RGB image may be used instead of the pixel density of the input pixel. In this case, for example, the RGB data may be converted into the luminance Y using a matrix operation shown in the following equation (9).

Y=0.29891×R+0.58661×G+0.11448×B・・・・式(9)
また、輝度値を用いる代わりに、Rの1次微分gradXおよびgradY、Gの一次微分gradYおよびgradY、Bの一次微分gradYおよびgradYを求め、以下の数2で示される式で算出される勾配が最大のチャネルの一次微分を代表値とし、代表値としたgradXおよびgradYのそれぞれを水平方向の1次微分および垂直方向の1次微分に設定してもよい。
Y = 0.29891 × R + 0.58661 × G + 1.14848 × B (9)
Further, instead of using the luminance value, the first-order derivatives gradX R and gradY R of R , the first-order derivatives gradY G and gradY G of B, gradY B and gradY B of B are obtained, and the following equation 2 is obtained. The first derivative of the channel with the maximum gradient calculated in step 1 may be set as a representative value, and gradX and gradY, which are representative values, may be set as the first-order differential in the horizontal direction and the first-order differential in the vertical direction.

Figure 0005781370
Figure 0005781370

補間面設定部73は、エッジ方向推定処理部71から入力されるフレーム単位の画像データとエッジ方向推定処理部71により算出された各入力画素におけるエッジ勾配の方向とに基づいて、補間画素におけるエッジ方向(補間画素エッジ方向)に沿った領域であり、かつ、補間画素を囲む領域である補間面(補間領域)を設定する。ここで、エッジ方向は、エッジ勾配の方向に垂直である。このため、補間面設定部73は、補間画素の近傍に存在する入力画素のエッジ勾配の方向から、補間画素におけるエッジ勾配の方向を特定し、特定したエッジ勾配の方向に垂直な方向を補間画素エッジ方向とすればよい。そして、補間面設定部73は、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向に沿って補間面を設定する。補間面の設定は、表示部13の画素数に応じた映像データの拡大縮小率により補間の対象となる補間画素の近傍に位置する4×4入力画素で形成される四角形を含むブロック内を対象とする。具体的には、補間画素は、その近傍に位置する4×4入力画素で形成される四角形の中に含まれる。   The interpolation plane setting unit 73 is configured to determine the edge of the interpolation pixel based on the frame-unit image data input from the edge direction estimation processing unit 71 and the direction of the edge gradient in each input pixel calculated by the edge direction estimation processing unit 71. An interpolation plane (interpolation region) that is a region along the direction (interpolation pixel edge direction) and that surrounds the interpolation pixel is set. Here, the edge direction is perpendicular to the direction of the edge gradient. For this reason, the interpolation plane setting unit 73 identifies the direction of the edge gradient in the interpolation pixel from the direction of the edge gradient of the input pixel existing in the vicinity of the interpolation pixel, and sets the direction perpendicular to the direction of the identified edge gradient to the interpolation pixel. The edge direction may be used. Then, the interpolation plane setting unit 73 sets the interpolation plane along the interpolation pixel edge direction that is perpendicular to the edge gradient direction of the interpolation pixel. The interpolation plane is set in a block including a quadrangle formed by 4 × 4 input pixels located in the vicinity of the interpolation pixel to be interpolated by the enlargement / reduction ratio of the video data according to the number of pixels of the display unit 13. And Specifically, the interpolation pixel is included in a quadrangle formed by 4 × 4 input pixels located in the vicinity thereof.

補間面は、ブロックのサイズと補間画素エッジ方向と補間面が設定される領域内の画素数とに基づいて定まる領域である。具体的には、補間面は、その大きさがブロック内に収まる大きさであり、かつ、補間画素エッジ方向に沿った第1軸に平行な2辺と第1軸とは異なる方向の第2軸に平行な2辺とを有する平行四辺形である。また、平行四辺形の補間面には、第1軸および第2軸に沿って配列された格子点である、ブロック内の画素と同じ画素数の4×4画素が含まれる。補間面に含まれる複数の画素には、入力画素の他に、画素値が存在しない仮画素が含まれる場合がある。仮画素については後述する。なお、補間面は、第1軸および第2軸に沿って配列された4×4画素の中心の2×2画素で囲まれる領域に補間画素が含まれるように設定される。   The interpolation plane is an area determined based on the block size, the interpolation pixel edge direction, and the number of pixels in the area where the interpolation plane is set. Specifically, the interpolation plane has a size that fits in the block, and two sides parallel to the first axis along the interpolation pixel edge direction and a second direction different from the first axis. A parallelogram having two sides parallel to the axis. The parallelogram interpolation plane includes 4 × 4 pixels having the same number of pixels as the pixels in the block, which are lattice points arranged along the first axis and the second axis. In some cases, the plurality of pixels included in the interpolation plane include a provisional pixel having no pixel value in addition to the input pixel. The provisional pixel will be described later. The interpolation plane is set so that the interpolation pixel is included in a region surrounded by 2 × 2 pixels at the center of 4 × 4 pixels arranged along the first axis and the second axis.

なお、補間画素におけるエッジ勾配の方向は、補間画素に最も近い入力画素に対して算出されたエッジ勾配の方向を用いてもよいし、補間画素の近傍に位置する入力画素に対して算出されたエッジ勾配の方向の代表値を用いてもよい。この場合、代表値は、例えばエッジ方向推定処理部71により算出された複数のエッジ勾配の方向の平均値、または複数のエッジ勾配の方向のうち最頻値とすればよい。   As the direction of the edge gradient in the interpolation pixel, the direction of the edge gradient calculated for the input pixel closest to the interpolation pixel may be used, or calculated for the input pixel located in the vicinity of the interpolation pixel. A representative value of the direction of the edge gradient may be used. In this case, the representative value may be, for example, an average value of a plurality of edge gradient directions calculated by the edge direction estimation processing unit 71 or a mode value among a plurality of edge gradient directions.

図6は、補間画素を含むブロック内に設定された補間面の一例を示す図である。図6に示されるように、丸81,丸83および丸85はそれぞれ、補間画素,入力画素,仮画素の位置を示す。補間画素は、補間処理の対象となる画素である。入力画素は、入力された画像データにおいて画素値が存在する画素である。仮画素は、入力された画像データにおいて画素値が存在しない画素であり、補間面に含まれる複数の入力画素それぞれの間を補うための仮の画素である。仮画素は、後述する仮画素値算出処理部75により算出される。なお、ブロックのサイズは、4×4の入力画素を含むサイズである。   FIG. 6 is a diagram illustrating an example of an interpolation plane set in a block including an interpolation pixel. As shown in FIG. 6, a circle 81, a circle 83, and a circle 85 indicate the positions of the interpolation pixel, the input pixel, and the temporary pixel, respectively. The interpolation pixel is a pixel to be subjected to interpolation processing. The input pixel is a pixel having a pixel value in the input image data. The temporary pixel is a pixel that does not have a pixel value in the input image data, and is a temporary pixel that compensates for each of the plurality of input pixels included in the interpolation plane. The temporary pixel is calculated by a temporary pixel value calculation processing unit 75 described later. The block size includes 4 × 4 input pixels.

図6(a)は、補間画素を含むブロック内に設定された補間面の一例を示す第1の図である。ここでの補間画素におけるエッジ勾配の方向θは、殆ど水平方向であり、−π/16≦θ≦π/16または15π/16≦θ≦17π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向θ’は、7π/16≦θ’≦9π/16または−9π/16≦θ’≦−7π/16の角度範囲に含まれる。この角度範囲に定められている補間面は、図6(a)に示されるように、正方形の補間面であり、補間画素の近傍に位置する4×4画素に対して設定される。ここで、エッジ勾配の方向は、殆ど水平方向であるので、補間画素の近傍に位置する4×4画素はすべて入力画素である。このため、従来用いられている補間処理を行ってもシャギーを発生させることなく補間処理することができる。   FIG. 6A is a first diagram illustrating an example of an interpolation plane set in a block including an interpolation pixel. Here, the direction θ of the edge gradient in the interpolation pixel is almost horizontal, and is included in the angle range of −π / 16 ≦ θ ≦ π / 16 or 15π / 16 ≦ θ ≦ 17π / 16. That is, the interpolation pixel edge direction θ ′, which is a direction perpendicular to the direction of the edge gradient in the interpolation pixel, is in an angle range of 7π / 16 ≦ θ ′ ≦ 9π / 16 or −9π / 16 ≦ θ ′ ≦ −7π / 16. included. As shown in FIG. 6A, the interpolation plane defined in this angular range is a square interpolation plane, and is set for 4 × 4 pixels located in the vicinity of the interpolation pixel. Here, since the direction of the edge gradient is almost horizontal, all 4 × 4 pixels located in the vicinity of the interpolation pixel are input pixels. For this reason, even if the conventionally used interpolation processing is performed, the interpolation processing can be performed without generating shaggy.

図6(b)は、補間画素を含むブロック内に設定された補間面の一例を示す第2の図である。ここでは、補間画素におけるエッジ勾配の方向θは、斜め方向であり、具体的には、水平方向に対して約26.5度傾いている。この傾きは、π/16<θ≦3π/16または−15π/16<θ≦−13π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向θ’は、9π/16<θ’≦11π/16または−7π/16<θ’≦−5π/16の角度範囲に含まれる。この角度範囲に定められている補間面は、図6(b)に示されるように、平行四辺形の補間面である。補間面は、その平行となる2つの長辺がエッジ勾配の方向に垂直な方向(つまり補間画素エッジ方向)に沿って設定される。換言すれば、補間面は、その平行となる2つの長辺に沿って設定される。このため、補間面に含まれる複数の画素は、入力画素と仮画素とを含む4×4画素となる。   FIG. 6B is a second diagram illustrating an example of an interpolation plane set in a block including an interpolation pixel. Here, the direction θ of the edge gradient in the interpolation pixel is an oblique direction, and specifically, is inclined about 26.5 degrees with respect to the horizontal direction. This inclination is included in the angle range of π / 16 <θ ≦ 3π / 16 or −15π / 16 <θ ≦ −13π / 16. That is, the interpolation pixel edge direction θ ′, which is a direction perpendicular to the direction of the edge gradient in the interpolation pixel, falls within an angle range of 9π / 16 <θ ′ ≦ 11π / 16 or −7π / 16 <θ ′ ≦ −5π / 16. included. The interpolation plane defined in this angle range is a parallelogram interpolation plane as shown in FIG. The interpolation plane is set along a direction in which two parallel long sides are perpendicular to the direction of the edge gradient (that is, the interpolation pixel edge direction). In other words, the interpolation plane is set along two parallel long sides. For this reason, the plurality of pixels included in the interpolation plane are 4 × 4 pixels including the input pixel and the temporary pixel.

図6(c)は、補間画素を含むブロック内に設定された補間面の一例を示す第3の図である。ここでは、補間画素におけるエッジ勾配の方向θは、斜め方向であり、具体的には、水平方向に対して約45度傾いている。この傾きは、3π/16<θ≦5π/16または−13π/16<θ≦−11π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向θ’は、11π/16<θ’≦13π/16または−5π/16<θ’≦−3π/16の角度範囲に含まれる。この角度範囲に定められている補間面は、図6(c)に示されるように、正方形の補間面である。また、補間面は、その2辺がエッジ勾配の方向に垂直な方向(つまり補間画素エッジ方向)に沿って設定される。換言すれば、補間面は、その2辺が補間画素エッジ方向に沿って設定される。このため、補間面に含まれる複数の画素は、入力画素と仮画素とを含む4×4画素となる。   FIG. 6C is a third diagram illustrating an example of an interpolation plane set in a block including an interpolation pixel. Here, the direction θ of the edge gradient in the interpolation pixel is an oblique direction, specifically, it is inclined by about 45 degrees with respect to the horizontal direction. This inclination is included in an angle range of 3π / 16 <θ ≦ 5π / 16 or −13π / 16 <θ ≦ -11π / 16. That is, the interpolation pixel edge direction θ ′, which is a direction perpendicular to the direction of the edge gradient in the interpolation pixel, falls within an angle range of 11π / 16 <θ ′ ≦ 13π / 16 or −5π / 16 <θ ′ ≦ −3π / 16. included. The interpolation plane defined in this angular range is a square interpolation plane as shown in FIG. Further, the interpolation plane is set along a direction in which the two sides are perpendicular to the direction of the edge gradient (that is, the interpolation pixel edge direction). In other words, the two sides of the interpolation plane are set along the interpolation pixel edge direction. For this reason, the plurality of pixels included in the interpolation plane are 4 × 4 pixels including the input pixel and the temporary pixel.

図6(d)は、補間画素を含むブロック内に設定された補間面の一例を示す第4の図である。ここでは、補間画素におけるエッジ勾配の方向θは、斜め方向であり、具体的には、水平方向に対して約63.5度傾いている。この傾きは、5π/16<θ≦7π/16または−11π<θ≦−9π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配方向に垂直な方向である補間画素エッジ方向θ’は、13π/16<θ’≦15π/16または−3π/16<θ’≦−π/16の角度範囲に含まれる。この角度範囲に定められている補間面は、図6(d)に示されるように、平行四辺形の補間面である。また、補間面は、その平行となる2つの長辺がエッジ勾配の方向に垂直な方向(つまり補間画素エッジ方向)に沿って設定される。換言すれば、補間面は、その2つの長辺が補間画素エッジ方向に沿って設定される。このため、補間面に含まれる複数の画素は、入力画素と仮画素とを含む4×4画素となる。   FIG. 6D is a fourth diagram illustrating an example of an interpolation plane set in a block including an interpolation pixel. Here, the direction θ of the edge gradient in the interpolation pixel is an oblique direction, specifically, it is inclined by about 63.5 degrees with respect to the horizontal direction. This inclination is included in the angle range of 5π / 16 <θ ≦ 7π / 16 or −11π <θ ≦ −9π / 16. That is, the interpolation pixel edge direction θ ′ that is a direction perpendicular to the edge gradient direction in the interpolation pixel is included in the angle range of 13π / 16 <θ ′ ≦ 15π / 16 or −3π / 16 <θ ′ ≦ −π / 16. It is. The interpolation plane defined in this angle range is a parallelogram interpolation plane as shown in FIG. In addition, the interpolation plane is set along a direction in which two parallel long sides are perpendicular to the direction of the edge gradient (that is, the interpolation pixel edge direction). In other words, the two long sides of the interpolation plane are set along the interpolation pixel edge direction. For this reason, the plurality of pixels included in the interpolation plane are 4 × 4 pixels including the input pixel and the temporary pixel.

図6(e)は、補間画素を含むブロック内に設定された補間面の一例を示す第5の図である。ここでは、エッジ勾配の方向θは、殆ど垂直方向であり、7π/16<θ<9π/16または−9π/16<θ<−7π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向θ’は、−π/16<θ’<π/16または15π/16<θ’<17π/16の角度範囲に含まれる。この角度範囲に定められている補間面は、図6(e)に示されるように、図6(a)に示す補間面と同じであり、補間画素の近傍に位置する4×4画素に対して設定される。ここでは、エッジ勾配の方向は、殆ど垂直方向であるので、補間画素の近傍に位置する4×4画素は、すべて入力画素である。このため、従来用いられている補間処理を行ってもシャギーを発生させることなく補間処理することができる。   FIG. 6E is a fifth diagram illustrating an example of the interpolation plane set in the block including the interpolation pixel. Here, the direction θ of the edge gradient is almost vertical and is included in the angle range of 7π / 16 <θ <9π / 16 or −9π / 16 <θ <−7π / 16. That is, the interpolation pixel edge direction θ ′ that is a direction perpendicular to the direction of the edge gradient in the interpolation pixel is included in an angle range of −π / 16 <θ ′ <π / 16 or 15π / 16 <θ ′ <17π / 16. It is. The interpolation plane defined in this angle range is the same as the interpolation plane shown in FIG. 6A, as shown in FIG. 6E, and for the 4 × 4 pixels located in the vicinity of the interpolation pixel. Is set. Here, since the direction of the edge gradient is almost vertical, all 4 × 4 pixels located in the vicinity of the interpolation pixel are input pixels. For this reason, even if the conventionally used interpolation processing is performed, the interpolation processing can be performed without generating shaggy.

図6(f)は、補間画素を含むブロック内に設定された補間面の一例を示す第6の図である。ここでは、エッジ勾配の方向θは、斜め方向であり、具体的には水平方向に対して約116.5度傾いている。この傾きは、9π/16≦θ<11π/16または−7π/16≦θ<−5π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向θ’は、π/16≦θ’<3π/16または−15π/16≦θ’<−13π/16の角度範囲に含まれる。この角度範囲に定められる補間面は、図6(f)に示されるように、平行四辺形の補間面である。また、補間面は、その平行となる2つの長辺がエッジ勾配の方向に垂直な方向(つまり補間画素エッジ方向)に沿って設定される。換言すれば、補間面は、その平行となる2つの長辺が補間画素エッジ方向に沿って設定される。このため、補間面に含まれる複数の画素は、入力画素と仮画素とを含む4×4画素となる。   FIG. 6F is a sixth diagram illustrating an example of the interpolation plane set in the block including the interpolation pixel. Here, the direction θ of the edge gradient is an oblique direction, specifically, it is inclined by about 116.5 degrees with respect to the horizontal direction. This inclination is included in the angle range of 9π / 16 ≦ θ <11π / 16 or −7π / 16 ≦ θ <−5π / 16. That is, the interpolation pixel edge direction θ ′, which is a direction perpendicular to the direction of the edge gradient in the interpolation pixel, falls within an angle range of π / 16 ≦ θ ′ <3π / 16 or −15π / 16 ≦ θ ′ <− 13π / 16. included. The interpolation plane defined in this angle range is a parallelogram interpolation plane as shown in FIG. In addition, the interpolation plane is set along a direction in which two parallel long sides are perpendicular to the direction of the edge gradient (that is, the interpolation pixel edge direction). In other words, the two parallel long sides of the interpolation plane are set along the interpolation pixel edge direction. For this reason, the plurality of pixels included in the interpolation plane are 4 × 4 pixels including the input pixel and the temporary pixel.

図6(g)は、補間画素を含むブロック内に設定された補間面の一例を示す第7の図である。ここでは、エッジ勾配の方向θは、斜め方向であり、具体的には水平方向に対して135度傾いている。この傾きは、11π/16≦θ<13π/16または−5π/16≦θ<−3π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向θ’は、3π/16≦θ’<5π/16または−11π/16≦θ’<−11π/16の角度範囲に含まれる。この角度範囲に定められる補間面は、図6(g)で示されるように、図6(c)に示される補間面と同じであり、補間面は、その2辺が補間画素エッジ方向に沿って設定される。   FIG. 6G is a seventh diagram illustrating an example of an interpolation plane set in a block including an interpolation pixel. Here, the direction θ of the edge gradient is an oblique direction, specifically, it is inclined 135 degrees with respect to the horizontal direction. This inclination is included in an angle range of 11π / 16 ≦ θ <13π / 16 or −5π / 16 ≦ θ <−3π / 16. That is, the interpolation pixel edge direction θ ′, which is a direction perpendicular to the direction of the edge gradient in the interpolation pixel, falls within an angle range of 3π / 16 ≦ θ ′ <5π / 16 or −11π / 16 ≦ θ ′ <− 11π / 16. included. The interpolation plane defined in this angle range is the same as the interpolation plane shown in FIG. 6C as shown in FIG. 6G, and the interpolation plane has two sides along the interpolation pixel edge direction. Is set.

図6(h)は、補間画素を含むブロック内に設定された補間面の一例を示す第7の図である。ここでは、エッジ勾配の方向θは、斜め方向であり、具体的には水平方向に対して約153.4度傾いている。この傾きは、13π/16≦θ<15π/16または−3π/16≦θ<−π/16の角度範囲に含まれる。すなわち、補間画素におけるエッジ勾配の方向に垂直な方向である補間画素エッジ方向θ’は、5π/16≦θ’<7π/16または−11π≦θ’<−9π/16の角度範囲に含まれる。この角度範囲に定められている補間面は、図6(h)に示されるように、平行四辺形の補間面である。また、補間面は、その平行となる2つの長辺がエッジ勾配の方向に垂直な方向(つまり補間画素エッジ方向)に沿って設定される。換言すれば、補間面は、その平行となる2つの長辺が補間画素エッジ方向に沿って設定される。このため、補間面に含まれる複数の画素は、入力画素と仮画素とを含む4×4画素となる。   FIG. 6H is a seventh diagram illustrating an example of the interpolation plane set in the block including the interpolation pixel. Here, the direction θ of the edge gradient is an oblique direction, specifically, it is inclined about 153.4 degrees with respect to the horizontal direction. This inclination is included in an angle range of 13π / 16 ≦ θ <15π / 16 or −3π / 16 ≦ θ <−π / 16. That is, the interpolation pixel edge direction θ ′ that is a direction perpendicular to the direction of the edge gradient in the interpolation pixel is included in an angle range of 5π / 16 ≦ θ ′ <7π / 16 or −11π ≦ θ ′ <− 9π / 16. . The interpolation plane defined in this angular range is a parallelogram interpolation plane as shown in FIG. In addition, the interpolation plane is set along a direction in which two parallel long sides are perpendicular to the direction of the edge gradient (that is, the interpolation pixel edge direction). In other words, the two parallel long sides of the interpolation plane are set along the interpolation pixel edge direction. For this reason, the plurality of pixels included in the interpolation plane are 4 × 4 pixels including the input pixel and the temporary pixel.

ここで、補間画素エッジ方向とエッジ勾配の関係を具体的に説明する。図31は、補間画素エッジ方向とエッジ勾配の関係を示す図である。ここでは、図6(b),(d)に対応する補間画素エッジ方向とエッジ勾配の関係について説明する。図31(a)は、図6(b)に対応する補間画素エッジ方向とエッジ勾配の関係を示す図である。図31(b)は、図6(d)に対応する補間画素エッジ方向とエッジ勾配の関係を示す図である。図31(a),(b)に示されるように、矢印はエッジ勾配を示し、矢印に垂直である太線はエッジ線分(つまり、補間画素エッジ方向)を示す。エッジ勾配の方向θは、水平方向を基準とした角度を示す。図6(b)に示す補間面は、その長辺が図31(a)に示す矢印に垂直である太線に沿って設定され、図6(d)に示す補間面は、その長辺が図31(b)に示す矢印に垂直である太線に沿って設定される。これにより、補間画素エッジ方向に沿って補間面が設定される。   Here, the relationship between the interpolation pixel edge direction and the edge gradient will be specifically described. FIG. 31 is a diagram illustrating the relationship between the interpolation pixel edge direction and the edge gradient. Here, the relationship between the interpolation pixel edge direction and edge gradient corresponding to FIGS. 6B and 6D will be described. FIG. 31A is a diagram illustrating the relationship between the interpolation pixel edge direction and the edge gradient corresponding to FIG. FIG. 31 (b) is a diagram showing the relationship between the interpolation pixel edge direction and the edge gradient corresponding to FIG. 6 (d). As shown in FIGS. 31A and 31B, an arrow indicates an edge gradient, and a thick line perpendicular to the arrow indicates an edge line segment (that is, an interpolation pixel edge direction). The direction θ of the edge gradient indicates an angle with respect to the horizontal direction. The longest side of the interpolation plane shown in FIG. 6B is set along a thick line perpendicular to the arrow shown in FIG. 31A, and the long side of the interpolation plane shown in FIG. It is set along a thick line perpendicular to the arrow shown in 31 (b). Thereby, an interpolation plane is set along the interpolation pixel edge direction.

上述したように、補間画素におけるエッジ勾配の方向を推定することにより補間画素エッジ方向を特定することができるので、補間面を補間画素エッジ方向に沿って設定することができる。これにより、画像データの拡大により補間が必要となった位置に補間画素が形成されることにより、ジャギーを抑制することができる。ここで、補間面は、補間画素の近傍に位置する4×4の入力画素のみを用いても設定することが可能である。しかしながら、画素間の距離が非常に遠くなるため、補間画素との相関性が低くなってしまう。   As described above, the interpolation pixel edge direction can be specified by estimating the direction of the edge gradient in the interpolation pixel, so that the interpolation plane can be set along the interpolation pixel edge direction. As a result, the jaggy can be suppressed by forming the interpolation pixel at the position where the interpolation is required due to the enlargement of the image data. Here, the interpolation plane can be set using only 4 × 4 input pixels located in the vicinity of the interpolation pixel. However, since the distance between the pixels becomes very long, the correlation with the interpolation pixel becomes low.

そこで、ここでは入力画素が存在しない位置において仮画素を特定し、仮画素を含めた4×4画素の補間面を設定する。これにより、入力画素のみを用いた4×4画素の補間面を形成する場合に比べて、画素間の距離を適度に保つことができる。したがって、補間画素との相関性の高い画素を用いた補間処理が可能となる。また、補間画素の近傍に位置する複数の画素を含むブロック内に、補間画素エッジ方向に沿った補間面を設定するので、エッジ方向に関係なく補間面を設定した場合に比べて、補間処理により生じるジャギーを抑制することができる。   Therefore, here, a temporary pixel is specified at a position where no input pixel exists, and an interpolation plane of 4 × 4 pixels including the temporary pixel is set. As a result, the distance between the pixels can be kept moderate as compared to the case of forming a 4 × 4 pixel interpolation plane using only the input pixels. Therefore, an interpolation process using a pixel having a high correlation with the interpolation pixel is possible. In addition, since the interpolation plane along the interpolation pixel edge direction is set in the block including a plurality of pixels located in the vicinity of the interpolation pixel, the interpolation process is performed compared to the case where the interpolation plane is set regardless of the edge direction. The jaggy which arises can be controlled.

なお、エッジ勾配の方向が不定である場合、一意に図6(a)または図6(c)に対応する補間面を設定するようにしてもよいし、補間画素の近傍に位置する入力画素におけるエッジ勾配の方向を参照して、図6(a)〜(d)のいずれかに対応する補間面を設定するようにしてもよい。   When the direction of the edge gradient is indefinite, an interpolation plane corresponding to FIG. 6A or FIG. 6C may be set uniquely, or an input pixel located in the vicinity of the interpolation pixel may be set. An interpolation plane corresponding to any one of FIGS. 6A to 6D may be set with reference to the direction of the edge gradient.

仮画素値算出処理部75は、補間面設定部73により設定された補間面内において特定される仮画素の画素値(画素濃度を示す値)を、その近傍に位置する入力画素に基づいて算出する仮画素算出処理を実行する。具体的には、仮画素算出処理は、仮画素の近傍に位置する入力画素に対して推定されたエッジ勾配の方向それぞれに定められた算出方法に従って仮画素の画素値を算出する処理である。   The temporary pixel value calculation processing unit 75 calculates a pixel value (a value indicating a pixel density) of the temporary pixel specified in the interpolation plane set by the interpolation plane setting unit 73 based on an input pixel located in the vicinity thereof. The temporary pixel calculation process is executed. Specifically, the provisional pixel calculation process is a process of calculating the pixel value of the provisional pixel according to a calculation method defined for each direction of the edge gradient estimated for the input pixel located in the vicinity of the provisional pixel.

すなわち、仮画素値算出処理部75は、仮画素の近傍に存在する入力画素のエッジ勾配の方向から、仮画素におけるエッジの方向を示す仮画素エッジ方向を特定する。そして、仮画素値算出処理部75は、仮画素を含み、仮画素エッジ方向に沿った仮画素値算出用領域を設定し、仮画素値算出用領域に含まれる入力画素の値を用いて仮画素の画素値を算出する。より具体的には、仮画素値算出処理部75は、仮画素エッジ方向または当該仮画素エッジ方向から所定角度範囲内の方向に隣接する入力画素の値を用いて仮画素の画素値を算出する。   That is, the provisional pixel value calculation processing unit 75 specifies a provisional pixel edge direction indicating the edge direction of the provisional pixel from the direction of the edge gradient of the input pixel existing in the vicinity of the provisional pixel. Then, the temporary pixel value calculation processing unit 75 includes a temporary pixel, sets a temporary pixel value calculation area along the temporary pixel edge direction, and uses the value of the input pixel included in the temporary pixel value calculation area. The pixel value of the pixel is calculated. More specifically, the temporary pixel value calculation processing unit 75 calculates the pixel value of the temporary pixel using the value of the input pixel adjacent in the temporary pixel edge direction or the direction within the predetermined angle range from the temporary pixel edge direction. .

ここで、仮画素の近傍に位置する入力画素は、例えば、仮画素の近傍に位置する2つの入力画素であってもよいし(この場合、当該2つの入力画素からなる領域が仮画素算出用領域となる)、仮画素の近傍に位置する4つの入力画素であってもよい(この場合、当該4つの入力画素からなる領域が仮画素算出用領域となる)。仮画素の近傍に位置する画素が仮画素の近傍に位置する2つの入力画素または4つの入力画素である場合、仮画素の画素値は、複数の入力画素それぞれの画素値に重み係数を乗じて加算した値である。重み係数は、予め定めた値であってもよいし、画素間の距離に応じた値であってもよい。なお、以下では、仮画素の画素値の算出方法を仮画素値算出方法という。   Here, the input pixel located in the vicinity of the temporary pixel may be, for example, two input pixels located in the vicinity of the temporary pixel (in this case, an area including the two input pixels is used for calculating the temporary pixel). The input pixels may be four input pixels located in the vicinity of the temporary pixel (in this case, the region including the four input pixels is the temporary pixel calculation region). When the pixel located near the temporary pixel is two input pixels or four input pixels located near the temporary pixel, the pixel value of the temporary pixel is obtained by multiplying the pixel value of each of the plurality of input pixels by a weighting factor. It is the added value. The weighting factor may be a predetermined value or a value corresponding to the distance between pixels. Hereinafter, the method for calculating the pixel value of the temporary pixel is referred to as a temporary pixel value calculation method.

図7は、仮画素値算出方法の一例を示す第1の図である。ここでは、図6(b),(h)に示す補間面に含まれる仮画素の仮画素値算出方法をパターン別に示している。ここで、仮画素の近傍に位置する入力画素のエッジ勾配は、補間面のエッジ勾配とは異なる場合がある。このため、仮画素の算出は、仮画素の近傍に位置する入力画素のエッジ勾配の方向に応じたパターンに従って算出することが好ましいので、仮画素の近傍に位置する入力画素のエッジ勾配の方向に応じたパターンに従って算出する場合を例に説明する。ここでは、仮画素を算出する際に使用するエッジ勾配の方向(仮画素におけるエッジ勾配の方向)θは、仮画素の4近傍の入力画素におけるエッジ勾配の方向θの代表値(例えば最頻値や平均値)を用いるものとする。なお、ここでの仮画素算出処理が実行される仮画素は、横方向に並ぶ入力画素の間に位置する仮画素を対象とする。   FIG. 7 is a first diagram illustrating an example of a provisional pixel value calculation method. Here, the provisional pixel value calculation method for provisional pixels included in the interpolation plane shown in FIGS. 6B and 6H is shown for each pattern. Here, the edge gradient of the input pixel located near the temporary pixel may be different from the edge gradient of the interpolation plane. For this reason, it is preferable to calculate the temporary pixel according to a pattern according to the direction of the edge gradient of the input pixel located in the vicinity of the temporary pixel. A case where calculation is performed according to a corresponding pattern will be described as an example. Here, the direction of the edge gradient (the direction of the edge gradient in the temporary pixel) θ used when calculating the temporary pixel is a representative value (for example, the mode value) of the edge gradient direction θ in the input pixels in the vicinity of the temporary pixel. Or average value). Note that the provisional pixels for which the provisional pixel calculation process is executed here are provisional pixels located between the input pixels arranged in the horizontal direction.

図7(a)は、第1のパターンの仮画素値算出方法を示す図である。第1のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向がπ/16<θ≦3π/16または−15π/16<θ≦−13π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、9π/16<θ’≦11π/16または−7π/16<θ’≦−5π/16の角度範囲に含まれる。そこで、図7(a)に示されるように、第1のパターンにおいては、仮画素の近傍に位置し、仮画素に対して仮画素エッジ方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。つまり、仮画素エッジ方向に沿って隣接する入力画素1,2を含む領域(図中、点線で示される)が仮画素算出用領域として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは、入力画素1および入力画素2に対して重み係数を0.5に設定している。   FIG. 7A is a diagram illustrating a temporary pixel value calculation method for the first pattern. In the first pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is π / 16 <θ ≦ 3π / 16 or −15π / 16 <θ ≦ −13π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 9π / 16 <θ ′ ≦ 11π / 16 or −7π / 16 <θ ′ ≦ −5π / 16. Therefore, as shown in FIG. 7A, in the first pattern, the input pixels 1 and 2 located in the vicinity of the temporary pixel and adjacent to the temporary pixel in the temporary pixel edge direction are It is set as a pixel for calculating a pixel value. That is, a region (indicated by a dotted line in the figure) including the input pixels 1 and 2 adjacent along the temporary pixel edge direction is set as the temporary pixel calculation region. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting factor is set to 0.5 for the input pixel 1 and the input pixel 2.

図7(b)は、第2のパターンの仮画素値算出方法を示す図である。第2のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が3π/16<θ≦5π/16または−13π/16<θ≦−11π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、11π/16<θ’≦13π/16または−5π/16<θ’≦−3π/16の角度範囲に含まれる。そこで、図7(b)に示されるように、第2のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。つまり、入力画素1〜4を含む点線の領域が仮画素算出用領域として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素2,4の距離が仮画素と入力画素1,3の距離よりも近いことを考慮して、入力画素2,4に対して重み係数を0.3に設定し、入力画素1,3に対して重み係数を0.2に設定するようにしてもよい。なお、入力画素1〜4に対して設定する重み係数を全て同じ値にするか、仮画素との距離に応じた値に設定するかは、画像を用いて検証を行い、好ましい方法を選択すればよい。具体的には、入力画素1〜4に対して設定する重み係数を全て同じ値にする方法により生成した解像度の性能を評価するためのテスト画像と入力画素1〜4に対して設定する重み係数を仮画素との距離に応じた値に設定する方法により生成した解像度の性能を評価するためのテスト画像のうち、好ましい画質となった方法を選択する。   FIG. 7B is a diagram illustrating a temporary pixel value calculation method of the second pattern. In the second pattern, the direction of the edge gradient at the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 3π / 16 <θ ≦ 5π / 16 or −13π / 16 <θ ≦ −11π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 11π / 16 <θ ′ ≦ 13π / 16 or −5π / 16 <θ ′ ≦ −3π / 16. Therefore, as shown in FIG. 7B, in the second pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. That is, the dotted line area including the input pixels 1 to 4 is set as the temporary pixel calculation area. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting factor may be set to 0.25 for the input pixels 1 to 4, and the distance between the temporary pixel and the input pixels 2 and 4 is closer than the distance between the temporary pixel and the input pixels 1 and 3. In consideration, the weighting factor may be set to 0.3 for the input pixels 2 and 4 and the weighting factor may be set to 0.2 for the input pixels 1 and 3. Whether the weighting factors set for the input pixels 1 to 4 are all set to the same value or set to a value corresponding to the distance from the temporary pixel is verified using an image and a preferred method is selected. That's fine. Specifically, a test image for evaluating the performance of resolution generated by a method in which all the weighting factors set for the input pixels 1 to 4 are set to the same value and the weighting factor set for the input pixels 1 to 4 Among the test images for evaluating the performance of the resolution generated by the method of setting to a value corresponding to the distance from the tentative pixel, a method having a preferable image quality is selected.

図7(c)は、第3のパターンの仮画素値算出方法を示す図である。第3のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が5π/16<θ≦7π/16または−11π/16<θ≦−9π/16に含まれるときの仮画素算出方法である。この場合、仮画素エッジ方向θ’は、13π/16<θ’≦15π/16または−3π/16<θ’≦−π/16の角度範囲に含まれる。そこで、図7(c)に示されるように、第3のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。つまり、入力画素1〜4を含む点線の領域が仮画素算出用領域として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,4の距離が仮画素と入力画素2,3の距離よりも近いことを考慮して、入力画素2,4に対して重み係数を0.1に設定し、入力画素1,3に対して重み係数を0.4に設定するようにしてもよい。   FIG. 7C is a diagram illustrating a provisional pixel value calculation method of the third pattern. In the third pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is 5π / 16 <θ ≦ 7π / 16 or −11π / 16 <θ ≦ −9π / 16. This is a provisional pixel calculation method when included. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 13π / 16 <θ ′ ≦ 15π / 16 or −3π / 16 <θ ′ ≦ −π / 16. Therefore, as shown in FIG. 7C, in the third pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. That is, the dotted line area including the input pixels 1 to 4 is set as the temporary pixel calculation area. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting factor may be set to 0.25 for the input pixels 1 to 4, and the distance between the temporary pixel and the input pixels 1 and 4 is closer than the distance between the temporary pixel and the input pixels 2 and 3. In consideration, the weighting factor may be set to 0.1 for the input pixels 2 and 4 and the weighting factor may be set to 0.4 for the input pixels 1 and 3.

図7(d)は、第4のパターンの仮画素値算出方法を示す図である。第4のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が9π/16≦θ<11π/16または−7π/16≦θ<−5π/16の角度範囲に含まれるときの仮画素算出方法である。この場合、仮画素エッジ方向θ’は、−π/16≦θ’<π/16または15π/16≦θ’<17π/16の角度範囲に含まれる。そこで、図7(d)に示されるように、第4のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。つまり、入力画素1〜4を含む点線の領域が仮画素算出用領域として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。これにより、仮画素が算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,3の距離が仮画素と入力画素2,4の距離よりも近いことを考慮して、入力画素1,3に対して重み係数を0.4に設定し、入力画素2,3に対して重み係数を0.1に設定するようにしてもよい。   FIG. 7D is a diagram illustrating a provisional pixel value calculation method of the fourth pattern. In the fourth pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is 9π / 16 ≦ θ <11π / 16 or −7π / 16 ≦ θ <−5π / 16. It is a provisional pixel calculation method when included in the angle range. In this case, the provisional pixel edge direction θ ′ is included in an angle range of −π / 16 ≦ θ ′ <π / 16 or 15π / 16 ≦ θ ′ <17π / 16. Therefore, as shown in FIG. 7D, in the fourth pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. That is, the dotted line area including the input pixels 1 to 4 is set as the temporary pixel calculation area. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Thereby, a temporary pixel is calculated. It should be noted that the weighting factor may be set to 0.25 for the input pixels 1 to 4 and that the distance between the temporary pixel and the input pixels 1 and 3 is closer than the distance between the temporary pixel and the input pixels 2 and 4. In consideration, the weighting factor may be set to 0.4 for the input pixels 1 and 3 and the weighting factor may be set to 0.1 for the input pixels 2 and 3.

図7(e)は、第5のパターンの仮画素値算出方法を示す図である。第5のパターンにおいては、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が11π/16≦θ<13π/16または−5π/16≦θ<−3π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、π/16≦θ’<3π/16または−15π/16≦θ’<−13π/16の角度範囲に含まれる。そこで、図7(e)に示されるように、第5のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。つまり、入力画素1〜4を含む点線の領域が仮画素算出用領域として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,3の距離が仮画素と入力画素2,4の距離よりも近いことを考慮して、入力画素1,3に対して重み係数を0.3に設定し、入力画素2,4に対して重み係数を0.2に設定するようにしてもよい。   FIG. 7E is a diagram illustrating a provisional pixel value calculation method of the fifth pattern. In the fifth pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is 11π / 16 ≦ θ <13π / 16 or −5π / 16 ≦ θ <−3π / 16. It is a provisional pixel value calculation method when it is included in the angle range. In this case, the provisional pixel edge direction θ ′ is included in the angle range of π / 16 ≦ θ ′ <3π / 16 or −15π / 16 ≦ θ ′ <− 13π / 16. Therefore, as shown in FIG. 7E, in the fifth pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. That is, the dotted line area including the input pixels 1 to 4 is set as the temporary pixel calculation area. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. It should be noted that the weighting factor may be set to 0.25 for the input pixels 1 to 4 and that the distance between the temporary pixel and the input pixels 1 and 3 is closer than the distance between the temporary pixel and the input pixels 2 and 4. In consideration, the weighting factor may be set to 0.3 for the input pixels 1 and 3 and the weighting factor may be set to 0.2 for the input pixels 2 and 4.

図7(f)は、第6のパターンの仮画素値算出方法を示す図である。第6のパターンにおいては、仮画素の近傍に位置する画素において推定された、仮画素におけるエッジ勾配の方向が13π/16≦θ<15π/16または−3π/16≦θ<−π/16の角度範囲に含まれるときの仮画素算出方法である。この場合、仮画素エッジ方向θ’は、3π/16≦θ’<5π/16または−11π/16≦θ’<−11π/16の角度範囲に含まれる。そこで、図7(f)に示されるように、第6のパターンにおいては、仮画素の近傍に位置し、仮画素に対して仮画素エッジ方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。つまり、入力画素1、2を含む点線の領域が仮画素算出用領域として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは、入力画素1および入力画素2に対して重み係数を0.5に設定している。   FIG. 7F is a diagram illustrating a provisional pixel value calculation method of the sixth pattern. In the sixth pattern, the direction of the edge gradient in the temporary pixel estimated in the pixel located in the vicinity of the temporary pixel is 13π / 16 ≦ θ <15π / 16 or −3π / 16 ≦ θ <−π / 16. It is a provisional pixel calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 3π / 16 ≦ θ ′ <5π / 16 or −11π / 16 ≦ θ ′ <− 11π / 16. Therefore, as shown in FIG. 7F, in the sixth pattern, the input pixels 1 and 2 that are located in the vicinity of the temporary pixel and are adjacent to the temporary pixel in the temporary pixel edge direction are It is set as a pixel for calculating a pixel value. That is, the dotted line area including the input pixels 1 and 2 is set as the temporary pixel calculation area. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting factor is set to 0.5 for the input pixel 1 and the input pixel 2.

図7(g)は、第7のパターンの仮画素値算出方法を示す図である。第7のパターンにおいては、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が不定のときの仮画素算出方法である。図7(g)に示されるように、第7のパターンにおいては、仮画素の横方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ0.5の重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、仮画素の近傍に位置する入力画素におけるエッジ方向を参照して仮画素の画素値を算出してもよい。   FIG. 7G is a diagram illustrating a provisional pixel value calculation method of the seventh pattern. The seventh pattern is a tentative pixel calculation method when the direction of the edge gradient in the tentative pixel estimated at the input pixel located in the vicinity of the tentative pixel is indefinite. As shown in FIG. 7G, in the seventh pattern, the input pixels 1 and 2 adjacent in the horizontal direction of the temporary pixel are set as pixels for calculating the pixel value of the temporary pixel. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor of 0.5, and the added value is calculated as the pixel value of the temporary pixel. Note that the pixel value of the temporary pixel may be calculated with reference to the edge direction of the input pixel located in the vicinity of the temporary pixel.

図8は、仮画素算出方法の一例を示す第2の図である。ここでは、図6(c),(g)に示す補間面に含まれる仮画素の画素値の仮画素算出方法をパターン別に示している。ここで、仮画素の近傍に位置する入力画素のエッジ勾配は、補間面のエッジ勾配とは異なる場合がある。このため、仮画素の算出は、仮画素の近傍に位置する入力画素のエッジ勾配の方向に応じたパターンに従って算出することが好ましい。なお、ここでの仮画素算出処理が実行される仮画素は、斜め方向に並ぶ入力画素の間に位置する仮画素を対象とする。   FIG. 8 is a second diagram illustrating an example of a provisional pixel calculation method. Here, the temporary pixel calculation method of the pixel value of the temporary pixel included in the interpolation plane shown in FIGS. 6C and 6G is shown for each pattern. Here, the edge gradient of the input pixel located near the temporary pixel may be different from the edge gradient of the interpolation plane. For this reason, the temporary pixel is preferably calculated according to a pattern corresponding to the direction of the edge gradient of the input pixel located in the vicinity of the temporary pixel. Note that the provisional pixels for which the provisional pixel calculation process is executed here are provisional pixels located between input pixels arranged in an oblique direction.

図8(a)は、第1のパターンの仮画素値算出方法を示す図である。第1のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向がπ/16<θ≦3π/16または−15π/16<θ≦−13π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、9π/16<θ’≦11π/16または−7π/16<θ’≦−5π/16の角度範囲に含まれる。そこで、図8(a)に示されるように、第1のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,4の距離が仮画素と入力画素2,3の距離よりも近いことを考慮して、入力画素1,4に対して重み係数を0.3に設定し、入力画素2,3に対して重み係数を0.2に設定するようにしてもよい。なお、入力画素1〜4に対して設定する重み係数を全て同じ値にするか、仮画素との距離に応じた値に設定するかは、画像を用いて検証を行い、好ましい方法を選択すればよい。   FIG. 8A is a diagram illustrating a temporary pixel value calculation method of the first pattern. In the first pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is π / 16 <θ ≦ 3π / 16 or −15π / 16 <θ ≦ −13π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 9π / 16 <θ ′ ≦ 11π / 16 or −7π / 16 <θ ′ ≦ −5π / 16. Therefore, as shown in FIG. 8A, in the first pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting factor may be set to 0.25 for the input pixels 1 to 4, and the distance between the temporary pixel and the input pixels 1 and 4 is closer than the distance between the temporary pixel and the input pixels 2 and 3. In consideration, the weighting factor may be set to 0.3 for the input pixels 1 and 4 and the weighting factor may be set to 0.2 for the input pixels 2 and 3. Whether the weighting factors set for the input pixels 1 to 4 are all set to the same value or set to a value corresponding to the distance from the temporary pixel is verified using an image and a preferred method is selected. That's fine.

図8(b)は、第2のパターンの仮画素値算出方法を示す図である。第2のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が3π/16<θ≦5π/16または−13π/16<θ≦−11π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、11π/16<θ’≦13π/16または−5π/16<θ’≦−3π/16の角度範囲に含まれる。そこで、図8(b)に示されるように、第2のパターンにおいては、仮画素の近傍に位置し、仮画素に対して仮画素エッジ方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは、入力画素1および入力画素2に対して重み係数を0.5に設定している。   FIG. 8B is a diagram illustrating a temporary pixel value calculation method of the second pattern. In the second pattern, the direction of the edge gradient at the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 3π / 16 <θ ≦ 5π / 16 or −13π / 16 <θ ≦ −11π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 11π / 16 <θ ′ ≦ 13π / 16 or −5π / 16 <θ ′ ≦ −3π / 16. Therefore, as shown in FIG. 8B, in the second pattern, the input pixels 1 and 2 that are located in the vicinity of the temporary pixel and are adjacent to the temporary pixel in the temporary pixel edge direction are It is set as a pixel for calculating a pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting factor is set to 0.5 for the input pixel 1 and the input pixel 2.

図8(c)は、第3のパターンの仮画素値算出方法を示す図である。第3のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が5π/16<θ≦7π/16または−11π/16<θ≦−9π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、13π/16<θ’≦15π/16または−3π/16<θ’≦−π/16の角度範囲に含まれる。そこで、図8(c)に示されるように、第3のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素2,3の距離が仮画素と入力画素1,4の距離よりも近いことを考慮して、入力画素2,3に対して重み係数を0.3に設定し、入力画素1,4に対して重み係数を0.2に設定するようにしてもよい。   FIG. 8C is a diagram illustrating a temporary pixel value calculation method of the third pattern. In the third pattern, the direction of the edge gradient at the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 5π / 16 <θ ≦ 7π / 16 or −11π / 16 <θ ≦ −9π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 13π / 16 <θ ′ ≦ 15π / 16 or −3π / 16 <θ ′ ≦ −π / 16. Therefore, as shown in FIG. 8C, in the third pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting coefficient may be set to 0.25 for the input pixels 1 to 4, and that the distance between the temporary pixel and the input pixels 2 and 3 is closer than the distance between the temporary pixel and the input pixels 1 and 4. In consideration, the weighting factor may be set to 0.3 for the input pixels 2 and 3 and the weighting factor may be set to 0.2 for the input pixels 1 and 4.

図8(d)は、第4のパターンの仮画素値算出方法を示す図である。第4のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が9π/16≦θ<11π/16または−7π/16≦θ<−5π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、−π/16≦θ’<π/16または15π/16≦θ’<17π/16の角度範囲に含まれる。そこで、図8(d)に示されるように、第4のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1と入力画素3とを結ぶ線と、入力画素2と入力画素4とを結ぶ線とが交わる点が仮画素の位置として算出され、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,4の距離が仮画素と入力画素2,3の距離よりも近いことを考慮して、入力画素1,4に対して重み係数を0.3に設定し、入力画素2,3に対して重み係数を0.2に設定するようにしてもよい。   FIG. 8D is a diagram showing a fourth pattern provisional pixel value calculation method. In the fourth pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is 9π / 16 ≦ θ <11π / 16 or −7π / 16 ≦ θ <−5π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the provisional pixel edge direction θ ′ is included in an angle range of −π / 16 ≦ θ ′ <π / 16 or 15π / 16 ≦ θ ′ <17π / 16. Therefore, as shown in FIG. 8D, in the fourth pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, the point where the line connecting the input pixel 1 and the input pixel 3 and the line connecting the input pixel 2 and the input pixel 4 intersect is calculated as the position of the temporary pixel, and the pixel values of the input pixels 1 to 4 are calculated. Each is multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting factor may be set to 0.25 for the input pixels 1 to 4, and the distance between the temporary pixel and the input pixels 1 and 4 is closer than the distance between the temporary pixel and the input pixels 2 and 3. In consideration, the weighting factor may be set to 0.3 for the input pixels 1 and 4 and the weighting factor may be set to 0.2 for the input pixels 2 and 3.

図8(e)は、第5のパターンの仮画素値算出方法を示す図である。第5のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が11π/16≦θ<13π/16または−5π/16≦θ<−3π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、π/16≦θ’<3π/16または−15π/16≦θ’<−13π/16の角度範囲に含まれる。そこで、図8(e)に示されるように、第5のパターンにおいては、仮画素の近傍に位置し、仮画素に対して仮画素エッジ方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは、入力画素1および入力画素2に対して重み係数を0.5に設定している。   FIG. 8E is a diagram illustrating a provisional pixel value calculation method of the fifth pattern. In the fifth pattern, the direction of the edge gradient in the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 11π / 16 ≦ θ <13π / 16 or −5π / 16 ≦ θ <−3π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the provisional pixel edge direction θ ′ is included in the angle range of π / 16 ≦ θ ′ <3π / 16 or −15π / 16 ≦ θ ′ <− 13π / 16. Therefore, as shown in FIG. 8E, in the fifth pattern, the input pixels 1 and 2 that are located in the vicinity of the temporary pixel and are adjacent to the temporary pixel in the temporary pixel edge direction are It is set as a pixel for calculating a pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting factor is set to 0.5 for the input pixel 1 and the input pixel 2.

図8(f)は、第6のパターンの仮画素値算出方法を示す図である。第6のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が13π/16≦θ<15π/16または−3π/16≦θ<−π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、3π/16≦θ’<5π/16または−11π/16≦θ’<−11π/16の角度範囲に含まれる。そこで、図8(f)に示されるように、第6のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1と入力画素3とを結ぶ線と、入力画素2と入力画素4とを結ぶ線とが交わる点が仮画素の位置として算出され、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,4の距離が仮画素と入力画素2,3の距離よりも近いことを考慮して、入力画素1,4に対して重み係数を0.3に設定し、入力画素2,3に対して重み係数を0.2に設定するようにしてもよい。   FIG. 8F is a diagram illustrating a provisional pixel value calculation method of the sixth pattern. In the sixth pattern, the direction of the edge gradient at the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 13π / 16 ≦ θ <15π / 16 or −3π / 16 ≦ θ <−π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 3π / 16 ≦ θ ′ <5π / 16 or −11π / 16 ≦ θ ′ <− 11π / 16. Therefore, as shown in FIG. 8F, in the sixth pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, the point where the line connecting the input pixel 1 and the input pixel 3 and the line connecting the input pixel 2 and the input pixel 4 intersect is calculated as the position of the temporary pixel, and the pixel values of the input pixels 1 to 4 are calculated. Each is multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting factor may be set to 0.25 for the input pixels 1 to 4, and the distance between the temporary pixel and the input pixels 1 and 4 is closer than the distance between the temporary pixel and the input pixels 2 and 3. In consideration, the weighting factor may be set to 0.3 for the input pixels 1 and 4 and the weighting factor may be set to 0.2 for the input pixels 2 and 3.

図8(g)は、第7のパターンの仮画素値算出方法を示す図である。第7のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が不定のときの仮画素算出方法である。図8(g)に示されるように、第7のパターンにおいては、仮画素の斜め方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは入力画素1〜4に対して重み係数を0.25に設定している。   FIG. 8G is a diagram illustrating a provisional pixel value calculation method of the seventh pattern. The seventh pattern is a tentative pixel calculation method when the direction of the edge gradient in the tentative pixel is indeterminate estimated in the input pixel located in the vicinity of the tentative pixel. As shown in FIG. 8G, in the seventh pattern, the input pixels 1 to 4 adjacent in the oblique direction of the temporary pixel are set as pixels for calculating the pixel value of the temporary pixel. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting coefficient is set to 0.25 for the input pixels 1 to 4.

図9は、仮画素算出方法の一例を示す第3の図である。ここでは、図6(d),(f)に示す補間面に含まれる仮画素の画素値の算出方法をパターン別に示している。ここで、仮画素の近傍に位置する入力画素のエッジ勾配は、補間面のエッジ勾配とは異なる場合がある。このため、仮画素の算出は、エッジ勾配の方向に応じたパターンに従って算出することが好ましい。なお、ここでの仮画素算出処理が実行される仮画素は、縦方向に並ぶ入力画素の間に位置する仮画素を対象とする。   FIG. 9 is a third diagram illustrating an example of a provisional pixel calculation method. Here, the calculation method of the pixel value of the temporary pixel included in the interpolation plane shown in FIGS. 6D and 6F is shown for each pattern. Here, the edge gradient of the input pixel located near the temporary pixel may be different from the edge gradient of the interpolation plane. For this reason, the provisional pixel is preferably calculated according to a pattern corresponding to the direction of the edge gradient. Note that the provisional pixels for which the provisional pixel calculation process is executed here are provisional pixels located between the input pixels arranged in the vertical direction.

図9(a)は、第1のパターンの仮画素値算出方法を示す図である。第1のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向がπ/16<θ≦3π/16または−15π/16<θ≦−13π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、9π/16<θ’≦11π/16または−7π/16<θ’≦−5π/16の角度範囲に含まれる。そこで、図9(a)に示されるように、第1のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素2,4の距離が仮画素と入力画素1,3の距離よりも近いことを考慮して、入力画素2,4に対して重み係数を0.4に設定し、入力画素1,3に対して重み係数を0.1に設定するようにしてもよい。なお、入力画素1〜4に対して設定する重み係数を全て同じ値にするか、仮画素との距離に応じた値に設定するかは、画像を用いて検証を行い、好ましい方法を選択すればよい。   FIG. 9A is a diagram illustrating a temporary pixel value calculation method of the first pattern. In the first pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is π / 16 <θ ≦ 3π / 16 or −15π / 16 <θ ≦ −13π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 9π / 16 <θ ′ ≦ 11π / 16 or −7π / 16 <θ ′ ≦ −5π / 16. Therefore, as shown in FIG. 9A, in the first pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting factor may be set to 0.25 for the input pixels 1 to 4, and the distance between the temporary pixel and the input pixels 2 and 4 is closer than the distance between the temporary pixel and the input pixels 1 and 3. In consideration, the weighting factor may be set to 0.4 for the input pixels 2 and 4 and the weighting factor may be set to 0.1 for the input pixels 1 and 3. Whether the weighting factors set for the input pixels 1 to 4 are all set to the same value or set to a value corresponding to the distance from the temporary pixel is verified using an image and a preferred method is selected. That's fine.

図9(b)は、第2のパターンの仮画素値算出方法を示す図である。第2のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が3π/16<θ≦5π/16または−13π/16<θ≦−11π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、11π/16<θ’≦13π/16または−5π/16<θ’≦−3π/16の角度範囲に含まれる。そこで、図9(b)に示されるように、第2のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素2,4の距離が仮画素と入力画素1,3の距離よりも近いことを考慮して、入力画素2,4に対して重み係数を0.3に設定し、入力画素1,3に対して重み係数を0.2に設定するようにしてもよい。   FIG. 9B is a diagram illustrating a temporary pixel value calculation method of the second pattern. In the second pattern, the direction of the edge gradient at the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 3π / 16 <θ ≦ 5π / 16 or −13π / 16 <θ ≦ −11π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 11π / 16 <θ ′ ≦ 13π / 16 or −5π / 16 <θ ′ ≦ −3π / 16. Therefore, as shown in FIG. 9B, in the second pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. Note that the weighting factor may be set to 0.25 for the input pixels 1 to 4, and the distance between the temporary pixel and the input pixels 2 and 4 is closer than the distance between the temporary pixel and the input pixels 1 and 3. In consideration, the weighting factor may be set to 0.3 for the input pixels 2 and 4 and the weighting factor may be set to 0.2 for the input pixels 1 and 3.

図9(c)は、第3のパターンの仮画素値算出方法を示す図である。第3のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が5π/16<θ≦7π/16または−11π/16<θ≦−9π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、13π/16<θ’≦15π/16または−3π/16<θ’≦−π/16の角度範囲に含まれる。そこで、図9(c)に示されるように、第3のパターンにおいては、仮画素の近傍に位置し、仮画素に対して仮画素エッジ方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは、入力画素1および入力画素2に対して重み係数を0.5に設定している。   FIG. 9C is a diagram illustrating a temporary pixel value calculation method of the third pattern. In the third pattern, the direction of the edge gradient at the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 5π / 16 <θ ≦ 7π / 16 or −11π / 16 <θ ≦ −9π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 13π / 16 <θ ′ ≦ 15π / 16 or −3π / 16 <θ ′ ≦ −π / 16. Therefore, as shown in FIG. 9C, in the third pattern, the input pixels 1 and 2 that are located in the vicinity of the temporary pixel and are adjacent to the temporary pixel in the temporary pixel edge direction are It is set as a pixel for calculating a pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting factor is set to 0.5 for the input pixel 1 and the input pixel 2.

図9(d)は、第4のパターンの仮画素値算出方法を示す図である。第4のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が9π/16≦θ<11π/16または−7π/16≦θ<−5π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、−π/16≦θ’<π/16または15π/16≦θ’<17π/16の角度範囲に含まれる。そこで、図9(d)に示されるように、第4のパターンにおいては、仮画素の近傍に位置し、仮画素に対して仮画素エッジ方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは、入力画素1および入力画素2に対して重み係数を0.5に設定している。   FIG. 9D is a diagram showing a fourth pattern provisional pixel value calculation method. In the fourth pattern, the direction of the edge gradient in the temporary pixel estimated in the input pixel located in the vicinity of the temporary pixel is 9π / 16 ≦ θ <11π / 16 or −7π / 16 ≦ θ <−5π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the provisional pixel edge direction θ ′ is included in an angle range of −π / 16 ≦ θ ′ <π / 16 or 15π / 16 ≦ θ ′ <17π / 16. Therefore, as shown in FIG. 9D, in the fourth pattern, the input pixels 1 and 2 that are located in the vicinity of the temporary pixel and are adjacent to the temporary pixel in the temporary pixel edge direction are It is set as a pixel for calculating a pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting factor is set to 0.5 for the input pixel 1 and the input pixel 2.

図9(e)は、第5のパターンの仮画素値算出方法を示す図である。第5のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が11π/16≦θ<13π/16または−5π/16≦θ<−3π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、π/16≦θ’<3π/16または−15π/16≦θ’<−13π/16の角度範囲に含まれる。そこで、図9(e)に示されるように、第5のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,3の距離が仮画素と入力画素2,4の距離よりも近いことを考慮して、入力画素1,3に対して重み係数を0.3に設定し、入力画素2,4に対して重み係数を0.2に設定するようにしてもよい。   FIG. 9E is a diagram illustrating a provisional pixel value calculation method of the fifth pattern. In the fifth pattern, the direction of the edge gradient in the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 11π / 16 ≦ θ <13π / 16 or −5π / 16 ≦ θ <−3π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the provisional pixel edge direction θ ′ is included in the angle range of π / 16 ≦ θ ′ <3π / 16 or −15π / 16 ≦ θ ′ <− 13π / 16. Therefore, as shown in FIG. 9E, in the fifth pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. It should be noted that the weighting factor may be set to 0.25 for the input pixels 1 to 4 and that the distance between the temporary pixel and the input pixels 1 and 3 is closer than the distance between the temporary pixel and the input pixels 2 and 4. In consideration, the weighting factor may be set to 0.3 for the input pixels 1 and 3 and the weighting factor may be set to 0.2 for the input pixels 2 and 4.

図9(f)は、第6のパターンの仮画素値算出方法を示す図である。第6のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が13π/16≦θ<15π/16または−3π/16≦θ<−π/16の角度範囲に含まれるときの仮画素値算出方法である。この場合、仮画素エッジ方向θ’は、3π/16≦θ’<5π/16または−11π/16≦θ’<−11π/16の角度範囲に含まれる。そこで、図9(f)に示されるように、第6のパターンにおいては、仮画素の近傍に位置し、仮画素エッジ方向から45°以内の方向に隣接する入力画素1〜4が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1〜4それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1〜4の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、入力画素1〜4に対して重み係数を0.25に設定してもよいし、仮画素と入力画素1,3の距離が仮画素と入力画素2,4の距離よりも近いことを考慮して、入力画素1,3に対して重み係数を0.4に設定し、入力画素2,4に対して重み係数を0.1に設定するようにしてもよい。   FIG. 9F is a diagram illustrating a provisional pixel value calculation method of the sixth pattern. In the sixth pattern, the direction of the edge gradient at the temporary pixel estimated at the input pixel located in the vicinity of the temporary pixel is 13π / 16 ≦ θ <15π / 16 or −3π / 16 ≦ θ <−π / 16. It is a provisional pixel value calculation method when included in the angle range. In this case, the temporary pixel edge direction θ ′ is included in an angle range of 3π / 16 ≦ θ ′ <5π / 16 or −11π / 16 ≦ θ ′ <− 11π / 16. Therefore, as shown in FIG. 9F, in the sixth pattern, the input pixels 1 to 4 that are located in the vicinity of the temporary pixel and are adjacent in the direction within 45 ° from the temporary pixel edge direction are temporary pixels. Is set as a pixel for calculating the pixel value. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 to 4. Specifically, each of the pixel values of the input pixels 1 to 4 is multiplied by a weighting coefficient, and the added value is calculated as the pixel value of the temporary pixel. It should be noted that the weighting factor may be set to 0.25 for the input pixels 1 to 4 and that the distance between the temporary pixel and the input pixels 1 and 3 is closer than the distance between the temporary pixel and the input pixels 2 and 4. In consideration, the weighting factor may be set to 0.4 for the input pixels 1 and 3 and the weighting factor may be set to 0.1 for the input pixels 2 and 4.

図9(g)は、第7のパターンの仮画素値算出方法を示す図である。第7のパターンは、仮画素の近傍に位置する入力画素において推定された、仮画素におけるエッジ勾配の方向が不定のときの仮画素算出方法である。図9(g)に示されるように、第7のパターンにおいては、仮画素の縦方向に隣接する入力画素1,2が、仮画素の画素値を算出するための画素として設定される。仮画素の画素値は、入力画素1,2それぞれに設定された重み係数に基づいて算出される。具体的には、入力画素1の画素値および入力画素2の画素値にそれぞれ重み係数を掛け、加算した値が仮画素の画素値として算出される。なお、ここでは、入力画素1および入力画素2に対して重み係数を0.5に設定している。   FIG. 9G is a diagram showing a provisional pixel value calculation method for the seventh pattern. The seventh pattern is a tentative pixel calculation method when the direction of the edge gradient in the tentative pixel is indeterminate estimated in the input pixel located in the vicinity of the tentative pixel. As shown in FIG. 9G, in the seventh pattern, the input pixels 1 and 2 adjacent in the vertical direction of the temporary pixel are set as pixels for calculating the pixel value of the temporary pixel. The pixel value of the temporary pixel is calculated based on the weighting factor set for each of the input pixels 1 and 2. Specifically, the pixel value of the input pixel 1 and the pixel value of the input pixel 2 are each multiplied by a weighting factor, and the added value is calculated as the pixel value of the temporary pixel. Here, the weighting factor is set to 0.5 for the input pixel 1 and the input pixel 2.

ここで、補間面は、補間画素の近傍に位置する4×4の入力画素のみを用いても設定することが可能である。しかしながら、画素間の距離が非常に遠くなるため、補間画素との相関性が低くなってしまう。そこで、図7〜9において述べたように、補間面において入力画素が存在しない位置に仮画素を設定したので、補間面内の画素間の距離を適度に保つことができる。これにより、補間画素との相関性の高い画素を用いた補間処理が可能となる。   Here, the interpolation plane can be set using only 4 × 4 input pixels located in the vicinity of the interpolation pixel. However, since the distance between the pixels becomes very long, the correlation with the interpolation pixel becomes low. Therefore, as described in FIGS. 7 to 9, since the temporary pixel is set at a position where no input pixel exists on the interpolation plane, the distance between the pixels on the interpolation plane can be kept moderate. Thereby, an interpolation process using a pixel having a high correlation with the interpolation pixel becomes possible.

なお、ここでは、仮画素におけるエッジ勾配の方向を、仮画素の4近傍の入力画素におけるエッジ勾配の方向θの代表値(例えば最頻値や平均値)を用いるものとした。しかしながら、これに限定されず、仮画素に最も近い入力画素のエッジ勾配の方向θを用いてもよい。もしくは、仮画素が属する補間面を設定する際に用いた補間画素におけるエッジ勾配の方向を、仮画素におけるエッジ勾配の方向として設定してもよい。この場合、仮画素におけるエッジ勾配の方向を、補間画素におけるエッジ勾配の方向とは別に算出する必要がないので、処理速度を高めることができる。   Here, the representative value (for example, the mode value or the average value) of the edge gradient direction θ of the input pixels in the vicinity of the temporary pixel is used as the edge gradient direction of the temporary pixel. However, the present invention is not limited to this, and the edge gradient direction θ of the input pixel closest to the temporary pixel may be used. Alternatively, the direction of the edge gradient in the interpolation pixel used when setting the interpolation plane to which the temporary pixel belongs may be set as the direction of the edge gradient in the temporary pixel. In this case, it is not necessary to calculate the direction of the edge gradient in the temporary pixel separately from the direction of the edge gradient in the interpolation pixel, so that the processing speed can be increased.

補間処理部77は、仮画素値算出処理部75により画素値が算出された仮画素を含む補間面に補間処理を実行する。補間処理は、補間面に含まれる補間画素の画素値を算出する処理である。補間処理は、例えば、Lanczos(ランツォシュ)補間処理である。Lanczos補間処理は、数3で示される補間関数に基づいて定められる重み係数と補間に用いる画素との積和を算出する補間演算を実行する処理である。   The interpolation processing unit 77 performs an interpolation process on the interpolation plane including the temporary pixel whose pixel value is calculated by the temporary pixel value calculation processing unit 75. The interpolation process is a process for calculating the pixel value of the interpolation pixel included in the interpolation plane. The interpolation process is, for example, a Lanczos interpolation process. The Lanczos interpolation process is a process for executing an interpolation operation for calculating a product sum of a weighting coefficient determined based on the interpolation function expressed by Equation 3 and pixels used for interpolation.

Figure 0005781370
Figure 0005781370

ただし、sinc関数は下記の数4で示される式であり、nは補間関数の性質を制御するための変数である。Lanczos補間処理に用いる補間画素の画素数は、変数nに応じて変化する。dは、補間画素とその近傍に位置する画素(入力画素または仮画素)との距離を示す。   However, the sinc function is an expression represented by the following equation (4), and n is a variable for controlling the properties of the interpolation function. The number of interpolated pixels used in the Lanczos interpolation process changes according to the variable n. d indicates the distance between the interpolation pixel and a pixel (input pixel or temporary pixel) located in the vicinity thereof.

Figure 0005781370
Figure 0005781370

補間処理部77は、エッジ方向推定処理部71により推定されたエッジ勾配の方向に応じた補間演算を実行し、補間画素の画素値を算出する。ここで、エッジ勾配の方向別の補間演算について説明する。   The interpolation processing unit 77 performs an interpolation calculation corresponding to the direction of the edge gradient estimated by the edge direction estimation processing unit 71, and calculates the pixel value of the interpolation pixel. Here, the interpolation calculation for each direction of the edge gradient will be described.

なお、以下では、図6(a),(e)に示す補間面を第1の補間面といい、図6(b)に示す補間面を第2の補間面といい、図6(c),(g)に示す補間面を第3の補間面といい、図6(d)に示す補間面を第4の補間面といい、図6(f)に示す補間面を第5の補間面といい、図6(h)に示す補間面を第6の補間面という。また、本実施の形態における補間処理は、補間画素の近傍に位置する4×4画素を用いるため、数3においてn=2としている。この場合、重み係数は、補間画素の位置からの距離によって定まり、具体的には、図16に示すような分布図となる。なお、分布図の横軸は補間画素からの距離を示し、縦軸は重み係数を示す。   In the following, the interpolation plane shown in FIGS. 6A and 6E is referred to as a first interpolation plane, the interpolation plane shown in FIG. 6B is referred to as a second interpolation plane, and FIG. , (G) is called the third interpolation plane, the interpolation plane shown in FIG. 6 (d) is called the fourth interpolation plane, and the interpolation plane shown in FIG. 6 (f) is the fifth interpolation plane. The interpolation plane shown in FIG. 6 (h) is referred to as a sixth interpolation plane. In addition, since the interpolation processing in the present embodiment uses 4 × 4 pixels located in the vicinity of the interpolation pixel, n = 2 in Equation 3. In this case, the weighting coefficient is determined by the distance from the position of the interpolation pixel, and specifically, a distribution diagram as shown in FIG. In the distribution diagram, the horizontal axis indicates the distance from the interpolation pixel, and the vertical axis indicates the weighting coefficient.

図10は、第1の補間面とともに補間演算に用いるパラメータを示す図である。ここでは、入力された画像データにおける水平方向(横方向)をX軸、垂直方向(縦方向)をY軸とする座標系を設定している。ここでの座標系は、入力画素とその隣の入力画素との距離を基準とした座標系である。図10には、補間画素とその近傍左上画素との距離の水平方向成分および垂直方向成分がそれぞれdistX,distYとして示されている。ここで、distXは、水平方向に隣接する入力画素間の距離を1としたときの値であり、distYは、垂直方向に隣接する入力画素間の距離を1としたときの値である。補間演算は、図10に示されるdistX,distYを用いて、式(11)により水平方向に実行される。   FIG. 10 is a diagram illustrating parameters used for the interpolation calculation together with the first interpolation plane. Here, a coordinate system is set in which the horizontal direction (lateral direction) in the input image data is the X axis and the vertical direction (vertical direction) is the Y axis. The coordinate system here is a coordinate system based on the distance between the input pixel and the adjacent input pixel. In FIG. 10, the horizontal direction component and the vertical direction component of the distance between the interpolated pixel and the upper left pixel in the vicinity thereof are shown as distX and distY, respectively. Here, distX is a value when the distance between input pixels adjacent in the horizontal direction is 1, and distY is a value when the distance between input pixels adjacent in the vertical direction is 1. The interpolation calculation is executed in the horizontal direction according to Expression (11) using distX and distY shown in FIG.

V(i)=w(−1−distX)×P(0,i)
+w(−distX)×P(1,i)
+w(1−distX)×P(2,i)
+w(2−distX)×P(3,i)・・・・・式(11)
ただし、0≦i≦3であり、P(X,Y)は入力画素を示す。
V (i) = w (−1−distX) × P (0, i)
+ W (−distX) × P (1, i)
+ W (1-distX) × P (2, i)
+ W (2-distX) × P (3, i) Equation (11)
However, 0 ≦ i ≦ 3, and P (X, Y) indicates an input pixel.

次に、式(11)により算出されたV(i)を用いて、式(12)により補間演算が行なわれ、補間画素の画素値OUTが算出される。   Next, using V (i) calculated by Expression (11), interpolation calculation is performed by Expression (12), and the pixel value OUT of the interpolation pixel is calculated.

OUT=w(−1−distY)×V(0)
+w(−distY)×V(1)
+w(1−distY)×V(2)
+w(2−distY)×V(3)・・・・・式(12)
図11は、第2の補間面とともに補間演算に用いるパラメータを示す図である。ここでは、第2の補間面の横方向をX’軸(第2軸)、補間画素エッジ方向に平行な方向をY’軸(第1軸)とする座標系を設定している。ここでの座標系は、入力画素とその隣の仮画素との距離を基準とした座標系である。図11には、補間画素とその近傍左上画素との距離の水平方向(X軸方向)成分および垂直方向(Y軸方向)成分がそれぞれdistX,distYとして示されている。補間演算は、図11に示されるdistX,distYに基づいて算出されたdistX’とdistYとを用いて、式(13)により水平方向に実行される。
OUT = w (−1−distY) × V (0)
+ W (−distY) × V (1)
+ W (1-distY) × V (2)
+ W (2-distY) × V (3) Expression (12)
FIG. 11 is a diagram showing parameters used for the interpolation calculation together with the second interpolation plane. Here, a coordinate system is set in which the horizontal direction of the second interpolation plane is the X ′ axis (second axis) and the direction parallel to the interpolation pixel edge direction is the Y ′ axis (first axis). The coordinate system here is a coordinate system based on the distance between the input pixel and the adjacent temporary pixel. In FIG. 11, the horizontal direction (X-axis direction) component and the vertical direction (Y-axis direction) component of the distance between the interpolation pixel and the upper left pixel in the vicinity thereof are shown as distX and distY, respectively. The interpolation calculation is executed in the horizontal direction according to Expression (13) using distX ′ and distY calculated based on distX and distY shown in FIG.

V(i)=w(−1−distX’)×P(0,i)
+w(−distX’)×P(1,i)
+w(1−distX’)×P(2,i)
+w(2−distX’)×P(3,i)・・・・・式(13)
ただし、0≦i≦3であり、P(X’,Y’)は入力画素または仮画素を示す。なお、distX’は式(14)によって算出される。
V (i) = w (−1−distX ′) × P (0, i)
+ W (−distX ′) × P (1, i)
+ W (1-distX ′) × P (2, i)
+ W (2-distX ′) × P (3, i) (13)
However, 0 ≦ i ≦ 3, and P (X ′, Y ′) indicates an input pixel or a temporary pixel. Note that distX ′ is calculated by the equation (14).

distX’=2×distX+distY・・・・・・・式(14)
distX’は、補間画素と基準画素を通る水平方向より斜め右上約63.4度方向の軸(P(1,0)とP(1,3)を通る軸)との距離を示す。以下、基準画素は、補間画素に対する近傍左上画素である。
distX ′ = 2 × distX + distY (14)
“distX ′” indicates a distance between an axis (an axis passing through P (1, 0) and P (1, 3)) in the direction of about 63.4 degrees obliquely from the horizontal direction passing through the interpolation pixel and the reference pixel. Hereinafter, the reference pixel is the upper left pixel near the interpolation pixel.

次に、式(14)により算出されたV(i)を用いて、式(15)により補間演算が行なわれ、補間画素の画素値OUTが算出される。   Next, using V (i) calculated by Expression (14), interpolation calculation is performed by Expression (15), and the pixel value OUT of the interpolation pixel is calculated.

OUT=w(−1−distY)×V(0)
+w(−distY)×V(1)
+w(1−distY)×V(2)
+w(2−distY)×V(3)・・・・・式(15)
ここで、distXは、水平方向に隣接する入力画素間の距離を1としたときの値であり、distYは、垂直方向に隣接する入力画素間の距離を1としたときの値である。一方、distX’は、仮画素を含めた補間面におけるX’軸方向に隣接する画素(入力画素、仮画素の両方を含む)間の距離を1としたときの値であり、distY’は、仮画素を含めた補間面におけるY’軸方向に隣接する画素間の距離を1としたときの値である。以下の図12から16についても同様である。
OUT = w (−1−distY) × V (0)
+ W (−distY) × V (1)
+ W (1-distY) × V (2)
+ W (2-distY) × V (3) Expression (15)
Here, distX is a value when the distance between input pixels adjacent in the horizontal direction is 1, and distY is a value when the distance between input pixels adjacent in the vertical direction is 1. On the other hand, distX ′ is a value when the distance between pixels adjacent to the X′-axis direction (including both input pixels and temporary pixels) on the interpolation plane including the temporary pixels is 1, and distY ′ is This is a value when the distance between adjacent pixels in the Y′-axis direction on the interpolation plane including the temporary pixel is 1. The same applies to FIGS. 12 to 16 below.

図12は、第3の補間面とともに補間演算に用いるパラメータを示す図である。ここでは、第3の補間面の補間画素エッジ方向に沿った辺に平行な方向をX’軸(第1軸)、補間画素エッジ方向に沿っていない辺に平行な方向をY’軸(第2軸)とする座標系を設定している。ここでの座標系は、入力画素とその隣の仮画素との距離を基準とした座標系である。
図12には、補間画素とその近傍左上画素との距離の水平方向成分および垂直方向成分がそれぞれdistX,distYとして示されている。補間演算は、図12に示されるdistX,distYに基づいて算出されたdistX’とdistYとを用いて、式(16)により水平方向に実行される。
FIG. 12 is a diagram showing parameters used for the interpolation calculation together with the third interpolation surface. Here, the direction parallel to the side along the interpolation pixel edge direction of the third interpolation plane is the X ′ axis (first axis), and the direction parallel to the side not along the interpolation pixel edge direction is the Y ′ axis (first axis). A coordinate system with two axes) is set. The coordinate system here is a coordinate system based on the distance between the input pixel and the adjacent temporary pixel.
In FIG. 12, the horizontal direction component and the vertical direction component of the distance between the interpolation pixel and the upper left pixel in the vicinity thereof are shown as distX and distY, respectively. The interpolation calculation is executed in the horizontal direction by Expression (16) using distX ′ and distY calculated based on distX and distY shown in FIG.

V(i)=w(−1−distX’)×P(0,i)
+w(−distX’)×P(1,i)
+w(1−distX’)×P(2,i)
+w(2−distX’)×P(3,i)・・・・・式(16)
ただし、0≦i≦3であり、P(X’,Y’)は入力画素または仮画素を示す。なお、distX’は式(17)によって算出される。
V (i) = w (−1−distX ′) × P (0, i)
+ W (−distX ′) × P (1, i)
+ W (1-distX ′) × P (2, i)
+ W (2-distX ′) × P (3, i) (16)
However, 0 ≦ i ≦ 3, and P (X ′, Y ′) indicates an input pixel or a temporary pixel. Note that distX ′ is calculated by the equation (17).

distX’=distX−distY・・・・・・・式(17)
distX’は、補間画素と基準画素を通る水平方向より斜め右上45度方向の軸(P(0,1)とP(3,1)とを通る軸)との距離を示す。
distX ′ = distX−distY (17)
“distX ′” indicates a distance between an axis (an axis passing through P (0,1) and P (3,1)) in an oblique upper right 45 ° direction from the horizontal direction passing through the interpolation pixel and the reference pixel.

次に、式(17)により算出されたV(i)を用いて、式(18)により補間演算が行なわれ、補間画素の画素値OUTが算出される。   Next, using V (i) calculated by Expression (17), interpolation calculation is performed by Expression (18), and the pixel value OUT of the interpolation pixel is calculated.

OUT=w(−1−distY’)×V(0)
+w(−distY’)×V(1)
+w(1−distY’)×V(2)
+w(2−distY’)×V(3)・・・・・式(18)
ただし、distY’は、図12に示されるdistX、distYを用いて式(19)により算出される。
OUT = w (−1−distY ′) × V (0)
+ W (−distY ′) × V (1)
+ W (1-distY ′) × V (2)
+ W (2-distY ′) × V (3) Expression (18)
However, distY ′ is calculated by Expression (19) using distX and distY shown in FIG.

distY’=distX+distY・・・・・・・式(19)
distY’は、補間画素と基準画素を通る水平方向より斜め右下45度方向の軸(P(1,0)とP(1,3)とを通る軸)との距離を示す。
distY ′ = distX + distY (19)
distY ′ represents a distance between an axis (an axis passing through P (1, 0) and P (1, 3)) in a 45 ° diagonally lower right direction than the horizontal direction passing through the interpolation pixel and the reference pixel.

図13は、第4の補間面とともに補間演算に用いるパラメータを示す図である。ここでは、第4の補間面の補間画素エッジ方向に沿った辺に平行な方向をX’軸(第1軸)、補間画素エッジ方向に沿っていない辺に平行な方向をY’軸(第2軸)とする座標系を設定している。ここでの座標系は、入力画素とその隣の仮画素との距離を基準とした座標系である。図13には、補間画素とその近傍左上画素との距離の水平方向成分および垂直方向成分がそれぞれdistX,distYとして示されている。補間演算は、図13に示されるdistX,distYを用いて、式(20)により水平方向に実行される。   FIG. 13 is a diagram showing parameters used for the interpolation calculation together with the fourth interpolation plane. Here, the direction parallel to the side along the interpolation pixel edge direction of the fourth interpolation plane is the X ′ axis (first axis), and the direction parallel to the side not along the interpolation pixel edge direction is the Y ′ axis (first axis). A coordinate system with two axes) is set. The coordinate system here is a coordinate system based on the distance between the input pixel and the adjacent temporary pixel. In FIG. 13, the horizontal direction component and the vertical direction component of the distance between the interpolation pixel and the upper left pixel in the vicinity thereof are shown as distX and distY, respectively. The interpolation calculation is executed in the horizontal direction by Expression (20) using distX and distY shown in FIG.

V(i)=w(−1−distX)×P(0,i)
+w(−distX)×P(1,i)
+w(1−distX)×P(2,i)
+w(2−distX)×P(3,i)・・・・・式(20)
次に、式(20)により算出されたV(i)を用いて、式(21)により補間演算が行なわれ、補間画素の画素値OUTが算出される。
V (i) = w (−1−distX) × P (0, i)
+ W (−distX) × P (1, i)
+ W (1-distX) × P (2, i)
+ W (2-distX) × P (3, i) (20)
Next, using V (i) calculated by Expression (20), interpolation calculation is performed by Expression (21), and the pixel value OUT of the interpolation pixel is calculated.

OUT=w(−1−distY’)×V(0)
+w(−distY’)×V(1)
+w(1−distY’)×V(2)
+w(2−distY’)×V(3)・・・・・式(21)
ただし、distY’は、図13に示されるdistX、distYを用いて式(22)により算出される。
OUT = w (−1−distY ′) × V (0)
+ W (−distY ′) × V (1)
+ W (1-distY ′) × V (2)
+ W (2-distY ′) × V (3) Equation (21)
However, distY ′ is calculated by Expression (22) using distX and distY shown in FIG.

distY’=2×distY+distX・・・・・・・式(22)
distY’は、補間画素と基準画素を通る水平方向より斜め右上26.5度方向の軸(P(0,1)とP(3,1)とを通る軸)との距離を示す。
distY ′ = 2 × distY + distX (22)
distY ′ indicates a distance between an axis (an axis passing through P (0,1) and P (3,1)) in an oblique upper right 26.5 degree direction from the horizontal direction passing through the interpolation pixel and the reference pixel.

図14は、第5の補間面とともに補間演算に用いるパラメータを示す図である。ここでは、第5の補間面の補間エッジ方向に沿った辺に平行な方向をX’軸(第1軸)、補間画素エッジ方向に沿っていない辺に平行な方向をY’軸(第2軸)とする座標系を設定している。ここでの座標系は、入力画素とその隣の仮画素との距離を基準とした座標系である。図14には、補間画素とその近傍左上画素との距離の水平方向成分および垂直方向成分がそれぞれdistX,distYとして示されている。補間演算は、図14に示されるdistX,distYを用いて、式(23)により水平方向に実行される。   FIG. 14 is a diagram illustrating parameters used for the interpolation calculation together with the fifth interpolation plane. Here, the direction parallel to the side along the interpolation edge direction of the fifth interpolation plane is the X ′ axis (first axis), and the direction parallel to the side not along the interpolation pixel edge direction is the Y ′ axis (second axis). A coordinate system is set. The coordinate system here is a coordinate system based on the distance between the input pixel and the adjacent temporary pixel. In FIG. 14, the horizontal direction component and the vertical direction component of the distance between the interpolation pixel and the adjacent upper left pixel are indicated as distX and distY, respectively. The interpolation calculation is executed in the horizontal direction by the equation (23) using distX and distY shown in FIG.

V(i)=w(−1−distX)×P(0,i)
+w(−distX)×P(1,i)
+w(1−distX)×P(2,i)
+w(2−distX)×P(3,i)・・・・・式(23)
ただし、0≦i≦3であり、P(X’,Y’)は入力画素または仮画素を示す。
V (i) = w (−1−distX) × P (0, i)
+ W (−distX) × P (1, i)
+ W (1-distX) × P (2, i)
+ W (2-distX) × P (3, i) (23)
However, 0 ≦ i ≦ 3, and P (X ′, Y ′) indicates an input pixel or a temporary pixel.

次に、式(23)により算出されたV(i)を用いて、式(24)により補間演算が行なわれ、補間画素の画素値OUTが算出される。   Next, using V (i) calculated by Expression (23), interpolation calculation is performed by Expression (24), and the pixel value OUT of the interpolation pixel is calculated.

OUT=w(−1−distY’)×V(0)
+w(−distY’)×V(1)
+w(1−distY’)×V(2)
+w(2−distY’)×V(3)・・・・・式(24)
ただし、distY’は、図14に示されるdistX、distYを用いて式(25)により算出される。
OUT = w (−1−distY ′) × V (0)
+ W (−distY ′) × V (1)
+ W (1-distY ′) × V (2)
+ W (2-distY ′) × V (3) Expression (24)
However, distY ′ is calculated by Expression (25) using distX and distY shown in FIG.

distY’=2×distY−distX・・・・・・・式(25)
distY’は、補間画素と基準画素を通る水平方向より斜め右下−26.5度方向の軸(P(0,1)とP(3,1)とを通る軸)との距離を示す。
distY ′ = 2 × distY−distX (Equation 25)
distY ′ represents a distance between an axis (an axis passing through P (0,1) and P (3,1)) in a direction diagonally lower right to −26.5 degrees from the horizontal direction passing through the interpolation pixel and the reference pixel.

図15は、第6の補間面とともに補間演算に用いるパラメータを示す図である。ここでは、第6の補間面の補間画素エッジ方向に沿っていない辺に平行な方向をX’軸(第2軸)、補間画素エッジ方向に沿った辺に平行な方向をY’軸(第1軸)とする座標系を設定している。ここでの座標系は、入力画素とその隣の仮画素との距離を基準とした座標系である。図15には、補間画素とその近傍左上画素との距離の水平方向成分および垂直方向成分がそれぞれdistX,distYとして示されている。補間演算は、図15に示されるdistX,distYに基づいて算出されたdistX’とdistYとを用いて、式(26)により水平方向に実行される。   FIG. 15 is a diagram illustrating parameters used for the interpolation calculation together with the sixth interpolation plane. Here, the direction parallel to the side not along the interpolation pixel edge direction of the sixth interpolation plane is the X ′ axis (second axis), and the direction parallel to the side along the interpolation pixel edge direction is the Y ′ axis (first axis). A coordinate system for one axis) is set. The coordinate system here is a coordinate system based on the distance between the input pixel and the adjacent temporary pixel. In FIG. 15, the horizontal direction component and the vertical direction component of the distance between the interpolated pixel and the upper left pixel in the vicinity thereof are shown as distX and distY, respectively. The interpolation calculation is executed in the horizontal direction by Expression (26) using distX ′ and distY calculated based on distX and distY shown in FIG.

V(i)=w(−1−distX’)×P(0,i)
+w(−distX’)×P(1,i)
+w(1−distX’)×P(2,i)
+w(2−distX’)×P(3,i)・・・・・式(26)
ただし、0≦i≦3であり、P(X’,Y’)は入力画素または仮画素を示す。なお、distX’は式(27)によって算出される。
V (i) = w (−1−distX ′) × P (0, i)
+ W (−distX ′) × P (1, i)
+ W (1-distX ′) × P (2, i)
+ W (2-distX ′) × P (3, i) Equation (26)
However, 0 ≦ i ≦ 3, and P (X ′, Y ′) indicates an input pixel or a temporary pixel. Here, distX ′ is calculated by the equation (27).

distX’=2×distX−distY・・・・・・・式(27)
distX’は、補間画素と基準画素を通る水平方向より斜め右下−63.4度方向の軸(P(1,0)とP(1,3)とを通る軸)との距離を示す。
distX ′ = 2 × distX−distY (27)
distX ′ represents a distance between an axis (an axis passing through P (1, 0) and P (1, 3)) in the lower right-63.4 degrees direction from the horizontal direction passing through the interpolation pixel and the reference pixel.

次に、式(26)により算出されたV(i)を用いて、式(28)により補間演算が行なわれ、補間画素の画素値OUTが算出される。   Next, using V (i) calculated by Expression (26), interpolation calculation is performed by Expression (28), and the pixel value OUT of the interpolation pixel is calculated.

OUT=w(−1−distY)×V(0)
+w(−distY)×V(1)
+w(1−distY)×V(2)
+w(2−distY)×V(3)・・・・・式(28)
以上の処理により、エッジ勾配の方向に応じて最適な補間面による補間処理演算を行うことができる。
OUT = w (−1−distY) × V (0)
+ W (−distY) × V (1)
+ W (1-distY) × V (2)
+ W (2-distY) × V (3) Expression (28)
Through the above processing, it is possible to perform an interpolation processing calculation using an optimal interpolation plane according to the direction of the edge gradient.

なお、ここは、Lanczos補間処理を用いて補間演算する場合を例に説明したが、下記式(29)により示される双三次元補間(バイキュービック補間)を用いてもよい。   Here, the case where the interpolation calculation is performed using the Lanczos interpolation processing is described as an example, but bi-three-dimensional interpolation (bicubic interpolation) represented by the following equation (29) may be used.

Figure 0005781370
Figure 0005781370

また、図6に示すブロックよりも大きいブロック内に補間面を設定してもよい。この場合、Lanczos関数のnを3として補間演算を行う。ここで、補間画素を含むブロック内に補間面が設定されている場合を、図17に示す。図17が図6と異なる点は、補間面が、ブロックが拡大した分だけ大きくなっている点である。したがって、ここでは詳細な説明は繰り返さない。ここで、図17(a),(e)で示されるブロック内に設定された補間面に補間演算を行う場合を例に説明する。なお、この補間面を第7の補間面という。   Further, the interpolation plane may be set in a block larger than the block shown in FIG. In this case, interpolation calculation is performed with n of the Lanczos function set to 3. Here, FIG. 17 shows a case where an interpolation plane is set in a block including interpolation pixels. FIG. 17 is different from FIG. 6 in that the interpolation plane is enlarged by the amount of enlargement of the block. Therefore, detailed description will not be repeated here. Here, a case where interpolation calculation is performed on the interpolation plane set in the blocks shown in FIGS. 17A and 17E will be described as an example. This interpolation plane is referred to as a seventh interpolation plane.

図18は、第7の補間面とともに補間演算に用いるパラメータを示す図である。ここでは、第7の補間面の横方向をX軸、縦方向をY軸とする座標系を設定している。ここでの座標系は、入力画素とその隣の入力画素との距離を基準とした座標系である。図18には、補間画素とその近傍左上画素との距離の水平方向成分および垂直方向成分がそれぞれdistX,distYとして示されている。補間演算は、図18に示されるdistX,distYとを用いて、式(30)により水平方向に実行される。   FIG. 18 is a diagram showing parameters used for the interpolation calculation together with the seventh interpolation plane. Here, a coordinate system is set in which the horizontal direction of the seventh interpolation plane is the X axis and the vertical direction is the Y axis. The coordinate system here is a coordinate system based on the distance between the input pixel and the adjacent input pixel. In FIG. 18, the horizontal direction component and the vertical direction component of the distance between the interpolation pixel and the upper left pixel in the vicinity thereof are shown as distX and distY, respectively. The interpolation calculation is executed in the horizontal direction according to Expression (30) using distX and distY shown in FIG.

V(i)=w(−2−distX)×P(0,i)
+w(−1−distX)×P(1,i)
+w(−distX)×P(2,i)
+w(1−distX)×P(3,i)
+w(2−distX)×P(4,i)
+w(3−distX)×P(5,i)・・・・・式(30)
ただし、0≦i≦6であり、P(X,Y)は入力画素を示す。
V (i) = w (-2-distX) × P (0, i)
+ W (-1−distX) × P (1, i)
+ W (−distX) × P (2, i)
+ W (1-distX) × P (3, i)
+ W (2-distX) × P (4, i)
+ W (3-distX) × P (5, i) (30)
However, 0 ≦ i ≦ 6, and P (X, Y) indicates an input pixel.

次に、式(30)により算出されたV(i)を用いて、式(31)により補間演算が行なわれ、補間画素値OUTが算出される。   Next, using V (i) calculated by Expression (30), interpolation calculation is performed by Expression (31), and an interpolation pixel value OUT is calculated.

OUT=w(−2−distY)×V(0)
+w(−1−distY)×V(1)
+w(−distY)×V(2)
+w(1−distY)×V(3)
+w(2−distY)×V(4)
+w(3−distY)×V(5)・・・・・式(31)
なお、図6(a)〜(h)に示すエッジ勾配の方向それぞれに対応して補間面を設定する代わりに、設定する補間面のパターンを少なくしてもよい。例えば、図19に示すブロック内に、エッジ勾配の方向に応じて、4通りの補間面のうちいずれかを設定すればよい。また、仮画素を算出する際に参照する周辺画素を図8記載のように変更することで、計算量を減らしながら各画素におけるエッジ勾配の方向を考慮して補間演算を行うことができる。
OUT = w (-2-distY) × V (0)
+ W (-1−distY) × V (1)
+ W (−distY) × V (2)
+ W (1-distY) × V (3)
+ W (2-distY) × V (4)
+ W (3-distY) × V (5) Equation (31)
Instead of setting the interpolation plane corresponding to each of the edge gradient directions shown in FIGS. 6A to 6H, the number of interpolation plane patterns to be set may be reduced. For example, any one of four interpolation planes may be set in the block shown in FIG. 19 according to the direction of the edge gradient. Further, by changing the peripheral pixels to be referred to when calculating the temporary pixels as shown in FIG. 8, it is possible to perform the interpolation calculation in consideration of the direction of the edge gradient in each pixel while reducing the calculation amount.

図20は、映像信号処理回路により実行される処理の流れを示すフローチャートである。図20に示されるように、エッジ方向推定処理部71は、補間画素のエッジ方向を推定する(ステップS31)。エッジ勾配の方向は、エッジ方向に垂直な方向であり、エッジ方向推定処理部71は、具体的には補間画素のエッジ勾配の方向を推定する。エッジ勾配の方向は、補間画素に最も近い入力画素に対して算出されたエッジ勾配の方向を用いてもよいし、補間画素の近傍に位置する入力画素に対して算出されたエッジ勾配の方向の代表値を用いてもよい。 FIG. 20 is a flowchart showing the flow of processing executed by the video signal processing circuit. As shown in FIG. 20, the edge direction estimation processing unit 71 estimates the edge direction of the interpolation pixel (step S31). The direction of the edge gradient is a direction perpendicular to the edge direction, and the edge direction estimation processing unit 71 specifically estimates the direction of the edge gradient of the interpolation pixel. As the direction of the edge gradient, the direction of the edge gradient calculated for the input pixel closest to the interpolation pixel may be used, or the direction of the edge gradient calculated for the input pixel located in the vicinity of the interpolation pixel may be used. A representative value may be used.

次のステップS32においては、補間面設定部73は、ステップS31において推定されたエッジ勾配の方向が所定の角度範囲内にあるか否かを判断する。エッジ勾配の方向が所定の範囲内にあるならば処理をステップS33に進めるが、そうでなければ処理をステップS36に進める。なお、所定の角度範囲は、π/16<θ≦7π/16、9π/16≦θ<15π/16の角度範囲である。尚、エッジが存在せずエッジ方向が不定の場合はエッジ勾配の方向が所定の範囲内と判定する。   In the next step S32, the interpolation plane setting unit 73 determines whether the direction of the edge gradient estimated in step S31 is within a predetermined angle range. If the edge gradient direction is within the predetermined range, the process proceeds to step S33; otherwise, the process proceeds to step S36. The predetermined angle ranges are π / 16 <θ ≦ 7π / 16 and 9π / 16 ≦ θ <15π / 16. If there is no edge and the edge direction is indefinite, the edge gradient direction is determined to be within a predetermined range.

ステップS33においては、表示部13の画素数に応じた映像データの拡大縮小率により補間の対象となる補間画素の近傍に位置する4×4入力画素で形成される四角形のブロック内を対象に、ステップS31において算出されたエッジ勾配の方向に沿って補間面を設定する。補間面は、ブロックのサイズとエッジ方向と補間面が設定される領域内の画素数とに基づいて定まる領域であり、具体的には、補間面は、その大きさがブロック内に収まる最大の大きさであり、かつ、補間画素エッジ方向に沿った第1軸に平行な2辺と第1軸とは異なる方向の第2軸に平行な2辺とを有する平行四辺形である。また、平行四辺形の補間面には、第1軸および第2軸に沿って配列された格子点である、ブロック内の画素と同じ画素数の4×4画素が含まれる。補間面に含まれる複数の画素には、入力画素の他に、画素値が存在しない仮画素が含まれる場合がある。仮画素については後述する。なお、補間面は、第1軸および第2軸に沿って配列された4×4画素の中心の2×2画素で囲まれる領域に補間画素が含まれるように設定される。   In step S33, for the inside of a rectangular block formed of 4 × 4 input pixels located in the vicinity of the interpolation pixel to be interpolated by the enlargement / reduction ratio of the video data according to the number of pixels of the display unit 13, An interpolation plane is set along the direction of the edge gradient calculated in step S31. The interpolation plane is an area determined based on the size of the block, the edge direction, and the number of pixels in the area where the interpolation plane is set. Specifically, the interpolation plane has the largest size that can be accommodated in the block. It is a parallelogram having two sides parallel to the first axis along the interpolation pixel edge direction and two sides parallel to the second axis in a direction different from the first axis. The parallelogram interpolation plane includes 4 × 4 pixels having the same number of pixels as the pixels in the block, which are lattice points arranged along the first axis and the second axis. In some cases, the plurality of pixels included in the interpolation plane include a provisional pixel having no pixel value in addition to the input pixel. The provisional pixel will be described later. The interpolation plane is set so that the interpolation pixel is included in a region surrounded by 2 × 2 pixels at the center of 4 × 4 pixels arranged along the first axis and the second axis.

なお、補間画素の近傍に位置する画素は、4×4画素であってもよいし、6×6画素であってもよい。補間画素の近傍に位置する画素が4×4画素である場合、補間面は、図6(a)〜(h)で示される補間面のうちエッジ勾配の方向に対応するものを設定する。なお、エッジ勾配の方向が不定である場合、一意に図6(a)または図6(c)に対応する補間面を設定するようにしてもよいし、近傍画素におけるエッジ勾配の方向を参照して、図6(a)〜(d)で示される補間面のうち参照されたエッジ勾配の方向に対応するものを設定するようにしてもよい。   The pixels located in the vicinity of the interpolation pixel may be 4 × 4 pixels or 6 × 6 pixels. When the pixels located in the vicinity of the interpolation pixel are 4 × 4 pixels, the interpolation plane corresponding to the direction of the edge gradient is set among the interpolation planes shown in FIGS. If the direction of the edge gradient is indefinite, an interpolation plane corresponding to FIG. 6A or FIG. 6C may be set uniquely, or the edge gradient direction in the neighboring pixels is referred to. Thus, among the interpolation planes shown in FIGS. 6A to 6D, one corresponding to the direction of the referenced edge gradient may be set.

補間画素の近傍に位置する画素が6×6画素の場合、図17(a)〜(h)で示される補間面のうちエッジ勾配の方向に対応するものを設定する。なお、エッジ勾配の方向が不定である場合、一意に図17(a)または図17(c)に対応する補間面を設定するようにしてもよいし、近傍画素におけるエッジ勾配の方向を参照して、図17(a)〜(d)で示される補間面のうち参照されたエッジ勾配の方向に対応するものを設定するようにしてもよい。   When the pixels located in the vicinity of the interpolation pixel are 6 × 6 pixels, one corresponding to the direction of the edge gradient is set from the interpolation planes shown in FIGS. If the direction of the edge gradient is indefinite, an interpolation plane corresponding to FIG. 17A or FIG. 17C may be set uniquely, or the direction of the edge gradient in the neighboring pixels is referred to. Then, among the interpolation planes shown in FIGS. 17A to 17D, one corresponding to the direction of the referenced edge gradient may be set.

次のステップS34においては、仮画素算出部75は、ステップS33において設定された補間面内において特定される仮画素の画素値を、その近傍に位置する画素に基づいて算出する仮画素算出処理を実行する。仮画素算出処理は、仮画素の近傍に位置する画素に対して推定されたエッジ勾配の方向それぞれに定められた算出方法に従って仮画素の画素値を算出する処理である。仮画素の近傍に位置する画素は、例えば、補間画素の近傍に位置する入力画素であってもよいし、仮画素の近傍に位置する2つの入力画素であってもよいし、仮画素の近傍に位置する4つの入力画素であってもよい。   In the next step S34, the provisional pixel calculation unit 75 performs provisional pixel calculation processing for calculating the pixel value of the provisional pixel specified in the interpolation plane set in step S33 based on the pixels located in the vicinity thereof. Run. The temporary pixel calculation process is a process of calculating the pixel value of the temporary pixel according to a calculation method defined for each direction of the edge gradient estimated with respect to the pixel located in the vicinity of the temporary pixel. The pixel located near the temporary pixel may be, for example, an input pixel located near the interpolation pixel, two input pixels located near the temporary pixel, or near the temporary pixel. There may be four input pixels located at.

次のステップS35においては、補間処理部77は、第1補間処理を実行することにより補間画素値を算出し、処理を終了する。第1補間処理は、ステップS34において仮画素が算出された後の補間面に対して、ステップS31において算出されたエッジ勾配の方向に対応する補間演算を実行する処理である。   In the next step S35, the interpolation processing unit 77 calculates the interpolation pixel value by executing the first interpolation process, and ends the process. The first interpolation process is a process for executing an interpolation operation corresponding to the direction of the edge gradient calculated in step S31 on the interpolation plane after the provisional pixel is calculated in step S34.

ステップS36は、ステップS31において算出された補間画素のエッジ勾配の方向が所定の角度範囲に含まれない場合である。ステップS36においては、補間処理部77は、第2補間処理を実行することにより補間画素の画素値を算出し、処理を終了する。第2補間処理は、ステップS34において仮画素が算出された後の補間面に対して、従来周知の補間演算を実行する処理である。具体的には、図10に示す方法により補間画素の画素値を算出する。   Step S36 is a case where the direction of the edge gradient of the interpolated pixel calculated in step S31 is not included in the predetermined angle range. In step S36, the interpolation processing unit 77 calculates the pixel value of the interpolation pixel by executing the second interpolation process, and ends the process. The second interpolation process is a process of executing a conventionally well-known interpolation operation on the interpolation plane after the provisional pixel is calculated in step S34. Specifically, the pixel value of the interpolation pixel is calculated by the method shown in FIG.

<変形例>
変形例におけるスケーラー処理部は、本実施の形態におけるスケーラー処理部が実行する処理に加えて、補正処理を実行するものである。
<Modification>
The scaler processing unit in the modified example executes correction processing in addition to the processing executed by the scaler processing unit in the present embodiment.

図21は、変形例におけるスケーラー処理部の構成を示すブロック図である。図21に示すスケーラー処理部61Aが図3に示すスケーラー処理部61と異なる点は、補正処理部79が追加された点である。その他の構成および機能は、スケーラー処理部61と同じであるので、ここでは説明は繰り返さない。   FIG. 21 is a block diagram illustrating a configuration of a scaler processing unit in a modified example. The scaler processing unit 61A shown in FIG. 21 is different from the scaler processing unit 61 shown in FIG. 3 in that a correction processing unit 79 is added. Other configurations and functions are the same as those of scaler processing unit 61, and thus description thereof will not be repeated here.

図21に示されるように、補正処理部79は、補間処理部77により補間演算された後の画像データに補正処理を実行する。補正処理は、補間演算により発生したボヤケを補正してエッジを鮮明にする処理である。   As shown in FIG. 21, the correction processing unit 79 performs correction processing on the image data after the interpolation calculation by the interpolation processing unit 77. The correction process is a process for correcting the blur generated by the interpolation calculation to make the edge clear.

図22は、補正処理部の構成を示す図である。図22に示されるように、補正処理部79は、最大値・最小値算出処理部81と、フィルタ処理部83と、飽和処理部85とを含む。   FIG. 22 is a diagram illustrating a configuration of the correction processing unit. As illustrated in FIG. 22, the correction processing unit 79 includes a maximum value / minimum value calculation processing unit 81, a filter processing unit 83, and a saturation processing unit 85.

最大値・最小値算出処理部81は、補間処理部77による補間演算後の画像データから最大画素値maxValおよび最小画素値minValを算出する。最大画素値maxValおよび最小画素値minValの算出は、画像データから処理対象となる画素を設定し、設定された画素とその近傍に位置する画素を含むM×N画素を対象とする。   The maximum value / minimum value calculation processing unit 81 calculates the maximum pixel value maxVal and the minimum pixel value minVal from the image data after the interpolation calculation by the interpolation processing unit 77. For the calculation of the maximum pixel value maxVal and the minimum pixel value minVal, a pixel to be processed is set from the image data, and M × N pixels including the set pixel and pixels located in the vicinity thereof are targeted.

フィルタ処理部83は、エッジを鮮鋭化する処理としてのフィルタ処理を、最大値・最小値算出処理部81の処理対象となる所定の範囲の画素に対して実行し、フィルタ処理後の画素値をフィルタ処理結果filValとして算出する。フィルタ処理結果filValは、例えば、補間処理部77により補間演算された後の画像データの画素をpixValとすると、式(32)に従って算出する。なお、所定の範囲の画素は、最大値・最小値算出処理部81の処理対象となるM×N画素であってもよいし、それより範囲の小さいm×n画素であってもよい。例えば、M×N画素は7×7画素であり、m×n画素は5×5画素である。   The filter processing unit 83 performs a filter process as a process for sharpening edges on pixels in a predetermined range to be processed by the maximum value / minimum value calculation process unit 81, and sets the pixel value after the filter process. Calculated as the filter processing result “filVal”. The filter processing result “filVal” is calculated according to Expression (32), for example, assuming that the pixel of the image data after being interpolated by the interpolation processing unit 77 is “pixVal”. The pixels in the predetermined range may be M × N pixels to be processed by the maximum value / minimum value calculation processing unit 81, or may be m × n pixels having a smaller range. For example, M × N pixels are 7 × 7 pixels, and m × n pixels are 5 × 5 pixels.

Figure 0005781370
Figure 0005781370

ただし、coef(i,j)はフィルタ係数を示す。   Here, coef (i, j) represents a filter coefficient.

飽和処理部85は、最大値・最小値算出処理部81により算出された最大画素値maxValおよび最小画素値minVal、フィルタ処理部83により算出されたフィルタ処理結果filValおよび補間処理部77により補間演算された後の画像データの画素pixValに基づいて、エッジの鮮鋭化の度合いを制御する飽和処理を実行する。飽和処理は、フィルタ処理結果filValと画素pixValとを比較した比較結果に応じて、フィルタ処理結果filValと最大画素値maxValとに基づく比較結果またはフィルタ処理結果filValと最小画素値minValとに基づく比較結果を判定することにより、オーバーシュートまたはアンダーシュートの発生を制御する処理である。   The saturation processing unit 85 performs an interpolation operation by the maximum pixel value maxVal and the minimum pixel value minVal calculated by the maximum value / minimum value calculation processing unit 81, the filter processing result fileVal calculated by the filter processing unit 83, and the interpolation processing unit 77. Based on the pixel pixVal of the subsequent image data, a saturation process for controlling the degree of edge sharpening is executed. In the saturation processing, a comparison result based on the filter processing result fillVal and the maximum pixel value maxVal or a comparison result based on the filter processing result fillVal and the minimum pixel value minVal according to the comparison result obtained by comparing the filter processing result fillVal and the pixel pixVal. Is a process for controlling the occurrence of overshoot or undershoot.

より具体的には、フィルタ処理結果filValと画素pixValとを比較した第1の比較結果に加えて、フィルタ処理結果filValと最小画素値minValに所定の係数αを減算した値とを比較した第2の比較結果またはフィルタ処理結果filValと最大画素値maxValに所定の係数βを加算した値とを比較した第3の比較結果に基づいて、補正処理結果を決定する。   More specifically, in addition to the first comparison result obtained by comparing the filter processing result filVal and the pixel pixVal, the second result obtained by comparing the filter processing result filVal and a value obtained by subtracting a predetermined coefficient α from the minimum pixel value minVal. The correction processing result is determined on the basis of the third comparison result obtained by comparing the comparison result or the filter processing result filVal with the value obtained by adding the predetermined coefficient β to the maximum pixel value maxVal.

第1の比較結果がフィルタ処理結果filValが画素pixValより小さいことを示す場合、第2の比較結果を判定し、そうでない場合、第3の比較結果を判定する。第2の比較結果の判定において、フィルタ処理結果filValが最小画素値minValに所定の係数αを減算した値以上であることを示す場合、フィルタ処理結果filValを補正処理結果として決定するが、そうでない場合、最小画素値minValを補正処理結果として決定する。第3の比較結果の判定において、フィルタ処理結果filValが最大画素値maxValに所定の係数βを加算した値以下であることを示す場合、フィルタ処理結果filValを補正処理結果として決定するが、そうでない場合、最大画素値maxValを補正処理結果として決定する。   If the first comparison result indicates that the filter processing result fillVal is smaller than the pixel pixVal, the second comparison result is determined, and if not, the third comparison result is determined. In the determination of the second comparison result, when the filter processing result filVal indicates that it is equal to or larger than the value obtained by subtracting the predetermined coefficient α from the minimum pixel value minVal, the filter processing result filVal is determined as the correction processing result. In this case, the minimum pixel value minVal is determined as the correction processing result. In the determination of the third comparison result, when the filter processing result fillVal indicates that it is equal to or less than the value obtained by adding the predetermined coefficient β to the maximum pixel value maxVal, the filter processing result fillVal is determined as the correction processing result, but not so. In this case, the maximum pixel value maxVal is determined as the correction process result.

なお、係数αおよびβは、エッジを強調する度合いによって変化させることが可能である。具体的には、係数αを変化させればアンダーシュートの発生および抑制を制御することが可能であり、係数βを変化させればオーバーシュートの発生および抑制を制御することが可能である。例えば、係数αを0に設定する場合、アンダーシュートの発生を抑制することができ、係数αを8に設定する場合、人間の目にとって目障りでないレベルのアンダーシュートを発生させることができる。また、係数βを0に設定する場合、オーバーシュートの発生を抑制することができ、係数βを8に設定する場合、人間の目にとって目障りでないレベルのオーバーシュートを発生させることができる。   The coefficients α and β can be changed according to the degree of emphasizing the edge. Specifically, the occurrence and suppression of undershoot can be controlled by changing the coefficient α, and the occurrence and suppression of overshoot can be controlled by changing the coefficient β. For example, when the coefficient α is set to 0, the occurrence of undershoot can be suppressed, and when the coefficient α is set to 8, an undershoot with a level that is not disturbing to human eyes can be generated. In addition, when the coefficient β is set to 0, the occurrence of overshoot can be suppressed, and when the coefficient β is set to 8, an overshoot of a level that is not disturbing to human eyes can be generated.

また、飽和処理は、文字等の輪郭を補正するのに非常に有効である反面、画像のディテイル部の階調再現を損なわせる可能性がある。そのため、エッジ強度の強い輪郭とディテイル部を識別するために、最大画素値maxValと最小画素値minValとの差分により算出されるダイナミックレンジがある程度大きい値(例えば64)を有するとき、輪郭が存在すると判定し補正処理を行い、それ以外の場合は補正処理を行わないようにしても良い。   In addition, the saturation process is very effective for correcting the outline of a character or the like, but there is a possibility that the gradation reproduction of the detail portion of the image is impaired. Therefore, when a dynamic range calculated by the difference between the maximum pixel value maxVal and the minimum pixel value minVal has a certain value (for example, 64) in order to identify a contour and a detail portion with strong edge strength, the contour is present. It is possible to determine and perform the correction process, and otherwise, the correction process may not be performed.

図23は、オーバーシュートおよびアンダーシュートの抑制効果の一例を示す図である。図23(a)は、映像データに含まれる複数フレームのうち1フレームの画像データの一例を示す図である。図23(b)は、補正処理を行わずにフィルタ処理(強調処理)を行った画像データの一例を示す第1の図である。図23(c)は、補正処理後の画像データの一例を示す第2の図である。図23(a)に示す画像データに対してフィルタ処理が実行されると、図23(b)に示すように、オーバーシュートおよびアンダーシュートが発生することを確認できた。一方、図23(a)に示す画像データに対して補正処理が実行されると、図23(c)に示すように、オーバーシュートおよびアンダーシュートが発生しないことが確認できた。   FIG. 23 is a diagram illustrating an example of the effect of suppressing overshoot and undershoot. FIG. 23A is a diagram illustrating an example of image data of one frame among a plurality of frames included in video data. FIG. 23B is a first diagram illustrating an example of image data that has been subjected to filter processing (enhancement processing) without performing correction processing. FIG. 23C is a second diagram illustrating an example of the image data after the correction process. When the filtering process is executed on the image data shown in FIG. 23A, it can be confirmed that overshoot and undershoot occur as shown in FIG. On the other hand, when the correction process was executed on the image data shown in FIG. 23A, it was confirmed that no overshoot and undershoot occurred as shown in FIG.

図24は、変形例における映像信号処理回路により実行される処理の流れを示すフローチャートである。図24に示す処理が、図20に示す処理と異なる点は、ステップS41〜ステップS44が追加された点である。その他の処理は、図20に示す処理と同じであるので、ここでは説明を繰り返さない。   FIG. 24 is a flowchart showing a flow of processing executed by the video signal processing circuit in the modification. The process shown in FIG. 24 is different from the process shown in FIG. 20 in that steps S41 to S44 are added. Other processing is the same as the processing shown in FIG. 20, and therefore description thereof will not be repeated here.

図24に示されるように、ステップS41においては、補正処理部79は、補正処理を実行するか否かを判断する。具体的には、最大画素値maxValと最小画素値minValとの差分により算出されるダイナミックレンジがある程度大きい値(例えば64)であるか否かを判断する。ダイナミックレンジがある程度大きい値(例えば64)であるならば処理をステップS42に進めるが、そうでなければ処理を終了する。   As shown in FIG. 24, in step S41, the correction processing unit 79 determines whether or not to execute the correction process. Specifically, it is determined whether or not the dynamic range calculated from the difference between the maximum pixel value maxVal and the minimum pixel value minVal is a value that is somewhat large (for example, 64). If the dynamic range is a somewhat large value (for example, 64), the process proceeds to step S42; otherwise, the process ends.

ステップS42においては、最大値・最小値算出処理部81は、ステップ35またはステップS36における補間演算後の画像データから最大画素値maxValおよび最小画素値minValを算出する。最大画素値maxValおよび最小画素値minValの算出は、画像データから処理対象となる画素を設定し、設定された画素とその近傍に位置する画素を含むM×N画素を対象とする。   In step S42, the maximum / minimum value calculation processing unit 81 calculates the maximum pixel value maxVal and the minimum pixel value minVal from the image data after the interpolation calculation in step 35 or step S36. For the calculation of the maximum pixel value maxVal and the minimum pixel value minVal, a pixel to be processed is set from the image data, and M × N pixels including the set pixel and pixels located in the vicinity thereof are targeted.

ステップS43においては、フィルタ処理部83は、エッジを鮮鋭化する処理としてのフィルタ処理を、画像データのうちステップS42において処理対象となった画素を含む所定の範囲の画素に対して実行し、フィルタ処理後の画素値をフィルタ処理結果filValとして算出する。フィルタ処理結果filValは、例えば、ステップS35またはステップS36において補間演算された後の画像データの画素pixValを用いて、式(32)に従って算出する。   In step S43, the filter processing unit 83 performs a filter process as a process for sharpening edges on pixels in a predetermined range including the pixels to be processed in step S42 in the image data. The pixel value after processing is calculated as the filter processing result “filVal”. The filter processing result “filVal” is calculated according to the equation (32) using, for example, the pixel “pixVal” of the image data after the interpolation calculation in step S35 or step S36.

ステップS44においては、飽和処理部85は、飽和処理を実行し、処理を終了する。   In step S44, the saturation processing unit 85 executes saturation processing and ends the processing.

図25は、飽和処理の流れを示すフローチャートである。飽和処理は、図24に示す処理のステップS54において、飽和処理部85により実行される処理である。図25に示されるように、フィルタ処理結果filValが画素pixValより小さいか否かを判断する(ステップS51)。フィルタ処理結果filValが画素pixValより小さいならば処理をステップS55に進めるが、そうでなければ処理をステップS52に進める。   FIG. 25 is a flowchart showing the flow of saturation processing. The saturation process is a process executed by the saturation processing unit 85 in step S54 of the process shown in FIG. As shown in FIG. 25, it is determined whether or not the filter processing result fillVal is smaller than the pixel pixVal (step S51). If the filter processing result fillVal is smaller than the pixel pixVal, the process proceeds to step S55; otherwise, the process proceeds to step S52.

ステップS52においては、フィルタ処理結果filValが最大画素値maxValに係数βを加えた値以下であるか否かを判断する。フィルタ処理結果filValが最大画素値maxValに係数βを加算した値以下であるならば処理をステップS53に進めるが、そうでなければ処理をステップS54に進める。   In step S52, it is determined whether or not the filter processing result “filVal” is equal to or smaller than the value obtained by adding the coefficient β to the maximum pixel value “maxVal”. If the filter processing result fillVal is equal to or smaller than the value obtained by adding the coefficient β to the maximum pixel value maxVal, the process proceeds to step S53; otherwise, the process proceeds to step S54.

なお、係数βは、固定値であってもよい。この場合、固定値は、例えば16である。また、ダイナミックレンジに所定の係数を乗算した値であってもよい。具体的には、最大画素値maxValと最小画素値minValとの差分に、所定の係数(例えば0.1)を乗算した値である。   The coefficient β may be a fixed value. In this case, the fixed value is 16, for example. Further, it may be a value obtained by multiplying the dynamic range by a predetermined coefficient. Specifically, it is a value obtained by multiplying the difference between the maximum pixel value maxVal and the minimum pixel value minVal by a predetermined coefficient (for example, 0.1).

ステップS53においては、フィルタ処理結果filValを補正処理結果として決定し、ステップS54においては、最大画素値maxValを補正処理結果として決定し、飽和処理を終了する。   In step S53, the filter processing result filVal is determined as the correction processing result, and in step S54, the maximum pixel value maxVal is determined as the correction processing result, and the saturation processing ends.

ステップS55は、ステップS51において、フィルタ処理結果filValが画素pixVal以上であると判断された場合である。ステップS55においては、フィルタ処理結果filValが最小画素値minValに係数αを減算した値以上であるか否かを判断する。フィルタ処理結果filValが最小画素値minValに係数αを減算した値以上ならば処理をステップS56に進めるが、そうでなければ処理をステップS57に進める。   Step S55 is a case where it is determined in step S51 that the filter processing result “filVal” is greater than or equal to the pixel “pixVal”. In step S55, it is determined whether or not the filter processing result “filVal” is equal to or greater than the value obtained by subtracting the coefficient α from the minimum pixel value “minVal”. If the filter processing result fillVal is equal to or larger than the value obtained by subtracting the coefficient α from the minimum pixel value minVal, the process proceeds to step S56; otherwise, the process proceeds to step S57.

なお、係数αは、固定値であってもよい。この場合、固定値は、例えば16である。また、ダイナミックレンジに所定の係数を乗算した値であってもよい。具体的には、最大画素値maxValと最小画素値minValとの差分に、所定の係数(例えば0.1)を乗算した値である。   The coefficient α may be a fixed value. In this case, the fixed value is 16, for example. Further, it may be a value obtained by multiplying the dynamic range by a predetermined coefficient. Specifically, it is a value obtained by multiplying the difference between the maximum pixel value maxVal and the minimum pixel value minVal by a predetermined coefficient (for example, 0.1).

ステップS56においては、最小画素値minValを補正処理結果として決定し、ステップS57においては、フィルタ処理結果filValを補正処理結果として決定し、飽和処理を終了する。   In step S56, the minimum pixel value minVal is determined as the correction process result, and in step S57, the filter process result fillVal is determined as the correction process result, and the saturation process ends.

したがって、上述した補正処理により、映像データを鮮鋭化し、オーバーシュートおよびアンダーシュート(過強調)の発生を抑制することができるので、補間演算により発生した映像のボヤケを抑制することができる。   Therefore, the correction processing described above sharpens the video data and suppresses the occurrence of overshoot and undershoot (over-emphasis), so that it is possible to suppress blurring of the video generated by the interpolation calculation.

なお、本実施の形態においてはテレビジョン受像機1の場合を例に説明したが、図26に示すようにテレビジョン受像機1が垂直方向および水平方向に複数台配置されたマルチディスプレイであってもよい。   In the present embodiment, the case of the television receiver 1 has been described as an example. However, as shown in FIG. 26, the television receiver 1 is a multi-display in which a plurality of television receivers 1 are arranged in the vertical direction and the horizontal direction. Also good.

また、本実施の形態においては、エッジ勾配の方向をSobelフィルタを用いたキャニー法によりエッジ勾配の方向を算出しているが、エッジ勾配の方向の算出方法はこれに限定するものではない。Prewittフィルタを用いるようにしてもよいし、Scharrフィルタを用いるようにしてもよい。   In this embodiment, the direction of the edge gradient is calculated by the canny method using the Sobel filter, but the method of calculating the direction of the edge gradient is not limited to this. A Prewitt filter may be used, or a Scherr filter may be used.

図27は、Prewittフィルタを示す図である。図27(a)は、水平方向に対応するPrewittフィルタを示す図である。図27(b)は、垂直方向に対応するPrewittフィルタを示す図である。図28は、Scharrフィルタを示す図である。図28(a)は、水平方向に対応するScharrフィルタを示す図である。図28(b)は、垂直方向に対応するScharrフィルタを示す図である。エッジ方向推定処理部71は、図4(a),(b)に示すSobelフィルタと同様に、図27(a),(b)に示すPrewittフィルタまたは図28(a),(b)に示すScharrフィルタを用いて、数7で示される式に従ってエッジ勾配の方向を算出してもよい。   FIG. 27 is a diagram illustrating a Prewitt filter. FIG. 27A shows a Prewitt filter corresponding to the horizontal direction. FIG. 27B is a diagram illustrating a Prewitt filter corresponding to the vertical direction. FIG. 28 is a diagram illustrating a Scherr filter. FIG. 28A is a diagram illustrating a Scherr filter corresponding to the horizontal direction. FIG. 28B is a diagram illustrating a Scherr filter corresponding to the vertical direction. The edge direction estimation processing unit 71 is similar to the Sobel filter shown in FIGS. 4A and 4B, and the Prewitt filter shown in FIGS. 27A and 27B or the Prewitt filter shown in FIGS. 28A and 28B. The direction of the edge gradient may be calculated according to the equation shown in Equation 7 using a Scherr filter.

Figure 0005781370
Figure 0005781370

このとき、エッジ方向φは、エッジ勾配の方向θに対して垂直になるため、数8で示される式に従って算出できる。   At this time, since the edge direction φ is perpendicular to the direction θ of the edge gradient, the edge direction φ can be calculated according to the equation shown in Equation 8.

Figure 0005781370
Figure 0005781370

また、エッジ勾配の方向の算出方法は、テンプレートマッチングであってよい。この場合、テンプレートマッチングに用いるテンプレートは、エッジ勾配の方向を推定するために予め角度が定められている。ここで、テンプレートマッチングを用いたエッジ勾配の方向の算出方法を具体的に説明する。   Further, the method of calculating the direction of the edge gradient may be template matching. In this case, the template used for template matching has a predetermined angle for estimating the direction of the edge gradient. Here, a method for calculating the direction of the edge gradient using template matching will be specifically described.

図29は、テンプレートの一例を示す図である。ここでは、0,45,90,135,180(=0度),225(=45度),270(=90度),315度(=135度)それぞれに対応するテンプレートを示している。これら複数のテンプレートそれぞれを画像データにマッチングすることによりエッジ勾配の方向を推定する。具体的には、マッチングすることによりそれぞれ算出されたエッジ量に基づいて、複数のテンプレートのうち画像データに最も一致するテンプレートに対応する角度を特定するとともに、テンプレートごとのエッジ量の総和を算出する。そして、特定された角度と算出されたエッジ量の総和とに基づいて、エッジ勾配の方向を特定する。複数のテンプレートのうち画像データに最も一致するテンプレートは、複数のテンプレートのうちマッチングにより算出されたエッジ量が最大となるテンプレートである。ここで、エッジ方向の特定について具体的に説明する。   FIG. 29 is a diagram illustrating an example of a template. Here, templates corresponding to 0, 45, 90, 135, 180 (= 0 degrees), 225 (= 45 degrees), 270 (= 90 degrees), and 315 degrees (= 135 degrees) are shown. The direction of the edge gradient is estimated by matching each of the plurality of templates with image data. Specifically, based on the edge amounts calculated by matching, the angle corresponding to the template that most closely matches the image data among the plurality of templates is specified, and the sum of the edge amounts for each template is calculated. . Then, the direction of the edge gradient is specified based on the specified angle and the total sum of the calculated edge amounts. The template that most closely matches the image data among the plurality of templates is the template that has the maximum edge amount calculated by matching among the plurality of templates. Here, the specification of the edge direction will be specifically described.

複数のテンプレートのうち0度に対応するテンプレートの一致度が最も大きく、かつ、0度に対応するテンプレートに基づいて算出されたエッジ量が他のテンプレートに基づいて算出されたエッジ量と比べて十分に大きいならば(例えば、エッジ量の総和の40%を超える)、エッジ勾配の方向が−π/16≦θ≦π/16、または、15π/16≦θ≦17π/16の範囲にあると判定する。   Of the plurality of templates, the degree of matching of the template corresponding to 0 degree is the highest, and the edge amount calculated based on the template corresponding to 0 degree is sufficiently larger than the edge amount calculated based on the other templates. (For example, more than 40% of the total amount of edges), the direction of the edge gradient is in the range of −π / 16 ≦ θ ≦ π / 16 or 15π / 16 ≦ θ ≦ 17π / 16. judge.

複数のテンプレートのうち45度に対応するテンプレートの一致度が最も大きく、かつ、45度に対応するテンプレートに基づいて算出されたエッジ量が他のテンプレートに基づいて算出されたエッジ量と比べて十分に大きいならば、エッジ勾配の方向が3π/16<θ≦5π/16、または、−13π/16<θ≦−11π/16の範囲にあると判定する。   Of the plurality of templates, the template corresponding to 45 degrees has the highest degree of matching, and the edge amount calculated based on the template corresponding to 45 degrees is sufficiently larger than the edge amount calculated based on the other templates. Is larger, the edge gradient direction is determined to be in the range of 3π / 16 <θ ≦ 5π / 16 or −13π / 16 <θ ≦ -11π / 16.

複数のテンプレートのうち90度に対応するテンプレートの一致度が最も大きく、かつ、90度に対応するテンプレートに基づいて算出されたエッジ量が他のテンプレートに基づいて算出されたエッジ量と比べて十分に大きいならば、エッジ勾配の方向が7π/16<θ≦9π/16、または、−9π/16<θ≦−7π/16の範囲にあると判定する。   Of the plurality of templates, the degree of matching of the template corresponding to 90 degrees is the highest, and the edge amount calculated based on the template corresponding to 90 degrees is sufficiently larger than the edge amount calculated based on the other templates. Is larger, the edge gradient direction is determined to be in the range of 7π / 16 <θ ≦ 9π / 16 or −9π / 16 <θ ≦ −7π / 16.

複数のテンプレートのうち135度に対応するテンプレートの一致度が最も大きく、かつ、135度に対応するテンプレートに基づいて算出されたエッジ量が他のテンプレートに基づいて算出されたエッジ量と比べて十分に大きいならば、エッジ勾配の方向が13π/16≦θ<15π/16、または、−3π/16≦θ<−π/16の範囲にあると判定する。   Of the plurality of templates, the template corresponding to 135 degrees has the highest degree of matching, and the edge amount calculated based on the template corresponding to 135 degrees is sufficiently larger than the edge amount calculated based on the other templates. Is larger, the edge gradient direction is determined to be in the range of 13π / 16 ≦ θ <15π / 16 or −3π / 16 ≦ θ <−π / 16.

一方、複数のテンプレートのうち0度または45度に対応するテンプレートの一致度が最も大きいが、0度または45度に対応するテンプレートに基づいて算出されたエッジ量が他のテンプレートに基づいて算出されたエッジ量と比べて十分に大きくなければ(例えば、エッジ量の総和の30%程度)、エッジ勾配の方向が3π/16<θ≦5π/16、または、−13π/16<θ≦−11π/16の範囲にあると判定する。   On the other hand, the matching degree of the template corresponding to 0 degree or 45 degrees is the largest among the plurality of templates, but the edge amount calculated based on the template corresponding to 0 degree or 45 degrees is calculated based on the other templates. If the edge amount is not sufficiently large (for example, about 30% of the sum of the edge amounts), the direction of the edge gradient is 3π / 16 <θ ≦ 5π / 16, or −13π / 16 <θ ≦ -11π. It is determined that it is within the range of / 16.

複数のテンプレートのうち45度または90度に対応するテンプレートの一致度が最も大きいが、0度に対応するテンプレートに基づいて算出されたエッジ量が他のテンプレートに基づいて算出されたエッジ量と比べて十分に大きくなければ、エッジ勾配の方向が5π/16<θ≦7π/16、あるいは、−11π/16<θ≦−9π/16の範囲にあると判定する。   Of the plurality of templates, the template corresponding to 45 degrees or 90 degrees has the highest degree of coincidence, but the edge amount calculated based on the template corresponding to 0 degree is compared with the edge amount calculated based on the other templates. If it is not sufficiently large, it is determined that the direction of the edge gradient is in the range of 5π / 16 <θ ≦ 7π / 16 or -11π / 16 <θ ≦ -9π / 16.

複数のテンプレートのうち90度または135度に対応するテンプレートの一致度が最も大きいが、90度または135度に対応するテンプレートに基づいて算出されたエッジ量が他のエッジ量と比べて十分に大きくなければ、エッジ勾配の方向が9π/16<θ≦11π/16、または、−7π/16<θ≦−5π/16の範囲にあると判定する。   Of the plurality of templates, the template corresponding to 90 degrees or 135 degrees has the highest degree of matching, but the edge amount calculated based on the template corresponding to 90 degrees or 135 degrees is sufficiently larger than other edge amounts. Otherwise, it is determined that the direction of the edge gradient is in the range of 9π / 16 <θ ≦ 11π / 16 or −7π / 16 <θ ≦ −5π / 16.

複数のテンプレートのうち135度または0度に対応するテンプレートの一致度が最も大きいが、135度または0度に対応するテンプレートに基づいて算出されたエッジ量が他のテンプレートに基づいて算出されたエッジ量と比べて十分に大きくなければ、エッジ勾配の方向が13π/16≦θ<15π/16、または、−3π/16≦θ<−π/16の範囲にあると判定する。   Of the plurality of templates, the template corresponding to 135 degrees or 0 degrees has the highest degree of coincidence, but the edge amount calculated based on the template corresponding to 135 degrees or 0 degrees is calculated based on another template. If it is not sufficiently larger than the amount, it is determined that the direction of the edge gradient is in the range of 13π / 16 ≦ θ <15π / 16 or −3π / 16 ≦ θ <−π / 16.

なお、テンプレートマッチングを用いて、エッジ方向を推定するようにしてもよい。この場合、エッジ方向は、エッジ勾配の方向に垂直であるので、マッチングにより特定された角度に垂直な角度を含む角度範囲をエッジ方向として推定すればよい。例えば、複数のテンプレートのうち0度に対応するテンプレートが最も一致度が大きく、かつ、0度に対応するテンプレートに基づいて算出されたエッジ量が他のエッジ量と比べて十分に大きいならば(エッジ量の総和の40%を超える)、エッジ方向が7π/16<θ≦9π/16、または、−9π/16<θ≦−7π/16の範囲にあると判定する。   Note that the edge direction may be estimated using template matching. In this case, since the edge direction is perpendicular to the direction of the edge gradient, an angle range including an angle perpendicular to the angle specified by matching may be estimated as the edge direction. For example, if the template corresponding to 0 degrees among the plurality of templates has the highest degree of matching, and the edge amount calculated based on the template corresponding to 0 degrees is sufficiently larger than the other edge amounts ( It is determined that the edge direction is in the range of 7π / 16 <θ ≦ 9π / 16 or −9π / 16 <θ ≦ −7π / 16).

また、本実施の形態においては、Lanczos補間処理や、双三次補間(バイキュービック補間)を用いて補間する場合を例に説明したが、スプライン補間処理を用いた補間であってもよい。式(35)は3次のスプライン補間式であり、補間処理部77は、仮画素値算出処理部により算出された仮画素の値を用いて、係数a、b、c、dを算出する。 In the present embodiment, the case of performing interpolation using Lanczos interpolation processing or bicubic interpolation (bicubic interpolation) has been described as an example. However, interpolation using spline interpolation processing may be used. Equation (35) is a cubic spline interpolation equation, and the interpolation processing unit 77 uses the values of the temporary pixels calculated by the temporary pixel value calculation processing unit to use the coefficients a i , b i , c i , d i. Is calculated.

(x)=a×(x−x+b×(x−x
+c×(x−x)+d・・・・・・・・・・(35)
補間処理部77は、下記条件に基づいて、6つの入力画素を用いて、式(35)に従って係数a、b、c、dを算出する。
・全ての入力画素を通る。
・各々の区分補間式は、境界点の1次導関数は連続とする。
・各々の区分補間式は、境界点の2次導関数は連続とする。
S i (x) = a i × (x−x i ) 3 + b i × (x−x i ) 2
+ C i × (x−x i ) + d i (35)
The interpolation processing unit 77 calculates the coefficients a i , b i , c i , d i according to Expression (35) using six input pixels based on the following conditions.
-Pass through all input pixels.
• Each piecewise interpolation equation has a continuous first derivative of the boundary point.
・ Each piecewise interpolation formula has a continuous second derivative of the boundary point.

補間処理部77は、算出された係数a、b、c、dを用いて、3次のスプライン補間式に基づいて、補間画素を算出する。なお、図30の丸91に示す画素は、式(36)に従って算出する。ただし、distXは、補間画素の位置と基準となる入力画素の位置との距離を示す。 The interpolation processing unit 77 uses the calculated coefficients a i , b i , c i , and d i to calculate an interpolation pixel based on a cubic spline interpolation formula. Note that the pixel indicated by a circle 91 in FIG. 30 is calculated according to Expression (36). Here, distX indicates the distance between the position of the interpolated pixel and the position of the reference input pixel.

(x)=a×distX+b×distX
+c×distX+d・・・・・・・・・・(36)
本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
S i (x) = a i × distX 3 + b i × distX 2
+ C i × distX + d i (36)
The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.

最後に、テレビジョン受像機1の各ブロック、特にスケーラー処理部61,61Aは、ハードウェアロジックによって構成してもよいし、次のようにCPUを用いてソフトウェアによって実現してもよい。   Finally, each block of the television receiver 1, particularly the scaler processing units 61 and 61A, may be configured by hardware logic or may be realized by software using a CPU as follows.

上述した機能を実現するソフトウェアであるテレビジョン受像機1の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記テレビジョン受像機1に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。   A recording medium in which a program code (execution format program, intermediate code program, source program) of a control program of the television receiver 1 which is software for realizing the above-described functions is recorded so as to be readable by a computer is recorded on the television receiver 1. This can also be achieved by reading the program code recorded on the recording medium and executing it by the computer (or CPU or MPU).

上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などを用いることができる。   Examples of the recording medium include a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a floppy (registered trademark) disk / hard disk, and an optical disk such as a CD-ROM / MO / MD / DVD / CD-R. Card system such as IC card, IC card (including memory card) / optical card, or semiconductor memory system such as mask ROM / EPROM / EEPROM / flash ROM.

また、テレビジョン受像機1を通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   Further, the television receiver 1 may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication. A net or the like is available. Further, the transmission medium constituting the communication network is not particularly limited. For example, even in the case of wired such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared rays such as IrDA and remote control, Bluetooth ( (Registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network, and the like can also be used. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

本発明は、例えばテレビジョンなどの画像処理に利用することができる。   The present invention can be used for image processing such as television.

1 テレビジョン受像機(画像処理装置)
11 中央演算装置(CPU)
21 映像信号処理回路
51 ビデオデコーダ
53 IP変換処理部
55 ノイズ低減処理部
57 シャープネス処理部
59 カラー調整処理部
61,61A スケーラー処理部
71 エッジ方向推定処理部
73 補間面設定部(補間領域設定部)
75 仮画素値算出処理部
77 補間処理部
79 補正処理部
81 最大値・最小値算出処理部
83 フィルタ処理部
85 飽和処理部
1 Television receiver (image processing device)
11 Central processing unit (CPU)
21 Video signal processing circuit 51 Video decoder 53 IP conversion processing unit 55 Noise reduction processing unit 57 Sharpness processing unit 59 Color adjustment processing unit 61, 61A Scaler processing unit 71 Edge direction estimation processing unit 73 Interpolation plane setting unit (interpolation region setting unit)
75 Temporary pixel value calculation processing unit 77 Interpolation processing unit 79 Correction processing unit 81 Maximum value / minimum value calculation processing unit 83 Filter processing unit 85 Saturation processing unit

Claims (13)

設定された拡大縮小率に従って、入力された画像データに含まれる入力画素間に補間画素を設けることにより上記画像データを拡大縮小する画像処理装置において、
各入力画素について、エッジの方向を示すエッジ方向、または、当該エッジ方向から所定角度だけずれたエッジ勾配を推定するエッジ方向推定処理部と、
上記補間画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該補間画素におけるエッジの方向を補間画素エッジ方向とするとき、当該補間画素エッジ方向に沿った領域であり、かつ、当該補間画素を囲む領域である補間領域を設定する補間領域設定部と、
上記補間領域において、入力画素間の画素である仮画素を設定し、当該仮画素の値を算出する仮画素値算出処理部と、
上記補間領域に含まれる入力画素および仮画素の値を用いて上記補間画素の値を算出する補間処理部とを備えることを特徴とする画像処理装置。
In the image processing apparatus that enlarges or reduces the image data by providing an interpolation pixel between the input pixels included in the input image data according to the set enlargement / reduction ratio,
For each input pixel, an edge direction indicating an edge direction, or an edge direction estimation processing unit that estimates an edge gradient shifted by a predetermined angle from the edge direction;
When the edge direction of the interpolation pixel specified using the edge direction or edge gradient of the input pixel existing in the vicinity of the interpolation pixel is the interpolation pixel edge direction, the region is along the interpolation pixel edge direction. And an interpolation area setting unit that sets an interpolation area that is an area surrounding the interpolation pixel,
In the interpolation region, a temporary pixel value calculation processing unit that sets a temporary pixel that is a pixel between input pixels and calculates a value of the temporary pixel;
An image processing apparatus comprising: an interpolation processing unit that calculates the value of the interpolation pixel using the values of the input pixel and the temporary pixel included in the interpolation region.
上記補間領域設定部は、上記補間画素エッジ方向に沿った第1軸に平行な辺と、上記第1軸とは異なる方向の第2軸に平行な2辺とからなる平行四辺形の領域を上記補間領域として設定することを特徴とする請求項1に記載の画像処理装置。   The interpolation region setting unit includes a parallelogram region including a side parallel to the first axis along the interpolation pixel edge direction and two sides parallel to the second axis in a direction different from the first axis. The image processing apparatus according to claim 1, wherein the image processing apparatus is set as the interpolation area. 上記補間処理部は、上記補間領域内において、上記第1軸および上記第2軸に沿って配列された入力画素および仮画素の値を用いて上記補間画素の値を算出することを特徴とする請求項2に記載の画像処理装置。   The interpolation processing unit calculates a value of the interpolated pixel using values of input pixels and temporary pixels arranged along the first axis and the second axis in the interpolation region. The image processing apparatus according to claim 2. 上記仮画素値算出処理部は、仮画素を含み、上記補間画素エッジ方向に沿った仮画素値算出用領域を設定し、当該仮画素値算出用領域に含まれる入力画素の値を用いて当該仮画素の値を算出することを特徴とする請求項1から3の何れか1項に記載の画像処理装置。   The temporary pixel value calculation processing unit includes a temporary pixel, sets a temporary pixel value calculation area along the interpolation pixel edge direction, and uses the value of the input pixel included in the temporary pixel value calculation area The image processing apparatus according to claim 1, wherein a value of the temporary pixel is calculated. 上記仮画素値算出処理部は、仮画素に対して上記補間画素エッジ方向または当該補間画素エッジ方向から所定角度範囲内の方向に隣接する入力画素の値を用いて当該仮画素の値を算出することを特徴とする請求項1から3の何れか1項に記載の画像処理装置。   The provisional pixel value calculation processing unit calculates a value of the provisional pixel using a value of an input pixel adjacent to the provisional pixel in the interpolation pixel edge direction or a direction within a predetermined angle range from the interpolation pixel edge direction. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus. 上記仮画素値算出処理部は、上記仮画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該仮画素におけるエッジの方向を仮画素エッジ方向とするとき、当該仮画素を含み、上記仮画素エッジ方向に沿った仮画素値算出用領域を設定し、当該仮画素値算出用領域に含まれる入力画素の値を用いて当該仮画素の値を算出することを特徴とする請求項1から3の何れか1項に記載の画像処理装置。   When the temporary pixel value calculation processing unit sets the edge direction of the temporary pixel specified using the edge direction or the edge gradient of the input pixel existing in the vicinity of the temporary pixel as the temporary pixel edge direction, the temporary pixel A provisional pixel value calculation area along the provisional pixel edge direction is set, and the value of the provisional pixel is calculated using the value of the input pixel included in the provisional pixel value calculation area. The image processing apparatus according to any one of claims 1 to 3. 上記仮画素値算出処理部は、上記仮画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該仮画素におけるエッジの方向を仮画素エッジ方向とするとき、上記仮画素エッジ方向または当該仮画素エッジ方向から所定角度範囲内の方向に隣接する入力画素の値を用いて当該仮画素の値を算出することを特徴とする請求項1から3の何れか1項に記載の画像処理装置。   When the temporary pixel value calculation processing unit sets the edge direction of the temporary pixel specified using the edge direction or edge gradient of the input pixel existing in the vicinity of the temporary pixel as the temporary pixel edge direction, the temporary pixel 4. The value of the temporary pixel is calculated using a value of an input pixel adjacent in an edge direction or a direction within a predetermined angle range from the temporary pixel edge direction. Image processing apparatus. 上記補間処理部により補間演算された後の画像データを鮮鋭化する補正処理部をさらに備えた、請求項1から7のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a correction processing unit that sharpens the image data after the interpolation calculation by the interpolation processing unit. 上記補正処理部は、上記補間処理部により補間演算された後の画像データから、注目画素を含む所定の範囲の画素における最大の画素値および最小の画素値を算出する最大値・最小値算出処理部と、
鮮鋭化処理を行うためのフィルタ処理部と、
上記最大値・最小値算出処理部により算出された最大の画素値および最小の画素値と、上記フィルタ処理部により算出されたフィルタ処理結果と、上記補間処理部により補間演算された後の画像データの画素とに基づいて、鮮鋭化の度合いを制御する飽和処理部と、を含む請求項8に記載の画像処理装置。
The correction processing unit is a maximum value / minimum value calculation process for calculating a maximum pixel value and a minimum pixel value in pixels in a predetermined range including a target pixel from the image data after the interpolation calculation by the interpolation processing unit. And
A filter processing unit for performing a sharpening process;
The maximum pixel value and the minimum pixel value calculated by the maximum / minimum value calculation processing unit, the filter processing result calculated by the filter processing unit, and the image data after the interpolation calculation by the interpolation processing unit The image processing apparatus according to claim 8, further comprising: a saturation processing unit that controls a degree of sharpening based on the number of pixels.
請求項1〜9のいずれかに記載の画像処理装置を備える画像表示装置。   An image display apparatus comprising the image processing apparatus according to claim 1. 設定された拡大縮小率に従って、入力された画像データに含まれる入力画素間に補間画素を設けることにより上記画像データを拡大縮小する画像処理装置により実行される画像処理方法において、
各入力画素について、エッジの方向を示すエッジ方向、または、当該エッジ方向から所定角度だけずれたエッジ勾配を上記画像処理装置が推定するステップと、
上記補間画素の近傍に存在する入力画素のエッジ方向またはエッジ勾配を用いて特定される当該補間画素におけるエッジの方向を補間画素エッジ方向とするとき、当該補間画素エッジ方向に沿った領域であり、かつ、当該補間画素を囲む領域である補間領域を上記画像処理装置が設定するステップと、
上記補間領域において、入力画素間の画素である仮画素を設定し、当該仮画素の値を上記画像処理装置が算出するステップと、
上記補間領域に含まれる入力画素および仮画素の値を用いて上記補間画素の値を上記画像処理装置が算出するステップとを含むことを特徴とする画像処理方法。
In an image processing method executed by an image processing apparatus that enlarges or reduces the image data by providing an interpolation pixel between input pixels included in the input image data according to a set enlargement / reduction ratio,
For each input pixel, the image processing apparatus estimates an edge direction indicating an edge direction, or an edge gradient shifted by a predetermined angle from the edge direction;
When the edge direction of the interpolation pixel specified using the edge direction or edge gradient of the input pixel existing in the vicinity of the interpolation pixel is the interpolation pixel edge direction, the region is along the interpolation pixel edge direction. And the step in which the image processing apparatus sets an interpolation area, which is an area surrounding the interpolation pixel,
Setting a temporary pixel that is a pixel between input pixels in the interpolation region, and calculating the value of the temporary pixel by the image processing device ;
Image processing method characterized by comprising the step of the value of the interpolated pixel the image processing apparatus is calculated by using the value of the input pixel and the temporary pixel included in the interpolation region.
請求項1〜9のいずれかに記載の画像処理装置を動作させるプログラムであって、コンピュータを上記の各部として機能させるためのプログラム。   A program for operating the image processing apparatus according to any one of claims 1 to 9, wherein the program causes a computer to function as each of the above units. 請求項12に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。
A computer-readable recording medium on which the program according to claim 12 is recorded.
JP2011126622A 2011-06-06 2011-06-06 Image processing apparatus, image processing method, image display apparatus including image processing apparatus, program, and recording medium Active JP5781370B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011126622A JP5781370B2 (en) 2011-06-06 2011-06-06 Image processing apparatus, image processing method, image display apparatus including image processing apparatus, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011126622A JP5781370B2 (en) 2011-06-06 2011-06-06 Image processing apparatus, image processing method, image display apparatus including image processing apparatus, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2012253684A JP2012253684A (en) 2012-12-20
JP5781370B2 true JP5781370B2 (en) 2015-09-24

Family

ID=47526049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011126622A Active JP5781370B2 (en) 2011-06-06 2011-06-06 Image processing apparatus, image processing method, image display apparatus including image processing apparatus, program, and recording medium

Country Status (1)

Country Link
JP (1) JP5781370B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016053848A (en) * 2014-09-03 2016-04-14 ソニー株式会社 Signal processing device, signal processing method, solid state image sensor, imaging device, electronic device, and program
JP6469397B2 (en) * 2014-09-19 2019-02-13 株式会社デンソーテン Image processing apparatus, image processing method, and program
JP6469398B2 (en) * 2014-09-19 2019-02-13 株式会社デンソーテン Image processing apparatus, image processing method, and program
KR102482059B1 (en) * 2016-05-02 2022-12-29 삼성전자주식회사 Screen display method and electronic device supporting the same
CN107169938B (en) * 2017-05-24 2019-05-31 深圳市华星光电半导体显示技术有限公司 Brightness control system
KR102155760B1 (en) * 2019-06-25 2020-09-14 오스템임플란트 주식회사 APPARATUS AND METHOD FOR deciding Sleep

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4635652B2 (en) * 2005-03-08 2011-02-23 ソニー株式会社 Image processing apparatus, image processing method, program for image processing method, and recording medium recording program for image processing method
JP4388110B2 (en) * 2007-08-15 2009-12-24 独立行政法人科学技術振興機構 Image processing apparatus, method, and program
JP4628406B2 (en) * 2007-08-15 2011-02-09 独立行政法人科学技術振興機構 Image processing apparatus, method, and program
JP4973624B2 (en) * 2008-08-04 2012-07-11 三菱電機株式会社 Enlarged image generator
JP2011035514A (en) * 2009-07-30 2011-02-17 Sony Corp Image processing device and method, and program
JP4850965B1 (en) * 2010-12-06 2012-01-11 株式会社ナナオ Edge interpolation apparatus or method thereof

Also Published As

Publication number Publication date
JP2012253684A (en) 2012-12-20

Similar Documents

Publication Publication Date Title
JP4558806B2 (en) Visual processing device, visual processing method, program, display device, and integrated circuit
US7483040B2 (en) Information processing apparatus, information processing method, recording medium, and program
JP5781370B2 (en) Image processing apparatus, image processing method, image display apparatus including image processing apparatus, program, and recording medium
JP4098319B2 (en) Resolution conversion method and resolution conversion apparatus
JP6009903B2 (en) Image processing device
US20120263384A1 (en) Image enlargement apparatus, method, integrated circuit, and program
JP5434265B2 (en) Region classification device, image quality improvement device, video display device, and methods thereof
CN109345490B (en) Method and system for enhancing real-time video image quality of mobile playing terminal
JP2011107702A (en) Image processing system of input image, image display system, and image processing method
JP2012531790A (en) Multiple frame approach and image upscaling system
JP2008148316A (en) Apparatus and method for improving sharpness of image
TWI546777B (en) Image processing apparatus and method
JP2013041565A (en) Image processor, image display device, image processing method, computer program, and recording medium
JP4123781B2 (en) Image artifact removal method and apparatus for liquid crystal projector, and recording medium recording instruction program thereof
WO2014102876A1 (en) Image processing device and image processing method
US8265419B2 (en) Image processing apparatus and image processing method
JP5279830B2 (en) Video signal processing device and video display device
JP2013235517A (en) Image processing device, image display device, computer program and recording medium
WO2013151163A1 (en) Image processing device, image display device, image processing method, computer program, and recording medium
JP4123780B2 (en) Image artifact removal method and apparatus, and recording medium recording the same
US20140010455A1 (en) Imaging processing apparatus, image processing system and method for processing image
WO2014034242A1 (en) Image processing device, and method and program for image processing
CN112001976A (en) Dynamic image processing method
TWI389571B (en) Image processing method and image processing apparatus
JP2010141863A (en) Image processing method, apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140319

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150331

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150514

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150715

R150 Certificate of patent or registration of utility model

Ref document number: 5781370

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150