JP2011211270A - Image processor, image processing method and program - Google Patents

Image processor, image processing method and program Download PDF

Info

Publication number
JP2011211270A
JP2011211270A JP2010074122A JP2010074122A JP2011211270A JP 2011211270 A JP2011211270 A JP 2011211270A JP 2010074122 A JP2010074122 A JP 2010074122A JP 2010074122 A JP2010074122 A JP 2010074122A JP 2011211270 A JP2011211270 A JP 2011211270A
Authority
JP
Japan
Prior art keywords
image
unit
gap
processing
predetermined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010074122A
Other languages
Japanese (ja)
Other versions
JP5471704B2 (en
Inventor
Atsushi Muraki
淳 村木
Hiroshi Shimizu
博 清水
Hiroyuki Hoshino
博之 星野
Erina Ichikawa
英里奈 市川
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010074122A priority Critical patent/JP5471704B2/en
Publication of JP2011211270A publication Critical patent/JP2011211270A/en
Application granted granted Critical
Publication of JP5471704B2 publication Critical patent/JP5471704B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To easily and appropriately generate an image wherein a gap between dots is corrected from an image in which a display image is picked up.SOLUTION: An imaging apparatus 100 for acquiring a picked up image in which a display image displayed on a display screen where a plurality of dots are arranged in a matrix shape is picked up includes: a quadrilateral conversion processing part 5d for generating a right angle quadrilateral image by executing right angle quadrilateral conversion processing to a prescribed image area of the acquired picked up image; and a filter processing part 5g for executing gap correction processing of correcting the image data of a gap area corresponding to the gap between the dots adjacent in the prescribed direction of the display image to the generated right angle quadrilateral image.

Description

本発明は、撮像された画像に対して所定の画像処理を施す画像処理装置、画像処理方法及びプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program for performing predetermined image processing on a captured image.

液晶ディスプレイなどの表示装置の表示画面に表示された表示画像を撮像した画像では、当該表示装置のマトリクス状に配置された複数のドットどうしの隙間領域が格子状の模様となって現れてしまう。
そこで、画像上の格子状の模様に対応する周期パターンを検出し、この周期パターンに基づいて各ドットに対応する領域を特定して、当該領域の画素値から新たな画像データの各画素の画素値を生成する画像処理装置が知られている(例えば、特許文献1参照)。
In an image obtained by capturing a display image displayed on a display screen of a display device such as a liquid crystal display, a gap region between a plurality of dots arranged in a matrix of the display device appears as a lattice pattern.
Therefore, a periodic pattern corresponding to the lattice pattern on the image is detected, an area corresponding to each dot is specified based on the periodic pattern, and a pixel of each pixel of new image data is determined from the pixel value of the area. An image processing apparatus that generates a value is known (for example, see Patent Document 1).

特開2006−350440号公報JP 2006-350440 A

しかしながら、表示画面に表示された表示画像を撮像する際に、表示画面に対して撮像装置を真正面に正確に対向させていないと、撮像画像に現れる格子状の模様が歪んだ状態となってしまう。この場合、周期パターンの検出を正確に行うことができないばかりか、撮影画像を画像処理して新たな画像データの各画素の画素値を生成する場合に、所定のフィルタを適用して一律に行うことができなくなり、処理効率の悪化を招いてしまう。
また、仮に撮影画像内の周期パターンの画素数の最大値に対応した所定のフィルタを適用して一律に行うようにすると、新たな画像データの画質の劣化を招いてしまうといった問題もある。逆に、仮に撮影画像内の周期パターンの画素数の最小値に対応した所定のフィルタを適用して一律に行うようにすると、十分に表示画面の格子状の模様を消すことが出来ないといった問題もある。
However, when the display image displayed on the display screen is captured, the grid pattern appearing in the captured image is distorted unless the imaging device is accurately opposed to the display screen. . In this case, not only the periodic pattern cannot be detected accurately, but also when a captured image is processed and a pixel value of each pixel of new image data is generated, a predetermined filter is applied. It becomes impossible to cause a deterioration in processing efficiency.
Further, if a predetermined filter corresponding to the maximum number of pixels of the periodic pattern in the captured image is applied uniformly, there is a problem that the image quality of new image data is deteriorated. On the other hand, if a predetermined filter corresponding to the minimum number of pixels of the periodic pattern in the captured image is applied uniformly, the grid pattern on the display screen cannot be erased sufficiently. There is also.

そこで、本発明の課題は、表示画像を撮像した画像からドットどうしの隙間が修正された画像の生成を簡便に、且つ、適正に行うことができる画像処理装置、画像処理方法及びプログラムを提供することである。   Accordingly, an object of the present invention is to provide an image processing apparatus, an image processing method, and a program capable of easily and appropriately generating an image in which a gap between dots is corrected from an image obtained by capturing a display image. That is.

上記課題を解決するため、請求項1に記載の発明の画像処理装置は、
複数のドットがマトリクス状に配置されている表示画面に表示された表示画像を撮像した撮像画像を取得する取得手段と、この取得手段により取得された撮像画像の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像を生成する第1処理手段と、この第1処理手段により生成された前記直角四辺形画像に対して、前記表示画像の所定方向に隣接するドットどうしの隙間に対応する隙間領域の画像データを修正する隙間修正処理を行う第2処理手段と、を備えたことを特徴としている。
In order to solve the above problem, an image processing apparatus according to claim 1 is provided.
An acquisition unit that acquires a captured image obtained by capturing a display image displayed on a display screen in which a plurality of dots are arranged in a matrix, and a right-angled quadrilateral transformation for a predetermined image area of the captured image acquired by the acquisition unit Corresponding to a gap between dots adjacent to each other in a predetermined direction of the display image with respect to the right-angled quadrilateral image generated by the first processing means and a right-handed quadrilateral image by performing processing. And a second processing means for performing a gap correction process for correcting the image data of the gap area to be performed.

請求項2に記載の発明は、請求項1に記載の画像処理装置において、
前記第1処理手段により生成された前記直角四辺形画像における前記隙間領域を構成する画素数を算出する算出手段と、この算出手段により算出された前記画素数に基づいて、前記隙間修正処理にて処理対象となる一の画素の処理範囲を特定する特定手段と、を更に備え、前記第2処理手段は、前記特定手段により特定された前記一の画素の処理範囲を基準として前記直角四辺形画像に対する前記隙間修正処理を行うことを特徴としている。
The invention according to claim 2 is the image processing apparatus according to claim 1,
In the gap correction processing based on the number of pixels constituting the gap area in the right-angled quadrilateral image generated by the first processing means and the number of pixels calculated by the calculation means. Specifying means for specifying a processing range of one pixel to be processed, wherein the second processing means uses the right-sided quadrilateral image based on the processing range of the one pixel specified by the specifying means. The gap correction processing is performed for the above.

請求項3に記載の発明は、請求項2に記載の画像処理装置において、
前記特定手段は、前記算出手段により算出された前記画素数に基づいて、前記処理対象となる一の画素の処理範囲を規定する、前記隙間修正処理としてのフィルタ処理に用いられる所定のフィルタのサイズを特定し、前記第2処理手段は、前記特定手段により特定されたサイズの所定のフィルタを用いて前記直角四辺形画像に対する前記フィルタ処理を行って、当該直角四辺形画像における前記隙間領域の画像データを修正することを特徴としている。
The invention according to claim 3 is the image processing apparatus according to claim 2,
The specifying unit defines a processing range of one pixel to be processed based on the number of pixels calculated by the calculating unit, and a size of a predetermined filter used for the filter processing as the gap correction processing The second processing means performs the filtering process on the right-angled quadrilateral image using a predetermined filter having the size specified by the specifying means, and the image of the gap region in the right-angled quadrilateral image. It is characterized by correcting data.

請求項4に記載の発明は、請求項3に記載の画像処理装置において、
前記算出手段は、前記直角四辺形画像の何れか一の辺と平行な所定の一方向に沿って前記隙間領域を複数特定して、当該複数の隙間領域の各々を構成する画素数を算出し、前記特定手段は、前記算出手段により算出された複数の前記画素数の中での最大値を基準として、前記フィルタ処理に用いられる所定のフィルタのサイズを特定することを特徴としている。
The invention according to claim 4 is the image processing apparatus according to claim 3,
The calculation means specifies a plurality of the gap areas along a predetermined direction parallel to any one side of the right-angled quadrilateral image, and calculates the number of pixels constituting each of the plurality of gap areas. The specifying means specifies a size of a predetermined filter used for the filter processing with reference to a maximum value among the plurality of pixels calculated by the calculating means.

請求項5に記載の発明は、請求項4に記載の画像処理装置において、
前記算出手段は、前記直角四辺形画像の何れか一の辺と平行な複数の方向に沿ってそれぞれ前記隙間領域を複数特定して、各方向における前記複数の隙間領域の各々を構成する画素数を算出し、前記特定手段は、前記算出手段により算出された各方向における複数の前記画素数の中での最大値に基づいて、前記互いに平行な複数の方向に係る複数の画素数を代表する代表値を特定し、特定された代表値を基準として、前記フィルタ処理に用いられる所定のフィルタのサイズを特定することを特徴としている。
The invention according to claim 5 is the image processing apparatus according to claim 4,
The calculation means specifies a plurality of the gap regions along a plurality of directions parallel to any one side of the right-angled quadrilateral image, and the number of pixels constituting each of the plurality of gap regions in each direction And the specifying unit represents the number of pixels in the plurality of directions parallel to each other based on the maximum value among the plurality of pixels in each direction calculated by the calculation unit. A representative value is specified, and a size of a predetermined filter used for the filter processing is specified on the basis of the specified representative value.

請求項6に記載の発明は、請求項1〜5の何れか一項に記載の画像処理装置において、
前記取得手段により取得された前記撮像画像に対して輪郭抽出処理を施して前記所定の画像領域を抽出する抽出手段を更に備え、前記第1処理手段は、前記抽出手段により抽出された前記所定の画像領域に対して前記直角四辺形変換処理を施すことを特徴としている。
The invention according to claim 6 is the image processing apparatus according to any one of claims 1 to 5,
The image processing apparatus further includes an extraction unit that performs an outline extraction process on the captured image acquired by the acquisition unit to extract the predetermined image area, and the first processing unit includes the predetermined image extracted by the extraction unit. It is characterized in that the right-angled quadrilateral transformation process is performed on the image area.

請求項7に記載の発明は、請求項6に記載の画像処理装置において、
前記抽出手段は、前記所定の画像領域を複数抽出し、前記複数の所定の画像領域の中で、前記第1処理手段により前記直角四辺形変換処理が施される所定の画像領域を指定する指定手段を更に備えることを特徴としている。
The invention according to claim 7 is the image processing apparatus according to claim 6,
The extraction means extracts a plurality of the predetermined image areas, and designates a predetermined image area that is subjected to the right-angled quadrilateral transformation process by the first processing means among the plurality of predetermined image areas. The apparatus further comprises means.

請求項8に記載の発明は、請求項1〜7の何れか一項に記載の画像処理装置において、
前記取得手段により取得された前記撮像画像における、前記表示画像を撮像した撮像手段の光学的特性によって生じた歪みを補正する補正手段を更に備え、前記第1処理手段は、前記補正手段により歪みが補正された撮像画像の所定の画像領域に対して前記直角四辺形変換処理を施すことを特徴としている。
The invention according to claim 8 is the image processing apparatus according to any one of claims 1 to 7,
In the captured image acquired by the acquisition unit, the image processing apparatus further includes a correction unit that corrects distortion caused by optical characteristics of the imaging unit that captured the display image, and the first processing unit is distorted by the correction unit. The right-angled quadrangle conversion process is performed on a predetermined image area of the corrected captured image.

請求項9に記載の発明は、請求項1〜8の何れか一項に記載の画像処理装置において、
前記第2処理手段による前記隙間修正処理後の画像を記録手段に記録させる制御手段を更に備えることを特徴としている。
The invention according to claim 9 is the image processing apparatus according to any one of claims 1 to 8,
The image processing apparatus further includes a control unit that causes the recording unit to record the image after the gap correction processing by the second processing unit.

請求項10に記載の発明の画像処理方法は、
複数のドットがマトリクス状に配置されている表示画面に表示された表示画像を撮像した撮像画像を取得する取得手段を備える画像処理装置を用いた画像処理方法であって、前記取得手段により取得された撮像画像の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像を生成する処理と、生成された前記直角四辺形画像に対して、前記表示画像の所定方向に隣接するドットどうしの隙間に対応する隙間領域の画像データを修正する隙間修正処理を行う処理と、を行うことを特徴としている。
An image processing method according to the invention of claim 10 is provided.
An image processing method using an image processing apparatus including an acquisition unit that acquires a captured image obtained by capturing a display image displayed on a display screen in which a plurality of dots are arranged in a matrix. The image processing method is acquired by the acquisition unit. A process for generating a right-angled quadrilateral image by performing a right-angled quadrangle conversion process on a predetermined image region of the captured image, and dots adjacent in a predetermined direction of the display image with respect to the generated right-angled quadrilateral image And a gap correction process for correcting the image data of the gap area corresponding to the gap.

請求項11に記載の発明のプログラムは、
複数のドットがマトリクス状に配置されている表示画面に表示された表示画像を撮像した撮像画像を取得する取得手段を備える画像処理装置のコンピュータを、前記取得手段により取得された撮像画像の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像を生成する第1処理手段、この第1処理手段により生成された前記直角四辺形画像に対して、前記表示画像の所定方向に隣接するドットどうしの隙間に対応する隙間領域の画像データを修正する隙間修正処理を行う第2処理手段、として機能させることを特徴としている。
The program of the invention described in claim 11 is
A computer of an image processing apparatus including an acquisition unit that acquires a captured image obtained by capturing a display image displayed on a display screen in which a plurality of dots are arranged in a matrix. A predetermined image of the captured image acquired by the acquisition unit First processing means for generating a right-angled quadrilateral image by performing a right-angled quadrangle conversion process on the image region, and adjacent to the right-angled quadrilateral image generated by the first processing means in a predetermined direction of the display image It is characterized by functioning as second processing means for performing gap correction processing for correcting the image data of the gap area corresponding to the gap between dots.

本発明によれば、表示画像を撮像した画像からドットどうしの隙間が修正された画像の生成を当該画像の画質を劣化させることなく簡便に行うことができる。   According to the present invention, it is possible to easily generate an image in which a gap between dots is corrected from an image obtained by capturing a display image without degrading the image quality of the image.

本発明を適用した一実施形態の撮像装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the imaging device of one Embodiment to which this invention is applied. 図1の撮像装置による隙間補間撮像処理に係る動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation related to gap interpolation imaging processing by the imaging apparatus of FIG. 1. 図2の隙間補間撮像処理における表示画像の隣接するドットどうしの隙間領域の画素数の算出の一例を説明するための図である。FIG. 3 is a diagram for explaining an example of calculation of the number of pixels in a gap area between adjacent dots in a display image in the gap interpolation imaging process of FIG. 2. 図2の隙間補間撮像処理の一例を説明するための図である。It is a figure for demonstrating an example of the gap | interval interpolation imaging process of FIG. 図2の隙間補間撮像処理の一例を説明するための図である。It is a figure for demonstrating an example of the gap | interval interpolation imaging process of FIG.

以下に、本発明について、図面を用いて具体的な態様を説明する。ただし、発明の範囲は、図示例に限定されない。
図1は、本発明を適用した一実施形態の撮像装置100の概略構成を示すブロック図である。
本実施形態の撮像装置100は、複数のドットがマトリクス状に配置されている表示画面201に表示された表示画像S(図4(a)参照)を撮像した撮像画像i1(図4(b)参照)を取得して、当該撮像画像i1の所定の画像領域(四角領域A1)に対する直角四辺形変換処理を行って直角四辺形画像i2(図5(a)参照)を生成する。また、撮像装置100は、生成された直角四辺形画像i2に対して、表示画像Sの所定方向に隣接するドットどうしの隙間に対応する隙間領域C(図3参照)の画像データを修正する隙間修正処理を行う。
具体的には、図1に示すように、撮像装置100は、撮像部1と、撮像制御部2と、画像データ生成部3と、メモリ4と、画像処理部5と、符号化部6と、記録媒体制御部7と、表示制御部8と、表示部9と、操作入力部10と、中央制御部11とを備えている。
Hereinafter, specific embodiments of the present invention will be described with reference to the drawings. However, the scope of the invention is not limited to the illustrated examples.
FIG. 1 is a block diagram illustrating a schematic configuration of an imaging apparatus 100 according to an embodiment to which the present invention is applied.
The imaging apparatus 100 of the present embodiment captures a captured image i1 (FIG. 4B) obtained by capturing a display image S (see FIG. 4A) displayed on a display screen 201 in which a plurality of dots are arranged in a matrix. And a right-angled quadrilateral transformation process is performed on a predetermined image area (square area A1) of the captured image i1 to generate a right-angled quadrilateral image i2 (see FIG. 5A). In addition, the imaging apparatus 100 corrects the image data of the gap region C (see FIG. 3) corresponding to the gap between dots adjacent in the predetermined direction of the display image S with respect to the generated right-angled quadrilateral image i2. Perform correction processing.
Specifically, as illustrated in FIG. 1, the imaging device 100 includes an imaging unit 1, an imaging control unit 2, an image data generation unit 3, a memory 4, an image processing unit 5, and an encoding unit 6. A recording medium control unit 7, a display control unit 8, a display unit 9, an operation input unit 10, and a central control unit 11.

撮像部1は、撮像手段として、被写体を撮像して画像フレームを生成する。即ち、撮像部1は、図示は省略するが、ズームレンズやフォーカスレンズ等の複数のレンズから構成されたレンズ部と、このレンズ部を通過する光の量を調整する絞りと、CCD(Charge Coupled Device)やCMOS(Complementary Metal-oxide Semiconductor)等のイメージセンサから構成され、レンズ部の各種レンズを通過した光学像を二次元の画像信号に変換する電子撮像部を備えている。   The imaging unit 1 captures a subject and generates an image frame as an imaging unit. In other words, the imaging unit 1 is not illustrated, but includes a lens unit composed of a plurality of lenses such as a zoom lens and a focus lens, a diaphragm for adjusting the amount of light passing through the lens unit, and a CCD (Charge Coupled). It comprises an image sensor such as a device (CMOS) or a complementary metal-oxide semiconductor (CMOS), and includes an electronic imaging unit that converts an optical image that has passed through various lenses of the lens unit into a two-dimensional image signal.

撮像制御部2は、撮像部1による被写体の撮像を制御する。即ち、撮像制御部2は、図示は省略するが、タイミング発生器、ドライバなどを備えている。そして、撮像制御部2は、タイミング発生器、ドライバにより電子撮像部を走査駆動して、所定周期毎に光学像を電子撮像部により二次元の画像信号に変換させ、当該電子撮像部の撮像領域から1画面分ずつ画像フレームを読み出して画像データ生成部3に出力させる。
また、撮像制御部2は、AE(自動露出処理)、AWB(自動ホワイトバランス)等の被写体を撮像する際の条件の調整制御を行う。
The imaging control unit 2 controls the imaging of the subject by the imaging unit 1. That is, the imaging control unit 2 includes a timing generator, a driver, and the like, although not illustrated. Then, the imaging control unit 2 scans and drives the electronic imaging unit with a timing generator and a driver, converts the optical image into a two-dimensional image signal with the electronic imaging unit every predetermined period, and captures the imaging area of the electronic imaging unit Image frames are read out for each screen and output to the image data generation unit 3.
In addition, the imaging control unit 2 performs adjustment control of conditions when imaging a subject such as AE (automatic exposure processing) and AWB (automatic white balance).

また、撮像制御部2は、表示装置200(図4(a)参照)に表示されている表示画像Sを撮像部1により撮像させる。
ここで、表示装置200は、例えば、液晶表示ディスプレイや有機EL表示ディスプレイなどであり、その表示パネルの表面(表示画面201)にR(赤)、G(緑)、B(青)の色成分に対応するドットがマトリクス状に複数配列されている。
そして、撮像部1が表示装置200の表示画面201の所定位置に表示されている表示画像Sを撮像する際に、撮像制御部2は、レンズ部の各種レンズを通過した撮像画像i1の光学像を所定のタイミングで電子撮像部により二次元の画像信号に変換させ、この電子撮像部の撮像領域から当該撮像画像i1の画像フレームを読み出して画像データ生成部3に出力させる。
従って、当該撮像画像i1の画像情報は、表示画像S自体の画像情報の他に、表示パネルの表面のマトリクス状に配置されたドット及びドットどうしの隙間領域Cの画像情報も含むこととなる。このため、撮像画像i1を当該撮像装置100の表示部9などに表示させると、表示画像S自体に重畳して表示画面201の複数のドットどうしの隙間領域Cが格子状の模様となって現れてしまう。このような格子状の模様は、特に、高分解能(高画素)の電子撮像部や明るい(F値の小さい)レンズ部を用いて表示画像Sを撮像した場合に顕著に現れる。
In addition, the imaging control unit 2 causes the imaging unit 1 to capture the display image S displayed on the display device 200 (see FIG. 4A).
Here, the display device 200 is, for example, a liquid crystal display or an organic EL display, and R (red), G (green), and B (blue) color components on the surface of the display panel (display screen 201). A plurality of dots corresponding to are arranged in a matrix.
And when the imaging part 1 images the display image S currently displayed on the predetermined position of the display screen 201 of the display apparatus 200, the imaging control part 2 is an optical image of the captured image i1 which passed the various lenses of the lens part. Is converted into a two-dimensional image signal by the electronic imaging unit at a predetermined timing, and the image frame of the captured image i1 is read from the imaging region of the electronic imaging unit and output to the image data generation unit 3.
Therefore, the image information of the captured image i1 includes not only the image information of the display image S itself but also the image information of the dots arranged in a matrix on the surface of the display panel and the gap region C between the dots. For this reason, when the captured image i1 is displayed on the display unit 9 or the like of the imaging apparatus 100, the gap region C between the plurality of dots on the display screen 201 appears as a grid pattern superimposed on the display image S itself. End up. Such a lattice-like pattern is conspicuous particularly when the display image S is captured using a high-resolution (high pixel) electronic imaging unit or a bright (F-number) lens unit.

画像データ生成部3は、電子撮像部から転送された画像フレームのアナログ値の信号に対してRGBの各色成分毎に適宜ゲイン調整した後に、サンプルホールド回路(図示略)でサンプルホールドしてA/D変換器(図示略)でデジタルデータに変換し、カラープロセス回路(図示略)で画素補間処理及びγ補正処理を含むカラープロセス処理を行った後、デジタル値の輝度信号Y及び色差信号Cb,Cr(YUVデータ)を生成する。
カラープロセス回路から出力される輝度信号Y及び色差信号Cb,Crは、図示しないDMAコントローラを介して、バッファメモリとして使用されるメモリ4にDMA転送される。
The image data generation unit 3 appropriately adjusts the gain for each of the RGB color components with respect to the analog value signal of the image frame transferred from the electronic imaging unit, and then samples and holds it by a sample hold circuit (not shown). The digital data is converted into digital data by a D converter (not shown), and color processing including pixel interpolation processing and γ correction processing is performed by a color process circuit (not shown), and then a luminance signal Y and a color difference signal Cb, Cr (YUV data) is generated.
The luminance signal Y and the color difference signals Cb and Cr output from the color process circuit are DMA-transferred to a memory 4 used as a buffer memory via a DMA controller (not shown).

メモリ4は、例えば、DRAM(Dynamic Random Access Memory)等により構成され、画像処理部5や中央制御部11等によって処理されるデータ等を一時記憶する。   The memory 4 is composed of, for example, a DRAM (Dynamic Random Access Memory) or the like, and temporarily stores data processed by the image processing unit 5, the central control unit 11, and the like.

画像処理部5は、画像取得部5aと、画像補正部5bと、輪郭抽出部5cと、四辺形変換処理部5dと、隙間画素数算出部5eと、フィルタサイズ特定部5fと、フィルタ処理部5gとを具備している。   The image processing unit 5 includes an image acquisition unit 5a, an image correction unit 5b, a contour extraction unit 5c, a quadrilateral conversion processing unit 5d, a gap pixel number calculation unit 5e, a filter size specifying unit 5f, and a filter processing unit. 5g.

画像取得部5aは、メモリ4から撮像画像i1の画像データを取得する。
即ち、画像取得部5aは、撮像部1により撮像されて画像データ生成部3から出力された撮像画像i1の画像データ(YUVデータ)を取得する。具体的には、画像取得部5aは、撮像部1が表示装置200の表示画面201の所定位置に表示されている表示画像Sを撮像することによって、画像データ生成部3により生成されて出力された撮像画像i1の画像データを取得する。
ここで、画像取得部5aは、複数のドットがマトリクス状に配置されている表示画面201に表示された表示画像Sを撮像した撮像画像i1を取得する取得手段を構成している。
The image acquisition unit 5a acquires the image data of the captured image i1 from the memory 4.
That is, the image acquisition unit 5a acquires the image data (YUV data) of the captured image i1 captured by the imaging unit 1 and output from the image data generation unit 3. Specifically, the image acquisition unit 5 a is generated and output by the image data generation unit 3 when the imaging unit 1 captures the display image S displayed at a predetermined position on the display screen 201 of the display device 200. The image data of the captured image i1 is acquired.
Here, the image acquisition unit 5a constitutes acquisition means for acquiring a captured image i1 obtained by imaging the display image S displayed on the display screen 201 in which a plurality of dots are arranged in a matrix.

画像補正部5bは、撮像部1のレンズ部の光学的特性によって生じた撮像画像i1の歪みを補正する歪曲収差補正を行う。
即ち、撮像画像i1の光学像は、例えば、レンズ部のズームレンズの位置(ズーム値)によって生じる歪みの大きさが異なる。そこで、画像補正部5bは、レンズ部のズーム値と関連付けられている光学像の歪みに関連する光学特性情報に基づいて、画像取得部5aにより取得された画像データに対して所定の強度の歪曲収差補正を行って、撮像部1のレンズ部の光学的特性によって生じた撮像画像i1の歪みを補正する。
ここで、画像補正部5bは、画像取得部5aにより取得された撮像画像i1における、表示画像Sを撮像した撮像部1の光学的特性によって生じた歪みを補正する補正手段を構成している。
The image correction unit 5b performs distortion aberration correction for correcting distortion of the captured image i1 caused by the optical characteristics of the lens unit of the imaging unit 1.
That is, the optical image of the captured image i1 differs in the magnitude of distortion caused by the position (zoom value) of the zoom lens of the lens unit, for example. Therefore, the image correction unit 5b has a distortion with a predetermined intensity with respect to the image data acquired by the image acquisition unit 5a based on the optical characteristic information related to the distortion of the optical image associated with the zoom value of the lens unit. Aberration correction is performed to correct distortion of the captured image i1 caused by the optical characteristics of the lens unit of the imaging unit 1.
Here, the image correction unit 5b constitutes a correction unit that corrects distortion caused by the optical characteristics of the imaging unit 1 that captured the display image S in the captured image i1 acquired by the image acquisition unit 5a.

輪郭抽出部5cは、撮像画像i1に対して輪郭抽出処理を施して所定の画像領域を抽出する。
即ち、輪郭抽出部5cは、例えば、画像補正部5bによる歪曲収差補正後のYUVデータの輝度信号Yに対して直線検出処理(例えば、ハフ変換処理など)を施して直線を検出し、所定方向に延在する4本の直線によって形成される四角形を輪郭として特定する。そして、輪郭抽出部5cは、特定された四角形内の画像領域(四角領域A1;図4(c)参照)を所定の画像領域として抽出する。ここで、複数の四角形が特定された場合には、輪郭抽出部5cは、これら複数の四角形内の画像領域をそれぞれ抽出する。
これにより、表示装置200の表示画面201に表示されている略矩形状(直角四辺形状)の画像、即ち、表示画像S自体や、表示画像Sに加えて当該表示画像Sのファイル名などが表示されたタイトルバーやGUI(Graphical User Interface)の各種ボタン等を含む領域(いわゆる、「ウインドウ」)の画像などが所定の画像領域(四角領域A1)として抽出される。また、表示画像Sが表示装置200の表示画面201全体に表示されている場合には、略矩形状の当該表示画面201の各辺を四角領域A1の輪郭として特定しても良い。
ここで、輪郭抽出部5cは、画像取得部5aにより取得された撮像画像i1に対して輪郭抽出処理を施して四角領域(所定の画像領域)A1を抽出する抽出手段を構成している。
The contour extraction unit 5c performs a contour extraction process on the captured image i1 to extract a predetermined image region.
That is, for example, the contour extraction unit 5c performs a straight line detection process (for example, a Hough transform process) on the luminance signal Y of the YUV data after distortion correction by the image correction unit 5b to detect a straight line in a predetermined direction. A quadrangle formed by four straight lines extending to is specified as an outline. Then, the contour extraction unit 5c extracts an image area (square area A1; see FIG. 4C) within the specified quadrangle as a predetermined image area. Here, when a plurality of quadrangles are specified, the contour extracting unit 5c extracts image regions in the plurality of quadrangles.
Thereby, the substantially rectangular (right-angled quadrilateral) image displayed on the display screen 201 of the display device 200, that is, the display image S itself, the file name of the display image S in addition to the display image S, and the like are displayed. An image of an area (so-called “window”) including various title bars and GUI (Graphical User Interface) buttons is extracted as a predetermined image area (square area A1). When the display image S is displayed on the entire display screen 201 of the display device 200, each side of the display screen 201 having a substantially rectangular shape may be specified as the outline of the square area A1.
Here, the contour extracting unit 5c constitutes an extracting unit that performs a contour extracting process on the captured image i1 acquired by the image acquiring unit 5a to extract a square region (predetermined image region) A1.

なお、輪郭抽出処理として、直線検出処理を利用したものを例示したが、一例であってこれに限られるものではなく、四角領域(所定の画像領域)A1を抽出可能なものであれば適宜任意に変更可能である。
また、直線検出処理として、ハフ変換処理を例示したが、一例であってこれに限られるものではなく、エッジ検出処理など適宜任意に変更可能である。なお、ハフ変換処理やエッジ検出処理は、公知の技術であるので、ここでは詳細な説明を省略する。
In addition, although the thing using a straight line detection process was illustrated as an outline extraction process, it is an example and is not restricted to this, Arbitrary arbitrarily if it can extract square area (predetermined image area) A1 Can be changed.
In addition, although the Hough conversion process is illustrated as the straight line detection process, it is an example, and the present invention is not limited to this, and can be arbitrarily changed as appropriate, such as an edge detection process. The Hough transform process and the edge detection process are well-known techniques, and thus detailed description thereof is omitted here.

四辺形変換処理部5dは、輪郭抽出部5cにより抽出された四角領域A1に対する直角四辺形変換処理を行って直角四辺形画像i2(図5(a)参照)を生成する。
即ち、表示装置200の表示画面201と撮像装置100とが真正面に正確に対向していない状態で撮像されることによって、直角四辺形状をなさない(各内角が直角でない)歪んだ四角形内の画像領域が所定の画像領域として輪郭抽出部5cにより抽出される。そこで、四辺形変換処理部5dは、画像補正部5bによる歪曲収差補正により歪みが補正された輝度信号Yから輪郭抽出部5cにより抽出された四角領域(所定の画像領域)A1に対して、直角四辺形変換処理(例えば、台形補正処理等)を行って直角四辺形画像i2(例えば、矩形画像、正方形画像など)を生成する。ここで、輪郭抽出部5cにより複数の四角領域A1が抽出されていた場合には、四辺形変換処理部5dは、これら複数の四角領域A1の中で、ユーザによる操作入力部10の所定操作に基づいて中央制御部11により選択指定された四角領域A1を処理対象として直角四辺形変換処理を施す。
また、この直角四変形変換処理後の直角四辺形画像の縦横比は、取得した表示画面201の表示ドット数から算出された縦横比に基づいて算出することができる。
このようにして生成された直角四辺形画像i2は、縦方向及び横方向の各々に沿って延在する辺を有する画像となり、表示画像Sに対応する複数のドットのピッチを略均一にすることができる。また、表示画像Sに重畳して現れる格子状の模様(複数のドットどうしの隙間領域C)も縦方向及び横方向の各々に沿って延在した状態となる。
The quadrangle conversion processing unit 5d performs a right-angled quadrangle conversion process on the square area A1 extracted by the contour extraction unit 5c to generate a right-angled quadrilateral image i2 (see FIG. 5A).
That is, an image in a distorted quadrangle that does not form a right-handed quadrilateral shape (inner angles are not right-angled) by being imaged in a state where the display screen 201 of the display device 200 and the image-capturing device 100 are not exactly facing each other. The region is extracted as a predetermined image region by the contour extracting unit 5c. Therefore, the quadrilateral conversion processing unit 5d is perpendicular to the square region (predetermined image region) A1 extracted by the contour extraction unit 5c from the luminance signal Y whose distortion is corrected by the distortion correction by the image correction unit 5b. A quadrangle conversion process (for example, a trapezoid correction process) is performed to generate a right-angled quadrilateral image i2 (for example, a rectangular image, a square image, etc.). Here, when the plurality of square areas A1 are extracted by the contour extraction unit 5c, the quadrilateral conversion processing unit 5d performs a predetermined operation of the operation input unit 10 by the user in the plurality of square areas A1. Based on the rectangular area A1 selected and specified by the central control unit 11 based on the processing, a right-angled quadrangle conversion process is performed.
Further, the aspect ratio of the right-angled quadrilateral image after the right-angle quadrature transformation processing can be calculated based on the aspect ratio calculated from the acquired display dot number of the display screen 201.
The right-angled quadrilateral image i2 generated in this way is an image having sides extending along the vertical direction and the horizontal direction, and the pitches of the plurality of dots corresponding to the display image S are made substantially uniform. Can do. Further, a lattice-like pattern (gap region C between a plurality of dots) appearing superimposed on the display image S is also extended along each of the vertical direction and the horizontal direction.

なお、直角四辺形変換処理として、台形補正処理を例示したが、一例であってこれに限られるものではなく、四角形を直角四辺形状に変換する斜影変換処理であれば適宜任意に変更可能である。なお、台形補正処理は、公知の技術であるので、ここでは詳細な説明を省略する
このように、四辺形変換処理部5dは、画像取得部5aにより取得された撮像画像i1の四角領域(所定の画像領域)A1に対する直角四辺形変換処理を行って直角四辺形画像i2を生成する第1処理手段を構成している。
Note that the trapezoid correction process is exemplified as the right-angled quadrangle conversion process, but is not limited to this example, and can be arbitrarily changed as long as it is an oblique conversion process that converts a quadrangle into a right-angled quadrilateral shape. . Since the trapezoid correction process is a known technique, detailed description is omitted here. In this way, the quadrilateral conversion processing unit 5d is a rectangular area (predetermined value) of the captured image i1 acquired by the image acquisition unit 5a. The first processing means for generating a right-angled quadrilateral image i2 by performing a right-angled quadrangle conversion process on the image area A1.

隙間画素数算出部5eは、四辺形変換処理部5dにより生成された直角四辺形画像i2における格子状の模様、つまり、隣接するドットどうしの隙間領域Cを構成する画素数を所定方向に沿って算出する。
即ち、隙間画素数算出部5eは、直角四辺形画像i2の縦方向及び横方向の各々と略平行な方向に沿って隙間領域Cを複数特定した後、これら複数の隙間領域Cの各々を構成する画素数を算出する。具体的には、隙間画素数算出部5eは、先ず、直角四辺形画像i2内で所定の閾値よりも明るい画素が所定の割合(例えば、過半数以上)を占める任意の処理対象領域A2を特定する。この処理対象領域A2は、例えば、直角四辺形画像i2の各辺と略平行な辺を有している。
次に、隙間画素数算出部5eは、処理対象領域A2内の輝度値の累積度数分布を算出し、例えば、所定の分布率以下となる画素が隙間領域Cであると想定して、当該所定の分布率に対応する輝度値を所定の閾値として設定する。そして、隙間画素数算出部5eは、処理対象領域A2内で縦方向及び横方向のうちの何れか一方向(例えば、縦方向)と互いに平行な複数の方向の各々に沿って処理対象ラインを設定し、各処理対象ラインを走査して所定の閾値よりも輝度値の小さい画素からなる領域を隙間領域Cとして複数特定する。続けて、隙間画素数算出部5eは、互いに平行な複数の処理対象ラインの各々について、複数の隙間領域Cの各々を構成する画素数(図3参照)を算出していく。
例えば、図3に示すように、表示画像S自体(ドット)に対応する画素は輝度値が大きくなる一方で、隣接するドットどうしの隙間領域Cに対応する画素は輝度値が小さくなる。なお、図3に例示したものは一の処理対象ラインに沿った複数の画素の輝度値の一例であり、例えば、処理対象ラインが隙間領域C上となると、当該隙間領域Cに対応する画素のみ、即ち、輝度値の小さい画素のみによって占められることとなる。この場合には、後述するように、フィルタサイズ特定部5fによるフィルタサイズの特定処理からは除外される。
The gap pixel number calculation unit 5e calculates a grid pattern in the right-angled quadrilateral image i2 generated by the quadrilateral conversion processing unit 5d, that is, the number of pixels constituting the gap region C between adjacent dots along a predetermined direction. calculate.
That is, the gap pixel number calculation unit 5e specifies a plurality of gap areas C along a direction substantially parallel to each of the vertical and horizontal directions of the right-angled quadrilateral image i2, and then configures each of the plurality of gap areas C. The number of pixels to be calculated is calculated. Specifically, the gap pixel number calculation unit 5e first specifies an arbitrary processing target area A2 in which pixels brighter than a predetermined threshold occupy a predetermined ratio (for example, a majority or more) in the rectangular quadrilateral image i2. . The processing target area A2 has, for example, sides that are substantially parallel to the sides of the right-angled quadrilateral image i2.
Next, the gap pixel number calculation unit 5e calculates the cumulative frequency distribution of the luminance values in the processing target area A2, and for example, assumes that a pixel having a predetermined distribution ratio or less is the gap area C, A luminance value corresponding to the distribution ratio is set as a predetermined threshold value. Then, the gap pixel number calculating unit 5e sets the processing target line along each of a plurality of directions parallel to one of the vertical direction and the horizontal direction (for example, the vertical direction) in the processing target area A2. Then, a plurality of areas each including pixels having a luminance value smaller than a predetermined threshold are specified as the gap area C by scanning each processing target line. Subsequently, the gap pixel number calculation unit 5e calculates the number of pixels (see FIG. 3) constituting each of the plurality of gap areas C for each of a plurality of processing target lines parallel to each other.
For example, as shown in FIG. 3, the pixel corresponding to the display image S itself (dot) has a large luminance value, while the pixel corresponding to the gap region C between adjacent dots has a small luminance value. The example illustrated in FIG. 3 is an example of the luminance values of a plurality of pixels along one processing target line. For example, when the processing target line is on the gap area C, only the pixels corresponding to the gap area C are displayed. That is, it is occupied only by pixels having a small luminance value. In this case, as will be described later, it is excluded from the filter size specifying process by the filter size specifying unit 5f.

また、隙間画素数算出部5eは、処理対象領域A2の縦方向及び横方向のうち、処理対象となっていない他方向(例えば、横方向)についても上記と同様にして、複数の隙間領域Cの各々を構成する画素数を算出する。
このように、隙間画素数算出部5eは、四辺形変換処理部5dにより生成された直角四辺形画像i2における、表示画像Sの所定方向に隣接するドットどうしの隙間に対応する隙間領域Cを構成する画素数を算出する算出手段を構成している。
In addition, the gap pixel number calculation unit 5e also performs a plurality of gap areas C in the same manner as described above in the other direction (for example, the horizontal direction) that is not the process target among the vertical direction and the horizontal direction of the process target area A2. The number of pixels constituting each of the above is calculated.
As described above, the gap pixel number calculation unit 5e configures the gap region C corresponding to the gap between dots adjacent in the predetermined direction of the display image S in the right-angled quadrilateral image i2 generated by the quadrilateral conversion processing unit 5d. The calculation means for calculating the number of pixels to be configured is configured.

フィルタサイズ特定部5fは、直角四辺形画像i2に対するフィルタ処理に用いられる所定のフィルタのサイズを特定する。
即ち、フィルタサイズ特定部5fは、フィルタ処理部5gにより直角四辺形画像i2の隙間領域Cの画像データを補間する隙間補間処理として行われるフィルタ処理に用いられる所定の二次元フィルタ(例えば、メディアンフィルタ等)のサイズ(タップ数)を特定する。つまり、フィルタ処理に用いられる所定の二次元フィルタのサイズは、直角四辺形画像i2における処理対象となる一の画素の演算処理範囲を規定するものである。そこで、フィルタサイズ特定部5fは、隙間画素数算出部5eにより算出された隙間領域Cを構成する画素数に基づいて、隙間補間処理としてのフィルタ処理に用いられる所定の二次元フィルタのサイズを一の画素の演算処理範囲として特定する。
The filter size specifying unit 5f specifies the size of a predetermined filter used for the filter processing for the right-angled quadrilateral image i2.
That is, the filter size specifying unit 5f is a predetermined two-dimensional filter (for example, a median filter) used for a filter process performed as a gap interpolation process for interpolating the image data of the gap area C of the rectangular quadrilateral image i2 by the filter processing unit 5g. Etc.) size (number of taps). That is, the size of the predetermined two-dimensional filter used for the filter processing defines the calculation processing range of one pixel to be processed in the rectangular quadrilateral image i2. Therefore, the filter size specifying unit 5f sets the size of a predetermined two-dimensional filter used for the filter process as the gap interpolation process based on the number of pixels constituting the gap area C calculated by the gap pixel number calculation unit 5e. This is specified as the calculation processing range of the pixel.

具体的には、フィルタサイズ特定部5fは、先ず、直角四辺形画像i2の処理対象領域A2の縦方向及び横方向のうちの何れか一方向(例えば、縦方向)を処理対象方向として設定する。次に、フィルタサイズ特定部5fは、処理対象方向と互いに平行な複数の処理対象ラインの各々について、隙間領域Cを構成する複数の画素数の中での最大値(例えば、図3にあっては、最大値として「2」など)を算出する。そして、フィルタサイズ特定部5fは、算出された複数の画素数の最大値に基づいて、処理対象方向(互いに平行な複数の処理対象ラインの延在方向)に係る複数の画素数を代表する代表値を特定し、特定された代表値を基準としてフィルタ処理に用いられる二次元フィルタのサイズを特定する。
つまり、処理対象ラインが格子状をなす隙間領域Cを構成する所定方向に延在する直線上に設定されると、この直線に対応する輝度値の小さい画素によって大部分(例えば、過半数以上)が占められることとなるため、当該処理対象ラインでは隙間領域Cを構成する画素数の値が大きくなる。そこで、フィルタサイズ特定部5fは、例えば、処理対象方向と互いに平行な複数の処理対象ラインに係る複数の画素数の最大値の中で、最頻値や平均値を代表値として特定することにより、輝度値の小さい画素が大部分を占める処理対象ラインを除外する。そして、フィルタサイズ特定部5fは、例えば、処理対象方向について特定された代表値を「gap」として、フィルタ処理に用いられるメディアンフィルタのタップ数「tap」を下記式(1)に従って算出する。
tap= 2gap +1 …式(1)
Specifically, the filter size specifying unit 5f first sets one of the vertical direction and the horizontal direction (for example, the vertical direction) of the processing target area A2 of the right-angled quadrilateral image i2 as the processing target direction. . Next, the filter size specifying unit 5f sets the maximum value (for example, in FIG. 3) among the plurality of pixels constituting the gap region C for each of the plurality of processing target lines parallel to the processing target direction. Calculate “2” as the maximum value. Then, the filter size specifying unit 5f is a representative representing the number of pixels in the processing target direction (the extending direction of the plurality of processing target lines parallel to each other) based on the calculated maximum value of the plurality of pixels. The value is specified, and the size of the two-dimensional filter used for the filter processing is specified based on the specified representative value.
That is, when the processing target line is set on a straight line extending in a predetermined direction constituting the gap region C having a lattice shape, most (for example, a majority or more) are formed by pixels having a small luminance value corresponding to the straight line. Therefore, the value of the number of pixels constituting the gap region C increases in the processing target line. Therefore, the filter size specifying unit 5f specifies, for example, the mode value or the average value as the representative value among the maximum values of the plurality of pixels related to the plurality of processing target lines parallel to the processing target direction. The processing target line in which the pixels having a small luminance value occupy most is excluded. Then, for example, the filter size specifying unit 5f calculates the number of taps “tap” of the median filter used for the filter processing according to the following formula (1), with the representative value specified for the processing target direction as “gap”.
tap = 2gap +1 ... Formula (1)

例えば、図3には、一の処理対象ラインにおける隙間領域Cを構成する複数の画素数の中での最大値「gap」が「2」の場合について例示するが、この場合には、メディアンフィルタのタップ数「tap」として「5」が算出され、5×5画素がフィルタサイズとして特定される。
なお、上記式(1)は、メディアンフィルタのタップ数「tap」を算出するための演算式の一例であってこれに限られるものではなく、係数や定数などは適宜任意に変更可能である。また、演算式は、フィルタ処理に用いられるフィルタの種類によっても適宜任意に変更可能である。
For example, FIG. 3 illustrates a case where the maximum value “gap” among the plurality of pixels constituting the gap region C in one processing target line is “2”. In this case, the median filter As the number of taps “tap”, “5” is calculated, and 5 × 5 pixels are specified as the filter size.
The above equation (1) is an example of an arithmetic expression for calculating the number of taps “tap” of the median filter, and is not limited to this, and the coefficients, constants, and the like can be arbitrarily changed as appropriate. Further, the arithmetic expression can be arbitrarily changed as appropriate depending on the type of filter used for the filter processing.

また、フィルタサイズ特定部5fは、処理対象領域A2の縦方向及び横方向のうち、処理対象となっていない他方向(例えば、横方向)についても上記と同様にして、フィルタ処理に用いられる二次元フィルタのサイズを特定する。
また、フィルタサイズ特定部5fは、処理対象領域A2の縦方向及び横方向の各々を処理対象方向として特定されたフィルタサイズに基づいて、最終的なフィルタサイズを特定する。ここで、処理対象領域A2の縦方向及び横方向のうち、処理対象となる方向によって異なるサイズが特定された場合には、そのまま縦方向及び横方向の異なるサイズとしても良く、それらの平均値や最大値を基準として最終的なフィルタサイズを特定するようにしても良い。
このように、フィルタサイズ特定部5fは、隙間画素数算出部5eにより算出された画素数に基づいて、直角四辺形画像i2の隙間領域Cの画像データを修正する隙間補間処理(隙間修正処理)にて処理対象となる一の画素の処理範囲を特定する特定手段を構成している。
In addition, the filter size specifying unit 5f is also used for the filter processing in the same manner as described above for the other direction (for example, the horizontal direction) that is not the processing target among the vertical direction and the horizontal direction of the processing target area A2. Specify the size of the dimensional filter.
The filter size specifying unit 5f specifies the final filter size based on the filter size specified with each of the vertical direction and the horizontal direction of the processing target area A2 as the processing target direction. Here, when different sizes are specified depending on the direction to be processed among the vertical direction and the horizontal direction of the processing target area A2, different sizes in the vertical direction and the horizontal direction may be used as they are. The final filter size may be specified based on the maximum value.
As described above, the filter size specifying unit 5f corrects the gap interpolation process (gap correction process) for correcting the image data of the gap region C of the right-angled quadrilateral image i2 based on the number of pixels calculated by the gap pixel number calculation unit 5e. A specifying means for specifying the processing range of one pixel to be processed is configured.

フィルタ処理部5gは、フィルタサイズ特定部5fにより特定されたサイズの所定の二次元フィルタ(例えば、メディアンフィルタ等)を用いて直角四辺形画像i2に対するフィルタ処理を行う。
即ち、フィルタ処理部5gは、直角四辺形画像i2の隙間領域Cの画像データを補間する隙間補間処理としてフィルタ処理を行う。このとき、フィルタ処理部5gは、フィルタサイズ特定部5fにより特定されたフィルタサイズ、つまり、当該直角四辺形画像i2における処理対象となる一の画素の演算処理範囲を規定するフィルタサイズ(例えば、5×5画素等)を基準として、直角四辺形画像i2に対するフィルタ処理を施す。具体的には、フィルタ処理部5gは、例えば、直角四辺形画像i2の各画素に対して5×5画素のサイズのメディアンフィルタを用いてフィルタ処理を行うことによって、隣接するドットどうしの隙間領域Cを構成する画素の輝度値を、当該画素の近傍の表示画像S自体(ドット)に対応する画素の輝度値に置換する。これにより、フィルタ処理部5gは、表示画像Sに重畳して現れている格子状の模様(複数のドットどうしの隙間領域C)を補間(修正)した隙間補間処理済画像i3(図5(b)参照)の画像データを生成する。
The filter processing unit 5g performs a filtering process on the rectangular quadrilateral image i2 using a predetermined two-dimensional filter (for example, a median filter) having a size specified by the filter size specifying unit 5f.
That is, the filter processing unit 5g performs the filter process as a gap interpolation process for interpolating the image data of the gap area C of the right-angled quadrilateral image i2. At this time, the filter processing unit 5g specifies the filter size specified by the filter size specifying unit 5f, that is, the filter size that defines the calculation processing range of one pixel to be processed in the right-angled quadrilateral image i2 (for example, 5 Filter processing is performed on the right-angled quadrilateral image i2 on the basis of × 5 pixels). Specifically, the filter processing unit 5g performs, for example, a filtering process using a median filter having a size of 5 × 5 pixels on each pixel of the right-angled quadrilateral image i2, so that a gap area between adjacent dots is obtained. The luminance value of the pixel constituting C is replaced with the luminance value of the pixel corresponding to the display image S itself (dot) in the vicinity of the pixel. As a result, the filter processing unit 5g interpolates (corrects) the gap-interpolated image i3 (FIG. 5B) obtained by interpolating (correcting) the lattice-like pattern (gap region C between the plurality of dots) appearing superimposed on the display image S. )) Is generated.

なお、フィルタ処理として、例えば、メディアンフィルタを適用したものを例示したが、一例であってこれに限られるものではなく、隙間領域Cを構成する画素の輝度値をより大きく変更可能なフィルタ処理であれば適宜任意に変更可能である。例えば、二次元フィルタとして、ローパスフィルタや最大値フィルタなどを適用するようにしても良い。
また、隙間補間処理(フィルタ処理)によって、直角四辺形画像i2の隙間領域Cの画像データを修正するようにしたが、当該隙間領域Cの修正方法はこれに限られるものではない。例えば、隙間領域Cの各画素の輝度値を近傍の画素に対して輝度差を小さくするように修正する方法など、隙間領域Cとその周囲の領域との画素値の差を小さくするような画像処理であれば如何なる方法を適用しても良い。
ここで、フィルタ処理部5gは、四辺形変換処理部5dにより生成された直角四辺形画像i2に対して、表示画像Sの所定方向に隣接するドットどうしの隙間に対応する隙間領域Cの画像データを修正する隙間補間処理(隙間修正処理)を行う第2処理手段を構成している。
Note that, for example, a filtering process using a median filter has been illustrated. However, the filtering process is an example, and the filtering process is not limited thereto. The filtering process can change the luminance value of the pixels constituting the gap region C more greatly. Any change can be made as appropriate. For example, a low-pass filter, a maximum value filter, or the like may be applied as the two-dimensional filter.
Further, the image data of the gap area C of the right-angled quadrilateral image i2 is corrected by the gap interpolation process (filter process), but the correction method of the gap area C is not limited to this. For example, an image that reduces the difference in pixel value between the gap area C and the surrounding area, such as a method of correcting the luminance value of each pixel in the gap area C so as to reduce the luminance difference with respect to neighboring pixels. Any method may be applied as long as it is a process.
Here, the filter processing unit 5g has the image data of the gap region C corresponding to the gap between adjacent dots in the predetermined direction of the display image S with respect to the right-angled quadrilateral image i2 generated by the quadrilateral conversion processing unit 5d. The second processing means for performing the gap interpolation process (gap correction process) for correcting.

符号化部6は、画像処理部5による画像処理後の隙間補間処理済画像i3の画像データ(YUVデータ)を所定の圧縮形式(例えば、JPEG形式等)で符号化して記録用の画像データを生成する。   The encoding unit 6 encodes the image data (YUV data) of the gap-interpolated image i3 after the image processing by the image processing unit 5 in a predetermined compression format (for example, JPEG format), and records the image data for recording. Generate.

記録媒体制御部7は、記録媒体Mが着脱自在に構成され、装着された記録媒体Mからのデータの読み出しや記録媒体Mに対するデータの書き込みを制御する。即ち、記録媒体制御部7は、符号化部6により符号化された記録用の画像データを記録媒体Mに記録させる。
ここで、記録媒体制御部7は、フィルタ処理部5gによる隙間補間処理(フィルタ処理)後の画像i3を記録媒体Mに記録させる制御手段を構成している。
The recording medium control unit 7 is configured so that the recording medium M is detachable, and controls reading of data from the loaded recording medium M and writing of data to the recording medium M. That is, the recording medium control unit 7 records the recording image data encoded by the encoding unit 6 on the recording medium M.
Here, the recording medium control unit 7 constitutes a control unit that records the image i3 after the gap interpolation processing (filter processing) by the filter processing unit 5g on the recording medium M.

なお、記録媒体Mは、例えば、不揮発性メモリ(フラッシュメモリ)等により構成されるが、一例であってこれに限られるものではなく、適宜任意に変更可能である。   The recording medium M is composed of, for example, a non-volatile memory (flash memory) or the like. However, the recording medium M is an example and is not limited to this, and can be arbitrarily changed as appropriate.

表示制御部8は、メモリ4に一時的に記憶されている表示用の画像データを読み出して表示部9に表示させる制御を行う。
具体的には、表示制御部8は、VRAM(Video Random Access Memory)、VRAMコントローラ、デジタルビデオエンコーダなどを備えている。そして、デジタルビデオエンコーダは、中央制御部11の制御下にてメモリ4から読み出されてVRAM(図示略)に記憶されている輝度信号Y及び色差信号Cb,Crを、VRAMコントローラを介してVRAMから定期的に読み出して、これらのデータを元にビデオ信号を発生して表示部9に出力する。
The display control unit 8 performs control for reading display image data temporarily stored in the memory 4 and displaying the read image data on the display unit 9.
Specifically, the display control unit 8 includes a VRAM (Video Random Access Memory), a VRAM controller, a digital video encoder, and the like. The digital video encoder reads the luminance signal Y and the color difference signals Cb and Cr read from the memory 4 and stored in the VRAM (not shown) under the control of the central control unit 11 via the VRAM controller. Are periodically read out, and a video signal is generated based on these data and output to the display unit 9.

表示部9は、例えば、液晶表示パネルであり、表示制御部8からのビデオ信号に基づいて電子撮像部により撮像された画像などを表示画面に表示する。具体的には、表示部9は、静止画撮像モードや動画撮像モードにて、撮像部1及び撮像制御部2による被写体の撮像により生成された複数の画像フレームを所定のフレームレートで逐次更新しながらライブビュー画像を表示する。また、表示部9は、静止画として記録される画像(レックビュー画像)を表示したり、動画として記録中の画像を表示する。   The display unit 9 is, for example, a liquid crystal display panel, and displays an image captured by the electronic imaging unit on the display screen based on a video signal from the display control unit 8. Specifically, the display unit 9 sequentially updates a plurality of image frames generated by subject imaging by the imaging unit 1 and the imaging control unit 2 at a predetermined frame rate in the still image capturing mode and the moving image capturing mode. While displaying the live view image. The display unit 9 displays an image (rec view image) recorded as a still image or an image being recorded as a moving image.

操作入力部10は、当該撮像装置100の所定操作を行うためのものである。具体的には、操作入力部10は、被写体の撮影指示に係るシャッタボタン、撮像モードや機能等の選択指示に係る選択決定ボタン、ズーム量の調整指示に係るズームボタン等を備え(いずれも図示略)、これらのボタンの操作に応じて所定の操作信号を中央制御部11に出力する。   The operation input unit 10 is for performing a predetermined operation of the imaging apparatus 100. Specifically, the operation input unit 10 includes a shutter button related to a subject shooting instruction, a selection determination button related to a selection instruction for an imaging mode, a function, etc., a zoom button related to a zoom amount adjustment instruction, etc. Abbreviation), a predetermined operation signal is output to the central control unit 11 in accordance with the operation of these buttons.

また、操作入力部10は、ユーザによる所定操作に基づいて、輪郭抽出部5cにより抽出された複数の四角領域A1の中で、四辺形変換処理部5dによる処理対象となる四角領域A1の指定信号を出力する。即ち、操作入力部10は、輪郭抽出部5cにより抽出されて表示部9に表示された複数の四角領域A1の中で、ユーザによる所定操作に基づいて選択された何れか一の四角領域A1の指定信号を中央制御部11に出力する。中央制御部11は、操作入力部10から出力された指定信号が入力されると、当該指定指示信号に応じて四辺形変換処理部5dによる処理対象となる四角領域A1を指定する。
ここで、中央制御部11及び操作入力部10は、複数の四角領域(所定の画像領域)A1の中で、四辺形変換処理部5dにより直角四辺形変換処理が施される四角領域A1を指定する指定手段を構成している。
In addition, the operation input unit 10 specifies a designation signal for the square area A1 to be processed by the quadrilateral conversion processing unit 5d among the plurality of square areas A1 extracted by the contour extraction unit 5c based on a predetermined operation by the user. Is output. That is, the operation input unit 10 selects one of the square areas A1 selected based on a predetermined operation by the user among the plurality of square areas A1 extracted by the contour extraction unit 5c and displayed on the display unit 9. A designation signal is output to the central control unit 11. When the designation signal output from the operation input unit 10 is input, the central control unit 11 designates the square area A1 to be processed by the quadrilateral transformation processing unit 5d in accordance with the designation instruction signal.
Here, the central control unit 11 and the operation input unit 10 designate a quadrangular area A1 to be subjected to the right-angled quadrangle conversion processing by the quadrangle conversion processing unit 5d among the plural quadrangular areas (predetermined image areas) A1. It constitutes the designation means.

なお、四辺形変換処理部5dによる処理対象となる四角領域A1の指定を、ユーザによる操作入力部10の所定操作に基づいて手動で行うようにしたが、当該四角領域A1の指定方法はこれに限られるものではない。即ち、中央制御部11は、例えば、画像解析や文字認識などによって四辺形変換処理部5dによる処理対象となる四角領域A1を自動的に特定して指定するようにしても良い。   Note that the quadrangular area A1 to be processed by the quadrilateral conversion processing unit 5d is manually specified based on a predetermined operation of the operation input unit 10 by the user, but this is the method for specifying the quadrangular area A1. It is not limited. That is, the central control unit 11 may automatically specify and specify the square area A1 to be processed by the quadrilateral conversion processing unit 5d by image analysis or character recognition, for example.

中央制御部11は、撮像装置100の各部を制御するものである。具体的には、中央制御部11は、図示は省略するが、CPU(Central Processing Unit)、RAM(Random Access Memory)、ROM(Read Only Memory)等を備え、撮像装置100用の各種処理プログラム(図示略)に従って各種の制御動作を行う。   The central control unit 11 controls each unit of the imaging device 100. Specifically, although not shown, the central control unit 11 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), and the like, and includes various processing programs for the imaging apparatus 100 ( Various control operations are performed according to (not shown).

次に、撮像装置100による隙間補間撮像処理について図2を参照して説明する。
図2は、隙間補間撮像処理に係る動作の一例を示すフローチャートである。
隙間補間撮像処理は、ユーザによる操作入力部10の選択決定ボタンの所定操作に基づいて、メニュー画面に表示された複数の撮像モードの中から隙間補間撮像モードが選択指示された場合に実行される処理である。また、隙間補間撮像処理にあっては、表示装置200(図4(a)参照)の表示画面201の所定位置に表示されている表示画像Sを被写体として撮像部1により撮像する。
Next, the gap interpolation imaging process by the imaging apparatus 100 will be described with reference to FIG.
FIG. 2 is a flowchart illustrating an example of an operation related to the gap interpolation imaging process.
The gap interpolation imaging process is executed when a gap interpolation imaging mode is instructed from a plurality of imaging modes displayed on the menu screen based on a predetermined operation of the selection determination button of the operation input unit 10 by the user. It is processing. Further, in the gap interpolation imaging process, the imaging unit 1 captures the display image S displayed at a predetermined position on the display screen 201 of the display device 200 (see FIG. 4A) as a subject.

先ず、表示制御部8は、撮像部1及び撮像制御部2による被写体の撮像により生成された複数の画像フレームに基づいてライブビュー画像を表示部9の表示画面201に表示させる処理を行う(ステップS1)。このとき、撮像制御部2は、表示装置200の表示画面201のフリッカー等を検出して、検出されたフリッカーに対応させて露出条件を設定するようにしても良い。
そして、中央制御部11は、ライブビュー表示処理中に、ユーザによる操作入力部10のシャッタボタンの所定操作に基づいて撮像指示が入力されたか否かを判定する(ステップS2)。
First, the display control unit 8 performs a process of displaying a live view image on the display screen 201 of the display unit 9 based on a plurality of image frames generated by imaging of the subject by the imaging unit 1 and the imaging control unit 2 (steps). S1). At this time, the imaging control unit 2 may detect flicker or the like on the display screen 201 of the display device 200 and set the exposure condition in accordance with the detected flicker.
Then, the central control unit 11 determines whether an imaging instruction is input based on a predetermined operation of the shutter button of the operation input unit 10 by the user during the live view display process (step S2).

ここで、撮像指示が入力されていないと判定された場合には(ステップS2;NO)、ステップS2にて、撮像指示が入力されたと判定されるまで(ステップS2;YES)、中央制御部11は処理をステップS2に移行させて、ライブビュー画像を表示させる処理を繰り返し行わせる。
そして、ステップS2にて、撮像指示が入力されたと判定されると(ステップS2;YES)、撮像制御部2は、例えば、表示装置200の表示画面201のフリッカー等に対応させて露出条件(シャッター速度、絞り、増幅率等)やホワイトバランス等の撮像条件を調整して、表示装置200に表示されている表示画像Sの光学像を撮像部1の電子撮像部に撮像させる(ステップS3)。その後、画像データ生成部3は、電子撮像部から転送された撮像画像i1(図4(b)参照)のYUVデータを生成する。
生成されたYUVデータは、図示しないDMAコントローラを介して、バッファメモリとして使用されるメモリ4にDMA転送される。
また、このとき、表示制御部8は、メモリ4に一時的に記憶されている撮像画像i1の表示用の画像データを読み出して表示部9に表示させても良い。
If it is determined that an imaging instruction has not been input (step S2; NO), the central control unit 11 continues until it is determined in step S2 that an imaging instruction has been input (step S2; YES). Shifts the process to step S2 to repeatedly perform the process of displaying the live view image.
When it is determined in step S2 that an imaging instruction has been input (step S2; YES), the imaging control unit 2 performs, for example, an exposure condition (shutter) corresponding to flicker or the like of the display screen 201 of the display device 200. The imaging conditions such as speed, aperture, amplification factor, etc.) and white balance are adjusted, and the optical image of the display image S displayed on the display device 200 is captured by the electronic imaging unit of the imaging unit 1 (step S3). Thereafter, the image data generation unit 3 generates YUV data of the captured image i1 (see FIG. 4B) transferred from the electronic imaging unit.
The generated YUV data is DMA-transferred to a memory 4 used as a buffer memory via a DMA controller (not shown).
At this time, the display control unit 8 may read the image data for display of the captured image i1 temporarily stored in the memory 4 and display it on the display unit 9.

次に、画像処理部5の画像取得部5aは、画像データ生成部3により生成された撮像画像i1のYUVデータをメモリ4から取得する(ステップS4)。
続けて、画像補正部5bは、取得されたYUVデータに対してレンズ部のズーム値を基準とする所定の強度の歪曲収差補正を行って、撮像部1のレンズ部の光学的特性によって生じた撮像画像i1の歪みを補正する(ステップS5)。
Next, the image acquisition unit 5a of the image processing unit 5 acquires YUV data of the captured image i1 generated by the image data generation unit 3 from the memory 4 (step S4).
Subsequently, the image correction unit 5b performs distortion aberration correction with a predetermined intensity on the basis of the zoom value of the lens unit for the acquired YUV data, and is caused by the optical characteristics of the lens unit of the imaging unit 1. The distortion of the captured image i1 is corrected (step S5).

次に、輪郭抽出部5cは、画像補正部5bによる歪曲収差補正後のYUVデータの輝度信号Yに対して直線検出処理(例えば、ハフ変換処理など)を施して直線を検出した後、所定方向に延在する4本の直線によって形成される四角形を特定して当該四角形内の画像領域(四角領域A1)を抽出する(ステップS6;図4(c)参照)。
ここで、輪郭抽出部5cによって複数の四角領域A1が抽出された場合には、表示制御部8は、これら複数の四角領域A1を直角四辺形変換処理(後述)の処理対象の候補として表示部9に表示させる。即ち、表示制御部8は、例えば、各四角領域A1の外縁部に沿って枠線を表示させるとともに、これら複数の四角領域A1を切り替え可能に表示させる。そして、中央制御部11は、ユーザによる操作入力部10の所定操作に基づいて選択指定された四角領域A1を直角四辺形変換処理の処理対象とする。
Next, the contour extraction unit 5c performs straight line detection processing (for example, Hough transform processing) on the luminance signal Y of the YUV data after distortion correction by the image correction unit 5b, and then detects a straight line. A quadrangle formed by four straight lines extending to is specified, and an image region (square region A1) in the quadrangle is extracted (step S6; see FIG. 4C).
When a plurality of square areas A1 are extracted by the contour extraction unit 5c, the display control unit 8 displays the plurality of square areas A1 as candidates for processing targets of a right-angled quadrangle conversion process (described later). 9 is displayed. That is, for example, the display control unit 8 displays a frame line along the outer edge portion of each square area A1, and displays the plurality of square areas A1 in a switchable manner. Then, the central control unit 11 sets the rectangular area A1 selected and specified based on a predetermined operation of the operation input unit 10 by the user as a processing target of the right-angled quadrangle conversion process.

次に、四辺形変換処理部5dは、輪郭抽出部5cにより輝度信号Yから抽出された四角領域A1に対して直角四辺形変換処理(例えば、台形補正処理等)を行って直角四辺形画像i2(例えば、矩形画像)を生成する(ステップS7;図5(a)参照)。
続けて、隙間画素数算出部5eは、四辺形変換処理部5dにより生成された直角四辺形画像i2における隣接するドットどうしの隙間領域Cを特定して、当該隙間領域Cを構成する画素数を算出する(ステップS8)。具体的には、隙間画素数算出部5eは、直角四辺形画像i2内で所定の閾値よりも明るい画素が所定の割合を占める任意の処理対象領域A2を特定する。その後、隙間画素数算出部5eは、処理対象領域A2内の各画素の輝度値の累積度数分布を算出して、所定の分布率に対応する輝度値を所定の閾値として設定する。続けて、隙間画素数算出部5eは、処理対象領域A2内で縦方向及び横方向のうちの何れか一方向(例えば、縦方向)と互いに平行な複数の方向の各々に沿って処理対象ラインを設定し、各処理対象ラインを走査して所定の閾値よりも輝度値の小さい画素からなる領域を隙間領域Cとして複数特定する。続けて、隙間画素数算出部5eは、互いに平行な複数の処理対象ラインの各々について、複数の隙間領域Cの各々を構成する画素数を算出していく。
また、隙間画素数算出部5eは、縦方向及び横方向のうち、処理対象となっていない他方向(例えば、横方向)についても上記と同様にして、複数の隙間領域Cの各々を構成する画素数を算出する。
Next, the quadrangle conversion processing unit 5d performs a right-angled quadrangle conversion process (for example, a trapezoid correction process) on the square area A1 extracted from the luminance signal Y by the contour extraction unit 5c, thereby generating a right-angled quadrilateral image i2. (For example, a rectangular image) is generated (step S7; see FIG. 5A).
Subsequently, the gap pixel number calculation unit 5e specifies the gap region C between adjacent dots in the right-angled quadrilateral image i2 generated by the quadrilateral conversion processing unit 5d, and determines the number of pixels constituting the gap region C. Calculate (step S8). Specifically, the gap pixel number calculation unit 5e specifies an arbitrary processing target area A2 in which pixels brighter than a predetermined threshold occupy a predetermined ratio in the rectangular quadrilateral image i2. Thereafter, the gap pixel number calculation unit 5e calculates a cumulative frequency distribution of the luminance values of each pixel in the processing target area A2, and sets the luminance value corresponding to a predetermined distribution rate as a predetermined threshold value. Subsequently, the gap pixel number calculation unit 5e processes the processing target lines along each of a plurality of directions parallel to one of the vertical direction and the horizontal direction (for example, the vertical direction) in the processing target area A2. And each of the processing target lines is scanned, and a plurality of areas each including a pixel having a luminance value smaller than a predetermined threshold are specified as gap areas C. Subsequently, the gap pixel number calculation unit 5e calculates the number of pixels constituting each of the plurality of gap areas C for each of the plurality of processing target lines parallel to each other.
In addition, the gap pixel number calculation unit 5e configures each of the plurality of gap areas C in the same manner as described above in the other direction (for example, the horizontal direction) that is not the processing target among the vertical direction and the horizontal direction. The number of pixels is calculated.

次に、フィルタサイズ特定部5fは、直角四辺形画像i2に対するフィルタ処理に用いられる所定の二次元フィルタ(例えば、メディアンフィルタ等)のサイズを特定する(ステップS9)。
より具体的には、フィルタサイズ特定部5fは、直角四辺形画像i2の処理対象領域A2の縦方向及び横方向のうちの処理対象方向(例えば、縦方向)と互いに平行な複数の処理対象ラインの各々について、隙間領域Cを構成する複数の画素数の中での最大値を算出する。そして、フィルタサイズ特定部5fは、特定された複数の画素数の最大値に基づいて、処理対象方向に係る複数の画素数を代表する代表値を特定した後、特定された代表値を「gap」として、フィルタ処理に用いられるメディアンフィルタのタップ数「tap」を下記式(1)に従って算出する。
tap= 2gap +1 …式(1)
また、フィルタサイズ特定部5fは、処理対象領域A2の縦方向及び横方向のうち、処理対象となっていない他方向(例えば、横方向)についても上記と同様にして、フィルタ処理に用いられる所定の二次元フィルタのサイズを特定する。
そして、フィルタサイズ特定部5fは、処理対象領域A2の縦方向及び横方向の各々を処理対象方向として特定されたフィルタサイズに基づいて、最終的なフィルタサイズを特定する。
Next, the filter size specifying unit 5f specifies the size of a predetermined two-dimensional filter (for example, a median filter) used for the filtering process on the right-angled quadrilateral image i2 (step S9).
More specifically, the filter size specifying unit 5f includes a plurality of processing target lines that are parallel to the processing target direction (for example, the vertical direction) of the processing target area A2 of the rectangular quadrilateral image i2 in the vertical direction and the horizontal direction. For each of the above, a maximum value among a plurality of pixels constituting the gap region C is calculated. Then, the filter size specifying unit 5f specifies a representative value that represents the number of pixels in the processing target direction based on the maximum value of the specified number of pixels, and then specifies the specified representative value as “gap The number of taps “tap” of the median filter used for the filter processing is calculated according to the following formula (1).
tap = 2gap +1 ... Formula (1)
In addition, the filter size specifying unit 5f performs predetermined processing used for the filter processing in the same manner as described above in the other direction (for example, the horizontal direction) that is not the processing target among the vertical direction and the horizontal direction of the processing target area A2. Specifies the size of the two-dimensional filter.
Then, the filter size specifying unit 5f specifies the final filter size based on the filter size specified with each of the vertical direction and the horizontal direction of the processing target area A2 as the processing target direction.

次に、フィルタ処理部5gは、フィルタサイズ特定部5fにより特定されたサイズの所定の二次元フィルタ(例えば、メディアンフィルタ等)を用いて直角四辺形画像i2に対するフィルタ処理を行う(ステップS10)。
具体的には、フィルタ処理部5gは、直角四辺形画像i2の各画素に対してフィルタ処理を行うことによって、隣接するドットどうしの隙間領域Cを構成する画素の輝度値を、当該画素の近傍の表示画像S自体(ドット)に対応する画素の輝度値に置換する。これにより、フィルタ処理部5gは、表示画像Sに重畳して現れている格子状の模様(複数のドットどうしの隙間領域C)を補間した隙間補間処理済画像i3の画像データを生成する。
Next, the filter processing unit 5g performs a filtering process on the rectangular quadrilateral image i2 using a predetermined two-dimensional filter (for example, a median filter) having a size specified by the filter size specifying unit 5f (step S10).
Specifically, the filter processing unit 5g performs the filtering process on each pixel of the right-angled quadrilateral image i2, thereby obtaining the luminance value of the pixel constituting the gap region C between adjacent dots, in the vicinity of the pixel. Is replaced with the luminance value of the pixel corresponding to the display image S itself (dot). As a result, the filter processing unit 5g generates image data of the gap-interpolated image i3 obtained by interpolating the grid pattern (gap area C between the plurality of dots) appearing superimposed on the display image S.

その後、符号化部6は、画像処理部5による画像処理後の隙間補間処理済画像i3の画像データ(YUVデータ)を所定の圧縮形式(例えば、JPEG形式等)で符号化して記録用の画像データを生成する(ステップS11)。
続けて、記録媒体制御部7は、符号化部6により符号化された隙間補間処理済画像i3の記録用の画像データを記録媒体Mに記録させる(ステップS12)。このとき、表示制御部8は、表示制御部8は、隙間補間処理済画像i3の表示用の画像データを取得して表示部9に表示させる。
これにより、隙間補間撮像処理を終了する。
Thereafter, the encoding unit 6 encodes the image data (YUV data) of the gap-interpolated image i3 after the image processing by the image processing unit 5 in a predetermined compression format (for example, JPEG format) and the like. Data is generated (step S11).
Subsequently, the recording medium control unit 7 records the image data for recording of the gap interpolation processed image i3 encoded by the encoding unit 6 on the recording medium M (step S12). At this time, the display control unit 8 acquires the image data for display of the gap interpolation processed image i3 and causes the display unit 9 to display the acquired image data.
Thus, the gap interpolation imaging process is finished.

以上のように、本実施形態の撮像装置100によれば、表示装置200の表示画面201に表示された表示画像Sを撮像した撮像画像i1の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像i2を生成するので、直角四辺形画像i2における、表示画像Sの所定方向に隣接するドットどうしの隙間に対応する隙間領域Cの特定を適正に行うことができる。これにより、その後の直角四辺形画像i2に対する隙間補間処理(隙間修正処理)を処理負担の小さい単純な回路構成で簡便に行うことができ、当該隙間補間処理の処理効率の向上及び高速化を図ることができるとともに、隙間補間処理後の画像データの画質劣化や解像度の低下を生じさせることなく直角四辺形画像i2からの隙間領域C(格子状の模様)の補間を適正に行うことができる。
このように、表示画像Sを撮像した画像を変形させた直角四辺形画像i2から隣接するドットどうしの隙間、即ち、当該画像の表示には不要な情報が補間されて修正された画像の生成を簡便に、且つ、適正に行うことができる。
As described above, according to the imaging device 100 of the present embodiment, the right-angled quadrangle conversion process is performed on the predetermined image region of the captured image i1 obtained by capturing the display image S displayed on the display screen 201 of the display device 200. Since the right-angled quadrilateral image i2 is generated, it is possible to appropriately specify the gap region C corresponding to the gap between dots adjacent to each other in the predetermined direction of the display image S in the right-angled quadrilateral image i2. Thereby, the subsequent gap interpolation process (gap correction process) for the right-angled quadrilateral image i2 can be easily performed with a simple circuit configuration with a small processing load, and the processing efficiency and speed of the gap interpolation process are improved. In addition, the gap region C (lattice pattern) from the quadrilateral quadrilateral image i2 can be appropriately interpolated without causing image quality deterioration or resolution reduction of the image data after the gap interpolation processing.
In this way, a gap between adjacent dots from the right-angled quadrilateral image i2 obtained by deforming the image obtained by capturing the display image S, that is, an image corrected by interpolating information unnecessary for display of the image is generated. It can be performed simply and appropriately.

また、直角四辺形変換処理を行って直角四辺形画像i2を生成することにより当該直角四辺形画像i2における隙間領域Cの特定を適正に行うことができるので、当該隙間領域Cを構成する画素数の算出を適正に行うことができる。
これにより、算出された隙間領域Cの画素数に基づいて、隙間補間処理にて処理対象となる一の画素の処理範囲の特定を適正に行うことができる。具体的には、処理対象となる一の画素の処理範囲を規定する、フィルタ処理に用いられる所定の二次元フィルタのサイズを特定して、当該サイズの所定の二次元フィルタを用いてフィルタ処理を行うので、フィルタ処理後の画像データの画質劣化を生じさせることなく直角四辺形画像i2における隙間領域Cを適正に補間することができる。つまり、直角四辺形画像i2に対するフィルタ処理を、特定されたサイズの所定の二次元フィルタを適用して一律に行うことができることから、当該フィルタ処理を処理負担の小さい単純な回路構成で簡便に行うことができる。この結果、フィルタ処理の処理効率の向上及び高速化を図ることができるとともに、フィルタ処理後の画像データの画質劣化や解像度の低下を生じさせることなく直角四辺形画像i2からの隙間領域Cの補間を適正に行うことができる。
Further, since the right-angled quadrilateral image i2 is generated by performing the right-angled quadrangle conversion process, the gap region C in the right-angled quadrilateral image i2 can be appropriately specified, so the number of pixels constituting the gap region C Can be appropriately calculated.
Thereby, based on the calculated number of pixels in the gap region C, it is possible to appropriately specify the processing range of one pixel to be processed in the gap interpolation process. Specifically, the size of a predetermined two-dimensional filter used for filter processing that defines the processing range of one pixel to be processed is specified, and the filter processing is performed using the predetermined two-dimensional filter of the size. Therefore, the gap region C in the right-angled quadrilateral image i2 can be appropriately interpolated without causing the image quality deterioration of the image data after the filter processing. That is, since the filtering process for the rectangular quadrilateral image i2 can be uniformly performed by applying a predetermined two-dimensional filter of a specified size, the filtering process is easily performed with a simple circuit configuration with a small processing load. be able to. As a result, it is possible to improve the processing efficiency and speed of the filtering process, and to interpolate the gap region C from the rectangular quadrilateral image i2 without causing image quality deterioration or resolution reduction of the filtered image data. Can be performed properly.

また、直角四辺形画像i2の処理対象領域A2の何れか一の辺と平行な複数の方向に沿ってそれぞれ隙間領域Cを複数特定し、各方向における複数の隙間領域Cの各々を構成する画素数を算出する。そして、算出された各方向における複数の画素数の中での最大値に基づいて、互いに平行な複数の方向に係る複数の画素数を代表する代表値を特定し、特定された代表値を基準として、フィルタ処理に用いられる所定の二次元フィルタのサイズを特定するので、当該所定の二次元フィルタのサイズの最適化を図ることができ、フィルタ処理にて隙間領域Cを構成する画素の輝度値の置換を適正に行うことができる。
つまり、処理対象領域A2の縦方向及び横方向のうちの処理対象方向と平行となるように設定される処理対象ラインが、格子状をなす隙間領域Cを構成する所定方向に延在する直線上となった場合には、算出される隙間領域Cを構成する画素数の値が大きくなる。そこで、処理対象方向に係る複数の処理対象ラインに対応する複数の画素数の中での最大値に基づいて、輝度値の小さい画素が大部分を占める処理対象ラインに係るものを除外するように処理対象方向に係る複数の画素数の代表値を特定し、特定された代表値を基準として、フィルタ処理に用いられる所定の二次元フィルタのサイズを特定する。
このように、処理対象領域A2の中で、格子状をなす隙間領域Cを構成する所定方向に延在する直線上に設定される処理対象ラインを考慮してフィルタサイズを特定することができるので、当該所定の二次元フィルタのサイズの最適化を図ることができる。
Also, a plurality of gap areas C are specified along a plurality of directions parallel to any one side of the processing target area A2 of the rectangular quadrilateral image i2, and pixels constituting each of the plurality of gap areas C in each direction. Calculate the number. Then, based on the calculated maximum value among the plurality of pixels in each direction, a representative value representative of the plurality of pixels in a plurality of directions parallel to each other is specified, and the specified representative value is used as a reference. Since the size of the predetermined two-dimensional filter used for the filtering process is specified, the size of the predetermined two-dimensional filter can be optimized, and the luminance value of the pixels constituting the gap region C by the filtering process Can be properly replaced.
That is, the processing target line set so as to be parallel to the processing target direction in the vertical direction and the horizontal direction of the processing target area A2 is a straight line extending in a predetermined direction constituting the lattice-shaped gap region C. In this case, the calculated value of the number of pixels constituting the gap area C is increased. Therefore, based on the maximum value among the plurality of pixels corresponding to the plurality of processing target lines in the processing target direction, those related to the processing target line in which pixels having a small luminance value occupy most are excluded. A representative value of a plurality of pixels in the processing target direction is specified, and a size of a predetermined two-dimensional filter used for the filter processing is specified using the specified representative value as a reference.
As described above, the filter size can be specified in consideration of the processing target line set on the straight line extending in a predetermined direction constituting the lattice-shaped gap region C in the processing target region A2. The size of the predetermined two-dimensional filter can be optimized.

また、撮像画像i1に対して輪郭抽出処理を施すことにより所定の画像領域を抽出するので、直角四辺形変換処理の処理対象となる領域の特定を自動的に行うことができる。
ここで、複数の所定の画像領域が抽出された場合であっても、ユーザによる操作入力部10の所定操作に基づいて中央制御部11が直角四辺形変換処理の処理対象となる所定の画像領域を指定するので、複数の所定の画像領域の中でユーザ所望の領域を直角四辺形変換処理の処理対象として設定することができる。
In addition, since a predetermined image region is extracted by performing contour extraction processing on the captured image i1, it is possible to automatically specify a region to be processed by the right-angled quadrangle conversion processing.
Here, even when a plurality of predetermined image areas are extracted, the predetermined image area to which the central control unit 11 is subjected to the right-angled quadrangle conversion processing based on the predetermined operation of the operation input unit 10 by the user. Therefore, a user-desired area among a plurality of predetermined image areas can be set as a processing object of the right-angled quadrangle conversion process.

さらに、撮像部1のレンズ部の光学的特性によって生じた撮像画像i1の歪みを補正するので、その後の当該撮像画像i1の所定の画像領域に対する直角四辺形変換処理を適正に行うことができる。これにより、直角四辺形画像i2における隙間領域Cの特定をより適正に行うことができることとなって、当該隙間領域Cを構成する画素数の算出をより適正に行うことができる。   Furthermore, since the distortion of the captured image i1 caused by the optical characteristics of the lens unit of the imaging unit 1 is corrected, it is possible to appropriately perform a right-angled quadrangle conversion process for a predetermined image region of the captured image i1 thereafter. Accordingly, the gap region C in the right-angled quadrilateral image i2 can be specified more appropriately, and the number of pixels constituting the gap region C can be calculated more appropriately.

また、直角四辺形画像i2の隙間領域Cの画像データの補間により当該撮像画像i1から高周波成分を適正に除去することができ、従来の手法に比べて所定の圧縮形式による符号化効率を向上させることができる。この結果、隙間補間処理後の画像が記録される記録媒体Mにより多くの画像データを記録することができることとなって、当該記録媒体Mの記録(格納)効率を向上させることができる。   Further, high-frequency components can be appropriately removed from the captured image i1 by interpolation of the image data of the gap region C of the right-angled quadrilateral image i2, and the encoding efficiency by a predetermined compression format is improved as compared with the conventional method. be able to. As a result, a large amount of image data can be recorded on the recording medium M on which the image after the gap interpolation processing is recorded, and the recording (storage) efficiency of the recording medium M can be improved.

なお、本発明は、上記実施形態に限定されることなく、本発明の趣旨を逸脱しない範囲において、種々の改良並びに設計の変更を行っても良い。
例えば、上記実施形態では、隙間修正処理(隙間補間処理)としてフィルタ処理を例示したが、一例であってこれに限られるものではなく、適宜任意に変更可能である。即ち、本発明にあっては、隙間修正処理の前に、撮像画像i1の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像i2を生成することで、直角四辺形画像i2における隙間領域Cの特定を適正に行って、その後の隙間修正処理の簡略化を図ることができるようになる。従って、当該隙間修正処理の処理効率の向上及び高速化を図る上では、本実施形態のように所定のサイズの二次元フィルタを一律に適用する処理負担の小さい単純な回路構成で行うことが好ましいが、他の如何なる構成、例えば、従来の各種手法を適用しても良い。
The present invention is not limited to the above-described embodiment, and various improvements and design changes may be made without departing from the spirit of the present invention.
For example, in the above embodiment, the filter process is exemplified as the gap correction process (gap interpolation process). However, the filter process is an example, and the present invention is not limited to this, and can be arbitrarily changed as appropriate. That is, in the present invention, before the gap correction process, a right-angled quadrilateral image i2 is generated by performing a right-angled quadrangle conversion process on a predetermined image area of the captured image i1, thereby generating a right-angled quadrilateral image i2. It is possible to appropriately specify the gap region C and simplify subsequent gap correction processing. Therefore, in order to improve the processing efficiency and speed of the gap correction processing, it is preferable to use a simple circuit configuration with a small processing load that applies a two-dimensional filter of a predetermined size uniformly as in this embodiment. However, any other configuration, for example, various conventional methods may be applied.

また、上記実施形態にあっては、直角四辺形画像i2の処理対象領域A2の何れか一の辺と平行な所定の一方向にのみ処理対象ラインを設定し、当該処理対象ラインに沿って隙間領域Cを複数特定しても良い。即ち、例えば、処理対象領域に対する画像解析を行って所定方向に沿って輝度値の小さい画素が大部分を占めるラインを特定しておき、当該ラインと重ならないように処理対象ラインを設定すれば良い。
この場合には、処理対象ラインに沿って特定された複数の隙間領域Cの各々を構成する画素数を算出して、算出された複数の画素数の中での最大値を基準として、フィルタ処理に用いられる所定の二次元フィルタのサイズを特定することで、当該所定の二次元フィルタのサイズの最適化を図ることができる。
In the above embodiment, a processing target line is set only in a predetermined direction parallel to any one side of the processing target area A2 of the right-angled quadrilateral image i2, and a gap is formed along the processing target line. A plurality of areas C may be specified. That is, for example, image analysis is performed on the processing target region, a line in which pixels having a small luminance value occupy most of the predetermined direction is specified, and the processing target line is set so as not to overlap the line. .
In this case, the number of pixels constituting each of the plurality of gap regions C specified along the processing target line is calculated, and the filter processing is performed using the maximum value among the calculated number of pixels as a reference. By specifying the size of the predetermined two-dimensional filter used in the above, it is possible to optimize the size of the predetermined two-dimensional filter.

さらに、上記実施形態にあっては、フィルタサイズ特定部5fは、フィルタサイズの特定の際に、直角四辺形画像i2の処理対象領域A2の縦方向及び横方向の各々を処理対象方向とするようにしたが、これに限られるものではなく、処理対象領域A2の縦方向及び横方向のうちの何れか一方向のみを処理対象方向としても良い。即ち、表示装置200の表示画面201の複数のドットの各々は略正方形状をなしていることから、処理対象領域A2の縦方向及び横方向のうちの何れか一方向を処理対象方向とすることで特定されたフィルタサイズを、フィルタ処理に用いられる所定の二次元フィルタの最終的なフィルタサイズとしても良い。   Furthermore, in the above-described embodiment, the filter size specifying unit 5f sets each of the vertical direction and the horizontal direction of the processing target area A2 of the rectangular quadrilateral image i2 as the processing target direction when specifying the filter size. However, the present invention is not limited to this, and only one of the vertical direction and the horizontal direction of the processing target area A2 may be set as the processing target direction. That is, since each of the plurality of dots on the display screen 201 of the display device 200 has a substantially square shape, one of the vertical direction and the horizontal direction of the processing target area A2 is set as the processing target direction. The filter size specified in (1) may be the final filter size of a predetermined two-dimensional filter used for the filter processing.

また、上記実施形態にあっては、撮像画像i1に対して輪郭抽出処理を施して所定の画像領域(四角領域A1)を抽出するようにしたが、これに限られるものではなく、所定の画像領域を抽出する処理を行うか否かは適宜任意に変更可能である。
さらに、上記実施形態にあっては、撮像画像i1における撮像部1のレンズ部の光学的特性によって生じた歪みを補正するようにしたが、これに限られるものではなく、撮像画像i1に生じた歪みを補正する処理を行うか否かは適宜任意に変更可能である。
In the above embodiment, a contour extraction process is performed on the captured image i1 to extract a predetermined image region (square region A1). However, the present invention is not limited to this. Whether or not to perform the process of extracting the region can be arbitrarily changed as appropriate.
Furthermore, in the above embodiment, the distortion caused by the optical characteristics of the lens unit of the imaging unit 1 in the captured image i1 is corrected. However, the present invention is not limited to this, and the distortion occurred in the captured image i1. Whether or not to perform the process of correcting the distortion can be arbitrarily changed as appropriate.

また、上記実施形態にあっては、直角四辺形画像i2の隙間領域Cの隙間画素数の算出やフィルタ処理用のフィルタサイズの特定を、直角四辺形画像i2内の所定の処理対象領域A2に基づいて行うようにしたが、これに限られるものではなく、例えば、直角四辺形画像i2全体を処理対象としても良い。   In the above embodiment, the calculation of the number of gap pixels in the gap area C of the right-angled quadrilateral image i2 and the specification of the filter size for the filter process are performed on the predetermined processing target area A2 in the right-angled quadrilateral image i2. However, the present invention is not limited to this, and for example, the entire right-angled quadrilateral image i2 may be processed.

さらに、撮像装置100の構成は、上記実施形態に例示したものは一例であり、これに限られるものではない。
即ち、表示装置200に表示された表示画像Sを当該撮像装置100にて撮像して撮像画像i1を取得するようにしたが、例えば、当該撮像装置100以外の撮像装置にて撮像された撮像画像を記録媒体Mや所定の通信回線を介して取得するようにしても良い。また、画像処理部5による画像処理後の直角四辺形画像i2の画像データ(隙間補間処理済画像i3の画像データ)を記録媒体Mに記録させるようにしたが、例えば、当該撮像装置100の外部に設けられ所定の通信回線を介して接続されている所定の記録手段(例えば、ハードディスクドライブなど)に転送して記録するようにしても良い。
また、画像処理装置として、撮像装置100を例示したが、これに限られるものではなく、本発明に係る所定の画像処理を実行可能なものであれば如何なる構成であっても良い。
Furthermore, the configuration of the imaging apparatus 100 is merely an example illustrated in the above embodiment, and is not limited thereto.
That is, the display image S displayed on the display device 200 is captured by the imaging device 100 to acquire the captured image i1, but for example, the captured image captured by an imaging device other than the imaging device 100 May be acquired via the recording medium M or a predetermined communication line. Further, the image data of the right-angled quadrilateral image i2 (image data of the gap-interpolated image i3) after the image processing by the image processing unit 5 is recorded on the recording medium M. May be transferred to a predetermined recording means (for example, a hard disk drive) connected via a predetermined communication line.
In addition, the imaging apparatus 100 has been exemplified as the image processing apparatus, but the configuration is not limited thereto, and any configuration may be used as long as the predetermined image processing according to the present invention can be performed.

加えて、上記実施形態にあっては、取得手段、第1処理手段、第2処理手段としての機能を、中央制御部11の制御下にて、画像処理部5の画像取得部5a、四辺形変換処理部5d及びフィルタ処理部5gが駆動することにより実現される構成としたが、これに限られるものではなく、中央制御部11によって所定のプログラム等が実行されることにより実現される構成としても良い。
即ち、プログラムを記憶するプログラムメモリ(図示略)に、画像取得処理ルーチン、第1処理ルーチン及び第2処理ルーチンを含むプログラムを記憶しておく。そして、取得処理ルーチンにより中央制御部11のCPUを、複数のドットがマトリクス状に配置されている表示画面201に表示された表示画像Sを撮像した撮像画像i1を取得する取得手段として機能させるようにしても良い。また、第1処理ルーチンにより中央制御部11のCPUを、取得手段により取得された撮像画像i1の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像i2を生成する第1処理手段として機能させるようにしても良い。また、第2処理ルーチンにより中央制御部11のCPUを、第1処理手段により生成された直角四辺形画像i2に対して、表示画像Sの所定方向に隣接するドットどうしの隙間に対応する隙間領域Cの画像データを修正する隙間修正処理を行う第2処理手段として機能させるようにしても良い。
In addition, in the above-described embodiment, the functions of the acquisition unit, the first processing unit, and the second processing unit are controlled by the central control unit 11 so that the image acquisition unit 5a of the image processing unit 5 has a quadrilateral shape. Although the configuration realized by driving the conversion processing unit 5d and the filter processing unit 5g is not limited to this, the configuration realized by executing a predetermined program or the like by the central control unit 11 Also good.
That is, a program including an image acquisition processing routine, a first processing routine, and a second processing routine is stored in a program memory (not shown) that stores the program. Then, the CPU of the central control unit 11 is caused to function as an acquisition unit that acquires the captured image i1 obtained by capturing the display image S displayed on the display screen 201 in which a plurality of dots are arranged in a matrix by the acquisition processing routine. Anyway. In addition, the CPU of the central control unit 11 performs a right-angled quadrangle conversion process on a predetermined image area of the captured image i1 acquired by the acquisition unit by the first processing routine to generate a right-angled quadrilateral image i2. You may make it function as. Further, the CPU of the central control unit 11 in the second processing routine causes the gap area corresponding to the gap between the dots adjacent in the predetermined direction of the display image S to the right-angled quadrilateral image i2 generated by the first processing means. You may make it function as a 2nd processing means which performs the clearance correction process which corrects the C image data.

同様に、算出手段、特定手段、抽出手段、指定手段、補正手段についても、中央制御部11のCPUによって所定のプログラム等が実行されることにより実現される構成としても良い。   Similarly, the calculation unit, the identification unit, the extraction unit, the designation unit, and the correction unit may be realized by executing a predetermined program or the like by the CPU of the central control unit 11.

さらに、上記の各処理を実行するためのプログラムを格納したコンピュータ読み取り可能な媒体として、ROMやハードディスク等の他、フラッシュメモリ等の不揮発性メモリ、CD−ROM等の可搬型記録媒体を適用することも可能である。また、プログラムのデータを所定の通信回線を介して提供する媒体としては、キャリアウェーブ(搬送波)も適用される。   Furthermore, as a computer-readable medium storing a program for executing each of the above processes, a non-volatile memory such as a flash memory or a portable recording medium such as a CD-ROM is applied in addition to a ROM or a hard disk. Is also possible. A carrier wave is also used as a medium for providing program data via a predetermined communication line.

100 撮像装置
1 撮像部
2 撮像制御部
5 画像処理部
5a 画像取得部
5b 画像補正部
5c 輪郭抽出部
5d 四辺形変換処理部
5e 隙間画素数算出部
5f フィルタサイズ特定部
5g フィルタ処理部
7 記録媒体制御部
10 操作入力部
11 中央制御部
M 記録媒体
DESCRIPTION OF SYMBOLS 100 Image pick-up device 1 Image pick-up part 2 Image pick-up control part 5 Image processing part 5a Image acquisition part 5b Image correction part 5c Outline extraction part 5d Quadrangle conversion processing part 5e Gaps pixel number calculation part 5f Filter size specific part 5g Filter processing part 7 Recording medium Control unit 10 Operation input unit 11 Central control unit M Recording medium

Claims (11)

複数のドットがマトリクス状に配置されている表示画面に表示された表示画像を撮像した撮像画像を取得する取得手段と、
この取得手段により取得された撮像画像の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像を生成する第1処理手段と、
この第1処理手段により生成された前記直角四辺形画像に対して、前記表示画像の所定方向に隣接するドットどうしの隙間に対応する隙間領域の画像データを修正する隙間修正処理を行う第2処理手段と、
を備えたことを特徴とする画像処理装置。
An acquisition means for acquiring a captured image obtained by capturing a display image displayed on a display screen in which a plurality of dots are arranged in a matrix;
First processing means for generating a right-angled quadrilateral image by performing a right-angled quadrangle conversion process on a predetermined image area of the captured image acquired by the acquisition means;
A second process for performing a gap correction process for correcting the image data of the gap area corresponding to the gap between adjacent dots in the predetermined direction of the display image with respect to the right-angled quadrilateral image generated by the first processing means. Means,
An image processing apparatus comprising:
前記第1処理手段により生成された前記直角四辺形画像における前記隙間領域を構成する画素数を算出する算出手段と、
この算出手段により算出された前記画素数に基づいて、前記隙間修正処理にて処理対象となる一の画素の処理範囲を特定する特定手段と、を更に備え、
前記第2処理手段は、
前記特定手段により特定された前記一の画素の処理範囲を基準として前記直角四辺形画像に対する前記隙間修正処理を行うことを特徴とする請求項1に記載の画像処理装置。
Calculating means for calculating the number of pixels constituting the gap area in the right-angled quadrilateral image generated by the first processing means;
A specifying unit for specifying a processing range of one pixel to be processed in the gap correction processing based on the number of pixels calculated by the calculating unit;
The second processing means includes
The image processing apparatus according to claim 1, wherein the gap correction process is performed on the right-angled quadrilateral image with reference to a processing range of the one pixel specified by the specifying unit.
前記特定手段は、前記算出手段により算出された前記画素数に基づいて、前記処理対象となる一の画素の処理範囲を規定する、前記隙間修正処理としてのフィルタ処理に用いられる所定のフィルタのサイズを特定し、
前記第2処理手段は、前記特定手段により特定されたサイズの所定のフィルタを用いて前記直角四辺形画像に対する前記フィルタ処理を行って、当該直角四辺形画像における前記隙間領域の画像データを修正することを特徴とする請求項2に記載の画像処理装置。
The specifying unit defines a processing range of one pixel to be processed based on the number of pixels calculated by the calculating unit, and a size of a predetermined filter used for the filter processing as the gap correction processing Identify
The second processing means performs the filtering process on the right-angled quadrilateral image using a predetermined filter having a size specified by the specifying means, and corrects the image data of the gap area in the right-angled quadrilateral image. The image processing apparatus according to claim 2.
前記算出手段は、前記直角四辺形画像の何れか一の辺と平行な所定の一方向に沿って前記隙間領域を複数特定して、当該複数の隙間領域の各々を構成する画素数を算出し、
前記特定手段は、前記算出手段により算出された複数の前記画素数の中での最大値を基準として、前記フィルタ処理に用いられる所定のフィルタのサイズを特定することを特徴とする請求項3に記載の画像処理装置。
The calculation means specifies a plurality of the gap areas along a predetermined direction parallel to any one side of the right-angled quadrilateral image, and calculates the number of pixels constituting each of the plurality of gap areas. ,
The said specifying means specifies the size of the predetermined filter used for the said filter process on the basis of the maximum value in the said some pixel count calculated by the said calculation means. The image processing apparatus described.
前記算出手段は、前記直角四辺形画像の何れか一の辺と平行な複数の方向に沿ってそれぞれ前記隙間領域を複数特定して、各方向における前記複数の隙間領域の各々を構成する画素数を算出し、
前記特定手段は、前記算出手段により算出された各方向における複数の前記画素数の中での最大値に基づいて、前記互いに平行な複数の方向に係る複数の画素数を代表する代表値を特定し、特定された代表値を基準として、前記フィルタ処理に用いられる所定のフィルタのサイズを特定することを特徴とする請求項4に記載の画像処理装置。
The calculation means specifies a plurality of the gap regions along a plurality of directions parallel to any one side of the right-angled quadrilateral image, and the number of pixels constituting each of the plurality of gap regions in each direction To calculate
The specifying unit specifies a representative value representing the number of pixels in the plurality of parallel directions based on the maximum value among the plurality of pixels in each direction calculated by the calculating unit. The image processing apparatus according to claim 4, wherein a size of a predetermined filter used for the filter processing is specified based on the specified representative value.
前記取得手段により取得された前記撮像画像に対して輪郭抽出処理を施して前記所定の画像領域を抽出する抽出手段を更に備え、
前記第1処理手段は、
前記抽出手段により抽出された前記所定の画像領域に対して前記直角四辺形変換処理を施すことを特徴とする請求項1〜5の何れか一項に記載の画像処理装置。
The image processing apparatus further includes an extraction unit that performs a contour extraction process on the captured image acquired by the acquisition unit and extracts the predetermined image region,
The first processing means includes
The image processing apparatus according to claim 1, wherein the right-angled quadrilateral transformation process is performed on the predetermined image area extracted by the extraction unit.
前記抽出手段は、前記所定の画像領域を複数抽出し、
前記複数の所定の画像領域の中で、前記第1処理手段により前記直角四辺形変換処理が施される所定の画像領域を指定する指定手段を更に備えることを特徴とする請求項6に記載の画像処理装置。
The extraction means extracts a plurality of the predetermined image areas,
7. The specifying device according to claim 6, further comprising: a specifying unit that specifies a predetermined image region to be subjected to the right-angled quadrilateral transformation process by the first processing unit among the plurality of predetermined image regions. Image processing device.
前記取得手段により取得された前記撮像画像における、前記表示画像を撮像した撮像手段の光学的特性によって生じた歪みを補正する補正手段を更に備え、
前記第1処理手段は、
前記補正手段により歪みが補正された撮像画像の所定の画像領域に対して前記直角四辺形変換処理を施すことを特徴とする請求項1〜7の何れか一項に記載の画像処理装置。
A correction unit that corrects distortion caused by optical characteristics of the imaging unit that captured the display image in the captured image acquired by the acquisition unit;
The first processing means includes
The image processing apparatus according to claim 1, wherein the right-angled quadrangle conversion process is performed on a predetermined image area of the captured image whose distortion is corrected by the correction unit.
前記第2処理手段による前記隙間修正処理後の画像を記録手段に記録させる制御手段を更に備えることを特徴とする請求項1〜8の何れか一項に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a control unit that causes the recording unit to record an image after the gap correction processing by the second processing unit. 複数のドットがマトリクス状に配置されている表示画面に表示された表示画像を撮像した撮像画像を取得する取得手段を備える画像処理装置を用いた画像処理方法であって、
前記取得手段により取得された撮像画像の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像を生成する処理と、
生成された前記直角四辺形画像に対して、前記表示画像の所定方向に隣接するドットどうしの隙間に対応する隙間領域の画像データを修正する隙間修正処理を行う処理と、
を含むことを特徴とする画像処理方法。
An image processing method using an image processing apparatus including an acquisition unit that acquires a captured image obtained by capturing a display image displayed on a display screen in which a plurality of dots are arranged in a matrix,
A process of generating a right-angled quadrilateral image by performing a right-angled quadrangle conversion process on a predetermined image area of the captured image acquired by the acquisition unit;
A process of performing a gap correction process for correcting the image data of a gap area corresponding to a gap between dots adjacent in a predetermined direction of the display image with respect to the generated right-angled quadrilateral image;
An image processing method comprising:
複数のドットがマトリクス状に配置されている表示画面に表示された表示画像を撮像した撮像画像を取得する取得手段を備える画像処理装置のコンピュータを、
前記取得手段により取得された撮像画像の所定の画像領域に対する直角四辺形変換処理を行って直角四辺形画像を生成する第1処理手段、
この第1処理手段により生成された前記直角四辺形画像に対して、前記表示画像の所定方向に隣接するドットどうしの隙間に対応する隙間領域の画像データを修正する隙間修正処理を行う第2処理手段、
として機能させることを特徴とするプログラム。
A computer of an image processing apparatus including an acquisition unit that acquires a captured image obtained by capturing a display image displayed on a display screen in which a plurality of dots are arranged in a matrix.
First processing means for generating a right-angled quadrilateral image by performing a right-angled quadrangle conversion process on a predetermined image area of the captured image acquired by the acquisition means;
A second process for performing a gap correction process for correcting the image data of the gap area corresponding to the gap between adjacent dots in the predetermined direction of the display image with respect to the right-angled quadrilateral image generated by the first processing means. means,
A program characterized by functioning as
JP2010074122A 2010-03-29 2010-03-29 Image processing apparatus, image processing method, and program Expired - Fee Related JP5471704B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010074122A JP5471704B2 (en) 2010-03-29 2010-03-29 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010074122A JP5471704B2 (en) 2010-03-29 2010-03-29 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2011211270A true JP2011211270A (en) 2011-10-20
JP5471704B2 JP5471704B2 (en) 2014-04-16

Family

ID=44941919

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010074122A Expired - Fee Related JP5471704B2 (en) 2010-03-29 2010-03-29 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP5471704B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003122505A (en) * 2001-10-12 2003-04-25 Sony Corp Information processor, information processing system, and program
JP2005267457A (en) * 2004-03-19 2005-09-29 Casio Comput Co Ltd Image processing device, imaging apparatus, image processing method and program
JP2006350440A (en) * 2005-06-13 2006-12-28 Sharp Corp Image processing device, computer program, and recording medium
JP2007266694A (en) * 2006-03-27 2007-10-11 Casio Hitachi Mobile Communications Co Ltd Image processing apparatus, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003122505A (en) * 2001-10-12 2003-04-25 Sony Corp Information processor, information processing system, and program
JP2005267457A (en) * 2004-03-19 2005-09-29 Casio Comput Co Ltd Image processing device, imaging apparatus, image processing method and program
JP2006350440A (en) * 2005-06-13 2006-12-28 Sharp Corp Image processing device, computer program, and recording medium
JP2007266694A (en) * 2006-03-27 2007-10-11 Casio Hitachi Mobile Communications Co Ltd Image processing apparatus, and program

Also Published As

Publication number Publication date
JP5471704B2 (en) 2014-04-16

Similar Documents

Publication Publication Date Title
JP5269718B2 (en) Image processing apparatus, image processing program, and image processing method
US8363123B2 (en) Image pickup apparatus, color noise reduction method, and color noise reduction program
US9756266B2 (en) Sensor data rescaler for image signal processing
US9538085B2 (en) Method of providing panoramic image and imaging device thereof
JP5845464B2 (en) Image processing apparatus, image processing method, and digital camera
JP5413002B2 (en) Imaging apparatus and method, and program
JP5234150B2 (en) Image processing apparatus, image processing method, and program
JP4868046B2 (en) Image processing apparatus, image processing method, and program
JPWO2010016166A1 (en) Imaging apparatus, image processing method, image processing program, and semiconductor integrated circuit
JP4433883B2 (en) White balance correction device, white balance correction method, program, and electronic camera device
JP2013162347A (en) Image processor, image processing method, program, and device
JP2007274504A (en) Digital camera
JP5455728B2 (en) Imaging apparatus, image processing apparatus, and image processing method
JP2010141661A (en) Image processing device
JP2014146872A (en) Image processing device, imaging device, image processing method, and program
JP5673454B2 (en) Image processing apparatus, image processing method, and program
JP5471704B2 (en) Image processing apparatus, image processing method, and program
US8804014B2 (en) Imaging device for reducing color moire
JP2010154390A (en) Imaging device, imaging method, and program
JP2010056817A (en) Imaging apparatus
JP6003974B2 (en) Image processing apparatus, image processing method, and program
JP5979040B2 (en) Imaging apparatus, imaging method, and program
JP6627418B2 (en) Image processing apparatus, image processing method, and program
JP6601062B2 (en) Imaging control apparatus, imaging control method, and program
JP5290734B2 (en) Noise reduction device and noise reduction method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130325

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20130325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131001

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131017

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140120

R150 Certificate of patent or registration of utility model

Ref document number: 5471704

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees