JP2019168670A - Image processing apparatus, image processing method, and display unit - Google Patents
Image processing apparatus, image processing method, and display unit Download PDFInfo
- Publication number
- JP2019168670A JP2019168670A JP2018194855A JP2018194855A JP2019168670A JP 2019168670 A JP2019168670 A JP 2019168670A JP 2018194855 A JP2018194855 A JP 2018194855A JP 2018194855 A JP2018194855 A JP 2018194855A JP 2019168670 A JP2019168670 A JP 2019168670A
- Authority
- JP
- Japan
- Prior art keywords
- image
- processing unit
- data
- unit
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012545 processing Methods 0.000 title claims abstract description 372
- 238000003672 processing method Methods 0.000 title claims description 5
- 238000000034 method Methods 0.000 claims description 71
- 230000008569 process Effects 0.000 claims description 68
- 239000000872 buffer Substances 0.000 description 72
- 238000010586 diagram Methods 0.000 description 22
- 238000007493 shaping process Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 8
- 230000005484 gravity Effects 0.000 description 8
- 239000004973 liquid crystal related substance Substances 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 229910052736 halogen Inorganic materials 0.000 description 1
- 150000002367 halogens Chemical class 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- QSHDDOUJBYECFT-UHFFFAOYSA-N mercury Chemical compound [Hg] QSHDDOUJBYECFT-UHFFFAOYSA-N 0.000 description 1
- 229910052753 mercury Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 229910052724 xenon Inorganic materials 0.000 description 1
- FHNFHKCVQCLJFQ-UHFFFAOYSA-N xenon atom Chemical compound [Xe] FHNFHKCVQCLJFQ-UHFFFAOYSA-N 0.000 description 1
Images
Abstract
Description
本発明は、画像処理装置、画像処理方法、及び、表示装置に関する。 The present invention relates to an image processing device, an image processing method, and a display device.
従来、画像を回転させる画像処理を行う装置が知られている(例えば、特許文献1参照)。特許文献1は、回転前の画像をバッファーに記憶し、バッファーから必要な画素データを読み出して回転後の画像を構成する各画素の画素データを生成することで、画像を回転させる画像処理を行う装置を開示する。
2. Description of the Related Art Conventionally, an apparatus that performs image processing for rotating an image is known (see, for example, Patent Document 1).
しかしながら、特許文献1は、メモリーから複数の画素データを読み出して1の画素データを生成する処理を多数の画素について実行するため、メモリーアクセスの帯域が逼迫する可能性があるという問題があった。
そこで、本発明は、メモリーアクセスの帯域の利用効率の向上を図りながら、画像を回転させる処理を行えるようにすることを目的とする。
However, since
SUMMARY OF THE INVENTION An object of the present invention is to enable processing for rotating an image while improving the use efficiency of a memory access band.
上記課題を解決するために、本発明の画像処理装置は、入力された入力画像を、指定された角度で回転させる処理を実行して第1画像を出力する第1処理部と、前記第1処理部により出力された前記第1画像を90°単位で指定される角度で回転させる処理を実行して第2画像を出力する第2処理部と、を備える。
本発明によれば、第1処理部と、画像を90°単位で回転させる第2処理部とを用いて画像を回転させるので、第1処理部は90°以下の角度で入力画像を回転させればよい。このため、第1処理部のバッファーを多くすることなく360°の範囲で画像を回転することができるので、コストアップを抑えることができる。また、第1処理部と第2処理部とで2段階で画像を回転させるため、メモリーから読み出すデータが増大せず、画像を回転させる処理においてメモリーアクセスの帯域の利用効率の向上を図ることができる。したがって、コストアップを抑えつつ、メモリーアクセスの帯域の利用効率の向上を図りながら、画像を回転させる処理を行うことができる。
In order to solve the above-described problem, an image processing apparatus according to the present invention executes a process of rotating an input image input at a specified angle and outputs a first image, and the first processor A second processing unit that executes a process of rotating the first image output by the processing unit at an angle specified in units of 90 ° and outputs a second image.
According to the present invention, since the image is rotated using the first processing unit and the second processing unit that rotates the image in units of 90 °, the first processing unit rotates the input image at an angle of 90 ° or less. Just do it. For this reason, the image can be rotated within a range of 360 ° without increasing the buffer of the first processing unit, so that an increase in cost can be suppressed. Further, since the image is rotated in two stages by the first processing unit and the second processing unit, the data read from the memory does not increase, and the use efficiency of the memory access band can be improved in the process of rotating the image. it can. Therefore, it is possible to perform the process of rotating the image while suppressing the cost increase and improving the use efficiency of the memory access band.
また、本発明は、メモリーを備え、前記第2処理部は、前記メモリーに記憶された前記第1画像を回転させる処理を実行する構成としてもよい。 In addition, the present invention may include a memory, and the second processing unit may execute a process of rotating the first image stored in the memory.
また、本発明は、メモリーを備え、前記第2処理部は、前記第1画像を回転させる処理を実行した前記第2画像を前記メモリーに記憶させる構成としてもよい。
この構成によれば、第2処理部は、メモリーから読み出すだけで回転された第2画像を出力できるため、メモリーから読み出すデータが増大せず、より一層にメモリーアクセスの帯域の利用効率の向上を図ることができる。
In addition, the present invention may include a memory, and the second processing unit may store the second image, which has been subjected to the process of rotating the first image, in the memory.
According to this configuration, since the second processing unit can output the rotated second image simply by reading from the memory, the data read from the memory does not increase, and the use efficiency of the memory access band can be further improved. Can be planned.
また、本発明は、前記第1処理部は、前記入力画像を正方向、及び、前記正方向とは逆の逆方向に回転させる処理を実行可能であり、正方向に45°以下かつ逆方向に45°以下の範囲で指定される角度で前記入力画像を回転させる構成としてもよい。
この構成によれば、入力画像と第1画像との角度の差が小さいため、第1処理部のバッファーを少なくできる。
In the present invention, the first processing unit can execute a process of rotating the input image in a forward direction and in a reverse direction opposite to the forward direction, and 45 ° or less in the forward direction and in the reverse direction. Further, the input image may be rotated at an angle specified within a range of 45 ° or less.
According to this configuration, since the angle difference between the input image and the first image is small, the buffer of the first processing unit can be reduced.
また、本発明は、前記第1処理部は、前記入力画像内の点を回転中心として前記入力画像を回転させる構成としてもよい。
この構成によれば、入力画像内の点を回転中心として入力画像を回転させるため、第1処理部が画像を回転させる角度を限定することで、処理負荷を顕著に軽減できる。このため、第1処理部の処理効率の向上を図ることができる。
The first processing unit may be configured to rotate the input image with a point in the input image as a rotation center.
According to this configuration, since the input image is rotated with the point in the input image as the rotation center, the processing load can be significantly reduced by limiting the angle at which the first processing unit rotates the image. For this reason, it is possible to improve the processing efficiency of the first processing unit.
また、本発明は、前記第2処理部は、前記入力画像と同じサイズの前記第2画像を出力する構成としてよい。
この構成によれば、入力画像と同じサイズの画像を出力する場合に、画像を90°単位で回転させる第2処理部が、第2画像のサイズを入力画像と同じサイズに調整する構成とすることができる。このため、回転処理の負荷をより一層軽減できる。
In the present invention, the second processing unit may output the second image having the same size as the input image.
According to this configuration, when outputting an image having the same size as the input image, the second processing unit that rotates the image in units of 90 ° adjusts the size of the second image to the same size as the input image. be able to. For this reason, the load of rotation processing can be further reduced.
また、本発明は、前記第1処理部、及び前記第2処理部を制御する制御部を備え、前記第1処理部は、前記入力画像が矩形の画像である場合に矩形の前記第1画像を出力し、前記制御部は、前記第2処理部が前記第1画像を回転させる角度に対応して、前記第1処理部により、長辺のサイズと短辺のサイズとの比が前記入力画像とは異なる前記第1画像を出力させる構成としてもよい。
この構成によれば、第1処理部により、第2処理部が第1画像を回転させる角度に対応したサイズの画像を出力することができ、第2処理部の処理効率の向上を図ることができる。
In addition, the present invention includes a control unit that controls the first processing unit and the second processing unit, and the first processing unit has a rectangular first image when the input image is a rectangular image. The control unit outputs the ratio of the size of the long side to the size of the short side by the first processing unit corresponding to the angle at which the second processing unit rotates the first image. The first image different from the image may be output.
According to this configuration, the first processing unit can output an image having a size corresponding to the angle at which the second processing unit rotates the first image, and the processing efficiency of the second processing unit can be improved. it can.
また、本発明は、前記制御部は、前記第2処理部が前記第1画像を90°或いは270°に回転させる場合、前記第1処理部により、長辺のサイズと短辺のサイズとの比が前記入力画像から反転した前記第1画像を出力させる。
本発明によれば、入力画像を90°或いは270°に回転させ、入力画像と同じサイズ及び形状の第2画像を出力する場合に、第2処理部が長辺のサイズと短辺のサイズとを変更する処理の負荷を軽減できる。
Further, according to the present invention, when the second processing unit rotates the first image to 90 ° or 270 °, the first processing unit sets the size of the long side and the size of the short side. The first image having a ratio inverted from the input image is output.
According to the present invention, when the input image is rotated by 90 ° or 270 ° and a second image having the same size and shape as the input image is output, the second processing unit determines the size of the long side and the size of the short side. Can reduce the processing load.
また、本発明は、前記第1処理部は、前記第1画像を構成する画素であって、前記入力画像に対応しない画素に所定の画素値を設定して、前記第1画像を出力する。
本発明によれば、第1処理部の処理負荷を著しく増大させることなく、第1処理部により、指定されたサイズの第1画像を出力できる。
In the present invention, the first processing unit sets a predetermined pixel value to a pixel that constitutes the first image and does not correspond to the input image, and outputs the first image.
According to the present invention, the first image of the designated size can be output by the first processing unit without significantly increasing the processing load of the first processing unit.
また、上記課題を解決するために、本発明の画像処理方法は、入力された入力画像を、指定された角度で回転させる処理を実行して第1画像を出力し、出力された前記第1画像を90°単位で指定される角度で回転させる処理を実行して第2画像を出力する。
本発明によれば、画像を90°単位で回転させる処理と、90°以下の角度で入力画像を回転させる処理とを組み合わせることにより、画像を回転させる処理に用いるバッファーを多くすることなく、360°で画像を回転させる処理に対応できるので、コストアップを抑えることができる。また、2段階で画像を回転させるため、メモリーから読み出すデータが増大せず、画像を回転させる処理においてメモリーアクセスの帯域の利用効率の向上を図ることができる。したがって、コストアップを抑えつつ、メモリーアクセスの帯域の利用効率の向上を図りながら、画像を回転させる処理を行うことができる。
In order to solve the above problem, the image processing method of the present invention executes a process of rotating the input image input at a specified angle, outputs the first image, and outputs the first image output. A process of rotating the image at an angle specified in units of 90 ° is executed and a second image is output.
According to the present invention, by combining the process of rotating an image in units of 90 ° and the process of rotating an input image at an angle of 90 ° or less, 360 is used without increasing the buffer used for the process of rotating the image. Since it is possible to cope with the process of rotating the image at an angle, the cost increase can be suppressed. Further, since the image is rotated in two stages, the data read from the memory does not increase, and the use efficiency of the memory access band can be improved in the process of rotating the image. Therefore, it is possible to perform the process of rotating the image while suppressing the cost increase and improving the use efficiency of the memory access band.
また、上記課題を解決するために、本発明の表示装置は、入力された入力画像を、指定された角度で回転させる処理を実行して第1画像を出力する第1処理部と、前記第1処理部により出力された前記第1画像90°単位で指定される角度で回転させる処理を実行して第2画像を出力する第2処理部と、前記第2画像を表示する表示部と、を備える。
本発明によれば、画像を90°単位で回転させる処理と、90°以下の角度で入力画像を回転させる処理とを組み合わせることにより、画像を回転させる処理に用いるバッファーを多くすることなく、360°で画像を回転させる処理に対応きるので、コストアップを抑えることができる。また、2段階で画像を回転させるため、メモリーから読み出すデータが増大せず、画像を回転させる処理においてメモリーアクセスの帯域の利用効率の向上を図ることができる。したがって、コストアップを抑えつつ、メモリーアクセスの帯域の利用効率の向上を図りながら、画像を回転させる処理を行うことができる。
In order to solve the above problem, the display device of the present invention performs a process of rotating an input image that has been input by a specified angle, and outputs a first image; A second processing unit that executes a process of rotating the first image output by one processing unit at an angle specified in units of 90 ° and outputs a second image; a display unit that displays the second image; Is provided.
According to the present invention, by combining the process of rotating an image in units of 90 ° and the process of rotating an input image at an angle of 90 ° or less, 360 is used without increasing the buffer used for the process of rotating the image. Because it can handle the process of rotating the image at an angle, the cost increase can be suppressed. Further, since the image is rotated in two stages, the data read from the memory does not increase, and the use efficiency of the memory access band can be improved in the process of rotating the image. Therefore, it is possible to perform the process of rotating the image while suppressing the cost increase and improving the use efficiency of the memory access band.
[第1実施形態]
まず、第1実施形態について説明する。
図1は、本発明を適用した第1実施形態に係るプロジェクター1(画像処理装置、表示装置)の構成を示すブロック図である。
プロジェクター1には、外部の装置として画像供給装置2が接続される。画像供給装置2は、プロジェクター1に入力画像データD1を出力し、プロジェクター1は、画像供給装置2から入力される入力画像データD1に基づき、スクリーンSCに投射画像を投射する。プロジェクター1による投射画像の投射は、表示装置による画像の表示の一例である。
[First Embodiment]
First, the first embodiment will be described.
FIG. 1 is a block diagram showing a configuration of a projector 1 (image processing apparatus, display apparatus) according to a first embodiment to which the present invention is applied.
An
画像供給装置2から入力される入力画像データD1は、所定の規格に準拠した画像データである。入力画像データD1の内容は、静止画像であっても動画像であってもよく、音声信号または音声データを伴ってもよい。
The input image data D1 input from the
画像供給装置2は、プロジェクター1に入力画像データD1を出力する、いわゆる画像ソースであり、プロジェクター1に接続可能であって、プロジェクター1に入力画像データD1を出力できる機器であればよい。例えば、ディスク型記録メディア再生装置、テレビチューナー装置、パーソナルコンピューターを用いてもよい。
The
スクリーンSC(投射面)は、幕状のスクリーンであってもよいし、建造物の壁面や設置物の平面をスクリーンSCとして利用してもよい。スクリーンSCは平面に限らず、曲面や、凹凸を有する面であってもよい。 The screen SC (projection surface) may be a curtain-shaped screen, or a wall surface of a building or a plane of an installation may be used as the screen SC. The screen SC is not limited to a flat surface, and may be a curved surface or a surface having irregularities.
プロジェクター1は、プロジェクター1の各部を制御する制御部3と、投射画像を投射する投射部10とを備える。制御部3は、CPU30、及び、記憶部35等により構成される。記憶部35は、CPU30が実行する制御プログラム36やデータを不揮発的に記憶する記憶装置であり、フラッシュROM等の半導体記憶素子等で構成される。記憶部35は、CPU30のワークエリアを構成するRAMを含んでもよい。
The
CPU30は、記憶部35に保存されたプロジェクター1の制御プログラム36を実行することによって、投射制御部31、及び、画像処理制御部32として機能する。つまり、これらの機能ブロックは、CPU30が、制御プログラム36を実行することにより、ソフトウェアとハードウェアの協働により実現される。
The
記憶部35は、制御プログラム36のほか、設定データ37を記憶する。設定データ37は、プロジェクター1の動作に関する設定値を含む。設定データ37に含まれる設定値は、例えば、画像処理部25が実行する処理内容、画像処理部25の処理に用いるパラメーター等である。また、記憶部35は、その他のプログラムやデータを記憶してもよい。
The
投射部10は、光源部11、光変調装置12、及び、投射光学系13を備える。光源部11は、ハロゲンランプ、キセノンランプ、超高圧水銀ランプ等のランプ、或いは、LEDやレーザー光源等の固体光源で構成される。光源部11は、光源駆動部22から供給される電力により点灯し、光変調装置12に向けて光を発する。
The
光源駆動部22は、制御部3の制御に従って光源部11に駆動電流やパルスを供給し、光源部11を発光させる。
The light
光変調装置12は、光変調装置駆動部23により駆動されて画像を形成する液晶パネル等の画像形成部を備える。光変調装置12は、画像形成部に形成した画像により、光源部11が発した光を変調して画像光を生成し、投射光学系13に向けて投射する。画像形成部は、透過型液晶パネル、反射型液晶パネル、デジタルミラーデバイス(DMD:Digital Mirror Device)等により構成される。
The
光変調装置駆動部23は、画像処理部25から光変調装置12に描画する画像の出力画像データD4が入力され、出力画像データD4に従って光変調装置12を駆動し、画像形成部の各画素の階調を設定し、フレーム単位で画像を描画する。
The light modulation
投射光学系13は、レンズやミラー等の光学素子を備え、光変調装置12で変調された光をスクリーンSC上に結像させ、投射画像を投射する。
The projection
プロジェクター1は、インターフェイス部24、画像処理部25、フレームメモリー27(メモリー)、入力処理部53、操作パネル51、リモコン受光部52、及び、無線通信部55を備える。これらの各部は、バス29を介して制御部3とデータ通信可能に接続される。
画像処理部25については、図2を参照して後述する。
The
The
インターフェイス(I/F)部24は、データ通信用の有線インターフェイスであり、コネクター(図示略)及びインターフェイス回路(図示略)等を備える。インターフェイス部24は、ケーブルを介して画像供給装置2に接続され、制御部3の制御に従って、外部の装置との間で画像データや制御データ等を送受信する。インターフェイス部24には、各種の通信インターフェイスや画像入力用のインターフェイスを採用することができる。
The interface (I / F)
フレームメモリー27は、複数のバンクを備える。各バンクは、画像データの1フレームを書き込み可能な記憶容量を有する。フレームメモリー27は、例えば、SDRAM(Synchronous Dynamic Random Access Memory)により構成される。
The
入力処理部53は、操作パネル51、及び、リモコン受光部52に接続される。入力処理部53は、操作パネル51またはリモコン受光部52で操作を受け付けた場合に、受け付けた操作に対応する操作データを生成して制御部3に出力する。
操作パネル51は、プロジェクター1の筐体に設けられ、ユーザーが操作可能な各種スイッチを備える。入力処理部53は、操作パネル51の各スイッチの操作を検出する。
リモコン受光部52は、リモコン50が送信する赤外線信号を受光する。入力処理部53は、リモコン受光部52が受光した信号をデコードして、操作データを生成し、制御部3に出力する。
The
The
The remote control
無線通信部55は、アンテナやRF回路(図示略)等を備え、制御部3の制御に従って外部の装置との間で無線データ通信を実行する。無線通信部55は、例えば、無線LAN(Wi−Fi(登録商標)を含む)、Bluetooth(登録商標)等の無線通信を実行する。
The
次に、CPU30の機能ブロックについて説明する。
投射制御部31は、光源駆動部22、及び光変調装置駆動部23を制御して、光源部11を点灯させ、光変調装置駆動部23により光変調装置12を駆動させ、投射部10により投射画像を投射させる。また、投射制御部31は、画像処理部25を制御して、インターフェイス部24に入力される入力画像データD1に対する画像処理を実行させ、光変調装置駆動部23に画像処理後の出力画像データD4を出力させる。
Next, functional blocks of the
The
画像処理制御部32は、画像処理部25による入力画像データD1に対する画像処理を制御する。画像処理制御部32は、操作パネル51やリモコン50等の操作によって入力画像データD1が示す入力画像NG(図3等に参照)の回転角が設定されると、入力画像NGを設定された角度で回転させる画像処理を画像処理部25に行わせる。なお、入力画像NGの回転には、入力画像NGを含む画像の回転も含まれる。
以下では、操作パネル51やリモコン50等によって設定された入力画像NGの回転角を、設定回転角という。
The image
Hereinafter, the rotation angle of the input image NG set by the
図2は、画像処理部25のブロック図である。理解の便宜のため、フレームメモリー27、及び画像処理制御部32を図示する。
FIG. 2 is a block diagram of the
画像処理部25は、第1回転処理部251(第1処理部)と、第2回転処理部252(第2処理部)とを備える。画像処理部25は、第1回転処理部251と第2回転処理部252とのそれぞれで画像処理を行い、入力画像NGを設定回転角まで回転させる画像処理を行う。第1回転処理部251、及び第2回転処理部252は、画像処理制御部32が算出した角度で入力画像NGを回転させる画像処理を行う。
The
画像処理制御部32は、設定回転角に基づいて、第1回転処理部251が入力画像NGを回転させる角度と、第2回転処理部252が入力画像NGを回転させる角度とを算出する。
Based on the set rotation angle, the image
以下、第1回転処理部251が入力画像NGを回転させる角度を、第1回転角といい、第2回転処理部252が入力画像NGを回転させる角度を、第2回転角という。
Hereinafter, the angle at which the first
ここで、画像処理制御部32の算出を説明する前に、本実施形態における入力画像NGの回転を説明する。
図3は、入力画像NGの回転を説明するための図である。
Here, before describing the calculation of the image
FIG. 3 is a diagram for explaining the rotation of the input image NG.
本実施形態では、入力画像NGが横長の矩形の画像である例を示す。
また、以下に説明する例では、画像処理部25は、入力画像NGを、入力画像NG内の点を回転中心として回転させる処理を実行する。図3の例は、入力画像NGの重心Gが回転中心として設定されている。
In the present embodiment, an example in which the input image NG is a horizontally long rectangular image is shown.
In the example described below, the
入力画像NGは、重心Gを回転中心として、矢印Bで示す時計回り(CW)の方向(逆方向)、及び、矢印Aで示す反時計回り(CCW)の方向(正方向)に回転可能である。 The input image NG can rotate in the clockwise (CW) direction (reverse direction) indicated by the arrow B and the counterclockwise (CCW) direction (forward direction) indicated by the arrow A with the center of gravity G as the rotation center. is there.
入力画像NGの回転角は、入力画像NGの長辺LHと平行であって且つ重心Gを通る平行線HSを0°として反時計回りにプラスの値を示す角度であり、時計回りにマイナスの値を示す角度である。 The rotation angle of the input image NG is an angle that is parallel to the long side LH of the input image NG and shows a positive value counterclockwise with a parallel line HS passing through the center of gravity G being 0 °, and is negative in the clockwise direction. An angle indicating a value.
第1回転処理部251は、+45°以下−45°以上の範囲において、画像処理制御部32に指定された角度で入力画像NGを回転させる画像処理を実行する。第2回転処理部252は、画像処理制御部32に90°単位で指定された角度で入力画像NGを回転させる画像処理を実行する。
The first
例えば、設定回転角が+60°である場合、画像処理制御部32は、第1回転角を−30°と算出し、第2回転角を+90°と算出する。画像処理制御部32が算出した角度で第1回転処理部251と第2回転処理部252とが画像処理を行うことで、入力画像NGは、+60°の回転がなされる。
また、例えば、設定回転角が+30°である場合、画像処理部25は、第1回転角を+30°と計算し、第2回転角を0°と計算する。0°の回転は360°の回転と同じ処理である。画像処理制御部32が算出した角度で第1回転処理部251と第2回転処理部252とが画像処理を行うことで、入力画像NGは、+30°の回転がなされる。
For example, when the set rotation angle is + 60 °, the image
For example, when the set rotation angle is + 30 °, the
このように画像処理制御部32は、第1回転角と、第2回転角との総和が設定回転角となるように、各処理部に入力画像NGを回転させる角度を算出する。画像処理制御部32は、第1回角が−45°以上+45以下の範囲となるように、且つ、第2回転角が90°単位となるように算出する。より詳細には、第1回転角の範囲は、少なくとも、−45°より大きく+45°以下、または、−45°以上+45°未満の範囲を含む。
As described above, the image
画像処理制御部32は、第1回転角を算出すると、算出した角度を示す角度情報を第1回転処理部251に出力し、第1回転処理部251に対して入力画像NGを回転させる角度を指定する。また、画像処理制御部32は、第2回転角を示す角度情報も、第1回転処理部251に出力する。また、画像処理制御部32は、第2回転処理部252についても同様に角度情報を出力する。なお、第2回転処理部252については、第1回転角を含む角度情報を出力しなくてもよい。
After calculating the first rotation angle, the image
図2を参照して、第1回転処理部251、及び第2回転処理部252について詳細に説明していく。
第1回転処理部251は、ラインバッファー253と、対応テーブル254と、画像出力部255と、フィルターテーブル256とを備える。また、画像出力部255は、ラインバッファー257を備える。
The first
The first
ラインバッファー253は、ラインバッファー253A、253B、253C、253Dを備える。各ラインバッファー253A、253B、253C、253Dは、水平方向の1ライン分の画像データを記憶する。すなわち、本実施形態のラインバッファー253は、水平方向の4ライン分の画像データを記憶する。以下では、I/F部24から入力され、ラインバッファー253に記憶された水平方向の複数ライン分の画像データを画像データD2と表記する。ラインバッファー253は、画像処理前の画像データD2を記憶するため専用のバッファーである。
画像データD2には、画像データD2を構成する各画素の画素データが含まれる。画素データには、画素の位置を示す画素位置情報と、画素の画素値とが含まれる。
図2には、4つのラインバッファー253A、253B、253C、253Dを備えたラインバッファー253を示したが、ラインバッファー253の数は4つに限定されるものではない。
The
The image data D2 includes pixel data of each pixel constituting the image data D2. The pixel data includes pixel position information indicating the position of the pixel and a pixel value of the pixel.
Although FIG. 2 shows the
第1回転処理部251の画像出力部255は、画像処理制御部32に指定された角度に基づいて、対応テーブル254に格納される画素対応情報を参照しつつ、ラインバッファー253に記憶された画像データD2を利用して入力画像NGを回転させる画像処理を実行する。そして、第1回転処理部251は、回転させた入力画像NGを含む画像を第2回転処理部252に出力する。
以下の説明では、第1回転処理部251が第2回転処理部252に出力する画像を、第1処理画像SG1(第1画像)(図5等参照)という。
The
In the following description, an image output from the first
対応テーブル254は、第1回転角、及び、第2回転角に対応した画素対応情報が複数格納されている。画素対応情報とは、第1処理画像SG1を構成する画素のそれぞれについて、第1処理画像SG1における画素位置情報と、この画素位置情報が示す画素の位置に対応する入力画像NG上の位置を示す位置情報とが対応付いた情報である。 The correspondence table 254 stores a plurality of pieces of pixel correspondence information corresponding to the first rotation angle and the second rotation angle. The pixel correspondence information indicates, for each pixel constituting the first processed image SG1, pixel position information in the first processed image SG1 and a position on the input image NG corresponding to the pixel position indicated by the pixel position information. This is information associated with position information.
図4、図5、及び、図6を参照して、第1回転処理部251の処理を詳細に説明する。図4、図5、及び図6では、設定回転角が−30°である場合の第1回転処理部251の処理を示している。
図4は、入力画像NGの一例を示す図である。図4には、入力画像NGを構成する画素の一部を拡大して示す。図5は、−30°で回転した入力画像NGの領域と、第1処理画像SG1として第2回転処理部252に出力される領域AAとの対応関係を示す図である。図6は、第1処理画像SG1の一例を示す図である。
The process of the first
FIG. 4 is a diagram illustrating an example of the input image NG. FIG. 4 shows an enlarged view of a part of the pixels constituting the input image NG. FIG. 5 is a diagram illustrating a correspondence relationship between the region of the input image NG rotated by −30 ° and the region AA output to the second
設定回転角が−30°である場合、画像処理制御部32は、第1回転角として−30°を第1回転処理部251に指定し、第2回転角として0°を第2回転処理部252に指定する。
When the set rotation angle is −30 °, the image
第1回転処理部251の画像出力部255は、画像処理制御部32から−30°を示す角度情報と、0°を示す角度情報と入力されると、対応テーブル254から、第1回転角が−30°であって且つ第2回転角が0°であることに対応する画素対応情報を取得する。ここで取得される画素対応情報は、入力画像NGと同じサイズで横長の第1処理画像SG1に係る画素対応情報である。
When the
図4の入力画像NGのうち入力画像NG−1を示す画像データD2がラインバッファー253に記憶されており、この画像データD2を利用して、第1処理画像SG1を構成する画素GS1、GS2の画素データを生成する場合について説明する。
Image data D2 indicating the input image NG-1 in the input image NG of FIG. 4 is stored in the
画素対応情報には、第1処理画像SG1における画素GS1の画素位置情報と、第1処理画像SG1における画素GS1の位置と対応する−30°回転した入力画像NG上の位置を示す位置情報とが対応付いている。
図4は、便宜的に、画素GS1の位置に対応する−30°回転した入力画像NG上の位置を、画素GS1´の位置で示している。また、図4は、入力画像NGの一例と共に、画素GS1´、GS2´の位置の周辺に位置する入力画像NGを構成する画素を併せて示している。
The pixel correspondence information includes pixel position information of the pixel GS1 in the first processed image SG1 and position information indicating a position on the input image NG rotated by −30 ° corresponding to the position of the pixel GS1 in the first processed image SG1. With correspondence.
For convenience, FIG. 4 shows the position on the input image NG rotated by −30 ° corresponding to the position of the pixel GS1 as the position of the pixel GS1 ′. FIG. 4 also shows an example of the input image NG and the pixels constituting the input image NG located around the positions of the pixels GS1 ′ and GS2 ′.
画像出力部255は、画素対応情報、及びラインバッファー253に記憶された入力画像NG−1を示す画像データD2に基づいて、画素GS1´の位置に、入力画像NGを構成する1の画素が有るか否かを判別する。画像出力部255は、無いと判別した場合、画素GS1´の位置の周囲に位置する複数の画素に基づいて補間処理を行い画素GS1の画素値を求める。なお、ラインバッファー253には、入力画像NGを構成する各画素のデータが記憶される。そのため、画像出力部255は、ラインバッファー253に記憶されたデータを参照することで、画素GS1´の位置に入力画像NGを構成する1の画素が有るか判別可能である。補間処理において2×2画素を使用する場合、画像出力部255は、画素GS1´の位置の周辺に位置する画素GSa、GSb、GSc、GSdを使用して、画素GS1の画素値を算出する。画像出力部255は、算出の際にフィルターテーブル256に登録されているフィルター係数と、画素GSa、GSb、GSc、GSdの画素値との畳み込み演算を行って、画素GS1の画素値を算出する。なお、フィルター係数は、補間処理により画素値を求めるための係数である。
The
画像出力部255は、画素GS1の画素値を算出すると、画素GS1について、算出した画素値と第1処理画像SG1における画素位置情報とが対応付いた画素データをラインバッファー257に記憶させる。なお、画像出力部255は、画素GS1´の位置に、入力画像NGを構成する1の画素が有る場合、その1の画素の画素値を、画素GS1の画素値として画素データをラインバッファー257に記憶させる。
When the pixel value of the pixel GS1 is calculated, the
ラインバッファー257は、ラインバッファー257A、257B、257Cを備える。各ラインバッファー257A、257B、257Cは、水平方向の1ライン分の画像データを記憶する。ラインバッファー257は、画像処理後の画素データを記憶するため専用のバッファーである。なお、図2には、3つのラインバッファー257A、257B、257Cを備えたラインバッファー257を示したが、ラインバッファー257の数は3つに限定されるものではない。
The
画像出力部255は、ラインバッファー257に記憶された画素データをブロック単位で第2回転処理部252にバースト転送する。これは、第1処理画像SG1を構成する画素の画素データを効率的に第2回転処理部252に転送するためである。なお、ブロックとは、ラインバッファー257を所定の基準で分割した単位当たりの記憶領域である。画像出力部255は、画素GS1の画素データをラインバッファー257に記憶すると、画素GS1の画素データをブロック単位で第2回転処理部252に出力する。
The
画像出力部255は、画素GS2の画素値を算出する際、画素GS1と同様にして算出する。画素対応情報には、第1処理画像SG1における画素GS2の画素位置情報と、この画素位置情報が示す画素GS2の位置と対応する−30°回転した入力画像NG上の位置を示す位置情報とが対応付いている。図4は、便宜的に、画素GS2の位置に対応する−30°回転した入力画像NG上の位置を、画素GS2´の位置で示している。画像出力部255は、画素GS2´の位置の周辺に位置する画素GSc、GSe、GSf、GSgを使用して、画素GS2の画素値を算出する。画像出力部255は、画素GS2の画素値を算出すると、画素GS2について、算出した画素値、及び画素位置情報が対応付いた画素データをラインバッファー257に記憶させ、ブロック単位で第2回転処理部に出力する。
The
なお、画像出力部255は、画素GS2´の位置に、入力画像NGを構成する1の画素が有る場合、その1の画素の画素値を、画素GS2の画素値として画素データをラインバッファー257に記憶させる。
Note that when there is one pixel constituting the input image NG at the position of the pixel GS2 ′, the
画像出力部255は、入力画像NGを回転させた態様で画素データをラインバッファー257に記憶させる。例えば、第1処理画像SG1において画素GS1と画素GS2とが隣接して同じ水平方向の1ライン上に位置する場合、画像出力部255は、画素GS1と画素GS2とを水平方向に隣接するようにラインバッファー257に記憶させる。
The
このように、第1回転処理部251は、画素対応情報を参照し、第1処理画像SG1を構成する画素のそれぞれについて、第1処理画像SG1上における画素の位置と回転した入力画像NG上の位置との対応関係に基づいて、画素値を算出する。そして、第1回転処理部251は、第1処理画像SG1を構成する画素のそれぞれについて、画素値と第1処理画像SG1上における画素位置情報とが対応付いた画素データをラインバッファー257を介して第2回転処理部252に出力していく。これにより、第1回転処理部251は、図6に示すように、−30°回転した入力画像NGを含む第1処理画像SG1を第2回転処理部252に出力する。
As described above, the first
図5において、一点鎖線で示す矩形の領域AAは、第1処理画像SG1として第2回転処理部252に出力される領域である。図5に示すように、第1処理画像SG1を構成する画素GS1、GS2は、―30°回転した入力画像NG上に対応する画素であるが、画素GS3は、―30°回転した入力画像NG上に対応しない画素である。画像出力部255は、このような画素について、例えば黒色の画素値を設定する。画素対応情報は、画素GS3の画素位置情報と、画素GS3の位置に対応する位置が−30°回転した入力画像NGに対応しないことを示す情報とが対応付いている。画像出力部255は、画素GS3について、設定した所定の画素値と第1処理画像SG1における画素位置情報とが対応付いた画素データを、ラインバッファー257を介して第2回転処理部252に出力する。
In FIG. 5, a rectangular area AA indicated by a one-dot chain line is an area output to the second
このように、画像出力部255は、対応テーブル254から、入力画像NGを−30°回転させるための画素対応情報を参照し、ラインバッファー253に記憶されていく画像データD2に基づいて、第1処理画像SG1を構成する各画素の画素データを第2回転処理部252に出力する。これにより、第1回転処理部251は、図6に示すような、−30°回転した入力画像NGを含み、且つ、入力画像NG以外の領域を所定の色で塗りつぶした第1処理画像SG1を第2回転処理部252に出力する。
In this way, the
次に、図7、及び、図8を参照して、設定回転角が+60°である場合における第1回転処理部251の処理を説明する。図7は、−30°で回転した入力画像NGの領域と、第1処理画像SG1として第2回転処理部252に出力される領域ABとの対応関係を示す図である。図8は、第1処理画像SG1の一例を示す図である。
Next, the process of the first
設定回転角が+60°である場合、画像処理制御部32は、第1回転角として−30°を指定し、第2回転角として+90°を指定する。
When the set rotation angle is + 60 °, the image
第1回転処理部251の画像出力部255は、画像処理制御部32から−30°を示す角度情報と、+90°を示す角度情報とが入力されると、対応テーブル254から、第1回転角が−30°であって且つ第2回転角が+90°であることに対応する画素対応情報を取得する。この場合に取得される画素対応情報は、長辺LHのサイズと短辺THのサイズとの比が入力画像NGから反転した第1処理画像SG1に係る画素対応情報である。
When the angle information indicating −30 ° and the angle information indicating + 90 ° are input from the image
画像出力部255は、対応テーブル254から、図7に示すような縦長の第1処理画像SG1についての画素対応情報を参照し、第1処理画像SG1を構成する各画素の画素データを、上述したように生成して第2回転処理部252に出力する。これにより、第1回転処理部251は、図8に示すように、−30°回転した入力画像NGを含む縦長の第1処理画像SG1を第2回転処理部252に出力する。
The
このように、第1回転処理部251は、第2回転角に応じて、長辺LHのサイズと短辺THのサイズとの比が異なる第1処理画像SG1を出力する。より詳細には、第2回転角が90°或いは270°である場合、長辺LHのサイズと短辺THのサイズとの比を横長の入力画像NGから反転させた縦長の第1処理画像SG1を第2回転処理部252に出力する。また、第2回転処理部252が第1処理画像SG1を回転させる角度が、0°(360°)或いは180°である場合、第1回転処理部251は、入力画像NGと同じサイズで同じ形の第1処理画像SG1を第2回転処理部252に出力する。このことの効果については後述する。
As described above, the first
次に、第2回転処理部252の処理について説明する。
第2回転処理部252は、第1回転処理部251から出力された第1処理画像SG1を示す画像データD3をフレームメモリー27に書き込む。
Next, the process of the second
The second
第2回転処理部252は、画像処理制御部32から指定された角度に基づいて、フレームメモリー27に記憶された第1処理画像SG1を回転させる画像処理を行い、画像処理を行った画像を示す画像データを光変調装置駆動部23に出力する。この光変調装置駆動部23に出力する画像データが、上述した出力画像データD4である。
以下の説明では、第2回転処理部252が出力する画像を、第2処理画像SG2(第2画像)(図11等を参照)という。
The second
In the following description, the image output by the second
第2回転処理部252は、フレームメモリー27上の第1処理画像SG1の各画素データを、90°単位で指定された回転角に対応する読み出し順序で読み出すことにより、第1処理画像SG1を回転させた第2処理画像SG2を出力する。
The second
図9、図10、及び図11は、第1処理画像SG1を0°で回転させる場合の第2回転処理部252の処理を説明するための図である。図9は、フレームメモリー27に記憶された第1処理画像SG1を構成する画素の画素データを読み出す順番を示す図である。図10は、フレームメモリー27から読み出された画素データを第2回転処理部252に出力する順番を示す図である。図11は、図6に示す第1処理画像SG1を0°で回転させる処理を実行した場合の第2処理画像SG2の一例を示している。
9, 10 and 11 are diagrams for explaining the processing of the second
図9に示す第1処理画像SG1は、水平方向に画素が並ぶ画素列が、水平方向と直交する直交方向にn個並んでいる画像である。第1処理画像SG1を0°で回転させる場合、第2回転処理部252は、図9に示すように、1行目、2行目・・・n−1行目、n行目の順番で、1の画素列について左から右に向かって1つずつ画素の画素データを読み出していく。
The first processed image SG1 illustrated in FIG. 9 is an image in which n pixel rows in which pixels are arranged in the horizontal direction are arranged in an orthogonal direction orthogonal to the horizontal direction. When the first processed image SG1 is rotated at 0 °, the second
図10に示す第2処理画像SG2は、水平方向に画素が並ぶ画素列が、直交方向にn個並んでいる画像である。第2回転処理部252は、第2処理画像SG2を出力する際、第1処理画像SG1から画素データを読み出した順番に従って、読みした画素データを、図10に示すように、1行目、2行目・・・n−1行目、n行目の順番で、1の画素列について左から右に向かって1つずつ出力していく。
The second processed image SG2 illustrated in FIG. 10 is an image in which n pixel rows in which pixels are arranged in the horizontal direction are arranged in the orthogonal direction. When the second
例えば、第1処理画像SG1の1行目の画素列を左から右に向かって画素データを読み出した場合、第2回転処理部252は、読み出した画素列を第2処理画像SG2の1行目の画素列として、読み出した順に画素データを左から右に向かって出力する。
For example, when pixel data is read from the first pixel column of the first processed image SG1 from the left to the right, the second
第2回転処理部252は、図6に示す第1処理画像SG1に対して、上述した読み出し及び出力を行うことで、図11に示す第2処理画像SG2を出力する。すなわち、第2回転処理部252は、−30°で回転した入力画像NGを含む第2処理画像SG2を出力する。
The second
第1処理画像SG1を180°で回転させる場合、第2回転処理部252は、n行目、n−1行目、・・・、2行目、1行目の順で、1の画素列について図9に示す矢印とは逆の方向に向かって1つずつ画素データを読み出す。そして、第2回転処理部252は、読みした画素データを、1行目、2行目・・・n−1行目、n行目の順番で、1の画素列について左から右に向かって1つずつ画素データを出力していく。例えば、第1処理画像SG1のn行目の画素列を右から左に向かって画素データを読み出した場合、第2回転処理部252は、読み出した画素列を第2処理画像SG2の1行目の画素列とし、左から右に向かって出力する。この読み出しと出力とを行うことで、第2回転処理部252は、第1処理画像SG1が180°回転した第2処理画像SG2を出力する。
When the first processed image SG1 is rotated by 180 °, the second
図12、図13、及び図14は、第1処理画像SG1を90°で回転させる場合の第2回転処理部252の処理を説明するための図である。図12は、フレームメモリー27に記憶された第1処理画像SG1を構成する画素の画素データを読み出す順番を示している。図13は、フレームメモリー27から読み出された画素データを第2回転処理部252が出力する順番を示している。図14は、図8に示す第1処理画像SG1を90°で回転させる画像処理を行った第2回転処理部252が出力する第2処理画像SG2の一例を示している。
FIGS. 12, 13, and 14 are diagrams for explaining the processing of the second
前述した通り、第2回転処理部252が90°或いは270°で第1処理画像SG1を回転させる際、フレームメモリー27には、図12に示すような、長辺LHのサイズと短辺THのサイズとの比を入力画像NGから反転した第1処理画像SG1が記憶される。
As described above, when the second
図12に示す第1処理画像SG1は、直交方向に画素が並ぶ画素列が水平方向にn個並んでいる画像である。第1処理画像SG1を90°で回転させる場合、図12に示すように、第2回転処理部252は、1列目、2列目・・・n−1列目、n列目の順番で、1の画素列について上から下に向かって1つずつ画素データを読み出す。
The first processed image SG1 shown in FIG. 12 is an image in which n pixel rows in which pixels are arranged in the orthogonal direction are arranged in the horizontal direction. When the first processed image SG1 is rotated by 90 °, as shown in FIG. 12, the second
図13に示す第2処理画像SG2は、水平方向に画素が並ぶ画素列が直交方向にn個並んでいる画像であるとする。第2回転処理部252は、第2処理画像SG2を出力する際、第1処理画像SG1から画素データを読み出した順番に従って、読みした画素データを、図13に示すように、1行目、2行目・・・n−1行目、n行目の順番で、1の画素列について左から右に向かって1つずつ画素の画素データを出力していく。
The second processed image SG2 illustrated in FIG. 13 is an image in which n pixel rows in which pixels are arranged in the horizontal direction are arranged in the orthogonal direction. When the second
例えば、第1処理画像SG1から1列目の画素列について上から下に向かって画素データを読み出した場合、第2回転処理部252は、読み出した画素列を第2処理画像SG2の1行目の画素列として、読み出した順に画素データを左から右に向かって出力する。
For example, when pixel data is read from top to bottom for the first pixel column from the first processed image SG1, the second
第2回転処理部252は、図8に示す第1処理画像SG1に対して、上述した読み出し及び出力を行うことで、図14に示す第2処理画像SG2を出力する。すなわち、第2回転処理部252は、+60°回転した入力画像NGを含む第2処理画像SG2を出力する。
The second
第1処理画像SG1を270°で回転させる場合、第2回転処理部252は、n列目、n−1列目、・・・、2列目、1列目の順で、1の画素列について図12に示す矢印とは逆の方向に向かって1つずつ画素データを読み出す。そして、第2回転処理部252は、読みした画素データを、1行目、2行目・・・n−1行目、n行目の順番で、1の画素列について左から右に向かって1つずつ画素データを出力していく。例えば、第1処理画像SG1のn列目の画素列を下から上に向かって画素データを読み出した場合、第2回転処理部252は、読み出した画素列を第2処理画像SG2の1行目の画素列とし、左から右に向かって出力する。この読み出しと出力と行うことで、第2回転処理部252は、第1処理画像SG1が270°回転した第2処理画像SG2を出力する。
When the first processed image SG1 is rotated at 270 °, the second
以上のように、第1回転処理部251は、+45°以下−45°以上の範囲で指定された角度で入力画像NGを回転させる画像処理を実行して第1処理画像SG1を第2回転処理部252に出力する。そして、第2回転処理部252は、90°単位で指定された角度で第1処理画像SG1を回転させる画像処理を実行して第2処理画像SG2を出力する。第2回転処理部252は、90°単位で指定された角度で第1処理画像SG1を回転させる際、フレームメモリー27から読み出す画素データの順序を角度に応じて異ならせるだけでよい。したがって、第2回転処理部252は、第2処理画像SG2を構成する画素のそれぞれについて、1の画素データを出力する際に、フレームメモリー27から複数の画素データを読み出す必要がない。そのため、フレームメモリー27に対するアクセスの帯域の利用効率向上を図りつつ、入力画像NGを回転させる処理を行うことができる。
As described above, the first
また、第2回転処理部252が第1処理画像SG1を90°或いは270°に回転させる場合、第1回転処理部251は、長辺LHのサイズと短辺THのサイズとの比が入力画像NGから反転した第1処理画像SG1を出力する。これにより、第2回転処理部252は、第1処理画像SG1を90°或いは270°で回転させることで、入力画像NGと同じサイズで同じ形の第2処理画像SG2を出力できる。従って、投射画像は、入力画像NGの回転に応じて画角が変化することない。また、入力画像NGと同じサイズ及び形の第2処理画像SG2を出力する場合に、第2回転処理部252が長辺LHのサイズと短辺THのサイズとを変更する処理の負荷を軽減できる。
When the second
また、第1回転処理部251は、+45°以下−45°以上の範囲で画像処理制御部32に指定された角度で入力画像NGを回転させる。これにより、画像処理部25は、プロジェクター1のコストアップを抑えて、且つ、360°すべての角度で入力画像NGを回転させる画像処理を行える。
前述した通り、ラインバッファー257は、入力画像NGを所定の角度回転させた態様で画素データを記憶する。そのため、ラインバッファー257に記憶されていく画素データは、入力画像NGの回転角が+90°或いは−90°に近づけば近づくほど、ラインバッファー257上の水平方向と直交する方向に増えていく。したがって、広い範囲の角度で第1回転処理部251が入力画像NGを回転させることが可能な構成とすると、第1回転処理部251は、ラインバッファー257を多く必要とする。これは、プロジェクター1のコストアップにつながる。そこで、第1回転処理部251に入力画像NGを回転させる角度の範囲は、できるだけ狭いことが望ましいが、+45以下−45以上の範囲より狭いと、第2回転処理部252と組み合わせた回転角が360°すべての角度をカバーできない。
そこで、第1回転処理部251は、+45°以下−45°以上の範囲で画像処理制御部32に指定された角度で入力画像NGを回転させるよう構成することで、上述した効果を奏することができる。
また、画像処理部25は、入力画像NGと第1処理画像SG1との角度の差が小さいくして第1回転処理部251が入力画像NGを回転させることができるため、第1回転処理部251のラインバッファー257を少なくできる。
The first
As described above, the
Therefore, the first
Further, the
また、第1回転処理部251は、第1処理画像SG1を構成する画素であって、入力画像NGに対応しない画素に所定の画素値を設定して、第1処理画像SG1を出力する。プロジェクター1では、入力画像NG以外の領域に所定の画素値を設定しないと、スクリーンSCに投写される入力画像NG以外の領域が不自然に明るくなり、投写画像の画質を低下させる要因となる。したがって、第1処理画像SG1を構成する画素であって、入力画像NGに対応しない画素に所定の画素値を設定するため、回転した入力画像NGを含む投射画像の画質が低下することを抑制できる。
In addition, the first
次に、プロジェクター1の動作について、説明する。
図15は、プロジェクター1の動作を示すフローチャートである。
Next, the operation of the
FIG. 15 is a flowchart showing the operation of the
プロジェクター1の画像処理制御部32は、入力処理部53からの出力に基づいて、操作パネル51やリモコン50等の操作により、入力画像NGを回転させる角度が設定されたか否かを判別する(ステップS1)。
Based on the output from the
画像処理制御部32は、入力画像NGを回転させる角度が設定されたと判別した場合(ステップS1:YES)、設定回転角が−45°以上+45°以下であるか否かを判別する(ステップS2)。
When it is determined that the angle for rotating the input image NG is set (step S1: YES), the image
画像処理制御部32は、設定回転角が−45°以上+45°以下であると判別した場合(ステップS2:YES)、第1回転角を−45°以上+45°以下の範囲に指定し、第2回転角を0°に指定する(ステップS3)。
When determining that the set rotation angle is not less than −45 ° and not more than + 45 ° (step S2: YES), the image
一方で、画像処理制御部32は、設定回転角が−45°以上+45°以下でないと判別した場合(ステップS2:NO)、第1回転角を−45°以上+45°以下の範囲に指定し、第2回角を90°単位の角度に指定する(ステップS4)。
On the other hand, if the image
ステップS4について更に詳細に説明する。
設定回転角が+45°より大きく+135°以下である場合、画像処理制御部32は、第1回転角を−45°以上+45°以下の範囲に指定し、第2回転角を+90°に指定する。設定回転角が−225°より大きく−315°より小さい場合も、画像処理制御部32は、同様に指定する。
また、設定回転角が+135°より大きく+225°以下である場合、画像処理制御部32は、第1回転角を−45°以上+45°以下の範囲に指定し、第2回転角を+1800°に設定する。設定回転角が−135°より大きく−225°以下である場合も、画像処理制御部32は、同様に指定する。
また、設定回転角が+225より大きく+315°より小さい場合、画像処理制御部32は、第1回転角を−45°以上+45°以下の範囲に指定し、第2回転角を+270°に設定する。設定回転角が−45°より大きく−135°以下である場合も、画像処理制御部32は、同様に指定する。
Step S4 will be described in more detail.
When the set rotation angle is greater than + 45 ° and less than + 135 °, the image
When the set rotation angle is greater than + 135 ° and less than + 225 °, the image
When the set rotation angle is larger than +225 and smaller than + 315 °, the image
以上、説明したように、本発明を適用した実施形態に係るプロジェクター1は、入力された入力画像NGを、指定された角度で回転させる処理を実行して第1処理画像SG1(第1画像)を出力する第1回転処理部251(第1処理部)と、第1回転処理部251により出力された第1処理画像SG1を90°単位で指定される角度で回転させる処理を実行して第2処理画像SG2を出力する第2回転処理部252と、を備える。
本発明の画像処理装置、及び、画像処理方法を適用したプロジェクター1によれば、第1回転処理部251と、第1処理画像SG1を90°単位で回転させる第2回転処理部252とを用いて画像を回転させるので、第1回転処理部251は90°以下の角度で入力画像NGを回転させればよい。このため、第1回転処理部251のラインバッファー257を多くすることなく、360°の範囲で入力画像NGを回転することができるので、コストアップを抑えることができる。また、第1回転処理部251と第2回転処理部252とで2段階で入力画像NGを回転させるため、入力画像NGの回転処理において読み出すデータが増大せず、入力画像NGを回転させる処理においてフレームメモリー27を含むメモリーへのアクセスの帯域の利用効率向上を図ることができる。したがって、コストアップを抑えつつ、メモリーアクセスの帯域の利用効率の向上を図りながら、入力画像NGを回転させる処理を行うことができる。
As described above, the
According to the image processing apparatus and the
また、第1処理画像SG1を記憶するフレームメモリー27(メモリー)を備え、第2回転処理部252は、フレームメモリー27に記憶された第1処理画像SG1を回転させる処理を実行する。
この構成によれば、第2回転処理部252は、90°単位で指定された角度で第1処理画像SG1を回転させる際、フレームメモリー27から読み出す画素データの順序を角度に応じて異ならせるだけでよい。したがって、第2回転処理部252は、第2処理画像SG2を構成する画素のそれぞれについて、1の画素データを出力する際に、フレームメモリー27から複数の画素データを読み出す必要がない。そのため、フレームメモリー27へのアクセスの帯域の利用効率を向上でき、入力画像NGを回転させる処理の効率の向上を図ることができる。
In addition, a frame memory 27 (memory) that stores the first processed image SG1 is provided, and the second
According to this configuration, when the second
また、第1回転処理部251は、入力画像NGを反時計回りの方向(正方向)、及び、時計回りの方向(逆方向)に回転させる処理を実行可能であり、反時計回りの方向に45°以下かつ時計回りの方向に45°以下の範囲で指定される角度で入力画像NGを回転させる。
Further, the first
この構成によれば、第1回転処理部251が入力画像NGを回転させる角度が、正方向に45°以下かつ逆方向に45°以下の範囲であるため、プロジェクター1のコストアップを抑えて、且つ、360°すべての角度で入力画像NGを回転させる画像処理を行える。
According to this configuration, since the angle at which the first
また、第1回転処理部251は、入力画像NG内の点を回転中心として入力画像NGを回転させる構成としてもよい。本実施形態では、入力画像NG内の点は、入力画像NGの重心Gである。
In addition, the first
この構成によれば、入力画像NGの重心Gを回転中心として入力画像NGを回転させるため、第1回転処理部251が入力画像NGを回転させる角度を限定することで、処理負荷を顕著に軽減できる。結果、プロジェクター1は、より一層、入力画像NGを回転させる処理効率を向上できる。
According to this configuration, since the input image NG is rotated with the center of gravity G of the input image NG as the rotation center, the processing load is significantly reduced by limiting the angle at which the first
また、第2回転処理部252は、入力画像NGと同じサイズの第2処理画像SG2を出力する構成としてよい。
The second
この構成によれば、入力画像NGと同じサイズの第2処理画像SG2を出力する場合、第2回転処理部252が、第2処理画像SG2のサイズを入力画像NGと同じサイズに調整する構成とすることができる。したがって、第2回転処理部252は、第1回転処理部251における処理負荷をより軽減できる。
According to this configuration, when outputting the second processed image SG2 having the same size as the input image NG, the second
また、プロジェクター1は、第1回転処理部251、及び第2回転処理部252を制御する画像処理制御部32(制御部)を備える。第1回転処理部251は、入力画像NGが矩形の画像である場合に矩形の第1処理画像SG1を出力する。画像処理制御部32は、第2回転処理部252が第1処理画像SG1を回転させる角度に対応して、第1回転処理部251により、長辺LHのサイズと短辺THのサイズとの比が入力画像NGとは異なる第1処理画像SG1を出力させる。
The
この構成によれば、第2回転処理部252が第1処理画像SG1を回転させる角度に対応して、第1回転処理部251により、長辺LHと短辺THとのサイズの比が入力画像NGとは異なる第1処理画像SG1を出力させるため、第1処理画像SG1を回転させる角度に対応したサイズの第2処理画像SG2を出力できる。
According to this configuration, the ratio of the size of the long side LH to the short side TH is determined by the first
また、画像処理制御部32は、第2回転処理部252が第1処理画像SG1を90°或いは270°に回転させる場合、第1回転処理部251により、長辺LHのサイズと短辺THのサイズとの比が入力画像NGから反転した第1処理画像SG1を出力させる。
Further, when the second
この構成によれば、第1処理画像SG1を90°或いは270°に回転させる場合、長辺LHと短辺THとのサイズの比が入力画像NGから反転した第1処理画像SG1を出力させるため、入力画像NGと同じサイズで且つ同じ形の第2処理画像SG2を出力できる。また、第2回転処理部252は、画素データの読み出し順序を変更すれば、入力画像NGと同じサイズ且つ同じ形の第2処理画像SG2を出力できる。そのため、第2処理画像SG2の処理効率を向上できる。
According to this configuration, when the first processed image SG1 is rotated by 90 ° or 270 °, the first processed image SG1 in which the ratio of the size of the long side LH to the short side TH is inverted from the input image NG is output. The second processed image SG2 having the same size and the same shape as the input image NG can be output. In addition, the second
また、第1回転処理部251は、第1処理画像SG1を構成する画素であって、入力画像NGに対応しない画素に所定の画素値を設定して、第1処理画像SG1を出力する。
In addition, the first
この構成によれば、第1処理画像SG1を構成する画素であって、入力画像NGに対応しない画素に所定の画素値を設定するため、回転後の第1処理画像SG1の画質が低下することを抑制できる。さらには、回転した入力画像NGを含む投射画像の画質が低下することを抑制できる。また、第1回転処理部251は、入力画像NGに対応しない画素に所定の画素値を設定するため、入力画像NGに対応しない画素に対する処理負荷が著しく増大することなく、第1処理画像SG1を出力できる。
According to this configuration, since a predetermined pixel value is set to a pixel that constitutes the first processed image SG1 and does not correspond to the input image NG, the image quality of the first processed image SG1 after rotation is degraded. Can be suppressed. Furthermore, it can suppress that the image quality of the projection image containing the rotated input image NG falls. In addition, since the first
プロジェクター1(表示装置)は、第2処理画像SG2を投射する投射部10(表示部)を備える。 The projector 1 (display device) includes a projection unit 10 (display unit) that projects the second processed image SG2.
この構成によれば、設定回転角で回転した入力画像NGを含む第2処理画像SG2を投射画像としてスクリーンSCに投射できる。 According to this configuration, the second processed image SG2 including the input image NG rotated at the set rotation angle can be projected on the screen SC as a projection image.
[第2実施形態]
次に、第2実施形態について説明する。
第2実施形態に係るプロジェクター1は、第1実施形態に係るプロジェクター1と比較して、画像処理部25の第2回転処理部252における入力画像NGの回転処理が異なる。第2実施形態の説明では、第1実施形態に示すプロジェクター1の構成要素と同様の構成要素について、同一の符号を付し、その詳細な説明を省略する。
[Second Embodiment]
Next, a second embodiment will be described.
The
図16は、第2実施形態に係る第2回転処理部252の構成を示すブロック図であり、理解の便宜のため、フレームメモリー27を併せて図示している。
FIG. 16 is a block diagram showing a configuration of the second
図16に示すように、第2回転処理部252は、データ分割部2521と、データ回転部2522と、データ書込部2523と、データ読出部2524と、データ整形部2525とを備える。
As shown in FIG. 16, the second
データ分割部2521は、バッファー25A1を備える。バッファー25A1は、第1回転処理部251の画像出力部255がバースト転送した1のブロック分の画像データD3を記憶する。バッファー25A1の記憶領域は、少なくとも1のブロック分の画像データD3であればよい。以下では、画像出力部255がバースト転送した1のブロック分の画像データD3を、「ブロック画像データ」といい「D31」の符号を付す。データ分割部2521は、バッファー25A1が記憶したブロック画像データD31を複数の画像データに分割し、分割した画像データごとにデータ回転部2522に出力する。
The
図17は、ブロック画像データD31の分割を説明するための図である。 FIG. 17 is a diagram for explaining division of the block image data D31.
図17では、設定回転角が+60°であり、第1回転処理部251によって−30°の回転処理がなされた入力画像NGを含む第1処理画像SG1を図示している。また、図17に示す第1処理画像SG1は、第2回転処理部252において+90°の回転処理がなされるため、長辺LHのサイズと短辺THのサイズとの比を横長の入力画像NGから反転させた縦長の第1処理画像SG1である。
FIG. 17 illustrates a first processed image SG1 including an input image NG that has a set rotation angle of + 60 ° and has been subjected to a rotation process of −30 ° by the first
図17に示す第1処理画像SG1は、データ分割部2521によって最終的に15の画像データに分割される画像であるとする。なお、図17では、分割された画像データを容易に識別するため、便宜的に、分割された画像データごとに「A〜O」のアルファベットを付している。
The first processed image SG1 shown in FIG. 17 is an image that is finally divided into 15 image data by the
第1回転処理部251の画像出力部255が、図17の第1処理画像SG1を示す画像データのうち、「C」、「F」、「I」、「L」、「O」が示す5つの画像データを含むブロック画像データD31を出力したとする。この場合、データ分割部2521は、バッファー25A1に、「C」、「F」、「I」、「L」、「O」が示す5つの画像データを含むブロック画像データD31を記憶する。データ分割部2521は、バッファー25A1に記憶したブロック画像データD31を、「C」、「F」、「I」、「L」、「O」の5つの画像データに分割する。例えば、ブロック画像データD31が、8×40画素の画像データである場合、データ分割部2521は、1の分割ブロック画像データD32が8×8画素の画像データとなるように分割する。分割の仕方は、事前のテストやシミュレーション等によって予め適切に定められている。データ分割部2521は、ブロック画像データD31を「C」、「F」、「I」、「L」、「O」の5つの画像データに分割すると、分割した画像データごとにデータ回転部2522に出力する。
The
以下の説明では、データ分割部2521により分割された1の画像データを、「分割ブロック画像データ」といい「D32」の符号を付す。
In the following description, one piece of image data divided by the
データ回転部2522は、データ分割部2521から入力された分割ブロック画像データD32を、画像処理制御部32から指定された角度に基づいて回転させる回転処理を行う。データ回転部2522は、バッファー25A2を備える。バッファー25A2は、例えば複数のフリップフロップにより構成され、1の分割ブロック画像データD32を記憶する。バッファー25A2の記憶領域は、少なくとも1の分割ブロック画像データD32を記憶可能な領域であればよい。データ回転部2522は、バッファー25A2に記憶された分割ブロック画像データD32を構成する画素データの読み出し順を異ならせることで、画像処理制御部32から指定された角度で、分割ブロック画像データD32を回転させる。後述にて明らかになる通り、データ整形部2525は、データ回転部2522が画素データをバッファー25A2から読み出した順に従って、分割ブロック画像データD32を整形する。そのため、データ回転部2522は、バッファー25A2から画素データを読み出す順番を異ならせることで、データ整形部2525が整形する分割ブロック画像データD32を構成する画素データの配置を異ならせることができ、分割ブロック画像データD32を指定された角度で回転させることができる。したがって、データ回転部2522の読み出し順を異ならせて画素データを読み出すことは、第1処理画像SG1を90°単位で回転させる処理に相当する。
The
図18は、分割ブロック画像データD32の回転を説明するための図である。 FIG. 18 is a diagram for explaining the rotation of the divided block image data D32.
図18を用いた説明では、64つの画素データが記憶可能なバッファー25A2に、図17において「C」が付されている分割ブロック画像データD32が記憶されている場合を例示する。
In the description using FIG. 18, a case where the divided block image data D <b> 32 marked with “C” in FIG. 17 is stored in the
図18で示す番号は、分割ブロック画像データD32を構成する画素データが、バッファー25A2に書き込まれた順番を示している。すなわち、図18は、1行目、2行目・・・7行目、8行目の順番で、左から右に向かって8つの画素データが順に書き込まれた分割ブロック画像データD32を、バッファー25A2が格納している場合を示している。 The numbers shown in FIG. 18 indicate the order in which the pixel data constituting the divided block image data D32 is written in the buffer 25A2. That is, FIG. 18 shows the divided block image data D32 in which eight pixel data are sequentially written from the left to the right in the order of the first row, the second row,..., The seventh row, the eighth row. The case where 25A2 is stored is shown.
データ回転部2522は、画像処理制御部32から指定された角度が0°である場合、バッファー25A2に分割ブロック画像データD32を構成する画素データが書き込まれた順に、画素データを読み出していく。すなわち、データ回転部2522は、0、1・・・62、63の番号の順で画素データを読み出していく。
When the angle specified by the image
また、データ回転部2522は、画像処理制御部32から指定された角度が90°である場合、1の列に対して上から下に向かう順で、且つ、8列目、7列目・・・2列目、1列目の順で、画素データを読み出していく。すなわち、データ回転部2522は、7、15、・・・63、6、・・・57、0、・・・56の番号順で画素データを読み出していく。
Further, when the angle specified by the image
また、データ回転部2522は、画像処理制御部32から指定された角度が180°である場合、1行に対して右から左に向かう順で、且つ、8行目、7行目、・・・、2行目、1行目の順で、画素データを読み出していく。すなわち、データ回転部2522は、63・・・56、55、・・・8、7、・・・、0の番号順で画素データを読み出していく。
In addition, when the angle designated by the image
また、データ回転部2522は、画像処理制御部32から指定された角度が270°である場合、1の列に対して下から上に向かう順で、且つ、1列目、2列目、・・・、7列目、8列目の順で、画素データを読み出していく。すなわち、データ回転部2522は、56、48、・・・、0、57、・・・、6、63、・・・、7の番号順で画素データを読み出していく。
In addition, when the angle specified by the image
データ回転部2522は、画像処理制御部32から指定された角度に応じた読み出し順で、バッファー25A2から読み出した画素データを順次、データ書込部2523に出力することで、90°単位の回転処理がなされた分割ブロック画像データD32をデータ書込部2523に出力する。データ回転部2522は、第1処理画像SG1を構成する分割ブロック画像データD32のそれぞれに対して、同じ読み出し順で画素データを読み出すことにより、第1処理画像SG1を90°単位で回転させることができる。
The
図16の説明に戻り、データ書込部2523は、データ回転部2522から回転処理がなされた分割ブロック画像データD32が入力されると、入力された分割ブロック画像データD32をフレームメモリー27に書き込む。データ書込部2523は、入力された分割ブロック画像データD32を構成する画素データをフレームメモリー27に書き込む際、画素データが入力してきた順で、入力してきた画素データを1列に並べて書き込む。
Returning to the description of FIG. 16, when the divided block image data D32 subjected to the rotation process is input from the
図19は、フレームメモリー27に対する分割ブロック画像データD32の書込み、及び読出しを説明するための図である。
FIG. 19 is a diagram for explaining writing and reading of the divided block image data D32 with respect to the
図19では、第2回転処理部252において+90°の回転処理がなされる場合において、フレームメモリー27に書き込まれる分割ブロック画像データD32を示している。また、図19では、理解の便宜のため、図17に示す15の分割ブロック画像データD32がフレームメモリー27に記憶されている場合を示している。図19に示す「A〜O」のアルファベットは、理解の便宜のため、図17に示す「A〜O」のアルファベットが付されている分割ブロック画像データD32と同じ分割ブロック画像データD32に付されている。
FIG. 19 shows the divided block image data D32 written to the
また、図19の説明では、フレームメモリー27に記憶する前の1の分割ブロック画像データD32が8×8画素の画素データにより構成されているものとする。
In the description of FIG. 19, it is assumed that one divided block image data D32 before being stored in the
データ書込部2523は、「C」が示す分割ブロック画像データD32について、データ回転部2522が、図18に示す7、15・・・63、6・・・57、0・・・56の番号順で画素データを読み出すと、読み出された画素データをこの順で1列に並べてフレームメモリー27に書き込む。図19の場合、データ書込部2523は、64つの画素データを、データ回転部2522の読み出し順に従って左から右に向かって1列に並べて書き込む。つまり、データ書込部2523は、8×8画素の分割ブロック画像データを64×1画素の分割ブロック画像データに整形してフレームメモリー27に書き込む。さらに、データ書込部2523は、「F」が示す分割ブロック画像データD32についてデータ回転部2522により画素データの読み出しが有った場合、「C」が示す分割ブロック画像データD32と同じ列であって且つこの分割ブロック画像データD32の隣から、同様に、画素データを1列に並べて書き込む。データ書込部2523は、既に書き込んだ分割ブロック画像データD32とブロック画像データD31が異なる分割ブロック画像データD32が、データ回転部2522から入力された場合、列を異ならせて入力される分割ブロック画像データD32を書き込む。図19の場合、「C」、「F」、「I」、「L」、「O」が示す分割ブロック画像データD32を含むブロック画像データD31を書き込んだ後、「B」、「E」、「H」、「K」、「N」が示す分割ブロック画像データD32を含むブロック画像データD31のうち「B」が示す分割ブロック画像データD32が入力されたとする。この場合、データ書込部2523は、「C」、「F」、「I」、「L」、「O」が示す分割ブロック画像データD32を含むブロック画像データD31を書き込んだ列と異なる列に「B」が示す分割ブロック画像データD32を同様に書き込む。
In the
データ書込部2523は、第1処理画像SG1の画像データを構成する分割ブロック画像データD32のそれぞれについて、画素データを1列に並べてフレームメモリー27に書き込むことで、データ回転部2522により回転処理された第1処理画像SG1の画像データをフレームメモリー27に書き込む。データ書込部2523は、分割ブロック画像データD32を構成する画素データを一列に並べてフレームメモリー27に書き込むため、書き込む画素データごとにアドレスを指定しなくてもよく、バースト的な書き込みを行える。したがって、データ書込部2523は、データ回転部2522により回転処理がなされた第1処理画像SG1を高速にフレームメモリー27へ書き込める。
The
図16の説明に戻り、データ読出部2524は、フレームメモリー27に書き込まれた分割ブロック画像データD32をブロック画像データD31単位で読み出す。データ読出部2524は、フレームメモリー27に1のブロック画像データD31が書き込まれたタイミングで、書き込まれたこの1のブロック画像データD31を読み出す。なお、データ読出部2524の読み出すタイミングは、任意であり、第1処理画像SG1を構成する全ての画素データがフレームメモリー27に書き込まれたタイミングでもよい。データ読出部2524は、データ書込部2523がフレームメモリー27に書き込んだ画素データの順に、1のブロック画像データD31を構成する画素データを読み出す。例えば、図19に示す「C」、「F」、「I」、「L」、「O」が示す分割ブロック画像データD32で構成されるブロック画像データD31を読み出す場合、データ読出部2524は、「C」、「F」、「I」、「L」、「O」の順に、左から右にむかって順次画素データを読み出す。データ読出部2524は、ブロック画像データD31を読み出す際、フレームメモリー27に1列に並ぶ画素データを読み出せばよいため、読み出す画素データごとにアドレスを指定することなくバースト的な読み出しを行える。したがって、データ読出部2524は、高速にブロック画像データD31をフレームメモリー27から読み出せる。
Returning to the description of FIG. 16, the
データ読出部2524は、読み出したブロック画像データD31を、読み出した画素データの順に、データ整形部2525に出力する。
The
データ整形部2525は、ラインバッファー25A3を備える。ラインバッファー25A3の記憶領域は、少なくとも1のブロック画像データD31を記憶可能な領域であればよい。データ整形部2525は、データ読出部2524により順次読み出されるブロック画像データD31を構成する画素データを、ラインバッファー25A3に記憶しながらブロック画像データD31を整形する。
The
図20は、ブロック画像データD31の整形を説明するための図である。 FIG. 20 is a diagram for explaining shaping of the block image data D31.
図20では、設定回転角が+60°であり、第1回転処理部251によって−30°の回転処理がなされ、第2回転処理部252によって+90°の回転処理がなされた入力画像NGを含む第2処理画像SG2を示している。
In FIG. 20, the set rotation angle is + 60 °, the first
図20に示す第2処理画像SG2は、理解の便宜のため、図17に示す第1処理画像SG1に対して+90°の回転処理が行った画像である。図20では、図17に示す分割ブロック画像データD32と同じ分割ブロック画像データD32について、便宜的に同じアルファベットを付している。図20に示す「A〜O」のアルファベットは、第1処理画像SG1が+90°の回転処理がなされたことを明示するため、+90°に回転させた態様で図示されている。 The second processed image SG2 illustrated in FIG. 20 is an image obtained by performing + 90 ° rotation processing on the first processed image SG1 illustrated in FIG. 17 for convenience of understanding. In FIG. 20, the same alphabet is attached | subjected for convenience about the same divided block image data D32 as the divided block image data D32 shown in FIG. The alphabets “A to O” shown in FIG. 20 are illustrated in a mode rotated to + 90 ° to clearly indicate that the first processed image SG1 has been rotated by + 90 °.
データ整形部2525は、「C」、「F」、「I」、「L」、「O」が示す分割ブロック画像データD32を含むブロック画像データD31がデータ読出部2524から入力されると、それぞれの分割ブロック画像データD32が8×8画素の分割ブロック画像データD32となるように、画素データをラインバッファー25A3に記憶させる。例えば、データ回転部2522が、「C」が示す分割ブロック画像データD32について、7、15・・・63、6・・・57、0・・・56の番号順で画素データを読み出し、この順番で、データ読出部2524が画素データを読み出したとする。この場合、データ整形部2525は、「7、・・・、63」の番号順でデータ回転部2522が読み出した画素データを、この順番で8×8画素の1行目に記憶し、「6、・・・、62」の番号順でデータ回転部2522が読み出した画素データを、この順番で2行目に記憶し、3行目以降も同様に8画素ずつデータ回転部2522が読み出した順で画素データを記憶していく。
When the block image data D31 including the divided block image data D32 indicated by “C”, “F”, “I”, “L”, and “O” is input from the
これにより、データ整形部2525は、画素データを1列に並べてフレームメモリー27に書き込んだ「C」が示す分割ブロック画像データD32を、矩形の分割ブロック画像データD32に整形する。データ整形部2525は、このように画素データをラインバッファー25A3に記憶していくことで、+90°の回転処理がなされた矩形の分割ブロック画像データD32を整形できる。データ整形部2525は、「F」、「I」、「L」、「O」が示す分割ブロック画像データD32のそれぞれについても同様に整形し、「C」、「F」、「I」、「L」、「O」の順に、整形された分割ブロック画像データD32が並んだブロック画像データD31を生成する。
As a result, the
データ整形部2525は、生成したブロック画像データD31を出力画像データD4として、光変調装置駆動部23に出力する。データ整形部2525は、同様に、図20に示す「B」、「E」、「H」、「K」、「N」が示す分割ブロック画像データD32について整形して、これら分割ブロック画像データD32を含むブロック画像データD31を生成すると、出力画像データD4として出力する。「A」、「D」、「G」、「J」、「M」が示す分割ブロック画像データD32についても同様である。これにより、第2回転処理部252は、図20に示すように、第1処理画像SG1が+90°の回転処理がなされた第2処理画像SG2を出力する。
The
以上説明したように、第2実施形態において、第2回転処理部252は、第1処理画像SG1を回転させる処理を実行した第2処理画像SG2をフレームメモリー27に記憶させる。
As described above, in the second embodiment, the second
この構成によれば、第2回転処理部252は、90°単位で指定された角度で第1処理画像SG1を回転させる際、既に回転処理がなされた画素データを読み出すだけでよい。したがって、第2回転処理部252は、第2処理画像SG2を構成する画素のそれぞれについて、1の画素データを出力する際に、フレームメモリー27から複数の画素データを読み出す必要がない。そのため、フレームメモリー27に対するアクセスの帯域の利用効率向上を図りつつ、入力画像NGを回転させる処理を行うことができる。
According to this configuration, the second
上述した実施形態は、本発明の好適な実施の形態である。ただし、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変形実施が可能である。 The above-described embodiment is a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention.
例えば、上述した第1実施形態では、第2回転処理部252が第1処理画像SG1をフレームメモリー27に記憶させる構成を説明したが、第1回転処理部251が第1処理画像SG1をフレームメモリー27に記憶させる構成でもよい。
For example, in the first embodiment described above, the configuration in which the second
また、例えば、上述した実施形態では、入力画像NGの回転として、入力画像NG内の重心Gを回転中心とした回転を説明したが、回転中心は重心Gでなくてもよく、更には入力画像NG内の点でなくてもよい。また、例えば、上述した実施形態では、入力画像データD1が示す入力画像NGと、出力画像データD4が示す第2処理画像SG2とが同じサイズであることとして説明したが、異なるサイズでもよい。 For example, in the above-described embodiment, the rotation about the center of gravity G in the input image NG is described as the rotation of the input image NG. However, the center of rotation does not have to be the center of gravity G. It does not have to be a point in NG. Further, for example, in the above-described embodiment, the input image NG indicated by the input image data D1 and the second processed image SG2 indicated by the output image data D4 have been described as having the same size, but may be different sizes.
また、図15に示すフローチャートの処理単位は、プロジェクター1の画像処理制御部32の処理を理解容易にするために、主な処理内容に応じて分割したものである。図8のフローチャートに示す処理単位の分割の仕方や名称によって本発明が制限されることはない。また、画像処理制御部32の処理は、処理内容に応じて、さらに多くの処理単位に分割することもできるし、1つの処理単位がさらに多くの処理を含むように分割することもできる。また、上記のフローチャートの処理順序も、図示した例に限られるものではない。
Further, the processing unit of the flowchart shown in FIG. 15 is divided according to the main processing contents in order to facilitate understanding of the processing of the image
また、本発明の表示装置は、スクリーンSCに画像を投射するプロジェクター1に限定されない。例えば、液晶表示パネルを有する液晶ディスプレイであってもよい。また、例えば、PDP(プラズマディスプレイパネル)、有機EL表示パネルを有するディスプレイであってもよく、その他の各種の表示装置にも本発明を適用可能である。
The display device of the present invention is not limited to the
また、上記実施形態でブロック図に示した各機能ブロックのうち少なくとも一部は、ハードウェアで実現してもよく、ハードウェアとソフトウェアの協働により実現される構成としてもよい。従って、ブロック図に示した通りに独立したハードウェア資源を配置する構成に限定されない。また、制御部が実行するプログラムは、記憶部または他の記憶装置(図示略)に記憶されてもよい。また、制御部が、外部の装置に記憶されたプログラムを取得して実行する構成としてもよい。その他、他の各部の具体的な細部構成についても、本発明の趣旨を逸脱しない範囲で任意に変更可能である。 In addition, at least a part of each functional block shown in the block diagram in the above embodiment may be realized by hardware, or may be realized by cooperation of hardware and software. Therefore, the present invention is not limited to a configuration in which independent hardware resources are arranged as shown in the block diagram. The program executed by the control unit may be stored in a storage unit or other storage device (not shown). In addition, the control unit may acquire and execute a program stored in an external device. In addition, the specific detailed configuration of each other part can be arbitrarily changed without departing from the gist of the present invention.
1…プロジェクター(画像処理装置、表示装置)、10…投射部(表示部)、25…画像処理部、27…フレームメモリー(メモリー)、32…画像処理制御部(制御部)、251…第1回転処理部(第1処理部)、252…第2回転処理部(第2処理部)、253、253A、253B、253C、253D…ラインバッファー、254…対応テーブル、255…画像出力部、256…フィルターテーブル、257、257A、257B、257C…ラインバッファー、G…重心(入力画像内の点)、LH…長辺、NG…入力画像、SG1…第1処理画像(第1画像)、SG2…第2処理画像(第2画像)、TH…短辺。
DESCRIPTION OF
Claims (11)
前記第1処理部により出力された前記第1画像を90°単位で指定される角度で回転させる処理を実行して第2画像を出力する第2処理部と、を備える、
画像処理装置。 A first processing unit that executes a process of rotating the input image input at a specified angle and outputs a first image;
A second processing unit that executes a process of rotating the first image output by the first processing unit at an angle specified in units of 90 ° and outputs a second image.
Image processing device.
前記第2処理部は、前記メモリーに記憶された前記第1画像を回転させる処理を実行する、
請求項1に記載の画像処理装置。 With memory,
The second processing unit executes a process of rotating the first image stored in the memory;
The image processing apparatus according to claim 1.
前記第2処理部は、前記第1画像を回転させる処理を実行した前記第2画像を前記メモリーに記憶させる、
請求項1に記載の画像処理装置。 With memory,
The second processing unit stores the second image, which has been subjected to the process of rotating the first image, in the memory.
The image processing apparatus according to claim 1.
請求項1から3のいずれか一項に記載の画像処理装置。 The first processing unit can execute a process of rotating the input image in the forward direction and in the opposite direction opposite to the forward direction, and is in a range of 45 ° or less in the forward direction and 45 ° or less in the reverse direction. Rotate the input image at an angle specified by
The image processing apparatus according to claim 1.
請求項1から4のいずれかに記載の画像処理装置。 The first processing unit rotates the input image with a point in the input image as a rotation center.
The image processing apparatus according to claim 1.
請求項1から5のいずれか一項に記載の画像処理装置。 The second processing unit outputs the second image having the same size as the input image.
The image processing apparatus according to claim 1.
前記第1処理部は、前記入力画像が矩形の画像である場合に矩形の前記第1画像を出力し、
前記制御部は、前記第2処理部が前記第1画像を回転させる角度に対応して、前記第1処理部により、長辺のサイズと短辺のサイズとの比が前記入力画像とは異なる前記第1画像を出力させる、
請求項1から6のいずれか一項に記載の画像処理装置。 A control unit for controlling the first processing unit and the second processing unit;
The first processing unit outputs the rectangular first image when the input image is a rectangular image;
The control unit corresponds to an angle at which the second processing unit rotates the first image, and the ratio of the size of the long side to the size of the short side is different from the input image by the first processing unit. Outputting the first image;
The image processing apparatus according to claim 1.
請求項7に記載の画像処理装置。 When the second processing unit rotates the first image to 90 ° or 270 °, the control unit causes the first processing unit to determine a ratio of a long side size to a short side size from the input image. Outputting the inverted first image;
The image processing apparatus according to claim 7.
請求項1から8のいずれか一項に記載の画像処理装置。 The first processing unit sets a predetermined pixel value to a pixel that constitutes the first image and does not correspond to the input image, and outputs the first image.
The image processing apparatus according to claim 1.
出力された前記第1画像を90°単位で指定される角度で回転させる処理を実行して第2画像を出力する、
画像処理方法。 Execute the process of rotating the input image input at a specified angle to output the first image,
Executing a process of rotating the output first image at an angle specified in units of 90 ° to output a second image;
Image processing method.
前記第1処理部により出力された前記第1画像を90°単位で指定される角度で回転させる処理を実行して第2画像を出力する第2処理部と、
前記第2画像を表示する表示部と、を備える、
表示装置。 A first processing unit that executes a process of rotating the input image input at a specified angle and outputs a first image;
A second processing unit that executes a process of rotating the first image output by the first processing unit at an angle specified in units of 90 ° and outputs a second image;
A display unit for displaying the second image,
Display device.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910217125.2A CN110300239A (en) | 2018-03-22 | 2019-03-21 | Image processing apparatus, image processing method and display device |
US16/360,207 US20190295222A1 (en) | 2018-03-22 | 2019-03-21 | Image processing device, image processing method, and display device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018053971 | 2018-03-22 | ||
JP2018053971 | 2018-03-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019168670A true JP2019168670A (en) | 2019-10-03 |
Family
ID=68107344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018194855A Pending JP2019168670A (en) | 2018-03-22 | 2018-10-16 | Image processing apparatus, image processing method, and display unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2019168670A (en) |
-
2018
- 2018-10-16 JP JP2018194855A patent/JP2019168670A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5348022B2 (en) | Projector and projection conversion processing apparatus | |
US10636388B2 (en) | Display device, display method, and storage medium | |
JP6232778B2 (en) | Image processing apparatus, image display apparatus, and control method for image processing apparatus | |
JP6155717B2 (en) | Image processing apparatus, projector, and image processing method | |
JP2007163725A (en) | Image display system, image display method, information processor, image display device, control program, and recording medium | |
US20200382750A1 (en) | Method of controlling display device, and display device | |
ES2629847T3 (en) | State presentation device and state presentation device presentation method | |
JP5348035B2 (en) | projector | |
JP2019168670A (en) | Image processing apparatus, image processing method, and display unit | |
CN114760451B (en) | Projection image correction prompting method, projection image correction prompting device, projection equipment and storage medium | |
WO2016139889A1 (en) | Image processing device, image processing method, and display device | |
JP2019193144A (en) | Projection device and control method of the same | |
US20190295222A1 (en) | Image processing device, image processing method, and display device | |
JP2005208413A (en) | Image processor and image display device | |
US10819942B2 (en) | Image display apparatus, control method of image display apparatus, and program | |
JP5958224B2 (en) | Display device and display method | |
US20230316960A1 (en) | Display control method, control method for display device, and display device | |
JP6064699B2 (en) | Image processing apparatus, projector, and image processing method | |
US11114001B2 (en) | Image processing device, method of controlling image processing device, and display device | |
JP5353772B2 (en) | projector | |
US11494883B1 (en) | Image correction | |
JP2013168896A (en) | Projection apparatus | |
JP2013195963A (en) | Image processing device, integrated circuit apparatus, and image display system | |
CN115550618A (en) | Control transmission circuit, laser projection method and device | |
JP6621582B2 (en) | Display unevenness correction device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20191209 |
|
RD07 | Notification of extinguishment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7427 Effective date: 20200806 |