JP2020061662A - Video processing device, video processing method, and program - Google Patents

Video processing device, video processing method, and program Download PDF

Info

Publication number
JP2020061662A
JP2020061662A JP2018191955A JP2018191955A JP2020061662A JP 2020061662 A JP2020061662 A JP 2020061662A JP 2018191955 A JP2018191955 A JP 2018191955A JP 2018191955 A JP2018191955 A JP 2018191955A JP 2020061662 A JP2020061662 A JP 2020061662A
Authority
JP
Japan
Prior art keywords
image
representative point
coordinates
representative
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.)
Pending
Application number
JP2018191955A
Other languages
Japanese (ja)
Inventor
直樹 小嶋
Naoki Kojima
直樹 小嶋
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2018191955A priority Critical patent/JP2020061662A/en
Publication of JP2020061662A publication Critical patent/JP2020061662A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Transforming Electric Information Into Light Information (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

To correct distortion with high accuracy so that distortion felt by a viewer can be satisfactorily reduced even when projection is performed on a projection surface having an inflection point.SOLUTION: The image projection device includes: adjusting means (308) for adjusting to match a position of a representative point set for an area including an input image to a position of an inflection point in a shape of a projection surface on which the image is projected; calculation means (309) for calculating deformation coordinates of the representative point on the basis of the position of the representative point; and deforming means (301) for generating an image to be projected on the projection surface by deforming the input image on the basis of the deformation coordinates of the representative point.SELECTED DRAWING: Figure 3

Description

本発明は、投射される映像を処理する技術に関する。   The present invention relates to a technique for processing a projected image.

近年、映像投射装置は、平面にとどまらず、円柱やドームなどの曲面に対しても映像を投射するユースケースが増えている。このような多様な投射面への投射がなされる場合でも、視聴者に投射映像の歪みを感じさせないようにする、画像変形機能を搭載した映像投射装置が商品化されている。この画像変形機能を備えた映像投射装置は、元画像を投射面に合わせるように変形し、その変形後の画像を投射する。これにより、視聴者は歪みを感じない映像を視聴できることになる。また、画像変形機能については、平面の投射面にだけ対応するのであれば原理的な変形演算機能のみ搭載すればよいが、円柱やドームなど全ての投写面に対応可能な変形演算機能を搭載する場合には回路規模が増大化するという問題が生ずる。   2. Description of the Related Art In recent years, video projectors have been increasingly used for projecting images not only on flat surfaces but also on curved surfaces such as cylinders and domes. Even when such various projection planes are projected, a video projecting device equipped with an image transforming function has been commercialized so that the viewer does not feel the distortion of the projected image. The video projection device having this image transformation function transforms the original image so as to match the projection surface, and projects the transformed image. As a result, the viewer can view the image without feeling any distortion. As for the image transformation function, if only the plane projection surface is supported, only the theoretical transformation calculation function may be installed, but the transformation calculation function that is compatible with all projection surfaces such as a cylinder and a dome is provided. In this case, there arises a problem that the circuit scale increases.

このような回路規模の増大を抑制しつつ変形演算を可能にする手法として、画像内の代表点の座標値のみをメモリに記憶しておき、そのメモリに記憶された座標値を用いて変形演算を行う手法(特許文献1)がある。特許文献1の場合、画像の座標系を均等分割した各ブロックの各頂点の座標値が、代表点の座標値としてメモリに記憶される。そして、メモリ内の代表点の座標値を用いた補間により着目画素の座標が算出され、その算出された座標値周辺の画素値から、当該着目画素の画素値が算出される。   As a method of enabling the deformation calculation while suppressing such an increase in the circuit scale, only the coordinate values of the representative points in the image are stored in the memory, and the deformation calculation is performed using the coordinate values stored in the memory. There is a method (Patent Document 1) for performing. In the case of Patent Document 1, the coordinate value of each vertex of each block obtained by equally dividing the coordinate system of the image is stored in the memory as the coordinate value of the representative point. Then, the coordinates of the pixel of interest are calculated by interpolation using the coordinate values of the representative points in the memory, and the pixel value of the pixel of interest is calculated from the pixel values around the calculated coordinate values.

国際公開第2008/139577号International Publication No. 2008/139577

ところで、投射面は、平面や曲面の他に、四角柱などのような変曲点を持つ面の場合もある。このような変曲点を持つ投射面についても、前述同様に、画像内の代表点の座標値をメモリに記憶しておき、その座標値を投射面の形状に応じて変えるような画像変形を行うことができる。しかしながら、メモリに記憶されている代表点の位置と、実際の投射面における変曲点の位置とを合わせることができない場合、その変曲点周辺の画像変形の際に算出される座標値の精度が著しく低下してしまうことになる。これにより、視聴者の感じる歪みを軽減することが難しくなる。   By the way, the projection surface may be a surface having an inflection point such as a square pole in addition to a flat surface or a curved surface. As for the projection surface having such an inflection point, similarly to the above, the coordinate value of the representative point in the image is stored in the memory, and the image transformation is performed such that the coordinate value is changed according to the shape of the projection surface. It can be carried out. However, if the position of the representative point stored in the memory and the position of the inflection point on the actual projection surface cannot be matched, the accuracy of the coordinate value calculated when the image around the inflection point is deformed. Will be significantly reduced. This makes it difficult to reduce the distortion felt by the viewer.

そこで、本発明は、変曲点を有する投射面への投射が行われる場合でも、精度良く歪みを補正でき、視聴者の感じる歪みを良好に軽減可能にすることを目的とする。   Therefore, it is an object of the present invention to accurately correct distortion even when projection is performed on a projection surface having an inflection point, and it is possible to favorably reduce distortion felt by a viewer.

本発明の映像処理装置は、入力映像を含む領域について設定された代表点の位置を、映像が投射される投射面の形状における変曲点の位置に合わせるように調整する調整手段と、前記代表点の位置を基に、前記代表点の変形座標を算出する算出手段と、前記代表点の変形座標に基づいて前記入力映像を変形して、前記投射面に投射する映像を生成する変形手段と、を有することを特徴とする。   The image processing device of the present invention comprises adjusting means for adjusting the position of the representative point set for the area including the input image so as to match the position of the inflection point in the shape of the projection surface on which the image is projected; Calculation means for calculating the deformation coordinates of the representative point based on the position of the point; and deformation means for deforming the input image based on the deformation coordinates of the representative point to generate an image projected on the projection surface. , Are included.

本発明によれば、変曲点を有する投射面への投射が行われる場合でも、精度良く歪みを補正でき、視聴者の感じる歪みを良好に軽減可能となる。   According to the present invention, even when the projection is performed on the projection surface having the inflection point, the distortion can be accurately corrected, and the distortion felt by the viewer can be satisfactorily reduced.

実施形態の映像投射システムの概略構成を示す図である。It is a figure which shows schematic structure of the image projection system of embodiment. 画像変形と代表点の説明に用いる図である。It is a figure used for image modification and description of a representative point. 映像投射装置の主要部の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the principal part of a video projection apparatus. 代表点の変形前座標の計算方法の説明に用いる図である。It is a figure used for explaining the calculation method of the coordinates before transformation of a representative point. 代表点の始点位置調整の動作説明に用いる図である。It is a figure used for operation explanation of starting point position adjustment of a representative point. 画素値の算出方法の説明に用いる図である。It is a figure used for description of the calculation method of a pixel value. 着目画素の変形前座標の算出方法の説明に用いる図である。It is a figure used for explaining the calculation method of the coordinates before transformation of a pixel of interest. 代表点の変形前座標を計算する処理のフローチャートである。It is a flowchart of the process which calculates the coordinates before deformation of a representative point. 入力映像を変形する処理のフローチャートである。It is a flowchart of the process which deform | transforms an input image.

以下、本発明の好ましい実施の形態を添付の図面を参照して詳細に説明する。なお、以下に説明する実施形態は、本発明を具体的に実施した場合の一例を示すものであり、本発明は以下の実施形態に限定されるものではない。
図1は、本発明に係る映像処理装置の一例である映像投射装置101が適用される映像投射システムの概略構成例を示す図である。
映像投射装置101は、例えばパーソナルコンピュータのような情報処理装置100から、投影用の原画像のデータが供給され、その原画像に基づく映像を投射用表示パネル上に形成する。そして、映像投射装置101は、投射用表示パネル上に形成した映像を、光源および投射光学系を有する投影機構によりスクリーン102上に投射する。なお、本実施形態の映像投射装置101は、例えば反射型液晶プロジェクタでもよいし、透過型液晶プロジェクタでもよい。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiment described below shows an example of the case where the present invention is specifically implemented, and the present invention is not limited to the following embodiment.
FIG. 1 is a diagram showing a schematic configuration example of a video projection system to which a video projection device 101, which is an example of a video processing device according to the present invention, is applied.
The image projection apparatus 101 is supplied with data of an original image for projection from an information processing apparatus 100 such as a personal computer, and forms an image based on the original image on a projection display panel. Then, the image projection device 101 projects the image formed on the display panel for projection onto the screen 102 by a projection mechanism having a light source and a projection optical system. The image projection apparatus 101 of this embodiment may be, for example, a reflective liquid crystal projector or a transmissive liquid crystal projector.

スクリーン102は、投射面が例えば平面、円柱やドームなどの曲面の他、四角柱や部屋の角などのように変曲点を持つ面の場合もあり、本実施形態では、一例として図1に示すような折れ曲り箇所103が存在するスクリーンであるとする。本実施形態において、図1のようなスクリーン102上の折れ曲り箇所103は、投射面上で変曲点が集合した変曲線として扱われる。   In the screen 102, the projection surface may be, for example, a flat surface, a curved surface such as a cylinder or a dome, or a surface having an inflection point such as a quadrangular prism or a corner of a room. In the present embodiment, as an example, FIG. It is assumed that the screen has a bent portion 103 as shown. In the present embodiment, the bent portion 103 on the screen 102 as shown in FIG. 1 is treated as an inflection curve where inflection points are gathered on the projection surface.

本実施形態の映像投射装置101は、投射面が、投射光学系の光軸に対して傾斜した平面、円柱などの曲面、変曲点を有する面であるような場合に、それらの投射面に合わせるように原画像を変形する画像変形機能部を備えている。すなわち画像変形機能部によれば、投射面上で生ずる映像歪みとは逆方向に原画像を変形させるような映像処理が行われる。そして、その変形後の映像を投射用表示パネル上に形成して投射面上に投影することにより、投射面上に投影された映像は、視聴者から見て歪みが軽減された映像となる。   In the case where the projection surface is a plane inclined with respect to the optical axis of the projection optical system, a curved surface such as a cylinder, or a surface having an inflection point, the image projection apparatus 101 of the present embodiment is An image transformation function unit that transforms the original image so as to match is provided. That is, the image transformation function unit performs the image processing such that the original image is transformed in the direction opposite to the image distortion caused on the projection surface. Then, the image after the deformation is formed on the projection display panel and projected on the projection surface, so that the image projected on the projection surface becomes an image with distortion reduced from the viewpoint of the viewer.

ここで、本実施形態の映像投射装置101は、実際に映像投射を行う前に、画像変形機能部に対する初期設定処理が行われる。初期設定処理では、投射面の形状を想定して予め用意された数種類のモデルパターンの中で、実際の投射面形状に合ったモデルパターンが選択されて照射され、投射面上でモデルパターン映像の歪みが少なくなるような調整が行われる。このような初期設定処理時のモデルパターンの選択や調整は、例えばユーザにより行われるが、その他にも、例えば撮像装置によりスクリーンを撮影した画像を基に自動的に行われる場合もある。そして、映像投射装置101は、このような初期設定処理で得られた情報を基に、画像変形機能部において原画像を変形させる際に用いる座標値等が算出される。また本実施形態の映像投射装置101では、原画像を含む領域について複数の代表点が設定され、それら各代表点の座標を基に原画像の変形処理が行われる。ただし、例えば投射面が変曲点を持つ面であり、後述するように代表点と投影面上の変曲点とが合っていない場合、その変曲点周辺の画像変形の際に算出される座標値の精度は著しく低下してしまうことになる。   Here, the image projection apparatus 101 of the present embodiment performs an initial setting process for the image transformation function unit before actually performing image projection. In the initial setting process, a model pattern that matches the actual shape of the projection surface is selected from among several types of model patterns prepared in advance assuming the shape of the projection surface, and the model pattern image is projected on the projection surface. Adjustments are made to reduce distortion. The selection and adjustment of the model pattern at the time of such initial setting processing are performed by, for example, the user, but in addition to that, in some cases, they are automatically performed based on, for example, an image captured on a screen by an imaging device. Then, in the image projection apparatus 101, the coordinate value and the like used when the original image is deformed by the image deformation function unit is calculated based on the information obtained by such initial setting processing. Further, in the video projection device 101 of the present embodiment, a plurality of representative points are set for the area including the original image, and the original image transformation process is performed based on the coordinates of each of the representative points. However, for example, if the projection surface is a surface having an inflection point, and the representative point and the inflection point on the projection surface do not match, as will be described later, it is calculated when the image around the inflection point is deformed. The accuracy of the coordinate values will be significantly reduced.

そこで、本実施形態の映像投射装置101では、原画像を含む領域に設定された代表点の位置を、後述するように投射面の変曲点の位置に合わせるような代表点座標調整処理を実行して、画像変形処理に用いる代表点の座標を算出する。そして、映像投射装置101は、代表点座標調整処理後の代表点の座標を基に、原画像に対する画像変形処理を実行する。   Therefore, the image projection apparatus 101 according to the present embodiment executes the representative point coordinate adjustment processing for aligning the position of the representative point set in the area including the original image with the position of the inflection point on the projection surface as described later. Then, the coordinates of the representative point used in the image transformation process are calculated. Then, the image projection apparatus 101 executes the image transformation process on the original image based on the coordinates of the representative point after the representative point coordinate adjustment process.

以下、図2を参照して、本実施形態の映像投射装置101が備えている画像変形機能部について説明する。
図2の例の場合、映像投射装置101では、図1のスクリーン102のような折れ曲がり箇所103(つまり変曲点が集合した変曲線)を有する投射面上で、モデルパターン映像の歪みを少なくするような事前の初期設定処理が既に行われているとする。
Hereinafter, with reference to FIG. 2, the image transformation function unit included in the image projection apparatus 101 of the present embodiment will be described.
In the case of the example of FIG. 2, in the image projection apparatus 101, the distortion of the model pattern image is reduced on the projection surface having the bent portion 103 (that is, the curved line where the inflection points are gathered) like the screen 102 of FIG. It is assumed that such a preliminary initialization process has already been performed.

図2において、映像201は、映像投射装置101への入力映像201を表しており、画像変形前の映像であるとする。そして、入力映像201を含んだ変形前映像領域200を変形した場合、入力映像201は変形後映像205のような形状になるとする。一方、変形後映像領域204は、変形後映像205を含んだ矩形の映像領域となる。また、図中の各白丸は、画像変形後の各代表点を表しているとする。なお、図中の一点鎖線は、変曲点の集合である変曲線211を表しており、図1のスクリーン102の折れ曲り箇所103に対応しているとする。   In FIG. 2, a video 201 represents the input video 201 to the video projection device 101, and is assumed to be a video before image transformation. When the pre-deformation image area 200 including the input image 201 is transformed, the input image 201 has a shape like the transformed image 205. On the other hand, the transformed image area 204 is a rectangular image area including the transformed image 205. In addition, each white circle in the drawing represents each representative point after image transformation. Note that the alternate long and short dash line in the figure represents an inflection curve 211 that is a set of inflection points, and is assumed to correspond to the bent portion 103 of the screen 102 in FIG.

ここで、画像変形機能部は、変形後映像領域204内の着目画素の画素値を求める際には、まず、変形後映像領域204内の着目画素の座標(xo,yo)に対応した、変形前映像領域200内の画素の座標(xi,yi)を、代表点の座標値を用いて算出する。例えば水平方向の代表点のインデックスをh、垂直方向の代表点のインデックスをvとすると、画像変形機能部は、まず変形後映像領域204内の代表点座標(xoh,yov)に対応した、変形前映像領域200内の代表点座標(xih,yiv)を決定する。図2の例の場合、画像変形機能部は、まず、変形後映像領域204内の代表点208の座標(xo0,yo0)に対応した、変形前映像領域200内の代表点209の座標(xi00,yi00)を決定する。同様にして、画像変形機能部は、変形前映像領域200内の他の各代表点についてもそれぞれ座標を決定する。なお、以下の説明では、変形後映像領域204内の代表点の座標(xoh,yov)を簡略的に変形後座標pvhと呼び、変形前映像領域200内の代表点の座標(xih,yiv)を簡略的に変形前座標qvhと呼ぶことにする。図2中の各黒丸は、変形前映像領域200内の各代表点を表しているとする。そして、画像変形機能部は、このようにして求めた各代表点の座標値を用いて、変形後映像領域内の着目画素に対応した、変形前映像領域内の画素の座標値を算出する。 Here, when obtaining the pixel value of the pixel of interest in the post-deformation video area 204, the image transformation function unit first corresponds to the coordinates (x o , y o ) of the pixel of interest in the post-transformation video area 204. , The coordinates (x i , y i ) of the pixel in the pre-deformation image area 200 are calculated using the coordinate values of the representative points. For example, when the index of the horizontal representative point is h and the index of the vertical representative point is v, the image transformation function unit first corresponds to the coordinates of the representative point (x oh , y ov ) in the transformed image area 204. , The representative point coordinates (x ih , y iv ) in the pre-deformation image area 200 are determined. In the case of the example in FIG. 2, the image transformation function unit firstly, the coordinates of the representative point 209 in the pre-deformation image area 200 corresponding to the coordinates (x o0 , y o0 ) of the representative point 208 in the transformed image area 204. Determine (x i00 , y i00 ). Similarly, the image transformation function unit determines the coordinates of each of the other representative points in the pre-transformation video area 200. In the following description, the coordinates (x oh , y ov ) of the representative point in the post-deformation image area 204 will be simply referred to as the post-deformation coordinates pvh, and the coordinates (x ih ) of the representative point in the pre-deformation image area 200 will be referred to. , Y iv ) will be simply referred to as the pre-deformation coordinate qvh. It is assumed that each black circle in FIG. 2 represents each representative point in the pre-deformation image area 200. Then, the image transformation function unit uses the coordinate value of each representative point obtained in this way to calculate the coordinate value of the pixel in the pre-transformation video region corresponding to the pixel of interest in the post-transformation video region.

より具体的な例として、変形後映像領域204内の着目画素207の画素値を求める場合、画像変形機能部は、まず、変形後映像領域204内の着目画素207の座標206に対応した、変形前映像領域200内の画素の座標202を算出する。ここで変形前映像領域200内の座標202の値は小数を含む座標値であるため、画像変形機能部は、変形前映像領域200内の座標202の周囲の画素群の画素値を基に、変形後映像領域204の着目画素207の画素値を算出する。図2の場合、変形前映像領域200内の座標202の周囲の画素群として、2×2画素の4個の画素群203を例に挙げている。画像変形機能部は、それら周囲の画素群203の各画素の値と座標202とを基に、補間演算などにより、変形後映像領域204の着目画素207の画素値を算出する。   As a more specific example, when obtaining the pixel value of the pixel of interest 207 in the post-transformation video area 204, the image transformation function unit first transforms the pixel corresponding to the coordinates 206 of the pixel of interest 207 in the post-transformation video area 204. The coordinates 202 of the pixels in the previous image area 200 are calculated. Here, since the value of the coordinate 202 in the pre-deformation image area 200 is a coordinate value that includes a decimal, the image transformation function unit determines, based on the pixel value of the pixel group around the coordinate 202 in the pre-deformation image area 200, The pixel value of the target pixel 207 in the transformed image area 204 is calculated. In the case of FIG. 2, four pixel groups 203 of 2 × 2 pixels are taken as an example of the pixel group around the coordinates 202 in the pre-transformation video area 200. The image transformation function unit calculates the pixel value of the pixel of interest 207 in the post-transformation video region 204 by performing interpolation calculation or the like based on the values of the pixels of the surrounding pixel group 203 and the coordinates 202.

図3は、本実施形態に係る映像投射装置101における画像変形機能部に関する構成例を示したブロック図である。
映像投射装置101は、画像変形機能部に関する構成として、入力部300、映像変形部301、代表点算出部305、記憶部306、出力部302を有する。
入力部300は、図1の情報処理装置100から原画像(入力映像)を取得して、映像変形部301に送る。
FIG. 3 is a block diagram showing a configuration example regarding the image transformation function unit in the video projection device 101 according to the present embodiment.
The image projection device 101 includes an input unit 300, an image transformation unit 301, a representative point calculation unit 305, a storage unit 306, and an output unit 302 as a configuration related to the image transformation function unit.
The input unit 300 acquires an original image (input video) from the information processing device 100 of FIG. 1 and sends it to the video transformation unit 301.

代表点算出部305は、前述した初期設定処理後の代表点に対し、投射面の変曲点の位置に合わせるような後述する代表点座標調整処理を実行し、実際に画像変形処理を行う際に用いる代表点の変形前座標を算出する。すなわち代表点算出部305は、前述した図2の各代表点の変形後座標pvhから、各代表点の変形前座標qvhを算出するモジュールであり、調整部308と変形座標計算部309とを有する。詳細は後述するが、調整部308は、初期設定処理による代表点の位置を、投射面の変曲点の位置に合わせるような代表点座標調整処理を実行する。同じく詳細は後述するが、変形座標計算部309は、代表点座標調整処理後の各代表点の座標から、画像変形処理を行う際に用いる代表点の変形前座標を算出する。
記憶部306は、代表点算出部305により算出された各代表点の変形前座標を記憶する。この記憶部306に記憶された各代表点の変形前座標の情報は、映像変形部301により読み出される。
The representative point calculation unit 305 performs representative point coordinate adjustment processing, which will be described later, so as to match the position of the inflection point on the projection surface with respect to the representative point after the above-described initial setting processing, and when actually performing the image transformation processing. The pre-deformation coordinates of the representative point used for are calculated. That is, the representative point calculation unit 305 is a module that calculates the pre-deformation coordinates qvh of each representative point from the post-deformation coordinates pvh of each representative point in FIG. 2 described above, and includes an adjustment unit 308 and a deformation coordinate calculation unit 309. . Although the details will be described later, the adjustment unit 308 executes a representative point coordinate adjustment process that matches the position of the representative point by the initial setting process with the position of the inflection point on the projection surface. Similarly, although the details will be described later, the modified coordinate calculation unit 309 calculates the pre-deformation coordinates of the representative point used when performing the image modification process from the coordinates of each representative point after the representative point coordinate adjustment process.
The storage unit 306 stores the pre-deformation coordinates of each representative point calculated by the representative point calculation unit 305. The information on the pre-deformation coordinates of each representative point stored in the storage unit 306 is read by the image transformation unit 301.

映像変形部301は、記憶部306から読み出した各代表点の変形前座標を基に、原画像(入力映像)に対する画像変形処理を実行する。すなわち映像変形部301は、映像変形部301は、実際に画像変形処理を行うモジュールであり、着目座標算出部303と画素算出部304とを有する。詳細は後述するが、着目座標算出部303は、記憶部306に記憶されている各代表点の変形前座標を基に、着目画素の変形前座標を補間により算出する。同じく詳細は後述するが、画素算出部304は、着目座標算出部303により算出された着目画素の変形前座標と、その周囲の画素群の画素値とから、着目画素の画素値を算出する。
出力部302は、映像変形部301による画像変形処理後の映像を、投射用表示パネルに出力する。
The image transformation unit 301 performs image transformation processing on the original image (input image) based on the untransformed coordinates of each representative point read from the storage unit 306. That is, the image transformation unit 301 is a module that actually performs the image transformation process, and includes the focused coordinate calculation unit 303 and the pixel calculation unit 304. Although the details will be described later, the focused coordinate calculation unit 303 calculates the untransformed coordinates of the focused pixel based on the untransformed coordinates of each representative point stored in the storage unit 306 by interpolation. Similarly, although the details will be described later, the pixel calculation unit 304 calculates the pixel value of the target pixel from the pre-deformation coordinates of the target pixel calculated by the target coordinate calculation unit 303 and the pixel values of the surrounding pixel group.
The output unit 302 outputs the image after the image transformation processing by the image transformation unit 301 to the projection display panel.

以下、図3に示した各構成についてさらに詳細に説明する。
代表点算出部305は、前述した初期設定処理による入力映像の変形量を計算する。より詳細には、代表点算出部305は、以下の式(1)により、変形後映像領域の各代表点の変形後座標pvh(xovh,yovh)に対応した、変形前映像領域の各代表点の変形前座標qvh(xivh,yivh)を算出する。
Hereinafter, each configuration shown in FIG. 3 will be described in more detail.
The representative point calculation unit 305 calculates the amount of deformation of the input image by the above-described initial setting process. More specifically, the representative point calculation unit 305 calculates each pre-deformation video area corresponding to the post-deformation coordinates pvh (x ovh , y ovh ) of each representative point of the post-deformation video area by the following equation (1). The pre-deformation coordinates qvh (x ivh , y ivh ) of the representative point are calculated.

qvh(xivh,yivh)=f(pvh(xovh,yovh)) 式(1) qvh (x ivh , y ivh ) = f (pvh (x ovh , yovh)) Expression (1)

ここで、式(1)のf()は変形後映像領域の代表点の変形後座標を、変形前映像領域の代表点の変形前座標へ対応付ける作用素である。すなわち代表点算出部305が決定する座標は、各代表点における該作用素を使った、変形前座標である。なお、作用素は、映像投影がなされるスクリーンの形状に基づいたものである。
以下、作用素について、図1のスクリーン102を例に挙げて詳しく説明する。
Here, f () in Expression (1) is an operator that associates the post-deformation coordinates of the representative point of the post-deformation video region with the pre-deformation coordinates of the representative point of the pre-deformation video region. That is, the coordinates determined by the representative point calculation unit 305 are the pre-deformation coordinates using the operator at each representative point. The operator is based on the shape of the screen on which the image is projected.
Hereinafter, the operator will be described in detail by taking the screen 102 of FIG. 1 as an example.

図1に示したスクリーン102は、前述したように折れ曲り箇所103で二つの平面が組み合わされたような投射面を有するものとなされている。図4は、スクリーン102に映像を投影する場合の各作用素算出の説明に用いる図である。作用素f()としては、図4に示すように、水平方向座標xwを境に、それぞれの平面に対応した台形補正を行う作用素を二つ組み合わせるのが適当である。これを式(2)で表すと、スクリーン102における作用素f()は以下の通りである。 The screen 102 shown in FIG. 1 has a projection surface in which two flat surfaces are combined at the bent portion 103 as described above. FIG. 4 is a diagram used to explain each operator calculation when an image is projected on the screen 102. As the operator f (), as shown in FIG. 4, it is suitable to combine two operators for performing trapezoidal correction corresponding to the respective planes with the horizontal coordinate x w as a boundary. When this is expressed by the equation (2), the operator f () on the screen 102 is as follows.

ovh<xwでは、
f(pvh(xovh,yovh))=G1(pvh(xovh,yovh))
ovh>=xwでは、
f(pvh(xovh,yovh))=G2(pvh(xovh,yovh))
式(2)
x ovh <x w ,
f (pvh (x ovh , y ovh )) = G1 (pvh (x ovh , y ovh ))
For x ovh > = x w ,
f (pvh (x ovh , y ovh )) = G2 (pvh (x ovh , y ovh ))
Equation (2)

なお、式(2)の作用素G1()は、図4の4点m1,m2,m5,m4で示す四角形を、4点n1,n2,n5,n4で示す歪みのない基準四角形へ変形する台形補正の式である。また、作用素G2()は、図4の4点m2,m3,m6,m5で示す四角形を、4点n2,n3,n6,n5で示す基準四角形へ変形する台形補正の式である。台形補正の演算は既存の演算式を用いることができその説明は省略する。なお、スクリーンの形状モデルは、スクリーン102のような平面を二つ組み合わせたものだけでなく、平面を三つ組み合わせたもの、円柱、円柱と平面を組み合わせたものなどいずれであってもよい。 Incidentally, operator G1 of the formula (2) (), the strain indicated by a rectangle shown by four points m 1, m 2, m 5 , m 4 in FIG. 4, four points n 1, n 2, n 5 , n 4 This is a trapezoidal correction formula that transforms into a standard quadrangle without. The operator G2 () is a trapezoid that transforms the quadrangle shown by the four points m 2 , m 3 , m 6 , and m 5 in FIG. 4 into a reference quadrangle shown by the four points n 2 , n 3 , n 6 , and n 5. This is a correction formula. An existing arithmetic expression can be used for the calculation of the trapezoidal correction, and the description thereof will be omitted. The shape model of the screen is not limited to a combination of two flat surfaces like the screen 102, but may be a combination of three flat surfaces, a cylinder, or a combination of a cylinder and a flat surface.

調整部308は、代表点の始点座標を調整する。
図5は、代表点の始点座標の調整例の説明に用いる図である。
図5(a)および図5(b)において、図中の白丸により表される各点がそれぞれ代表点である。
図5(a)中の太枠線で表される矩形は入力映像520を表しているとする。代表点は、水平方向にW画素間隔ごと、垂直方向にH画素間隔ごとに設定され、入力映像よりも広い領域に設定される。例えば、入力映像520が水平方向に6×W画素で垂直方向に4×H画素の大きさである場合、代表点が設定される領域の大きさは、例えば水平方向が9×W画素で垂直方向が7×H画素の大きさとする。すなわちこの例の場合、代表点は、水平方向が9個で、垂直方向が7個の、合計63個が設定される。また、代表点の始点座標は左上端の代表点509の座標となされる。例えば入力映像520の左上端部の座標を(0,0)とし、当該入力映像520の左上端部が例えば代表点500と一致しているとすると、代表点509の始点座標は(−W,−H)となる。また、図5(b)は図5(a)とは別の例を示した図である。図5(b)の例でも入力映像520の左上端部の座標を(0,0)とするが、当該入力映像520の左上端部は水平方向の代表点間隔(W画素)の1/2の位置である場合を示している。この図5(b)の例の場合、代表点507の始点座標は(−W/2,−H)となる。
The adjusting unit 308 adjusts the starting point coordinates of the representative point.
FIG. 5 is a diagram used to describe an example of adjusting the starting point coordinates of the representative point.
In FIGS. 5A and 5B, each point represented by a white circle in the figure is a representative point.
It is assumed that the rectangle represented by the thick frame line in FIG. 5A represents the input image 520. The representative points are set at intervals of W pixels in the horizontal direction and at intervals of H pixels in the vertical direction, and are set in a wider area than the input image. For example, when the input image 520 has a size of 6 × W pixels in the horizontal direction and a size of 4 × H pixels in the vertical direction, the size of the area in which the representative point is set is, for example, 9 × W pixels in the horizontal direction and vertical. The direction has a size of 7 × H pixels. That is, in the case of this example, a total of 63 representative points are set, with 9 representative points in the horizontal direction and 7 representative points in the vertical direction. The starting point coordinates of the representative point are the coordinates of the representative point 509 at the upper left end. For example, assuming that the coordinates of the upper left end of the input image 520 is (0, 0) and the upper left end of the input image 520 is coincident with the representative point 500, the starting point coordinate of the representative point 509 is (-W, -H). Further, FIG. 5B is a diagram showing an example different from that of FIG. Also in the example of FIG. 5B, the coordinates of the upper left end of the input image 520 are set to (0, 0), but the upper left end of the input image 520 is ½ of the horizontal representative point interval (W pixel). It shows the case of the position. In the example of FIG. 5B, the starting point coordinates of the representative point 507 are (-W / 2, -H).

ここで、前述の図2に示したように、変曲点の集合である変曲線211が代表点の位置と合っていない場合、着目座標算出部303で算出される着目画素座標の算出精度は低下してしまうことになる。例えば図2の四つの代表点p14,p15,p25,p24からなる四角形内の着目画素を例にすると、その着目画素の座標は、それら四つの代表点の座標を用いた補間により算出されることになる。しかしながら、それら四つの代表点p14,p15,p25,p24の四角形内には変曲線211が存在しているため、補間により算出される着目画素の座標の精度が低くなってしまうことになる。例えば図5(a)で変曲点が代表点の位置に合っておらず、一方図5(b)で変曲点が代表点の位置に合っていたとすると、図5(a)の例では着目座標の算出精度が低くなり、一方図5(b)の例では着目画素の座標の算出精度は低下しないことになる。 Here, as shown in FIG. 2 above, when the inflection curve 211, which is a set of inflection points, does not match the position of the representative point, the calculation accuracy of the pixel-of-interest coordinates calculated by the coordinates-of-interest calculating unit 303 is It will decrease. For example, taking a pixel of interest within a quadrangle consisting of four representative points p 14 , p 15 , p 25 , and p 24 in FIG. 2 as an example, the coordinates of the pixel of interest are determined by interpolation using the coordinates of these four representative points. Will be calculated. However, since the curved line 211 exists in the quadrangle of these four representative points p 14 , p 15 , p 25 , and p 24 , the accuracy of the coordinates of the pixel of interest calculated by interpolation becomes low. become. For example, if the inflection point does not match the position of the representative point in FIG. 5A, while the inflection point does not match the position of the representative point in FIG. 5B, then in the example of FIG. The calculation accuracy of the coordinate of interest becomes low, while the calculation accuracy of the coordinate of the pixel of interest does not decrease in the example of FIG.

前述した図2の例のように、変曲点が代表点の位置と合っていない場合、調整部308は、前述した式(2)の作用素f()に含まれる変曲点が代表点の位置と合うように、代表点の座標をオフセット調整させるような代表点座標調整処理を行う。代表点座標のオフセット調整の例として、調整部308は、代表点の始点座標を調整し、その始点座標の調整に合わせて他の全ての代表点の座標も調整する。前述の式(2)を例にすると、変曲点近傍の代表点の座標が、当該変曲点の水平方向座標xwに合うように、代表点の始点座標を調整する。より具体的に説明すると、調整部308は、水平方向座標xwが水平方向の代表点間隔Wで割り切れない場合、代表点の始点座標(Sx,Sy)を、式(3)を用いて調整する。 As in the example of FIG. 2 described above, when the inflection point does not match the position of the representative point, the adjusting unit 308 determines that the inflection point included in the operator f () of the above-described equation (2) is the representative point. Representative point coordinate adjustment processing is performed so that the coordinates of the representative point are offset-adjusted so as to match the position. As an example of offset adjustment of the representative point coordinates, the adjustment unit 308 adjusts the starting point coordinates of the representative point, and adjusts the coordinates of all other representative points in accordance with the adjustment of the starting point coordinates. Taking Equation (2) above as an example, the starting point coordinates of the representative point are adjusted so that the coordinates of the representative point near the inflection point match the horizontal coordinate x w of the inflection point. More specifically, when the horizontal coordinate x w is not divisible by the horizontal representative point interval W, the adjusting unit 308 adjusts the start point coordinates (Sx, Sy) of the representative point using Expression (3). To do.

(Sx,Sy)=(−W+mod(xw,W),−H) 式(3)
mod(x,a)は剰余、すなわちxをaで割った余りである。このmod(x,a)により、代表点の始点座標を決めること、つまりオフセット調整における調整量が決められる。
(Sx, Sy) = (− W + mod (x w , W), −H) Formula (3)
mod (x, a) is a remainder, that is, a remainder obtained by dividing x by a. The mod (x, a) determines the starting point coordinates of the representative point, that is, the adjustment amount in the offset adjustment.

なお本実施形態では、調整部308において、代表点の始点座標である左上端の代表点座標をオフセット調整する例を挙げたが、これ以外にも、以下のように調整してもよい。
例えば、それぞれ四つの代表点により構成される全ての四角形のうち、変曲点を含む四角形のみについて、代表点が変曲点と合うように調整してもよい。この場合、後段の着目座標算出部303における着目座標算出の際に、当該調整後の代表点により構成される四角形のみ、調整量に応じた代表点間隔として計算する。
また本実施形態では、調整部308が代表点の左上端の始点位置を調整したが、例えばユーザが指定する形をとってもよい。すなわち例えば、情報処理装置100を介して、左上端の代表点の始点位置をユーザが指定する。この始点位置を使って後段の変形座標計算部309が代表点の変形座標を計算してもよい。
また例えば、外部の撮像装置と連携し、撮像装置によってスクリーンおよび投影された映像を撮像し、該撮像画像を解析して、代表点の左上端の始点位置を補正するようにしてもよい。例えば、映像投射装置101が格子等のテストパターンをスクリーン102に投影した場合において、変曲線211が代表点に合っていない場合、撮像装置が撮像した画像には歪みが生じていることになる。このため、投影したテストパターンと撮像画像から解析される歪み量とを基に、代表点の左上端の始点位置の調整量を算出することができる。
In the present embodiment, the adjustment unit 308 exemplifies an example in which the coordinates of the representative point at the upper left corner, which is the starting point coordinate of the representative point, is offset-adjusted, but other than this, the following adjustments may be made.
For example, among all the quadrilaterals each constituted by four representative points, only the quadrangle including the inflection point may be adjusted so that the representative point matches the inflection point. In this case, at the time of calculating the target coordinates in the target coordinate calculating unit 303 in the subsequent stage, only the quadrangle formed by the adjusted representative points is calculated as the representative point interval according to the adjustment amount.
Further, in the present embodiment, the adjusting unit 308 adjusts the starting point position of the upper left end of the representative point, but it may take the form specified by the user, for example. That is, for example, the user specifies the starting point position of the representative point at the upper left corner via the information processing apparatus 100. The deformation coordinate calculation unit 309 in the subsequent stage may calculate the deformation coordinates of the representative point using this start point position.
Further, for example, in cooperation with an external image pickup device, the screen and the image projected by the image pickup device may be picked up, the picked-up image may be analyzed, and the starting point position of the upper left end of the representative point may be corrected. For example, when the video projection device 101 projects a test pattern such as a grid on the screen 102 and the curve 211 does not match the representative point, the image captured by the imaging device is distorted. Therefore, the adjustment amount of the starting point position at the upper left end of the representative point can be calculated based on the projected test pattern and the distortion amount analyzed from the captured image.

次に、変形座標計算部309は、作用素f()を用い、調整部308で調整された全ての代表点に対応する変形前座標を算出し、それら代表点の変形前座標を記憶部306に記憶させる。   Next, the modified coordinate calculation unit 309 uses the operator f () to calculate the pre-deformation coordinates corresponding to all the representative points adjusted by the adjustment unit 308, and stores the pre-deformation coordinates of these representative points in the storage unit 306. Remember.

記憶部306に記憶される変形前座標の個数は、例えば、代表点が水平垂直それぞれN画素間隔であった場合、変形後映像の水平方向の画素数がAで、垂直方向の画素数がBとすれば、(A/N)×(B/N)個となる。また本実施形態において、前述した作用素f()は、LookUpTable(ルックアップテーブル)に置き換えることができ、この場合、代表点の変形前座標qvh(xih,yiv)は下記の式(4)のように表される。 Regarding the number of pre-deformation coordinates stored in the storage unit 306, for example, when the representative points are horizontally and vertically separated by N pixels, the number of pixels in the horizontal direction of the post-deformation image is A and the number of pixels in the vertical direction is B. Then, (A / N) × (B / N). Further, in the present embodiment, the operator f () described above can be replaced with a LookUpTable (lookup table), and in this case, the pre-deformation coordinate qvh (x ih , y iv ) of the representative point is expressed by the following formula (4). It is expressed as.

qvh(xih,yiv)=f(pvh(xoh,yov))=GD[v][h]
式(4)
qvh (x ih , y iv ) = f (pvh (x oh , y ov )) = GD [v] [h]
Formula (4)

ここで、式(4)は、代表点の変形後座標pvhに対応した変形前座標は、座標qvhである、ことを表している。また、GD[][]は作用素f()を表すLookUpTableである。LookUpTableは、図2の例でいえば、代表点の変形後座標(xo0,yo0)に対応した変形前座標(xi00,yi00)が、GD[0][0]に格納されているものとなる。 Here, the expression (4) represents that the pre-deformation coordinates corresponding to the post-deformation coordinates pvh of the representative point are the coordinates qvh. Further, GD [] [] is a LookUpTable representing the operator f (). In the LookUpTable, in the example of FIG. 2, the pre-deformation coordinates (x i00 , y i00 ) corresponding to the post-deformation coordinates (x o0 , y o0 ) of the representative point are stored in GD [0] [0]. Will be present.

次に、映像変形部301は、代表点算出部305が算出して記憶部306に格納した、代表点の座標を基に、入力映像に対する画像変形処理を行う。本実施形態では、画像変形処理として、台形補正などで用いられる逆変換型の再配列による画像変形を用いる。これは、逆変換型の再配列、すなわち変形後映像の各画素を着目画素とし、その着目画素の座標の変形前座標を座標変換によって求め、その変形前座標と、画像変形前の座標の周囲の画素値とを用いて、変形後映像の着目画素の画素値を算出する方式である。   Next, the image transformation unit 301 performs image transformation processing on the input image based on the coordinates of the representative points calculated by the representative point calculation unit 305 and stored in the storage unit 306. In the present embodiment, as the image transformation processing, image transformation by inverse transformation type rearrangement used for trapezoidal correction is used. This is an inverse transformation type rearrangement, that is, each pixel of the post-deformation image is set as a pixel of interest, and the coordinates before transformation of the coordinates of the pixel of interest are obtained by coordinate transformation. Is used to calculate the pixel value of the pixel of interest in the transformed image.

図6は、映像変形部301において、変形前映像601を変形後映像604に変形する画像変形処理を表した図である。
ここでは、変形前映像601を変形すると、台形605のような形状になるとする。一方、変形後映像604は、台形605を含んだ矩形である。この変形後映像604の各画素の画素値を求める際、変形後映像604内の着目画素607の座標606(xo,yo)に対応する変形前座標602(xi,yi)を算出する。この算出方法は、図6の例で言えば、台形に変換する作用素の逆変換になるのだが、ここでは説明を省略する。変形前座標602(xi,yi)は小数を含む座標であるため、その変形前座標602(xi,yi)の周囲画素群の画素値から、変形後映像604の着目画素607の画素値を算出する。図6の例では、周囲画素群として2×2画素の4個の画素群603を例に挙げている。この画素群603と、変形前座標602(xi,yi)を用いて、補間演算などにより、着目画素607の画素値を算出する。
FIG. 6 is a diagram showing an image transformation process of transforming the untransformed image 601 into the transformed image 604 in the image transformation unit 301.
Here, it is assumed that the untransformed image 601 is transformed into a trapezoidal shape 605. On the other hand, the transformed image 604 is a rectangle including a trapezoid 605. When obtaining the pixel value of each pixel of the transformed image 604, the coordinates before transformation 602 (x i , y i ) corresponding to the coordinates 606 (x o , y o ) of the pixel of interest 607 in the transformed image 604 are calculated. To do. In the example of FIG. 6, this calculation method is an inverse transformation of an operator that transforms into a trapezoid, but the explanation is omitted here. Since the pre-deformation coordinates 602 (x i , y i ) are coordinates including decimals, the pixel value of the pixel 607 of the post-deformation image 604 of the post-deformation image 604 is calculated from the pixel values of the surrounding pixel group of the pre-deformation coordinates 602 (x i , y i ). Calculate the pixel value. In the example of FIG. 6, four pixel groups 603 of 2 × 2 pixels are taken as an example of surrounding pixel groups. By using this pixel group 603 and the pre-deformation coordinates 602 (x i , y i ), the pixel value of the pixel of interest 607 is calculated by interpolation calculation or the like.

以上説明した映像変形部301についての詳細説明を、さらに着目座標算出部303、画素算出部304についての説明に置き換える。
着目座標算出部303は、記憶部306に記憶されている代表点の変形前座標を基に、変形後映像領域の着目画素に対応した変形前映像領域の画素の変形前座標を求める。この算出方法について図7を参照しながら説明する。
The detailed description of the image transformation unit 301 described above will be replaced with the description of the coordinate calculation unit 303 of interest and the pixel calculation unit 304.
The target coordinate calculation unit 303 obtains the pre-deformation coordinates of the pixel in the pre-deformation video region corresponding to the target pixel in the post-deformation video region based on the pre-deformation coordinates of the representative point stored in the storage unit 306. This calculation method will be described with reference to FIG.

図7(a)は、図2の変形前映像領域200の一部を拡大した図であり、図7(b)は変形後映像領域204の一部を拡大した図である。
この例では、変形後映像領域内の着目画素207の変形後座標206をpd(xod,yod)とする。また、変形後映像領域内の着目画素207に対応した変形前映像領域内の着目画素の変形前座標202をqd(xid,yid)としている。着目座標算出部303は、当該着目画素の変形前座標202を、着目画素207の変形後座標206の周囲の代表点の補正量から算出する。より具体的にいえば、着目座標算出部303は、周囲4点の代表点の中の着目画素の相対位置を、変形前座標202とその周囲の代表点の変形前座標との相対位置に適用することで、着目画素の変形前座標202を算出する。
7A is an enlarged view of a portion of the pre-deformation image area 200 of FIG. 2, and FIG. 7B is an enlarged view of a portion of the post-deformation image area 204.
In this example, the post-deformation coordinates 206 of the pixel of interest 207 in the post-deformation image area are set to p d (x od , y od ). Further, the pre-deformation coordinates 202 of the pixel of interest in the pre-deformation video region corresponding to the pixel of interest 207 in the post-deformation video region are set to q d (x id , y id ). The coordinate-of-interest calculation unit 303 calculates the pre-deformation coordinates 202 of the pixel of interest from the correction amounts of the representative points around the post-deformation coordinates 206 of the pixel of interest 207. More specifically, the focused coordinate calculation unit 303 applies the relative position of the focused pixel in the four representative points of the surroundings to the relative position between the undeformed coordinates 202 and the undeformed coordinates of the surrounding representative points. By doing so, the pre-deformation coordinates 202 of the pixel of interest are calculated.

ここで、1画素ずつ走査して着目画素の変形前座標202を求めるため、着目画素の変形後座標206(xod,yod)は既知である。また、何画素間隔で代表点を用意しているかについても既知のため、代表点p11,p12,p21,p22とそれらの座標(xo1,yo1),(xo2,yo1),(xo2,yo2),(xo1,yo2)も既知である。よって、それら四つの代表点p11,p12,p21,p22よりなる四角形を単位四角形とした場合の、着目画素207の変形後座標206(xo1,yo1)からの水平方向相対位置α、垂直方向相対位置βはそれぞれ以下の式(5)で算出できる。 Here, the pre-deformation coordinates 202 of the pixel of interest are obtained by scanning one pixel at a time, so the post-deformation coordinates 206 (x od , y od ) of the pixel of interest are known. Since it is also known how many pixel intervals the representative points are prepared, the representative points p 11 , p 12 , p 21 , p 22 and their coordinates (x o1 , y o1 ), (x o2 , y o1 ), (X o2 , y o2 ), (x o1 , y o2 ) are also known. Therefore, when the quadrangle composed of these four representative points p 11 , p 12 , p 21 , and p 22 is a unit quadrangle, the horizontal relative position from the post-deformation coordinates 206 (x o1 , y o1 ) of the pixel of interest 207. The α and the vertical relative position β can be calculated by the following equation (5).

α=(xod−xo1)/(xo2−xo1
β=(yod−yo1)/(yo2−yo1) 式(5)
α = (x od −x o1 ) / (x o2 −x o1 ).
β = (y od -y o1) / (y o2 -y o1) (5)

さらに、着目座標算出部303は、この相対位置を用いて、着目画素の変形前座標202(xid,yid)を以下の式(6)により算出する。なお、式中のSx,Syは調整部308で決定した代表点の始点座標(Sx,Sy)である。 Further, the target coordinate calculation unit 303 uses the relative position to calculate the pre-deformation coordinates 202 (x id , y id ) of the target pixel by the following equation (6). Note that Sx and Sy in the equation are the starting point coordinates (Sx, Sy) of the representative point determined by the adjusting unit 308.

id=xi11+{α/(xi12−xi11)}−Sx
id=yi11+{β/(yi21−yi11)}−Sy 式(6)
x id = x i11 + {α / (x i12 −x i11 )} − Sx
y id = y i11 + {β / (y i21 −y i11 )} − Sy Formula (6)

そして、画素算出部304は、着目座標算出部303で算出された変形前座標とその周囲画素の画素値とから、変形後画素である着目画素の画素値を求める。図7の例でいえば、画素算出部304は、画素群703と変形前座標202(xi,yi)とから着目画素207の画素値を算出する。この算出方法は、一般的なバイリニア方式やバイキュービック方式など、いずれの方法を用いてもよい。 Then, the pixel calculation unit 304 obtains the pixel value of the target pixel that is the post-deformation pixel from the pre-deformation coordinates calculated by the focus coordinate calculation unit 303 and the pixel values of the surrounding pixels. In the example of FIG. 7, the pixel calculation unit 304 calculates the pixel value of the pixel of interest 207 from the pixel group 703 and the pre-deformation coordinates 202 (x i , y i ). As this calculation method, any method such as a general bilinear method or a bicubic method may be used.

図8と図9には本実施形態における画像変形処理のフローチャートを示す。
図8は、代表点の変形前座標を算出する処理フローチャートである。図8の処理は、映像が投射されるスクリーンの変更や、映像投射装置101(プロジェクタ)の位置の変更がなされた場合など、変形形状を変える必要が生じたときに実施されればよく、全ての画素に対して実施する必要はない。一方、図9は、映像変形部301が入力画像を変形した映像を生成する処理のフローチャートであり、全ての画素に対して実施する。なお、以下の説明では、処理ステップS801〜S803、処理ステップS901、処理ステップS903をそれぞれS801〜S803、S901、S903のように略記する。図8、図9のフローチャートの処理は、ハードウエア構成により行われてもよいし、本実施形態に係る画像変形処理のプログラムを例えばコンピュータやCPUが実行することにより実現されてもよい。また、図8、図9のフローチャートの処理は、一部がソフトウェア構成で残りがハードウエア構成により実現されてもよい。なお、本実施形態に係る画像変形処理のプログラムは各種記録メディアやネットワークを介して供給され、RAM等に展開されることによりCPUにより実行可能となされる。
8 and 9 show flowcharts of the image transformation process in this embodiment.
FIG. 8 is a process flowchart for calculating the pre-deformation coordinates of the representative point. The process of FIG. 8 may be performed when it is necessary to change the deformed shape, such as when the screen on which the image is projected is changed or when the position of the image projection device 101 (projector) is changed. It is not necessary to carry out for each pixel. On the other hand, FIG. 9 is a flowchart of a process in which the image transformation unit 301 generates a video obtained by transforming an input image, which is performed for all pixels. In the following description, the processing steps S801 to S803, the processing step S901, and the processing step S903 will be abbreviated as S801 to S803, S901, and S903, respectively. The processes of the flowcharts of FIGS. 8 and 9 may be performed by a hardware configuration, or may be realized by causing a computer or a CPU to execute the program of the image transformation process according to the present embodiment. In addition, the processes of the flowcharts of FIGS. 8 and 9 may be partially implemented by a software configuration and the rest by a hardware configuration. The program of the image transformation processing according to the present embodiment is supplied via various recording media or networks, and can be executed by the CPU by being expanded in the RAM or the like.

まず、図8のフローチャートのS801において、調整部308は、代表点の左上端の始点座標を決定する。
次にS802において、変形座標計算部309は、代表点の変形前座標を決定する。
そしてS803において、変形座標計算部309は、S802で決定した代表点の変形前座標を記憶部306に格納する。
First, in step S801 of the flowchart in FIG. 8, the adjustment unit 308 determines the starting point coordinates of the upper left end of the representative point.
Next, in step S802, the modified coordinate calculation unit 309 determines the untransformed coordinates of the representative point.
Then, in step S <b> 803, the modified coordinate calculation unit 309 stores the pre-deformation coordinates of the representative point determined in step S <b> 802 in the storage unit 306.

次に図9のフローチャートのS901において、着目座標算出部303は、記憶部306に格納されている代表点の変形前座標を用い、着目画素の変形前座標を算出する。
そしてS902において、画素算出部304は、着目画素の画素値を算出する。
Next, in step S <b> 901 of the flowchart of FIG. 9, the focused coordinate calculation unit 303 uses the untransformed coordinates of the representative point stored in the storage unit 306 to calculate the untransformed coordinates of the focused pixel.
Then, in S902, the pixel calculation unit 304 calculates the pixel value of the pixel of interest.

以上説明したように本実施形態の映像投射装置101によれば、変曲点を有する投射面に対する投射を行う場合でも、精度よく歪みを補正することが可能となる。   As described above, according to the image projection apparatus 101 of the present embodiment, it is possible to accurately correct distortion even when performing projection on a projection surface having an inflection point.

前述した例では、一台の映像投射装置を例に挙げたが、複数台の映像投射装置による合成投射が行われる場合も、それぞれの映像投射装置において本実施形態を適用可能である。
<その他の実施形態>
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
In the above-mentioned example, one video projection device is taken as an example, but even when composite projection is performed by a plurality of video projection devices, the present embodiment can be applied to each video projection device.
<Other embodiments>
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. It can also be realized by the processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

上述の実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明は、その技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of specific embodiments for carrying out the present invention, and the technical scope of the present invention should not be limitedly interpreted by these. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

101:映像投射装置、300:入力部、301:変形部、302:出力部、303:着目座標算出部、304:画素算出部、305:代表点算出部、306:記憶部、308:調整部、309:変形座標計算部   101: video projection device, 300: input unit, 301: transformation unit, 302: output unit, 303: coordinate calculation unit of interest, 304: pixel calculation unit, 305: representative point calculation unit, 306: storage unit, 308: adjustment unit , 309: deformation coordinate calculation unit

Claims (11)

入力映像を含む領域について設定された代表点の位置を、映像が投射される投射面の形状における変曲点の位置に合わせるように調整する調整手段と、
前記代表点の位置を基に、前記代表点の変形座標を算出する算出手段と、
前記代表点の変形座標に基づいて前記入力映像を変形して、前記投射面に投射する映像を生成する変形手段と、
を有することを特徴とする映像処理装置。
Adjusting means for adjusting the position of the representative point set for the area including the input image so as to match the position of the inflection point in the shape of the projection surface on which the image is projected;
Based on the position of the representative point, a calculating means for calculating the deformation coordinates of the representative point,
Deforming means for deforming the input image based on the deformation coordinates of the representative point to generate an image projected on the projection surface;
An image processing apparatus comprising:
前記代表点の変形座標を記憶する記憶手段を有し、
前記変形手段は、前記記憶手段に記憶されている前記変形座標を基に前記入力映像を変形することを特徴とする請求項1に記載の映像処理装置。
A storage means for storing the modified coordinates of the representative point,
The image processing apparatus according to claim 1, wherein the deforming unit deforms the input image based on the deformed coordinates stored in the storage unit.
前記変形手段は、前記投射された映像において前記投射面の形状により生ずる歪みとは逆の方向に前記入力映像を変形することを特徴とする請求項1または2に記載の映像処理装置。   3. The image processing apparatus according to claim 1, wherein the deforming unit deforms the input image in a direction opposite to the distortion caused by the shape of the projection surface in the projected image. 前記調整手段は、前記入力映像を含む領域について設定された複数の全ての代表点の位置をオフセットさせるように調整することを特徴とする請求項1から3のいずれか1項に記載の映像処理装置。   4. The image processing according to claim 1, wherein the adjusting unit adjusts the positions of all the plurality of representative points set for the area including the input image so as to be offset. apparatus. 前記調整手段は、前記入力映像を含む領域について設定された複数の代表点の中の一部の代表点の位置をオフセットさせるように調整することを特徴とする請求項1から3のいずれか1項に記載の映像処理装置。   4. The adjusting means adjusts the positions of some representative points of a plurality of representative points set for an area including the input image so as to be offset. The image processing device according to the item. 前記調整手段は、前記変曲点の位置を示す座標値が、代表点間の間隔で割り切れない場合に、前記オフセットさせる調整を行うことを特徴とする請求項4または5に記載の映像処理装置。   The image processing apparatus according to claim 4 or 5, wherein the adjusting unit performs the adjustment when the coordinate value indicating the position of the inflection point is not divisible by the interval between the representative points. . 前記調整手段は、前記変曲点の位置を示す座標値を前記代表点間の間隔で割った剰余を基に、前記代表点の位置を前記オフセットさせる調整量を決定することを特徴とする請求項6に記載の映像処理装置。   The adjusting means determines an adjustment amount for offsetting the position of the representative point based on a remainder obtained by dividing a coordinate value indicating the position of the inflection point by an interval between the representative points. Item 6. The image processing device according to item 6. 前記調整手段は、前記代表点の位置を、水平方向と垂直方向の少なくともいずれかの方向に前記オフセットさせる調整を行うことを特徴とする請求項4から7のいずれか1項に記載の映像処理装置。   The image processing according to any one of claims 4 to 7, wherein the adjusting unit performs an adjustment to offset the position of the representative point in at least one of a horizontal direction and a vertical direction. apparatus. 前記生成された映像を表示する表示パネルと、
前記表示された映像を、投射面に投射させる投影機構と、
を有することを特徴とする請求項1から8のいずれか1項に記載の映像処理装置。
A display panel for displaying the generated image,
A projection mechanism for projecting the displayed image on a projection surface;
The video processing device according to claim 1, further comprising:
映像処理装置が実行する映像処理方法であって、
入力映像を含む領域について設定された代表点の位置を、映像が投射される投射面の形状における変曲点の位置に合わせるように調整する調整工程と、
前記代表点の位置を基に、前記代表点の変形座標を算出する算出工程と、
前記代表点の変形座標に基づいて前記入力映像を変形して、前記投射面に投射する映像を生成する映像変形工程と、
を有することを特徴とする映像処理方法。
A video processing method executed by a video processing device, comprising:
An adjusting step of adjusting the position of the representative point set for the area including the input image to match the position of the inflection point in the shape of the projection surface on which the image is projected,
A calculation step of calculating deformation coordinates of the representative point based on the position of the representative point;
An image transformation step of transforming the input image based on the transformation coordinates of the representative point to generate an image projected on the projection surface;
An image processing method comprising:
コンピュータを、請求項1から9のいずれか1項に記載の映像処理装置の各手段として機能させるためのプログラム。   A program for causing a computer to function as each unit of the video processing device according to claim 1.
JP2018191955A 2018-10-10 2018-10-10 Video processing device, video processing method, and program Pending JP2020061662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018191955A JP2020061662A (en) 2018-10-10 2018-10-10 Video processing device, video processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018191955A JP2020061662A (en) 2018-10-10 2018-10-10 Video processing device, video processing method, and program

Publications (1)

Publication Number Publication Date
JP2020061662A true JP2020061662A (en) 2020-04-16

Family

ID=70220379

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018191955A Pending JP2020061662A (en) 2018-10-10 2018-10-10 Video processing device, video processing method, and program

Country Status (1)

Country Link
JP (1) JP2020061662A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220141435A1 (en) * 2020-10-30 2022-05-05 Ali Corporation Projection device and projection picture correction method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220141435A1 (en) * 2020-10-30 2022-05-05 Ali Corporation Projection device and projection picture correction method thereof
US11877103B2 (en) * 2020-10-30 2024-01-16 Ali Corporation Projection device and projection picture correction method thereof

Similar Documents

Publication Publication Date Title
JP2022528659A (en) Projector keystone correction methods, devices, systems and readable storage media
WO2018201652A1 (en) Real-time virtual reality acceleration method and device
JP5997882B2 (en) Projector and projector control method
JP2014131257A (en) Image correction system, image correction method, and program
JP5348022B2 (en) Projector and projection conversion processing apparatus
JP2009206800A (en) Image processing apparatus, projector and image processing method
JP4871820B2 (en) Video display system and parameter generation method for the system
JP2016085380A (en) Controller, control method, and program
TWI517094B (en) Image calibration method and image calibration circuit
JP2002014611A (en) Video projecting method to planetarium or spherical screen and device therefor
JP5348035B2 (en) projector
JP6549764B1 (en) IMAGE PROJECTION SYSTEM, IMAGE PROJECTION METHOD, AND PROGRAM
JP2011193332A (en) Projector and video projection method
JP2020061662A (en) Video processing device, video processing method, and program
JP2011103534A (en) Video display system
JPWO2012056982A1 (en) Image processing method, image processing apparatus, and imaging apparatus
JP5533109B2 (en) Image display device, projector, and data acquisition method in image display device
JP2017162313A (en) Image processing device, image processing method and program
JP2013005393A (en) Image processing method having wide-angle distortion correction processing, image processing apparatus and imaging apparatus
JP2013005394A (en) Image processing method having wide-angle distortion correction processing, image processing apparatus and imaging apparatus
JPWO2011161746A1 (en) Image processing method, program, image processing apparatus, and imaging apparatus
JP5353772B2 (en) projector
CN114449233B (en) Projection device and trapezoid correction method thereof
JP5413265B2 (en) Image display device and projector
CN116684561B (en) Startup image adjusting method and device, electronic equipment and storage medium