JP2011199712A - Video processor and video display device - Google Patents

Video processor and video display device Download PDF

Info

Publication number
JP2011199712A
JP2011199712A JP2010065775A JP2010065775A JP2011199712A JP 2011199712 A JP2011199712 A JP 2011199712A JP 2010065775 A JP2010065775 A JP 2010065775A JP 2010065775 A JP2010065775 A JP 2010065775A JP 2011199712 A JP2011199712 A JP 2011199712A
Authority
JP
Japan
Prior art keywords
filter coefficient
video
unit
interpolation
deformation
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.)
Granted
Application number
JP2010065775A
Other languages
Japanese (ja)
Other versions
JP5531701B2 (en
Inventor
Makoto Eguchi
誠 江口
Akihiko Tamura
明彦 田村
Takashi Shindo
貴志 進藤
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2010065775A priority Critical patent/JP5531701B2/en
Publication of JP2011199712A publication Critical patent/JP2011199712A/en
Application granted granted Critical
Publication of JP5531701B2 publication Critical patent/JP5531701B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To solve the problem that the gradation of corrected video is not the same as the gradation of uncorrected video if a filter coefficient is operated to process video.SOLUTION: This invention relates to a video processor including: a deformation ratio deriving part for deriving the deformation ratio of deformed video to original video about the deformed video in the case of executing deformation processing of the original image; a filter coefficient storage part for storing a plurality of filter coefficients in association with respective predetermined discrete deformation ratios; a filter coefficient selection part for selecting a filter coefficient corresponding to a plurality of deformation ratios close to the derived deformation ratio; a filter coefficient interpolating part for generating an interpolation filter coefficient derived by being interpolated on the basis of a filter coefficient selected in association with the plurality of deformation ratios; a filter coefficient adjusting part for adjusting the interpolation filter coefficient to generate an adjusted filter coefficient; and a pixel interpolating part for deriving and outputting the pixel value of each pixel of the deformed video by pixel interpolation by using the adjusted filter coefficient.

Description

この発明は、映像処理装置に関する。   The present invention relates to a video processing apparatus.

プロジェクターを用いてスクリーンなどの投写面に矩形の映像(以下、元映像ともいう)を表示させるとき、プロジェクターと投写面との相対的な位置関係によって、投写面に表示された映像(以下、投写映像ともいう)が台形、平行四辺形、それ以外の四角形等に歪む場合がある。このような台形歪み以外の射影歪みも含めて、本明細書では「台形歪み」と称する。このように投写映像に台形歪みが生じる場合には、射影変換の手法を利用して、投写映像が矩形に表示されるように補正する台形歪み補正の技術が用いられている。   When displaying a rectangular image (hereinafter also referred to as an original image) on a projection surface such as a screen using a projector, the image displayed on the projection surface (hereinafter referred to as a projection image) depending on the relative positional relationship between the projector and the projection surface. (Also referred to as an image) may be distorted into a trapezoid, a parallelogram, or other quadrangle. Including the projection distortion other than the trapezoidal distortion, it is referred to as “trapezoidal distortion” in this specification. In this way, when trapezoidal distortion occurs in the projected image, a technique for correcting trapezoidal distortion that corrects the projected image to be displayed in a rectangular shape by using a projective transformation technique is used.

液晶パネルを利用して映像を表す映像光を生成するプロジェクターでは、台形歪み補正の際に、投写面上の投写映像に対し逆方向に歪ませた映像(以下、補正後映像ともいう)を、液晶パネル上で生成する。すなわち、液晶パネル上に形成される画像は、矩形の画像を台形、平行四辺形、それ以外の四角形等に歪ませたものであるため、液晶パネル上に表示される変形後映像の元映像に対する変形率は、部分的に異なる。そのため、変形率に応じてフィルター係数を演算して設定する技術が提案されている(例えば、特許文献1参照)。   In a projector that generates image light representing an image using a liquid crystal panel, an image distorted in the opposite direction to the projected image on the projection surface (hereinafter also referred to as a corrected image) when correcting keystone distortion, Produced on a liquid crystal panel. That is, the image formed on the liquid crystal panel is a rectangular image distorted into a trapezoid, a parallelogram, or other quadrangle, etc. The deformation rate is partially different. Therefore, a technique for calculating and setting a filter coefficient according to the deformation rate has been proposed (see, for example, Patent Document 1).

特開平11−341276号公報JP 11-341276 A

しかしながら、このようにフィルター係数を演算して映像を処理していると、補正後の映像の階調(濃度)が補正前の映像の階調と同じにならないという課題が見出された。   However, when the image is processed by calculating the filter coefficient in this way, a problem has been found that the gradation (density) of the image after correction is not the same as the gradation of the image before correction.

なお、このような課題は、プロジェクターに限定されず、映像を変形する処理を施すことが可能な映像処理装置に共通する課題であった。   Note that such a problem is not limited to a projector, and is a problem common to video processing apparatuses capable of performing processing for transforming video.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.

[適用例1] 映像処理装置であって、
元映像に対して、予め定められた規則に基づいた変形処理を施した場合の変形後映像における画素について、前記元映像に対する前記変形後映像の変形率を導出する変形率導出部と、
前記元映像の画素値を用いて、画素補間により前記変形後映像の画素値を導出するためのフィルター係数を記憶する記憶部であって、所定の離散した各変形率に対して複数の前記フィルター係数を関連付けて記憶するフィルター係数記憶部と、
前記変形後映像の前記画素毎の前記変形率に基づいて、前記複数のフィルター係数を選択するフィルター係数選択部であって、前記導出された変形率が前記フィルター係数記憶部に記憶されている所定の変形率と一致しない場合には、前記導出された変形率に近い複数の変形率に対応するフィルター係数を選択するフィルター係数選択部と、
前記フィルター係数選択部において、複数の変形率に対応するフィルター係数が選択された場合に、前記複数の変形率に対応して選択されたフィルター係数に基づいて補間することにより前記導出された変形率に対応するフィルター係数を生成するフィルター係数補間部と、
前記フィルター係数補間部において導出されたフィルター係数である補間フィルター係数が所定の条件を満たすか否かを判定する補間結果判定部と、
前記補間結果判定部において、前記所定の条件を満たさないと判定された場合に、前記補間フィルター係数を調整し、調整フィルター係数を生成するフィルター係数調整部と
前記調整フィルター係数を用いて、前記画素補間により前記変形後映像の各画素の画素値を導出して出力する画素補間部と、
を備える、映像処理装置。
Application Example 1 A video processing apparatus,
A deformation rate deriving unit for deriving a deformation rate of the post-deformation video with respect to the original video for pixels in the post-deformation video when the original video is subjected to deformation processing based on a predetermined rule;
A storage unit for storing a filter coefficient for deriving a pixel value of the post-deformation video by pixel interpolation using a pixel value of the original video, and a plurality of the filters for each predetermined discrete deformation rate A filter coefficient storage unit that associates and stores coefficients;
A filter coefficient selection unit that selects the plurality of filter coefficients based on the deformation rate for each pixel of the post-deformation image, wherein the derived deformation rate is stored in the filter coefficient storage unit. A filter coefficient selecting unit that selects filter coefficients corresponding to a plurality of deformation ratios close to the derived deformation ratio,
In the filter coefficient selection unit, when filter coefficients corresponding to a plurality of deformation ratios are selected, the derived deformation ratio is obtained by performing interpolation based on the filter coefficients selected corresponding to the plurality of deformation ratios. A filter coefficient interpolation unit that generates a filter coefficient corresponding to
An interpolation result determination unit that determines whether or not an interpolation filter coefficient that is a filter coefficient derived in the filter coefficient interpolation unit satisfies a predetermined condition;
In the interpolation result determination unit, when it is determined that the predetermined condition is not satisfied, the interpolation filter coefficient is adjusted and a filter coefficient adjustment unit that generates an adjustment filter coefficient and the adjustment filter coefficient A pixel interpolation unit that derives and outputs a pixel value of each pixel of the transformed video by interpolation;
A video processing apparatus.

この構成によれば、例えば、固定小数点演算による誤差により、フィルター係数の総和が1にならない場合であっても、調整フィルター係数を用いて画素補間が行われるため、好ましい変形後映像になるようにフィルター係数を調整することにより、好ましい変形後映像を得ることができる。   According to this configuration, for example, even when the sum of the filter coefficients does not become 1 due to an error due to a fixed-point operation, pixel interpolation is performed using the adjustment filter coefficient, so that a preferable modified image is obtained. By adjusting the filter coefficient, a preferable post-deformation image can be obtained.

[適用例2] 適用例1記載の像処理装置において、前記変形処理は台形歪み補正処理である映像処理装置。
このようにすると、台形歪み補正処理後の映像として好ましい映像を得ることができる。
Application Example 2 The image processing apparatus according to Application Example 1, wherein the deformation process is a trapezoidal distortion correction process.
In this way, a preferable image can be obtained as the image after the trapezoidal distortion correction process.

[適用例3] 適用例1または2に記載の映像処理装置において、
前記所定の条件は、
前記導出された変形率に対応する複数の前記補間フィルター係数の総和が1である映像処理装置。
Application Example 3 In the video processing device according to Application Example 1 or 2,
The predetermined condition is:
A video processing apparatus in which a sum of a plurality of the interpolation filter coefficients corresponding to the derived deformation rate is 1.

フィルター係数の総和が1になるように調整フィルター係数を生成することにより、適切なフィルター係数を用いて画素補間を行うことができるため、画質の劣化を抑制することができる。   By generating the adjustment filter coefficient so that the total sum of the filter coefficients becomes 1, pixel interpolation can be performed using an appropriate filter coefficient, so that deterioration in image quality can be suppressed.

[適用例4] 適用例1ないし3のいずれか一つに記載の映像処理装置において、
前記変形率導出部は、前記変形後映像の1画素ごとに前記変形率を導出する、映像処理装置。
この構成によれば、より適切な調整フィルター係数を得ることができる。
Application Example 4 In the video processing device according to any one of Application Examples 1 to 3,
The image processing apparatus, wherein the deformation rate deriving unit derives the deformation rate for each pixel of the image after deformation.
According to this configuration, a more appropriate adjustment filter coefficient can be obtained.

なお、本発明は、種々の態様で実現することが可能である。例えば、映像処理装置を備える映像表示装置、映像処理方法等の態様で実現することができる。   Note that the present invention can be realized in various modes. For example, it can be realized in a mode such as a video display device including a video processing device, a video processing method, and the like.

台形歪み補正を概念的に示す説明図である。It is explanatory drawing which shows a trapezoid distortion correction | amendment notionally. 補正前後の液晶パネル部192に表示される映像を示す説明図である。It is explanatory drawing which shows the image | video displayed on the liquid crystal panel part 192 before and behind correction | amendment. 画素補間の方法を概念的に示す模式図である。It is a schematic diagram which shows notionally the method of pixel interpolation. 本発明の一実施例としてのプロジェクターの構成を概略的に示すブロック図である。1 is a block diagram schematically showing a configuration of a projector as an embodiment of the present invention. 台形歪み補正部120の構成を示す機能ブロック図である。3 is a functional block diagram illustrating a configuration of a trapezoidal distortion correction unit 120. FIG. 補正後映像データ生成処理の流れを模式的に示す工程図である。It is process drawing which shows typically the flow of the image data generation process after correction | amendment. 補正前後の映像の座標の変化を示す説明図である。It is explanatory drawing which shows the change of the coordinate of the image | video before and behind correction | amendment. フィルター係数の補間を概念的に示す模式図である。It is a schematic diagram which shows notionally interpolation of a filter coefficient.

次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.第1の実施例:
A−1.台形歪み補正の概要:
A−2.プロジェクターの構成:
A−3.台形歪み補正部:
A−4.台形歪み補正処理の流れ:
A−5.変形率の算出:
A−6.フィルター係数の補間:
A−7.フィルター係数の調整:
A−8.実施例の効果:
B.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. First embodiment:
A-1. Overview of keystone correction:
A-2. Projector configuration:
A-3. Keystone distortion correction section:
A-4. Keystone distortion correction process:
A-5. Calculation of deformation rate:
A-6. Filter coefficient interpolation:
A-7. Adjustment of filter coefficient:
A-8. Effects of the embodiment:
B. Variations:

A.実施例:
A−1.台形歪み補正の概要:
本発明の一実施例としてのプロジェクター100は、映像を表す映像光を投写して、スクリーンSCなどの被投写面上に映像を表示させる。プロジェクター100は、矩形の映像が入力された場合に、スクリーンSC上に表示される映像の台形歪みを補正して、矩形の映像を表示させることが可能なプロジェクターである。プロジェクター100の構成の説明に先立って、本実施例のプロジェクター100における台形歪み補正の概要について、簡単に説明する。
A. Example:
A-1. Overview of keystone correction:
The projector 100 as one embodiment of the present invention projects image light representing an image and displays the image on a projection surface such as a screen SC. The projector 100 is a projector capable of correcting a trapezoidal distortion of a video displayed on the screen SC and displaying a rectangular video when a rectangular video is input. Prior to the description of the configuration of the projector 100, an outline of trapezoidal distortion correction in the projector 100 of the present embodiment will be briefly described.

図1は、台形歪み補正を概念的に示す説明図である。図示するように、プロジェクター100が、スクリーンSCに対して、水平方向(左右方向)および垂直方向(上下方向)に、それぞれ傾きを有して配置された場合、液晶パネル部192に表示されている映像(補正前映像IG0)は矩形であるのに対し、スクリーンSCに投写される映像PIG0は、水平方向および垂直方向のそれぞれに台形歪みを生じる。なお、図1では、説明の便を図って、プロジェクター100内に含まれる液晶パネル部192を、プロジェクター100外に出して表示している。   FIG. 1 is an explanatory diagram conceptually showing trapezoidal distortion correction. As shown in the figure, when the projector 100 is arranged with an inclination in the horizontal direction (left-right direction) and the vertical direction (up-down direction) with respect to the screen SC, it is displayed on the liquid crystal panel unit 192. The video (pre-correction video IG0) is rectangular, whereas the video PIG0 projected on the screen SC has a trapezoidal distortion in each of the horizontal and vertical directions. In FIG. 1, for convenience of explanation, the liquid crystal panel unit 192 included in the projector 100 is displayed outside the projector 100.

そこで、射影変換の手法を利用して、スクリーンSCに投写される映像と逆方向に歪ませた映像(補正後映像IG1)を液晶パネル部192上に形成させると、スクリーンSC上に矩形の映像PIG1が表示される(図1)。このように、台形歪みを生じた映像を、矩形(本来表示されるべき映像の形状)に見せるための補正を、台形歪み補正という。本実施例における補正前映像IG0が、請求項における元映像に、補正後映像IG1が、請求項における変形後映像に、それぞれ、相当する。また、本実施例における台形歪み補正処理が、請求項における、変形処理に相当する。   Therefore, when a projected image (corrected image IG1) distorted in the opposite direction to the image projected on the screen SC is formed on the liquid crystal panel unit 192 using a projective transformation technique, a rectangular image is displayed on the screen SC. PIG1 is displayed (FIG. 1). In this way, correction for making a video having a trapezoidal distortion appear rectangular (the shape of the video that should be originally displayed) is called a trapezoidal distortion correction. The uncorrected image IG0 in the present embodiment corresponds to the original image in the claims, and the corrected image IG1 corresponds to the modified image in the claims. Further, the trapezoidal distortion correction process in the present embodiment corresponds to the deformation process in the claims.

図2は、補正前後の液晶パネル部192に表示される映像を示す説明図である。図2(a)は、補正前映像IG0を、図2(b)は、補正後映像IG1を示している。図2(b)における破線は、補正前映像IG0の外形を示している。補正前映像IG0は、液晶パネル部192のフレーム一杯に表示されるように映像処理を施されているため、図2(b)における破線は、すなわち、液晶パネル部192のフレームを示している。   FIG. 2 is an explanatory diagram showing images displayed on the liquid crystal panel unit 192 before and after correction. FIG. 2A shows the pre-correction video IG0, and FIG. 2B shows the post-correction video IG1. A broken line in FIG. 2B indicates the outer shape of the image IG0 before correction. Since the pre-correction video IG0 has been subjected to video processing so as to be displayed on the full frame of the liquid crystal panel unit 192, the broken line in FIG. 2B indicates the frame of the liquid crystal panel unit 192.

図2(b)に示すように、補正後映像IG1において、頂点(X1,Y1)の近傍は、補正前映像IG0に対する縮小率が高く(すなわち、変形率が大きく)、頂点(X3,Y3)の近傍は、補正前映像IG0に対する縮小率が低い(すなわち、変形率が小さい)。すなわち、補正後映像IG1は、補正後映像IG1の座標によって、変形率が異なる。ここで、補正後映像IG1の座標とは、補正後映像IG1が液晶パネル部192に表示された場合の、画素座標をいう。   As shown in FIG. 2B, in the corrected image IG1, the vicinity of the vertex (X1, Y1) has a high reduction rate (that is, the deformation rate is large) with respect to the pre-correction image IG0, and the vertex (X3, Y3). In the vicinity of, the reduction ratio relative to the pre-correction image IG0 is low (that is, the deformation ratio is small). That is, the corrected image IG1 has different deformation rates depending on the coordinates of the corrected image IG1. Here, the coordinates of the corrected image IG1 refer to pixel coordinates when the corrected image IG1 is displayed on the liquid crystal panel unit 192.

上記したように、補正後映像IG1は、補正後映像IG1の座標によって、変形率が異なるため、本実施例のプロジェクター100では、液晶パネル部192の画素座標ごとに、補正後映像IG1の補正前映像IG0に対する変形率を算出し、算出された変形率に基づいて、補正後映像IG1の画素値を算出して、補正後映像IG1を表す補正後映像データを生成する(後に詳述する)。以下、補正後映像IG1が表示されている場合の液晶パネル部192の画素座標を、補正後座標という。なお、液晶パネル部192の画素座標のうち、補正後映像IG1が表示されていない領域の画素座標も、補正後座標を用いて呼ぶ。補正後座標を、逆射影変換により補正前映像IG0における座標位置(液晶パネルの画素座標)に変換した座標を、補正前座標という。   As described above, since the deformation rate of the corrected image IG1 varies depending on the coordinates of the corrected image IG1, in the projector 100 of this embodiment, the corrected image IG1 is corrected for each pixel coordinate of the liquid crystal panel unit 192. A deformation rate for the image IG0 is calculated, and based on the calculated deformation rate, a pixel value of the corrected image IG1 is calculated to generate corrected image data representing the corrected image IG1 (described in detail later). Hereinafter, the pixel coordinates of the liquid crystal panel unit 192 when the corrected image IG1 is displayed are referred to as corrected coordinates. Of the pixel coordinates of the liquid crystal panel unit 192, the pixel coordinates of the area where the corrected image IG1 is not displayed are also referred to using the corrected coordinates. The coordinates obtained by converting the corrected coordinates to the coordinate positions (pixel coordinates of the liquid crystal panel) in the pre-correction video IG0 by reverse projection conversion are referred to as pre-correction coordinates.

補正前映像IG0と補正後映像IG1とは、整数倍の対応関係とはなっていないため、算出された補正前座標は、小数を含んでいる。そのため、補正後座標の画素値を求めるには、補正前座標の近傍の16座標の画素値を用いて、補正前座標の画素値を推定する。これを、画素補間という。すなわち、補正後映像IG1を表す補正後映像データは、補正後映像IG1を構成する全ての画素(座標)の画素値を、1画素ごとに画素補間を行うことによって作成される。   Since the pre-correction video IG0 and the post-correction video IG1 do not have an integer multiple correspondence, the calculated pre-correction coordinates include decimals. Therefore, in order to obtain the pixel value of the coordinate after correction, the pixel value of the coordinate before correction is estimated using the pixel value of 16 coordinates near the coordinate before correction. This is called pixel interpolation. That is, post-correction video data representing the post-correction video IG1 is created by performing pixel interpolation for every pixel on the pixel values of all pixels (coordinates) constituting the post-correction video IG1.

図3は、画素補間の方法を概念的に示す模式図である。図3では、上記した補正後座標P1(X,Y)を変換した補正前座標P0(x,y)の画素値を画素補間により求める方法を例示している。図中、補正前座標P0(x,y)を、ハッチングを付した丸印で示し、その周辺16座標を白丸印で示している。補正前座標P0(x,y)の画素値は画素補間によって求められるため、補正前座標P0(x,y)の画素値を「補間画素」、周辺16座標の画素値は、補正前映像データであり既知であるため「既知画素」とも称する。   FIG. 3 is a schematic diagram conceptually showing a pixel interpolation method. FIG. 3 illustrates a method of obtaining the pixel value of the uncorrected coordinate P0 (x, y) obtained by converting the corrected coordinate P1 (X, Y) by pixel interpolation. In the figure, the pre-correction coordinates P0 (x, y) are indicated by hatched circles, and the surrounding 16 coordinates are indicated by white circles. Since the pixel value of the pre-correction coordinate P0 (x, y) is obtained by pixel interpolation, the pixel value of the pre-correction coordinate P0 (x, y) is “interpolated pixel”, and the pixel values of the surrounding 16 coordinates are the pre-correction video data. Since it is known, it is also called “known pixel”.

図3では、既知画素である16画素の画素値を、DATA[m][n](m=0,1,2,3(x方向);n=0,1,2,3(y方向))と示している。補間画素は、この16画素の画素値とフィルター係数との畳み込み演算により求められる。本実施例において、補間画素の画素値を求める場合には、対象画素の周辺16画素を用いて、水平補間を行なった後に、垂直補間を行なうことにより、対象画素の画素値を求めている。フィルター係数は、補間画素と既知画素との距離(例えば、DATA[1][1]の既知画素と補間画素との距離は、水平方向(x方向)にdx、垂直方向(y方向)にdyである)による影響を考慮した係数であり、既知画素と補間画素との水平距離(x方向の距離)と、水平方向の変形率(以下、「水平変形率」とも称する)に基づいて、水平補間フィルター係数が定められ、既知画素と補間画素との垂直距離(y方向の距離)と、垂直方向の変形率(以下、「垂直変形率」とも称する)に基づいて、垂直補間フィルター係数が定められている。   In FIG. 3, pixel values of 16 pixels that are known pixels are represented by DATA [m] [n] (m = 0, 1, 2, 3 (x direction); n = 0, 1, 2, 3 (y direction). ). The interpolation pixel is obtained by a convolution operation of the pixel value of 16 pixels and the filter coefficient. In this embodiment, when the pixel value of the interpolation pixel is obtained, the pixel value of the target pixel is obtained by performing horizontal interpolation after performing horizontal interpolation using 16 pixels around the target pixel. The filter coefficient is the distance between the interpolation pixel and the known pixel (for example, the distance between the known pixel of DATA [1] [1] and the interpolation pixel is dx in the horizontal direction (x direction) and dy in the vertical direction (y direction). This is a coefficient that takes into account the influence of the horizontal and horizontal pixels (distance in the x direction) between the known pixel and the interpolated pixel and the horizontal deformation rate (hereinafter also referred to as “horizontal deformation rate”). An interpolation filter coefficient is determined, and the vertical interpolation filter coefficient is determined based on a vertical distance between the known pixel and the interpolation pixel (distance in the y direction) and a vertical deformation rate (hereinafter also referred to as “vertical deformation rate”). It has been.

A−2.プロジェクターの構成:
図4は、本発明の一実施例としてのプロジェクターの構成を概略的に示すブロック図である。図示するように、プロジェクター100は、映像入力部110と、IP変換部112と、解像度変換部114と、映像合成部116と、台形歪み補正部120と、液晶パネル駆動部140と、フレームバッファー150と、高速バス制御部160と、低速バス制御部162と、プロセッサー部170と、撮像部180と、センサー部182と、照明光学系190と、液晶パネル部192と、投写光学系194と、を中心に構成されている。上記した構成要素のうち、照明光学系190、液晶パネル部192、投写光学系194を除く各構成要素は、高速バス102または低速バス104を介して互いに接続されている。
A-2. Projector configuration:
FIG. 4 is a block diagram schematically showing a configuration of a projector as an embodiment of the present invention. As illustrated, the projector 100 includes a video input unit 110, an IP conversion unit 112, a resolution conversion unit 114, a video synthesis unit 116, a trapezoidal distortion correction unit 120, a liquid crystal panel drive unit 140, and a frame buffer 150. A high-speed bus control unit 160, a low-speed bus control unit 162, a processor unit 170, an imaging unit 180, a sensor unit 182, an illumination optical system 190, a liquid crystal panel unit 192, and a projection optical system 194. It is structured in the center. Among the components described above, the components other than the illumination optical system 190, the liquid crystal panel unit 192, and the projection optical system 194 are connected to each other via the high-speed bus 102 or the low-speed bus 104.

映像入力部110は、図示しないDVDプレーヤーやパーソナルコンピューターなどからケーブルを介して入力された入力映像信号に対して、必要によりA/D変換を行い、デジタル映像信号をIP変換部112に供給する。   The video input unit 110 performs A / D conversion on an input video signal input from a DVD player or personal computer (not shown) via a cable, if necessary, and supplies the digital video signal to the IP conversion unit 112.

IP変換部112は、映像入力部110から供給された映像データのフォーマットを、インタレース方式からプログレッシブ方式に変換する処理を実行し、得られた映像データを解像度変換部114に供給する。   The IP conversion unit 112 executes processing for converting the format of the video data supplied from the video input unit 110 from the interlace method to the progressive method, and supplies the obtained video data to the resolution conversion unit 114.

解像度変換部114は、IP変換部112から供給された映像データに対して、サイズの拡大処理または縮小処理(すなわち、解像度変換処理)を施し、得られた映像データを、映像合成部116に供給する。   The resolution conversion unit 114 performs a size enlargement process or a reduction process (that is, resolution conversion process) on the video data supplied from the IP conversion unit 112, and supplies the obtained video data to the video synthesis unit 116. To do.

映像合成部116は、解像度変換部114から供給された映像データとメニュー画面などのOSD(On Screen Display)とを合成して、フレームバッファー150に、補正前映像データとして書き込む。   The video composition unit 116 synthesizes the video data supplied from the resolution conversion unit 114 and an OSD (On Screen Display) such as a menu screen, and writes the resultant data in the frame buffer 150 as pre-correction video data.

フレームバッファー150は、1フレームまたは複数フレームのデータを格納できる。本実施例では、フレームバッファー150として、安価で大容量なDRAM(Dynamic Random Access Memory)を用いている。本実施例におけるフレームバッファー150が請求項におけるフレーム映像記憶部に相当する。   The frame buffer 150 can store data of one frame or a plurality of frames. In this embodiment, an inexpensive and large-capacity DRAM (Dynamic Random Access Memory) is used as the frame buffer 150. The frame buffer 150 in this embodiment corresponds to a frame video storage unit in the claims.

台形歪み補正部120は、スクリーンSCに対してプロジェクター100の投写軸を傾けた状態で投写した場合に生じる台形歪みを補正する。具体的には、フレームバッファー150に格納されている補正前映像データが表す補正前映像を、台形歪みを補償する形状で液晶パネル部192に表示させるため、補正前映像データに対して補正処理を施し、補正後映像データとして、液晶パネル駆動部140に供給する。台形歪み補正部120については、後に詳述する。   The trapezoidal distortion correction unit 120 corrects trapezoidal distortion that occurs when projection is performed with the projection axis of the projector 100 tilted with respect to the screen SC. Specifically, in order to display the pre-correction video represented by the pre-correction video data stored in the frame buffer 150 on the liquid crystal panel unit 192 in a shape that compensates for trapezoidal distortion, the correction processing is performed on the pre-correction video data. The corrected video data is supplied to the liquid crystal panel driving unit 140. The trapezoidal distortion correction unit 120 will be described in detail later.

液晶パネル駆動部140は、台形歪み補正部120を経て入力されたデジタル映像信号に基づいて、液晶パネル部192を駆動する。液晶パネル部192は、複数の画素をマトリクス状に配置した透過型液晶パネルにより構成される。液晶パネル部192は、液晶パネル駆動部140によって駆動され、マトリクス状に配置された各画素における光の透過率を変化させることにより、照明光学系190から照射された照明光を、映像を表す有効な映像光へと変調するための映像を形成する。本実施例において、液晶パネル部192のモードはWUXGAであり、解像度は1920×1200ドットである。本実施例では、液晶パネル画素座標を、x=0〜1919、y=0〜1199と規定している。なお、液晶パネル部192は、本実施例と異なる解像度のものを用いてもよい。   The liquid crystal panel drive unit 140 drives the liquid crystal panel unit 192 based on the digital video signal input through the trapezoidal distortion correction unit 120. The liquid crystal panel unit 192 includes a transmissive liquid crystal panel in which a plurality of pixels are arranged in a matrix. The liquid crystal panel unit 192 is driven by the liquid crystal panel driving unit 140, and changes the light transmittance in each pixel arranged in a matrix, thereby changing the illumination light emitted from the illumination optical system 190 to an effective image. An image for modulation into a new image light is formed. In this embodiment, the mode of the liquid crystal panel unit 192 is WUXGA, and the resolution is 1920 × 1200 dots. In this embodiment, the liquid crystal panel pixel coordinates are defined as x = 0 to 1919 and y = 0 to 1199. The liquid crystal panel unit 192 may have a resolution different from that of this embodiment.

照明光学系190は、例えば、高圧水銀ランプ、超高圧水銀ランプ等のランプ類や、その他の発光体を備えて構成される。投写光学系194は、プロジェクター100の筐体の前面に取り付けられており、液晶パネル部192によって映像光へと変調された光を拡大して、スクリーンSCに投写する。投写光学系194はズームレンズ(図示せず)を備え、液晶パネル部192を透過した光を投写する際の拡大の程度(ズーム状態)を変化させることができる。本実施例における液晶パネル駆動部140、液晶パネル部192、照明光学系190、投写光学系194が、請求項における映像表示部に相当する。   The illumination optical system 190 includes, for example, lamps such as a high pressure mercury lamp and an ultrahigh pressure mercury lamp, and other light emitters. The projection optical system 194 is attached to the front surface of the housing of the projector 100, expands the light modulated into the image light by the liquid crystal panel unit 192, and projects it onto the screen SC. The projection optical system 194 includes a zoom lens (not shown), and can change the degree of enlargement (zoom state) when projecting light transmitted through the liquid crystal panel unit 192. The liquid crystal panel driving unit 140, the liquid crystal panel unit 192, the illumination optical system 190, and the projection optical system 194 in this embodiment correspond to the image display unit in the claims.

プロセッサー部170は、記憶部(図示しない)に記憶された制御プログラムを読み出して実行することにより、プロジェクター100内の各部の動作を制御する。また、撮像部180により撮像された撮影映像や、センサー部182により検出されるプロジェクター100の傾きや、ユーザからの指示に基づいて、後述する補正後座標(X0〜X3、Y0〜Y3)(図2参照)、座標変換行列の座標変換係数(後に詳述する)を算出し、台形歪み補正部120に出力する。なお、本実施例において、プロセッサー部170は、ユーザからの指示をプロジェクター100本体に設けられた操作パネル(図示しない)を通じて受け取る構成にしているが、例えば、リモコンを通じたユーザからの指示をリモコン制御部が受信して、低速バス104を介してプロセッサー部170がユーザからの指示を受信する構成にしてもよい。   The processor unit 170 controls the operation of each unit in the projector 100 by reading and executing a control program stored in a storage unit (not shown). Further, corrected coordinates (X0 to X3, Y0 to Y3) described later based on the captured image captured by the imaging unit 180, the tilt of the projector 100 detected by the sensor unit 182 and the instruction from the user (see FIG. 2), a coordinate conversion coefficient (described in detail later) of the coordinate conversion matrix is calculated and output to the trapezoidal distortion correction unit 120. In this embodiment, the processor unit 170 is configured to receive an instruction from the user through an operation panel (not shown) provided in the main body of the projector 100. For example, the instruction from the user through a remote control is controlled by the remote controller. The processor unit 170 may receive the instruction from the user via the low-speed bus 104.

撮像部180は、CCDカメラを有しており、撮影映像を生成する。撮像部180により生成された撮影映像は、図示せざる撮影映像メモリ内に格納される。なお、撮像部180は、CCDカメラの代わりに他の撮像デバイスを有することも可能である。   The imaging unit 180 has a CCD camera and generates a captured video. The captured video generated by the imaging unit 180 is stored in a captured video memory (not shown). Note that the imaging unit 180 may have another imaging device instead of the CCD camera.

センサー部182は、プロジェクター100の鉛直方向からの傾きを検出することにより、撮像部180のCCD光軸が水平面となす傾き角度を検出することができる。   The sensor unit 182 can detect the tilt angle formed by the CCD optical axis of the imaging unit 180 and the horizontal plane by detecting the tilt of the projector 100 from the vertical direction.

A−3.台形歪み補正部:
台形歪み補正部120は、上記したように、フレームバッファー150に格納されている補正前映像データが表す補正前映像を、台形歪みを補償する形状に補正した補正後映像データを生成する。図5は、台形歪み補正部120の構成を示す機能ブロック図である。台形歪み補正部120は、キャッシュブロック制御部121と、キャッシュブロック記憶部122と、キャッシュブロック用タグ情報記憶部123と、補間ブロック読み出し部124と、画素補間部125と、FIFO部126と、レジスター部127と、制御部128と、座標変換部129と、変形量算出部130と、ヒット判定部131と、フィルター係数選択部132と、フィルター係数補間部133と、補間結果判定部134と、フィルター係数調整部135と、フィルター係数記憶部136と、を中心に構成される。本実施例において、台形歪み補正部120内のフィルター係数補間部133、フィルター係数調整部135では固定小数点演算が行われる。
A-3. Keystone distortion correction section:
As described above, the trapezoidal distortion correction unit 120 generates post-correction video data in which the pre-correction video represented by the pre-correction video data stored in the frame buffer 150 is corrected to a shape that compensates for trapezoidal distortion. FIG. 5 is a functional block diagram illustrating a configuration of the trapezoidal distortion correction unit 120. The trapezoidal distortion correction unit 120 includes a cache block control unit 121, a cache block storage unit 122, a cache block tag information storage unit 123, an interpolation block reading unit 124, a pixel interpolation unit 125, a FIFO unit 126, and a register. Unit 127, control unit 128, coordinate conversion unit 129, deformation amount calculation unit 130, hit determination unit 131, filter coefficient selection unit 132, filter coefficient interpolation unit 133, interpolation result determination unit 134, filter The coefficient adjustment unit 135 and the filter coefficient storage unit 136 are mainly configured. In this embodiment, the filter coefficient interpolation unit 133 and the filter coefficient adjustment unit 135 in the trapezoidal distortion correction unit 120 perform fixed-point arithmetic.

キャッシュブロック制御部121は、フレームバッファー150に格納されている補正前映像データを、8×8画素からなる画素ブロック単位で取得してキャッシュブロック記憶部122に格納する。なお、以下の説明では、この8×8画素からなる画素のブロックを「キャッシュブロック」と称する。また、キャッシュブロック制御部121は、キャッシュブロック用タグ情報記憶部123に格納されているタグ情報を更新する。キャッシュブロック制御部121が取得するキャッシュブロックは、後述するように、ヒット判定部131によって指定される。   The cache block control unit 121 acquires the pre-correction video data stored in the frame buffer 150 for each pixel block composed of 8 × 8 pixels and stores it in the cache block storage unit 122. In the following description, a block of pixels composed of 8 × 8 pixels is referred to as a “cache block”. Further, the cache block control unit 121 updates the tag information stored in the cache block tag information storage unit 123. The cache block acquired by the cache block control unit 121 is specified by the hit determination unit 131 as described later.

キャッシュブロック記憶部122は、フレームバッファー150に格納されている1フレーム分の補正前映像データの一部のデータが、8×8画素からなるキャッシュブロック単位で格納できる。キャッシュブロック記憶部122は、1つのキャッシュブロック(8×8画素からなる映像データ)を格納できるブロック領域を、240列×4行備える。本実施例において、キャッシュブロック記憶部122は、小容量で高速なSRAM(Static Random Access Memory)で構成されている。   The cache block storage unit 122 can store a part of the pre-correction video data for one frame stored in the frame buffer 150 in units of cache blocks including 8 × 8 pixels. The cache block storage unit 122 includes 240 columns × 4 rows of block areas in which one cache block (video data composed of 8 × 8 pixels) can be stored. In this embodiment, the cache block storage unit 122 is composed of a small capacity and high speed SRAM (Static Random Access Memory).

キャッシュブロック用タグ情報記憶部123は、キャッシュブロック記憶部122をブロック領域単位で管理する際の管理情報であるタグ情報を格納する。   The cache block tag information storage unit 123 stores tag information that is management information when the cache block storage unit 122 is managed in units of block areas.

補間ブロック読み出し部124は、画素補間部125における画素補間に必要な4×4画素からなる補間ブロックを、キャッシュブロック記憶部122から読み出して、画素補間部125に供給する。   The interpolation block reading unit 124 reads out an interpolation block composed of 4 × 4 pixels necessary for pixel interpolation in the pixel interpolation unit 125 from the cache block storage unit 122 and supplies it to the pixel interpolation unit 125.

画素補間部125は、補間ブロック読み出し部124から供給される補間ブロックと、フィルター係数調整部135から供給される調整後フィルター係数(後述する)とに基づいて画素補間処理を実行し、補間画素(補正後映像の画素)の値を求めて、FIFO部126を介して液晶パネル駆動部140(図4)に出力する。   The pixel interpolation unit 125 performs pixel interpolation processing based on the interpolation block supplied from the interpolation block reading unit 124 and the adjusted filter coefficient (described later) supplied from the filter coefficient adjustment unit 135, and performs interpolation pixel ( The value of the corrected image pixel) is obtained and output to the liquid crystal panel driving unit 140 (FIG. 4) via the FIFO unit 126.

レジスター部127は、プロセッサー部170から供給されるパラメーターを格納する。具体的には、レジスター部127には、補正前映像の1フレームのフレーム幅、フレーム高さ、座標変換行列の座標変換係数A〜Hなどのパラメーターや、背景色(例えば、黒、グレー、青等)に関する情報である背景色データが格納される。座標変換係数A〜Hは、プロセッサー部170において、下記の射影変換の行列式(式1)を用いて算出される。具体的には、プロセッサー部170は、補正前座標(x0〜x3、y0〜y3)(図2参照)が射影変換により、補正後座標(X0〜X3、Y0〜Y3)(図2参照)に変換されたものとして、その補正後映像IG1の4つの座標(X0〜X3、Y0〜Y3)を、行列式(式1)に入力して、座標変換係数A〜Hを導出し、レジスター部127に格納する。   The register unit 127 stores parameters supplied from the processor unit 170. Specifically, the register unit 127 includes parameters such as the frame width and frame height of the pre-correction video, the coordinate conversion coefficients A to H of the coordinate conversion matrix, and background colors (for example, black, gray, blue). Etc.) is stored as background color data. The coordinate conversion coefficients A to H are calculated by the processor unit 170 using the following determinant (formula 1) of projective transformation. Specifically, the processor unit 170 converts the uncorrected coordinates (x0 to x3, y0 to y3) (see FIG. 2) into the corrected coordinates (X0 to X3, Y0 to Y3) (see FIG. 2) by projective transformation. As converted, the four coordinates (X0 to X3, Y0 to Y3) of the corrected image IG1 are input to the determinant (formula 1) to derive the coordinate conversion coefficients A to H, and the register unit 127 To store.

Figure 2011199712
Figure 2011199712

本実施例では、補正後映像データの生成処理が開始される前に、台形歪み補正前にスクリーンSCに表示されている映像PIG0を、撮像部180で撮像する。プロセッサー部170(図4)は、撮像した映像に基づいて、台形歪み補正後の補正後映像IG1における4つの頂点の座標(X0〜X3、Y0〜Y3)(図2(b))を求めている。   In this embodiment, before the correction image data generation process is started, the image PIG0 displayed on the screen SC before the trapezoidal distortion correction is imaged by the imaging unit 180. The processor unit 170 (FIG. 4) obtains the coordinates (X0 to X3, Y0 to Y3) (FIG. 2B) of the four vertices in the corrected image IG1 after the trapezoidal distortion correction based on the captured image. Yes.

なお、センサー部182によって、プロジェクター100の鉛直方向からの傾きを検出して、検出された角度に基づいて、補正後座標(X0〜X3、Y0〜Y3)を求めるようにしてもよい。また、ユーザがリモコン等のキーを操作して、手動で台形歪み補正を行うようにしてもよい。そのような場合には、プロセッサー部170は、リモコン制御部を介して受け取った、ユーザからの指示に基づいて、補正後座標(X0〜X3、Y0〜Y3)を求める。   Note that the sensor unit 182 may detect the inclination of the projector 100 from the vertical direction, and obtain corrected coordinates (X0 to X3, Y0 to Y3) based on the detected angle. Further, the keystone distortion correction may be manually performed by the user operating a key such as a remote controller. In such a case, the processor unit 170 obtains corrected coordinates (X0 to X3, Y0 to Y3) based on an instruction from the user received via the remote control unit.

制御部128は、台形歪み補正部120全般の制御を行う。例えば、制御部128に入力される同期信号に従って、フレームの始まりを示すフレームスタート信号を座標変換部129に対して出力する。同期信号は、例えば、1秒間に60フレーム表示される場合には、1/60秒毎に入力される。   The control unit 128 controls the trapezoidal distortion correction unit 120 in general. For example, a frame start signal indicating the start of a frame is output to the coordinate conversion unit 129 in accordance with the synchronization signal input to the control unit 128. For example, when 60 frames are displayed per second, the synchronization signal is input every 1/60 seconds.

座標変換部129は、レジスター部127から供給される座標変換係数A〜Hと、以下の(式2)、(式3)を用いて、台形歪み補正を行った後の補正後映像IG1の座標値(補正後座標)を、補正前映像IG0(矩形の映像)の座標値(補正前座標)に変換して、補正前座標を変形量算出部130に供給する。補正前映像IG0と補正後映像IG1とは、整数倍の対応関係とはなっていないため、座標変換部129にて算出された補正前座標は、小数を含んでいる。   The coordinate conversion unit 129 uses the coordinate conversion coefficients A to H supplied from the register unit 127 and the following (Expression 2) and (Expression 3) to correct the coordinates of the corrected image IG1 after performing the trapezoidal distortion correction. The value (post-correction coordinates) is converted into the coordinate value (pre-correction coordinates) of the pre-correction video IG0 (rectangular video), and the pre-correction coordinates are supplied to the deformation amount calculation unit 130. Since the pre-correction video IG0 and the post-correction video IG1 do not have an integer multiple correspondence, the pre-correction coordinates calculated by the coordinate conversion unit 129 include decimals.

ここで、上記した補正前座標の算出方法について説明する。補正後映像IG1は、補正前映像IG0を射影変換することにより得られた映像であると考えられるため、補正前座標は、補正後座標について、下記の(式2)、(式3)に基づいて、逆射影変換することによって算出される。補正前座標(x,y)が射影変換により補正後座標(X,Y)に変換されたものとする。   Here, the above-described calculation method of the pre-correction coordinates will be described. Since the corrected image IG1 is considered to be an image obtained by projective transformation of the uncorrected image IG0, the uncorrected coordinates are based on the following (Expression 2) and (Expression 3) with respect to the corrected coordinates. Then, it is calculated by reverse projective transformation. It is assumed that the uncorrected coordinates (x, y) are converted to corrected coordinates (X, Y) by projective transformation.

Figure 2011199712
Figure 2011199712
上記(式2)、(式3)中の係数A〜Hは、レジスター部127に記憶されている。
Figure 2011199712
Figure 2011199712
The coefficients A to H in the above (Expression 2) and (Expression 3) are stored in the register unit 127.

変形量算出部130は、座標変換部129から供給された補正前座標を、整数部と小数部に分けて、整数部をヒット判定部131に供給し、小数部をフィルター係数選択部132に供給する。また、変形量算出部130は、座標変換部129から供給された補正前座標に基づいて、補正後映像IG1の補正前映像IG0に対する変形量を算出して、フィルター係数選択部132に供給する。変形量の算出方法については、後に詳述する。   The deformation amount calculation unit 130 divides the uncorrected coordinates supplied from the coordinate conversion unit 129 into an integer part and a decimal part, supplies the integer part to the hit determination unit 131, and supplies the decimal part to the filter coefficient selection unit 132. To do. Further, the deformation amount calculation unit 130 calculates the deformation amount of the corrected image IG1 with respect to the pre-correction image IG0 based on the pre-correction coordinates supplied from the coordinate conversion unit 129, and supplies it to the filter coefficient selection unit 132. A method of calculating the deformation amount will be described in detail later.

フィルター係数選択部132は、変形量算出部130から供給される変形量に基づいて変形率を算出する。フィルター係数選択部132は、算出された変形率と変形量算出部130から供給された小数部に基づいて、画素補間処理を実行する際に用いられるフィルター係数を、フィルター係数テーブルより選択して、選択されたフィルター係数をフィルター係数補間部133に供給する。フィルター係数テーブルは、図3に示す補間画素と既知画素との距離と、変形率と、フィルター係数との関係を示すテーブルであり、予め算出された結果がフィルター係数記憶部136に格納されている。フィルター係数記憶部136は、固定小数点形式でフィルター係数テーブルが記憶されている。なお、本実施例では、水平フィルター係数,垂直フィルター係数それぞれについてテーブルが用意されている。水平フィルター係数、垂直フィルター係数を総称して、単に「フィルター係数」ともいう。   The filter coefficient selection unit 132 calculates the deformation rate based on the deformation amount supplied from the deformation amount calculation unit 130. The filter coefficient selection unit 132 selects, based on the calculated deformation rate and the decimal part supplied from the deformation amount calculation unit 130, a filter coefficient used when performing pixel interpolation processing from the filter coefficient table, The selected filter coefficient is supplied to the filter coefficient interpolation unit 133. The filter coefficient table is a table showing the relationship between the distance between the interpolation pixel and the known pixel, the deformation rate, and the filter coefficient shown in FIG. 3, and the result calculated in advance is stored in the filter coefficient storage unit 136. . The filter coefficient storage unit 136 stores a filter coefficient table in a fixed-point format. In this embodiment, a table is prepared for each of the horizontal filter coefficient and the vertical filter coefficient. The horizontal filter coefficient and the vertical filter coefficient are collectively referred to simply as “filter coefficient”.

本実施例では、変形率を、1、0.9、0.8、0.7、0.6、0.5、0.4、0.3、0.2、0.1と、計10個に離散化している。そのため、フィルター係数選択部132にて算出された変形率が、この離散化された値に該当しない場合には、補間演算のために、算出された変形率の前後の2つの変形率に対応するフィルター係数を選択する。例えば、変形率が0.26の場合には、変形率0.2と変形率0.3に対応するフィルター係数を選択する。   In this embodiment, the deformation rate is 1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 10 in total. Discretized into pieces. Therefore, when the deformation rate calculated by the filter coefficient selection unit 132 does not correspond to the discretized value, it corresponds to two deformation rates before and after the calculated deformation rate for the interpolation calculation. Select the filter coefficient. For example, when the deformation rate is 0.26, filter coefficients corresponding to the deformation rate 0.2 and the deformation rate 0.3 are selected.

本実施例では、上記したように、補間画素の周辺16画素を用いて、水平補間を行なった後に、垂直補間を行なうことにより、対象画素の画素値を求めている(図3)。したがって、まず、既知画素と補間画素との水平距離と水平変形率とに基づいて、垂直方向の位置が等しい4つの既知画素それぞれに対応する水平フィルター係数を選択する。   In the present embodiment, as described above, the pixel value of the target pixel is obtained by performing horizontal interpolation after performing horizontal interpolation using 16 pixels around the interpolation pixel (FIG. 3). Therefore, first, based on the horizontal distance between the known pixel and the interpolation pixel and the horizontal deformation rate, the horizontal filter coefficient corresponding to each of the four known pixels having the same vertical position is selected.

具体的には、DATA[0][0],DATA[1][0],DATA[2][0],DATA[3][0]に対応する水平フィルター係数を、水平変形率に基づいてそれぞれ2つずつ選択する。DATA[0][1],DATA[0][2],DATA[0][3]に対応する水平フィルター係数は、DATA[0][0]と同一、DATA[1][1],DATA[1][2],DATA[1][3]に対応する水平フィルター係数は、DATA[1][0]と同一、DATA[2][1],DATA[2][2],DATA[2][3]に対応する水平フィルター係数は、DATA[2][0]と同一、DATA[3][1],DATA[3][2],DATA[3][3]に対応する水平フィルター係数は、DATA[3][0]と同一である。   Specifically, the horizontal filter coefficients corresponding to DATA [0] [0], DATA [1] [0], DATA [2] [0], DATA [3] [0] are based on the horizontal deformation rate. Select two each. The horizontal filter coefficients corresponding to DATA [0] [1], DATA [0] [2], DATA [0] [3] are the same as DATA [0] [0], DATA [1] [1], DATA The horizontal filter coefficients corresponding to [1] [2], DATA [1] [3] are the same as DATA [1] [0], DATA [2] [1], DATA [2] [2], DATA [ The horizontal filter coefficients corresponding to 2] [3] are the same as DATA [2] [0], and the horizontal filter coefficients corresponding to DATA [3] [1], DATA [3] [2], DATA [3] [3] The filter coefficient is the same as DATA [3] [0].

続いて、既知画素と補間画素との垂直距離と垂直変形率とに基づいて、水平方向の位置が等しい4つの既知画素それぞれに対応する垂直フィルター係数を選択する。この垂直フィルター係数は、水平補間により求められたP0(x,y)とx座標が等しい4つの画素を用いて垂直補間を行う際に用いられる。具体的には、DATA[0][0],DATA[0][1],DATA[0][2],DATA[0][3]に対応する垂直フィルター係数を、垂直変形率に基づいて、それぞれ2つずつ選択する。   Subsequently, based on the vertical distance between the known pixel and the interpolated pixel and the vertical deformation rate, the vertical filter coefficient corresponding to each of the four known pixels having the same horizontal position is selected. This vertical filter coefficient is used when vertical interpolation is performed using four pixels having the same x coordinate as P0 (x, y) obtained by horizontal interpolation. Specifically, the vertical filter coefficients corresponding to DATA [0] [0], DATA [0] [1], DATA [0] [2], and DATA [0] [3] are based on the vertical deformation rate. , Select two each.

フィルター係数補間部133は、フィルター係数選択部132にて選択された水平フィルター係数、垂直フィルター係数それぞれについて補間を行い、補間水平フィルター係数、補間垂直フィルター係数を算出する。補間水平フィルター係数、補間垂直フィルター係数を総称して、単に「補間フィルター係数」ともいう。本実施例では、線形補間により、フィルター係数選択部132にて算出された変形率に対応するフィルター係数を算出するが、スプライン補間、ラグランジュ補間等、他の補間方法により求めてもよい。   The filter coefficient interpolation unit 133 performs interpolation for each of the horizontal filter coefficient and the vertical filter coefficient selected by the filter coefficient selection unit 132, and calculates an interpolation horizontal filter coefficient and an interpolation vertical filter coefficient. The interpolated horizontal filter coefficient and the interpolated vertical filter coefficient are collectively referred to simply as “interpolated filter coefficient”. In the present embodiment, the filter coefficient corresponding to the deformation ratio calculated by the filter coefficient selection unit 132 is calculated by linear interpolation, but may be obtained by other interpolation methods such as spline interpolation and Lagrange interpolation.

補間結果判定部134は、フィルター係数補間部133における補間によって得られた補間水平フィルター係数、補間垂直フィルター係数それぞれの総和が基準値になっているか否かを判定する。本実施例では、基準値=1としているが、1でなくてもよい。例えば、基準値=0.95等、1より小さい値に設定してもよい。このようにすると、補間画素の階調を下げることができる。また、基準値=1.05等の1より大きい値に設定してもよい。このようにすると、補間画素の階調を上げることができる。   The interpolation result determination unit 134 determines whether or not the sum of the interpolation horizontal filter coefficient and the interpolation vertical filter coefficient obtained by the interpolation in the filter coefficient interpolation unit 133 is a reference value. In this embodiment, the reference value = 1, but it may not be 1. For example, it may be set to a value smaller than 1 such as a reference value = 0.95. In this way, the gradation of the interpolation pixel can be lowered. Alternatively, the reference value may be set to a value larger than 1, such as 1.05. In this way, the gradation of the interpolation pixel can be increased.

フィルター係数調整部135は、補間結果判定部134において補間水平フィルター係数、補間垂直フィルター係数それぞれの総和が基準値(=1)でなかった場合に、補間水平フィルター係数、補間垂直フィルター係数それぞれの総和が基準値になるように調整する。具体的な調整方法については、後述する。   The filter coefficient adjustment unit 135 sums the interpolation horizontal filter coefficient and the interpolation vertical filter coefficient when the sum of the interpolation horizontal filter coefficient and the interpolation vertical filter coefficient is not the reference value (= 1) in the interpolation result determination unit 134. Adjust so that becomes the reference value. A specific adjustment method will be described later.

ヒット判定部131は、変形量算出部130から供給された補正前座標の整数部に基づいて、画素補間部125における画素補間に用いられる座標の画素値がキャッシュブロック記憶部122に格納されているか否かを判定する。以下、この判定を「ヒット判定」と称する。ヒット判定の結果、キャッシュブロック記憶部122に画素補間に必要な画素値が格納されていない場合には、キャッシュブロック制御部121に対して、必要なキャッシュブロックの取得要求を出す。ヒット判定の結果、キャッシュブロック記憶部122に画素補間に必要な画素値が格納されている場合には、補間ブロック読み出し部124に対してキャッシュブロック記憶部122における読み出し位置を供給する。   Whether the hit determination unit 131 stores the pixel value of the coordinates used for pixel interpolation in the pixel interpolation unit 125 in the cache block storage unit 122 based on the integer part of the coordinates before correction supplied from the deformation amount calculation unit 130. Determine whether or not. Hereinafter, this determination is referred to as “hit determination”. As a result of the hit determination, when a pixel value necessary for pixel interpolation is not stored in the cache block storage unit 122, a request for acquiring a necessary cache block is issued to the cache block control unit 121. As a result of the hit determination, when a pixel value necessary for pixel interpolation is stored in the cache block storage unit 122, the read position in the cache block storage unit 122 is supplied to the interpolation block reading unit 124.

A−4.台形歪み補正処理の流れ:
図6は、補正後映像データ生成処理の流れを模式的に示す工程図である。本実施例における台形歪み補正部120では、制御部128(図5)からフレームスタート信号が出力され、座標変換部129(図5)に入力されると、補正後映像データ生成処理が開始される。
A-4. Keystone distortion correction process:
FIG. 6 is a process diagram schematically showing the flow of the corrected video data generation process. In the trapezoidal distortion correction unit 120 in this embodiment, when a frame start signal is output from the control unit 128 (FIG. 5) and input to the coordinate conversion unit 129 (FIG. 5), the corrected video data generation process is started. .

座標変換部129(図5)はフレームスタート信号が入力されたか否かを判断する(ステップS102)。座標変換部129は、フレームスタート信号が入力されるまでは待機して(ステップS102においてNO)、フレームスタート信号が入力されると (ステップS102においてYES)、上記したように、補正後映像の座標(補正後座標)を座標変換して補正前座標を求める(ステップS104)。   The coordinate conversion unit 129 (FIG. 5) determines whether or not a frame start signal has been input (step S102). The coordinate conversion unit 129 waits until the frame start signal is input (NO in step S102). When the frame start signal is input (YES in step S102), as described above, the coordinates of the corrected video are obtained. The coordinates before correction are obtained by converting the coordinates after correction (step S104).

座標変換部129が算出した補正前座標が変形量算出部130(図5)に供給されると、変形量算出部130は、当該補正前座標における補正後映像の補正前映像に対する変形率を算出する(ステップS106)。   When the pre-correction coordinates calculated by the coordinate conversion unit 129 are supplied to the deformation amount calculation unit 130 (FIG. 5), the deformation amount calculation unit 130 calculates the deformation rate of the corrected image with respect to the pre-correction image at the pre-correction coordinates. (Step S106).

変形量算出部130から補正前座標の整数部がヒット判定部131(図5)に供給されると、ヒット判定部131はヒット判定を行い、目的のキャッシュブロックが格納されていると判定すると、補間ブロックの読み出し位置を補間ブロック読み出し部124に供給する。補間ブロックの読み出し位置が補間ブロック読み出し部124に供給されると、補間ブロック読み出し部124(図5)は、供給された読み出し位置に基づいて補間ブロックをキャッシュブロック記憶部122から読み出す(ステップS108)。   When the integer part of the coordinates before correction is supplied from the deformation amount calculation unit 130 to the hit determination unit 131 (FIG. 5), the hit determination unit 131 performs hit determination and determines that the target cache block is stored. The interpolation block readout position is supplied to the interpolation block readout unit 124. When the interpolation block readout position is supplied to the interpolation block readout unit 124, the interpolation block readout unit 124 (FIG. 5) reads out the interpolation block from the cache block storage unit 122 based on the supplied readout position (step S108). .

一方、フィルター係数選択部132(図5)は、変形量算出部130から供給された補正前座標の小数部と、変形量に基づいて、上記したように、フィルター係数テーブルからフィルター係数を選択する(ステップS110)。フィルター係数補間部133(図5)は、フィルター係数選択部132から、フィルター係数が供給されると、フィルター係数の補間を行い、補間により得られた補間フィルター係数を、補間結果判定部134(図5)に供給する(ステップS112)。   On the other hand, the filter coefficient selection unit 132 (FIG. 5) selects the filter coefficient from the filter coefficient table as described above based on the decimal part of the coordinates before correction supplied from the deformation amount calculation unit 130 and the deformation amount. (Step S110). When the filter coefficient is supplied from the filter coefficient selection unit 132, the filter coefficient interpolation unit 133 (FIG. 5) performs the interpolation of the filter coefficient, and the interpolation filter coefficient obtained by the interpolation is determined as the interpolation result determination unit 134 (FIG. 5). 5) (step S112).

補間結果判定部134は、フィルター係数補間部133から供給された補間水平フィルター係数、補間垂直フィルター係数それぞれの総和が1になるか否か判定し、判定結果を補間フィルター係数と共にフィルター係数調整部135(図5)に供給する(ステップS114)。フィルター係数調整部135は、補間結果判定部134から供給された判定結果が、フィルター係数の総和が1でなかった場合には、供給されたフィルター係数に基づいてフィルター係数の調整を行い、調整フィルター係数として、画素補間部125(図5)に供給する(ステップS116)。   The interpolation result determination unit 134 determines whether or not the sum of the interpolation horizontal filter coefficient and the interpolation vertical filter coefficient supplied from the filter coefficient interpolation unit 133 is 1, and the determination result together with the interpolation filter coefficient is a filter coefficient adjustment unit 135. (FIG. 5) is supplied (step S114). When the determination result supplied from the interpolation result determination unit 134 indicates that the sum of the filter coefficients is not 1, the filter coefficient adjustment unit 135 adjusts the filter coefficient based on the supplied filter coefficient, and the adjustment filter The coefficient is supplied to the pixel interpolation unit 125 (FIG. 5) (step S116).

ヒット判定部131、キャッシュブロック制御部121、キャッシュブロック記憶部122、キャッシュブロック用タグ情報記憶部123、補間ブロック読み出し部124における補間ブロック読み出し処理と、フィルター係数選択部132、フィルター係数補間部133、補間結果判定部134、フィルター係数調整部135におけるフィルター係数算出処理とは同時に行われ、両処理が終了すると、ステップS118の処理に進む。   Hit determination unit 131, cache block control unit 121, cache block storage unit 122, cache block tag information storage unit 123, interpolation block reading processing in interpolation block reading unit 124, filter coefficient selection unit 132, filter coefficient interpolation unit 133, The filter coefficient calculation process in the interpolation result determination unit 134 and the filter coefficient adjustment unit 135 is performed at the same time. When both processes are completed, the process proceeds to step S118.

画素補間部125(図5)は、補間ブロック読み出し部124から補間ブロックが供給され、フィルター係数調整部135から調整フィルター係数が供給されると、供給された補間ブロックと調整フィルター係数とを用いて、畳み込み演算により、補正後座標の画素値を算出する(ステップS118)。   When the interpolation block is supplied from the interpolation block reading unit 124 and the adjustment filter coefficient is supplied from the filter coefficient adjustment unit 135, the pixel interpolation unit 125 (FIG. 5) uses the supplied interpolation block and adjustment filter coefficient. Then, the pixel value of the corrected coordinates is calculated by the convolution operation (step S118).

以上のステップS102〜ステップS118を、補正後座標(X,Y)=(0,0)〜(フレーム幅−1,フレーム高さ−1)まで繰り返して行うことにより、補正後映像データが生成される。本実施例では、フレーム幅1920、フレーム高さ1200であるため、補正後座標(X,Y)=(0,0)〜(1919,1199)まで、ステップS102〜ステップS116を繰り返して行う。なお、フレーム幅、フレーム高さが本実施例と異なる場合には、ステップS102〜ステップS116を、補正後座標(X,Y)=(0,0)〜(フレーム幅−1,フレーム高さ−1)まで繰り返して行うことにより、補正後映像データが生成される。   By repeating the above steps S102 to S118 from the corrected coordinates (X, Y) = (0, 0) to (frame width −1, frame height −1), corrected video data is generated. The In this embodiment, since the frame width is 1920 and the frame height is 1200, steps S102 to S116 are repeated until the corrected coordinates (X, Y) = (0, 0) to (1919, 1199). When the frame width and the frame height are different from those of the present embodiment, the steps S102 to S116 are performed after the corrected coordinates (X, Y) = (0, 0) to (frame width−1, frame height− By repeating the process up to 1), corrected video data is generated.

なお、複数の映像が連続して入力される場合(例えば、動画が入力される場合)に、1映像ごとに、上記の処理を繰り返して、画素補間を行なってもよいし、第1番目の映像について、上記の通り、各座標ごとに調整フィルター係数を算出し、算出された調整フィルター係数をレジスター部127に保存して、第2番目以降の映像について台形歪み補正をする際に、レジスター部127に保存された調整フィルター係数を用いて、画素補間を実施してもよい。前者の場合は、ハードウェアで処理するのに適している。後者の場合には、ソフトウェアで処理することにより、ハードウェアの構成を省略することができる。   In addition, when a plurality of videos are continuously input (for example, when a moving image is input), the above processing may be repeated for each video to perform pixel interpolation, or the first As described above, the adjustment filter coefficient is calculated for each coordinate for the image, the calculated adjustment filter coefficient is stored in the register unit 127, and the second and subsequent images are corrected for trapezoidal distortion. Pixel interpolation may be performed using the adjustment filter coefficient stored in 127. The former case is suitable for processing by hardware. In the latter case, the hardware configuration can be omitted by processing with software.

A−5.変形率の算出:
変形量算出部130(図5)は、補正後映像の1座標ごとに、画素値を算出する対象座標と、その周辺8座標を、逆射影変換により補正前映像の座標に変換して、対象座標の変形量を求める。
A-5. Calculation of deformation rate:
The deformation amount calculation unit 130 (FIG. 5) converts, for each coordinate of the corrected image, target coordinates for calculating a pixel value and its surrounding eight coordinates into the coordinates of the uncorrected image by reverse projection transformation. Find the amount of deformation of coordinates.

図7は、補正前後の映像の座標の変化を示す説明図である。図7(a)は補正前映像IG0、図7(b)は補正後映像IG1を示す。図7(b)に示す、補正後映像IG1におけるある座標(a_x,a_y)と、その周囲8座標について、補正前映像IG0の座標に変換した結果である補正前座標を、図7(a)に示している。以下、変形量を求める対象座標を、「対象補正後座標」ともいう。   FIG. 7 is an explanatory diagram showing changes in the coordinates of the image before and after correction. FIG. 7A shows the pre-correction video IG0, and FIG. 7B shows the post-correction video IG1. The coordinates before correction shown in FIG. 7B, which are the results of converting the coordinates (a_x, a_y) in the corrected image IG1 and the surrounding eight coordinates into the coordinates of the image IG0 before correction, are shown in FIG. It shows. Hereinafter, the target coordinates for obtaining the deformation amount are also referred to as “target corrected coordinates”.

本実施例において、図7(b)に示すように、補正後映像IG1の対象補正後座標は、(a_x,a_y)であり、その周辺画素座標は、対象補正後座標の周囲8画素の座標(a_x−1,a_y−1)、(a_x+0,a_y−1)、(a_x+1,a_y−1)、(a_x−1,a_y+0)、(a_x+1,a_y+0)、(a_x−1,a_y+1)、(a_x+0,a_y+1)、(a_x+1,a_y+1)である。補正前座標は、上記した射影変換の逆射影変換によって算出される。   In this embodiment, as shown in FIG. 7B, the post-target correction coordinates of the post-correction video IG1 are (a_x, a_y), and the peripheral pixel coordinates are the coordinates of the eight pixels surrounding the target post-correction coordinates. (A_x-1, a_y-1), (a_x + 0, a_y-1), (a_x + 1, a_y-1), (a_x-1, a_y + 0), (a_x + 1, a_y + 0), (a_x-1, a_y + 1), (a_x + 0) , A_y + 1), (a_x + 1, a_y + 1). The pre-correction coordinates are calculated by the reverse projection transformation of the above-described projection transformation.

逆射影変換によって算出された補正前座標を、図7(a)に示すsrc(0,0)、src(1,0)、src(2,0)、src(0,1)、src(1,1)、src(2,1)、src(0,2)、src(1,2)、src(2,2)とする。すなわち、補正後座標(a_x−1,a_y−1)→補正前座標src(0,0)、補正後座標(a_x+0,a_y−1)→補正前座標src(1,0)、補正後座標(a_x+1,a_y−1)→補正前座標src(2,0)、補正後座標(a_x−1,a_y+0)→補正前座標src(0,1)、補正後座標(a_x,a_y)→補正前座標src(1,1)、補正後座標(a_x+1,a_y+0)→補正前座標src(2,1)、補正後座標(a_x−1,a_y+1)→補正前座標src(0,2)、補正後座標(a_x+0,a_y+1)→補正前座標src(1,2)、補正後座標(a_x+1,a_y+1)→補正前座標src(2,2)となる。   The coordinates before correction calculated by the inverse projective transformation are represented by src (0,0), src (1,0), src (2,0), src (0,1), src (1) shown in FIG. , 1), src (2, 1), src (0, 2), src (1, 2), src (2, 2). That is, the coordinates after correction (a_x−1, a_y−1) → the coordinates before correction src (0,0), the coordinates after correction (a_x + 0, a_y−1) → the coordinates before correction src (1,0), the coordinates after correction ( a_x + 1, a_y-1) → pre-correction coordinates src (2,0), post-correction coordinates (a_x−1, a_y + 0) → pre-correction coordinates src (0,1), post-correction coordinates (a_x, a_y) → pre-correction coordinates src (1, 1), corrected coordinates (a_x + 1, a_y + 0) → corrected coordinates src (2,1), corrected coordinates (a_x−1, a_y + 1) → corrected coordinates src (0,2), corrected coordinates (A_x + 0, a_y + 1) → pre-correction coordinates src (1,2), post-correction coordinates (a_x + 1, a_y + 1) → pre-correction coordinates src (2,2).

変形量算出部130は、図7(a)に示す、隣接する補正前座標の水平距離を、それぞれ算出して、最大値を求める。具体的には、src(0,0)とsrc(1,0)との水平距離、src(1,0)とsrc(2,0)との水平距離、・・・・、src(1,2)とsrc(2,2)との水平距離をそれぞれ算出し、その中の最大値を求め、その最大値を水平変形量とする。図7(b)に示すように、隣接する補正後座標の水平距離は、「1」であるため、フィルター係数選択部132は、水平変形量の逆数を水平変形率とする。なお、本実施例において、変形率を、隣接する補正前座標の水平距離の最大値を用いて算出しているが、隣接する補正前座標の水平距離の平均値を用いてもよい。   The deformation amount calculating unit 130 calculates the horizontal distance between adjacent pre-correction coordinates shown in FIG. Specifically, the horizontal distance between src (0,0) and src (1,0), the horizontal distance between src (1,0) and src (2,0),..., Src (1, The horizontal distance between 2) and src (2, 2) is calculated, the maximum value is obtained, and the maximum value is set as the horizontal deformation amount. As shown in FIG. 7B, since the horizontal distance between adjacent corrected coordinates is “1”, the filter coefficient selection unit 132 sets the reciprocal of the horizontal deformation amount as the horizontal deformation rate. In the present embodiment, the deformation rate is calculated using the maximum horizontal distance between adjacent uncorrected coordinates, but an average value of adjacent horizontal distances between uncorrected coordinates may be used.

同様に、隣接する補正前座標の垂直距離を、それぞれ算出して、最大値を求め、その最大値を垂直変形量とする。フィルター係数選択部132は、垂直変形量の逆数を垂直変形率とする。   Similarly, the vertical distance between adjacent uncorrected coordinates is calculated to determine the maximum value, and the maximum value is used as the vertical deformation amount. The filter coefficient selection unit 132 sets the reciprocal of the vertical deformation amount as the vertical deformation rate.

例えば、図7(b)に示す補正後映像IG1の右上の頂点付近の座標が、補正後座標(a_x,a_y)である場合、図7(a)に示すように、隣接する補正前座標の水平距離の最大値(水平変形量)=2であり、水平変形率=1/2となる。また、図7(a)に示すように、隣接する補正前座標の垂直距離の最大値(垂直変形量)=2.3であり、垂直変形率=1/(2.3)となる。   For example, when the coordinates near the upper right vertex of the corrected image IG1 shown in FIG. 7B are the corrected coordinates (a_x, a_y), as shown in FIG. The maximum value of the horizontal distance (horizontal deformation amount) = 2, and the horizontal deformation rate = 1/2. Further, as shown in FIG. 7A, the maximum value of the vertical distance between adjacent uncorrected coordinates (vertical deformation amount) = 2.3, and the vertical deformation ratio = 1 / (2.3).

A−6.フィルター係数の補間:
図8は、フィルター係数の補間を概念的に示す模式図である。図8は、図3に示す既知画素DATA[0][0],DATA[1][0],DATA[2][0],DATA[3][0]に対応する水平フィルター係数を例示している。図中の丸および四角内に記載された数字は、既知画素DATA[x][y]のxの値であり、丸は水平変形率αの場合の水平フィルター係数、四角は水平変形率βの場合の水平フィルター係数を示す。水平変形率αの場合の補間カーネルを実線、水平変形率βの場合の補間カーネルを破線で示す。なお、以下の説明において、水平変形率を単に「変形率」、水平フィルター係数を単に「フィルター係数」と省略する。
A-6. Filter coefficient interpolation:
FIG. 8 is a schematic diagram conceptually showing interpolation of filter coefficients. FIG. 8 illustrates horizontal filter coefficients corresponding to the known pixels DATA [0] [0], DATA [1] [0], DATA [2] [0], and DATA [3] [0] shown in FIG. ing. The numbers described in the circles and squares in the figure are the x values of the known pixel DATA [x] [y], the circles are the horizontal filter coefficients in the case of the horizontal deformation rate α, and the squares are the horizontal deformation rate β. Shows the horizontal filter coefficient. The interpolation kernel in the case of the horizontal deformation rate α is indicated by a solid line, and the interpolation kernel in the case of the horizontal deformation rate β is indicated by a broken line. In the following description, the horizontal deformation rate is simply referred to as “deformation rate”, and the horizontal filter coefficient is simply referred to as “filter coefficient”.

対象補正後座標の変形率=sf(α<sf<β)の場合、変形率=α,変形率=βの場合のフィルター係数を用いて、線形補間を行うことにより、変形率=sfの場合のフィルター係数を算出することができる。例えば、変形率=sfの場合の既知画素DATA[0][0]に対応するフィルター係数(補間フィルター係数)をNewCoef[0]とすると、NewCoef[0]は以下の(式4)により求めることができる。なお、NewCoef[1],NewCoef[2],NewCoef[3]も同様に求めることができる(図8)。   When the deformation rate of the coordinate after object correction = sf (α <sf <β), by performing linear interpolation using the filter coefficient when the deformation rate = α and the deformation rate = β, the case where the deformation rate = sf The filter coefficient can be calculated. For example, when the filter coefficient (interpolation filter coefficient) corresponding to the known pixel DATA [0] [0] when the deformation rate = sf is NewCoef [0], NewCoef [0] is obtained by the following (formula 4). Can do. Note that NewCoef [1], NewCoef [2], and NewCoef [3] can be similarly obtained (FIG. 8).

NewCoef[0]=R×(変形率=βの場合のDATA[0][0]に対応するフィルター係数)+(1−R)×(変形率=αの場合のDATA[0][0]に対応するフィルター係数)・・・(式4)
ここで、R=(sf−α)/(β―α)
NewCoef [0] = R × (filter coefficient corresponding to DATA [0] [0] when deformation rate = β) + (1−R) × (DATA [0] [0] when deformation rate = α) Filter coefficient corresponding to (...) (Equation 4)
Where R = (sf−α) / (β−α)

以下に、具体的な数値を挙げて一例を説明する。sf=0.125の場合、フィルター係数選択部132は、変形率=0.1,0.2の場合の各フィルター係数を選択する。すなわち、α=0.1,β=0.2である。変形率αの場合のフィルター係数をCoefα[x](x=0,1,2,3)とし、変形率βの場合のフィルター係数をCoefβ[x](x=0,1,2,3)とし、変形率sfの場合のフィルター係数をNewCoef[x](x=0,1,2,3)とすると、各フィルター係数の理想的な値は、以下のとおりである。   Hereinafter, an example will be described with specific numerical values. When sf = 0.125, the filter coefficient selection unit 132 selects each filter coefficient when the deformation ratio = 0.1, 0.2. That is, α = 0.1 and β = 0.2. The filter coefficient in the case of the deformation rate α is Coefα [x] (x = 0, 1, 2, 3), and the filter coefficient in the case of the deformation rate β is Coefβ [x] (x = 0, 1, 2, 3). Assuming that the filter coefficient in the case of the deformation rate sf is NewCoef [x] (x = 0, 1, 2, 3), the ideal value of each filter coefficient is as follows.

Coefα[0]=−0.220
Coefα[1]=0.682
Coefα[2]=0.838
Coefα[3]=−0.300
Coefα Total=1.000
Coefα [0] = − 0.220
Coefα [1] = 0.682
Coefα [2] = 0.838
Coefα [3] = − 0.300
Coefα Total = 1.000

Coefβ[0]=−0.111
Coefβ[1]=0.575
Coefβ[2]=0.713
Coefβ[3]=−0.177
Coefβ Total=1.000
Coefβ [0] = − 0.111
Coefβ [1] = 0.575
Coefβ [2] = 0.713
Coefβ [3] = − 0.177
Coefβ Total = 1.000

NewCoef[0]=−0.19275
NewCoef[1]=0.65525
NewCoef[2]=0.80675
NewCoef[3]=−0.26925
NewCoef Total=1.000
NewCoef [0] = − 0.19275
NewCoef [1] = 0.65525
NewCoef [2] = 0.080675
NewCoef [3] = − 0.26925
NewCoef Total = 1.000

上記したように、理想的には、α=0.1,β=0.2における各フィルター係数は、その総和が1になっており、その結果、sf=0.125におけるフィルター係数の総和も1になっている。しかしながら、フィルター係数記憶部136は固定小数点形式にてフィルター係数が記憶される。したがって、フィルター係数記憶部136に格納されるフィルター係数(例えば、α=0.1,β=0.2におけるフィルター係数)は、上記した理想の値にならないことが多い。そのため、α=0.1,β=0.2における各フィルター係数の総和は1にならないことが多い。また、フィルター係数補間部133では固定小数点演算が行われるため、フィルター係数記憶部136から選択されたフィルター係数を用いて求めたsf=0.125におけるフィルター係数の総和も1にならない場合が多い。以下に、sign 1bit,integer 1bit,fraction 6bitの場合の各フィルター係数を例示する。なお、マイナスは2の補数で表現している。   As described above, ideally, the sum of the filter coefficients at α = 0.1 and β = 0.2 is 1, and as a result, the sum of the filter coefficients at sf = 0.125 is also obtained. It is 1. However, the filter coefficient storage unit 136 stores the filter coefficient in a fixed point format. Therefore, the filter coefficients stored in the filter coefficient storage unit 136 (for example, the filter coefficients at α = 0.1 and β = 0.2) often do not have the ideal values described above. For this reason, the sum of the filter coefficients at α = 0.1 and β = 0.2 often does not become one. In addition, since the filter coefficient interpolation unit 133 performs fixed-point arithmetic, the sum of the filter coefficients at sf = 0.125 obtained using the filter coefficient selected from the filter coefficient storage unit 136 is often not 1. Below, each filter coefficient in the case of sign 1bit, integer 1bit, fraction 6bit is illustrated. Note that minus is expressed in two's complement.

Coefα[0]=11110010(−0.218750)
Coefα[1]=00101100(0.687500)
Coefα[2]=00110110(0.843750)
Coefα[3]=11101101(−0.296875)
Coefα Total=1.015625
Coefα [0] = 11110010 (−0.218750)
Coefα [1] = 00101100 (0.687500)
Coefα [2] = 001110110 (0.843750)
Coefα [3] = 11101101 (−0.296875)
Coefα Total = 1.015625

Coefβ[0]=11111001(−0.109375)
Coefβ[1]=00100101(0.578125)
Coefβ[2]=00101110(0.718750)
Coefβ[3]=11110101(−0.171875)
Coefβ Total=1.015625
Coefβ [0] = 11111001 (−0.109375)
Coefβ [1] = 001010101 (0.578125)
Coefβ [2] = 001011110 (0.718750)
Coefβ [3] = 11110101 (−0.171875)
Coefβ Total = 1.015625

上記各フィルター係数を用いて補間によりsf=0.125における補間フィルター係数を求めると、以下のようになる。
NewCoef[0]=11110100(−0.187500)
NewCoef[1]=00101010(0.656250)
NewCoef[2]=00110100(0.812500)
NewCoef[3]=11101111(−0.265625)
NewCoef Total=1.015625
When the interpolation filter coefficient at sf = 0.125 is obtained by interpolation using the above filter coefficients, the following is obtained.
NewCoef [0] = 11110100 (−0.187500)
NewCoef [1] = 00101010 (0.656250)
NewCoef [2] = 001110100 (0.812500)
NewCoef [3] = 11101111 (−0.265625)
NewCoef Total = 1.015625

このように、本実施例のフィルター係数記憶部136は固定小数点形式でフィルター係数テーブルが記憶されるため、フィルター係数記憶部136に格納されているフィルター係数の総和が1にはならず、フィルター係数補間部133では固定小数点演算が行われるため、演算の誤差が生じ、フィルター係数記憶部136に格納されているフィルター係数を用いて補間により算出された補間フィルター係数の総和も1にならないことが多い。そこで、本実施例では、以下に示すように、補間フィルター係数を用いて、フィルター係数の調整を行っている。   As described above, since the filter coefficient storage unit 136 of the present embodiment stores the filter coefficient table in the fixed-point format, the sum of the filter coefficients stored in the filter coefficient storage unit 136 does not become 1, and the filter coefficient Since the interpolation unit 133 performs a fixed-point operation, an operation error occurs, and the sum of interpolation filter coefficients calculated by interpolation using the filter coefficients stored in the filter coefficient storage unit 136 is often not 1. . Therefore, in the present embodiment, as shown below, the filter coefficient is adjusted using the interpolation filter coefficient.

A−7.フィルター係数の調整:
補間結果判定部134(図5)において、フィルター係数補間部133から供給された補間フィルター係数の総和が1でない場合、フィルター係数調整部135(図5)はフィルター係数の総和が1になるようにフィルター係数を調整し、調整フィルター係数を算出する。具体的には、フィルター係数調整部135は、補間結果判定部134から供給された補間フィルター係数の総和と1(基準値)との差分を2で割り、NewCoef[0]とNewCoef[3]から加減算する。このようにして調整するのは、NewCoef[0]とNewCoef[3]は、NewCoef[1]とNewCoef[2]に比べて、補間画素との距離が遠いため、フィルター係数の影響が小さいからである。
A-7. Adjustment of filter coefficient:
In the interpolation result determination unit 134 (FIG. 5), when the sum of the interpolation filter coefficients supplied from the filter coefficient interpolation unit 133 is not 1, the filter coefficient adjustment unit 135 (FIG. 5) sets the sum of the filter coefficients to 1. Adjust the filter coefficient and calculate the adjusted filter coefficient. Specifically, the filter coefficient adjustment unit 135 divides the difference between the sum of the interpolation filter coefficients supplied from the interpolation result determination unit 134 and 1 (reference value) by 2, and obtains from NewCoef [0] and NewCoef [3]. Add and subtract. The reason for adjusting in this way is that NewCoef [0] and NewCoef [3] are farther away from the interpolated pixel than NewCoef [1] and NewCoef [2], and therefore the influence of the filter coefficient is small. is there.

上記A−6項で説明した補間フィルター係数NewCoef[0]〜NewCoef[3]を用いて、フィルター係数の調整について説明する。上記したように、NewCoef[0]〜NewCoef[3]の総和は1.015625(=01000001)である。したがって、1との差分値0.015625を、差分値を2で割り、NewCoef[0]とNewCoef[3]から減算する。調整フィルター係数をNewCoefA[0]〜NewCoefA[3]とすると、以下のようになる。   The adjustment of the filter coefficient will be described using the interpolation filter coefficients NewCoef [0] to NewCoef [3] described in the section A-6. As described above, the total sum of NewCoef [0] to NewCoef [3] is 1.015625 (= 01000001). Therefore, the difference value 0.015625 from 1 is divided by 2, and subtracted from NewCoef [0] and NewCoef [3]. When the adjustment filter coefficient is NewCoefA [0] to NewCoefA [3], the following is obtained.

NewCoefA[0]=NewCoef[0]−(0.015625/2)
=11110100(−0.187500)−(0.015625/2)
NewCoefA[1]=NewCoef[1]
=00101010(0.656250)
NewCoefA[2]=NewCoef[2]
=00110100(0.812500)
NewCoefA[3]=NewCoef[3]−(0.015625/2)
=11101111(−0.265625)−(0.015625/2)
NewCoefA [0] = NewCoef [0]-(0.0156625 / 2)
= 11110100 (−0.187500) − (0.0156625 / 2)
NewCoefA [1] = NewCoef [1]
= 00101010 (0.656250)
NewCoefA [2] = NewCoef [2]
= 00110100 (0.812500)
NewCoefA [3] = NewCoef [3]-(0.0156625 / 2)
= 11101111 (-0.265625)-(0.0156625 / 2)

上記したように、本実施例において、台形歪み補正部120内の各回路では固定小数点演算が行われ、小数部は6bitで表されるため、(0.015625/2)を表すことができない。このように、差分値を2で割った結果が小数部6bitで表せない場合には、差分値をNewCoef[0]から減算する。具体的には、以下のようになる。   As described above, in this embodiment, each circuit in the trapezoidal distortion correction unit 120 performs a fixed-point operation, and the decimal part is represented by 6 bits. Therefore, (0.0156625 / 2) cannot be represented. As described above, when the result obtained by dividing the difference value by 2 cannot be represented by the decimal part 6 bits, the difference value is subtracted from NewCoef [0]. Specifically, it is as follows.

NewCoefA[0]=NewCoef[0]−(0.015625)
=11110100(−0.187500)−00000001(0.015625)
=11110011(−0.203125)
NewCoefA[1]=NewCoef[1]
=00101010(0.656250)
NewCoefA[2]=NewCoef[2]
=00110100(0.812500)
NewCoefA[3]=NewCoef[3]
=11101111(−0.265625)
NewCoefA Total=1.0
NewCoefA [0] = NewCoef [0]-(0.015625)
= 11110100 (−0.187500) −00000001 (0.015625)
= 11110011 (−0.203125)
NewCoefA [1] = NewCoef [1]
= 00101010 (0.656250)
NewCoefA [2] = NewCoef [2]
= 00110100 (0.812500)
NewCoefA [3] = NewCoef [3]
= 11101111 (-0.265625)
NewCoefA Total = 1.0

このように、フィルター係数調整部135では、基本的には、補間結果判定部134から供給された補間フィルター係数の総和と1(基準値)との差分を2で割って、NewCoef[0]とNewCoef[3]に加減算する。補間フィルター係数の総和と1(基準値)との差分値を2で割った結果が、小数部6bitで表現できない場合には、差分値をNewCoef[0]に加減算する。なお、NewCoef[3]に加減算してもよい。垂直フィルター係数についても同様に調整を行う。   In this way, the filter coefficient adjustment unit 135 basically divides the difference between the sum of the interpolation filter coefficients supplied from the interpolation result determination unit 134 and 1 (reference value) by 2, and NewCoef [0] Addition and subtraction to NewCoef [3]. If the result of dividing the difference value between the sum of the interpolation filter coefficients and 1 (reference value) by 2 cannot be expressed by the decimal part 6 bits, the difference value is added to or subtracted from NewCoef [0]. Note that NewCoef [3] may be added or subtracted. The vertical filter coefficient is similarly adjusted.

A−8.実施例の効果:
以上説明したように、本実施例におけるプロジェクター100によれば、フィルター係数補間部133において補間によって得られた補間フィルター係数の演算誤差が、フィルター係数調整部135において修正されるため、フィルター係数の総和が1となる適切なフィルター係数(調整フィルター係数)を得ることができる。フィルター係数補間部133において算出された補間フィルター係数を用いて画素補間を行うと、固定小数点演算による演算誤差により、台形歪み補正処理後の映像の階調が、補正前映像の階調より上がったり、下がったりして、補正前映像と同等の映像を得ることができない場合がある。これに対して、本実施例におけるプロジェクター100によれば、フィルター係数の調整を行わない場合と比べて、適切な画素補間を行うことができるようになり、台形歪み補正処理後の映像の画質の劣化を抑制することができる。
A-8. Effects of the embodiment:
As described above, according to the projector 100 in this embodiment, the calculation error of the interpolation filter coefficient obtained by the interpolation in the filter coefficient interpolation unit 133 is corrected in the filter coefficient adjustment unit 135, so that the sum of the filter coefficients Thus, an appropriate filter coefficient (adjusted filter coefficient) can be obtained. When pixel interpolation is performed using the interpolation filter coefficient calculated by the filter coefficient interpolation unit 133, the gradation of the image after the trapezoidal distortion correction processing is higher than the gradation of the image before the correction due to the calculation error due to the fixed point calculation, In some cases, it may not be possible to obtain an image equivalent to the uncorrected image. On the other hand, according to the projector 100 in this embodiment, it is possible to perform appropriate pixel interpolation as compared with the case where the filter coefficient is not adjusted, and the image quality of the image after the trapezoidal distortion correction processing is improved. Deterioration can be suppressed.

また、フィルター係数補間部133、フィルター係数調整部135、フィルター係数記憶部136において固定小数点形式を用いることにより、ハードウェアのリソースを小さくすることができる。また、フィルター係数の調整を行うことにより、大きなハードウェアのリソースを要する浮動小数点演算器を備えていなくても、適切なフィルター係数により、適切な台形歪み補正処理を行うことができる。   Further, by using a fixed-point format in the filter coefficient interpolation unit 133, the filter coefficient adjustment unit 135, and the filter coefficient storage unit 136, hardware resources can be reduced. Further, by adjusting the filter coefficient, it is possible to perform an appropriate trapezoidal distortion correction process with an appropriate filter coefficient even if a floating point arithmetic unit that requires a large amount of hardware resources is not provided.

また、固定小数点演算により演算処理を行うことにより、ハードウェアによる処理を高速化することが可能となり、1つの映像について台形歪み補正処理を行う度にフィルター係数の算出を行うことができる(すなわち、リアルタイム処理が可能)。そのため、例えば、プロジェクター100の傾きが随時変化して連続する映像を表示する場合に、プロジェクター100の傾きの変化に追従して、台形歪み補正を行うことができる。   In addition, by performing arithmetic processing by fixed-point arithmetic, it is possible to speed up the processing by hardware, and it is possible to calculate the filter coefficient every time the trapezoidal distortion correction processing is performed for one video (that is, Real-time processing is possible). Therefore, for example, when displaying a continuous image with the tilt of the projector 100 changing at any time, the trapezoidal distortion correction can be performed following the change in the tilt of the projector 100.

また、フィルター係数調整部135において、フィルター係数を調整する場合に、基準値を変更することにより、階調の上げ下げ等、簡易的に映像の補正を行うことができる。   Further, when the filter coefficient adjustment unit 135 adjusts the filter coefficient, the image can be easily corrected by changing the reference value, such as raising or lowering the gradation.

B.変形例
なお、本発明は上記した実施例に限られるものではなく、その要旨を逸脱しない範囲において種々の態様にて実施することが可能である。
B. Modifications The present invention is not limited to the above-described embodiments, and can be implemented in various modes without departing from the scope of the invention.

(1)上記した本実施例では、補間フィルター係数の総和と基準値(=1)との差分値を2で割って、New Coef[0]とNew Coef[3]に加減算する例を示したが、その他の方法によってフィルター係数の調整を行ってもよい。例えば、補間フィルター係数の総和と基準値(=1)との差分値を2で割って、New Coef[1]とNew Coef[2]に加減算してもよい。このように、補間画素との距離とが近い既知画素におけるフィルター係数は、画素補間に及ぼす影響が大きいため、台形歪み補正後の映像がシャープになる傾向が強い。   (1) In the present embodiment described above, an example was shown in which the difference value between the sum of the interpolation filter coefficients and the reference value (= 1) is divided by 2 and added to or subtracted from New Coef [0] and New Coef [3]. However, the filter coefficient may be adjusted by other methods. For example, the difference value between the sum of interpolation filter coefficients and the reference value (= 1) may be divided by 2 and added to or subtracted from New Coef [1] and New Coef [2]. As described above, since the filter coefficient in the known pixel that is close to the interpolation pixel has a great influence on the pixel interpolation, the image after the trapezoidal distortion correction tends to be sharp.

(2)また、補間フィルター係数の総和と基準値(=1)との差分値を4で割って、New Coef[0]〜New Coef[3]全てに対して加減算を行ってもよい。   (2) Alternatively, the difference value between the sum of the interpolation filter coefficients and the reference value (= 1) may be divided by 4, and addition / subtraction may be performed on all of New Coef [0] to New Coef [3].

(3)変形例(1)において、差分値を2で割った場合に小数部6bitで表現できない場合には、New Coef[1]とNew Coef[2]のいずれか一方に差分値を加減算するようにしてもよい。なお、上記した実施例および変形例(1)において、差分値を2で割った場合に小数部6bitで表現できない場合に、差分値を配分する2つの係数のうち、いずれか一方に、2で割り切れなかった余りを付与してもよい。   (3) In the modified example (1), when the difference value is divided by 2 and cannot be expressed by the decimal part 6 bits, the difference value is added to or subtracted from either New Coef [1] or New Coef [2]. You may do it. In the above-described embodiment and modification example (1), when the difference value is divided by 2, if it cannot be expressed by the decimal part 6 bits, one of the two coefficients for allocating the difference value is 2 You may give the remainder which was not divisible.

(4)1フレームの画素数、キャッシュブロックの画素数、および補間ブロックの画素数(画素補間に用いる画素数)は、上記実施例に限定されない。画素補間に用いる画素数が上記実施例と異なる場合には、フィルター係数の総和が基準値になるように、適切にフィルター係数の調整を行うことが好ましい。   (4) The number of pixels in one frame, the number of pixels in the cache block, and the number of pixels in the interpolation block (the number of pixels used for pixel interpolation) are not limited to the above embodiment. When the number of pixels used for pixel interpolation is different from that in the above embodiment, it is preferable to appropriately adjust the filter coefficient so that the sum of the filter coefficients becomes the reference value.

(5)上記した実施例において、プロジェクター100は、透過型の液晶パネル部192を用いて、照明光学系190からの光を変調しているが、透過型の液晶パネル部192に限定されず、例えば、デジタル・マイクロミラー・デバイス(DMD(登録商標):Digital Micro−Mirror Device)や、反射型の液晶パネル(LCOS(登録商標):Liquid Crystal on Silicon)等を用いて、照明光学系190からの光を変調する構成にしてもよい。また、小型CRT(陰極線管)上の映像を被投写面に投写するCRTプロジェクターでもよいし、有機ELを用いて映像光を生成する構成にしてもよい。   (5) In the embodiment described above, the projector 100 modulates the light from the illumination optical system 190 using the transmissive liquid crystal panel unit 192, but is not limited to the transmissive liquid crystal panel unit 192. For example, using a digital micromirror device (DMD (registered trademark): Digital Micro-Mirror Device), a reflective liquid crystal panel (LCOS (registered trademark): Liquid Crystal on Silicon), etc., from the illumination optical system 190 The light may be modulated. Further, it may be a CRT projector that projects an image on a small CRT (cathode ray tube) onto a projection surface, or may be configured to generate image light using an organic EL.

(6)上記実施例においてハードウェアで実現されている機能の一部をソフトウェアで実現してもよく、あるいは、ソフトウェアで実現されている機能の一部をハードウェアで実現してもよい。   (6) In the above embodiment, a part of the function realized by hardware may be realized by software, or a part of the function realized by software may be realized by hardware.

(7)上記実施例において、台形歪み補正部120は、補正後座標の1画素(座標)ごとに、その周辺の複数の画素を用いつつ変形率を算出しているが、変形率の算出方法は、上記した実施例に限定されない。例えば、1画素(座標)と水平・垂直方向における隣の画素(座標)と変形率を個別に算出するほか、変形後映像を複数の画素(座標)ごとにブロックに分け、そのブロックごとに変形率を導出し、ブロックに含まれる全ての画素(座標)に、ブロックに対応する変形率を適用するようにしてもよい。   (7) In the above embodiment, the trapezoidal distortion correction unit 120 calculates the deformation rate for each pixel (coordinate) of the corrected coordinates using a plurality of surrounding pixels. Is not limited to the embodiments described above. For example, one pixel (coordinate), the neighboring pixel (coordinate) in the horizontal and vertical directions, and the deformation rate are calculated separately, and the deformed video is divided into blocks for each pixel (coordinate) and deformed for each block The rate may be derived, and the deformation rate corresponding to the block may be applied to all the pixels (coordinates) included in the block.

(8)上記した実施例において、補正後座標における変形率を導出する場合に、対象補正後座標の周囲の8座標を用いて、変形率を導出しているが、変形率の導出方法は、上記した実施例に限定されない。例えば、対象補正後座標の隣の1座標(x方向、y方向それぞれ、1座標ずつ)を用いて、変形率を導出してもよい。   (8) In the above-described embodiment, when the deformation rate in the corrected coordinates is derived, the deformation rate is derived using 8 coordinates around the target corrected coordinates. It is not limited to the above-described embodiment. For example, the deformation rate may be derived using one coordinate (one coordinate each in the x direction and the y direction) adjacent to the target corrected coordinate.

(9)上記実施例において、対象画素の周辺16画素を用いて、水平補間を行なった後に、垂直補間を行なうことにより、対象画素の画素値を求める例を示したが、水平方向(x方向)と垂直方向(y方向)の補間距離の影響を考慮した2次元の補間フィルターを用いて画素補間を行なう構成にしてもよい。   (9) In the above embodiment, the example in which the pixel value of the target pixel is obtained by performing horizontal interpolation after performing horizontal interpolation using 16 pixels around the target pixel is shown. ) And the interpolation distance in the vertical direction (y direction) may be used to perform pixel interpolation using a two-dimensional interpolation filter.

(10)上記した実施例において、映像表示装置として、プロジェクターを例示したが、映像表示装置としては、投写型のプロジェクターに限定されず、液晶パネル、有機EL(Electro-Luminescence:エレクトロルミネッセンス)パネル等の映像表示部に映像を表示させる映像表示装置であってもよい。例えば、薄膜状の有機EL表示パネルを筒状にして構成された映像表示部に、矩形の映像を表示させる場合には、入力される映像に対して所定の変形処理を施す必要がある。また、例えば、元映像の縦横比と異なる縦横比の映像になるような変形処理や、平行四辺形、それ以外の四角形等、種々の形状になるような変形処理を施す場合もある。   (10) In the above-described embodiments, the projector is exemplified as the video display device. However, the video display device is not limited to the projection type projector, but a liquid crystal panel, an organic EL (Electro-Luminescence) panel, or the like. It may be a video display device that displays video on the video display unit. For example, when a rectangular image is displayed on an image display unit configured by forming a thin organic EL display panel into a cylindrical shape, it is necessary to perform a predetermined deformation process on the input image. In addition, for example, deformation processing that causes an image with an aspect ratio different from the aspect ratio of the original image, or deformation processing that has various shapes such as a parallelogram or other quadrangle may be performed.

また、例えば、液晶パネル(映像表示部)を備えるデジタルカメラ(映像表示装置)において、映像処理装置が、台形歪み補正を行うものであってもよい。この場合、映像処理装置は、カメラのセンサーが、被写体に対して平行でない場合に生じる歪み(パースペクティブの歪み)を補正して、映像表示部に出力することによって、カメラのセンサーが被写体に対して平行になるように撮影した映像が、映像表示部に表示される。このよう場合にも、変形率に基づいてフィルター係数を導出し、そのフィルター係数の総和が基準値になるように調整することにより、画質の劣化を抑制することができる。   Further, for example, in a digital camera (video display device) including a liquid crystal panel (video display unit), the video processing device may perform trapezoidal distortion correction. In this case, the video processing apparatus corrects distortion (perspective distortion) that occurs when the camera sensor is not parallel to the subject and outputs the corrected image to the video display unit. An image shot so as to be parallel is displayed on the image display unit. Also in this case, it is possible to suppress the deterioration of the image quality by deriving the filter coefficients based on the deformation rate and adjusting the sum of the filter coefficients to be the reference value.

(11)上記実施例では、固定小数点演算を行うことによる演算誤差を修正する場合を例に挙げて説明したが、本発明は、固定小数点演算を行うことによる演算誤差に限定されず、例えば、非線形補間を行うことによる誤差や、水平補間と垂直補間とで異なる補間を行う場合に生じる誤差等、種々の理由により誤差が生じるものに適用することができる。   (11) In the above embodiment, the case where the calculation error caused by performing the fixed point calculation is corrected has been described as an example. However, the present invention is not limited to the calculation error caused by performing the fixed point calculation. The present invention can be applied to an error caused by various reasons such as an error caused by nonlinear interpolation and an error caused when different interpolation is performed between horizontal interpolation and vertical interpolation.

100…プロジェクター
102…高速バス
104…低速バス
110…映像入力部
112…IP変換部
114…解像度変換部
116…映像合成部
120…台形歪み補正部
121…キャッシュブロック制御部
122…キャッシュブロック記憶部
123…キャッシュブロック用タグ情報記憶部
124…補間ブロック読み出し部
125…画素補間部
126…FIFO部
127…レジスター部
128…制御部
129…座標変換部
130…変形量算出部
131…ヒット判定部
132…フィルター係数選択部
133…フィルター係数補間部
134…補間結果判定部
135…フィルター係数調整部
136…フィルター係数記憶部
140…液晶パネル駆動部
150…フレームバッファー
160…高速バス制御部
162…低速バス制御部
170…プロセッサー部
180…撮像部
182…センサー部
190…照明光学系
192…液晶パネル部
194…投写光学系
SC…スクリーン
IG0…補正前映像
IG1…補正後映像
DESCRIPTION OF SYMBOLS 100 ... Projector 102 ... High speed bus 104 ... Low speed bus 110 ... Video input part 112 ... IP conversion part 114 ... Resolution conversion part 116 ... Video composition part 120 ... Trapezoid distortion correction part 121 ... Cache block control part 122 ... Cache block memory | storage part 123 ... tag information storage unit for cache block 124 ... interpolation block reading unit 125 ... pixel interpolation unit 126 ... FIFO unit 127 ... register unit 128 ... control unit 129 ... coordinate conversion unit 130 ... deformation amount calculation unit 131 ... hit determination unit 132 ... filter Coefficient selection section 133 ... Filter coefficient interpolation section 134 ... Interpolation result determination section 135 ... Filter coefficient adjustment section 136 ... Filter coefficient storage section 140 ... Liquid crystal panel drive section 150 ... Frame buffer 160 ... High-speed bus control section 162 ... Low-speed bus control section 170 ... Processor part 180 ... Imaging part 182 ... Sensor part 190 ... Illumination optical system 192 ... Liquid crystal panel part 194 ... Projection optical system SC ... Screen IG0 ... Image before correction IG1 ... Image after correction

Claims (6)

映像処理装置であって、
元映像に対して、予め定められた規則に基づいた変形処理を施した場合の変形後映像における画素について、前記元映像に対する前記変形後映像の変形率を導出する変形率導出部と、
前記元映像の画素値を用いて、画素補間により前記変形後映像の画素値を導出するためのフィルター係数を記憶する記憶部であって、所定の離散した各変形率に対して複数の前記フィルター係数を関連付けて記憶するフィルター係数記憶部と、
前記変形後映像の前記画素毎の前記変形率に基づいて、前記複数のフィルター係数を選択するフィルター係数選択部であって、前記導出された変形率が前記フィルター係数記憶部に記憶されている所定の変形率と一致しない場合には、前記導出された変形率に近い複数の変形率に対応するフィルター係数を選択するフィルター係数選択部と、
前記フィルター係数選択部において、複数の変形率に対応するフィルター係数が選択された場合に、前記複数の変形率に対応して選択されたフィルター係数に基づいて補間することにより前記導出された変形率に対応するフィルター係数を生成するフィルター係数補間部と、
前記フィルター係数補間部において導出されたフィルター係数である補間フィルター係数が所定の条件を満たすか否かを判定する補間結果判定部と、
前記補間結果判定部において、前記所定の条件を満たさないと判定された場合に、前記補間フィルター係数を調整し、調整フィルター係数を生成するフィルター係数調整部と
前記調整フィルター係数を用いて、前記画素補間により前記変形後映像の各画素の画素値を導出して出力する画素補間部と、
を備える、映像処理装置。
A video processing device,
A deformation rate deriving unit for deriving a deformation rate of the post-deformation video with respect to the original video for pixels in the post-deformation video when the original video is subjected to deformation processing based on a predetermined rule;
A storage unit for storing a filter coefficient for deriving a pixel value of the post-deformation video by pixel interpolation using a pixel value of the original video, and a plurality of the filters for each predetermined discrete deformation rate A filter coefficient storage unit that associates and stores coefficients;
A filter coefficient selection unit that selects the plurality of filter coefficients based on the deformation rate for each pixel of the post-deformation image, wherein the derived deformation rate is stored in the filter coefficient storage unit. A filter coefficient selecting unit that selects filter coefficients corresponding to a plurality of deformation ratios close to the derived deformation ratio,
In the filter coefficient selection unit, when filter coefficients corresponding to a plurality of deformation ratios are selected, the derived deformation ratio is obtained by performing interpolation based on the filter coefficients selected corresponding to the plurality of deformation ratios. A filter coefficient interpolation unit that generates a filter coefficient corresponding to
An interpolation result determination unit that determines whether or not an interpolation filter coefficient that is a filter coefficient derived in the filter coefficient interpolation unit satisfies a predetermined condition;
In the interpolation result determination unit, when it is determined that the predetermined condition is not satisfied, the interpolation filter coefficient is adjusted and a filter coefficient adjustment unit that generates an adjustment filter coefficient and the adjustment filter coefficient A pixel interpolation unit that derives and outputs a pixel value of each pixel of the transformed video by interpolation;
A video processing apparatus.
請求項1に記載の映像処理装置において、
前記変形処理は台形歪み補正処理である映像処理装置。
The video processing apparatus according to claim 1,
The image processing apparatus, wherein the deformation process is a trapezoidal distortion correction process.
請求項1または2に記載の映像処理装置において、
前記所定の条件は、
前記導出された変形率に対応する複数の前記補間フィルター係数の総和が1である映像処理装置。
The video processing apparatus according to claim 1 or 2,
The predetermined condition is:
A video processing apparatus in which a sum of a plurality of the interpolation filter coefficients corresponding to the derived deformation rate is 1.
請求項1ないし3のいずれか一つに記載の映像処理装置において、
前記変形率導出部は、前記変形後映像の1画素ごとに前記変形率を導出する、映像処理装置。
The video processing device according to any one of claims 1 to 3,
The image processing apparatus, wherein the deformation rate deriving unit derives the deformation rate for each pixel of the image after deformation.
映像表示装置であって、
映像処理装置と、
前記映像処理装置から出力された映像データに基づいて、前記映像データに対応する映像を表示する映像表示部と、
を備え、
前記映像処理装置は、
元映像に対して、予め定められた規則に基づいた変形処理を施した場合の変形後映像における画素について、前記元映像に対する前記変形後映像の変形率を導出する変形率導出部と、
前記元映像の画素値を用いて、画素補間により前記変形後映像の画素値を導出するためのフィルター係数を記憶する記憶部であって、所定の離散した各変形率に対して複数の前記フィルター係数を関連付けて記憶するフィルター係数記憶部と、
前記変形後映像の前記画素毎の前記変形率に基づいて、前記複数のフィルター係数を選択するフィルター係数選択部であって、前記導出された変形率が前記フィルター係数記憶部に記憶されている所定の変形率と一致しない場合には、前記導出された変形率に近い複数の変形率に対応するフィルター係数を選択するフィルター係数選択部と、
前記フィルター係数選択部において、複数の変形率に対応するフィルター係数が選択された場合に、前記複数の変形率に対応して選択されたフィルター係数に基づいて補間することにより前記導出された変形率に対応するフィルター係数を生成するフィルター係数補間部と、
前記フィルター係数補間部において導出されたフィルター係数である補間フィルター係数が所定の条件を満たすか否かを判定する補間結果判定部と、
前記補間結果判定部において、前記所定の条件を満たさないと判定された場合に、前記補間フィルター係数を調整し、調整フィルター係数を生成するフィルター係数調整部と
前記調整フィルター係数を用いて、前記画素補間により前記変形後映像の各画素の画素値を導出して出力する画素補間部と、
を備える映像表示装置。
A video display device,
A video processing device;
A video display unit for displaying a video corresponding to the video data based on the video data output from the video processing device;
With
The video processing device includes:
A deformation rate deriving unit for deriving a deformation rate of the post-deformation video with respect to the original video for pixels in the post-deformation video when the original video is subjected to deformation processing based on a predetermined rule;
A storage unit for storing a filter coefficient for deriving a pixel value of the post-deformation video by pixel interpolation using a pixel value of the original video, and a plurality of the filters for each predetermined discrete deformation rate A filter coefficient storage unit that associates and stores coefficients;
A filter coefficient selection unit that selects the plurality of filter coefficients based on the deformation rate for each pixel of the post-deformation image, wherein the derived deformation rate is stored in the filter coefficient storage unit. A filter coefficient selecting unit that selects filter coefficients corresponding to a plurality of deformation ratios close to the derived deformation ratio,
In the filter coefficient selection unit, when filter coefficients corresponding to a plurality of deformation ratios are selected, the derived deformation ratio is obtained by performing interpolation based on the filter coefficients selected corresponding to the plurality of deformation ratios. A filter coefficient interpolation unit that generates a filter coefficient corresponding to
An interpolation result determination unit that determines whether or not an interpolation filter coefficient that is a filter coefficient derived in the filter coefficient interpolation unit satisfies a predetermined condition;
In the interpolation result determination unit, when it is determined that the predetermined condition is not satisfied, the interpolation filter coefficient is adjusted and a filter coefficient adjustment unit that generates an adjustment filter coefficient and the adjustment filter coefficient A pixel interpolation unit that derives and outputs a pixel value of each pixel of the transformed video by interpolation;
A video display device comprising:
請求項5に記載の映像表示装置であって、
前記映像処理装置は、前記元映像に対して台形歪み補正を施した映像を表す映像データを前記映像表示部に出力する映像表示装置。
The video display device according to claim 5,
The video display device outputs video data representing video obtained by performing trapezoidal distortion correction on the original video to the video display unit.
JP2010065775A 2010-03-23 2010-03-23 projector Active JP5531701B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010065775A JP5531701B2 (en) 2010-03-23 2010-03-23 projector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010065775A JP5531701B2 (en) 2010-03-23 2010-03-23 projector

Publications (2)

Publication Number Publication Date
JP2011199712A true JP2011199712A (en) 2011-10-06
JP5531701B2 JP5531701B2 (en) 2014-06-25

Family

ID=44877319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010065775A Active JP5531701B2 (en) 2010-03-23 2010-03-23 projector

Country Status (1)

Country Link
JP (1) JP5531701B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05130452A (en) * 1991-10-31 1993-05-25 Hitachi Ltd Variable filter device
JPH10275227A (en) * 1997-03-31 1998-10-13 Sony Corp Image processor and method therefor
JP2003152993A (en) * 2001-11-13 2003-05-23 Konica Corp Image processing device
JP2005012561A (en) * 2003-06-19 2005-01-13 Sony Corp Image processing apparatus, image processing method, and image projector
JP2007311916A (en) * 2006-05-16 2007-11-29 Matsushita Electric Ind Co Ltd Signal processor
JP2010026870A (en) * 2008-07-22 2010-02-04 Seiko Epson Corp Image processing apparatus, image display apparatus and image data generating method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05130452A (en) * 1991-10-31 1993-05-25 Hitachi Ltd Variable filter device
JPH10275227A (en) * 1997-03-31 1998-10-13 Sony Corp Image processor and method therefor
JP2003152993A (en) * 2001-11-13 2003-05-23 Konica Corp Image processing device
JP2005012561A (en) * 2003-06-19 2005-01-13 Sony Corp Image processing apparatus, image processing method, and image projector
JP2007311916A (en) * 2006-05-16 2007-11-29 Matsushita Electric Ind Co Ltd Signal processor
JP2010026870A (en) * 2008-07-22 2010-02-04 Seiko Epson Corp Image processing apparatus, image display apparatus and image data generating method

Also Published As

Publication number Publication date
JP5531701B2 (en) 2014-06-25

Similar Documents

Publication Publication Date Title
JP5997882B2 (en) Projector and projector control method
JP5098869B2 (en) Image processing apparatus, image display apparatus, and image data generation method
JP3871061B2 (en) Image processing system, projector, program, information storage medium, and image processing method
JP5348022B2 (en) Projector and projection conversion processing apparatus
JP5842694B2 (en) Image processing apparatus, projector, and projector control method
JP2011193332A (en) Projector and video projection method
JP5348035B2 (en) projector
JP5533109B2 (en) Image display device, projector, and data acquisition method in image display device
JP2015192177A (en) Image processor, display device, and image processing method
EP1331815A2 (en) Projection-type display device having distortion correcting function
JP5531701B2 (en) projector
JP5207832B2 (en) Display device
JP2011211274A (en) Image display apparatus, projector, and data acquiring method in the image display apparatus
TW201917698A (en) Multi-dimensional image projection apparatus and multi-dimensional image calibration method thereof
JP5353772B2 (en) projector
JP5413265B2 (en) Image display device and projector
JP2010288062A (en) Projector, program, information storage medium, and image projection method
JP5915001B2 (en) Projector and projector control method
JP2020191586A (en) Projection device
JP6418010B2 (en) Image processing apparatus, image processing method, and display apparatus
JP5407928B2 (en) Projection display apparatus and display method
JP6056220B2 (en) Projector and control method thereof
JP2005092575A (en) Method for correcting three-dimensional image data, video controller, and projector
JP2011176389A (en) Projection type display device and display method
JP5630851B2 (en) Projector and processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130205

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130708

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130730

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130930

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140407

R150 Certificate of patent or registration of utility model

Ref document number: 5531701

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350