JP2009038578A - Method and apparatus for generating image signal - Google Patents
Method and apparatus for generating image signal Download PDFInfo
- Publication number
- JP2009038578A JP2009038578A JP2007200900A JP2007200900A JP2009038578A JP 2009038578 A JP2009038578 A JP 2009038578A JP 2007200900 A JP2007200900 A JP 2007200900A JP 2007200900 A JP2007200900 A JP 2007200900A JP 2009038578 A JP2009038578 A JP 2009038578A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- value
- interpolation
- correlation
- image signal
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 40
- 230000000750 progressive effect Effects 0.000 claims description 12
- 238000005192 partition Methods 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000000149 penetrating effect Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Television Systems (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、インターレース方式のテレビジョン(以下「TV」と記す)信号をプログレッシブ方式のTV信号に変換するIP変換を行うにあたり、インターレース方式のTV信号に基づいて補間信号を生成する画像信号生成方法及び画像信号生成装置に関する。 The present invention provides an image signal generation method for generating an interpolated signal based on an interlaced TV signal in performing IP conversion for converting an interlaced television (hereinafter referred to as “TV”) signal into a progressive TV signal. And an image signal generation apparatus.
近年、高画質化の訴求によりプログレッシブ方式のTV受像機が普及しているが、現行のTV信号は依然としてインターレース方式が主流であるため、インターレース方式のTV信号(インターレース信号)をプログレッシブ方式のTV信号(プログレッシブ信号)に変換するIP変換が実用化されている。このIP変換は、インターレース信号において間引かれているラインを、静止画部分では1フィールド内の情報を、動画部分ではフィールド前の情報をそれぞれ用いて補間信号を生成し、プログレッシブ信号に変換するものである。 In recent years, progressive TV receivers have become popular due to the demand for higher image quality, but since the current TV signals are still mainly interlaced, interlaced TV signals (interlaced signals) are converted to progressive TV signals. IP conversion for converting to (progressive signal) has been put into practical use. In this IP conversion, an interpolated signal is generated by using a line thinned out in an interlace signal, information in one field is used for a still image portion, and information before a field is used for a moving image portion, and converted into a progressive signal. It is.
前述したフィールド内の情報を用いたフィールド内補間には、上下ラインからの線形補間から補間画素を求めるか、上下ラインをそのまま補間画素値とする方法がある。しかし、これらの方法では、特に斜め線部分の補間を行うと、階段状のジャギーが発生してしまうという問題があった。 In the intra-field interpolation using the information in the field described above, there are methods of obtaining an interpolation pixel from linear interpolation from the upper and lower lines, or using the upper and lower lines as they are as interpolation pixel values. However, these methods have a problem that staircase-like jaggy occurs particularly when interpolation is performed on the oblique line portion.
そこで、特開2002−57994に記載の画像信号処理装置およびその方法では、補間画素の上下の画素の差の絶対値が所定の閾値よりも小さい場合には、上下画素の平均値を補間画素値とし、大きな場合には上下ラインの近傍複数画素の中の2つの中央値の平均を補間画素として処理を行うことによって、斜め線部分を滑らかに補間することができる。 Therefore, in the image signal processing apparatus and method described in JP-A-2002-57994, when the absolute value of the difference between the upper and lower pixels of the interpolation pixel is smaller than a predetermined threshold, the average value of the upper and lower pixels is calculated as the interpolation pixel value. In the case of a large size, it is possible to smoothly interpolate the oblique line portion by performing processing using an average of two median values of a plurality of pixels in the vicinity of the upper and lower lines as an interpolation pixel.
しかしながら、前述した方法においては、上下画素の差の絶対値で補間画素値を判定しているために、斜め線の傾斜角度が一定ではなく、不規則に傾斜の度合いが変化する場合などでは誤補間をしてしまうことが多く、また、垂直方向に近い斜め線など、角度によってはうまく補間できない場合があり、ジャギーが残ってしまうという問題があった。 However, in the above-described method, the interpolation pixel value is determined based on the absolute value of the difference between the upper and lower pixels. Therefore, the inclination angle of the oblique line is not constant, and the error is erroneous when the degree of inclination changes irregularly. Interpolation is often performed, and there is a problem that jaggies remain because interpolation may not be performed properly depending on the angle, such as an oblique line close to the vertical direction.
そこで、本発明は、上記した問題を解決するべく創案されたものであり、当該補間対象画素を中心として上下ライン側へ放射状に拡がる方向を複数設定し、複数設定した各方向に対応しかつその中心となる当該補間対象画素を貫通する各区画線を用いて、当該補間対象画素の近傍に位置する所定数の近傍画素を同数ずつ2つの領域に区分けし、区分けした2つの領域のうちの一方の領域内に位置する近傍画素の画素値の合計と他方の領域内に位置する近傍画素の画素値の合計との差分の絶対値を、各領域に含まれる近傍画素の数で除算して、当該補間対象画素に対して前記複数設定した各方向に位置する近傍画素との相関を示す相関値を得、各方向における相関値の中から最大の相関値を検出し、当該最大の相関値に係る方向に応じた記区画線に接する全ての近傍画素の画素値の平均に基づく値を、当該補間画素値として求める構成を有することによって、当該補間対象画素の近傍に位置する近傍画素との相関が高い補間画素値を得ることができるので、誤補間を少なくすることができるとともに、様々な角度の斜め線でも正しくこれを補間することができ、ジャギーのない鮮明な画像を得ることができ、これによって高画質対応の良好なプログレッシブ画像信号を得ることができる画像信号生成方法及び画像信号生成装置を提供することを目的とする。 Therefore, the present invention was devised to solve the above-described problem, and sets a plurality of directions radially extending toward the upper and lower lines around the interpolation target pixel, and corresponds to each of the set directions. Using each partition line that penetrates the interpolation target pixel at the center, a predetermined number of neighboring pixels located in the vicinity of the interpolation target pixel are divided into two regions by the same number, and one of the two divided regions Dividing the absolute value of the difference between the sum of the pixel values of the neighboring pixels located in the area and the sum of the pixel values of the neighboring pixels located in the other area by the number of neighboring pixels included in each area, A correlation value indicating correlation with neighboring pixels located in each of the plurality of directions set with respect to the interpolation target pixel is obtained, a maximum correlation value is detected from the correlation values in each direction, and the maximum correlation value is obtained. Section according to the direction concerned An interpolation pixel value having a high correlation with a neighboring pixel located in the vicinity of the interpolation target pixel is obtained by obtaining a value based on an average of pixel values of all neighboring pixels in contact with the pixel as the interpolation pixel value. Therefore, it is possible to reduce misinterpolation, and to correctly interpolate even diagonal lines of various angles, and to obtain a clear image without jaggies. An object of the present invention is to provide an image signal generation method and an image signal generation apparatus capable of obtaining a progressive image signal.
そこで本発明は、上記した課題を解決するために、下記する(1)〜(4)の手順、構成を有する画像信号生成方法及び画像信号生成装置を提供する。
(1)図2、図3に示すように、インターレース方式の画像信号と、前記インターレース方式の画像信号に基づいて補間生成した補間信号とを用いて、プログレッシブ方式の画像信号を生成する画像信号生成方法であって、
前記補間信号を補間生成するための各補間対象画素31の補間画素値Yxを中心として上下ライン側へ放射状に拡がる方向a〜lを複数設定し、複数設定した各方向a〜lに対応し、かつ、その中心となる当該補間対象画素31を貫通する各区画線(破線で示すa〜l)を用いて、当該補間対象画素31の近傍に位置する所定数(20)の近傍画素y0〜y19を同数ずつ2つの領域A,Bに区分けし、区分けした2つの領域A,Bのうちの一方の領域A内に位置する近傍画素の画素値の合計(方向dを示す破線dを用いた場合(式(4))、20画素値y0〜y19のうち、9画素値の合計y0+y1+y2+y6+y7+y8+y9+y15+y16)の画素値の合計と他方の領域B内に位置する近傍画素の画素値の合計(同様に、y3+y4+y10+y11+y12+y13+y14+y17+y18+y19)との差分の絶対値を、各領域A,Bに含まれる近傍画素の数「9」で除算して、当該補間対象画素31に対して前記複数設定した各方向a〜lに位置する近傍画素との相関を示す相関値Ta〜Tl(式(1)〜(12))を得る第1ステップ(図2に示す「ステップ1」)と、
前記複数設定した各方向a〜lにおける前記相関値Ta〜Tlの中から、最大の相関値Txを検出する第2ステップ(「ステップ2」)と、
当該最大の相関値Txに係る方向xに応じた前記区画線に接する、全ての近傍画素の画素値Ya〜Ylの平均に基づく値を、当該補間画素値Yxとして求める第3ステップ(「ステップ3」)とを有して、
当該補間対象画素31の近傍に位置する近傍画素y0〜y19との相関が高い補間画素値を得ることを特徴とする画像信号生成方法。
(2)上記(1)に記載の画像信号生成方法であって、
前記第1ステップにおいて得た前記相関値Ta〜Tlが、所定の閾値未満の場合は、当該補間対象画素31の真上に位置する画素の画素値y6と、当該補間対象画素31の真下に位置する画素y13の画素値との平均値を、当該補間画素値Yxとして用いることを特徴とする画像信号生成方法。
(3)インターレス方式の画像信号と、前記インターレス方式の画像信号に基づいて補間生成した補間信号とを用いて、プログレッシブ方式の画像信号を生成する画像信号生成装置であって、
前記補間信号を補間生成するための各補間対象画素の補間画素値を中心として上下ライン側へ放射状に拡がる方向を複数設定し、複数設定した各方向に対応し、かつ、その中心となる当該補間対象画素を貫通する各区画線を用いて、当該補間対象画素の近傍に位置する所定数の近傍画素を同数ずつ2つの領域に区分けし、区分けした2つの領域のうちの一方の領域内に位置する近傍画素の画素値の合計と他方の領域内に位置する近傍画素の画素値の合計との差分の絶対値を、各領域に含まれる近傍画素の数で除算して、当該補間対象画素に対して前記複数設定した各方向に位置する近傍画素との相関を示す相関値を得る第1の手段と、
前記複数設定した各方向における前記相関値の中から、最大の相関値を検出する第2の手段と、
当該最大の相関値に係る方向に応じた前記区画線に接する、全ての近傍画素の画素値の平均に基づく値を、当該補間画素値として求める第3の手段とを有して、
当該補間対象画素の近傍に位置する近傍画素との相関が高い補間画素値を得ることを特徴とする画像信号生成装置。
(4)上記(3)に記載の画像信号生成装置であって、
前記第1の手段において得た前記相関値Ta〜Tlが、所定の閾値未満の場合は、当該補間対象画素31の真上に位置する画素の画素値y6と、当該補間対象画素の真下31に位置する画素の画素値y13との平均値を、当該補間画素値Yxとして用いることを特徴とする画像信号生成装置。
Accordingly, the present invention provides an image signal generation method and an image signal generation apparatus having the following procedures and configurations (1) to (4) in order to solve the above-described problems.
(1) As shown in FIG. 2 and FIG. 3, image signal generation for generating a progressive image signal using an interlace image signal and an interpolation signal generated by interpolation based on the interlace image signal. A method,
A plurality of directions a to l that radiate to the upper and lower lines side around the interpolation pixel value Yx of each
A second step (“step 2”) for detecting a maximum correlation value Tx from the correlation values Ta to Tl in the plurality of set directions a to l;
A third step (“Step 3”) for obtaining a value based on the average of the pixel values Ya to Yl of all neighboring pixels in contact with the partition line corresponding to the direction x related to the maximum correlation value Tx as the interpolation pixel value Yx. ))
An image signal generation method characterized in that an interpolation pixel value having a high correlation with neighboring pixels y0 to y19 located in the vicinity of the
(2) The image signal generation method according to (1) above,
When the correlation values Ta to Tl obtained in the first step are less than a predetermined threshold, the pixel value y6 of the pixel located directly above the
(3) An image signal generation device that generates a progressive image signal using an interlaced image signal and an interpolation signal generated by interpolation based on the interlaced image signal.
Set a plurality of directions radially extending to the upper and lower line sides around the interpolation pixel value of each interpolation target pixel for generating the interpolation signal, and correspond to each of the set directions and the interpolation at the center Using each dividing line that penetrates the target pixel, the predetermined number of neighboring pixels located in the vicinity of the interpolation target pixel is divided into two regions by the same number, and the pixel is located in one of the two divided regions. Dividing the absolute value of the difference between the sum of the pixel values of neighboring pixels and the sum of the pixel values of neighboring pixels located in the other region by the number of neighboring pixels included in each region, A first means for obtaining a correlation value indicating a correlation with neighboring pixels located in each of the plurality of set directions;
A second means for detecting a maximum correlation value from the correlation values in the plurality of set directions;
A third means for obtaining, as the interpolated pixel value, a value based on an average of pixel values of all neighboring pixels in contact with the partition line according to the direction related to the maximum correlation value;
An image signal generation device characterized in that an interpolation pixel value having a high correlation with a neighboring pixel located in the vicinity of the interpolation target pixel is obtained.
(4) The image signal generation device according to (3) above,
When the correlation values Ta to Tl obtained by the first means are less than a predetermined threshold, the pixel value y6 of the pixel located directly above the
上記した手順、構成を有する本発明の画像信号生成方法、画像信号生成装置は、当該補間対象画素を中心として上下ライン側へ放射状に拡がる方向を複数設定し、複数設定した各方向に対応しかつその中心となる当該補間対象画素を貫通する各区画線を用いて、当該補間対象画素の近傍に位置する所定数の近傍画素を同数ずつ2つの領域に区分けし、区分けした2つの領域のうちの一方の領域内に位置する近傍画素の画素値の合計と他方の領域内に位置する近傍画素の画素値の合計との差分の絶対値を、各領域に含まれる近傍画素の数で除算して、当該補間対象画素に対して前記複数設定した各方向に位置する近傍画素との相関を示す相関値を得、各方向における相関値の中から最大の相関値を検出し、当該最大の相関値に係る方向に応じた記区画線に接する全ての近傍画素の画素値の平均に基づく値を、当該補間画素値として求める構成を有しているから、当該補間対象画素の近傍に位置する近傍画素との相関が高い補間画素値を得ることができるので、誤補間を少なくすることができるとともに、上下ライン側へ過ぎる斜め線の傾斜角度が一定ではなく、不規則に傾斜の度合いが変化する様々な角度の斜め線でも正しくこれを補間することができ、ジャギーのない鮮明な画像を得ることができ、これによって高画質対応の良好なプログレッシブ画像信号を得ることができる。 The image signal generation method and the image signal generation apparatus of the present invention having the above-described procedure and configuration set a plurality of directions radially extending toward the upper and lower lines around the interpolation target pixel, and correspond to each of the set directions. Using each partition line penetrating the interpolation target pixel at the center, a predetermined number of neighboring pixels located in the vicinity of the interpolation target pixel are divided into two regions by the same number, and the two of the divided regions Divide the absolute value of the difference between the sum of the pixel values of neighboring pixels located in one area and the sum of the pixel values of neighboring pixels located in the other area by the number of neighboring pixels contained in each area. , Obtaining a correlation value indicating a correlation with neighboring pixels located in each of the plurality of directions set with respect to the interpolation target pixel, detecting a maximum correlation value from the correlation values in each direction, and detecting the maximum correlation value Depending on the direction Interpolation pixel having a high correlation with neighboring pixels located in the vicinity of the interpolation target pixel because the interpolation pixel value is obtained based on the average pixel value of all neighboring pixels in contact with the lane marking Since the value can be obtained, it is possible to reduce misinterpolation, and the inclination angle of the diagonal line passing to the upper and lower lines side is not constant, and it is correct even for oblique lines of various angles whose degree of inclination changes irregularly. This can be interpolated, and a clear image free from jaggies can be obtained, whereby a good progressive image signal corresponding to high image quality can be obtained.
以下、本発明の補間信号生成方法、及び補間信号生成装置について、添付図面を参照して説明する。図1は本発明の画像信号生成装置の一実施の形態のブロック図である。 Hereinafter, an interpolation signal generation method and an interpolation signal generation apparatus according to the present invention will be described with reference to the accompanying drawings. FIG. 1 is a block diagram of an embodiment of an image signal generation apparatus of the present invention.
図1に示すように、画像信号生成装置1は、フィールドメモリ11、相関判定回路12、補間画素生成回路13、選択回路14を有する。
As illustrated in FIG. 1, the image
フィールドメモリ11は、入力されたインターレース映像信号をフィールド単位で記憶する。相関判定回路12は、後述する図3に示すように、近傍に位置する20個の画素(画素値y0〜y19)を有する(以下、近傍20画素のように呼ぶ)補間対象画素31をフィールド単位でフィールドメモリ11から読み出し、12方向(破線で示す破線a〜l)の斜め線の相関値Ta〜Tlをそれぞれ算出した後、最も相関の高い方向Txを判定し、この方向Tx情報を選択回路14へ出力する。
The
また、相関判定回路12は、後述する図6に示すように、近傍に位置する24個の画素(画素値y0〜y23)を有する(以下、近傍24画素のように呼ぶ)補間対象画素31をフィールド単位でフィールドメモリ11から読み出し、12方向(破線で示す破線a〜l)の斜め線の相関値Ta〜Tlをそれぞれ算出した後、最も相関の高い方向Txを判定し、この方向Tx情報を選択回路14へ出力する。
Further, as shown in FIG. 6 described later, the
補間画素生成回路13では、補間対象画素31における前記した12方向の補間画素値Ya〜Ylを、フィールドメモリ11から読み出した近傍20画素(近傍24画素)における近傍画素値y0〜y19(y0〜y23)から生成する。
In the interpolation
選択回路14では、補間画素生成回路13の12方向の補間画素値Ya〜Ylの中から相関判定回路12によって判定された最も相関の高い方向Txの補間画素値Yxを選択して出力する。
The
この結果、画像信号生成装置1は、当該補間対象画素31の近傍に位置する近傍20画素又は近傍24画素との相関が高い補間画素値Yxを得ることができるので、様々な角度の斜め線を有する画像でも正しくこれを補間することができ、ジャギーのない鮮明な画像を得ることができ、これによって高画質対応の良好なプログレッシブ画像信号を得ることができる。
As a result, the image
上記した画素31の近傍に位置する近傍20画素又は近傍24画素との相関が高い補間画素値Yxを得ることについて、
第1実施の形態:近傍画素が20画素の場合、
第2実施の形態:近傍画素が24画素の場合、
の順に説明をする。
About obtaining an interpolated pixel value Yx having a high correlation with the neighboring 20 pixels or the neighboring 24 pixels located in the vicinity of the
1st Embodiment: When the neighborhood pixel is 20 pixels,
Second Embodiment: When the neighboring pixels are 24 pixels,
The description will be made in the order.
(第1実施の形態)
図2は本発明の画像信号生成方法の第1実施の形態に係る流れ図、図3、図4はそれぞれ本発明の画像信号生成方法の第1実施の形態を説明するための図である。上記した相関判定回路12及び補間画素生成回路13の動作について、さらに詳しく説明する。
(First embodiment)
FIG. 2 is a flowchart according to the first embodiment of the image signal generation method of the present invention, and FIGS. 3 and 4 are diagrams for explaining the first embodiment of the image signal generation method of the present invention. The operations of the
上記した相関判定回路12は、図3に示すように、補間対象画素31の近傍20画素の画素値y0〜y19から12方向(破線で示す破線a〜l)の相関値Ta〜Tlを算出する(図2に示すステップ1)。
As shown in FIG. 3, the
次に、相関判定回路12は、12方向の相関値Ta〜Tlの中から最も大きい相関値Txを求め、方向xに関する情報を選択回路14に出力する(ステップ2)。
Next, the
一方、上記した補間画素生成回路13は、前記した12方向の画素値Ya〜Ylを補間対象画素31の近傍20画素から算出し、選択回路14に出力する(ステップ3)。
On the other hand, the above-described interpolation
上記した選択回路14は、補間画素生成回路13から出力された画素値Ya〜Ylの中から相関判定回路12から出力された方向xに相当する補間画素値Yxを選択し、これを補間対象画素31の画素値として出力する。
The
ここで、相関判定回路12における相関値Ta〜Tlの算出方法について、図3を用いて説明する。補間対象画素31の補間画素を求める場合、インターレース信号の近傍20画素を用いる。同図に示すように、
Here, a method of calculating the correlation values Ta to Tl in the
y0は、補間対象画素31の2ライン上(前)、かつ、1画素左の画素値、
y1は、補間対象画素31の2ライン上の画素値、
y2は、補間対象画素31の2ライン上、かつ、1画素右の画素値、
y3は、補間対象画素31の1ライン上、かつ、3画素左の画素値、
y4は、補間対象画素31の1ライン上、かつ、2画素左の画素値、
y5は、補間対象画素31の1ライン上、かつ、1画素左の画素値、
y6は、補間対象画素31の1ライン上の画素値、
y7は、補間対象画素31の1ライン上、かつ、1画素右の画素値、
y8は、補間対象画素31の1ライン上、かつ、2画素右の画素値、
y9は、補間対象画素31の1ライン上、かつ、3画素右の画素値、
y0 is the pixel value two lines above (front) of the
y1 is a pixel value on two lines of the
y2 is a pixel value on the two lines of the
y3 is a pixel value on one line of the pixel to be interpolated 31 and 3 pixels left,
y4 is a pixel value on one line of the
y5 is a pixel value on one line of the
y6 is a pixel value on one line of the
y7 is a pixel value on one line of the
y8 is a pixel value on one line of the
y9 is a pixel value on one line of the
y10は、補間対象画素31の1ライン下、かつ、3画素左の画素値、
y11は、補間対象画素31の1ライン下、かつ、2画素左の画素値、
y12は、補間対象画素31の1ライン下、かつ、1画素左の画素値、
y13は、補間対象画素31の1ライン下の画素値、
y14は、補間対象画素31の1ライン下、かつ、1画素右の画素値、
y15は、補間対象画素31の1ライン下、かつ、2画素右の画素値、
y16は、補間対象画素31の1ライン下、かつ、3画素右の画素値、
y17は、補間対象画素31の2ライン下、かつ、1画素左の画素値、
y18は、補間対象画素31の2ライン下の画素値、
y19は、補間対象画素31の2ライン下、かつ、1画素右の画素値、
である。
y10 is a pixel value one line below the
y11 is a pixel value one line below the
y12 is a pixel value one line below the
y13 is a pixel value one line below the
y14 is a pixel value one line below the
y15 is a pixel value one line below the
y16 is a pixel value one line below the
y17 is a pixel value two lines below the
y18 is a pixel value two lines below the
y19 is a pixel value two lines below the
It is.
判定する方向は図3のa〜lまでの12方向である。相関判定回路12では、まずa〜lのそれぞれの方向の相関値を算出する。相関値の算出方法は、近傍20画素をa〜lの線で2つの領域A,Bに区画し、各領域A,Bの画素値の合計の差分の絶対値を1つの領域に含まれる画素数で除算することにより求める。
The determination directions are 12 directions from a to l in FIG. The
即ち、方向aを示す破線aは、補間対象画素31の近傍20画素の画素値y0〜y19の全てに接しない。この結果、破線aは、10画素値y0,y1,y2,y3,y4,y5,y6,y7,y8,y9を有する領域Aと、10画素値y10,y11,y12,y13,y14,y15,y16,y17,y18,y19を有する領域Bとを区画する。
That is, the broken line a indicating the direction a does not touch all the pixel values y0 to y19 of the 20 pixels in the vicinity of the
同様に、方向bを示す破線bは、近傍20画素の画素値y0〜y19のうち、y3,y4,y15,y16にそれぞれ接するが、各中心を通過しないので、2画素値y4,y16を領域Aに含め、2画素値y3,y15を領域Bに含める。この結果、破線bは、10画素値y0,y1,y2,y4,y5,y6,y7,y8,y9,y16を有する領域Aと、10画素値y3,y10,y11,y12,y13,y14,y15,y17,y18,y19を有する領域Bとを区画する。 Similarly, the broken line b indicating the direction b touches y3, y4, y15, and y16 among the pixel values y0 to y19 of the neighboring 20 pixels, but does not pass through the respective centers. 2 pixel values y3 and y15 are included in area B. As a result, the broken line b indicates a region A having 10 pixel values y0, y1, y2, y4, y5, y6, y7, y8, y9, y16 and 10 pixel values y3, y10, y11, y12, y13, y14, A region B having y15, y17, y18, and y19 is partitioned.
同様に、方向cを示す破線cは、近傍20画素の画素値y0〜y19のうち、y4,y5,y14,y15にそれぞれ接するが、各中心を通過しないので、2画素値y5,y15を領域Aに含め、2画素値y4,y14を領域Bに含める。この結果、破線cは、10画素値y0,y1,y2,y5,y6,y7,y8,y9,y15,y16を有する領域Aと、10画素値y3,y4,y10,y11,y12,y13,y14,y17,y18,y19を有する領域Bとを区画する。 Similarly, the broken line c indicating the direction c touches y4, y5, y14, and y15 among the pixel values y0 to y19 of the neighboring 20 pixels, but does not pass through each center. 2 pixel values y4 and y14 are included in area B. As a result, the broken line c represents a region A having 10 pixel values y0, y1, y2, y5, y6, y7, y8, y9, y15, y16 and 10 pixel values y3, y4, y10, y11, y12, y13, A region B having y14, y17, y18, and y19 is partitioned.
一方、方向dを示す破線dは、近傍20画素の画素値y0〜y19のうち、y5,y14の中心をそれぞれほぼ通過するので、2画素値y5,y14を領域A,Bから省く。この結果、破線dは、9画素値y0,y1,y2,y6,y7,y8,y9,y15,y16を有する領域Aと、9画素値y3,y4,y10,y11,y12,y13,y17,y18,y19を有する領域Bとを区画する。 On the other hand, since the broken line d indicating the direction d almost passes through the centers of y5 and y14 among the pixel values y0 to y19 of the neighboring 20 pixels, the two pixel values y5 and y14 are omitted from the regions A and B. As a result, the broken line d represents a region A having 9 pixel values y0, y1, y2, y6, y7, y8, y9, y15, y16 and 9 pixel values y3, y4, y10, y11, y12, y13, y17, A region B having y18 and y19 is defined.
方向eを示す破線eは、近傍20画素の画素値y0〜y19の全てに接しない。この結果、上記した方向aを示す破線aと同様に、破線eは、10画素値y0,y1,y2,y6,y7,y8,y9,y14,y15,y16を有する領域Aと、10画素値y3,y4,y5,y10,y11,y12,y13,y17,y18,y19を有する領域Bとを区画する。 The broken line e indicating the direction e does not touch all the pixel values y0 to y19 of the neighboring 20 pixels. As a result, similarly to the broken line a indicating the direction a described above, the broken line e represents the region A having the 10 pixel values y0, y1, y2, y6, y7, y8, y9, y14, y15, y16 and the 10 pixel values. A region B having y3, y4, y5, y10, y11, y12, y13, y17, y18, and y19 is partitioned.
方向fを示す破線fは、近傍20画素の画素値y0〜y19のうち、y0,y6,y13,y19にそれぞれ接するが、各中心を通過しないので、2画素値y6,y19を領域Aに含め、2画素値y0,y13を領域Bに含める。この結果、破線fは、10画素値y1,y2,y6,y7,y8,y9,y14,y15,y16,y19を有する領域Aと、10画素値y0,y3,y4,y5,y10,y11,y12,y13,y17,y18を有する領域Bとを区画する。 The broken line f indicating the direction f touches y0, y6, y13, and y19 among the pixel values y0 to y19 of the neighboring 20 pixels, but does not pass through each center, so the two pixel values y6 and y19 are included in the region A. 2 pixel values y0 and y13 are included in region B. As a result, the broken line f indicates a region A having 10 pixel values y1, y2, y6, y7, y8, y9, y14, y15, y16, y19 and 10 pixel values y0, y3, y4, y5, y10, y11, A region B having y12, y13, y17, and y18 is partitioned.
一方、方向gを示す破線gは、近傍20画素の画素値y0〜y19のうち、y1,y6,y13,y18の中心をそれぞれほぼ通過するので、4画素値y1,y6,y13,y18を領域A,Bから省く。この結果、破線gは、8画素値y2,y7,y8,y9,y14,y15,y16,y19を有する領域Aと、8画素値y0,y3,y4,y5,y10,y11,y12,y17を有する領域Bとを区画する。 On the other hand, the broken line g indicating the direction g almost passes through the centers of y1, y6, y13, and y18 among the pixel values y0 to y19 of the neighboring 20 pixels, so that the four pixel values y1, y6, y13, and y18 Omit from A and B. As a result, the broken line g represents the region A having the eight pixel values y2, y7, y8, y9, y14, y15, y16, y19 and the eight pixel values y0, y3, y4, y5, y10, y11, y12, y17. The area B is defined.
方向hを示す破線hは、近傍20画素の画素値y0〜y19のうち、y2,y6,y13,y17にそれぞれ接するが、各中心を通過しないので、2画素値y2,y13を領域Aに含め、2画素値y6,y17を領域Bに含める。この結果、破線hは、10画素値y2,y7,y8,y9,y13,y14,y15,y16,y18,y19を有する領域Aと、10画素値y0,y1,y3,y4,y5,y6,y10,y11,y12,y17を有する領域Bとを区画する。 The broken line h indicating the direction h touches y2, y6, y13, and y17 among the pixel values y0 to y19 of the neighboring 20 pixels, but does not pass through each center, so the two pixel values y2 and y13 are included in the region A. Two pixel values y6 and y17 are included in region B. As a result, the broken line h indicates the region A having 10 pixel values y2, y7, y8, y9, y13, y14, y15, y16, y18, y19 and 10 pixel values y0, y1, y3, y4, y5, y6. A region B having y10, y11, y12, and y17 is partitioned.
方向iを示す破線iは、近傍20画素の画素値y0〜y19の全てに接しない。この結果、上記した方向aを示す破線aと同様に、破線iは、10画素値y7,y8,y9,y13,y14,y15,y16,y17,y18,y19を有する領域Aと、10画素値y0,y1,y2,y3,y4,y5,y6,y10,y11,y12を有する領域Bとを区画する。 The broken line i indicating the direction i does not touch all the pixel values y0 to y19 of the neighboring 20 pixels. As a result, like the broken line a indicating the direction a described above, the broken line i represents the region A having the 10 pixel values y7, y8, y9, y13, y14, y15, y16, y17, y18, y19 and the 10 pixel values. A region B having y0, y1, y2, y3, y4, y5, y6, y10, y11, and y12 is partitioned.
一方、方向jを示す破線jは、近傍20画素の画素値y0〜y19のうち、y7,y12の中心をそれぞれほぼ通過するので、2画素値y7,y12を領域A,Bから省く。この結果、破線jは、9画素値y8,y9,y13,y14,y15,y16,y17,y18,y19を有する領域Aと、9画素値y0,y1,y2,y3,y4,y5,y6,y10,y11を有する領域Bとを区画する。 On the other hand, the broken line j indicating the direction j passes through the centers of y7 and y12 out of the pixel values y0 to y19 of the neighboring 20 pixels, so the two pixel values y7 and y12 are omitted from the regions A and B. As a result, the broken line j represents the region A having the nine pixel values y8, y9, y13, y14, y15, y16, y17, y18, y19 and the nine pixel values y0, y1, y2, y3, y4, y5, y6. A region B having y10 and y11 is partitioned.
方向kを示す破線kは、近傍20画素の画素値y0〜y19のうち、y7,y8,y11,y12にそれぞれ接するが、各中心を通過しないので、2画素値y8,y12を領域Aに含め、2画素値y7,y11を領域Bに含める。この結果、破線kは、10画素値y8,y9,y12,y13,y14,y15,y16,y17,y18,y19を有する領域Aと、10画素値y0,y1,y2,y3,y4,y5,y6,y7,y10,y11を有する領域Bとを区画する。 The broken line k indicating the direction k touches y7, y8, y11, and y12 among the pixel values y0 to y19 of the neighboring 20 pixels, but does not pass through each center, so the two pixel values y8 and y12 are included in the region A. 2 pixel values y7 and y11 are included in region B. As a result, the broken line k indicates the region A having the 10 pixel values y8, y9, y12, y13, y14, y15, y16, y17, y18, y19 and the 10 pixel values y0, y1, y2, y3, y4, y5. A region B having y6, y7, y10, and y11 is partitioned.
そして、方向lを示す破線lは、近傍20画素の画素値y0〜y19のうち、y8,y9,y10,y11にそれぞれ接するが、各中心を通過しないので、2画素値y9,y11を領域Aに含め、2画素値y8,y10を領域Bに含める。この結果、破線lは、10画素値y9,y11,y12,y13,y14,y15,y16,y17,y18,y19を有する領域Aと、10画素値y0,y1,y2,y3,y4,y5,y6,y7,y8,y10を有する領域Bとを区画する。 The broken line l indicating the direction l touches y8, y9, y10, and y11 among the pixel values y0 to y19 of the neighboring 20 pixels, but does not pass through the respective centers, so the two pixel values y9 and y11 are represented in the region A. 2 pixel values y8 and y10 are included in region B. As a result, the broken line l indicates the region A having the 10 pixel values y9, y11, y12, y13, y14, y15, y16, y17, y18, y19 and the 10 pixel values y0, y1, y2, y3, y4, y5. A region B having y6, y7, y8, and y10 is partitioned.
こうして、近傍20画素(画素値y0〜y19)を、12方向a〜lの破線で2つの領域A,Bに、それぞれ区画することができる。次に、このようにして、各方向a〜lにおいて区画された2つの領域A,Bに基づいて、それぞれの相関値Ta〜Tlを求めることについて説明する。 In this way, 20 neighboring pixels (pixel values y0 to y19) can be partitioned into two regions A and B by broken lines in 12 directions a to l, respectively. Next, how the respective correlation values Ta to Tl are obtained based on the two areas A and B partitioned in the directions a to l in this way will be described.
<相関値Ta>
方向aを示す破線aは、上記した領域A,Bを区画している。
従って、方向aにおける相関値Taは、次式(1)で表わされる。即ち、
Ta=|(y0+y1+y2+y3+y4+y5+y6+y7+y8+y9)−
(y10+y11+y12+y13+y14+y15+y16+y17+y18+y19)|/ 10
・・・ (1)
<Correlation value Ta>
A broken line “a” indicating the direction “a” defines the above-described regions A and B.
Accordingly, the correlation value Ta in the direction a is expressed by the following equation (1). That is,
Ta = | (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y7 + y8 + y9) −
(Y10 + y11 + y12 + y13 + y14 + y15 + y16 + y17 + y18 + y19) | / 10
(1)
<相関値Tb>
方向bを示す破線bは、上記した領域A,Bを区画している。
従って、方向bにおける相関値Tbは、次式(2)で表わされる。即ち、
Tb=|(y0+y1+y2+y4+y5+y6+y7+y8+y9+y16)−
(y3+y10+y11+y12+y13+y14+y15+y17+y18+y19)|/ 10
・・・ (2)
<Correlation value Tb>
A broken line b indicating the direction b defines the regions A and B described above.
Accordingly, the correlation value Tb in the direction b is expressed by the following equation (2). That is,
Tb = | (y0 + y1 + y2 + y4 + y5 + y6 + y7 + y8 + y9 + y16) −
(Y3 + y10 + y11 + y12 + y13 + y14 + y15 + y17 + y18 + y19) | / 10
(2)
<相関値Tc>
方向cを示す破線cは、上記した領域A,Bを区画している。
従って、方向cにおける相関値Tcは、次式(3)で表わされる。即ち、
Tc=|(y0+y1+y2+y5+y6+y7+y8+y9+y15+y16)−
(y3+y4+y10+y11+y12+y13+y14+y17+y18+y19)|/ 10
・・・ (3)
<Correlation value Tc>
A broken line c indicating the direction c defines the regions A and B described above.
Accordingly, the correlation value Tc in the direction c is expressed by the following equation (3). That is,
Tc = | (y0 + y1 + y2 + y5 + y6 + y7 + y8 + y9 + y15 + y16) −
(Y3 + y4 + y10 + y11 + y12 + y13 + y14 + y17 + y18 + y19) | / 10
(3)
<相関値Td>
方向dを示す破線dは、上記した領域A+Bを区画している。
従って、方向dにおける相関値Tdは、次式(4)で表わされる。即ち、
Td=|(y0+y1+y2+y6+y7+y8+y9+y15+y16)−
(y3+y4+y10+y11+y12+y13+y17+y18+y19)|/ 9
・・・ (4)
<Correlation value Td>
A broken line d indicating the direction d defines the above-described region A + B.
Accordingly, the correlation value Td in the direction d is expressed by the following equation (4). That is,
Td = | (y0 + y1 + y2 + y6 + y7 + y8 + y9 + y15 + y16) −
(Y3 + y4 + y10 + y11 + y12 + y13 + y17 + y18 + y19) | / 9
(4)
<相関値Te>
方向eを示す破線eは、上記した領域A+Bを区画している。
従って、方向eにおける相関値Teは、次式(5)で表わされる。即ち、
Te=|(y0+y1+y2+y6+y7+y8+y9+y14+y15+y16)−
(y3+y4+y5+y10+y11+y12+y13+y17+y18+y19)|/ 10
・・・ (5)
<Correlation value Te>
A broken line e indicating the direction e defines the above-described region A + B.
Accordingly, the correlation value Te in the direction e is expressed by the following equation (5). That is,
Te = | (y0 + y1 + y2 + y6 + y7 + y8 + y9 + y14 + y15 + y16) −
(Y3 + y4 + y5 + y10 + y11 + y12 + y13 + y17 + y18 + y19) | / 10
(5)
<相関値Tf>
方向fを示す破線fは、上記した領域A+Bを区画している。
従って、方向fにおける相関値Tfは、次式(6)で表わされる。即ち、
Tf=|(y1+y2+y6+y7+y8+y9+y14+y15+y16+y19)−(y0+y3+y4+y5+y10+y11+y12+y13+y17+y18)|/ 10
・・・ (6)
<Correlation value Tf>
A broken line f indicating the direction f defines the above-described region A + B.
Accordingly, the correlation value Tf in the direction f is expressed by the following equation (6). That is,
Tf = | (y1 + y2 + y6 + y7 + y8 + y9 + y14 + y15 + y16 + y19) − (y0 + y3 + y4 + y5 + y10 + y11 + y12 + y13 + y17 + y18) | / 10
(6)
<相関値Tg>
方向gを示す破線gは、上記した領域A+Bを区画している。
従って、方向gにおける相関値Tgは、次式(7)で表わされる。即ち、
Tg=|(y2+y7+y8+y9+y14+y15+y16)−
(y0+y3+y4+y5+y10+y11+y12+y17)|/ 8
・・・ (7)
<Correlation value Tg>
A broken line g indicating the direction g defines the above-described region A + B.
Accordingly, the correlation value Tg in the direction g is expressed by the following equation (7). That is,
Tg = | (y2 + y7 + y8 + y9 + y14 + y15 + y16) −
(Y0 + y3 + y4 + y5 + y10 + y11 + y12 + y17) | / 8
(7)
<相関値Th>
方向hを示す破線hは、上記した領域A+Bを区画している。
従って、方向hにおける相関値Thは、次式(8)で表わされる。即ち、
Th=|(y2+y7+y8+y9+y13+y14+y15+y16+y18+y19)−(y0+y1+y3+y4+y5+y6+y10+y11+y12+y17)|/ 10
・・・ (8)
<Correlation value Th>
A broken line h indicating the direction h defines the above-described region A + B.
Accordingly, the correlation value Th in the direction h is expressed by the following equation (8). That is,
Th = | (y2 + y7 + y8 + y9 + y13 + y14 + y15 + y16 + y18 + y19) − (y0 + y1 + y3 + y4 + y5 + y6 + y10 + y11 + y12 + y17) | / 10
(8)
<相関値Ti>
方向iを示す破線iは、上記した領域A+Bを区画している。
従って、方向iにおける相関値Tiは、次式(9)で表わされる。即ち、
Ti=|(y7+y8+y9+y13+y14+y15+y16+y17+y18+y19)−(y0+y1+y2+y3+y4+y5+y6+y10+y11+y12)|/ 10
・・・ (9)
<Correlation value Ti>
A broken line i indicating the direction i defines the region A + B.
Accordingly, the correlation value Ti in the direction i is expressed by the following equation (9). That is,
Ti = | (y7 + y8 + y9 + y13 + y14 + y15 + y16 + y17 + y18 + y19) − (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y10 + y11 + y12) | / 10
(9)
<相関値Tj>
方向jを示す破線jは、上記した領域A+Bを区画している。
従って、方向jにおける相関値Tjは、次式(10)で表わされる。即ち、
Tj=|(y8+y9+y13+y14+y15+y16+y17+y18+y19)−(y0+y1+y2+y3+y4+y5+y6+y10+y11)|/ 9
・・・ (10)
<Correlation value Tj>
A broken line j indicating the direction j defines the region A + B.
Accordingly, the correlation value Tj in the direction j is expressed by the following equation (10). That is,
Tj = | (y8 + y9 + y13 + y14 + y15 + y16 + y17 + y18 + y19) − (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y10 + y11) | / 9
(10)
<相関値Tk>
方向kを示す破線kは、上記した領域A+Bを区画している。
従って、方向kにおける相関値Tkは、次式(11)で表わされる。即ち、
Tk=|(y8+y9+y12+y13+y14+y15+y16+y17+y18+y19)−(y0+y1+y2+y3+y4+y5+y6+y7+y10+y11)|/ 10
・・・ (11)
<Correlation value Tk>
A broken line k indicating the direction k defines the above-described region A + B.
Therefore, the correlation value Tk in the direction k is expressed by the following equation (11). That is,
Tk = | (y8 + y9 + y12 + y13 + y14 + y15 + y16 + y17 + y18 + y19) − (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y7 + y10 + y11) | / 10
(11)
<相関値Tl>
方向lを示す破線lは、上記した領域A+Bを区画している。
従って、方向lにおける相関値Tlは、次式(12)で表わされる。即ち、
Tl=|(y9,y11,y12,y13,y14,y15,y16,y17,y18,y19)−(y0,y1,y2,y3,y4,y5,y6,y7,y8,y10)|/ 10
・・・ (12)
<Correlation value Tl>
A broken line l indicating the direction l defines the above-described region A + B.
Accordingly, the correlation value Tl in the direction l is expressed by the following equation (12). That is,
Tl = | (y9, y11, y12, y13, y14, y15, y16, y17, y18, y19) − (y0, y1, y2, y3, y4, y5, y6, y7, y8, y10) | / 10
(12)
こうして、近傍20画素を、方向a〜lの破線で2つの領域A,Bに区画し、これら区画された2つの領域A,Bに基づいて、それぞれの相関値Ta〜Tlを求めることができる。 In this way, 20 neighboring pixels are divided into two areas A and B by broken lines in directions a to l, and respective correlation values Ta to Tl can be obtained based on the two divided areas A and B. .
上記のように算出した12の相関値Ta〜Tlの中から、最も大きい相関値を持つ方向の相関値Txを選択して、選択回路14に出力する。
From the 12 correlation values Ta to Tl calculated as described above, the correlation value Tx in the direction having the largest correlation value is selected and output to the
補間画素生成回路13ではa〜lの12方向についてそれぞれの補間画素Ya〜Ylの算出を行う。Ya〜Ylの算出は式(13)により表される。
The interpolation
Ya=(y6+y13+1)/2
Yb=(y3+y4+y15+y16+3)/4
Yc=(y4+y5+y14+y15+3)/4
Yd=(y5+y14+1)/2
Ye=(y5+y6+y13+y14+3)/4
Yf=(y0+y6+y13+y19+3)/4
Yg=(y6+y13+1)/2
Yh=(y2+y6+y13+y17+3)/4
Yi=(y6+y7+y12+y13+3)/4
Yj=(y7+y12+1)/2
Yk=(y7+y8+y11+y12+3)/4
Yl=(y8+y9+y10+y11+3)/4
・・・ (13)
Ya = (y6 + y13 + 1) / 2
Yb = (y3 + y4 + y15 + y16 + 3) / 4
Yc = (y4 + y5 + y14 + y15 + 3) / 4
Yd = (y5 + y14 + 1) / 2
Ye = (y5 + y6 + y13 + y14 + 3) / 4
Yf = (y0 + y6 + y13 + y19 + 3) / 4
Yg = (y6 + y13 + 1) / 2
Yh = (y2 + y6 + y13 + y17 + 3) / 4
Yi = (y6 + y7 + y12 + y13 + 3) / 4
Yj = (y7 + y12 + 1) / 2
Yk = (y7 + y8 + y11 + y12 + 3) / 4
Yl = (y8 + y9 + y10 + y11 + 3) / 4
(13)
上記のように算出された補間画素Ya〜Ylを選択回路14に出力する。
相関判定回路12での補間方向の判定において、誤判定を避けるために、相関値の最大値Txがある一定の閾値以上で無い場合は予め決められた補間方法にて補間画素値Yxを求めることも考えられる。予め決められた補間方法は、例えば、相関値Ta〜Tlが、所定の閾値未満の場合は、当該補間対象画素31の真上に位置する画素の画素値y6と、当該補間対象画素31の真下に位置する画素y13の画素値との平均値を、当該補間画素値Yxとして用いる。
The interpolation pixels Ya to Yl calculated as described above are output to the
In the determination of the interpolation direction in the
(第2実施の形態)
図5は本発明の画像信号生成方法の第2実施の形態に係る流れ図、図6は本発明の画像信号生成方法の第2実施の形態を説明するための図である。上記した図1に示した相関判定回路12及び補間画素生成回路13の動作について、さらに詳しく説明する。
(Second Embodiment)
FIG. 5 is a flowchart according to the second embodiment of the image signal generation method of the present invention, and FIG. 6 is a diagram for explaining the second embodiment of the image signal generation method of the present invention. The operations of the
上記した相関判定回路12は、図6に示すように、補間対象画素31の近傍24画素の画素値y0〜y23から12方向(破線で示す破線a〜l)の相関値Ta〜Tlを算出する(図5に示すステップ1a)。なお、図5に示すステップ1aは、図2に示したステップ1と比較して、近傍画素が24画素であることのみ相違する。
As shown in FIG. 6, the
次に、相関判定回路12は、12方向の相関値Ta〜Tlの中から最も大きい相関値Txを求め、方向xに関する情報を選択回路14に出力する(ステップ2)。
Next, the
一方、上記した補間画素生成回路13は、前記した12方向の画素値Ya〜Ylを補間対象画素31の近傍24画素から算出し、選択回路14に出力する(ステップ3a)。
On the other hand, the above-described interpolation
なお、図5に示すステップ3aは、図2に示したステップ3と比較して、近傍画素が24画素であることのみ相違する。 Note that Step 3a shown in FIG. 5 differs from Step 3 shown in FIG. 2 only in that the number of neighboring pixels is 24 pixels.
上記した選択回路14は、補間画素生成回路13から出力された画素値Ya〜Ylの中から相関判定回路12から出力された方向xに相当する補間画素値Yxを選択し、これを補間対象画素31の画素値として出力する。
The
ここで、相関判定回路12における相関値Ta〜Tlの算出方法について、図6を用いて説明する。補間対象画素31の補間画素を求める場合、インターレース信号の近傍24画素を用いる。同図に示すように、
Here, a method of calculating the correlation values Ta to Tl in the
y0は、補間対象画素31の2ライン上、かつ、2画素左の画素値、
y1は、2ライン上、かつ、1画素左の画素値、
y2は、2ライン上の画素値、
y3は、2ライン上、かつ、1画素右の画素値、
y4は、2ライン上、かつ、2画素右の画素値、
y5は、1ライン上、かつ、3画素左の画素値、
y6は、1ライン上、かつ、2画素左の画素値、
y7は、1ライン上、かつ、1画素左の画素値、
y8は、1ライン上の画素値、
y9は、1ライン上、かつ、1画素右の画素値、
y0 is a pixel value on the two lines of the
y1 is a pixel value on two lines and one pixel left,
y2 is a pixel value on two lines,
y3 is a pixel value on two lines and one pixel right,
y4 is the pixel value on the two lines and two pixels to the right,
y5 is a pixel value on one line and 3 pixels left,
y6 is a pixel value on one line and two pixels left,
y7 is a pixel value on one line and one pixel left,
y8 is the pixel value on one line,
y9 is a pixel value on one line and one pixel right,
y10は、1ライン上、かつ、2画素右の画素値、
y11は、1ライン上、かつ、3画素右の画素値、
y12は、1ライン下、かつ、3画素左の画素値、
y13は、1ライン下、かつ、2画素左の画素値、
y14は、1ライン下、かつ、1画素左の画素値、
y15は、1ライン下の画素値、
y16は、1ライン下、かつ、1画素右の画素値、
y17は、1ライン下、かつ、2画素右の画素値、
y18は、1ライン下、かつ、3画素右の画素値、
y19は、2ライン下、かつ、2画素左の画素値、
y10 is a pixel value on one line and two pixels to the right,
y11 is a pixel value on one line and three pixels right,
y12 is a pixel value one line down and three pixels left,
y13 is a pixel value one line down and two pixels left,
y14 is a pixel value one line down and one pixel left,
y15 is the pixel value under one line,
y16 is a pixel value one line down and one pixel right,
y17 is a pixel value one line down and two pixels right,
y18 is a pixel value one line down and three pixels right,
y19 is a pixel value two lines down and two pixels left,
y20は、2ライン下、かつ、1画素左の画素値、
y21は、2ライン下の画素値、
y22は、2ライン下、かつ、1画素右の画素値、
y23は、2ライン下、かつ、2画素右の画素値
である。
y20 is a pixel value two lines below and one pixel left,
y21 is the pixel value under 2 lines,
y22 is a pixel value two lines down and one pixel right,
y23 is a pixel value two lines down and two pixels right.
判定する方向は図6のa〜lまでの12方向である。相関判定回路12では、まずa〜lのそれぞれの方向の相関値を算出する。相関値の算出方法は、近傍24画素をa〜lの線で2つの領域A,Bに区画し、各領域A,Bの画素値の合計の差分の絶対値を1つの領域に含まれる画素数で除算することにより求める。
The determination directions are 12 directions from a to l in FIG. The
即ち、方向aを示す破線aは、補間対象画素31の近傍24画素の画素値y0〜y23の全てに接しない。この結果、破線aは、12画素値y0,y1,y2,y3,y4,y5,y6,y7,y8,y9,y10,y11を有する領域Aと、12画素値y12,y13,y14,y15,y16,y17,y18,y19,y20,y21,y22,y23を有する領域Bとを区画する。
That is, the broken line a indicating the direction a does not touch all the pixel values y0 to y23 of the 24 neighboring pixels of the
同様に、方向bを示す破線bは、近傍24画素の画素値y0〜y23のうち、y5,y6,y17,y18にそれぞれ接するが、各中心を通過しないので、2画素値y6,y18を領域Aに含め、2画素値y5,y17を領域Bに含める。この結果、破線bは、12画素値y0,y1,y2,y3,y4,y6,y7,y8,y9,y10,y11,y18を有する領域Aと、12画素値y5,y12,y13,y14,y15,y16,y17,y19,y20,y21,y22,y23を有する領域Bとを区画する。 Similarly, the broken line b indicating the direction b is in contact with y5, y6, y17, and y18 among the pixel values y0 to y23 of the neighboring 24 pixels, but does not pass through each center. 2 pixel values y5 and y17 are included in area B. As a result, the broken line b represents a region A having 12 pixel values y0, y1, y2, y3, y4, y6, y7, y8, y9, y10, y11, y18 and 12 pixel values y5, y12, y13, y14, A region B having y15, y16, y17, y19, y20, y21, y22, and y23 is partitioned.
同様に、方向cを示す破線cは、近傍24画素の画素値y0〜y23のうち、y7,y17にそれぞれ接するが、各中心を通過しないので、2画素値y7,y17を領域Aに含める。この結果、破線cは、12素値y0,y1,y2,y3,y4,y7,y8,y9,y10,y11,y17,y18を有する領域Aと、12画素値y5,y6,y12,y13,y14,y15,y16,y19,y20,y21,y22,y23を有する領域Bとを区画する。 Similarly, the broken line c indicating the direction c touches y7 and y17 among the pixel values y0 to y23 of the neighboring 24 pixels, but does not pass through the respective centers, so the two pixel values y7 and y17 are included in the region A. As a result, the broken line c represents a region A having 12 elementary values y0, y1, y2, y3, y4, y7, y8, y9, y10, y11, y17, y18 and 12 pixel values y5, y6, y12, y13, A region B having y14, y15, y16, y19, y20, y21, y22, and y23 is partitioned.
一方、方向dを示す破線dは、近傍24画素の画素値y0〜y23のうち、y7,y16の各中心をそれぞれほぼ通過するので、2画素値y7,y16を領域A,Bから省く。この結果、破線dは、11画素値y0,y1,y2,y3,y4,y8,y9,y10,y11,y17,y18を有する領域Aと、11画素値y5,y6,y12,y13,y14,y15,y19,y20,y21,y22,y23を有する領域Bとを区画する。 On the other hand, since the broken line d indicating the direction d almost passes through the centers of y7 and y16 among the pixel values y0 to y23 of the neighboring 24 pixels, the two pixel values y7 and y16 are omitted from the regions A and B. As a result, the broken line d indicates a region A having 11 pixel values y0, y1, y2, y3, y4, y8, y9, y10, y11, y17, y18 and 11 pixel values y5, y6, y12, y13, y14, A region B having y15, y19, y20, y21, y22, and y23 is partitioned.
方向eを示す破線eは、近傍24画素の画素値y0〜y23の全てに接しない。この結果、上記した方向aを示す破線aと同様に、破線eは、12画素値y1,y2,y3,y4,y8,y9,y10,y11,y16,y17,y18,y23を有する領域Aと、12画素値y0,y5,y6,y7,y12,y13,y14,y15,y19,y20,y21,y22を有する領域Bとを区画する。 The broken line e indicating the direction e does not touch all the pixel values y0 to y23 of the neighboring 24 pixels. As a result, similar to the broken line a indicating the direction a described above, the broken line e represents the region A having 12 pixel values y1, y2, y3, y4, y8, y9, y10, y11, y16, y17, y18, y23. , 12 pixel values y0, y5, y6, y7, y12, y13, y14, y15, y19, y20, y21, and y22 are partitioned.
方向fを示す破線fは、近傍24画素の画素値y0〜y23のうち、y1,y8,y15,y22にそれぞれ接するが、各中心を通過しないので、2画素値y8,y22を領域Aに含め、2画素値y1,y15を領域Bに含める。この結果、破線fは、12画素値y2,y3,y4,y8,y9,y10,y11,y16,y17,y18,y22,y23を有する領域Aと、12画素値y0,y1,y5,y6,y7,y12,y13,y14,y15,y19,y20,y21を有する領域Bとを区画する。 The broken line f indicating the direction f touches y1, y8, y15, and y22 among the pixel values y0 to y23 of the neighboring 24 pixels, but does not pass through each center, so the two pixel values y8 and y22 are included in the region A. 2 pixel values y1 and y15 are included in region B. As a result, the broken line f indicates the region A having 12 pixel values y2, y3, y4, y8, y9, y10, y11, y16, y17, y18, y22, y23 and 12 pixel values y0, y1, y5, y6. A region B having y7, y12, y13, y14, y15, y19, y20, and y21 is partitioned.
一方、方向gを示す破線gは、近傍24画素の画素値y0〜y23のうち、y2,y8,y15,y21の中心をそれぞれほぼ通過するので、4画素値y2,y8,y15,y21を領域A,Bから省く。この結果、破線gは、10画素値y3,y4,y9,y10,y11,y16,y17,y18,y22,y23を有する領域Aと、10画素値y0,y1,y5,y6,y7,y12,y13,y14,y19,y20を有する領域Bとを区画する。 On the other hand, the broken line g indicating the direction g almost passes through the centers of y2, y8, y15, and y21 among the pixel values y0 to y23 of the neighboring 24 pixels, so that the four pixel values y2, y8, y15, and y21 are included in the region. Omit from A and B. As a result, the broken line g represents a region A having 10 pixel values y3, y4, y9, y10, y11, y16, y17, y18, y22, y23 and 10 pixel values y0, y1, y5, y6, y7, y12, A region B having y13, y14, y19, and y20 is partitioned.
方向hを示す破線hは、近傍24画素の画素値y0〜y23のうち、y3,y8,y15,y20にそれぞれ接するが、各中心を通過しないので、2画素値y3,y15を領域Aに含め、2画素値y8,y20を領域Bに含める。この結果、破線hは、12画素値y3,y4,y9,y10,y11,y15,y16,y17,y18,y21,y22,y23を有する領域Aと、12画素値y0,y1,y2,y5,y6,y7,y8,y12,y13,y14,y19,y20を有する領域Bとを区画する。 The broken line h indicating the direction h touches y3, y8, y15, and y20 among the pixel values y0 to y23 of the neighboring 24 pixels, but does not pass through each center, so the two pixel values y3 and y15 are included in the region A. 2 pixel values y8 and y20 are included in region B. As a result, the broken line h indicates the region A having 12 pixel values y3, y4, y9, y10, y11, y15, y16, y17, y18, y21, y22, y23 and 12 pixel values y0, y1, y2, y5. A region B having y6, y7, y8, y12, y13, y14, y19, and y20 is partitioned.
方向iを示す破線iは、近傍24画素の画素値y0〜y23のうち、y4が接するが、中心を通過しないので、y4を領域Aに含める。この結果、破線eは、12画素値y4,y9,y10,y11,y15,y16,y17,y18,y20,y21,y22,y23を有する領域Aと、12画素値y0,y1,y2,y3,y5,y6,y7,y8,y12,y13,y14,y19を有する領域Bとを区画する。 The broken line i indicating the direction i includes y4 in the region A because y4 touches the pixel values y0 to y23 of the neighboring 24 pixels but does not pass through the center. As a result, the broken line e indicates a region A having 12 pixel values y4, y9, y10, y11, y15, y16, y17, y18, y20, y21, y22, y23 and 12 pixel values y0, y1, y2, y3. A region B having y5, y6, y7, y8, y12, y13, y14, and y19 is partitioned.
一方、方向jを示す破線jは、近傍24画素の画素値y0〜y23のうち、y9,y14の中心をそれぞれほぼ通過するので、2画素値y9,y14を領域A,Bから省く。この結果、破線jは、11画素値y10,y11,y15,y16,y17,y18,y19,y20,y21,y22,y23を有する領域Aと、11画素値y0,y1,y2,y3,y4,y5,y6,y7,y8,y12,y13を有する領域Bとを区画する。 On the other hand, since the broken line j indicating the direction j almost passes through the centers of y9 and y14 among the pixel values y0 to y23 of the neighboring 24 pixels, the two pixel values y9 and y14 are omitted from the regions A and B. As a result, the broken line j represents the region A having 11 pixel values y10, y11, y15, y16, y17, y18, y19, y20, y21, y22, y23 and 11 pixel values y0, y1, y2, y3, y4. A region B having y5, y6, y7, y8, y12, and y13 is partitioned.
方向kを示す破線kは、近傍24画素の画素値y0〜y23のうち、y9,y10,y13,y14にそれぞれ接するが、各中心を通過しないので、2画素値y10,y14を領域Aに含め、2画素値y9,y13を領域Bに含める。この結果、破線kは、12画素値y10,y11,y14,y15,y16,y17,y18,y19,y20,y21,y22,y23を有する領域Aと、12画素値y0,y1,y2,y3,y4,y5,y6,y7,y8,y9,y12,y13を有する領域Bとを区画する。 The broken line k indicating the direction k touches y9, y10, y13, and y14 among the pixel values y0 to y23 of the neighboring 24 pixels, but does not pass through each center, so the two pixel values y10 and y14 are included in the region A. 2 pixel values y9 and y13 are included in region B. As a result, the broken line k represents the region A having 12 pixel values y10, y11, y14, y15, y16, y17, y18, y19, y20, y21, y22, y23 and 12 pixel values y0, y1, y2, y3. A region B having y4, y5, y6, y7, y8, y9, y12, and y13 is partitioned.
そして、方向lを示す破線lは、近傍24画素の画素値y0〜y23のうち、y10,y11,y12,y13にそれぞれ接するが、各中心を通過しないので、2画素値y11,y13を領域Aに含め、2画素値y10,y12を領域Bに含める。この結果、破線lは、12画素値y11,y13,y14,y15,y16,y17,y18,y19,y20,y21,y22,y23を有する領域Aと、12画素値y0,y1,y2,y3,y4,y5,y6,y7,y8,y9,y10,y12を有する領域Bとを区画する。 The broken line l indicating the direction l touches y10, y11, y12, and y13 among the pixel values y0 to y23 of the neighboring 24 pixels, but does not pass through the respective centers, so the two pixel values y11 and y13 are represented in the region A. 2 pixel values y10 and y12 are included in region B. As a result, the broken line l indicates that the region A having 12 pixel values y11, y13, y14, y15, y16, y17, y18, y19, y20, y21, y22, y23 and 12 pixel values y0, y1, y2, y3. A region B having y4, y5, y6, y7, y8, y9, y10, and y12 is partitioned.
こうして、近傍24画素(画素値y0〜y23)を、12方向a〜lの破線で2つの領域A,Bに、それぞれ区画することができる。次に、このようにして、各方向a〜lにおいて区画された2つの領域A,Bに基づいて、それぞれの相関値Ta〜Tlを求めることについて説明する。 In this manner, 24 neighboring pixels (pixel values y0 to y23) can be partitioned into two regions A and B by broken lines in 12 directions a to l, respectively. Next, how the respective correlation values Ta to Tl are obtained based on the two areas A and B partitioned in the directions a to l in this way will be described.
<相関値Ta>
方向aを示す破線aは、上記した領域A,Bを区画している。
従って、方向aにおける相関値Taは、次式(14)で表わされる。即ち、
Ta=|(y0+y1+y2+y3+y4+y5+y6+y7+y8+y9+y10+y11)−(y12+y13+y14+y15+y16+y17+y18+y19+y20+y21+y22+y23)|/ 12
・・・ (14)
<Correlation value Ta>
A broken line “a” indicating the direction “a” defines the above-described regions A and B.
Accordingly, the correlation value Ta in the direction a is expressed by the following equation (14). That is,
Ta = | (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y7 + y8 + y9 + y10 + y11) − (y12 + y13 + y14 + y15 + y16 + y17 + y18 + y19 + y20 + y21 + y22 + y23) | / 12
(14)
<相関値Tb>
方向bを示す破線bは、上記した領域A,Bを区画している。
従って、方向bにおける相関値Tbは、次式(15)で表わされる。即ち、
Tb=|(y0+y1+y2+y3+y4+y6+y7+y8+y9+y10+y11+y18)−(y5+y12+y13+y14+y15+y16+y17+y19+y20+y21+y22+y23)|/ 12
・・・ (15)
<Correlation value Tb>
A broken line b indicating the direction b defines the regions A and B described above.
Accordingly, the correlation value Tb in the direction b is expressed by the following equation (15). That is,
Tb = | (y0 + y1 + y2 + y3 + y4 + y6 + y7 + y8 + y9 + y10 + y11 + y18) − (y5 + y12 + y13 + y14 + y15 + y16 + y17 + y19 + y20 + y21 + y22 + y23) | / 12
(15)
<相関値Tc>
方向cを示す破線cは、上記した領域A,Bを区画している。
従って、方向cにおける相関値Tcは、次式(16)で表わされる。即ち、
Tc=|(y0+y1+y2+y3+y4+y7+y8+y9+y10+y11+y17+y18)−(y5+y6+y12+y13+y14+y15+y16+y19+y20+y21+y22+y23)|/ 12
・・・ (16)
<Correlation value Tc>
A broken line c indicating the direction c defines the regions A and B described above.
Accordingly, the correlation value Tc in the direction c is expressed by the following equation (16). That is,
Tc = | (y0 + y1 + y2 + y3 + y4 + y7 + y8 + y9 + y10 + y11 + y17 + y18) − (y5 + y6 + y12 + y13 + y14 + y15 + y16 + y19 + y20 + y21 + y22 + y23) | / 12
(16)
<相関値Td>
方向dを示す破線dは、上記した領域A+Bを区画している。
従って、方向dにおける相関値Tdは、次式(17)で表わされる。即ち、
Td=|(y0+y1+y2+y3+y4+y8+y9+y10+y11+y17+y18)−(y5+y6+y12+y13+y14+y15+y19+y20+y21+y22+y23)|/ 11
・・・ (17)
<Correlation value Td>
A broken line d indicating the direction d defines the above-described region A + B.
Accordingly, the correlation value Td in the direction d is expressed by the following equation (17). That is,
Td = | (y0 + y1 + y2 + y3 + y4 + y8 + y9 + y10 + y11 + y17 + y18) − (y5 + y6 + y12 + y13 + y14 + y15 + y19 + y20 + y21 + y22 + y23) | / 11
(17)
<相関値Te>
方向eを示す破線eは、上記した領域A+Bを区画している。
従って、方向eにおける相関値Teは、次式(18)で表わされる。即ち、
Te=|(y1+y2+y3+y4+y8+y9+y10+y11+y16+y17+y18+y23)−(y0+y5+y6+y7+y12+y13+y14+y15+y19+y20+y21+y22)|/ 12
・・・ (18)
<Correlation value Te>
A broken line e indicating the direction e defines the above-described region A + B.
Accordingly, the correlation value Te in the direction e is expressed by the following equation (18). That is,
Te = | (y1 + y2 + y3 + y4 + y8 + y9 + y10 + y11 + y16 + y17 + y18 + y23) − (y0 + y5 + y6 + y7 + y12 + y13 + y14 + y15 + y19 + y20 + y21 + y22) | / 12
(18)
<相関値Tf>
方向fを示す破線fは、上記した領域A+Bを区画している。
従って、方向fにおける相関値Tfは、次式(19)で表わされる。即ち、
Tf=|(y2+y3+y4+y8+y9+y10+y11+y16+y17+y18+y22+y23)−(y0+y1+y5+y6+y7+y12+y13+y14+y15+y19+y20+y21)|/ 12
・・・ (19)
<Correlation value Tf>
A broken line f indicating the direction f defines the above-described region A + B.
Accordingly, the correlation value Tf in the direction f is expressed by the following equation (19). That is,
Tf = | (y2 + y3 + y4 + y8 + y9 + y10 + y11 + y16 + y17 + y18 + y22 + y23) − (y0 + y1 + y5 + y6 + y7 + y12 + y13 + y14 + y15 + y19 + y20 + y21) | / 12
(19)
<相関値Tg>
方向gを示す破線gは、上記した領域A+Bを区画している。
従って、方向gにおける相関値Tgは、次式(20)で表わされる。即ち、
Tg=|(y3+y4+y9+y10+y11+y16+y17+y18+y22+y23)
−(y0+y1+y5+y6+y7+y12+y13+y14+y19+y20)|/ 10
・・・ (20)
<Correlation value Tg>
A broken line g indicating the direction g defines the above-described region A + B.
Accordingly, the correlation value Tg in the direction g is expressed by the following equation (20). That is,
Tg = | (y3 + y4 + y9 + y10 + y11 + y16 + y17 + y18 + y22 + y23)
− (Y0 + y1 + y5 + y6 + y7 + y12 + y13 + y14 + y19 + y20) | / 10
(20)
<相関値Th>
方向hを示す破線hは、上記した領域A+Bを区画している。
従って、方向hにおける相関値Thは、次式(21)で表わされる。即ち、
Th=|(y3+y4+y9+y10+y11+y15+y16+y17+y18+y21+y22+y23)−(y0+y1+y2+y5+y6+y7+y8+y12+y13+y14+y19+y20)|/ 12
・・・ (21)
<Correlation value Th>
A broken line h indicating the direction h defines the above-described region A + B.
Accordingly, the correlation value Th in the direction h is expressed by the following equation (21). That is,
Th = | (y3 + y4 + y9 + y10 + y11 + y15 + y16 + y17 + y18 + y21 + y22 + y23) − (y0 + y1 + y2 + y5 + y6 + y7 + y8 + y12 + y13 + y14 + y19 + y20) | / 12
(21)
<相関値Ti>
方向iを示す破線iは、上記した領域A+Bを区画している。
従って、方向iにおける相関値Tiは、次式(22)で表わされる。即ち、
Ti=|(y4+y9+y10+y11+y15+y16+y17+y18+y20+y21+y22+y23)−(y0+y1+y2+y3+y5+y6+y7+y8+y12+y13+y14+y19)|/ 12
・・・ (22)
<Correlation value Ti>
A broken line i indicating the direction i defines the region A + B.
Accordingly, the correlation value Ti in the direction i is expressed by the following equation (22). That is,
Ti = | (y4 + y9 + y10 + y11 + y15 + y16 + y17 + y18 + y20 + y21 + y22 + y23) − (y0 + y1 + y2 + y3 + y5 + y6 + y7 + y8 + y12 + y13 + y14 + y19) | / 12
(22)
<相関値Tj>
方向jを示す破線jは、上記した領域A+Bを区画している。
従って、方向jにおける相関値Tjは、次式(23)で表わされる。即ち、
Tj=|(y10+y11+y15+y16+y17+y18+y19+y20+y21+y22+y23)−(y0+y1+y2+y3+y4+y5+y6+y7+y8+y12+y13)|/ 11
・・・ (23)
<Correlation value Tj>
A broken line j indicating the direction j defines the region A + B.
Accordingly, the correlation value Tj in the direction j is expressed by the following equation (23). That is,
Tj = | (y10 + y11 + y15 + y16 + y17 + y18 + y19 + y20 + y21 + y22 + y23) − (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y7 + y8 + y12 + y13) | / 11
(23)
<相関値Tk>
方向kを示す破線kは、上記した領域A+Bを区画している。
従って、方向kにおける相関値Tkは、次式(24)で表わされる。即ち、
Tk=|(y10+y11+y14+y15+y16+y17+y18+y19+y20+y21+y22+y23)−(y0+y1+y2+y3+y4+y5+y6+y7+y8+y9+y12+y13)|/ 12
・・・ (24)
<Correlation value Tk>
A broken line k indicating the direction k defines the above-described region A + B.
Accordingly, the correlation value Tk in the direction k is expressed by the following equation (24). That is,
Tk = | (y10 + y11 + y14 + y15 + y16 + y17 + y18 + y19 + y20 + y21 + y22 + y23) − (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y7 + y8 + y9 + y12 + y13) | / 12
(24)
<相関値Tl>
方向lを示す破線lは、上記した領域A+Bを区画している。
従って、方向lにおける相関値Tlは、次式(25)で表わされる。即ち、
Tl=|(y11+y13+y14+y15+y16+y17+y18+y19+y20+y21+y22+y23)−(y0+y1+y2+y3+y4+y5+y6+y7+y8+y9+y10+y12)|/ 12
・・・ (25)
<Correlation value Tl>
A broken line l indicating the direction l defines the above-described region A + B.
Accordingly, the correlation value Tl in the direction l is expressed by the following equation (25). That is,
Tl = | (y11 + y13 + y14 + y15 + y16 + y17 + y18 + y19 + y20 + y21 + y22 + y23) − (y0 + y1 + y2 + y3 + y4 + y5 + y6 + y7 + y8 + y9 + y10 + y12) | / 12
(25)
こうして、近傍24画素を、方向a〜lの破線で2つの領域A,Bに区画し、これら区画された2つの領域A,Bに基づいて、それぞれの相関値Ta〜Tlを求めることができる。 Thus, the 24 neighboring pixels are divided into two areas A and B by broken lines in the directions a to l, and the correlation values Ta to Tl can be obtained based on the two divided areas A and B. .
上記のように算出した12の相関値Ta〜Tlの中から、最も大きい相関値を持つ方向の相関値Txを選択して、選択回路14に出力する。
From the 12 correlation values Ta to Tl calculated as described above, the correlation value Tx in the direction having the largest correlation value is selected and output to the
補間画素生成回路13ではa〜lの12方向についてそれぞれの補間画素Ya〜Ylの算出を行う。Ya〜Ylの算出は式(26)により表される。
The interpolation
Ya=(y8+y15+1)/2
Yb=(y5+y6+y17+y18+3)/4
Yc=(y6+y7+y16+y17+3)/4
Yd=(y7+y16+1)/2
Ye=(y7+y8+y15+y16+3)/4
Yf=(y1+y8+y15+y22+3)/4
Yg=(y8+y15+1)/2
Yh=(y3+y8+y15+y20+3)/4
Yi=(y8+y9+y14+y15+3)/4
Yj=(y9+y14+1)/2
Yk=(y9+y10+y13+y14+3)/4
Yl=(y10+y11+y12+y13+3)/4
・・・ (26)
Ya = (y8 + y15 + 1) / 2
Yb = (y5 + y6 + y17 + y18 + 3) / 4
Yc = (y6 + y7 + y16 + y17 + 3) / 4
Yd = (y7 + y16 + 1) / 2
Ye = (y7 + y8 + y15 + y16 + 3) / 4
Yf = (y1 + y8 + y15 + y22 + 3) / 4
Yg = (y8 + y15 + 1) / 2
Yh = (y3 + y8 + y15 + y20 + 3) / 4
Yi = (y8 + y9 + y14 + y15 + 3) / 4
Yj = (y9 + y14 + 1) / 2
Yk = (y9 + y10 + y13 + y14 + 3) / 4
Yl = (y10 + y11 + y12 + y13 + 3) / 4
(26)
上記のように算出された補間画素Ya〜Ylを選択回路14に出力する。相関判定回路12での補間方向の判定において、誤判定を避けるために、相関値の最大値Txがある一定の閾値以上で無い場合は予め決められた補間方法にて補間画素値Yxを求めることも考えられる。予め決められた補間方法は、例えば、相関値Ta〜Tlが、所定の閾値未満の場合は、当該補間対象画素31の真上に位置する画素の画素値y6と、当該補間対象画素31の真下に位置する画素y13の画素値との平均値を、当該補間画素値Yxとして用いる。
The interpolation pixels Ya to Yl calculated as described above are output to the
なお、本発明は、フィールド内補間に関するものであるため、本実施形態では、フィールド内補間のみについて説明したが、もちろん、動き検出をし、動き検出結果に応じて、フィールド内補間と、フィールド間補間を適応的に切り替えるようにしてもよいことはいうまでもない。 Note that since the present invention relates to intra-field interpolation, in the present embodiment, only intra-field interpolation has been described. However, of course, motion detection is performed, and intra-field interpolation and inter-field interpolation are performed according to the motion detection result. Needless to say, the interpolation may be switched adaptively.
本発明の画像信号生成方法は、IP変換装置のフィールド内補間に適用でき、動画像の斜め線部分にもジャギーのない鮮明な画像を生成できる。 The image signal generation method of the present invention can be applied to intra-field interpolation of an IP conversion apparatus, and can generate a clear image free from jaggies even in a diagonal line portion of a moving image.
1 画像信号生成装置
11 フィールドメモリ
12 相関判定回路
13 補間画素生成回路
14 選択回路
31 補間対象画素
a〜l,x 方向,区画線
A,B 領域
Ta〜Tl 相関値
Tx 最大の相関値
y0〜y23 近傍画素
Yx 補間画素値
DESCRIPTION OF
Claims (4)
前記補間信号を補間生成するための各補間対象画素の補間画素値を中心として上下ライン側へ放射状に拡がる方向を複数設定し、複数設定した各方向に対応し、かつ、その中心となる当該補間対象画素を貫通する各区画線を用いて、当該補間対象画素の近傍に位置する所定数の近傍画素を同数ずつ2つの領域に区分けし、区分けした2つの領域のうちの一方の領域内に位置する近傍画素の画素値の合計と他方の領域内に位置する近傍画素の画素値の合計との差分の絶対値を、各領域に含まれる近傍画素の数で除算して、当該補間対象画素に対して前記複数設定した各方向に位置する近傍画素との相関を示す相関値を得る第1ステップと、
前記複数設定した各方向における前記相関値の中から、最大の相関値を検出する第2ステップと、
当該最大の相関値に係る方向に応じた前記区画線に接する、全ての近傍画素の画素値の平均に基づく値を、当該補間画素値として求める第3ステップとを有して、
当該補間対象画素の近傍に位置する近傍画素との相関が高い補間画素値を得ることを特徴とする画像信号生成方法。 An image signal generation method for generating a progressive image signal using an interlace image signal and an interpolation signal generated by interpolation based on the interlace image signal,
Set a plurality of directions radially extending to the upper and lower line sides around the interpolation pixel value of each interpolation target pixel for generating the interpolation signal, and correspond to each of the set directions and the interpolation at the center Using each dividing line that penetrates the target pixel, the predetermined number of neighboring pixels located in the vicinity of the interpolation target pixel is divided into two regions by the same number, and the pixel is located in one of the two divided regions. Dividing the absolute value of the difference between the sum of the pixel values of neighboring pixels and the sum of the pixel values of neighboring pixels located in the other region by the number of neighboring pixels included in each region, A first step of obtaining a correlation value indicating a correlation with neighboring pixels located in each of the plurality of set directions;
A second step of detecting a maximum correlation value from the correlation values in each of the plurality of set directions;
A third step of obtaining, as the interpolated pixel value, a value based on an average of pixel values of all neighboring pixels that are in contact with the partition line according to the direction related to the maximum correlation value,
An image signal generation method characterized by obtaining an interpolation pixel value having a high correlation with a neighboring pixel located in the vicinity of the interpolation target pixel.
前記第1ステップにおいて得た前記相関値が、所定の閾値未満の場合は、当該補間対象画素の真上に位置する画素の画素値と、当該補間対象画素の真下に位置する画素の画素値との平均値を、当該補間画素値として用いることを特徴とする画像信号生成方法。 The image signal generation method according to claim 1,
When the correlation value obtained in the first step is less than a predetermined threshold, a pixel value of a pixel located directly above the interpolation target pixel, and a pixel value of a pixel located directly below the interpolation target pixel An image signal generation method characterized in that an average value is used as the interpolation pixel value.
前記補間信号を補間生成するための各補間対象画素の補間画素値を中心として上下ライン側へ放射状に拡がる方向を複数設定し、複数設定した各方向に対応しかつその中心となる当該補間対象画素を貫通する各区画線を用いて、当該補間対象画素の近傍に位置する所定数の近傍画素を同数ずつ2つの領域に区分けし、区分けした2つの領域のうちの一方の領域内に位置する近傍画素の画素値の合計と他方の領域内に位置する近傍画素の画素値の合計との差分の絶対値を、各領域に含まれる近傍画素の数で除算して、当該補間対象画素に対して前記複数設定した各方向に位置する近傍画素との相関を示す相関値を得る第1の手段と、
前記複数設定した各方向における前記相関値の中から、最大の相関値を検出する第2の手段と、
当該最大の相関値に係る方向に応じた前記区画線に接する、全ての近傍画素の画素値の平均に基づく値を、当該補間画素値として求める第3の手段とを有し、
当該補間対象画素の近傍に位置する近傍画素との相関が高い補間画素値を得ることを特徴とする画像信号生成装置。 An image signal generating apparatus that generates a progressive image signal using an interlaced image signal and an interpolation signal generated by interpolation based on the interless image signal,
A plurality of directions radially extending from the interpolation pixel value of each interpolation target pixel for generating the interpolation signal to the upper and lower lines are set as a center, and the interpolation target pixel corresponding to and set at the center in each of the plurality of set directions A predetermined number of neighboring pixels located in the vicinity of the interpolation target pixel is divided into two regions by the same number using the lane markings that pass through the neighborhood, and the neighborhood located in one of the two divided regions Divide the absolute value of the difference between the sum of the pixel values of the pixels and the sum of the pixel values of neighboring pixels located in the other region by the number of neighboring pixels contained in each region, and A first means for obtaining a correlation value indicating a correlation with the plurality of neighboring pixels positioned in each direction;
A second means for detecting a maximum correlation value from the correlation values in the plurality of set directions;
A third means for obtaining, as the interpolated pixel value, a value based on an average of pixel values of all neighboring pixels in contact with the partition line according to the direction related to the maximum correlation value;
An image signal generation device characterized in that an interpolation pixel value having a high correlation with a neighboring pixel located in the vicinity of the interpolation target pixel is obtained.
前記第1の手段において得た前記相関値が、所定の閾値未満の場合は、当該補間対象画素の真上に位置する画素の画素値と、当該補間対象画素の真下に位置する画素の画素値との平均値を、当該補間画素値として用いることを特徴とする画像信号生成装置。 The image signal generation device according to claim 3,
If the correlation value obtained by the first means is less than a predetermined threshold, the pixel value of the pixel located directly above the interpolation target pixel and the pixel value of the pixel located directly below the interpolation target pixel An image signal generation device using an average value of the interpolation pixel value as the interpolation pixel value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007200900A JP2009038578A (en) | 2007-08-01 | 2007-08-01 | Method and apparatus for generating image signal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007200900A JP2009038578A (en) | 2007-08-01 | 2007-08-01 | Method and apparatus for generating image signal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2009038578A true JP2009038578A (en) | 2009-02-19 |
Family
ID=40440114
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007200900A Pending JP2009038578A (en) | 2007-08-01 | 2007-08-01 | Method and apparatus for generating image signal |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2009038578A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8068173B2 (en) | 2009-09-30 | 2011-11-29 | Kabushiki Kaisha Toshiba | Color difference signal format conversion device and method |
| JP2014106909A (en) * | 2012-11-29 | 2014-06-09 | Jvc Kenwood Corp | Image enlargement device, image enlargement method, and image enlargement program |
| WO2016035568A1 (en) * | 2014-09-03 | 2016-03-10 | ソニー株式会社 | Signal processing device and signal processing method, solid-state imaging element, imaging device, electronic instrument, and program |
-
2007
- 2007-08-01 JP JP2007200900A patent/JP2009038578A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8068173B2 (en) | 2009-09-30 | 2011-11-29 | Kabushiki Kaisha Toshiba | Color difference signal format conversion device and method |
| JP2014106909A (en) * | 2012-11-29 | 2014-06-09 | Jvc Kenwood Corp | Image enlargement device, image enlargement method, and image enlargement program |
| WO2016035568A1 (en) * | 2014-09-03 | 2016-03-10 | ソニー株式会社 | Signal processing device and signal processing method, solid-state imaging element, imaging device, electronic instrument, and program |
| US10275854B2 (en) | 2014-09-03 | 2019-04-30 | Sony Semiconductor Solutions Corporation | Signal processing device, signal processing method, solid-state image sensor, imaging device, and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2015173430A (en) | Projection system, semiconductor integrated circuit, and image correction method | |
| CN100473141C (en) | Image angle detection device and scanning line interpolation device including the device | |
| KR100457517B1 (en) | An apparatus and method for frame rate conversion | |
| US20180253823A1 (en) | Image processing device, image processing method and computer readable medium | |
| JP4869045B2 (en) | Interpolation frame creation method and interpolation frame creation apparatus | |
| JP2009038578A (en) | Method and apparatus for generating image signal | |
| US7821676B2 (en) | Method of processing and operating video surveillance system | |
| US8310592B2 (en) | Signal processing apparatus, signal processing method, and program for signal processing | |
| CN103826082A (en) | A video processing method and device | |
| JP4861114B2 (en) | Video signal processing device | |
| JP6012230B2 (en) | Edge direction determination device, control method of edge direction determination device, and image processing device | |
| US8068173B2 (en) | Color difference signal format conversion device and method | |
| US8059920B2 (en) | Method and apparatus for pixel interpolation | |
| JP2009212851A (en) | Scanning line interpolator and its control method | |
| JP2019062406A (en) | Motion vector detection device | |
| JP2010171624A (en) | Outline correction circuit and interpolation pixel generation circuit | |
| JP2006215655A (en) | Motion vector detection method, motion vector detection device, motion vector detection program, and program recording medium | |
| JP5018198B2 (en) | Interpolation signal generation circuit, interpolation signal generation method, program, and video signal processing apparatus | |
| JP2006215657A (en) | Motion vector detection method, motion vector detection device, motion vector detection program, and program recording medium | |
| JP2006148827A (en) | Scanning line interpolating device, and scanning line interpolating method | |
| JP2007067652A (en) | Image processing apparatus | |
| CN112789848B (en) | Interpolation frame generation device and method | |
| JP5095520B2 (en) | Motion vector allocation device, frame rate conversion device, video encoding device, motion vector allocation method, motion vector allocation program, and recording medium | |
| JP4665061B1 (en) | Color difference signal format conversion apparatus and method | |
| JP2004056586A (en) | Image processor and image processing method |