JP4648242B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP4648242B2
JP4648242B2 JP2006143400A JP2006143400A JP4648242B2 JP 4648242 B2 JP4648242 B2 JP 4648242B2 JP 2006143400 A JP2006143400 A JP 2006143400A JP 2006143400 A JP2006143400 A JP 2006143400A JP 4648242 B2 JP4648242 B2 JP 4648242B2
Authority
JP
Japan
Prior art keywords
contour
information
pixel
corrected
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006143400A
Other languages
Japanese (ja)
Other versions
JP2007318260A (en
Inventor
一憲 渡邉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2006143400A priority Critical patent/JP4648242B2/en
Publication of JP2007318260A publication Critical patent/JP2007318260A/en
Application granted granted Critical
Publication of JP4648242B2 publication Critical patent/JP4648242B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、輪郭補正機能を有する画像処理装置に関する   The present invention relates to an image processing apparatus having a contour correction function.

従来より、画像の輪郭を補正する技術は様々なものが知られている。例えば、特許文献1では、映像信号から抽出した高周波成分(輪郭成分)のピークレベルに基づいて輪郭成分のレベルを一定化し、輪郭成分の所定期間における累積値に基づいて高周波成分のゲインを制御することとしている。しかし、特許文献1に記載の技術は、所定の期間における輪郭成分を積算するので、少数の輪郭成分が大きなレベルを有する画像と、多数の輪郭成分が小さなレベルを有する画像とについて、同じ積算値を算出する可能性があり、上記2種類の画像に対して同じ輪郭補正を行う場合がある。このため、特許文献1に記載の技術では、画像に応じた適切な輪郭補正を行うことができない可能性がある。   Conventionally, various techniques for correcting the contour of an image are known. For example, in Patent Document 1, the level of the contour component is made constant based on the peak level of the high-frequency component (contour component) extracted from the video signal, and the gain of the high-frequency component is controlled based on the accumulated value of the contour component in a predetermined period. I am going to do that. However, since the technique described in Patent Document 1 integrates contour components in a predetermined period, the same integrated value is used for an image having a small number of contour components and a large number of contour components having a small level. May be calculated, and the same contour correction may be performed on the two types of images. For this reason, the technique described in Patent Document 1 may not be able to perform appropriate contour correction according to the image.

上記問題点を解決する技術として、特許文献2に記載の技術が開示されている。特許文献2では、入力信号に含まれる輪郭成分を、複数の所定レベル範囲毎に振り分け、その出現度数に基づいてヒストグラムを作成する。そして、作成されたヒストグラムを用いて1フィールドもしくは1フレーム期間の映像における輪郭補正を行うこととしている。
特開平11−177852号公報 特開2006−13735号公報
As a technique for solving the above problems, a technique described in Patent Document 2 is disclosed. In Patent Document 2, the contour component included in the input signal is distributed for each of a plurality of predetermined level ranges, and a histogram is created based on the appearance frequency. Then, the contour correction in the video of one field or one frame period is performed using the created histogram.
Japanese Patent Laid-Open No. 11-177852 JP 2006-13735 A

しかしながら、画像の輪郭において、垂直方向の輪郭成分と水平方向の輪郭成分とを比較すると、一般的に水平方向の輪郭成分の周波数が垂直方向の輪郭成分の周波数よりも高く、水平方向の輪郭が見えにくいという特性を有する。このため、特許文献2に記載の発明のように、輪郭の方向に関係なく一律に輪郭成分をゲイン制御すると、補正後の映像では、垂直方向の輪郭が水平方向の輪郭に比べて強調されてしまうことや、水平方向の輪郭が見えにくくなってしまうなど、全体として輪郭が不自然に見えてしまうという問題が生じていた。   However, when comparing the contour component in the vertical direction with the contour component in the horizontal direction in the contour of the image, the frequency of the contour component in the horizontal direction is generally higher than the frequency of the contour component in the vertical direction. It is difficult to see. For this reason, when the gain of the contour component is uniformly controlled regardless of the direction of the contour as in the invention described in Patent Document 2, the vertical contour is emphasized compared to the horizontal contour in the corrected image. As a result, there is a problem that the outline looks unnatural as a whole, such as the fact that it becomes difficult to see the outline in the horizontal direction.

また、輪郭成分のヒストグラムを作成するまで輪郭を補正するためのゲイン制御量を算出することができず、輪郭補正は1フィールドもしくは1フレーム期間単位で行わなければならない。このため、映像信号を最大1フィールドもしくは1フレーム期間単位遅延させる必要があり、遅延回路が大きくなってしまうという問題もあった。   Further, the gain control amount for correcting the contour cannot be calculated until the histogram of the contour component is created, and the contour correction must be performed in units of one field or one frame period. For this reason, it is necessary to delay the video signal by a unit of one field or one frame period, which causes a problem that the delay circuit becomes large.

本発明は、以上の問題点に鑑みてなされたものであり、輪郭の方向に応じたゲイン制御を行うことにより、映像に適した輪郭補正を行うことを目的とする。   The present invention has been made in view of the above problems, and an object thereof is to perform contour correction suitable for an image by performing gain control in accordance with the direction of the contour.

上記課題を解決するために、本発明では、画素マトリックス情報を取得する画素マトリックス情報取得部と、取得した画素マトリックス情報から輪郭方向を示す情報である輪郭方向情報を取得する輪郭方向情報取得部と、取得した輪郭方向情報を用いて前記画素マトリックス情報の輪郭画素分を修正して輪郭を強調した新たな画素マトリックス情報とする輪郭画素修正部と、を有する画像処理装置を提案する。   In order to solve the above problems, in the present invention, a pixel matrix information acquisition unit that acquires pixel matrix information, a contour direction information acquisition unit that acquires contour direction information that is information indicating a contour direction from the acquired pixel matrix information, The present invention proposes an image processing apparatus comprising: a contour pixel correction unit that corrects a contour pixel of the pixel matrix information using the acquired contour direction information to obtain new pixel matrix information with enhanced contours.

また、前記輪郭方向情報取得部は、画素マトリックス情報の輪郭方向に感応する係数マトリックスを輪郭方向パターン種分保持する係数マトリックス保持手段と、取得した画素マトリックス情報に対する前記保持されている係数マトリックスの感応結果を取得する感応結果取得手段と、感応結果に応じて画素マトリックス情報に対応する輪郭方向情報を取得する輪郭方向情報取得手段と、を有する画像処理装置であっても良い。   The contour direction information acquisition unit includes coefficient matrix holding means for holding a coefficient matrix sensitive to the contour direction of the pixel matrix information for the contour direction pattern type, and sensitivity of the held coefficient matrix to the acquired pixel matrix information. The image processing apparatus may include a sensitivity result acquisition unit that acquires the result and a contour direction information acquisition unit that acquires the contour direction information corresponding to the pixel matrix information according to the sensitivity result.

また、前記輪郭画素修正部は、取得した輪郭方向情報に基づいて、垂直方向の輪郭修正量を示す垂直輪郭修正情報と水平方向の輪郭修正量を示す水平輪郭修正情報を取得する垂直水平輪郭修正情報取得手段と、垂直輪郭修正情報を用いて前記画素マトリックス情報の垂直方向の輪郭画素分を修正して修正済垂直輪郭画素情報を取得する修正済垂直輪郭画素情報取得手段と、水平輪郭修正情報を用いて前記画素マトリックス情報の水平方向の輪郭画素分を修正して修正済水平輪郭画素情報を取得する修正済水平輪郭画素情報取得手段と、取得された修正済垂直輪郭画素情報と、修正済水平輪郭画素情報と、から新たな画素マトリックス情報の輪郭画素分である修正済輪郭画素情報を生成する修正済輪郭画素情報生成手段と、を有する画像処理装置であっても良い。   The contour pixel correction unit acquires vertical contour correction information indicating a vertical contour correction amount and horizontal contour correction information indicating a horizontal contour correction amount based on the acquired contour direction information. Information acquisition means, corrected vertical contour pixel information acquisition means for correcting vertical contour pixel information of the pixel matrix information by using vertical contour correction information and acquiring corrected vertical contour pixel information, and horizontal contour correction information Corrected horizontal contour pixel information acquisition means for correcting the horizontal contour pixel portion of the pixel matrix information and acquiring corrected horizontal contour pixel information, acquired corrected vertical contour pixel information, and corrected Horizontal contour pixel information, and corrected contour pixel information generating means for generating corrected contour pixel information corresponding to the contour pixel of new pixel matrix information from the horizontal contour pixel information It may be.

また、前記輪郭画素修正部は、取得した感応結果の感応強度に応じて修正済輪郭画素情報の新たな画素マトリックス中での強調度合を定める係数である輪郭強調係数を取得する輪郭強調係数取得手段を有する画像処理装置であっても良い。   In addition, the contour pixel correction unit acquires a contour enhancement coefficient acquisition unit that acquires a contour enhancement coefficient that is a coefficient that determines the enhancement degree in the new pixel matrix of the corrected contour pixel information according to the sensitivity intensity of the acquired sensitivity result. May be an image processing apparatus.

さらに、上記課題を解決するために、本発明では、画素マトリックス情報を取得する画素マトリックス情報取得ステップと、取得した画素マトリックス情報から輪郭方向を示す情報である輪郭方向情報を取得する輪郭方向情報取得ステップと、取得した輪郭方向情報を用いて前記画素マトリックス情報の輪郭画素分を修正して輪郭を強調した新たな画素マトリックス情報とする輪郭画素修正ステップと、からなる輪郭補正方法を提案する。   Furthermore, in order to solve the above problems, in the present invention, a pixel matrix information acquisition step for acquiring pixel matrix information, and contour direction information acquisition for acquiring contour direction information that is information indicating the contour direction from the acquired pixel matrix information. The present invention proposes a contour correction method comprising: a step and a contour pixel correction step that corrects a contour pixel of the pixel matrix information using the acquired contour direction information to obtain new pixel matrix information in which the contour is emphasized.

また、前記輪郭方向情報取得ステップは、画素マトリックス情報の輪郭方向に感応する輪郭方向パターン種分の係数マトリックスと、取得した画素マトリックス情報との感応結果を取得する感応結果取得サブステップと、前記感応結果に応じて画素マトリックス情報に対応する輪郭方向情報を取得する輪郭方向情報取得サブステップと、を有する輪郭補正方法であっても良い。   The contour direction information acquisition step includes a sensitivity result acquisition substep for acquiring a sensitivity result of a coefficient matrix for a contour direction pattern type sensitive to the contour direction of the pixel matrix information and the acquired pixel matrix information, and the sensitivity The contour correction method may include a contour direction information acquisition substep for acquiring contour direction information corresponding to the pixel matrix information according to the result.

また、前記輪郭画素修正ステップは、取得した輪郭方向情報に基づいて、垂直方向の輪郭修正量を示す垂直輪郭修正情報と水平方向の輪郭修正量を示す水平輪郭修正情報を取得する垂直水平輪郭修正情報取得サブステップと、垂直輪郭修正情報を用いて前記画素マトリックス情報の垂直方向の輪郭画素分を修正して修正済垂直輪郭画素情報を取得する修正済垂直輪郭画素情報取得サブステップと、水平輪郭修正情報を用いて前記画素マトリックス情報の水平方向の輪郭画素分を修正して修正済水平輪郭画素情報を取得する修正済水平輪郭画素情報取得サブステップと、取得された修正済垂直輪郭画素情報と、修正済水平輪郭画素情報と、から新たな画素マトリックス情報の輪郭画素分である修正済輪郭画素情報を生成する修正済輪郭画素情報生成サブステップと、を有する輪郭補正方法であっても良い。   The contour pixel correcting step acquires vertical contour correction information indicating a vertical contour correction amount and horizontal contour correction information indicating a horizontal contour correction amount based on the acquired contour direction information. An information acquisition sub-step; a corrected vertical contour pixel information acquisition sub-step for correcting corrected vertical contour pixel information of the pixel matrix information by using vertical contour correction information; A corrected horizontal contour pixel information acquisition sub-step for acquiring corrected horizontal contour pixel information by correcting the horizontal contour pixel portion of the pixel matrix information using correction information; and the acquired corrected vertical contour pixel information; , Corrected horizontal pixel information, and corrected contour pixel information for generating corrected contour pixel information corresponding to the contour pixel of the new pixel matrix information And forming sub-step may be a contour correction method having.

また、前記輪郭画素修正ステップは、取得した感応結果の感応強度に応じて修正済輪郭画素情報の新たな画素マトリックス情報中での強調度合を定める係数である輪郭強調係数を取得して、修正済輪郭画素情報を調整する輪郭調整サブステップを有する輪郭補正方法であっても良い。   Further, the contour pixel correction step acquires a contour emphasis coefficient that is a coefficient that determines an emphasis degree in the new pixel matrix information of the corrected contour pixel information according to the sensitivity intensity of the acquired sensitivity result, and has been corrected. A contour correction method having a contour adjustment substep for adjusting contour pixel information may be used.

以上のような構成をとる本発明の画像処理装置では、画素マトリックス情報から輪郭方向情報を取得して、輪郭方向情報に応じた輪郭補正を行うことができる。このため、垂直方向の輪郭成分と水平方向の輪郭成分とを別々にゲイン制御することができ、水平方向の輪郭成分のゲイン制御量を大きくすることで補正後の映像の輪郭が不自然になることを防止することができる。また、本発明では、画素マトリックス情報を取得するための遅延が少なくて済むため、遅延回路を小さくすることができる。   In the image processing apparatus of the present invention having the above-described configuration, it is possible to acquire contour direction information from pixel matrix information and perform contour correction according to the contour direction information. For this reason, the vertical contour component and the horizontal contour component can be separately gain controlled, and the contour of the corrected image becomes unnatural by increasing the gain control amount of the horizontal contour component. This can be prevented. In the present invention, since the delay for acquiring the pixel matrix information is small, the delay circuit can be made small.

本発明を実施するための最良の形態について、図面を用いて詳細に説明する。なお、本発明はこれら実施の形態になんら限定されるものではなく、その要旨を逸脱しない範囲において種々なる態様で実施しうる。なお、以下の実施形態と請求項の関係は次のとおりである。実施形態1は主として請求項1、などについて説明する。実施形態2は主として請求項1、2、4、5などについて説明する。実施形態3は主として請求項3、6などについて説明する。
The best mode for carrying out the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited to these embodiment at all, and can be implemented with various aspects in the range which does not deviate from the summary. In addition, the relationship between the following embodiment and a claim is as follows. The first embodiment will mainly describe claims 1 and 4 . The second embodiment will mainly describe claims 1, 2, 4, 5, and the like. The third embodiment will mainly describe claims 3 and 6 .

≪実施形態1≫(実施形態1の概念)実施形態1について説明する。図1に本実施形態における画像処理装置の概念を示す。例えば、図1(A)に示す輪郭aと輪郭bとが画像情報として得られた場合、輪郭aと輪郭bとを比較すると、aに示す輪郭の方がbに示す輪郭よりも水平に近いことが分かる。このため、輪郭aを有する画像の輪郭成分のゲイン制御量を輪郭bを有する画像の輪郭成分のゲイン制御量よりも大きくして画素マトリックス情報を修正すると、見えづらい水平に近い輪郭もはっきり見せることができ、不自然とならないように画像全体を修正することができる。   << Embodiment 1 >> (Concept of Embodiment 1) Embodiment 1 will be described. FIG. 1 shows the concept of the image processing apparatus in this embodiment. For example, when the contour a and the contour b shown in FIG. 1A are obtained as image information, when the contour a and the contour b are compared, the contour shown in a is closer to the horizontal than the contour shown in b. I understand that. For this reason, if the gain control amount of the contour component of the image having the contour a is made larger than the gain control amount of the contour component of the image having the contour b, and the pixel matrix information is corrected, a contour that is difficult to see and that is almost horizontal can be clearly seen. The entire image can be corrected so as not to be unnatural.

(実施形態1の構成)図2に本実施形態にかかる画像処理装置の機能ブロック図の一例を示す。本実施形態にかかる「画像処理装置」(0200)は、「画素マトリックス情報取得部」(0201)と、「輪郭方向情報取得部」(0202)と、「輪郭画素修正部」(0203)と、からなる。   (Configuration of First Embodiment) FIG. 2 shows an example of a functional block diagram of an image processing apparatus according to the present embodiment. The “image processing apparatus” (0200) according to the present embodiment includes a “pixel matrix information acquisition unit” (0201), a “contour direction information acquisition unit” (0202), a “contour pixel correction unit” (0203), Consists of.

(実施形態1の構成の説明)「画像処理装置」(0200)とは、静止画像や動画像などの画像の輪郭を補正する機能を有する装置である。当該画像処理装置は、輪郭補正や映像補正のみを行う回路装置であっても良いし、輪郭補正回路あるいは映像補正回路を内蔵したテレビジョン受信機や映像再生装置などであっても良い。   (Description of Configuration of Embodiment 1) An “image processing apparatus” (0200) is an apparatus having a function of correcting the contour of an image such as a still image or a moving image. The image processing apparatus may be a circuit device that performs only contour correction or video correction, or may be a television receiver or a video reproduction device that incorporates a contour correction circuit or a video correction circuit.

「画素マトリックス情報取得部」(0201)は、画素マトリックス情報を取得するように構成されている。画素マトリックスとは、n×mのマトリックス状に表された画素の集合体である。なお、n=m、かつ、nは3以上の奇数であることが望ましいが、これに限られるものではない。実施形態全体を通じて、説明の便宜上、n=m、かつ、n=3についての場合を示している。例えば、図1(A)にて示される輪郭は、各画素レベルにまで拡大すると、図1(B)のように示すことができる。図1(B)は輪郭a、輪郭bを3×3の画素マトリックスにて表したものである。そして、画素マトリックスの輝度情報や色差情報(RGB)を数値化して表したものが画素マトリックス情報である。これを図1(C)に例示する。画素マトリックス情報取得部(0201)では、このようにして画像を画素毎に数値化してn×mの画素マトリックス情報を取得する。   The “pixel matrix information acquisition unit” (0201) is configured to acquire pixel matrix information. The pixel matrix is a collection of pixels represented in an n × m matrix. Note that n = m and n is desirably an odd number of 3 or more, but is not limited thereto. Throughout the embodiment, for convenience of explanation, the case of n = m and n = 3 is shown. For example, when the contour shown in FIG. 1A is enlarged to each pixel level, it can be shown as in FIG. FIG. 1B shows the outline a and the outline b in a 3 × 3 pixel matrix. The pixel matrix information is a numerical representation of luminance information and color difference information (RGB) of the pixel matrix. This is illustrated in FIG. In the pixel matrix information acquisition unit (0201), the image is digitized in this way to acquire n × m pixel matrix information.

「輪郭方向情報取得部」(0202)は、画素マトリックス情報取得部(0201)にて取得した画素マトリックス情報から輪郭方向を示す情報である輪郭方向情報を取得するように構成されている。輪郭方向とは、輪郭の向いている方向であり、輪郭の傾斜方向や輪郭の法線の方向、暗色から明色に変化する方向などにて表すことができる。仮に暗色から明色に変化する方向が輪郭方向であるとすると、図1(A)の輪郭aや輪郭bの輪郭方向は矢印の示す方向として表すことができる。図1(A)とは別に、図3を用いて輪郭方向を導き出す一例を詳細に説明する。   The “contour direction information acquisition unit” (0202) is configured to acquire contour direction information which is information indicating the contour direction from the pixel matrix information acquired by the pixel matrix information acquisition unit (0201). The contour direction is the direction in which the contour is directed, and can be represented by the direction of inclination of the contour, the direction of the normal of the contour, the direction of changing from dark color to light color, or the like. If the direction from dark color to light color is the contour direction, the contour directions of contour a and contour b in FIG. 1A can be expressed as directions indicated by arrows. An example of deriving the contour direction will be described in detail with reference to FIG. 3 separately from FIG.

図3(A)に示すのは、図1(B)に示す輪郭a及び輪郭bの画素マトリックスから輪郭部分の画素のみをそれぞれ抽出したものである。このとき抽出した輪郭部分の画素を輪郭画素という。輪郭画素が抽出されると、これらの輪郭画素を結ぶ近似的な直線を想定し、これを直線輪郭として表す。これを図3(B)に示す。直線輪郭は、輪郭画素を最も多く通過する直線を想定することなどにより得られる。なお、可能であれば、図1(A)に示すもとの画像から直接、直線輪郭が取得しても良い。そして、基準線(0301)と直線輪郭(0302)とがなす角度θ(0≦θ<π)を算出して、基準線からの相対的な角度をなす方向として輪郭方向を導くことができる。なお、輪郭方向を算出する方法はこのような方法に限られず、実施形態2に記載する方法などを用いても良い。   FIG. 3A shows only the pixels in the contour portion extracted from the pixel matrix of the contour a and the contour b shown in FIG. The pixels of the contour portion extracted at this time are called contour pixels. When the contour pixels are extracted, an approximate straight line connecting these contour pixels is assumed and expressed as a straight contour. This is shown in FIG. A straight line contour is obtained by assuming a straight line that passes through the contour pixels most frequently. If possible, a straight contour may be obtained directly from the original image shown in FIG. Then, an angle θ (0 ≦ θ <π) formed by the reference line (0301) and the straight line outline (0302) is calculated, and the contour direction can be derived as a direction forming a relative angle from the reference line. The method for calculating the contour direction is not limited to such a method, and the method described in the second embodiment may be used.

「輪郭画素修正部」(0203)は、輪郭方向情報取得部(0202)にて取得した輪郭方向情報を用いて、前記画素マトリックス情報の輪郭画素分を修正するように構成されている。輪郭画素とは、上述の通り、輪郭部分の画素である。「画素マトリックス情報の輪郭画素分」とは、画素マトリックス情報から輪郭画素に該当する部分の値のみを抽出したものである。図1(C)の画素マトリックス情報から輪郭画素分のみを抽出したものを図1(D)に示す。   The “contour pixel correction unit” (0203) is configured to correct the contour pixel portion of the pixel matrix information using the contour direction information acquired by the contour direction information acquisition unit (0202). As described above, the contour pixel is a pixel in the contour portion. “For the contour pixel of the pixel matrix information” is obtained by extracting only the value of the portion corresponding to the contour pixel from the pixel matrix information. FIG. 1D shows a result obtained by extracting only the contour pixel from the pixel matrix information of FIG.

輪郭画素修正部(0203)では、上記輪郭方向情報取得部(0202)にて取得された輪郭方向情報より、輪郭画素の増幅量(ゲイン)制御値を算出する。ゲイン制御値Gは、例えば、上記輪郭方向情報取得部(0202)にて取得された直線輪郭と基準線との角度θを用いて、以下の算出式(式1)にて算出することができる。
(式1)
G=α×(β+|cosθ|) (α、βは定数であり、θは輪郭方向情報)
The contour pixel correction unit (0203) calculates an amplification amount (gain) control value of the contour pixel from the contour direction information acquired by the contour direction information acquisition unit (0202). The gain control value G can be calculated by, for example, the following calculation formula (Formula 1) using the angle θ between the straight line outline and the reference line acquired by the outline direction information acquisition unit (0202). .
(Formula 1)
G = α × (β + | cos θ |) (α and β are constants, and θ is contour direction information)

すなわち、画素マトリックス情報から抽出した直線輪郭が水平に近い輪郭である場合にはゲイン制御値を大きくし、直線輪郭が垂直に近い輪郭である場合にはゲイン制御値を小さくするのである。上述の輪郭方向情報取得部(0202)における基準線を水平方向としたため、上記算定式ではcos関数を用いているが、基準線が垂直方向であれば、上記算定式のcos関数の代わりにsin関数を用いる。   That is, the gain control value is increased when the straight line contour extracted from the pixel matrix information is a horizontal contour, and the gain control value is decreased when the straight line contour is a vertical contour. Since the reference line in the contour direction information acquisition unit (0202) is horizontal, the cos function is used in the calculation formula. However, if the reference line is in the vertical direction, sin is used instead of the cos function of the calculation formula. Use a function.

より具体的には、仮に、α=2、β=1とすると、
θ=0、πの場合(直線輪郭が水平の場合)、G=2×(1+1)=4
θ=π/2の場合(直線輪郭が垂直の場合)、G=2×(1+0)=2
となる。また、θの値の変化に応じてゲイン制御値Gは2<G<4の範囲で変化する。
More specifically, if α = 2 and β = 1,
When θ = 0 and π (when the straight line contour is horizontal), G = 2 × (1 + 1) = 4
When θ = π / 2 (when the straight contour is vertical), G = 2 × (1 + 0) = 2
It becomes. Further, the gain control value G changes in the range of 2 <G <4 according to the change in the value of θ.

ここで、同様にして図3に示す輪郭a、輪郭bの画素マトリックス情報のゲイン制御値を算出すると、次のようになる。輪郭a、輪郭bが基準線となす角をそれぞれθa、θbとし、θa=3π/4、θb=2π/3とすると、ゲイン制御値Ga、Gbは次のように算出される。
Ga=2×(1+|cos(3π/4)|)≒3.4
Gb=2×(1+|cos(2π/3)|)=3.0
この算出されたゲイン制御値Ga,Gbによって図1に示す輪郭a、輪郭bの画素マトリックス情報の輪郭画素分を修正する。これを図1(E)に示す。図1(E)に示すように、図1(D)の輪郭aの輪郭画素分の各数値をゲイン制御値Gaにより、3.4倍に修正する。同様に、輪郭bの輪郭画素の各数値をゲイン制御値Gbにより、3.0倍に修正する。この得られた輪郭画素の各数値を、図1(C)で示される画素マトリックス情報の各数値に加算すると、図1(F)に示すように、輪郭画素分が強調された画素マトリックス情報を得ることができる。
Here, the gain control values of the pixel matrix information of the contour a and the contour b shown in FIG. 3 are calculated in the same manner as follows. When the angles formed by the contour a and the contour b with the reference lines are θa and θb, respectively, and θa = 3π / 4 and θb = 2π / 3, the gain control values Ga and Gb are calculated as follows.
Ga = 2 × (1+ | cos (3π / 4) |) ≈3.4
Gb = 2 × (1+ | cos (2π / 3) |) = 3.0
The calculated gain control values Ga and Gb correct the contour pixel portion of the pixel matrix information of the contour a and the contour b shown in FIG. This is shown in FIG. As shown in FIG. 1E, each numerical value for the contour pixel of the contour a in FIG. 1D is corrected to 3.4 times by the gain control value Ga. Similarly, each numerical value of the contour pixel of the contour b is corrected to 3.0 times by the gain control value Gb. When the numerical values of the obtained contour pixels are added to the numerical values of the pixel matrix information shown in FIG. 1C, pixel matrix information in which the contour pixels are emphasized is obtained as shown in FIG. Obtainable.

なお、上記例では、輪郭画素分の強調量を明確にするためにα=2としたが、ゲイン制御値Ga、Gbが、2%から7%の大きさになる様な値にα、βを設定することが望ましい。これは、一般的な輪郭補正回路では、加算する輪郭成分が入力信号レベルの2%から7%の大きさになるように補正が行われるためである。なお、上記例では、例えば、α=0.02、β=1とすることで輪郭画素分の強調量が上記範囲を満たすゲイン制御値Ga、Gbを設定することが可能である。   In the above example, α = 2 is set in order to clarify the enhancement amount for the contour pixel, but α, β are set to values such that the gain control values Ga and Gb are 2% to 7%. It is desirable to set This is because a general contour correction circuit performs correction so that the contour component to be added is 2% to 7% of the input signal level. In the above example, for example, by setting α = 0.02 and β = 1, it is possible to set the gain control values Ga and Gb in which the enhancement amount for the contour pixel satisfies the above range.

(実施形態1の具体例)図4に本実施形態における画像処理装置を実現するための具体的な輪郭補正回路(0400)を示している。図4に示す輪郭補正回路(0400)は、入力画像を遅延させて1ライン毎の画素に出力するラインメモリ(0401)と、ラインメモリ(0401)からの出力からn×nの画素マトリックス情報を取得する画素マトリックス情報取得回路(0402)と、画素マトリックス情報のうち、輪郭画素分のみを抽出する輪郭抽出回路(0403)と、画素マトリックス情報から輪郭方向情報を取得する輪郭方向情報取得回路(0404)と、輪郭方向情報からゲイン制御値を算出する輪郭制御回路(0405)と、輪郭制御回路より算出されたゲイン制御値により、画素マトリックス情報の輪郭画素を修正する修正回路(0406)と、修正回路にて修正された輪郭をコアリングするコアリング回路(0407)と、ラインメモリからの画素を遅延させる遅延回路(0408)と、コアリング回路(0407)より出力された修正された輪郭画素と遅延回路(0408)より出力された画素とを加算する加算回路(0409)とからなる。   (Specific Example of Embodiment 1) FIG. 4 shows a specific contour correction circuit (0400) for realizing the image processing apparatus according to this embodiment. The contour correction circuit (0400) shown in FIG. 4 delays the input image and outputs the line memory (0401) to the pixels for each line, and the n × n pixel matrix information from the output from the line memory (0401). A pixel matrix information acquisition circuit (0402) to be acquired, a contour extraction circuit (0403) that extracts only the contour pixel of the pixel matrix information, and a contour direction information acquisition circuit (0404) that acquires contour direction information from the pixel matrix information ), A contour control circuit (0405) for calculating the gain control value from the contour direction information, a correction circuit (0406) for correcting the contour pixel of the pixel matrix information by the gain control value calculated by the contour control circuit, A coring circuit (0407) for coring the contour corrected by the circuit, and a pixel from the line memory A delay circuit (0408) to cast, consisting of an adder circuit for adding the pixel output from the coring circuit (0407) and modified contour pixels output from the delay circuit (0408) (0409).

図2に示す画像処理装置(0200)の機能ブロックと上記輪郭補正回路(0400)とは、次の通り対応している。画素マトリックス情報取得部(0201)は、ラインメモリ(0401)と画素マトリックス取得回路(0402)とに対応する。輪郭方向情報取得部(0202)は、輪郭方向情報取得回路(0404)に対応する。輪郭画素修正部(0203)は、輪郭抽出回路(0403)と輪郭制御回路(0405)と修正回路(0406)と遅延回路(0408)と加算回路(0409)に対応する。なお、輪郭画素修正部にコアリング回路(0407)を含めても良い。なお、これらは本実施形態の画像処理装置を実現するための一形態に過ぎず、本実施形態の構成要件を備える限り他の同様の回路にて実現しても良い。以下にこれらの回路の動作について説明する。   The functional blocks of the image processing apparatus (0200) shown in FIG. 2 correspond to the contour correction circuit (0400) as follows. The pixel matrix information acquisition unit (0201) corresponds to the line memory (0401) and the pixel matrix acquisition circuit (0402). The contour direction information acquisition unit (0202) corresponds to the contour direction information acquisition circuit (0404). The contour pixel correction unit (0203) corresponds to a contour extraction circuit (0403), a contour control circuit (0405), a correction circuit (0406), a delay circuit (0408), and an addition circuit (0409). Note that a coring circuit (0407) may be included in the contour pixel correction unit. Note that these are merely forms for realizing the image processing apparatus of the present embodiment, and may be realized by other similar circuits as long as the configuration requirements of the present embodiment are provided. The operation of these circuits will be described below.

映像信号がラインメモリ(0401)に入力されると、ラインメモリ(0401)では1ラインごとに映像信号を遅延させて出力する。ラインメモリ(0401)からの出力は、輪郭抽出回路(0403)、画素マトリックス情報取得回路(0402)、遅延回路(0408)に出力される。画素マトリックス情報が3×3のマトリックスにて表される情報であれば、図4に示すように、輪郭抽出回路(0403)及び画素マトリックス情報取得回路(0402)には、3ライン分の画素情報が入力される。画素マトリックス情報取得回路(0402)では、入力された画素情報の輝度情報や色差情報から画素マトリックス情報を取得し、これを出力する。輪郭抽出回路(0403)では、画素マトリックス情報のうち、輪郭画素分のみを抽出する。輪郭抽出回路(0402)は、ラインメモリ(0401)からの直接入力としているが、画素マトリックス情報取得回路(0403)からの入力としても良い。輪郭方向情報取得回路(0404)では、入力された画素マトリックス情報にて表される直線輪郭と基準線とがなす角から輪郭方向情報を取得し、出力する。なお、輪郭方向情報は、輪郭抽出回路(0402)にて抽出された輪郭画素から輪郭方向情報を取得しても良い(図4中破線で示す)し、他の方法により取得することとしても良い。輪郭制御回路(0405)では、輪郭方向情報取得回路(0404)からの輪郭方向情報が入力されると、輪郭を修正するためのゲイン制御値を算出して出力する。修正回路(0406)では、輪郭抽出回路(0403)から出力された画素マトリックス情報の輪郭画素分に、輪郭制御回路(0405)から出力されたゲイン制御値を乗算することで画素マトリックス情報の輪郭画素分を修正する。   When the video signal is input to the line memory (0401), the line memory (0401) delays and outputs the video signal for each line. The output from the line memory (0401) is output to the contour extraction circuit (0403), the pixel matrix information acquisition circuit (0402), and the delay circuit (0408). If the pixel matrix information is information represented by a 3 × 3 matrix, as shown in FIG. 4, the contour extraction circuit (0403) and the pixel matrix information acquisition circuit (0402) have pixel information for three lines. Is entered. The pixel matrix information acquisition circuit (0402) acquires pixel matrix information from the luminance information and color difference information of the input pixel information, and outputs this. The contour extraction circuit (0403) extracts only the contour pixels from the pixel matrix information. The contour extraction circuit (0402) is directly input from the line memory (0401), but may be input from the pixel matrix information acquisition circuit (0403). The contour direction information acquisition circuit (0404) acquires the contour direction information from the angle formed by the straight line contour represented by the input pixel matrix information and the reference line, and outputs it. The contour direction information may be acquired from the contour pixels extracted by the contour extraction circuit (0402) (indicated by a broken line in FIG. 4) or may be acquired by another method. . When the contour direction information is input from the contour direction information acquisition circuit (0404), the contour control circuit (0405) calculates and outputs a gain control value for correcting the contour. The correction circuit (0406) multiplies the contour pixel of the pixel matrix information output from the contour extraction circuit (0403) by the gain control value output from the contour control circuit (0405) to thereby obtain the contour pixel of the pixel matrix information. Correct the minutes.

修正された画素マトリックス情報の輪郭画素分は、コアリング回路(0407)に入力される。コアリング回路(0407)には、図5に示すように、不感帯δ(0501)が設けられており、この不感帯δの範囲の入力信号に対する出力信号を0とする。なお、図5は、横軸に輪郭画素の輪郭強度を示し、縦軸に輪郭画素の出力を示す。一定以上の輪郭強度を有さない輪郭画素は、本来、輪郭を形成するものではない可能性が高いため、このような画素マトリックス情報の輪郭画素は強調すべきではない。このため、コアリング回路にて、輪郭を形成しないノイズ成分を除去することができる。なお、輪郭強度は、数値化された輝度情報などの値の和や最大値を用いて示すことができるが、具体的な算出方法は実施形態3において詳説する。コアリング回路(0407)から出力された画素マトリックス情報の輪郭画素は、遅延回路(0408)にて遅延されたもとの画像に加算することにより、輪郭部分が修正された映像信号を出力することができる。なお、遅延回路(0408)についても、輪郭抽出回路(0402)と同様にラインメモリ(0401)からの直接入力としているが、画素マトリックス情報取得回路(0403)からの入力としても良い。   The corrected pixel matrix information corresponding to the contour pixel is input to the coring circuit (0407). As shown in FIG. 5, the coring circuit (0407) is provided with a dead zone δ (0501), and an output signal corresponding to an input signal in the range of the dead zone δ is set to zero. In FIG. 5, the horizontal axis indicates the contour intensity of the contour pixel, and the vertical axis indicates the output of the contour pixel. Since a contour pixel that does not have a certain contour strength is not likely to form a contour, the contour pixel in such pixel matrix information should not be emphasized. For this reason, the noise component which does not form an outline can be removed in the coring circuit. The contour strength can be indicated by using the sum of values such as digitized luminance information or the maximum value, and a specific calculation method will be described in detail in the third embodiment. By adding the contour pixels of the pixel matrix information output from the coring circuit (0407) to the original image delayed by the delay circuit (0408), it is possible to output a video signal in which the contour portion is corrected. . The delay circuit (0408) is also directly input from the line memory (0401) similarly to the contour extraction circuit (0402), but may be input from the pixel matrix information acquisition circuit (0403).

(実施形態1の処理の流れ)本実施形態における輪郭補正方法の処理の基本的な流れを図6の処理フローに示す。本実施形態における輪郭補正方法では、まず、映像信号より輝度や色差に応じて数値化したn×nの画素マトリックス情報を取得する(S0601:画素マトリックス情報取得ステップ)。次に、取得した画素マトリックス情報から、輪郭の方向を示す輪郭方向情報を取得する(S0602:輪郭方向情報取得ステップ)。輪郭方向情報を取得すると、取得した画素マトリックス情報の輪郭画素分を修正するためのゲイン制御値を輪郭方向情報に応じて算出し、算出したゲイン制御値に基づいて取得した画素マトリックス情報の輪郭画素分を修正する(S0603:輪郭画素修正ステップ)。このようにして、輪郭画素を強調するように修正した画像を生成することができる。   (Processing Flow of Embodiment 1) The basic processing flow of the contour correction method in this embodiment is shown in the processing flow of FIG. In the contour correction method according to the present embodiment, first, n × n pixel matrix information digitized according to luminance and color difference is acquired from a video signal (S0601: pixel matrix information acquisition step). Next, contour direction information indicating the direction of the contour is acquired from the acquired pixel matrix information (S0602: contour direction information acquisition step). When the contour direction information is acquired, a gain control value for correcting the contour pixel portion of the acquired pixel matrix information is calculated according to the contour direction information, and the contour pixel of the pixel matrix information acquired based on the calculated gain control value The minute is corrected (S0603: contour pixel correcting step). In this way, it is possible to generate an image modified so as to emphasize the contour pixels.

(実施形態1の効果)以上のような構成をとる本実施形態の画像処理装置では、画素マトリックス情報から輪郭方向情報を取得して、輪郭方向情報に応じた輪郭補正を行うことができる。このため、輪郭が水平に近い輪郭成分のゲイン制御量を大きくすることで補正後の映像の輪郭が不自然になることを防止することができる。   (Effect of Embodiment 1) In the image processing apparatus of this embodiment having the above-described configuration, it is possible to acquire contour direction information from pixel matrix information and perform contour correction according to the contour direction information. For this reason, it is possible to prevent the contour of the corrected image from becoming unnatural by increasing the gain control amount of the contour component whose contour is almost horizontal.

≪実施形態2≫(実施形態2の概念)本実施形態における画像処理装置は、実施形態1の画像処理装置を基本とし、輪郭方向情報取得部における輪郭方向情報取得方法に特徴を有する。本実施形態の輪郭方向情報取得部は、所定の輪郭方向パターンを複数用意し、映像信号の輪郭がいずれの輪郭方向パターンと感応するかを判断することにより、輪郭方向を決定する。さらに、取得した輪郭方向情報に基づいて、輪郭画素を水平方向と垂直方向とに分けてゲイン制御することを特徴とする。   << Embodiment 2 >> (Concept of Embodiment 2) An image processing apparatus according to this embodiment is based on the image processing apparatus according to Embodiment 1, and is characterized by a contour direction information acquisition method in a contour direction information acquisition unit. The contour direction information acquisition unit of the present embodiment prepares a plurality of predetermined contour direction patterns and determines the contour direction by determining which contour direction pattern the contour of the video signal is sensitive to. Furthermore, the gain control is performed by dividing the contour pixel into the horizontal direction and the vertical direction based on the acquired contour direction information.

(実施形態2の構成)図7に本実施形態にかかる画像処理装置の機能ブロック図の一例を示す。本実施形態にかかる「画像処理装置」(0700)は、「画素マトリックス情報取得部」(0701)と、「輪郭方向情報取得部」(0702)と、「輪郭画素修正部」(0703)と、からなり、輪郭方向情報取得部(0702)が、「係数マトリックス保持手段」(0704)と、「感応結果取得手段」(0705)と、「輪郭方向情報取得手段」(0706)とを備え、輪郭画素修正部(0703)が、「垂直水平輪郭修正情報取得手段」(0707)と、「修正済垂直輪郭画素情報取得手段」(0708)と、「修正済水平輪郭画素情報取得手段」(0709)と、「修正済輪郭画素情報生成手段」(0710)とを備えることを特徴とする。「画素マトリックス情報取得部」(0701)については既に実施形態1にて説明済みであるため説明を省略する。   (Configuration of Second Embodiment) FIG. 7 shows an example of a functional block diagram of an image processing apparatus according to this embodiment. The “image processing apparatus” (0700) according to the present embodiment includes a “pixel matrix information acquisition unit” (0701), a “contour direction information acquisition unit” (0702), a “contour pixel correction unit” (0703), The contour direction information acquisition unit (0702) includes “coefficient matrix holding means” (0704), “sensitivity result acquisition means” (0705), and “contour direction information acquisition means” (0706). The pixel correction unit (0703) includes “vertical horizontal contour correction information acquisition unit” (0707), “corrected vertical contour pixel information acquisition unit” (0708), and “corrected horizontal contour pixel information acquisition unit” (0709). And “corrected contour pixel information generating means” (0710). Since the “pixel matrix information acquisition unit” (0701) has already been described in the first embodiment, the description thereof is omitted.

(実施形態2の構成の説明)「係数マトリックス保持手段」(0704)は、画素マトリックス情報の輪郭方向に感応する係数マトリックスを輪郭方向パターン種分保持する手段である。「輪郭方向パターン」とは、輪郭方向を類別するための基本的な輪郭の形である。例えば、図8(1)に8方向の輪郭方向を表す輪郭方向パターンA乃至Hを例示する。図8(1)に示す輪郭方向パターンは、A:上方向(0801)、B:左上方向(0802)、C:左方向(0803)、D:左下方向(0804)、E:下方向(0805)、F:右下方向(0806)、G:右方向(0807)、H:右上方向(0808)の8方向の輪郭方向を表している。輪郭方向パターンは、さらに細かい複数の輪郭方向パターンを用意しても良い。「画素マトリックス情報の輪郭方向に感応する係数マトリックス」とは、画素マトリックス情報の輪郭方向に応じて一意の感応結果を取得できるように定められたマトリックス状の係数である。係数マトリックス情報は、輪郭方向パターンに対応させて、輪郭方向パターンの種類数と同数用意する。図8(1)A乃至Hの輪郭方向パターンに対応した係数マトリックスを図8(2)A’乃至H’に示す。係数マトリックス保持手段(0704)では、これらの輪郭方向パターン種分の係数マトリックスを保持する。係数マトリックスは、所定の輪郭方向パターンと対応しており、画素マトリックス情報がいずれの輪郭方向パターンに近い輪郭方向であるかが、画素マトリックス情報と係数マトリックスとの感応結果に反映される。   (Explanation of Configuration of Embodiment 2) “Coefficient matrix holding means” (0704) is means for holding a coefficient matrix corresponding to the outline direction of pixel matrix information for the contour direction pattern type. The “contour direction pattern” is a basic contour shape for classifying the contour direction. For example, FIG. 8A illustrates contour direction patterns A to H representing eight contour directions. The contour direction patterns shown in FIG. 8A are: A: upward direction (0801), B: upper left direction (0802), C: left direction (0803), D: lower left direction (0804), E: lower direction (0805). ), F: Lower right direction (0806), G: Right direction (0807), H: Upper right direction (0808). As the contour direction pattern, a plurality of finer contour direction patterns may be prepared. The “coefficient matrix that is sensitive to the contour direction of the pixel matrix information” is a matrix-like coefficient determined so that a unique sensitivity result can be acquired according to the contour direction of the pixel matrix information. The same number of coefficient matrix information as the number of types of contour direction patterns is prepared in correspondence with the contour direction patterns. A coefficient matrix corresponding to the contour direction patterns of FIGS. 8A to 8H is shown in FIGS. The coefficient matrix holding means (0704) holds coefficient matrices for these contour direction pattern types. The coefficient matrix corresponds to a predetermined contour direction pattern, and which contour direction pattern the pixel matrix information is close to is reflected in the sensitivity result of the pixel matrix information and the coefficient matrix.

「感応結果取得手段」(0705)は、取得した画素マトリックス情報に対する前記保持されている係数マトリックスとの感応結果を取得する手段である。感応結果取得手段(0705)にて感応結果を取得する方法を、図9、図10を用いて以下に具体的に述べる。   "Sensitivity result acquisition means" (0705) is a means for acquiring a sensitivity result with the held coefficient matrix for the acquired pixel matrix information. A method of acquiring the sensitivity result by the sensitivity result acquisition means (0705) will be specifically described below with reference to FIGS.

図9(1)に示す輪郭c、輪郭dについて、画素マトリックスを取得すると、図9(2)に示すように表される。この画素マトリックスから画素マトリックス情報を取得すると、図9(3)のように表される。次に、これらの画素マトリックス情報と、図8(2)(A’)〜(H’)に示すそれぞれの係数マトリックス情報との対応関係にある位置の数値の乗算を行う。例えば、図9(3)の輪郭cの画素マトリックス情報と図8(1)の輪郭方向パターンA(0801)に対応した係数マトリックスA’との乗算結果は、図10(1)に示す通りとなる。さらに、乗算によって得られたマトリックス状に得られる数値を全て加算すると、輪郭cの該画素マトリックス情報(0901)と輪郭方向パターンA(0801)の係数マトリックスA’との感応結果を取得することができる。図10(1)の乗算結果を全て加算すると、合計140となり、該画素マトリックス情報(0901)と係数マトリックスA’との感応結果は140と算出される。同様にして、該画素マトリックス情報(0901)と全ての輪郭方向パターン種(0801〜0808)の係数マトリックスとの感応結果を取得する。これを図10(2)に示す。係数マトリックスは、輪郭方向パターンに対応して設定されているため、取得された計算結果の数値が高い輪郭方向パターンほど感応結果が高い輪郭方向パターンとなる。図10(2)に示すとおり、図9の輪郭cの画素マトリックス情報は、輪郭方向パターンH(0808)の係数マトリックスH’との感応結果が最も高いことが分かる。   When the pixel matrix is acquired for the contour c and the contour d shown in FIG. 9A, it is expressed as shown in FIG. 9B. When pixel matrix information is acquired from this pixel matrix, it is represented as shown in FIG. Next, the pixel matrix information is multiplied by a numerical value at a position corresponding to the corresponding coefficient matrix information shown in (2) (A ′) to (H ′) of FIG. For example, the multiplication result of the pixel matrix information of the contour c in FIG. 9 (3) and the coefficient matrix A ′ corresponding to the contour direction pattern A (0801) in FIG. 8 (1) is as shown in FIG. 10 (1). Become. Furthermore, by adding all the numerical values obtained in a matrix obtained by multiplication, it is possible to obtain a sensitivity result between the pixel matrix information (0901) of the contour c and the coefficient matrix A ′ of the contour direction pattern A (0801). it can. When all the multiplication results in FIG. 10A are added, a total of 140 is obtained, and the sensitivity result between the pixel matrix information (0901) and the coefficient matrix A ′ is calculated as 140. Similarly, the sensitivity results of the pixel matrix information (0901) and the coefficient matrix of all the contour direction pattern types (0801 to 0808) are acquired. This is shown in FIG. Since the coefficient matrix is set in correspondence with the contour direction pattern, the contour direction pattern having a higher numerical value of the obtained calculation result becomes a contour direction pattern having a higher sensitivity result. As shown in FIG. 10B, it can be seen that the pixel matrix information of the contour c in FIG. 9 has the highest sensitivity result with the coefficient matrix H ′ of the contour direction pattern H (0808).

同様にして、例えば、図9(3)に示す輪郭dの画素マトリックス情報(0902)と係数マトリックスA’乃至H’との感応結果は、図11(1)のように算出される。図11(1)に示すように、各係数マトリックスと感応結果が最も高い輪郭方向パターンは、輪郭方向パターンGと輪郭方向パターンHであり、同値となっている。このため、輪郭の方向は輪郭方向パターンGと輪郭方向パターンHとの間の輪郭方向を示しているものと判断することができる。   Similarly, for example, the sensitivity results of the pixel matrix information (0902) of the contour d shown in FIG. 9 (3) and the coefficient matrices A ′ to H ′ are calculated as shown in FIG. 11 (1). As shown in FIG. 11 (1), the contour direction patterns having the highest sensitivity results with the respective coefficient matrices are the contour direction pattern G and the contour direction pattern H, which have the same value. Therefore, it can be determined that the contour direction indicates the contour direction between the contour direction pattern G and the contour direction pattern H.

「輪郭方向情報取得手段」(0706)は、感応結果取得手段(0705)にて取得した感応結果に応じて、画素マトリックス情報取得部(0701)にて取得した画素マトリックス情報に対応する輪郭方向情報を取得する手段である。例えば、上記図10(2)に示す感応結果が感応結果取得手段(0705)にて取得された場合には、8種類の輪郭方向パターンのうち、輪郭方向パターンH(0808)の係数マトリックスが最も感応結果が高いことが分かる。このため、輪郭方向情報取得手段(0706)では、図9に示す輪郭cの画素マトリックス情報(0901)は輪郭方向パターンH(0808)で示される方向を有した輪郭であるとの輪郭方向情報を取得することができる。図8(1)A乃至Hに示す輪郭方向パターンの直線輪郭が基準線に対してなす角度をそれぞれ定めておけば、実施形態1に記載した方法と同様の方法にて画素マトリックス情報の輪郭画素を輪郭画素修正部(0703)にて修正することができる。また、以下に記載する構成により、画素マトリックス情報の輪郭画素分の修正を行うこととしても良い。   The “contour direction information acquisition unit” (0706) corresponds to the contour direction information corresponding to the pixel matrix information acquired by the pixel matrix information acquisition unit (0701) in accordance with the sensitivity result acquired by the sensitivity result acquisition unit (0705). It is a means to acquire. For example, when the sensitivity result shown in FIG. 10 (2) is acquired by the sensitivity result acquisition means (0705), the coefficient matrix of the contour direction pattern H (0808) is the most among the eight types of contour direction patterns. It can be seen that the sensitivity results are high. Therefore, the contour direction information acquisition unit (0706) obtains the contour direction information indicating that the pixel matrix information (0901) of the contour c shown in FIG. 9 is a contour having the direction indicated by the contour direction pattern H (0808). Can be acquired. If the angles formed by the straight line contours of the contour direction patterns shown in FIGS. 8A to 8H with respect to the reference line are respectively determined, the contour pixels of the pixel matrix information are obtained by the same method as that described in the first embodiment. Can be corrected by the contour pixel correction unit (0703). Moreover, it is good also as correcting the outline pixel of pixel matrix information with the structure described below.

「垂直水平輪郭修正情報取得手段」(0707)は、取得した輪郭方向情報に基づいて、垂直方向の輪郭修正量を示す垂直輪郭修正情報と、水平方向の輪郭修正量を示す水平輪郭修正情報を取得する手段である。輪郭修正量とは、輪郭部分の画素を強調するための増幅量(ゲイン制御量)である。本実施形態の輪郭画素修正部(0703)では、垂直輪郭修正情報と水平輪郭修正情報とに応じて、輪郭画素を垂直方向と水平方向とに分けて修正することを特徴とする。以下に、垂直輪郭画素修正情報と水平輪郭画素修正情報の算出方法を示す。   The “vertical horizontal contour correction information acquisition means” (0707), based on the acquired contour direction information, obtains vertical contour correction information indicating the vertical contour correction amount and horizontal contour correction information indicating the horizontal contour correction amount. It is a means to acquire. The contour correction amount is an amplification amount (gain control amount) for emphasizing the pixels in the contour portion. The contour pixel correction unit (0703) of the present embodiment is characterized in that the contour pixels are corrected separately in the vertical direction and the horizontal direction according to the vertical contour correction information and the horizontal contour correction information. Below, the calculation method of vertical outline pixel correction information and horizontal outline pixel correction information is shown.

水平輪郭画素修正情報をG、垂直輪郭画素修正情報をG、とすると、G、Gは以下の算定式(式2)、(式3)により算出される。
(式2)
=α×k
(式3)
=β×(1−k)
(ここで、α、βは定数、kは輪郭方向情報に応じて定められる値)
水平方向の輪郭と垂直方向の輪郭とでは、水平方向の輪郭の方が見えにくいことは既に述べたとおりである。このため、水平方向の輪郭をより強調するため、ゲイン制御量が大きくなるように、α>βとすることが望ましい。また、kは0≦k≦1の範囲で輪郭方向情報に応じて定められる値である。すなわち、輪郭が水平方向と垂直方向のどちらに傾倒しているかに応じて定められる値である。kの定め方は次の通りである。
If the horizontal contour pixel correction information is G h and the vertical contour pixel correction information is G v , then G h and G v are calculated by the following calculation formulas (Formula 2) and (Formula 3).
(Formula 2)
G h = α × k
(Formula 3)
G v = β × (1−k)
(Where α and β are constants, and k is a value determined according to contour direction information)
As described above, the horizontal outline and the vertical outline are less visible in the horizontal outline. For this reason, in order to further emphasize the contour in the horizontal direction, it is desirable to satisfy α> β so that the gain control amount is increased. K is a value determined in accordance with the contour direction information in the range of 0 ≦ k ≦ 1. That is, the value is determined according to whether the contour is tilted in the horizontal direction or the vertical direction. The method of determining k is as follows.

例えば、図8に示す8パターンの輪郭方向パターンは、さらに、水平方向輪郭、垂直方向輪郭、垂直方向輪郭と水平方向輪郭の中間の輪郭(斜め45度方向の輪郭)、の3パターンに大別することができる。修正する輪郭は、水平方向に近い輪郭ほど強調して修正する必要があるから、大別した3パターンにそれぞれkの値を次のように割り振る。
水平方向輪郭(輪郭方向パターンA、E)・・・k=1
垂直方向輪郭(輪郭方向パターンC、G)・・・k=0
斜め45度方向の輪郭(輪郭方向パターンB、D、F、H)・・・k=0.5
For example, the eight contour direction patterns shown in FIG. 8 are further roughly divided into three patterns: a horizontal contour, a vertical contour, and an intermediate contour between the vertical contour and the horizontal contour (an oblique 45-degree contour). can do. Since the contour to be corrected needs to be emphasized and corrected as the contour is closer to the horizontal direction, the value of k is assigned to each of the three broadly divided patterns as follows.
Horizontal contour (contour direction patterns A and E)... K = 1
Vertical contour (contour direction pattern C, G)... K = 0
Diagonal 45 ° contour (contour direction patterns B, D, F, H)... K = 0.5

上記の通り、輪郭方向情報取得手段にて輪郭方向パターンH(0808)にて示される輪郭方向情報が取得された場合には、k=0.5と定めることができる。そして、仮にα=4、β=2とすると、(式2)、(式3)より、水平輪郭画素修正情報G=2、垂直輪郭画素修正情報G=1、と、水平方向の輪郭と垂直方向の輪郭の修正情報を取得することができる。 As described above, when the contour direction information indicated by the contour direction pattern H (0808) is acquired by the contour direction information acquisition unit, k = 0.5 can be determined. If α = 4 and β = 2, the horizontal contour pixel correction information G h = 2 and the vertical contour pixel correction information G v = 1 are obtained from (Equation 2) and (Equation 3). And correction information of the vertical outline can be acquired.

なお、上記例では、説明上、輪郭画素分の強調量を明確にするためにα=4、β=2としたが、水平輪郭画素修正情報Gと垂直輪郭画素修正情報Gとを加算した値が、2%から7%の大きさになる様な値にα、βを設定することが望ましい。なお、上記例では、例えば、α=0.04、β=0.02とすることで、輪郭画素分の強調量が上記範囲を満たすゲイン制御値G、Gを設定することが可能である。 In the above example, α = 4 and β = 2 are set for clarity in order to clarify the amount of enhancement for the contour pixels. However, the horizontal contour pixel correction information Gh and the vertical contour pixel correction information Gv are added. It is desirable to set α and β to values such that the obtained values are 2% to 7%. In the above example, for example, by setting α = 0.04 and β = 0.02, it is possible to set the gain control values G h and G v in which the enhancement amount for the contour pixel satisfies the above range. is there.

また、図9の輪郭dについても、同様にしてkの値を求めることができる。輪郭dの画素マトリックス情報は、図11(1)に示すように、輪郭方向パターンGと輪郭方向パターンHの感応結果が同値である。したがって、輪郭dは、輪郭方向パターンGと輪郭方向パターンHの中間の輪郭であることが分かる。このため、輪郭方向パターンGの場合のkの値と輪郭方向パターンHの場合のkの値の平均値であるk=0.25と定めることができる。   Further, the value of k can be similarly obtained for the contour d in FIG. In the pixel matrix information of the contour d, the sensitivity results of the contour direction pattern G and the contour direction pattern H are the same as shown in FIG. Therefore, it can be seen that the contour d is an intermediate contour between the contour direction pattern G and the contour direction pattern H. For this reason, it can be determined that k = 0.25 which is an average value of the value k in the case of the contour direction pattern G and the value k in the case of the contour direction pattern H.

さらに、画素マトリックス情報の値によっては、同値ではない突出した感応結果を示す輪郭方向パターンが2以上出現する可能性がある。例えば、図11(2)に示すように、輪郭方向パターンGが最も感応結果が高いものの、僅差で輪郭方向パターンHについても突出した感応結果となる場合が考えられる。このときの輪郭方向パターンG、輪郭方向パターンHのそれぞれの感応結果をM、Mとすると、以下の(式4)によってkの値を算出することができる。
(式4)
k=Mg×K/(Mg+M)+M×K/(Mg+M
ここで、Kは輪郭方向パターンGに割り当てられたkの値(=0)を示し、Kは輪郭方向パターンHに割り当てられたkの値(=0.5)を示している。上記(式4)に輪郭方向パターンGの感応結果260と輪郭方向パターンHの感応結果240を代入すると、k=0.4と定めることができる。
Furthermore, depending on the value of the pixel matrix information, there may be two or more contour direction patterns that indicate a protruding sensitive result that is not the same value. For example, as shown in FIG. 11 (2), although the contour direction pattern G has the highest sensitivity result, there may be a case where the sensitivity result is also prominent with respect to the contour direction pattern H. Assuming that the respective sensitivity results of the contour direction pattern G and the contour direction pattern H at this time are M G and MH , the value of k can be calculated by the following (Equation 4).
(Formula 4)
k = Mg × K G / (Mg + M H ) + M H × K H / (Mg + M H )
Here, K G represents a value (= 0) k assigned to the contour direction pattern G, K H represents the value of k assigned to the contour direction pattern H (= 0.5). If the sensitivity result 260 of the contour direction pattern G and the sensitivity result 240 of the contour direction pattern H are substituted into the above (Equation 4), k = 0.4 can be determined.

さらに、感応結果が高い輪郭方向パターンが3以上出現した場合や、感応結果が突出した輪郭方向パターンが出現しなかった場合には、輪郭の方向を特定することが困難であり、明確な輪郭が存在しない可能性が高いため、輪郭の修正を行わないようにすることもできる。この場合には、kの値に関わらず、G=G=0としても良い。なお、感応結果が突出した値であるか否かは、所定の閾値を定めることで判断することができる。例えば、感応結果の値が全て100未満の場合には、突出した輪郭方向パターンが存在しないと判断する。また、最も感応結果が高い輪郭方向パターンの値と、3番目に高い感応結果の値との差が、50以内であれば、突出した輪郭方向パターンが存在しないと判断するなどしても良い。なお、これらの数値は例示であり、修正する輪郭や映像の種類等に応じて適宜設定する必要がある。 Furthermore, when three or more contour direction patterns with high sensitivity results appear, or when no contour direction pattern with sensitive results appears, it is difficult to specify the direction of the contour, and a clear contour is present. Since there is a high possibility that it does not exist, it is possible to prevent the outline from being corrected. In this case, G h = G v = 0 may be used regardless of the value of k. Whether or not the sensitivity result is a prominent value can be determined by setting a predetermined threshold value. For example, if the values of the sensitivity results are all less than 100, it is determined that there is no protruding contour direction pattern. Further, if the difference between the value of the contour direction pattern having the highest sensitivity result and the value of the third highest sensitivity result is within 50, it may be determined that there is no protruding contour direction pattern. These numerical values are merely examples, and need to be set as appropriate according to the contour to be corrected, the type of video, and the like.

「修正済垂直輪郭画素情報取得手段」(0708)は、垂直輪郭修正情報を用いて前記画素マトリックス情報の垂直方向の輪郭画素分を修正して修正済み垂直輪郭画素情報を取得する手段である。「垂直方向の輪郭画素」とは、画素マトリックスのうち、垂直方向(列方向)に抽出した輪郭画素である。これを垂直輪郭画素とする。「垂直方向の輪郭画素分」とは、垂直輪郭画素を輝度情報、色差情報などにより数値化したものである。すなわち、画素マトリックス情報のうち、垂直輪郭画素に該当する部分が垂直方向の輪郭画素分に当たる。図9に示す輪郭cの画素マトリックス情報(0901)から、垂直輪郭画素分を抽出した場合を図12(1)に示す。図12(1)に示すように、3×3の画素マトリックス情報からは3つの垂直方向の輪郭画素分a、b、cを抽出することができる。修正済垂直輪郭画素情報取得手段では、垂直水平輪郭修正情報取得手段(0707)にて取得された垂直輪郭修正情報を、この垂直輪郭画素分の各数値に乗算することで垂直輪郭画素を修正する。上記の通り、垂直輪郭修正情報G=1である場合には、図12(1)に示す垂直輪郭画素は垂直輪郭修正情報によりゲイン制御されて垂直方向の輪郭画素分a、b、cは、図12(2)に示すように輪郭画素分a’、b’、c’に修正される。なお、この場合には、G=1であるから数値上、値は変更されていない。 The “corrected vertical contour pixel information acquisition unit” (0708) is a unit that acquires the corrected vertical contour pixel information by correcting the vertical contour pixel portion of the pixel matrix information using the vertical contour correction information. “Vertical pixels in the vertical direction” are contour pixels extracted in the vertical direction (column direction) from the pixel matrix. This is a vertical contour pixel. “Vertical contour pixels” is a value obtained by digitizing vertical contour pixels based on luminance information, color difference information, and the like. That is, the portion corresponding to the vertical contour pixel in the pixel matrix information corresponds to the vertical contour pixel. FIG. 12 (1) shows a case where the vertical contour pixels are extracted from the pixel matrix information (0901) of the contour c shown in FIG. As shown in FIG. 12A, three vertical contour pixels a, b, and c can be extracted from the 3 × 3 pixel matrix information. The corrected vertical contour pixel information acquisition unit corrects the vertical contour pixel by multiplying the vertical contour correction information acquired by the vertical horizontal contour correction information acquisition unit (0707) by each numerical value for the vertical contour pixel. . As described above, when the vertical contour correction information G v = 1, the vertical contour pixels shown in FIG. 12 (1) are gain-controlled by the vertical contour correction information and the vertical contour pixel portions a, b, and c are As shown in FIG. 12 (2), the contour pixels are corrected to a ′, b ′, and c ′. In this case, since G v = 1, the value is not changed numerically.

「修正済水平輪郭画素情報取得手段」(0709)は、水平輪郭修正情報を用いて前記画素マトリックス情報の水平方向の輪郭画素分を修正して修正済み水平輪郭画素情報を取得する手段である。「水平方向の輪郭画素」とは、画素マトリックスのうち、水平方向(行方向)に抽出した輪郭画素である。これを水平輪郭画素とする。「水平方向の輪郭画素分」とは、水平輪郭画素を輝度情報、色差情報などにより数値化したものである。すなわち、画素マトリックス情報のうち、水平輪郭画素に該当する部分が水平方向の輪郭画素分に当たる。図9に示す輪郭cの画素マトリックス情報(0901)から、水平輪郭画素分を抽出した場合を図13(1)に示す。図13(1)に示すように、3×3の画素マトリックス情報からは3つの水平方向の輪郭画素分d、e、fを抽出することができる。修正済水平輪郭画素情報取得手段では、垂直水平輪郭修正情報取得手段(0707)にて取得された水平輪郭修正情報を、この水平輪郭画素分の各数値に乗算することで水平輪郭画素を修正する。上記の通り、水平輪郭修正情報G=2の場合には、図13(1)に示す水平輪郭画素は水平輪郭修正情報によりゲイン制御されて水平方向の輪郭画素分d、e、fは図13(2)に示すように各値が2倍され、輪郭画素分d’、e’、f’に修正される。 “Corrected horizontal contour pixel information acquisition means” (0709) is means for correcting horizontal contour pixel information in the horizontal direction of the pixel matrix information using horizontal contour correction information and acquiring corrected horizontal contour pixel information. “Horizontal pixel in the horizontal direction” is a contour pixel extracted in the horizontal direction (row direction) in the pixel matrix. This is a horizontal contour pixel. The “horizontal contour pixel portion” is a value obtained by digitizing a horizontal contour pixel based on luminance information, color difference information, and the like. That is, the portion corresponding to the horizontal contour pixel in the pixel matrix information corresponds to the horizontal contour pixel. FIG. 13 (1) shows a case where the horizontal contour pixels are extracted from the pixel matrix information (0901) of the contour c shown in FIG. As shown in FIG. 13 (1), three horizontal horizontal outline pixel portions d, e, and f can be extracted from the 3 × 3 pixel matrix information. The corrected horizontal contour pixel information acquisition unit corrects the horizontal contour pixel by multiplying the horizontal contour correction information acquired by the vertical horizontal contour correction information acquisition unit (0707) by each numerical value for the horizontal contour pixel. . As described above, when the horizontal contour correction information G h = 2, the horizontal contour pixels shown in FIG. 13A are gain-controlled by the horizontal contour correction information, and the horizontal contour pixel portions d, e, and f are As shown in 13 (2), each value is doubled and corrected to contour pixel portions d ′, e ′, and f ′.

「修正済輪郭画素情報生成手段」(0710)は、修正済垂直輪郭画素情報取得手段(0708)にて取得された修正済垂直輪郭画素情報と、修正済水平輪郭画素情報取得手段(0709)にて取得された修正済水平輪郭画素情報と、から新たな画素マトリックス情報の輪郭画素分である修正済輪郭画素情報を生成する手段である。修正済輪郭画素情報生成手段では、図14に示すように、図12(2)にて示した修正済垂直輪郭画素情報a’、b’、c’の値(1401)と、図13(2)にて示した修正済水平輪郭画素情報d’、e’、f’の値(1402)とを加算し、垂直方向及び水平方向にゲイン制御された画素マトリックス情報の輪郭画素分である修正済輪郭画素情報(1403)を生成する。そして、この修正済輪郭画素情報(1403)をもとの画素マトリックス情報(1404)に加算すると、輪郭画素分が修正された画素マトリックス情報(1405)を取得することができる。   The “corrected contour pixel information generating unit” (0710) is used to correct the corrected vertical contour pixel information acquired by the corrected vertical contour pixel information acquiring unit (0708) and the corrected horizontal contour pixel information acquiring unit (0709). And the corrected horizontal contour pixel information acquired in this way, and corrected contour pixel information that is the contour pixel of the new pixel matrix information. As shown in FIG. 14, the corrected contour pixel information generating means generates the corrected vertical contour pixel information a ′, b ′, c ′ values (1401) shown in FIG. 12 (2) and FIG. The corrected horizontal contour pixel information d ′, e ′, and f ′ values (1402) shown in FIG. 6) are added, and the corrected pixel component is the contour pixel of the pixel matrix information whose gain is controlled in the vertical and horizontal directions. Outline pixel information (1403) is generated. Then, by adding the corrected contour pixel information (1403) to the original pixel matrix information (1404), pixel matrix information (1405) in which the contour pixel is corrected can be acquired.

(実施形態2の具体例)図15に本実施形態における画像処理装置を実現するための具体的な輪郭補正回路(1500)を示している。図15に示す輪郭補正回路(1500)は、入力画像を遅延させて1ライン毎の画素に出力するラインメモリ(1501)と、ラインメモリ(1501)の出力からn×nの画素マトリックス情報を取得する画素マトリックス情報取得回路(1502)と、垂直方向の輪郭画素のみを抽出する垂直輪郭抽出回路(1503)と、水平方向の輪郭画素のみを抽出する水平輪郭抽出回路(1504)と、画素マトリックス情報から輪郭方向情報を取得する輪郭方向情報取得回路(1505)と、輪郭方向情報から垂直輪郭修正情報と水平輪郭修正情報とを算出する輪郭制御回路(1506)と、輪郭制御回路より算出された垂直輪郭修正情報により、画素マトリックス情報の垂直方向の輪郭画素を修正する垂直輪郭修正回路(1507)と、輪郭制御回路より算出された水平輪郭修正情報により、画素マトリックス情報の水平方向の輪郭画素を修正する水平輪郭修正回路(1508)と、垂直輪郭修正回路(1507)と水平輪郭修正回路(1508)にて修正された垂直輪郭画素と水平輪郭画素を加算する輪郭加算回路(1509)と、輪郭加算回路(1509)にて修正された輪郭をコアリングするコアリング回路(1510)と、ラインメモリからの画素を遅延させる遅延回路(1511)と、コアリング回路(1510)より出力された修正された輪郭画素と遅延回路(1511)より出力された元の画像とを加算する加算回路(1512)とからなる。輪郭方向情報取得回路(1505)をさらに詳細に図15(a)に示す。図15(a)に示すように、輪郭方向情報取得回路(1505)は、係数マトリックスを記録するメモリ(1505a)、画素マトリックス情報と係数マトリックスの感応結果を算出する感応結果算出回路(1505b)などから構成される。   (Specific Example of Embodiment 2) FIG. 15 shows a specific contour correction circuit (1500) for realizing the image processing apparatus of this embodiment. The contour correction circuit (1500) shown in FIG. 15 obtains n × n pixel matrix information from the output of the line memory (1501) and the output of the line memory (1501) by delaying the input image and outputting it to the pixels for each line. Pixel matrix information acquisition circuit (1502), a vertical contour extraction circuit (1503) that extracts only vertical contour pixels, a horizontal contour extraction circuit (1504) that extracts only horizontal contour pixels, and pixel matrix information The contour direction information acquisition circuit (1505) for acquiring the contour direction information from the contour, the contour control circuit (1506) for calculating the vertical contour correction information and the horizontal contour correction information from the contour direction information, and the vertical calculated by the contour control circuit A vertical contour correction circuit (1507) for correcting the vertical contour pixel of the pixel matrix information based on the contour correction information; A horizontal contour correction circuit (1508), a vertical contour correction circuit (1507), and a horizontal contour correction circuit (1508) for correcting the horizontal contour pixels of the pixel matrix information based on the horizontal contour correction information calculated by the control circuit. A contour addition circuit (1509) for adding the corrected vertical contour pixel and the horizontal contour pixel, a coring circuit (1510) for coring the contour corrected by the contour addition circuit (1509), and a pixel from the line memory A delay circuit (1511) for delaying the image and a summing circuit (1512) for adding the corrected contour pixel output from the coring circuit (1510) and the original image output from the delay circuit (1511). . The contour direction information acquisition circuit (1505) is shown in more detail in FIG. As shown in FIG. 15A, the contour direction information acquisition circuit (1505) includes a memory (1505a) for recording a coefficient matrix, a sensitivity result calculation circuit (1505b) for calculating pixel matrix information and a sensitivity result of the coefficient matrix, and the like. Consists of

図7に示す画像処理装置(0700)の機能ブロックと上記輪郭補正回路(1500)とは、次の通り対応している。画素マトリックス情報取得部(0701)は、ラインメモリ(1501)と画素マトリックス取得回路(1502)とに対応する。輪郭方向情報取得部(0702)は、輪郭方向情報取得回路(1505)に対応する。輪郭画素修正部(0703)は、垂直輪郭抽出回路(1503)と水平輪郭抽出回路(1504)と輪郭制御回路(1506)と垂直輪郭修正回路(1507)と水平輪郭修正回路(1508)と輪郭加算回路(1509)と遅延回路(0511)と加算回路(0512)に対応する。なお、輪郭画素修正部にコアリング回路(0510)を含めても良い。なお、これらは本実施形態の画像処理装置を実現するための一形態に過ぎず、本実施形態の構成要件を備える限り他の同様の回路にて実現しても良い。以下にこれらの回路の作用について説明する。   The functional blocks of the image processing apparatus (0700) shown in FIG. 7 correspond to the contour correction circuit (1500) as follows. The pixel matrix information acquisition unit (0701) corresponds to the line memory (1501) and the pixel matrix acquisition circuit (1502). The contour direction information acquisition unit (0702) corresponds to the contour direction information acquisition circuit (1505). The contour pixel correction unit (0703) includes a vertical contour extraction circuit (1503), a horizontal contour extraction circuit (1504), a contour control circuit (1506), a vertical contour correction circuit (1507), a horizontal contour correction circuit (1508), and a contour addition. It corresponds to a circuit (1509), a delay circuit (0511), and an adder circuit (0512). The contour pixel correction unit may include a coring circuit (0510). Note that these are merely forms for realizing the image processing apparatus of the present embodiment, and may be realized by other similar circuits as long as the configuration requirements of the present embodiment are provided. The operation of these circuits will be described below.

映像信号がラインメモリ(1501)に入力されると、ラインメモリ(1501)では1ラインごとに映像信号を遅延させて出力する。ラインメモリ(1501)からの出力は、垂直輪郭抽出回路(1503)、水平輪郭抽出回路(1504)、画素マトリックス情報取得回路(1502)、遅延回路(1511)に出力される。画素マトリックス情報が3×3のマトリックスにて表される情報であれば、図15に示すように、垂直輪郭抽出回路(1503)及び画素マトリックス情報取得回路(0403)へは1ラインずつ遅延させて3ライン分の画素情報が入力される。画素マトリックス情報取得回路(1502)では、入力された映像の輝度情報や色差情報から画素マトリックス情報を取得し、これを出力する。垂直輪郭抽出回路(1503)では、画素マトリックス情報のうち、垂直方向の輪郭成分のみを抽出し、水平輪郭抽出回路(1504)では、画素マトリックス情報のうち、水平方向の輪郭成分のみを抽出する。輪郭方向情報取得回路(1505)では、入力された画素マトリックス情報と、係数マトリックスとの感応結果より輪郭方向情報を取得する。輪郭制御回路(1506)では、輪郭方向情報取得回路(1505)からの輪郭方向情報が入力されると、輪郭を修正するための垂直輪郭修正情報と水平輪郭修正情報とを算出して出力する。垂直輪郭修正回路(1507)では、輪郭制御回路(1506)から出力された垂直輪郭修正情報に基づいて垂直輪郭画素をゲイン制御することで修正済垂直輪郭画素情報を取得する。同様に水平輪郭修正回路(1508)では、輪郭制御回路(1506)から出力された水平輪郭修正情報に基づいて水平輪郭画素をゲイン制御することで修正済水平輪郭画素情報を取得する。輪郭加算回路(1509)では、修正済垂直輪郭画素情報と修正済水平輪郭画素情報から修正済輪郭画素情報を生成する。修正済輪郭画素情報は、コアリング回路(1510)に入力される。以下の処理は実施形態1における具体例と同様である。   When the video signal is input to the line memory (1501), the line memory (1501) delays and outputs the video signal for each line. The output from the line memory (1501) is output to a vertical contour extraction circuit (1503), a horizontal contour extraction circuit (1504), a pixel matrix information acquisition circuit (1502), and a delay circuit (1511). If the pixel matrix information is information represented by a 3 × 3 matrix, as shown in FIG. 15, the vertical matrix extraction circuit (1503) and the pixel matrix information acquisition circuit (0403) are delayed one line at a time. Pixel information for three lines is input. The pixel matrix information acquisition circuit (1502) acquires pixel matrix information from the luminance information and color difference information of the input video and outputs this. The vertical contour extraction circuit (1503) extracts only vertical contour components from the pixel matrix information, and the horizontal contour extraction circuit (1504) extracts only horizontal contour components from the pixel matrix information. The contour direction information acquisition circuit (1505) acquires contour direction information from the sensitivity results of the input pixel matrix information and the coefficient matrix. When the contour direction information is input from the contour direction information acquisition circuit (1505), the contour control circuit (1506) calculates and outputs vertical contour correction information and horizontal contour correction information for correcting the contour. The vertical contour correction circuit (1507) acquires corrected vertical contour pixel information by performing gain control on the vertical contour pixels based on the vertical contour correction information output from the contour control circuit (1506). Similarly, the horizontal contour correction circuit (1508) acquires corrected horizontal contour pixel information by performing gain control on the horizontal contour pixels based on the horizontal contour correction information output from the contour control circuit (1506). The contour addition circuit (1509) generates corrected contour pixel information from the corrected vertical contour pixel information and the corrected horizontal contour pixel information. The corrected contour pixel information is input to the coring circuit (1510). The following processing is the same as the specific example in the first embodiment.

(実施形態2の処理の流れ)本実施形態における輪郭補正方法の処理の基本的な流れを図16の処理フローに示す。本実施形態における輪郭補正方法では、まず、映像信号より輝度や色差に応じて数値化したn×nの画素マトリックス情報を取得する(S1601:画素マトリックス情報取得ステップ)。次に、取得した画素マトリックス情報から、輪郭の方向を示す輪郭方向情報を取得する(S1602:輪郭方向情報取得ステップ)。本実施形態における輪郭方向情報取得ステップで(S1602)では、以下のようにして輪郭方向情報を取得する。まず、画素マトリックス情報の輪郭方向に感応する輪郭方向パターン種分の係数マトリックスと、取得した画素マトリックス情報との感応結果を取得する(S1603:感応結果取得サブステップ)。そして、前記感応結果取得サブステップ(S1603)における感応結果に応じて画素マトリックス情報に対応する輪郭方向情報を取得する(S1604:輪郭方向情報取得サブステップ)。輪郭方向情報を取得すると、取得した画素マトリックス情報の輪郭画素を修正するための輪郭修正量を輪郭方向情報に応じて算出し、算出した輪郭修正量に基づいて取得した画素マトリックス情報の輪郭画素を修正する(S1605:輪郭画素修正ステップ)。本実施形態における輪郭画素修正ステップ(S1605)では、以下のようにして輪郭画素を修正する。まず、輪郭方向情報取得サブステップ(S1604)にて取得した輪郭方向情報に基づいて、垂直方向の輪郭修正量を示す垂直輪郭修正情報と水平方向の輪郭修正量を示す水平輪郭修正情報を取得する(S1606:垂直水平輪郭修正情報取得サブステップ)。そして、垂直水平輪郭修正情報取得サブステップ(S1606)にて取得された垂直輪郭修正情報を用いて前記画素マトリックス情報の垂直方向の輪郭画素分を修正して修正済垂直輪郭画素情報を取得する(S1607:修正済垂直輪郭画素情報取得サブステップ)。また、取得された水平輪郭修正情報を用いて前記画素マトリックス情報の水平方向の輪郭画素分を修正して修正済水平輪郭画素情報を取得する(S1608:修正済水平輪郭画素情報取得サブステップ)。修正済垂直輪郭画素情報取得サブステップ(S1607)と修正済水平輪郭画素情報取得サブステップ(S1608)の前後関係は逆であっても良いし、同時であっても良い。修正済垂直輪郭画素情報と、修正済水平輪郭画素情報と、が取得されると、これらの情報から新たな画素マトリックス情報の輪郭画素分である修正済輪郭画素情報を生成する(S1609:修正済輪郭画素情報生成サブステップ)。このようにして、輪郭画素を強調するように修正した画像を生成することができる。   (Processing Flow of Embodiment 2) The basic processing flow of the contour correction method in this embodiment is shown in the processing flow of FIG. In the contour correction method according to the present embodiment, first, n × n pixel matrix information digitized according to luminance and color difference is acquired from a video signal (S1601: pixel matrix information acquisition step). Next, contour direction information indicating the direction of the contour is acquired from the acquired pixel matrix information (S1602: contour direction information acquisition step). In the contour direction information acquisition step in this embodiment (S1602), the contour direction information is acquired as follows. First, a sensitivity result of the coefficient matrix corresponding to the contour direction pattern type sensitive to the contour direction of the pixel matrix information and the acquired pixel matrix information is acquired (S1603: sensitivity result acquisition substep). Then, contour direction information corresponding to the pixel matrix information is acquired according to the sensitivity result in the sensitivity result acquisition substep (S1603) (S1604: contour direction information acquisition substep). When the contour direction information is acquired, the contour correction amount for correcting the contour pixel of the acquired pixel matrix information is calculated according to the contour direction information, and the contour pixel of the pixel matrix information acquired based on the calculated contour correction amount is calculated. Correction (S1605: contour pixel correction step). In the contour pixel correction step (S1605) in the present embodiment, the contour pixel is corrected as follows. First, based on the contour direction information acquired in the contour direction information acquisition substep (S1604), vertical contour correction information indicating the vertical contour correction amount and horizontal contour correction information indicating the horizontal contour correction amount are acquired. (S1606: Vertical and horizontal contour correction information acquisition sub-step). Then, the vertical contour correction information acquired in the vertical horizontal contour correction information acquisition sub-step (S1606) is used to correct the vertical contour pixels of the pixel matrix information to acquire corrected vertical contour pixel information ( S1607: Corrected vertical contour pixel information acquisition sub-step). Further, the corrected horizontal contour pixel information is acquired by correcting the horizontal pixel of the pixel matrix information using the acquired horizontal contour correction information (S1608: corrected horizontal contour pixel information acquisition sub-step). The context of the corrected vertical contour pixel information acquisition substep (S1607) and the corrected horizontal contour pixel information acquisition substep (S1608) may be reversed or simultaneous. When the corrected vertical contour pixel information and the corrected horizontal contour pixel information are acquired, corrected contour pixel information corresponding to the contour pixel of the new pixel matrix information is generated from these information (S1609: corrected). Outline pixel information generation sub-step). In this way, it is possible to generate an image modified so as to enhance the contour pixels.

(実施形態2の効果)以上のような構成をとる本実施形態の画像処理装置では、画素マトリックス情報から輪郭方向情報を取得して、輪郭方向情報に応じた輪郭補正を行うことができる。また、垂直方向と水平方向の輪郭補正を別々に行うことにより、水平に近い輪郭のゲイン制御量を大きくすることで適切な輪郭補正を行うことができ、補正後の映像の輪郭が不自然になることを防止することができる。   (Effect of Embodiment 2) In the image processing apparatus of the present embodiment having the above-described configuration, it is possible to acquire contour direction information from pixel matrix information and perform contour correction according to the contour direction information. In addition, by performing vertical and horizontal contour correction separately, it is possible to perform appropriate contour correction by increasing the gain control amount of the contour close to the horizontal, and the contour of the corrected video is unnatural. Can be prevented.

≪実施形態3≫(実施形態3の概念)本実施形態における画像処理実施形態2の画像処理装置を基本とし、さらに、修正後の輪郭画素の強調度合を制御する点に特徴を有する。   << Embodiment 3 >> (Concept of Embodiment 3) This embodiment is based on the image processing apparatus of Embodiment 2 of the image processing, and further has a feature in that the degree of enhancement of the corrected contour pixel is controlled.

(実施形態3の構成)図17に本実施形態にかかる画像処理装置の機能ブロック図の一例を示す。本実施形態にかかる「画像処理装置」(1700)は、「画素マトリックス情報取得部」(1701)と、「輪郭方向情報取得部」(1702)と、「輪郭画素修正部」(1703)と、からなり、輪郭方向情報取得部(1702)が、「係数マトリックス保持手段」(1704)と、「感応結果取得手段」(1705)と、「輪郭方向情報取得手段」(1706)とを備え、輪郭画素修正部(1703)が、「垂直水平輪郭修正情報取得手段」(1707)と、「修正済垂直輪郭画素情報取得手段」(1708)と、「修正済水平輪郭画素情報取得手段」(1709)と、「修正済輪郭画素情報生成手段」(1710)とを備え、さらに、輪郭画素修正部(1703)が、「輪郭強調係数取得手段」(1711)を備えることを特徴とする。「輪郭強調係数取得手段」(1711)以外の構成については、既に説明済みであるため、説明を省略する。   (Configuration of Third Embodiment) FIG. 17 shows an example of a functional block diagram of an image processing apparatus according to the present embodiment. The “image processing apparatus” (1700) according to the present embodiment includes a “pixel matrix information acquisition unit” (1701), a “contour direction information acquisition unit” (1702), a “contour pixel correction unit” (1703), The contour direction information acquisition unit (1702) includes “coefficient matrix holding means” (1704), “sensitivity result acquisition means” (1705), and “contour direction information acquisition means” (1706). The pixel correction unit (1703) includes a “vertical horizontal contour correction information acquisition unit” (1707), a “corrected vertical contour pixel information acquisition unit” (1708), and a “corrected horizontal contour pixel information acquisition unit” (1709). And “corrected contour pixel information generating means” (1710), and the contour pixel correcting section (1703) further includes “contour emphasis coefficient acquisition means” (1711).Since the configuration other than the “contour enhancement coefficient acquisition unit” (1711) has already been described, the description thereof will be omitted.

(実施形態3の構成の説明)「輪郭強調係数取得手段」(1711)は、感応結果取得手段(1705)における感応結果の感応強度に応じて修正済輪郭画素情報の新たな画素マトリックス中での強調度合を定める係数である輪郭強調係数を取得する手段である。「感応強度」とは、画素マトリックス情報と係数マトリックスとの感応結果における値の大きさで示される指標である。例えば、図9の輪郭cにおける図8の各輪郭方向パターンとの感応結果が図10(2)に示されることは既に記載したとおりであるが、このときの各感応結果の値で最も大きな値が輪郭cの感応強度である。図10(2)に示すように、輪郭cの各輪郭方向パターンにおける感応結果が最も高い値を示しているのが輪郭方向パターンHであるため、図8に示す係数マトリックスにて算出される輪郭cの感応強度は輪郭方向パターンHとの感応結果である240となる。   (Description of Configuration of Embodiment 3) The “contour emphasis coefficient acquisition means” (1711) in the new pixel matrix of the corrected contour pixel information according to the sensitivity intensity of the sensitivity result in the sensitivity result acquisition means (1705). This is a means for acquiring an edge enhancement coefficient, which is a coefficient that determines the degree of enhancement. The “sensitivity intensity” is an index indicated by the magnitude of the value in the sensitivity result between the pixel matrix information and the coefficient matrix. For example, as described above, the sensitivity result of the contour c of FIG. 9 with each contour direction pattern of FIG. 8 is shown in FIG. 10 (2), but the value of each sensitivity result at this time is the largest value. Is the sensitivity intensity of the contour c. As shown in FIG. 10 (2), the contour direction pattern H indicates the highest sensitivity result in each contour direction pattern of the contour c. Therefore, the contour calculated by the coefficient matrix shown in FIG. The sensitivity intensity of c is 240, which is the sensitivity result with the contour direction pattern H.

「強調度合」とは、修正した輪郭をさらに調整するための割合である。修正された輪郭は、その感応強度が大きい場合には、輪郭が強調されすぎてしまう可能性がある。また、3以上の輪郭方向パターンの感応結果が同値である場合などには、輪郭が存在しない可能性もあり、このような場合には、画素マトリックス情報を修正する必要性に乏しい。このため、感応強度に応じて強調度合を調整することが望ましいのである。   The “enhancement degree” is a ratio for further adjusting the corrected contour. If the corrected contour has a high sensitivity intensity, the contour may be overemphasized. In addition, when the sensitivity results of three or more contour direction patterns are the same value, there is a possibility that the contour does not exist. In such a case, it is not necessary to correct the pixel matrix information. For this reason, it is desirable to adjust the degree of enhancement according to the sensitivity intensity.

「輪郭強調係数」とは、強調度合を定める係数である。これをγとする。輪郭強調係数γは、修正後の画素マトリックス情報の輪郭画素分に乗算することにより、強調度合いを調整することができる。輪郭強調係数は以下のようにして算出することができる。図20に輪郭強度と輪郭強調係数γとの関係を示す。図20に示すように、輪郭強度が所定の値となるまでは輪郭強調係数γは一定とし、特別な調整は行わない(例えばγ=1)。しかし、輪郭強度が所定の値を超えると、輪郭が強調されすぎるおそれがあるため、輪郭強調係数γを小さくする。また、図20に示す輪郭強度との関係とは別に、感応結果が3以上同値である場合には、輪郭が存在しない可能性があるため、γ=0としても良い。なお、γについても、実施形態1、2に記載のα、β等の値に応じて輪郭画素分の強調量が2%から7%の大きさになる様な値に設定することが望ましい。   The “outline enhancement coefficient” is a coefficient that determines the degree of enhancement. Let this be γ. The degree of enhancement can be adjusted by multiplying the outline enhancement coefficient γ by the outline pixel of the corrected pixel matrix information. The contour enhancement coefficient can be calculated as follows. FIG. 20 shows the relationship between the contour strength and the contour enhancement coefficient γ. As shown in FIG. 20, the contour enhancement coefficient γ is constant until the contour strength reaches a predetermined value, and no special adjustment is made (for example, γ = 1). However, if the contour strength exceeds a predetermined value, the contour may be overemphasized, so the contour enhancement coefficient γ is reduced. In addition to the relationship with the contour strength shown in FIG. 20, when the sensitivity result is 3 or more, the contour may not exist, so γ = 0 may be set. Note that γ is preferably set to a value such that the enhancement amount for the contour pixel is 2% to 7% in accordance with the values of α and β described in the first and second embodiments.

(実施形態3の具体例)図18に本実施形態における画像処理装置を実現するための具体的な輪郭補正回路(1800)を示している。図18に示す輪郭補正回路(1800)は、入力画像を遅延させて1ライン毎の画素に出力するラインメモリ(1801)と、ラインメモリ(1801)の出力からn×nの画素マトリックス情報を取得する画素マトリックス情報取得回路(1802)と、垂直方向の輪郭画素のみを抽出する垂直輪郭抽出回路(1803)と、水平方向の輪郭画素のみを抽出する水平輪郭抽出回路(1804)と、画素マトリックス情報から輪郭方向情報を取得する輪郭方向情報取得回路(1805)と、輪郭方向情報から垂直輪郭修正情報と水平輪郭修正情報とを算出する輪郭制御回路(1806)と、輪郭制御回路より算出された垂直輪郭修正情報により、画素マトリックス情報の修正済垂直輪郭画素情報を取得する垂直輪郭修正回路(1807)と、輪郭制御回路より算出された水平輪郭修正情報により、画素マトリックス情報の修正済水平輪郭画素情報を取得する水平輪郭修正回路(1808)と、垂直輪郭修正回路(1807)と水平輪郭修正回路(1808)にて取得された修正済垂直輪郭画素情報と修正済水平輪郭画素情報から修正済輪郭画素情報を生成する輪郭加算回路(1809)と、輪郭加算回路(1809)にて生成された輪郭をコアリングするコアリング回路(1810)と、輪郭強調係数を算出する輪郭強調係数取得回路(1813)と、コアリング回路から出力されたコアリングされた輪郭を輪郭強調係数で調整する輪郭調整回路(1814)と、ラインメモリからの画素を遅延させる遅延回路(1811)と、輪郭調整回路(1814)より出力された調整された輪郭画素と遅延回路(1811)より出力された画素とを加算する加算回路(1812)とからなる。   (Specific Example of Embodiment 3) FIG. 18 shows a specific contour correction circuit (1800) for realizing the image processing apparatus according to this embodiment. The contour correction circuit (1800) shown in FIG. 18 obtains n × n pixel matrix information from the output of the line memory (1801) and the output of the line memory (1801), which delays the input image and outputs it to the pixels for each line. A pixel matrix information acquisition circuit (1802), a vertical contour extraction circuit (1803) that extracts only vertical contour pixels, a horizontal contour extraction circuit (1804) that extracts only horizontal contour pixels, and pixel matrix information The contour direction information acquisition circuit (1805) for acquiring the contour direction information from the contour direction, the contour control circuit (1806) for calculating the vertical contour correction information and the horizontal contour correction information from the contour direction information, and the vertical calculated by the contour control circuit. A vertical contour correction circuit (1807) for acquiring corrected vertical contour pixel information of the pixel matrix information by the contour correction information; A horizontal contour correction circuit (1808), a vertical contour correction circuit (1807), and a horizontal contour correction circuit (1808) for acquiring corrected horizontal contour pixel information of the pixel matrix information based on the horizontal contour correction information calculated by the contour control circuit. The contour adding circuit (1809) for generating corrected contour pixel information from the corrected vertical contour pixel information and the corrected horizontal contour pixel information acquired in step 1 and coring the contour generated by the contour adding circuit (1809) A coring circuit (1810) that performs the contour emphasis coefficient acquisition circuit (1813) that calculates an edge emphasis coefficient, and a contour adjustment circuit (1814) that adjusts the coring contour output from the coring circuit using the contour emphasis coefficient. A delay circuit (1811) for delaying pixels from the line memory, and an adjusted wheel output from the contour adjustment circuit (1814) It comprises an adder circuit (1812) for adding the outline pixel and the pixel output from the delay circuit (1811).

図17に示す画像処理装置(1700)の機能ブロックと上記輪郭補正回路(1800)とは次の通り対応している。画素マトリックス情報取得部(1701)は、ラインメモリ(1801)と画素マトリックス取得回路(1802)とに対応する。輪郭方向情報取得部(1702)は、輪郭方向情報取得回路(1805)に対応する。輪郭画素修正部(1703)は、垂直輪郭抽出回路(1803)と水平輪郭抽出回路(1804)と輪郭制御回路(1806)と垂直輪郭修正回路(1807)と水平輪郭修正回路(1808)と輪郭加算回路(1809)と遅延回路(1811)と加算回路(1812)と、輪郭強調係数取得回路(1813)と調整回路(1814)に対応する。なお、輪郭画素修正部にコアリング回路(1810)を含めても良い。なお、これらは本実施形態の画像処理装置を実現するための一形態に過ぎず、本実施形態の構成要件を備える限り他の同様の回路にて実現しても良い。   The functional blocks of the image processing apparatus (1700) shown in FIG. 17 correspond to the contour correction circuit (1800) as follows. The pixel matrix information acquisition unit (1701) corresponds to the line memory (1801) and the pixel matrix acquisition circuit (1802). The contour direction information acquisition unit (1702) corresponds to the contour direction information acquisition circuit (1805). The contour pixel correction unit (1703) includes a vertical contour extraction circuit (1803), a horizontal contour extraction circuit (1804), a contour control circuit (1806), a vertical contour correction circuit (1807), a horizontal contour correction circuit (1808), and contour addition. The circuit corresponds to a circuit (1809), a delay circuit (1811), an adder circuit (1812), an edge enhancement coefficient acquisition circuit (1813), and an adjustment circuit (1814). The contour pixel correction unit may include a coring circuit (1810). Note that these are merely forms for realizing the image processing apparatus of the present embodiment, and may be realized by other similar circuits as long as the configuration requirements of the present embodiment are provided.

これらの回路の作用については、実施形態2にて説明した輪郭補正回路とほぼ同様であるが、本実施形態における輪郭強調係数取得回路(1813)では、輪郭方向情報取得回路(1805)から出力された感応結果より算出される感応強度に応じた輪郭強調係数を取得する。輪郭調整回路(1814)では、取得された輪郭強調係数に基づいてコアリング回路(1810)からの出力を調整する。輪郭調整回路(1814)では、輪郭成分が弱い画素マトリックス情報の輪郭画素分の修正値を0としたり、輪郭成分が強すぎる輪郭の強調度合を抑えたりすることができる。調整された輪郭画素は、遅延回路(1811)にて遅延された元の画像に加算回路(1812)にて加算することにより、輪郭成分が強調された映像信号を出力することができる。   The operation of these circuits is substantially the same as that of the contour correction circuit described in the second embodiment, but the contour enhancement coefficient acquisition circuit (1813) in the present embodiment outputs the contour direction information acquisition circuit (1805). The edge enhancement coefficient corresponding to the sensitivity intensity calculated from the sensitivity results is acquired. The contour adjustment circuit (1814) adjusts the output from the coring circuit (1810) based on the acquired contour enhancement coefficient. In the contour adjustment circuit (1814), the correction value for the contour pixel of the pixel matrix information having a weak contour component can be set to 0, or the degree of enhancement of the contour whose contour component is too strong can be suppressed. The adjusted contour pixel is added to the original image delayed by the delay circuit (1811) by the adder circuit (1812), thereby outputting a video signal in which the contour component is emphasized.

(実施形態3の処理の流れ)本実施形態における輪郭補正方法の処理の基本的な流れを図19の処理フローに示す。本実施形態における輪郭補正方法では、まず、映像信号より輝度や色差に応じて数値化したn×nの画素マトリックス情報を取得する(S1901:画素マトリックス情報取得ステップ)。次に、取得した画素マトリックス情報から、輪郭の方向を示す輪郭方向情報を取得する(S1902:輪郭方向情報取得ステップ)。輪郭方向情報取得ステップで(S1902)では、画素マトリックス情報の輪郭方向に感応する輪郭方向パターン種分の係数マトリックスと、取得した画素マトリックス情報との感応結果を取得する(S1903:感応結果取得サブステップ)。そして、前記感応結果取得サブステップ(S1903)における感応結果に応じて画素マトリックス情報に対応する輪郭方向情報を取得する(S1904:輪郭方向情報取得サブステップ)。輪郭方向情報を取得すると、取得した画素マトリックス情報の輪郭画素を修正するための輪郭修正量を輪郭方向情報に応じて算出し、算出した輪郭修正量に基づいて取得した画素マトリックス情報の輪郭画素を修正する(S1905:輪郭画素修正ステップ)。輪郭画素修正ステップ(S1905)では、輪郭方向情報取得サブステップ(S1904)にて取得した輪郭方向情報に基づいて、垂直方向の輪郭修正量を示す垂直輪郭修正情報と水平方向の輪郭修正量を示す水平輪郭修正情報を取得する(S1906:垂直水平輪郭修正情報取得サブステップ)。そして、垂直水平輪郭修正情報取得サブステップ(S1906)にて取得された垂直輪郭修正情報を用いて前記画素マトリックス情報の垂直方向の輪郭画素分を修正して修正済垂直輪郭画素情報を取得し(S1907:修正済垂直輪郭画素情報取得サブステップ)、取得された水平輪郭修正情報を用いて前記画素マトリックス情報の水平方向の輪郭画素分を修正して修正済水平輪郭画素情報を取得する(S1908:修正済水平輪郭画素情報取得サブステップ)。修正済垂直輪郭画素情報と、修正済水平輪郭画素情報と、が取得されると、これらの情報から新たな画素マトリックス情報の輪郭画素分である修正済輪郭画素情報を生成する(S1909:修正済輪郭画素情報生成サブステップ)。さらに、本実施形態の輪郭画素修正ステップ(S1905)では、感応結果取得サブステップ(S1903)にて取得された感応結果より感応強度を取得し、感応強度に応じて修正済輪郭画素情報の新たな画素マトリックス情報中での強調度合を定める係数である輪郭強調係数を取得し、輪郭の強調度合を調整する(輪郭調整サブステップ:S1910)。このようにして、輪郭画素を強調するように修正した画像を生成することができる。   (Processing Flow of Embodiment 3) The basic processing flow of the contour correction method in this embodiment is shown in the processing flow of FIG. In the contour correction method according to the present embodiment, first, n × n pixel matrix information that is digitized according to luminance and color difference is acquired from a video signal (S1901: pixel matrix information acquisition step). Next, contour direction information indicating the direction of the contour is acquired from the acquired pixel matrix information (S1902: contour direction information acquisition step). In the contour direction information acquisition step (S1902), a sensitivity result of the coefficient matrix for the contour direction pattern type sensitive to the contour direction of the pixel matrix information and the acquired pixel matrix information is acquired (S1903: sensitivity result acquisition substep). ). Then, contour direction information corresponding to the pixel matrix information is acquired according to the sensitivity result in the sensitivity result acquisition substep (S1903) (S1904: contour direction information acquisition substep). When the contour direction information is acquired, the contour correction amount for correcting the contour pixel of the acquired pixel matrix information is calculated according to the contour direction information, and the contour pixel of the pixel matrix information acquired based on the calculated contour correction amount is calculated. Correction (S1905: contour pixel correction step). In the contour pixel correction step (S1905), based on the contour direction information acquired in the contour direction information acquisition substep (S1904), the vertical contour correction information indicating the vertical contour correction amount and the horizontal contour correction amount are indicated. Horizontal contour correction information is acquired (S1906: vertical horizontal contour correction information acquisition sub-step). Then, using the vertical contour correction information acquired in the vertical horizontal contour correction information acquisition sub-step (S1906), the vertical contour pixel information of the pixel matrix information is corrected to acquire corrected vertical contour pixel information ( S1907: Corrected vertical contour pixel information acquisition sub-step), using the acquired horizontal contour correction information, correct the horizontal contour pixels of the pixel matrix information to acquire corrected horizontal contour pixel information (S1908: Modified horizontal contour pixel information acquisition sub-step). When the corrected vertical contour pixel information and the corrected horizontal contour pixel information are acquired, corrected contour pixel information corresponding to the contour pixel of the new pixel matrix information is generated from these information (S1909: corrected). Outline pixel information generation sub-step). Furthermore, in the contour pixel correction step (S1905) of the present embodiment, the sensitivity intensity is acquired from the sensitivity result acquired in the sensitivity result acquisition substep (S1903), and new corrected contour pixel information is added according to the sensitivity intensity. An edge enhancement coefficient, which is a coefficient that determines the degree of enhancement in the pixel matrix information, is acquired, and the degree of edge enhancement is adjusted (outline adjustment substep: S1910). In this way, it is possible to generate an image modified so as to emphasize the contour pixels.

(実施形態3の効果)以上のような構成をとる本実施形態の画像処理装置では、画素マトリックス情報から輪郭方向情報を取得して、輪郭方向情報に応じた輪郭補正を行うことができる。また、輪郭強度に応じて修正輪郭の調整を行うことでより適切な輪郭補正を行うことができ、補正後の映像の輪郭が不自然になることを防止することができる。   (Effect of Embodiment 3) In the image processing apparatus of the present embodiment having the above-described configuration, it is possible to acquire contour direction information from pixel matrix information and perform contour correction according to the contour direction information. Further, by adjusting the corrected contour according to the contour strength, more appropriate contour correction can be performed, and it is possible to prevent the contour of the corrected image from becoming unnatural.

実施形態1の概要を説明する図The figure explaining the outline of Embodiment 1 実施形態1機能ブロック図Embodiment 1 Functional Block Diagram 画素マトリックス情報の輪郭画素を表す図The figure showing the outline pixel of pixel matrix information 実施形態1の具体的な回路構成を表す図The figure showing the specific circuit structure of Embodiment 1. FIG. コアリング回路を説明する図The figure explaining a coring circuit 実施形態1の処理の流れを説明する図The figure explaining the flow of processing of Embodiment 1. 実施形態2の機能ブロック図Functional block diagram of Embodiment 2 係数マトリックスを説明する図Diagram explaining coefficient matrix 輪郭から画素マトリックス情報の取得方法を説明する図The figure explaining the acquisition method of pixel matrix information from an outline 各輪郭方向パターンとの感応結果を説明する図(1)The figure explaining the sensitivity result with each outline direction pattern (1) 各輪郭方向パターンとの感応結果を説明する図(2)The figure explaining the sensitivity result with each outline direction pattern (2) 画素マトリックス情報から垂直輪郭画素分を抽出した状態を説明する図The figure explaining the state which extracted the part for the vertical outline pixel from pixel matrix information 画素マトリックス情報から水平輪郭画素分を抽出した状態を説明する図The figure explaining the state which extracted the horizontal outline pixel part from pixel matrix information 修正済垂直輪郭画素情報と修正済水平輪郭画素情報とから修正した画素マトリックス情報を取得する方法を説明する図The figure explaining the method to acquire the corrected pixel matrix information from the corrected vertical outline pixel information and the corrected horizontal outline pixel information 実施形態2の具体的な回路構成を表す図The figure showing the specific circuit structure of Embodiment 2. 実施形態2の処理の流れを説明する図The figure explaining the flow of processing of Embodiment 2. 実施形態3の機能ブロック図Functional block diagram of Embodiment 3 実施形態3の具体的な回路構成を表す図The figure showing the specific circuit structure of Embodiment 3. 実施形態3の処理の流れProcess flow of embodiment 3 輪郭強度と輪郭強調係数との関係を示す図Diagram showing the relationship between contour strength and contour enhancement coefficient

符号の説明Explanation of symbols

0200 画像処理装置
0201 画素マトリックス情報取得部
0202 輪郭方向情報取得部
0203 輪郭画素修正部
0704 係数マトリックス保持手段
0705 感応結果取得手段
0706 輪郭方向情報取得手段
0707 垂直水平輪郭修正情報取得手段
0708 修正済垂直輪郭画素取得手段
0709 修正済水平輪郭画素取得手段
0710 修正済輪郭画素情報生成手段
1711 輪郭強調係数取得手段
S0601 画素マトリックス情報取得ステップ
S0602 輪郭方向情報取得ステップ
S0603 輪郭画素修正ステップ
0200 Image processing device 0201 Pixel matrix information acquisition unit 0202 Contour direction information acquisition unit 0203 Contour pixel correction unit 0704 Coefficient matrix holding unit 0705 Sensitive result acquisition unit 0706 Contour direction information acquisition unit 0707 Vertical horizontal contour correction information acquisition unit 0708 Corrected vertical contour Pixel acquisition means 0709 Modified horizontal outline pixel acquisition means 0710 Modified outline pixel information generation means 1711 Outline enhancement coefficient acquisition means S0601 Pixel matrix information acquisition step S0602 Outline direction information acquisition step S0603 Outline pixel correction step

Claims (6)

画素マトリックス情報を取得する画素マトリックス情報取得部と、
取得した画素マトリックス情報から輪郭方向を示す情報である輪郭方向情報を取得する輪郭方向情報取得部と、
取得した輪郭方向情報を用いて前記画素マトリックス情報の輪郭画素分を修正して輪郭を強調した新たな画素マトリックス情報とする輪郭画素修正部と、
を有し、
前記輪郭方向情報取得部は、
画素マトリックス情報の輪郭方向に感応する係数マトリックスを輪郭方向パターン種分保持する係数マトリックス保持手段と、
取得した画素マトリックス情報に対する前記保持されている係数マトリックスの感応結果を取得する感応結果取得手段と、
感応結果に応じて画素マトリックス情報に対応する輪郭方向情報を取得する輪郭方向情報取得手段と、
を有する画像処理装置。
A pixel matrix information acquisition unit for acquiring pixel matrix information;
A contour direction information acquisition unit that acquires contour direction information that is information indicating a contour direction from the acquired pixel matrix information;
A contour pixel correction unit that corrects the contour pixel of the pixel matrix information using the acquired contour direction information and sets the new pixel matrix information by emphasizing the contour;
Have
The contour direction information acquisition unit
Coefficient matrix holding means for holding a coefficient matrix sensitive to the contour direction of the pixel matrix information for the contour direction pattern type;
A sensitivity result acquisition means for acquiring a sensitivity result of the held coefficient matrix with respect to the acquired pixel matrix information;
Contour direction information acquisition means for acquiring contour direction information corresponding to the pixel matrix information according to the sensitivity results;
An image processing apparatus.
前記輪郭画素修正部は、
取得した輪郭方向情報に基づいて、垂直方向の輪郭修正量を示す垂直輪郭修正情報と水平方向の輪郭修正量を示す水平輪郭修正情報を取得する垂直水平輪郭修正情報取得手段と、
垂直輪郭修正情報を用いて前記画素マトリックス情報の垂直方向の輪郭画素分を修正して修正済垂直輪郭画素情報を取得する修正済垂直輪郭画素情報取得手段と、
水平輪郭修正情報を用いて前記画素マトリックス情報の水平方向の輪郭画素分を修正して修正済水平輪郭画素情報を取得する修正済水平輪郭画素情報取得手段と、
取得された修正済垂直輪郭画素情報と、修正済水平輪郭画素情報と、から新たな画素マトリックス情報の輪郭画素分である修正済輪郭画素情報を生成する修正済輪郭画素情報生成手段と、
を有する請求項に記載の画像処理装置。
The contour pixel correction unit includes:
Vertical horizontal contour correction information acquisition means for acquiring vertical contour correction information indicating a vertical contour correction amount and horizontal contour correction information indicating a horizontal contour correction amount based on the acquired contour direction information;
Corrected vertical contour pixel information acquisition means for correcting vertical contour pixels in the vertical direction of the pixel matrix information using vertical contour correction information and acquiring corrected vertical contour pixel information;
Corrected horizontal contour pixel information acquisition means for correcting horizontal contour pixels in the horizontal direction of the pixel matrix information using horizontal contour correction information and acquiring corrected horizontal contour pixel information;
Corrected contour pixel information generating means for generating corrected contour pixel information that is a contour pixel of new pixel matrix information from the acquired corrected vertical contour pixel information and corrected horizontal contour pixel information;
The image processing apparatus according to claim 1 , comprising:
前記輪郭画素修正部は、
取得した感応結果の感応強度に応じて修正済輪郭画素情報の新たな画素マトリックス中での強調度合を定める係数である輪郭強調係数を取得する輪郭強調係数取得手段を有する請求項1又は2のいずれか一に記載の画像処理装置。
The contour pixel correction unit includes:
3. The method according to claim 1, further comprising an edge enhancement coefficient acquisition unit configured to acquire an edge enhancement coefficient that is a coefficient for determining an enhancement degree in the new pixel matrix of the corrected edge pixel information in accordance with the sensitivity intensity of the acquired sensitivity result. the image processing apparatus according to one or.
画素マトリックス情報を取得する画素マトリックス情報取得ステップと、
取得した画素マトリックス情報から輪郭方向を示す情報である輪郭方向情報を取得する輪郭方向情報取得ステップと、
取得した輪郭方向情報を用いて前記画素マトリックス情報の輪郭画素分を修正して輪郭を強調した新たな画素マトリックス情報とする輪郭画素修正ステップと、
からなり、
前記輪郭方向情報取得ステップは、
画素マトリックス情報の輪郭方向に感応する輪郭方向パターン種分の係数マトリックスと、取得した画素マトリックス情報との感応結果を取得する感応結果取得サブステップと、
前記感応結果に応じて画素マトリックス情報に対応する輪郭方向情報を取得する輪郭方向情報取得サブステップと、
を有する輪郭補正方法。
A pixel matrix information acquisition step for acquiring pixel matrix information;
A contour direction information acquisition step for acquiring contour direction information which is information indicating the contour direction from the acquired pixel matrix information;
A contour pixel correction step for correcting the contour pixel portion of the pixel matrix information using the acquired contour direction information to obtain new pixel matrix information with enhanced contours;
Consists of
The contour direction information acquisition step includes:
A sensitivity result acquisition substep for acquiring a sensitivity result of a coefficient matrix for a contour direction pattern type sensitive to a contour direction of pixel matrix information and the acquired pixel matrix information;
A contour direction information acquisition sub-step of acquiring contour direction information corresponding to pixel matrix information according to the sensitivity result;
A contour correction method comprising:
前記輪郭画素修正ステップは、
取得した輪郭方向情報に基づいて、垂直方向の輪郭修正量を示す垂直輪郭修正情報と水平方向の輪郭修正量を示す水平輪郭修正情報を取得する垂直水平輪郭修正情報取得サブステップと、
垂直輪郭修正情報を用いて前記画素マトリックス情報の垂直方向の輪郭画素分を修正して修正済垂直輪郭画素情報を取得する修正済垂直輪郭画素情報取得サブステップと、
水平輪郭修正情報を用いて前記画素マトリックス情報の水平方向の輪郭画素分を修正して修正済水平輪郭画素情報を取得する修正済水平輪郭画素情報取得サブステップと、
取得された修正済垂直輪郭画素情報と、修正済水平輪郭画素情報と、から新たな画素マトリックス情報の輪郭画素分である修正済輪郭画素情報を生成する修正済輪郭画素情報生成サブステップと、
を有する請求項に記載の輪郭補正方法。
The contour pixel correcting step includes:
A vertical horizontal contour correction information acquisition sub-step for acquiring vertical contour correction information indicating a vertical contour correction amount and horizontal contour correction information indicating a horizontal contour correction amount based on the acquired contour direction information;
A corrected vertical contour pixel information acquisition sub-step for acquiring corrected vertical contour pixel information by correcting the vertical contour pixels of the pixel matrix information using vertical contour correction information;
A corrected horizontal contour pixel information acquisition sub-step for acquiring corrected horizontal contour pixel information by correcting horizontal contour pixels of the pixel matrix information using horizontal contour correction information;
A corrected contour pixel information generation sub-step for generating corrected contour pixel information which is a contour pixel of new pixel matrix information from the acquired corrected vertical contour pixel information and the corrected horizontal contour pixel information;
The contour correction method according to claim 4 .
輪郭画素修正ステップは、
取得した感応結果の感応強度に応じて修正済輪郭画素情報の新たな画素マトリックス情報中での強調度合を定める係数である輪郭強調係数を取得して、修正済輪郭画素情報を調整する輪郭調整サブステップを有する請求項4又は5のいずれか一に記載の輪郭補正方法。
The contour pixel correction step
A contour adjustment sub that adjusts the corrected contour pixel information by acquiring a contour emphasis coefficient that is a coefficient for determining the degree of emphasis in the new pixel matrix information of the corrected contour pixel information according to the sensitivity intensity of the acquired sensitivity result The contour correction method according to claim 4, further comprising steps.
JP2006143400A 2006-05-23 2006-05-23 Image processing device Expired - Fee Related JP4648242B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006143400A JP4648242B2 (en) 2006-05-23 2006-05-23 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006143400A JP4648242B2 (en) 2006-05-23 2006-05-23 Image processing device

Publications (2)

Publication Number Publication Date
JP2007318260A JP2007318260A (en) 2007-12-06
JP4648242B2 true JP4648242B2 (en) 2011-03-09

Family

ID=38851758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006143400A Expired - Fee Related JP4648242B2 (en) 2006-05-23 2006-05-23 Image processing device

Country Status (1)

Country Link
JP (1) JP4648242B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014027403A (en) * 2012-07-25 2014-02-06 Toshiba Corp Image processor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000350055A (en) * 1999-06-08 2000-12-15 Nec Corp Contour correction device for digital video camera

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS633562A (en) * 1986-06-23 1988-01-08 Ricoh Co Ltd Edge emphasizing system
JPH09138471A (en) * 1995-09-13 1997-05-27 Fuji Photo Film Co Ltd Specified shape area extracting method, specified area extracting method and copy condition deciding method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000350055A (en) * 1999-06-08 2000-12-15 Nec Corp Contour correction device for digital video camera

Also Published As

Publication number Publication date
JP2007318260A (en) 2007-12-06

Similar Documents

Publication Publication Date Title
KR100782845B1 (en) A digital image enhancement method and system using non-log domain illumination correction
JP3221291B2 (en) Image processing device, image processing method, noise elimination device, and noise elimination method
KR101086424B1 (en) Apparatus and method for processing digital image
US7792384B2 (en) Image processing apparatus, image processing method, program, and recording medium therefor
KR100750176B1 (en) Method and System for quantization artifact removal using super precision
US6909813B2 (en) Contour correcting circuit and contour correcting method
KR20050041886A (en) Global and local statistics controlled noise reduction apparatus and method
KR100435178B1 (en) Contour correction device
JP7020471B2 (en) Image processing equipment and imaging equipment
KR20150003582A (en) Image Processing Method and Apparatus for Curved Display device
JP4011073B2 (en) Tone correction device
TWI684134B (en) Graphic qr code manufacturing device and manufacturing method of the same
KR20060056304A (en) Apparatus and method for adaptive image enhancement
JP4497959B2 (en) Video signal processing apparatus and video signal processing method
JP3938122B2 (en) Pseudo three-dimensional image generation apparatus, generation method, program therefor, and recording medium
JP4648242B2 (en) Image processing device
KR100679046B1 (en) Method and apparatus for bit resolution extension using local information of image
US20080112637A1 (en) Image Processor
US20070086059A1 (en) Image sharpness device and method
JP2012138043A (en) Image noise removal method and image noise removal device
US8774548B2 (en) Image processing apparatus and image processing method
JP4419441B2 (en) Image processing apparatus, image processing method, and program
JP2009296210A (en) Image processor and image processing method
JP4308280B2 (en) Tone correction device
US9008463B2 (en) Image expansion apparatus for performing interpolation processing on input image data, and image expansion method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080806

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100824

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100827

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101026

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101209

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees