JP5287581B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP5287581B2
JP5287581B2 JP2009181222A JP2009181222A JP5287581B2 JP 5287581 B2 JP5287581 B2 JP 5287581B2 JP 2009181222 A JP2009181222 A JP 2009181222A JP 2009181222 A JP2009181222 A JP 2009181222A JP 5287581 B2 JP5287581 B2 JP 5287581B2
Authority
JP
Japan
Prior art keywords
enlargement
pixel
horizontal
vertical
line
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
JP2009181222A
Other languages
Japanese (ja)
Other versions
JP2011035746A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2009181222A priority Critical patent/JP5287581B2/en
Publication of JP2011035746A publication Critical patent/JP2011035746A/en
Application granted granted Critical
Publication of JP5287581B2 publication Critical patent/JP5287581B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Television Systems (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

本発明は、画像を拡大する画像処理装置及び画像処理方法に関し、特に、拡大後画像に含まれる斜め線のギザギザ感を軽減するための画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method for enlarging an image, and more particularly to an image processing apparatus and an image processing method for reducing the jagged feeling of oblique lines included in an enlarged image.

パソコンやTV受像機などが備えるデジタル表示ディスプレイに、画素数が小さい入力画像信号を表示画素数まで拡大して表示したい場合がある。このような場合は、線形補間法又はバイキュービック法のいずれかを用いるのが一般的である。これらの方法では、出力画像位置に応じたフィルタリングを行い、元画素間に画素を補間する。画素を補間することで結果的に画像を拡大させることができる。   There is a case where an input image signal having a small number of pixels is desired to be enlarged to the number of display pixels on a digital display provided in a personal computer or a TV receiver. In such a case, it is common to use either the linear interpolation method or the bicubic method. In these methods, filtering according to the output image position is performed, and pixels are interpolated between the original pixels. As a result, the image can be enlarged by interpolating the pixels.

しかしながら、線形補間法やバイキュービック法などの従来の一般的な方法によると、後述するように、出力画像(拡大後画像)に含まれる斜め線がギザギザに見えるとういう問題があった。そこで、斜め線のギザギザ感を軽減するための画像拡大方法が従来より提案されている。例えば、特許文献1には、出力画素位置に隣接した2つの走査線間の中間に、斜め線情報に基づいた画素を生成し、出力画素位置に隣接する走査線上の画素と前記中間画素とを用いて走査線変換する方法が開示されている。また、特許文献2には、画素補間する位置周辺の元画像間の水平方向及び垂直方向のエッジ検出結果を比較し、連続性があると判断した画素については、その連続した画素同士のフィルタリングにより画素補間する方法が開示されている。   However, according to a conventional general method such as a linear interpolation method or a bicubic method, there is a problem that a diagonal line included in an output image (enlarged image) looks jagged as described later. In view of this, an image enlargement method for reducing the jagged feeling of diagonal lines has been proposed. For example, in Patent Document 1, a pixel based on oblique line information is generated in the middle between two scanning lines adjacent to the output pixel position, and the pixel on the scanning line adjacent to the output pixel position and the intermediate pixel are A method of converting scan lines using the method is disclosed. In Patent Document 2, the edge detection results in the horizontal direction and the vertical direction between the original images around the position where the pixel is interpolated are compared, and the pixels determined to be continuous are filtered by the continuous pixels. A method for pixel interpolation is disclosed.

図11は、前記した従来技術の違いを説明するための図である。図11(a)は、入力画像(拡大前画像)を示している。この図に示すように、入力画像には、明るい部分(白)と暗い部分(黒)との境界線が斜め方向に存在するものとする。図11(b)は、従来の一般的な方法により入力画像を垂直方向に2倍拡大した後の画像を示している。従来の一般的な方法では、垂直方向に隣接する2つの元画素の平均値を求め、この平均値の画素値を持つ画素を補間することになる。そのため、図11(b)に示すように、境界線付近にグレーの画素が補間され、斜め線がギザギザに見えるという問題が発生していた。図11(c)は、特許文献1又は2に開示されている従来方法により入力画像を垂直方向に2倍拡大した後の画像を示している。特許文献1又は2に開示されている従来方法では、入力画像に含まれる斜め線を検出し、検出した斜め線上の画素対の相関を利用した補間処理を行う。そのため、図11(c)に示すように、斜め線上には黒の画素が補間され、斜め線以外の領域には白の画素が補間される結果、従来の一般的な方法に比べて斜め線のギザギザ感を軽減することができる。   FIG. 11 is a diagram for explaining a difference between the above-described conventional techniques. FIG. 11A shows an input image (image before enlargement). As shown in this figure, it is assumed that a boundary line between a bright part (white) and a dark part (black) exists in an oblique direction in the input image. FIG. 11B shows an image after the input image is enlarged twice in the vertical direction by a conventional general method. In the conventional general method, an average value of two original pixels adjacent in the vertical direction is obtained, and pixels having a pixel value of this average value are interpolated. For this reason, as shown in FIG. 11B, there is a problem that gray pixels are interpolated in the vicinity of the boundary line, and the oblique line looks jagged. FIG. 11C shows an image after the input image is enlarged twice in the vertical direction by the conventional method disclosed in Patent Document 1 or 2. In the conventional method disclosed in Patent Document 1 or 2, an oblique line included in an input image is detected, and an interpolation process using the correlation between pixel pairs on the detected oblique line is performed. Therefore, as shown in FIG. 11C, black pixels are interpolated on the diagonal lines, and white pixels are interpolated on the areas other than the diagonal lines. As a result, the diagonal lines are compared with the conventional general method. Can reduce the jagged feeling.

特開2005−12601号公報JP 2005-12601 A 特開2008−271085号公報JP 2008-271085 A

しかしながら、特許文献1に開示されている装置は走査線変換装置であり、垂直方向の画素数を変換する装置である。すなわち、特許文献1には、垂直方向に加えて水平方向に画像を拡大する構成については開示されていない。   However, the device disclosed in Patent Document 1 is a scanning line conversion device that converts the number of pixels in the vertical direction. That is, Patent Document 1 does not disclose a configuration for enlarging an image in the horizontal direction in addition to the vertical direction.

また、特許文献2に開示されている従来方法では、拡大後画像の画質の面で問題がある。すなわち、画像を垂直方向及び水平方向に拡大する場合は、一方の拡大処理の結果を他方の拡大処理に反映させるのが好ましい(後述する)。しかし、特許文献2に開示されている従来方法では、水平拡大フィルタリング結果と垂直拡大フィルタリング結果と斜め方向拡大フィルタリング結果のいずれかを選択するようになっているので、一方の拡大処理の結果を他方の拡大処理に反映させることができない。   Further, the conventional method disclosed in Patent Document 2 has a problem in terms of the image quality of the enlarged image. That is, when the image is enlarged in the vertical direction and the horizontal direction, it is preferable to reflect the result of one enlargement process in the other enlargement process (described later). However, in the conventional method disclosed in Patent Document 2, any one of the horizontal enlargement filtering result, the vertical enlargement filtering result, and the oblique direction enlargement filtering result is selected. Cannot be reflected in the enlargement process.

本発明は前記課題を解決するためになされたものであり、その目的は、斜め線のギザギザ感を軽減しつつ良好な画質で垂直及び水平方向に画像を拡大することのできる画像処理装置及び画像処理方法を提供することにある。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide an image processing apparatus and an image that can enlarge an image in the vertical and horizontal directions with good image quality while reducing the jagged feeling of diagonal lines. It is to provide a processing method.

本発明の実施の形態に係る第1の特徴は、入力画像に含まれる斜め線上の画素対の相関を利用した補間処理を行うことで斜め線処理付きの拡大処理を実現する画像処理装置であって、拡大後画像に含まれる画素の位置である出力画素位置を決定する決定部と、前記出力画素位置周辺の所定数の入力画素群を抽出する抽出部と、前記出力画素位置と前記所定数の入力画素群とに基づいて垂直方向及び水平方向のうちの一方に前記斜め線処理付きの拡大処理を行う第1の拡大部と、前記出力画素位置と前記抽出部により抽出された所定数の入力画素群とに基づいて第2の斜め線を検出し、前記出力画素位置と前記第2の斜め線と前記第1の拡大部の拡大処理結果とに基づいて拡大後画素を生成することにより垂直方向及び水平方向のうちの他方に前記斜め線処理付きの拡大処理を行う第2の拡大部とを備えたことである。 A first feature according to the embodiment of the present invention is an image processing apparatus that realizes enlargement processing with diagonal line processing by performing interpolation processing using correlation between pixel pairs on diagonal lines included in an input image. A determination unit that determines an output pixel position that is a position of a pixel included in the enlarged image, an extraction unit that extracts a predetermined number of input pixel groups around the output pixel position, the output pixel position and the predetermined number A first enlargement unit that performs the enlargement process with the diagonal line processing in one of the vertical direction and the horizontal direction based on the input pixel group, and the output pixel position and a predetermined number of extractions by the extraction unit By detecting a second diagonal line based on the input pixel group and generating a post-enlargement pixel based on the output pixel position, the second diagonal line, and the enlargement processing result of the first enlargement unit In the other of the vertical and horizontal directions It is to have a second expansion section for performing enlargement processing with serial diagonal process.

本発明の実施の形態に係る第2の特徴は、前記第1の特徴を備えた画像処理装置において、前記第1の拡大部が、垂直方向に前記斜め線処理付きの拡大処理を行い、前記第2の拡大部が、水平方向に前記斜め線処理付きの拡大処理を行うことである。   According to a second feature of the present invention, in the image processing apparatus having the first feature, the first enlargement unit performs an enlargement process with the oblique line process in a vertical direction, A 2nd expansion part is performing the expansion process with the said diagonal line process in a horizontal direction.

本発明の実施の形態に係る第3の特徴は、前記第2の特徴を備えた画像処理装置において、前記第1の拡大部が、前記所定数の入力画素群に含まれる斜め線である第1の斜め線を検出する垂直拡大用斜め線検出部と、前記第1の斜め線に基づいて前記出力画素位置と垂直方向に隣接するライン上の画素を前処理画素として生成する垂直拡大用斜め線処理部と、前記第1の斜め線上の画素に基づいて垂直方向拡大後画素を生成する垂直方向拡大フィルタ部とを備え、前記第2の拡大部が、前記所定数の入力画素群に含まれる斜め線である第2の斜め線を検出する水平拡大用斜め線検出部と、前記第2の斜め線と前記第1の拡大部の拡大処理結果とに基づいて前記出力画素位置と水平方向に隣接するライン上の画素を前処理画素として生成する水平拡大用斜め線処理部と、前記第2の斜め線上の画素に基づいて水平方向拡大後画素を生成する水平方向拡大フィルタ部とを備えたことである。 According to a third feature of an embodiment of the present invention, in the image processing apparatus having the second feature, the first enlargement unit is a diagonal line included in the predetermined number of input pixel groups. A vertical enlargement oblique line detection unit that detects one oblique line, and a vertical enlargement oblique line that generates, as a preprocessing pixel, a pixel on a line adjacent to the output pixel position in the vertical direction based on the first oblique line. A line processing unit and a vertical expansion filter unit that generates a pixel after vertical expansion based on pixels on the first diagonal line, and the second expansion unit is included in the predetermined number of input pixel groups A horizontal enlargement oblique line detection unit for detecting a second oblique line that is a diagonal line, and the output pixel position and the horizontal direction based on the second oblique line and the enlargement processing result of the first enlargement unit water generates a pixel on an adjacent line as preprocessing pixels And enlarging oblique line processing unit, it is to have a horizontal expansion filter portion for generating a pixel after horizontal expansion based on pixels of the second diagonal line.

本発明の実施の形態に係る第4の特徴は、前記第3の特徴を備えた画像処理装置において、前記垂直拡大用斜め線検出部が、前記所定数の入力画素群のうち前記出力画素位置と垂直方向に隣接するvライン目及びv+1ライン目上の入力画素対を通る斜め線を前記第1の斜め線として検出し、前記水平拡大用斜め線検出部が、前記所定数の入力画素群のうち前記出力画素位置と水平方向に隣接するh画素目及びh+1画素目上の入力画素対を通り、かつ、連続する2つの前記垂直方向拡大後画素間を通る斜め線を前記第2の斜め線として検出することである。   According to a fourth feature of the present invention, in the image processing apparatus having the third feature, the vertical enlargement oblique line detection unit is configured to output the output pixel position in the predetermined number of input pixel groups. A diagonal line passing through the pair of input pixels on the v-th line and the v + 1-th line adjacent to each other in the vertical direction is detected as the first diagonal line, and the horizontal enlargement diagonal line detection unit detects the predetermined number of input pixel groups. Of the second diagonal line passing through the input pixel pair on the h pixel and the h + 1 pixel adjacent to the output pixel position in the horizontal direction and passing between the two consecutive pixels in the vertical direction after expansion. It is to detect as a line.

本発明の実施の形態に係る第5の特徴は、前記第4の特徴を備えた画像処理装置において、前記垂直拡大用斜め線検出部が、複数の前記第1の斜め線の中からその画素対の差分絶対値が最小となる相関を検出し、前記水平拡大用斜め線検出部が、複数の前記第2の斜め線及び連続する2つの前記垂直方向拡大後画素対の中からその画素対の差分絶対値が最小となる相関を検出することである。   According to a fifth feature of the present invention, in the image processing apparatus having the fourth feature, the vertical enlargement oblique line detection unit includes a pixel of the plurality of first oblique lines. A correlation that minimizes the absolute value of the difference between the pair is detected, and the horizontal enlargement oblique line detection unit detects the pixel pair from among the plurality of second oblique lines and the two consecutive vertically enlarged pixel pairs. Is to detect the correlation that minimizes the difference absolute value.

本発明の実施の形態に係る第6の特徴は、前記第5の特徴を備えた画像処理装置において、前記垂直拡大用斜め線処理部が、前記出力画素位置の垂直方向距離に応じた重み付けをし、前記水平拡大用斜め線処理部が、前記出力画素位置の水平方向距離に応じた重み付けをすることである。 According to a sixth feature of the present invention, in the image processing apparatus having the fifth feature, the vertical enlargement oblique line processing unit weights the output pixel position according to a vertical distance. and, wherein the horizontal expansion for oblique line processing unit is to Rukoto weighted according to the horizontal distance of the output pixel position.

本発明の実施の形態に係る第7の特徴は、前記第3の特徴を備えた画像処理装置において、前記垂直方向拡大フィルタ部が、前記出力画素位置の垂直方向距離に応じた重み付けをして前記垂直方向拡大後画素を生成し、前記水平方向拡大フィルタ部が、前記出力画素位置の水平方向距離に応じた重み付けをして前記水平方向拡大後画素を生成することである。   According to a seventh feature of the embodiment of the present invention, in the image processing apparatus having the third feature, the vertical enlargement filter unit weights the output pixel position according to a vertical distance. The vertically expanded pixel is generated, and the horizontal expansion filter unit weights the output pixel position according to a horizontal distance to generate the horizontally expanded pixel.

本発明の実施の形態に係る第8の特徴は、入力画像に含まれる斜め線上の画素対の相関を利用した補間処理を行うことで斜め線処理付きの拡大処理を実現する画像処理方法であって、拡大後画像に含まれる画素の位置である出力画素位置を決定する決定ステップと、前記出力画素位置周辺の所定数の入力画素群を抽出する抽出ステップと、前記出力画素位置と前記所定数の入力画素群とに基づいて垂直方向及び水平方向のうちの一方に前記斜め線処理付きの拡大処理を行う第1の拡大ステップと、前記出力画素位置と前記抽出ステップで抽出された所定数の入力画素群とに基づいて第2の斜め線を検出し、前記出力画素位置と前記第2の斜め線と前記第1の拡大ステップの拡大処理結果とに基づいて拡大後画素を生成することにより垂直方向及び水平方向のうちの他方に前記斜め線処理付きの拡大処理を行う第2の拡大ステップと、を備えたことである。 An eighth feature according to the embodiment of the present invention is an image processing method for realizing enlargement processing with diagonal line processing by performing interpolation processing using correlation between pixel pairs on diagonal lines included in an input image. A determination step of determining an output pixel position that is a position of a pixel included in the enlarged image, an extraction step of extracting a predetermined number of input pixel groups around the output pixel position, the output pixel position and the predetermined number A first enlargement step for performing the enlargement process with the oblique line process in one of the vertical direction and the horizontal direction based on the input pixel group, and the output pixel position and a predetermined number of extractions performed in the extraction step By detecting a second diagonal line based on the input pixel group and generating a post-enlargement pixel based on the output pixel position, the second diagonal line, and the enlargement processing result of the first enlargement step Vertical direction A second expansion step of performing enlargement processing with the oblique line processing to the other of fine horizontal is that having a.

本発明によれば、斜め線のギザギザ感を軽減しつつ良好な画質で垂直及び水平方向に画像を拡大することのできる画像処理装置及び画像処理方法を提供することが可能である。   According to the present invention, it is possible to provide an image processing apparatus and an image processing method capable of enlarging an image in the vertical and horizontal directions with good image quality while reducing the jagged feeling of diagonal lines.

本発明の実施の形態における画像処理装置の構成図である。1 is a configuration diagram of an image processing apparatus according to an embodiment of the present invention. 本発明の実施の形態における画像処理装置の動作を示す図である。It is a figure which shows operation | movement of the image processing apparatus in embodiment of this invention. 本発明の実施の形態における拡大前後の画素位置を示す図である。It is a figure which shows the pixel position before and behind expansion in embodiment of this invention. 本発明の実施の形態における入力画素群の範囲を示す図である。It is a figure which shows the range of the input pixel group in embodiment of this invention. 本発明の実施の形態における斜め線の組み合わせを示す図である。It is a figure which shows the combination of the diagonal line in embodiment of this invention. 本発明の実施の形態における斜め線、垂直方向距離を示す図である。It is a figure which shows the diagonal line and vertical direction distance in embodiment of this invention. 本発明の実施の形態における斜め線の組み合わせを示す図である。It is a figure which shows the combination of the diagonal line in embodiment of this invention. 本発明の実施の形態における斜め線、水平方向距離を示す図である。It is a figure which shows the diagonal line and horizontal direction distance in embodiment of this invention. 特許文献1に開示されている従来技術を発展させた装置の構成図である。It is a block diagram of the apparatus which developed the prior art currently disclosed by patent document 1. FIG. 特許文献2に開示されている従来技術と本発明との違いを示す図である。It is a figure which shows the difference with the prior art currently disclosed by patent document 2, and this invention. 従来技術の違いを説明するための図である。It is a figure for demonstrating the difference in a prior art.

以下、本発明の実施の形態について図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明の実施の形態における画像処理装置の構成図である。この画像処理装置は、入力画像に含まれる斜め線上の画素対の相関を利用した補間処理を行うことで斜め線処理付きの拡大処理を実現する画像処理装置であって、図1(a)に示すように、出力画素位置決定部101と、m×n画素抽出部102と、斜め線処理付垂直方向拡大部301と、斜め線処理付水平方向拡大部302とを備えている。   FIG. 1 is a configuration diagram of an image processing apparatus according to an embodiment of the present invention. This image processing apparatus is an image processing apparatus that realizes enlargement processing with diagonal line processing by performing interpolation processing using correlation between pixel pairs on diagonal lines included in an input image. FIG. As shown, an output pixel position determination unit 101, an m × n pixel extraction unit 102, a vertical direction enlargement unit 301 with diagonal line processing, and a horizontal direction enlargement unit 302 with diagonal line processing are provided.

出力画素位置決定部101は、入力された垂直同期信号及び水平同期信号と垂直方向拡大率及び水平方向拡大率とに基づいて出力画素位置を決定する。出力画素位置は、拡大後画像に含まれる画素の位置であり、例えばxとyの座標値で表される。   The output pixel position determination unit 101 determines an output pixel position based on the input vertical synchronization signal and horizontal synchronization signal, the vertical direction enlargement ratio, and the horizontal direction enlargement ratio. The output pixel position is a position of a pixel included in the enlarged image, and is represented by, for example, coordinate values of x and y.

m×n画素抽出部102は、入力された画像信号から出力画素位置周辺の水平方向m画素×垂直方向n画素を抽出する処理部であり、具体的には、nライン以上のラインバッファで構成される。m×n画素抽出部102により抽出される画素は少なくとも2ライン×2画素以上である。また、m×n画素抽出部102に入力される画像信号の画素値はRGB又は輝度色差の値である。   The m × n pixel extraction unit 102 is a processing unit that extracts horizontal m pixels × vertical n pixels around the output pixel position from the input image signal, and specifically includes a line buffer of n lines or more. Is done. The pixels extracted by the m × n pixel extraction unit 102 are at least 2 lines × 2 pixels or more. Further, the pixel value of the image signal input to the m × n pixel extraction unit 102 is RGB or a luminance color difference value.

斜め線処理付垂直方向拡大部301は、出力画素位置とm×nの入力画素群とに基づいて垂直方向に斜め線処理付きの拡大処理を行う処理部であり、図1(b)に示すように、垂直拡大用斜め線検出部103と、垂直拡大用斜め線処理部105と、垂直方向拡大フィルタ部106とを備えている。垂直拡大用斜め線検出部103は、m×nの入力画素群に含まれる斜め線(第1の斜め線)を検出する。垂直拡大用斜め線処理部105は、第1の斜め線上の画素(第1の前処理画素)を生成する。垂直方向拡大フィルタ部106は、第1の斜め線上の画素に基づいて垂直方向拡大後画素を生成する。   The vertical enlargement unit 301 with diagonal line processing is a processing unit that performs enlargement processing with diagonal line processing in the vertical direction based on the output pixel position and the m × n input pixel group, and is shown in FIG. As described above, a vertical enlargement oblique line detection unit 103, a vertical enlargement oblique line processing unit 105, and a vertical direction enlargement filter unit 106 are provided. The vertical enlargement oblique line detection unit 103 detects an oblique line (first oblique line) included in the m × n input pixel group. The vertical enlargement oblique line processing unit 105 generates pixels (first preprocessed pixels) on the first oblique line. The vertical enlargement filter unit 106 generates a post-vertical enlargement pixel based on the pixels on the first diagonal line.

斜め線処理付水平方向拡大部302は、出力画素位置とm×nの入力画素群と斜め線処理付垂直方向拡大部301の拡大処理結果とに基づいて水平方向に斜め線処理付きの拡大処理を行う処理部であり、図1(b)に示すように、水平拡大用斜め線検出部104と、水平拡大用斜め線処理部107と、水平方向拡大フィルタ部108とを備えている。水平拡大用斜め線検出部104は、m×nの入力画素群に含まれる斜め線(第2の斜め線)を検出する。水平拡大用斜め線処理部107は、第2の斜め線上の画素(第2の前処理画素)を生成する。水平方向拡大フィルタ部108は、第2の斜め線上の画素に基づいて水平方向拡大後画素を生成する。   The horizontal enlargement unit 302 with diagonal line processing is an enlargement process with diagonal line processing in the horizontal direction based on the output pixel position, the m × n input pixel group, and the enlargement processing result of the vertical direction enlargement unit 301 with diagonal line processing. As illustrated in FIG. 1B, the processing unit includes a horizontal enlargement oblique line detection unit 104, a horizontal enlargement oblique line processing unit 107, and a horizontal direction enlargement filter unit 108. The horizontal enlargement oblique line detection unit 104 detects an oblique line (second oblique line) included in the m × n input pixel group. The horizontal enlargement oblique line processing unit 107 generates pixels (second pre-processed pixels) on the second oblique line. The horizontal expansion filter unit 108 generates a pixel after horizontal expansion based on the pixels on the second diagonal line.

図2は、本発明の実施の形態における画像処理装置の動作を示すフローチャートである。以下、図2に従って、本画像処理装置の構成を更に詳しく説明する。   FIG. 2 is a flowchart showing the operation of the image processing apparatus according to the embodiment of the present invention. Hereinafter, the configuration of the image processing apparatus will be described in more detail with reference to FIG.

まず、出力画素位置決定部101は、出力画素位置を決定する(ステップS1)。出力画素位置は、拡大後画像に含まれる画素の位置である。垂直方向の位置は垂直方向拡大率に基づいて決定され、水平方向の位置は水平方向拡大率に基づいて決定される。図3(a)は、垂直方向拡大前後の画素位置の関係を示している。垂直方向拡大前の隣接画素の間隔を1とした場合、垂直方向拡大後の隣接画素の間隔dvは垂直方向拡大率の逆数である。例えば、垂直方向拡大率が2倍である場合、垂直方向拡大後の隣接画素の間隔dvは0.5となる。この場合、出力画素位置の垂直方向距離yは、1ライン目から順に「0」「0.5」「0」「0.5」・・・というように、垂直方向上端からの距離の小数部で表される。同様に、図3(b)は、水平方向拡大前後の画素位置の関係を示している。水平方向拡大前の隣接画素の間隔を1とした場合、水平方向拡大後の隣接画素の間隔dhは水平方向拡大率の逆数である。例えば、水平方向拡大率が2倍である場合、水平方向拡大後の隣接画素の間隔dhは0.5となる。この場合、出力画素位置の水平方向距離xは、1画素目から順に「0」「0.5」「0」「0.5」・・・というように、水平方向左端からの距離の小数部で表される。   First, the output pixel position determining unit 101 determines an output pixel position (step S1). The output pixel position is a position of a pixel included in the enlarged image. The vertical position is determined based on the vertical magnification, and the horizontal position is determined based on the horizontal magnification. FIG. 3A shows the relationship between the pixel positions before and after enlargement in the vertical direction. When the interval between adjacent pixels before vertical expansion is 1, the interval dv between adjacent pixels after vertical expansion is the reciprocal of the vertical expansion rate. For example, when the vertical enlargement ratio is twice, the interval dv between adjacent pixels after the vertical enlargement is 0.5. In this case, the vertical distance y of the output pixel position is a fractional part of the distance from the upper end in the vertical direction, such as “0”, “0.5”, “0”, “0.5”,. It is represented by Similarly, FIG. 3B shows a relationship between pixel positions before and after enlargement in the horizontal direction. When the interval between adjacent pixels before horizontal expansion is 1, the interval dh between adjacent pixels after horizontal expansion is the reciprocal of the horizontal expansion rate. For example, when the horizontal enlargement ratio is double, the interval dh between adjacent pixels after horizontal enlargement is 0.5. In this case, the horizontal distance x of the output pixel position is a fractional part of the distance from the left end in the horizontal direction, such as “0”, “0.5”, “0”, “0.5”,. It is represented by

次に、m×n画素抽出部102は、出力画素位置周辺の入力画素群を抽出する(ステップS2)。図4は、m×n画素抽出部102により抽出される入力画素群の範囲を示している。すなわち、m×n画素抽出部102は、図中に実線の枠で示すように、出力画素位置を取り囲む4つの入力画素を中心にm×n画素を抽出するようになっている。   Next, the m × n pixel extraction unit 102 extracts an input pixel group around the output pixel position (step S2). FIG. 4 shows the range of the input pixel group extracted by the m × n pixel extraction unit 102. That is, the m × n pixel extraction unit 102 extracts m × n pixels around four input pixels surrounding the output pixel position, as indicated by a solid line frame in the drawing.

次に、垂直拡大用斜め線検出部103は、出力画素位置と垂直方向に隣接する入力画素対を通る斜め線を検出する(ステップS3)。図5は、m×n画素抽出部102により抽出された入力画素群から検出される斜め線の組み合わせを示している。すなわち、垂直拡大用斜め線検出部103は、画素P(h,v)とP(h,v+1)の間を通るvライン目とv+1ライン目上の画素対を結ぶ線分、具体的には、線分P(h,v)−P(h,v+1)、線分P(h−1,v)−P(h+1,v+1)、線分P(h+1,v)−P(h−1,v+1)、線分P(h−2,v)−P(h+2,v+1)、線分P(h+2,v)−P(h−2,v+1)、・・・を検出する。そして、検出した複数の斜め線の中から1つを選び出すために、まずは各斜め線の画素対の差分絶対値を算出する。   Next, the vertical enlargement oblique line detection unit 103 detects an oblique line passing through the pair of input pixels adjacent to the output pixel position in the vertical direction (step S3). FIG. 5 shows combinations of diagonal lines detected from the input pixel group extracted by the m × n pixel extraction unit 102. That is, the vertical enlargement oblique line detection unit 103 is a line segment connecting a pixel pair on the v-th line and the v + 1-th line passing between the pixels P (h, v) and P (h, v + 1), specifically, , Line segment P (h, v) -P (h, v + 1), line segment P (h-1, v) -P (h + 1, v + 1), line segment P (h + 1, v) -P (h-1, v + 1), line segment P (h−2, v) −P (h + 2, v + 1), line segment P (h + 2, v) −P (h−2, v + 1),. In order to select one of the detected plurality of diagonal lines, first, an absolute difference value of a pixel pair of each diagonal line is calculated.

相関Cva = |P(h,v)−P(h,v+1)|
相関Cvb = | P(h-1,v)−P(h+1,v+1)|
相関Cvc= | P(h+1,v)−P(h-1,v+1)|
相関Cvd= | P(h-2,v)−P(h+2,v+1)|
相関Cve= | P(h+2,v)−P(h-2,v+1)|
・・・
次いで、垂直拡大用斜め線検出部103は、算出した差分絶対値(相関)のうち最小値となる相関を検出し、検出した相関を構成する斜め線情報(画素対)を出力する。例えば、相関Cvcが最小値である場合は、斜め線情報(Dv1,Dv2)=(P(h+1,v),P(h−1,v+1))を出力する。
Correlation Cva = | P (h, v) −P (h, v + 1) |
Correlation Cvb = | P (h-1, v) −P (h + 1, v + 1) |
Correlation Cvc = | P (h + 1, v) −P (h-1, v + 1) |
Correlation Cvd = | P (h-2, v) −P (h + 2, v + 1) |
Correlation Cve = | P (h + 2, v) −P (h-2, v + 1) |
...
Next, the vertical enlargement oblique line detection unit 103 detects a correlation that is the minimum value among the calculated absolute difference values (correlation), and outputs oblique line information (pixel pairs) constituting the detected correlation. For example, when the correlation Cvc is the minimum value, diagonal line information (Dv1, Dv2) = (P (h + 1, v), P (h-1, v + 1)) is output.

次に、垂直拡大用斜め線処理部105は、垂直方向拡大フィルタ部106で使用する画素(前処理画素)を生成する(ステップS4)。まず、垂直拡大用斜め線検出部103から出力された斜め線情報Dv1とP(h,v)を、P(h,v)と出力画素位置との垂直方向距離yに応じて補間する。言い換えると、斜め線情報Dv1とP(h,v)について、垂直方向距離yに応じた重み付けをする。   Next, the vertical enlargement diagonal line processing unit 105 generates a pixel (pre-processing pixel) to be used by the vertical direction enlargement filter unit 106 (step S4). First, the oblique line information Dv1 and P (h, v) output from the vertical enlargement oblique line detection unit 103 are interpolated according to the vertical distance y between P (h, v) and the output pixel position. In other words, the diagonal line information Dv1 and P (h, v) are weighted according to the vertical distance y.

前処理画素 Tv1 = P(h,v)×(0.5−y)×2 + Dv1×y×2 (y≦0.5)
Tv1 = Dv1 (y>0.5)
同様に、斜め線情報Dv2とP(h,v+1)を、P(h,v)と出力画素位置との垂直方向距離yに応じて補間する。言い換えると、斜め線情報Dv2とP(h,v+1)について、垂直方向距離yに応じた重み付けをする。
Preprocess pixel Tv1 = P (h, v) × (0.5−y) × 2 + Dv1 × y × 2 (y ≦ 0.5)
Tv1 = Dv1 (y> 0.5)
Similarly, the oblique line information Dv2 and P (h, v + 1) are interpolated according to the vertical distance y between P (h, v) and the output pixel position. In other words, the diagonal line information Dv2 and P (h, v + 1) are weighted according to the vertical direction distance y.

前処理画素 Tv2 = Dv2 (y<0.5)
Tv2 = P(h,v+1)×(y−0.5)×2 + Dv2×(1.0−y)×2 (y≧0.5)
図6は、斜め線情報(Dv1,Dv2)が(P(h+1,v),P(h−1,v+1))である場合の斜め線、垂直方向距離yを示している。前処理画素Tv1はP(h,v)とP(h+1,v)から算出され、前処理画素Tv2はP(h,v+1)とP(h−1,v+1)から算出される。このような前処理を行えば、垂直方向距離yに応じた重み付けがされるので、出力画素位置が入力画素位置に一致した場合でも「画素とび」のような不連続現象の発生を抑制することが可能となる。
Pre-processing pixel Tv2 = Dv2 (y <0.5)
Tv2 = P (h, v + 1) × (y−0.5) × 2 + Dv2 × (1.0−y) × 2 (y ≧ 0.5)
FIG. 6 shows the diagonal line and the vertical distance y when the diagonal line information (Dv1, Dv2) is (P (h + 1, v), P (h-1, v + 1)). The preprocessing pixel Tv1 is calculated from P (h, v) and P (h + 1, v), and the preprocessing pixel Tv2 is calculated from P (h, v + 1) and P (h-1, v + 1). If such pre-processing is performed, weighting according to the vertical distance y is performed, so that even when the output pixel position matches the input pixel position, the occurrence of discontinuous phenomena such as “pixel skip” is suppressed. Is possible.

次に、垂直方向拡大フィルタ106は、垂直方向拡大補間を行う(ステップS5)。すなわち、垂直拡大用斜め線処理部105により生成された前処理画素Tv1,Tv2を用いて、出力画素位置との距離yに応じて補間する。言い換えると、前処理画素Tv1,Tv2について、垂直方向距離yに応じた重み付けをする。   Next, the vertical expansion filter 106 performs vertical expansion interpolation (step S5). That is, interpolation is performed using the preprocessed pixels Tv1 and Tv2 generated by the vertical enlargement diagonal line processing unit 105 according to the distance y from the output pixel position. In other words, the preprocessing pixels Tv1 and Tv2 are weighted according to the vertical distance y.

垂直方向拡大後画素SV = Tv1×(1−y) + Tv2×y
これにより、斜め線処理付き垂直方向拡大処理が完了し、垂直方向拡大後画素SVが出力される。斜め線処理付き垂直方向拡大処理の内容はここで例示した内容に限定されるものではない。例えば、特許文献1に開示されているように、斜め線の画素対の中間値と出力画素位置に隣接する画素との補間によっても、斜め線処理付き垂直方向拡大処理を実現することができる。
Vertically expanded pixel SV = Tv1 × (1−y) + Tv2 × y
Thereby, the vertical enlargement process with the diagonal line process is completed, and the vertically enlarged pixel SV is output. The contents of the vertical enlargement process with the diagonal line process are not limited to the contents exemplified here. For example, as disclosed in Patent Document 1, vertical enlargement processing with diagonal line processing can also be realized by interpolation between an intermediate value of a pixel pair of diagonal lines and a pixel adjacent to the output pixel position.

一方、前記垂直拡大用斜め線検出処理(ステップS3)と並行して水平拡大用斜め線検出処理を行う。すなわち、水平拡大用斜め線検出部104は、出力画素位置と水平方向に隣接する垂直方向拡大後画素間を通る斜め線を検出する(ステップS6)。図7は、m×n画素抽出部102により抽出された入力画素群から検出される斜め線の組み合わせを示している。ここで、図中のSV(h,v)とSV(h+1,v)は、連続する2つの垂直方向拡大後画素である。「連続する」とは、SV(h,v)に続いてSV(h+1,v)が垂直方向拡大フィルタ106から出力されることを意味している。水平拡大用斜め線検出部104は、SV(h,v)とSV(h+1,v)間を通り、かつ、h画素目及びh+1画素目上の画素対の線分、具体的には、線分SV(h,v)−SV(h+1,v)、線分P(h,v)−P(h+1,v+1)、線分P(h+1,v)−P(h,v+1)、線分P(h,v−1)−P(h+1,v+2)、線分P(h+1,v−1)−P(h,v+2)、・・・を検出する。そして、検出した複数の斜め線の中から1つを選び出すために、まずは各斜め線の画素対の差分絶対値を算出する。   On the other hand, horizontal enlargement oblique line detection processing is performed in parallel with the vertical enlargement oblique line detection processing (step S3). That is, the horizontal enlargement oblique line detection unit 104 detects an oblique line passing between the output pixel position and the vertically enlarged pixels adjacent in the horizontal direction (step S6). FIG. 7 shows combinations of diagonal lines detected from the input pixel group extracted by the m × n pixel extraction unit 102. Here, SV (h, v) and SV (h + 1, v) in the figure are two consecutive pixels after enlargement in the vertical direction. “Consecutive” means that SV (h + 1, v) is output from the vertical expansion filter 106 following SV (h, v). The horizontal enlargement diagonal line detection unit 104 passes between SV (h, v) and SV (h + 1, v) and is a line segment of a pixel pair on the h-th pixel and the h + 1-th pixel, specifically, a line Min SV (h, v) -SV (h + 1, v), line segment P (h, v) -P (h + 1, v + 1), line segment P (h + 1, v) -P (h, v + 1), line segment P (H, v-1) -P (h + 1, v + 2), line segment P (h + 1, v-1) -P (h, v + 2),... Are detected. In order to select one of the detected plurality of diagonal lines, first, an absolute difference value of a pixel pair of each diagonal line is calculated.

相関Cha = |SV(h,v)−SV(h,v+1)|
相関Chb= | P(h,v)−P(h+1,v+1)|
相関Chc= | P(h+1,v)−P(h,v+1)|
相関Chd= | P(h,v-1)−P(h+1,v+2)|
相関Che= | P(h+1,v-1)−P(h,v+2)|
・・・
次いで、水平拡大用斜め線検出部104は、算出した差分絶対値(相関)のうち最小値となる相関を検出し、検出した相関を構成する斜め線情報(画素対)を出力する。例えば、相関Chcが最小値である場合は、斜め線情報(Dh1,Dh2)=(P(h,v+1),P(h+1,v))を出力する。
Correlation Cha = | SV (h, v) −SV (h, v + 1) |
Correlation Chb = | P (h, v) −P (h + 1, v + 1) |
Correlation Chc = | P (h + 1, v) −P (h, v + 1) |
Correlation Chd = | P (h, v-1) −P (h + 1, v + 2) |
Correlation Che = | P (h + 1, v-1) −P (h, v + 2) |
...
Next, the horizontal enlargement diagonal line detection unit 104 detects a correlation that is the minimum value among the calculated absolute difference values (correlation), and outputs diagonal line information (pixel pairs) that constitutes the detected correlation. For example, when the correlation Chc is the minimum value, diagonal line information (Dh1, Dh2) = (P (h, v + 1), P (h + 1, v)) is output.

次に、水平拡大用斜め線処理部107は、水平方向拡大フィルタ部108で使用する画素(前処理画素)を生成する(ステップS7)。まず、水平拡大用斜め線検出部104から出力された斜め線情報Dh1とSV(h,v)を、SV(h,v)と出力画素位置との水平方向距離xに応じて補間する。言い換えると、斜め線情報Dh1とSV(h,v)について、水平方向距離xに応じた重み付けをする。   Next, the horizontal enlargement diagonal line processing unit 107 generates a pixel (pre-processing pixel) used in the horizontal direction enlargement filter unit 108 (step S7). First, the oblique line information Dh1 and SV (h, v) output from the horizontal enlargement oblique line detection unit 104 are interpolated according to the horizontal distance x between SV (h, v) and the output pixel position. In other words, the diagonal line information Dh1 and SV (h, v) are weighted according to the horizontal distance x.

前処理画素 Th1 = SV(h,v)×(0.5−x)×2 + Dh1×x×2 (x≦0.5)
Th1 = Dh1 (x>0.5)
同様に、斜め線情報Dh2とSV(h+1,v)を、SV(h,v)と出力画素位置との水平方向距離xに応じて補間する。言い換えると、斜め線情報Dh2とSV(h+1,v)について、水平方向距離xに応じた重み付けをする。
Pre-processing pixel Th1 = SV (h, v) × (0.5−x) × 2 + Dh1 × x × 2 (x ≦ 0.5)
Th1 = Dh1 (x> 0.5)
Similarly, the diagonal line information Dh2 and SV (h + 1, v) are interpolated according to the horizontal distance x between SV (h, v) and the output pixel position. In other words, the diagonal line information Dh2 and SV (h + 1, v) are weighted according to the horizontal distance x.

前処理画素 Th2 = Dh2 (x<0.5)
Th2 = SV(h+1,v)×(x−0.5)×2 + Dh2×(1.0−x)×2 (x≧0.5)
図8は、斜め線情報(Dh1,Dh2)が(P(h,v+1),P(h+1,v))である場合の斜め線、水平方向距離xを示している。前処理画素Th1はSV(h,v)とP(h,v+1)から算出され、前処理画素Th2はSV(h+1,v)とP(h+1,v)から算出される。このような前処理を行えば、水平方向距離xに応じた重み付けがされるので、出力画素位置が垂直方向拡大後の画素位置に一致した場合でも「画素とび」のような不連続現象の発生を抑制することが可能となる。
Preprocessing pixel Th2 = Dh2 (x <0.5)
Th2 = SV (h + 1, v) × (x−0.5) × 2 + Dh2 × (1.0−x) × 2 (x ≧ 0.5)
FIG. 8 shows the diagonal line and the horizontal distance x when the diagonal line information (Dh1, Dh2) is (P (h, v + 1), P (h + 1, v)). The preprocessing pixel Th1 is calculated from SV (h, v) and P (h, v + 1), and the preprocessing pixel Th2 is calculated from SV (h + 1, v) and P (h + 1, v). If such pre-processing is performed, weighting according to the horizontal distance x is performed, so that even when the output pixel position coincides with the pixel position after enlargement in the vertical direction, a discontinuous phenomenon such as “pixel skip” occurs. Can be suppressed.

次に、水平方向拡大フィルタ部108は、水平方向拡大補間を行う(ステップS8)。すなわち、水平拡大用斜め線処理部107により生成された前処理画素Th1,Th2を用いて、出力画素位置との距離xに応じて補間する。言い換えると、前処理画素Th1,Th2について、水平方向距離xに応じた重み付けをする。   Next, the horizontal enlargement filter unit 108 performs horizontal enlargement interpolation (step S8). In other words, the pre-processing pixels Th1 and Th2 generated by the horizontal enlargement oblique line processing unit 107 are used for interpolation according to the distance x from the output pixel position. In other words, the preprocessing pixels Th1 and Th2 are weighted according to the horizontal distance x.

水平方向拡大後画素SH = Th1×(1−x) + Th2×x
これにより、斜め線処理付きで垂直方向及び水平方向に拡大された画素SHが出力される。全ての出力画素について同様の処理を繰り返す(ステップS9)。
Horizontally expanded pixel SH = Th1 × (1−x) + Th2 × x
As a result, the pixel SH expanded with the diagonal line processing in the vertical direction and the horizontal direction is output. The same process is repeated for all output pixels (step S9).

以上のように、本発明では、斜め線処理付垂直方向拡大部301と斜め線処理付水平方向拡大部302とが直列接続された分離型フィルタ構造を採用しているため、垂直方向の拡大処理の結果が水平方向の拡大処理に反映される。これにより、斜め線のギザギザ感を軽減しつつ良好な画質で垂直及び水平方向に画像を拡大することが可能となる。以下、本発明の効果を明確にするために、特許文献1及び2に開示される従来技術との違いについて説明する。   As described above, in the present invention, the vertical type enlargement process 301 with the diagonal line processing and the horizontal direction enlargement part 302 with the diagonal line processing are employed in series, so that the vertical enlargement process is performed. The result is reflected in the horizontal enlargement process. This makes it possible to enlarge the image in the vertical and horizontal directions with good image quality while reducing the jagged feeling of the diagonal lines. Hereinafter, in order to clarify the effect of the present invention, differences from the prior art disclosed in Patent Documents 1 and 2 will be described.

図9は、特許文献1に開示されている従来技術を発展させた装置の構成図である。既に説明した通り、特許文献1に開示されている装置は走査線変換装置である。そのため、入力画像の水平方向画素数とデジタル表示ディスプレイの水平方向表示画素数とが異なる場合、そのままでは画像を表示することができない。そこで、図9に示すように、特許文献1に開示されている装置を2つ直列に接続する。前段の装置は垂直方向画素数変換装置とし、後段の装置は画像を90度回転して水平方向画素数変換装置とすれば、画像を表示することが可能になると推測される。しかしながら、この場合は、図9に示すように、垂直方向画素数変換装置と水平方向画素数変換装置の両方に、斜め線検出等に用いるm×n画素抽出部304及び307が必要になる。m×n画素抽出部304及び307はラインバッファにより構成されており、ハイビジョン映像などの水平方向画素数が大きい画像では、ラインバッファに必要なメモリ容量が非常に大きくなり、装置のコスト増大の主要因となってしまう問題点がある。加えて、垂直方向拡大後の画素を使用して斜め線を検出することになるため、垂直方向の拡大率が大きいほど、垂直方向拡大後の隣接画素間の画素値の差は小さくなりやすい。その結果、水平方向画素数変換装置のm×n画素抽出部307における斜め線の検出精度が低下してしまう問題点を有している。それに対して、本発明では、図1(a)に示すように、装置全体の回路規模の多くの割合を占めるm×n画素抽出部307に相当する処理部が存在しない。そのため、回路規模の削減による装置コストの削減が可能である。   FIG. 9 is a configuration diagram of an apparatus obtained by developing the prior art disclosed in Patent Document 1. In FIG. As already described, the apparatus disclosed in Patent Document 1 is a scanning line conversion apparatus. Therefore, when the number of horizontal pixels of the input image is different from the number of horizontal display pixels of the digital display, the image cannot be displayed as it is. Therefore, as shown in FIG. 9, two devices disclosed in Patent Document 1 are connected in series. If the former apparatus is a vertical pixel number conversion apparatus and the latter apparatus is a horizontal pixel number conversion apparatus by rotating an image by 90 degrees, it is estimated that an image can be displayed. However, in this case, as shown in FIG. 9, both the vertical pixel number conversion device and the horizontal pixel number conversion device require m × n pixel extraction units 304 and 307 used for oblique line detection and the like. The m × n pixel extraction units 304 and 307 are configured by line buffers. For an image with a large number of horizontal pixels such as a high-definition image, the memory capacity required for the line buffer becomes very large, which is a major increase in the cost of the apparatus. There is a problem that becomes a cause. In addition, since diagonal lines are detected using pixels after vertical enlargement, the difference in pixel values between adjacent pixels after vertical enlargement tends to decrease as the vertical enlargement ratio increases. As a result, there is a problem that the detection accuracy of the oblique line in the m × n pixel extraction unit 307 of the horizontal direction pixel number conversion device is lowered. On the other hand, in the present invention, as shown in FIG. 1A, there is no processing unit corresponding to the m × n pixel extraction unit 307 that occupies a large proportion of the circuit scale of the entire apparatus. Therefore, the apparatus cost can be reduced by reducing the circuit scale.

図10は、特許文献2に開示されている従来技術と本発明との違いを簡単に説明するための概念図である。既に説明した通り、特許文献2に開示されている従来方法では、垂直方向の拡大処理の結果を水平方向の拡大処理に反映することができない。それに対して、本発明では、図10に示すように、白の元画素11と黒の元画素15とを用いてグレーの拡大後画素14を生成した後、このグレーの拡大後画素14と白の元画素12とを用いて淡いグレーの拡大後画素13を生成することができる。すなわち、本発明によれば、垂直方向の拡大処理の結果が水平方向の拡大処理に反映されるので、特許文献2に開示されている従来技術に比べて良好な画質を提供することが可能である。   FIG. 10 is a conceptual diagram for briefly explaining the difference between the prior art disclosed in Patent Document 2 and the present invention. As already described, with the conventional method disclosed in Patent Document 2, the result of the vertical enlargement process cannot be reflected in the horizontal enlargement process. On the other hand, in the present invention, as shown in FIG. 10, after the gray enlarged pixel 14 is generated using the white original pixel 11 and the black original pixel 15, Can be used to generate the light gray post-enlargement pixel 13. That is, according to the present invention, the result of the vertical enlargement process is reflected in the horizontal enlargement process, so that it is possible to provide better image quality than the conventional technique disclosed in Patent Document 2. is there.

なお、ここでは、垂直方向拡大処理を行った後に水平方向拡大処理を行うこととしているが、本発明はこれに限定されるものではない。すなわち、水平方向拡大処理を行った後に垂直方向拡大処理を行う必要がある場合は、斜め線処理付垂直方向拡大部301と斜め線処理付水平方向拡大部302とを入れ替えることも可能である。この場合、水平方向の拡大処理の結果が垂直方向の拡大処理に反映されることになるのはいうまでもない。   Here, the horizontal enlargement process is performed after the vertical enlargement process, but the present invention is not limited to this. That is, when it is necessary to perform the vertical direction enlargement process after performing the horizontal direction enlargement process, the vertical direction enlargement unit 301 with diagonal line processing and the horizontal direction enlargement unit 302 with diagonal line processing can be interchanged. In this case, it goes without saying that the result of the horizontal enlargement process is reflected in the vertical enlargement process.

101…出力画素位置決定部
102…m×n画素抽出部
103…垂直拡大用斜め線検出部
104…水平拡大用斜め線検出部
105…垂直拡大用斜め線処理部
106…垂直方向拡大フィルタ部
107…水平拡大用斜め線処理部
108…水平方向拡大フィルタ部
301…斜め線処理付垂直方向拡大部
302…斜め線処理付水平方向拡大部
DESCRIPTION OF SYMBOLS 101 ... Output pixel position determination part 102 ... m * n pixel extraction part 103 ... Vertical expansion diagonal line detection part 104 ... Horizontal expansion diagonal line detection part 105 ... Vertical expansion diagonal line processing part 106 ... Vertical expansion filter part 107 ... An oblique line processing unit 108 for horizontal enlargement ... A horizontal direction enlargement filter unit 301 ... A vertical direction enlargement unit 302 with oblique line processing ... A horizontal direction enlargement unit with oblique line processing

Claims (8)

入力画像に含まれる斜め線上の画素対の相関を利用した補間処理を行うことで斜め線処理付きの拡大処理を実現する画像処理装置であって、
拡大後画像に含まれる画素の位置である出力画素位置を決定する決定部と、
前記出力画素位置周辺の所定数の入力画素群を抽出する抽出部と、
前記出力画素位置と前記所定数の入力画素群とに基づいて垂直方向及び水平方向のうちの一方に前記斜め線処理付きの拡大処理を行う第1の拡大部と、
前記出力画素位置と前記抽出部により抽出された所定数の入力画素群とに基づいて第2の斜め線を検出し、前記出力画素位置と前記第2の斜め線と前記第1の拡大部の拡大処理結果とに基づいて拡大後画素を生成することにより垂直方向及び水平方向のうちの他方に前記斜め線処理付きの拡大処理を行う第2の拡大部と、を備えたことを特徴とする画像処理装置。
An image processing apparatus that realizes enlargement processing with diagonal line processing by performing interpolation processing using correlation between pixel pairs on diagonal lines included in an input image,
A determination unit that determines an output pixel position that is a position of a pixel included in the enlarged image;
An extraction unit for extracting a predetermined number of input pixel groups around the output pixel position;
A first enlargement unit that performs an enlargement process with oblique line processing in one of a vertical direction and a horizontal direction based on the output pixel position and the predetermined number of input pixel groups;
A second diagonal line is detected based on the output pixel position and a predetermined number of input pixel groups extracted by the extraction unit, and the output pixel position, the second diagonal line, and the first enlargement unit And a second enlargement unit that performs enlargement processing with diagonal line processing in the other of the vertical direction and the horizontal direction by generating post-enlargement pixels based on the enlargement processing result. Image processing device.
前記第1の拡大部は、垂直方向に前記斜め線処理付きの拡大処理を行い、
前記第2の拡大部は、水平方向に前記斜め線処理付きの拡大処理を行う
ことを特徴とする請求項1記載の画像処理装置。
The first enlargement unit performs an enlargement process with the oblique line process in a vertical direction,
The image processing apparatus according to claim 1, wherein the second enlargement unit performs the enlargement process with the diagonal line process in a horizontal direction.
前記第1の拡大部は、前記所定数の入力画素群に含まれる斜め線である第1の斜め線を検出する垂直拡大用斜め線検出部と、前記第1の斜め線に基づいて前記出力画素位置と垂直方向に隣接するライン上の画素を前処理画素として生成する垂直拡大用斜め線処理部と、前記第1の斜め線上の画素に基づいて垂直方向拡大後画素を生成する垂直方向拡大フィルタ部とを備え、
前記第2の拡大部は、前記所定数の入力画素群に含まれる斜め線である第2の斜め線を検出する水平拡大用斜め線検出部と、前記第2の斜め線と前記第1の拡大部の拡大処理結果とに基づいて前記出力画素位置と水平方向に隣接するライン上の画素を前処理画素として生成する水平拡大用斜め線処理部と、前記第2の斜め線上の画素に基づいて水平方向拡大後画素を生成する水平方向拡大フィルタ部とを備えた
ことを特徴とする請求項2記載の画像処理装置。
The first enlargement unit detects a first oblique line, which is an oblique line included in the predetermined number of input pixel groups, and an output based on the first oblique line and the output based on the first oblique line A vertical enlargement diagonal line processing unit that generates pixels on a line adjacent to the pixel position in the vertical direction as a preprocessing pixel, and a vertical enlargement that generates a post-vertical enlargement pixel based on the pixels on the first diagonal line With a filter section,
The second enlargement unit includes a horizontal enlargement oblique line detection unit that detects a second oblique line that is an oblique line included in the predetermined number of input pixel groups, the second oblique line, and the first oblique line. Based on a horizontal enlargement diagonal line processing unit that generates a pixel on a line adjacent to the output pixel position in the horizontal direction as a preprocessing pixel based on an enlargement processing result of the enlargement unit, and a pixel on the second diagonal line The image processing apparatus according to claim 2, further comprising a horizontal enlargement filter unit that generates pixels after horizontal enlargement.
前記垂直拡大用斜め線検出部は、前記所定数の入力画素群のうち前記出力画素位置と垂直方向に隣接するvライン目及びv+1ライン目上の入力画素対を通る斜め線を前記第1の斜め線として検出し、
前記水平拡大用斜め線検出部は、前記所定数の入力画素群のうち前記出力画素位置と水平方向に隣接するh画素目及びh+1画素目上の入力画素対を通り、かつ、連続する2つの前記垂直方向拡大後画素間を通る斜め線を前記第2の斜め線として検出する
ことを特徴とする請求項3記載の画像処理装置。
The vertical enlargement oblique line detection unit detects an oblique line passing through an input pixel pair on the v-th line and the (v + 1) -th line adjacent to the output pixel position in the vertical direction in the predetermined number of input pixel groups. Detected as diagonal lines,
The horizontal enlargement oblique line detection unit passes through the input pixel pair on the h pixel and the h + 1 pixel adjacent to the output pixel position in the horizontal direction in the predetermined number of input pixel groups, and two continuous pixels. The image processing apparatus according to claim 3, wherein an oblique line passing between the pixels after the vertical enlargement is detected as the second oblique line.
前記垂直拡大用斜め線検出部は、複数の前記第1の斜め線の中からその画素対の差分絶対値が最小となる相関を検出し、
前記水平拡大用斜め線検出部は、複数の前記第2の斜め線及び連続する2つの前記垂直方向拡大後画素対の中からその画素対の差分絶対値が最小となる相関を検出する
ことを特徴とする請求項4記載の画像処理装置。
The vertical enlargement diagonal line detection unit detects a correlation that minimizes the absolute value of the difference between the pixel pair from the plurality of first diagonal lines,
The horizontal enlargement oblique line detection unit detects a correlation that minimizes the absolute value of the difference between the pixel pair from the plurality of the second oblique lines and the two consecutive pixel enlargements in the vertical direction. The image processing apparatus according to claim 4, wherein:
前記垂直拡大用斜め線処理部は、前記出力画素位置の垂直方向距離に応じた重み付けをし、
前記水平拡大用斜め線処理部は、前記出力画素位置の水平方向距離に応じた重み付けをす
ことを特徴とする請求項5記載の画像処理装置。
The vertical enlargement oblique line processing unit performs weighting according to a vertical distance of the output pixel position ,
The horizontal enlarging oblique line processing unit, an image processing apparatus according to claim 5, wherein the you weighted according to the horizontal distance of the output pixel position.
前記垂直方向拡大フィルタ部は、前記出力画素位置の垂直方向距離に応じた重み付けをして前記垂直方向拡大後画素を生成し、
前記水平方向拡大フィルタ部は、前記出力画素位置の水平方向距離に応じた重み付けをして前記水平方向拡大後画素を生成する
ことを特徴とする請求項3記載の画像処理装置。
The vertical enlargement filter unit generates the post-vertical enlargement pixel by weighting according to a vertical distance of the output pixel position,
The image processing apparatus according to claim 3, wherein the horizontal enlargement filter unit generates the post-horizontal enlargement pixel by performing weighting according to a horizontal distance of the output pixel position.
入力画像に含まれる斜め線上の画素対の相関を利用した補間処理を行うことで斜め線処理付きの拡大処理を実現する画像処理方法であって、
拡大後画像に含まれる画素の位置である出力画素位置を決定する決定ステップと、
前記出力画素位置周辺の所定数の入力画素群を抽出する抽出ステップと、
前記出力画素位置と前記所定数の入力画素群とに基づいて垂直方向及び水平方向のうちの一方に前記斜め線処理付きの拡大処理を行う第1の拡大ステップと、
前記出力画素位置と前記抽出ステップで抽出された所定数の入力画素群とに基づいて第2の斜め線を検出し、前記出力画素位置と前記第2の斜め線と前記第1の拡大ステップの拡大処理結果とに基づいて拡大後画素を生成することにより垂直方向及び水平方向のうちの他方に前記斜め線処理付きの拡大処理を行う第2の拡大ステップと、を備えたことを特徴とする画像処理方法。
An image processing method for realizing enlargement processing with diagonal line processing by performing interpolation processing using correlation between pixel pairs on diagonal lines included in an input image,
A determination step of determining an output pixel position that is a position of a pixel included in the image after enlargement;
An extraction step of extracting a predetermined number of input pixel groups around the output pixel position;
A first enlargement step for performing enlargement processing with diagonal line processing in one of a vertical direction and a horizontal direction based on the output pixel position and the predetermined number of input pixel groups;
A second diagonal line is detected based on the output pixel position and a predetermined number of input pixel groups extracted in the extraction step, and the output pixel position, the second diagonal line, and the first expansion step are detected. And a second enlargement step for performing enlargement processing with diagonal line processing in the other of the vertical direction and the horizontal direction by generating post-enlargement pixels based on the enlargement processing result. Image processing method.
JP2009181222A 2009-08-04 2009-08-04 Image processing apparatus and image processing method Active JP5287581B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009181222A JP5287581B2 (en) 2009-08-04 2009-08-04 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009181222A JP5287581B2 (en) 2009-08-04 2009-08-04 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2011035746A JP2011035746A (en) 2011-02-17
JP5287581B2 true JP5287581B2 (en) 2013-09-11

Family

ID=43764354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009181222A Active JP5287581B2 (en) 2009-08-04 2009-08-04 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP5287581B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5954141B2 (en) * 2012-11-29 2016-07-20 株式会社Jvcケンウッド Image enlargement apparatus, image enlargement method, and image enlargement program
KR101506396B1 (en) 2013-09-13 2015-03-26 조선대학교산학협력단 Image interpolation system and the method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002290926A (en) * 2001-03-27 2002-10-04 Matsushita Electric Ind Co Ltd Oblique adaptive scanning line interpolation device
JP2006229615A (en) * 2005-02-17 2006-08-31 Toshiba Corp Interpolated pixel generation circuit
JP2008252449A (en) * 2007-03-30 2008-10-16 Toshiba Corp Image decompression apparatus, video display device, and image decompressing method

Also Published As

Publication number Publication date
JP2011035746A (en) 2011-02-17

Similar Documents

Publication Publication Date Title
KR100727390B1 (en) Adaptive image size conversion apparatus and method thereof
KR100715134B1 (en) Text improvement
JP6523638B2 (en) Display panel driver, display device, image processing apparatus and image processing method
US20090102966A1 (en) Systems and methods of motion and edge adaptive processing including motion compensation features
KR20060114610A (en) A method for detecting bisection pattern in deinterlacing
JP4388110B2 (en) Image processing apparatus, method, and program
JPH07288778A (en) Method and device for detecting interpolation line
KR20050108365A (en) Apparatus and method for producing thumbnail images and for improving image quality of re-sized images
KR100239357B1 (en) Character processing method and apparatus of image display device
US8830395B2 (en) Systems and methods for adaptive scaling of digital images
TWI384417B (en) Image processing method and apparatus
JP5287581B2 (en) Image processing apparatus and image processing method
JP4716255B2 (en) Image processing apparatus, image processing method, and program thereof
US20080049977A1 (en) Method for edge detection, method for motion detection, method for pixel interpolation utilizing up-sampling, and apparatuses thereof
JP4730525B2 (en) Image processing apparatus and program thereof
RU2310911C1 (en) Method for interpolation of images
WO2011027422A1 (en) Image processing apparatus and video reproducing device
JP4849515B2 (en) IP conversion processing apparatus and control method thereof
JP3073381B2 (en) Image processing method and apparatus
JPH0793563A (en) Image processor
KR20020068065A (en) Motion compensated upconversion for video scan rate conversion
JP2006252108A (en) Image processing device, image processing method, and its program
JP2013126134A (en) Video signal processing device and video signal processing method
JP2009077029A (en) Signal converter and signal conversion method
RU2308817C1 (en) Method and device for scaling a dynamic video-image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120615

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130205

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130308

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130520

R150 Certificate of patent or registration of utility model

Ref document number: 5287581

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150