JP4848230B2 - Image processing method, imaging apparatus, image processing apparatus, and program - Google Patents

Image processing method, imaging apparatus, image processing apparatus, and program Download PDF

Info

Publication number
JP4848230B2
JP4848230B2 JP2006234243A JP2006234243A JP4848230B2 JP 4848230 B2 JP4848230 B2 JP 4848230B2 JP 2006234243 A JP2006234243 A JP 2006234243A JP 2006234243 A JP2006234243 A JP 2006234243A JP 4848230 B2 JP4848230 B2 JP 4848230B2
Authority
JP
Japan
Prior art keywords
reference graphic
trimming
graphic
image data
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006234243A
Other languages
Japanese (ja)
Other versions
JP2008060827A (en
Inventor
剛 丸山
正良 加藤
青木  伸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006234243A priority Critical patent/JP4848230B2/en
Publication of JP2008060827A publication Critical patent/JP2008060827A/en
Application granted granted Critical
Publication of JP4848230B2 publication Critical patent/JP4848230B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理方法、撮像装置、画像処理装置およびプログラムに関するものであり、特に入力画像にあおり補正を実施する画像処理方法、撮像装置、画像処理装置およびプログラムに関する。   The present invention relates to an image processing method, an imaging apparatus, an image processing apparatus, and a program, and more particularly, to an image processing method, an imaging apparatus, an image processing apparatus, and a program that perform correction of tilt on an input image.

デジタルカメラは撮影した画像を即座に閲覧、印刷できるという特徴を持つ。そのため、時刻表やポスターなどのメモ代わりとしてデジタルカメラによる撮影が行われるようになってきている。しかし、デジタルカメラで撮影された時刻表やポスターは撮影する位置によりあおり(台形ひずみ)が生じてしまう。その結果、撮影された時刻表やポスターは読みづらく、画像を再利用するために最適ではなかった。   The digital camera has the feature that the photographed image can be viewed and printed immediately. For this reason, photographing with a digital camera is being performed as a substitute for notes such as timetables and posters. However, timetables and posters shot with a digital camera cause tilt (trapezoidal distortion) depending on the shooting position. As a result, the timetables and posters taken were difficult to read and were not optimal for reusing images.

そのため、たとえば、下記特許文献1〜4に開示されている技術により、撮影画像から撮影対象(被写体)の四辺形を抽出し、その四辺形の画像からあおり角を推定し、正対した位置から撮影した画像に変換する画像処理(あおり補正)が行われている。しかし、下記特許文献1〜3で開示されている画像処理手法では、背景と被写体を判別するために画像のコントラストを利用している。そのため、例えば白い机の上に白い印刷用紙を置いた場合などは、コントラストが低く背景と被写体を分離できず、撮影画像から被写体である四辺形を抽出することができないという問題があった。   Therefore, for example, by using the techniques disclosed in Patent Documents 1 to 4 below, a quadrilateral of a photographing target (subject) is extracted from the photographed image, a tilt angle is estimated from the quadrilateral image, and the position from the directly facing position is estimated. Image processing (tilt correction) is performed to convert the captured image. However, in the image processing methods disclosed in Patent Documents 1 to 3 below, the contrast of the image is used to determine the background and the subject. Therefore, for example, when white printing paper is placed on a white desk, there is a problem that the background and the subject cannot be separated because the contrast is low, and the quadrilateral that is the subject cannot be extracted from the photographed image.

この問題を解決するため、被写体となる文書などが載置されている平面の近隣に、四辺形のマーカを載置する方法が考えられる。しかし、マーカを載置した場合、保存される画像にマーカを含んでしまい、保存画像の2次利用を行う際に不便である。   In order to solve this problem, a method of placing a quadrangular marker in the vicinity of a plane on which a document or the like as a subject is placed is conceivable. However, when a marker is placed, the saved image includes the marker, which is inconvenient when secondary use of the saved image is performed.

さらに、下記特許文献1〜3で開示されている画像処理手法では、あおり補正対象の領域は四辺形に限られていた。一方、下記特許文献4に開示されている画像処理手法は、撮影画像から、被写体平面の相対角度を推定するための画像要素や画像要素間の関係を撮影者が指示するものである。この技術を用いれば、四辺形以外の被写体についてもあおり補正が可能であるが、一方で、撮影者の操作が煩雑になるという問題があった。   Furthermore, in the image processing methods disclosed in the following Patent Documents 1 to 3, the tilt correction target area is limited to a quadrilateral. On the other hand, in the image processing method disclosed in Patent Document 4 below, a photographer instructs an image element and a relationship between image elements for estimating a relative angle of a subject plane from a photographed image. If this technique is used, correction can be made for subjects other than the quadrilateral, but there is a problem that the operation of the photographer becomes complicated.

特開2005−122328号公報JP 2005-122328 A 特開2005−143092号公報JP 2005-143092 A 特開2004−363736号公報Japanese Patent Application Laid-Open No. 2004-363636 特開平11−238123号公報JP-A-11-238123

本発明は、上記に鑑みてなされたものであって、撮影者が煩雑な操作をすることなしに、背景とのコントラストが低い被写体についてもあおり補正ができ、かつ、マーカ等の不要な領域を含まずに保存することができる画像処理方法、撮像装置、画像処理装置およびプログラムを得ることを目的とする。   The present invention has been made in view of the above, and it is possible to perform correction for a subject having a low contrast with the background without complicated operations by the photographer, and to remove unnecessary areas such as markers. It is an object to obtain an image processing method, an imaging device, an image processing device, and a program that can be stored without being included.

上述した課題を解決し、目的を達成するために、請求項1にかかる発明は、画像処理装置により実行され、あおり補正を行う画像処理方法であって、前記画像処理装置の基準図形抽出手段が、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出ステップと、前記画像処理装置のトリミング手段が、前記画像データを、前記基準図形を含まない領域にトリミングするトリミングステップと、前記画像処理装置の変換行列算出手段が、前記基準図形に基づき変換行列を算出する変換行列算出ステップと、前記画像処理装置の射影変換手段が、前記画像データを、前記変換行列を用いて射影変換する射影変換ステップと、を含み、前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とする。 In order to solve the above-described problems and achieve the object, the invention according to claim 1 is an image processing method which is executed by an image processing apparatus and performs tilt correction, wherein the reference graphic extraction means of the image processing apparatus includes: A reference graphic extraction step for extracting the reference graphic from image data including a subject to be corrected for tilt and a reference graphic used for tilt correction; and a trimming means of the image processing device, wherein the image data is converted into the reference data. A trimming step for trimming an area not including a graphic; a conversion matrix calculating unit for calculating a conversion matrix based on the reference graphic; and a projecting converting unit for the image processing apparatus. image data, seen including a projective conversion step of projective transformation, a using the transformation matrix, the reference graphic extracting means, the image data To evaluate the strength of the size or contrast for graphic contained, and wherein the selecting the higher figure most evaluation value to the reference graphic.

また、請求項2にかかる発明は、前記射影変換ステップにおいては、トリミングされた画像を、前記射影変換することを特徴とする。   The invention according to claim 2 is characterized in that in the projective transformation step, the trimmed image is subjected to the projective transformation.

また、請求項3にかかる発明は、前記トリミングステップにおいては、前記射影変換された画像データを、前記基準図形を含まない領域にトリミングすることを特徴とする。   The invention according to claim 3 is characterized in that, in the trimming step, the image data subjected to the projective transformation is trimmed into an area not including the reference graphic.

また、請求項4にかかる発明は、前記トリミングする領域を、画像全体領域から前記基準図形を含む矩形領域を除いた領域としたことを特徴とする。   The invention according to claim 4 is characterized in that the region to be trimmed is a region obtained by removing a rectangular region including the reference graphic from the entire image region.

また、請求項5にかかる発明は、画像処理装置により実行され、あおり補正を行う画像処理方法であって、前記画像処理装置の基準図形抽出手段が、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出ステップと、前記画像処理装置のトリミング手段が、前記画像データを、前記基準図形を含まない領域にトリミングするトリミングステップと、前記画像処理装置の変換行列算出手段が、前記基準図形に基づき変換行列を算出する変換行列算出ステップと、前記画像処理装置の射影変換手段が、前記画像データを、前記変換行列を用いて射影変換する射影変換ステップと、を含み、前記トリミング手段は、ユーザによるデジタルズームの操作に従って前記画像データをトリミングし、前記基準図形抽出手段は、前記デジタルズームによってトリミング領域から除かれる領域から図形を抽出して前記基準図形に選ぶことを特徴とする。 The invention according to claim 5 is an image processing method that is executed by an image processing apparatus and performs tilt correction, wherein the reference graphic extraction means of the image processing apparatus is used to correct the tilt and the subject to be corrected. A reference graphic extraction step for extracting the reference graphic from image data including a reference graphic to be used, and a trimming step in which the trimming means of the image processing apparatus trims the image data into an area not including the reference graphic; A transformation matrix calculating step in which a transformation matrix calculating means of the image processing device calculates a transformation matrix based on the reference graphic; and a projective transformation means of the image processing device uses the transformation matrix to perform a projective transformation. A projective transformation step, wherein the trimming means is adapted to operate the image data in accordance with a digital zoom operation by a user. Trimmed, the reference graphic extracting means may be selected in the reference graphic by extracting a shape from the region is removed from the trimming region by said digital zoom.

また、請求項6にかかる発明は、あおり補正を行う撮像装置であって、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む撮影対象領域を撮像する撮像手段と、前記撮像手段により撮像された画像データから前記基準図形を抽出する基準図形抽出手段と、前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段と、前記基準図形に基づき変換行列を算出する変換行列算出手段と、前記画像データを、前記変換行列を用いて射影変換する射影変換手段と、を備え、前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とする。 According to a sixth aspect of the present invention, there is provided an imaging apparatus that performs tilt correction, an imaging unit that captures an imaging target region including a subject to be corrected for tilt and a reference graphic used for tilt correction, and the imaging A reference graphic extraction means for extracting the reference graphic from the image data captured by the means; a trimming means for trimming the image data into a region not including the reference graphic; and a conversion for calculating a conversion matrix based on the reference graphic Matrix calculation means, and projective transformation means for projective transformation of the image data using the transformation matrix , wherein the reference graphic extraction means determines the size or contrast strength of the graphic included in the image data. The figure having the highest evaluation value is selected as the reference figure .

また、請求項7にかかる発明は、前記射影変換手段は、トリミングされた画像を、前記射影変換することを特徴とする。   The invention according to claim 7 is characterized in that the projective transformation means performs the projective transformation on a trimmed image.

また、請求項8にかかる発明は、前記トリミング手段は、前記射影変換された画像データを、前記基準図形を含まない領域にトリミングすることを特徴とする。   The invention according to claim 8 is characterized in that the trimming means trims the image data subjected to the projective transformation into an area not including the reference graphic.

また、請求項9にかかる発明は、あおり補正を行う撮像装置であって、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む撮影対象領域を撮像する撮像手段と、前記撮像手段により撮像された画像データから前記基準図形を抽出する基準図形抽出手段と、前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段と、前記基準図形に基づき変換行列を算出する変換行列算出手段と、前記画像データを、前記変換行列を用いて射影変換する射影変換手段と、を備え、前記トリミング手段は、ユーザによるデジタルズームの操作に従って前記画像データをトリミングし、前記基準図形抽出手段は、前記デジタルズームによってトリミング領域から除かれる領域から図形を抽出して前記基準図形に選ぶことを特徴とする。 According to a ninth aspect of the present invention , there is provided an imaging apparatus that performs tilt correction, an imaging unit that captures a shooting target area including a subject to be corrected for tilt and a reference graphic used for tilt correction, and the imaging A reference graphic extraction means for extracting the reference graphic from the image data captured by the means; a trimming means for trimming the image data into a region not including the reference graphic; and a conversion for calculating a conversion matrix based on the reference graphic Matrix calculation means, and projective transformation means for projective transformation of the image data using the transformation matrix, the trimming means trimming the image data according to a digital zoom operation by a user, and the reference graphic extraction means chooses the reference graphic by extracting a shape from the region is removed from the trimming region by the digital zoom And wherein the door.

また、請求項10にかかる発明は、前記撮影対象領域と前記トリミング領域を同時に表示する表示手段、を備えることを特徴とする。 Further, the invention according to claim 10 is characterized by comprising display means for simultaneously displaying the imaging target area and the trimming area.

また、請求項11にかかる発明は、ユーザの操作により焦点距離を変更できる光学ズーム手段と、撮影対象領域を仮設定する撮影対象領域仮設定手段と、を備え、前記基準図形抽出手段は、仮設定された撮影対象領域の画像データから基準図形を抽出し、前記光学ズーム手段は、前記仮設定された撮影対象領域において、前記基準図形抽出手段により基準図形が抽出されない場合には、自動的にズームアウトを行うことを特徴とする。   The invention according to an eleventh aspect includes an optical zoom unit that can change a focal length by a user's operation, and a photographing target region temporary setting unit that temporarily sets a photographing target region. A reference graphic is extracted from the image data of the set shooting target area, and the optical zoom means automatically automatically extracts the reference graphic in the temporarily set shooting target area when the reference graphic extraction means is not extracted. It is characterized by zooming out.

また、請求項12にかかる発明は、あおり補正を行う画像処理装置であって、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出手段と、前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段と、前記基準図形に基づき変換行列を算出する変換行列算出手段と、前記画像データを、前記変換行列を用いて射影変換する射影変換手段と、を備え、前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とする。 According to a twelfth aspect of the present invention, there is provided an image processing apparatus for performing tilt correction, wherein the reference graphic is extracted from image data including a subject to be corrected for tilt and a reference graphic used for tilt correction. Extraction means, trimming means for trimming the image data into an area not including the reference graphic, conversion matrix calculation means for calculating a conversion matrix based on the reference graphic, and the image data using the conversion matrix Projection conversion means for projective conversion , wherein the reference graphic extraction means evaluates the size or contrast strength of the graphic included in the image data, and selects the graphic with the highest evaluation value as the reference graphic It is characterized by.

また、請求項13にかかる発明は、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出手段としての機能と、前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段としての機能と、前記基準図形に基づき変換行列を算出する変換行列算出手段としての機能と、前記画像データを、前記変換行列を用いて射影変換する射影変換手段としての機能と、をコンピュータに実現させるプログラムであって、前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とする。 According to a thirteenth aspect of the present invention, there is provided a function as reference graphic extracting means for extracting the reference graphic from image data including a subject to be corrected for tilt and a reference graphic used for tilt correction, and the image data. A function as a trimming means for trimming an area not including the reference graphic, a function as a conversion matrix calculating means for calculating a conversion matrix based on the reference graphic, and projective conversion of the image data using the conversion matrix. The reference graphic extraction means evaluates the size or contrast strength of a graphic included in the image data, and has the highest evaluation value. A figure is selected as the reference figure .

請求項1にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。   According to the first aspect of the present invention, since the quadrilateral other than the subject is automatically extracted as a marker to correct the subject's tilt and the region excluding the portion including the marker is saved, the subject and the background are saved. Even when the contrast is low, it is possible to perform correction for a subject having an arbitrary shape without requiring a complicated operation of the photographer, and an unnecessary marker is not included in the corrected stored image. .

また、請求項2にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。さらに、トリミングをしてから射影変換をすることにしたので処理時間が短くなるという効果を奏する。   According to the invention of claim 2, since the quadrilateral other than the subject is automatically extracted as a marker, the subject is corrected for tilting, and the region excluding the portion including the marker is saved. Even when the contrast between the background and the background is low, the subject can be corrected without requiring a complicated operation of the photographer for an object of arbitrary shape, and an unnecessary marker is not included in the corrected stored image Play. Furthermore, since the projective transformation is performed after trimming, the processing time is shortened.

また、請求項3にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。   According to the invention of claim 3, the quadrilateral other than the subject is automatically extracted as a marker, the subject is corrected for tilting, and the area excluding the portion including the marker or the like is saved. Even when the contrast between the background and the background is low, the subject can be corrected without requiring a complicated operation of the photographer for an object of arbitrary shape, and an unnecessary marker is not included in the corrected stored image Play.

また、請求項4にかかる発明によれば、マーカ等を含む矩形部分を除いた領域を保存するようにしたので、トリミング領域が容易に設定できるという効果を奏する。   According to the invention of claim 4, since the area excluding the rectangular part including the marker or the like is stored, the trimming area can be easily set.

また、請求項5にかかる発明によれば、ユーザがトリミング領域を指定するようにしたので、ユーザ要求に応じたトリミング領域が設定できるという効果を奏する。   According to the fifth aspect of the invention, since the user designates the trimming area, the trimming area can be set according to the user request.

また、請求項6にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。   According to the invention of claim 6, the quadrilateral other than the subject is automatically extracted as a marker, the subject is corrected for tilting, and the region excluding the portion including the marker or the like is stored. Even when the contrast between the background and the background is low, the subject can be corrected without requiring a complicated operation of the photographer for an object of arbitrary shape, and an unnecessary marker is not included in the corrected stored image Play.

また、請求項7にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。さらに、トリミングをしてから射影変換をすることにしたので処理時間が短くなるという効果を奏する。   According to the seventh aspect of the present invention, since the quadrilateral other than the subject is automatically extracted as a marker, the subject is corrected for tilting, and the region excluding the portion including the marker is stored. Even when the contrast between the background and the background is low, the subject can be corrected without requiring a complicated operation of the photographer for an object of arbitrary shape, and an unnecessary marker is not included in the corrected stored image Play. Furthermore, since the projective transformation is performed after trimming, the processing time is shortened.

また、請求項8にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。   According to the invention according to claim 8, since the quadrilateral other than the subject is automatically extracted as a marker, the subject is corrected for tilting, and the area excluding the portion including the marker is saved. Even when the contrast between the background and the background is low, the subject can be corrected without requiring a complicated operation of the photographer for an object of arbitrary shape, and an unnecessary marker is not included in the corrected stored image Play.

また、請求項9にかかる発明によれば、ユーザがデジタルズームによりトリミング領域を指定するようにしたので、ユーザ要求に応じたトリミング領域が設定できるという効果を奏する。   According to the ninth aspect of the invention, since the user designates the trimming area by digital zoom, the trimming area can be set according to the user request.

また、請求項10にかかる発明によれば、撮影領域とデジタルズーム領域を同時に表示するようにしたので、ユーザがトリミング領域の指定を容易に設定できるという効果を奏する。   According to the tenth aspect of the present invention, since the photographing area and the digital zoom area are displayed at the same time, there is an effect that the user can easily set the trimming area.

また、請求項11にかかる発明によれば、光学ズームを用いて撮影領域を仮設定し、基準図形が仮撮影領域に含まれない場合には、自動でズームアウトするようにしたので、ユーザが基準図形を含む撮影領域を容易に設定できるという効果を奏する。   According to the eleventh aspect of the present invention, the shooting area is temporarily set using optical zoom, and when the reference figure is not included in the temporary shooting area, the zoom-out is automatically performed. There is an effect that the photographing area including the reference graphic can be easily set.

また、請求項12にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。   According to the invention of claim 12, the quadrilateral other than the subject is automatically extracted as a marker, the subject is corrected for tilting, and the region excluding the portion including the marker is saved. Even when the contrast between the background and the background is low, the subject can be corrected without requiring a complicated operation of the photographer for an object of arbitrary shape, and an unnecessary marker is not included in the corrected stored image Play.

また、請求項13にかかる発明によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施し、マーカ等を含む部分を除いた領域を保存するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。   According to the invention of claim 13, the quadrilateral other than the subject is automatically extracted as a marker, the subject is corrected for tilting, and the region excluding the portion including the marker is saved. Even when the contrast between the background and the background is low, the subject can be corrected without requiring a complicated operation of the photographer for an object of arbitrary shape, and an unnecessary marker is not included in the corrected stored image Play.

以下に添付図面を参照して、この発明にかかる画像処理方法、撮像装置、画像処理装置およびプログラムの最良な実施の形態を詳細に説明する。   Exemplary embodiments of an image processing method, an imaging apparatus, an image processing apparatus, and a program according to the present invention are explained in detail below with reference to the accompanying drawings.

(第1の実施の形態)
図1は、本発明の第1の実施の形態にかかる撮像装置1の構成例を示すブロック図である。撮像装置1は、撮像部11、カメラ信号処理部12、CPU(Central Processing Unit)13、フレームメモリ14、I/F(インタフェース)15、表示部16、外部記憶装置17、ROM(Read Only Memory)18で構成されている。
(First embodiment)
FIG. 1 is a block diagram illustrating a configuration example of an imaging apparatus 1 according to the first embodiment of the present invention. The imaging device 1 includes an imaging unit 11, a camera signal processing unit 12, a CPU (Central Processing Unit) 13, a frame memory 14, an I / F (interface) 15, a display unit 16, an external storage device 17, and a ROM (Read Only Memory). 18.

撮像部11は、レンズ20、絞り21、シャッター22、光電変換素子23及び前処理部24より構成されている。撮像部11には、例えば、一般に市販されている「デジタルカメラ」またはその一部を利用してもよい。光電変換素子23には、例えば、CCD(電荷結合素子)が使用される。また、前処理部24は、プリアンプやAGC(自動利得制御)などのアナログ信号処理器や、A/D変換器を備えており、光電変換素子23から出力されたアナログ映像信号に対して増幅・クランプなどの前処理をした後、上記アナログ映像信号をデジタル映像信号に変換する。   The imaging unit 11 includes a lens 20, a diaphragm 21, a shutter 22, a photoelectric conversion element 23, and a preprocessing unit 24. For the imaging unit 11, for example, a commercially available “digital camera” or a part thereof may be used. For the photoelectric conversion element 23, for example, a CCD (charge coupled device) is used. The preprocessing unit 24 includes an analog signal processor such as a preamplifier and AGC (automatic gain control), and an A / D converter. The preprocessing unit 24 amplifies the analog video signal output from the photoelectric conversion element 23. After preprocessing such as clamping, the analog video signal is converted into a digital video signal.

カメラ信号処理部12は、デジタル信号処理プロセッサ(DSP)などにより構成されており、前処理部24から出力されたデジタル映像信号に対して画像圧縮などの画像処理を行う。CPU13は、マイクロコンピュータなどにより構成され、カメラ信号処理部12および撮像部11の制御などを行う。フレームメモリ14は、カメラ信号処理部12の処理に利用されるメモリであり、一般的にVRAM,SRAM,DRAMなどの半導体メモリが使用される。I/F15は、カメラ信号処理部12、表示部16、外部記憶装置17の間を仲介する。   The camera signal processing unit 12 includes a digital signal processor (DSP) and the like, and performs image processing such as image compression on the digital video signal output from the preprocessing unit 24. The CPU 13 includes a microcomputer and controls the camera signal processing unit 12 and the imaging unit 11. The frame memory 14 is a memory used for processing of the camera signal processing unit 12, and generally a semiconductor memory such as a VRAM, SRAM, DRAM or the like is used. The I / F 15 mediates between the camera signal processing unit 12, the display unit 16, and the external storage device 17.

表示部16は、例えば、液晶表示装置などであり、画像信号の表示を行う。外部記憶装置17はカメラ信号処理部12において画像圧縮などの信号処理が施された後の画像信号が保存される記憶装置で、ICメモリカードや光磁気ディスクなどが使用される。ROM18は、プログラムなどの固定された情報が格納されているメモリである。   The display unit 16 is a liquid crystal display device, for example, and displays an image signal. The external storage device 17 is a storage device that stores an image signal that has been subjected to signal processing such as image compression in the camera signal processing unit 12, and an IC memory card, a magneto-optical disk, or the like is used. The ROM 18 is a memory in which fixed information such as a program is stored.

カメラ信号処理部12において画像圧縮などの信号処理が施された画像信号は、I/F15を介して外部記憶装置17に保存される。本実施の形態では、外部記憶部17であるICメモリカードや光磁気ディスクなどに画像信号を保存しているが、モデムカードやISDNカードを利用して、ネットワークを経由して画像信号を遠隔地の記録媒体に直接送信してもよい。また、外部記憶装置17に記録された圧縮された画像信号の読み出しは、カメラ信号処理部12がI/F15を介して外部記憶装置17から画像信号を取得し、画像信号に画像伸張を施すことにより行われる。   An image signal subjected to signal processing such as image compression in the camera signal processing unit 12 is stored in the external storage device 17 via the I / F 15. In the present embodiment, the image signal is stored in an IC memory card or magneto-optical disk as the external storage unit 17, but the image signal is transmitted to a remote location via a network using a modem card or ISDN card. It may be transmitted directly to the recording medium. In addition, when the compressed image signal recorded in the external storage device 17 is read, the camera signal processing unit 12 acquires the image signal from the external storage device 17 via the I / F 15 and performs image expansion on the image signal. Is done.

また、外部記憶装置17およびフレームメモリ14から読み出された画像信号の表示は、カメラ信号処理部12において画像信号に対してD/A変換や増幅などの信号処理を施した後、I/F15を介して表示部16に送信することによって行われる。   The image signal read from the external storage device 17 and the frame memory 14 is displayed on the I / F 15 after the camera signal processing unit 12 performs signal processing such as D / A conversion and amplification on the image signal. Is transmitted to the display unit 16 via

つづいて、本実施の形態にかかるあおり補正プログラムの動作について、図を用いて説明する。図2は、本実施の形態のあおり補正プログラムにかかる機能ブロック図である。あおり補正プログラムは、ROM18に記憶されており、カメラ信号処理部12で実行される。あおり補正プログラムは、図2に示すとおり、画像を入力として入力画像から四辺形を抽出する四辺形抽出部25と、四辺形抽出部25により抽出された四辺形を基に画像のトリミングを行うトリミング部26と、四辺形抽出部25により抽出された四辺形の形状から射影変換行列を算出し、画像に対して射影変換を施す射影変換処理部27とで構成される。   Next, the operation of the tilt correction program according to the present embodiment will be described with reference to the drawings. FIG. 2 is a functional block diagram according to the tilt correction program of the present embodiment. The tilt correction program is stored in the ROM 18 and is executed by the camera signal processing unit 12. As shown in FIG. 2, the tilt correction program includes a quadrilateral extraction unit 25 that extracts a quadrilateral from an input image as an input, and trimming that performs image trimming based on the quadrilateral extracted by the quadrilateral extraction unit 25 And a projective transformation processing unit 27 that calculates a projective transformation matrix from the quadrilateral shape extracted by the quadrilateral extraction unit 25 and performs projective transformation on the image.

なお、本実施の形態では、マーカとして使用する形状の代表例として四辺形を画像から抽出しているが、マーカとして使用する形状は、これに限定されるものではない。マーカ自体の形状が既知であり、マーカの実際の形状と撮影された画像中のマーカの形状とに基づいて、あおり補正角を算出することができればよい。なお、あおり補正角の算出を簡単にする観点からは、実施の形態のような四辺形や、丸などの単純な形状であることが好ましい。四辺形抽出部25を、例えば「特開平3−94383号公報」で開示されているような技術を用いた形状抽出部とし、マーカの形状をあらかじめ撮像装置内の形状抽出部に登録しておくことにより、四辺形以外の任意の形状に関しても対応することができる。   In this embodiment, a quadrilateral is extracted from an image as a representative example of a shape used as a marker, but the shape used as a marker is not limited to this. It is only necessary that the shape of the marker itself is known and the tilt correction angle can be calculated based on the actual shape of the marker and the shape of the marker in the captured image. From the viewpoint of simplifying the calculation of the tilt correction angle, a simple shape such as a quadrangle as in the embodiment or a circle is preferable. The quadrilateral extraction unit 25 is a shape extraction unit using a technique disclosed in, for example, “JP-A-3-94383”, and the shape of the marker is registered in advance in the shape extraction unit in the imaging apparatus. Thus, it is possible to cope with any shape other than the quadrilateral.

図3に、本実施の形態にかかるあおり補正処理のフローチャートを示す。図3に基づいて、あおり補正処理を説明する。まず、撮像部11により撮影された画像が、外部記憶装置17に入力される(ステップS11)。次に、撮影された画像に対して、四辺形抽出部25が、マーカとして用いるための四辺形の抽出を行う(ステップS12)。四辺形抽出部25の四辺形抽出処理については、高速化の工夫がされた処理であることが望ましいが、一般的なハフ変換を用いた抽出方法でもよい。なお、四辺形抽出部25の四辺形抽出処理において四辺形が複数抽出される可能性もある。その際は、そのなかからひとつを選択する。選択方法としては、たとえば、四辺形に対して評価値を設定しておき、最も評価値の高いものを選ぶ方法、抽出された複数の四辺形を表示して撮影者が1つの四辺形を選択できる方法などがある。評価値は、たとえば、四辺形の大きさやコントラストの強さなどを考慮して決定する。   FIG. 3 shows a flowchart of the tilt correction process according to the present embodiment. The tilt correction process will be described with reference to FIG. First, an image taken by the imaging unit 11 is input to the external storage device 17 (step S11). Next, the quadrilateral extraction unit 25 extracts a quadrilateral for use as a marker from the photographed image (step S12). The quadrilateral extraction process of the quadrilateral extraction unit 25 is preferably a process in which high speed is devised, but an extraction method using a general Hough transform may be used. There is a possibility that a plurality of quadrilaterals are extracted in the quadrilateral extraction process of the quadrilateral extraction unit 25. In that case, select one of them. As a selection method, for example, an evaluation value is set for a quadrilateral and the one having the highest evaluation value is selected. A plurality of extracted quadrilaterals are displayed and the photographer selects one quadrilateral. There are methods that can be used. The evaluation value is determined in consideration of, for example, the size of the quadrilateral and the strength of contrast.

図4は、被写体101の近隣に、四辺形抽出部25にて容易に抽出できるような四辺形のマーカ102を配置して撮影した画像の例である。この図に示す画像100が撮影された場合は、マーカ102がステップS12で抽出される。   FIG. 4 is an example of an image captured by placing a quadrangular marker 102 that can be easily extracted by the quadrilateral extraction unit 25 in the vicinity of the subject 101. When the image 100 shown in this figure is taken, the marker 102 is extracted in step S12.

次に、トリミング部26が、ステップS12で抽出された四辺形(マーカ)が含まれないようにトリミングを行う(ステップS13)。図5は、図4で示した画像100のトリミング領域を説明する図である。トリミング部26は、まず、ステップS12で得られた四辺形(図4の例ではマーカ102)を含む矩形領域(図5の例では非トリミング領域104)を除いたトリミング領域を求め、その後、画像100から非トリミング領域を除いた領域をトリミング領域(図5の例では、トリミング領域103)として特定する。そして、このトリミング領域に対してトリミングを行う。   Next, the trimming unit 26 performs trimming so as not to include the quadrilateral (marker) extracted in step S12 (step S13). FIG. 5 is a diagram for explaining a trimming region of the image 100 shown in FIG. The trimming unit 26 first obtains a trimming area excluding the rectangular area (the non-trimming area 104 in the example of FIG. 5) including the quadrilateral (the marker 102 in the example of FIG. 4) obtained in step S12, and then the image An area excluding the non-trimming area from 100 is specified as a trimming area (trimming area 103 in the example of FIG. 5). Then, trimming is performed on this trimming region.

次に、射影変換処理部27が、ステップS12で抽出された四辺形(マーカ)に基づいて、あおり補正のための射影変換行列を算出する(ステップS14)。そして、トリミング部26で得られたトリミング領域27に対して、この射影変換行列を用いて射影変換を施し、変換された画像を外部記憶装置17に保存する。   Next, the projective transformation processing unit 27 calculates a projective transformation matrix for tilt correction based on the quadrilateral (marker) extracted in step S12 (step S14). The trimming area 27 obtained by the trimming unit 26 is subjected to projective transformation using this projective transformation matrix, and the transformed image is stored in the external storage device 17.

なお、本実施の形態では、トリミング部26にて、トリミング領域を算出した後に、射影変換処理部27により射影変換を行ったが、射影変換処理部27により射影変換を行って得た射影変換画像に対して、マーカである四辺形を含む矩形領域以外の部分をトリミングし、外部記憶装置17に保存してもよい。   In this embodiment, after the trimming unit 26 calculates the trimming area, the projective transformation processing unit 27 performs the projective transformation. However, the projective transformation image obtained by performing the projective transformation by the projective transformation processing unit 27 is used. On the other hand, a portion other than the rectangular area including the quadrilateral that is the marker may be trimmed and stored in the external storage device 17.

また、本実施の形態では、マーカを撮像部11の撮像領域にある任意の物体のなかから選択したが、撮像部11とは別に、撮像部11と同時に撮像を行う偏光フィルタを保持した撮像部を備えることとし、透明な偏光板でできた物体などを、マーカとして利用することもできる。この場合、マーカは偏光フィルタを保持した撮像部の撮像画像のみに含まれ、偏光フィルタのない撮像部11の撮像画像には含まれないため、トリミングは不要となる。   In the present embodiment, the marker is selected from any object in the imaging area of the imaging unit 11. However, in addition to the imaging unit 11, the imaging unit holding a polarization filter that performs imaging simultaneously with the imaging unit 11. And an object made of a transparent polarizing plate can be used as a marker. In this case, since the marker is included only in the captured image of the imaging unit holding the polarization filter and is not included in the captured image of the imaging unit 11 without the polarization filter, trimming is not necessary.

以上のように、本実施の形態によれば、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施したので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施できるという効果を奏する。また、マーカ等を含む部分を除いた領域を保存するようにしたので、補正後保存画像に不要なマーカが含まれないという効果を奏する。   As described above, according to the present embodiment, since the subject is corrected by automatically extracting a quadrilateral other than the subject as a marker, the subject having an arbitrary shape can be used even when the contrast between the subject and the background is low. As a result, the tilt correction can be performed without requiring a complicated operation of the photographer. In addition, since the region excluding the portion including the marker or the like is stored, there is an effect that unnecessary markers are not included in the corrected stored image.

(第2の実施の形態)
図6は、本発明の第2の実施の形態にかかる撮像装置1aの構成例を示すブロック図である。実施の形態1と同様の部分については、図1と同一の符号を付して説明を省略する。本実施の形態では、フレームメモリ14,外部記憶装置17,ROM18の代わりに、それぞれフレームメモリ14a,外部記憶装置17a,ROM18aを備える。
(Second Embodiment)
FIG. 6 is a block diagram illustrating a configuration example of an imaging apparatus 1a according to the second embodiment of the present invention. The same parts as those in the first embodiment are denoted by the same reference numerals as those in FIG. In this embodiment, instead of the frame memory 14, the external storage device 17, and the ROM 18, a frame memory 14a, an external storage device 17a, and a ROM 18a are provided.

図7は本実施の形態の撮像装置1aの機器構成例の背面図である。撮像装置1の背面には、表示部30、ズームインアウトボタン31、シャッターボタン32、ファインダー33、上ボタン34、左ボタン35、下ボタン36、右ボタン37、決定ボタン38が設けられている。表示部30は、撮影時に画角確認用の電子ファインダーとして使用できるとともに、撮影した画像のプレビュー画やメモリカードなどから読み出した再生画像などを表示可能である。また、撮影者は、表示部30に表示されたメニューや設定項目などを見ながら、上ボタン34、左ボタン35、下ボタン36、右ボタン37、決定ボタン38を操作することにより、メニューの選択や各メニューにおける各種項目の設定などもできる。ズームインアウトボタン31は、たとえば、左右方向に操作可能であり、左側に操作することで光学ズーム機能がズームイン方向へ、右方向に操作することで、光学ズーム機能がズームアウト方向に駆動される。   FIG. 7 is a rear view of a configuration example of the imaging apparatus 1a according to the present embodiment. On the rear surface of the imaging apparatus 1, a display unit 30, a zoom-in / out button 31, a shutter button 32, a viewfinder 33, an upper button 34, a left button 35, a lower button 36, a right button 37, and a decision button 38 are provided. The display unit 30 can be used as an electronic viewfinder for checking the angle of view at the time of shooting, and can display a preview image of a shot image, a reproduced image read from a memory card, and the like. The photographer operates the up button 34, the left button 35, the down button 36, the right button 37, and the enter button 38 while viewing the menu and setting items displayed on the display unit 30 to select a menu. You can also set various items in each menu. The zoom-in / out button 31 can be operated, for example, in the left / right direction, and the optical zoom function is driven in the zoom-out direction by operating the optical zoom function in the zoom-in direction by operating the left side.

撮影者は、ファインダー33または表示部30に映し出されるリアルタイム画像(スルー画)を確認しながら、ズームインアウトボタン31を操作することにより画角を決定し、シャッターボタン32を押下して撮影を行う。   The photographer determines the angle of view by operating the zoom-in / out button 31 while confirming the real-time image (through image) displayed on the finder 33 or the display unit 30 and depresses the shutter button 32 to shoot.

つづいて、本実施の形態にかかるあおり補正プログラムの動作について、図を用いて説明する。図8は、本実施の形態の本実施の形態のあおり補正プログラムにかかる機能ブロック図である。あおり補正プログラムは、ROM18aに格納されカメラ信号処理部12で実行されるものであり、四辺形抽出部25a,トリミング部26a,射影変換処理部27a,で構成される。また、あおり補正プログラムは、フレームメモリ14aのトリミング領域記憶部28と外部記憶装置17aの処理画像記憶部29を参照する。   Next, the operation of the tilt correction program according to the present embodiment will be described with reference to the drawings. FIG. 8 is a functional block diagram according to the tilt correction program of the present embodiment. The tilt correction program is stored in the ROM 18a and executed by the camera signal processing unit 12, and includes a quadrilateral extraction unit 25a, a trimming unit 26a, and a projective transformation processing unit 27a. Further, the tilt correction program refers to the trimming area storage unit 28 of the frame memory 14a and the processed image storage unit 29 of the external storage device 17a.

四辺形抽出部25aは入力画像から四辺形を抽出し、トリミング部26aは撮影者がデジタルズームにより選択したトリミング領域をフレームメモリ14aのトリミング領域記憶部28に格納し、射影変換処理部27aは四辺形抽出部25aにより抽出された四辺形の形状から射影変換行列を算出する。トリミング領域記憶部28は、前述のとおり撮影者により選択されたトリミング領域を保存するためのメモリである。また、処理画像記憶部29は、射影変換処理部27aにより処理された画像を記憶する。   The quadrilateral extraction unit 25a extracts the quadrilateral from the input image, the trimming unit 26a stores the trimming region selected by the photographer by digital zoom in the trimming region storage unit 28 of the frame memory 14a, and the projective transformation processing unit 27a is the quadrilateral. A projective transformation matrix is calculated from the quadrilateral shape extracted by the extraction unit 25a. The trimming area storage unit 28 is a memory for storing the trimming area selected by the photographer as described above. The processed image storage unit 29 stores the image processed by the projective transformation processing unit 27a.

図9は、被写体105の近隣に、四辺形抽出部25aにて容易に抽出できる四辺形のマーカ106を配置して撮影した画像の例である。   FIG. 9 is an example of an image captured by placing a quadrangular marker 106 that can be easily extracted by the quadrilateral extraction unit 25 a in the vicinity of the subject 105.

図10に、本実施の形態にかかるあおり補正処理のフローチャートを示す。図8,図10を用いて、図9の画像を例に本実施の形態のあおり補正処理手順について説明する。   FIG. 10 is a flowchart of the tilt correction process according to the present embodiment. The tilt correction processing procedure of the present embodiment will be described with reference to FIGS. 8 and 10 taking the image of FIG. 9 as an example.

まず、撮影者は、あおり補正を所望する被写体105と、マーカ106を机の上に置き、表示部30に映し出されるリアルタイム画像を見ながら、被写体105とマーカ106が撮影領域に入るように、必要に応じてズームインアウトボタン31などを操作して撮影範囲を決定する(ステップS21)。なお、マーカ106は、四辺形抽出部25aによって抽出されるのに適切な四辺形を指すが、四辺形抽出部25aにより抽出される四辺形であれば、マーカ106をわざわざ用意する必要はなく、被写体の周りに存在する適当な四辺形を利用してもよい。   First, the photographer needs to place the subject 105 for which tilt correction is desired and the marker 106 on the desk and view the real-time image displayed on the display unit 30 so that the subject 105 and the marker 106 enter the photographing region. Accordingly, the zoom-in / out button 31 is operated to determine the photographing range (step S21). The marker 106 indicates an appropriate quadrilateral that can be extracted by the quadrilateral extraction unit 25a. However, if the quadrilateral is extracted by the quadrilateral extraction unit 25a, there is no need to prepare the marker 106. An appropriate quadrilateral existing around the subject may be used.

次に、撮影者はデジタルズームを設定する(ステップS22)。デジタルズームの操作は、たとえば、デジタルズームインの動作が割り振られている左ボタン35、デジタルズームアウトの動作が割り振られている右ボタン37を押下することにより行う。このとき、表示部30には、たとえば、図11のように、撮影対象の全体領域のうちデジタルズーム領域107外の輝度値を、撮影画像の輝度値よりも一定値低くして表示することによりデジタルズーム領域107を撮影者が認識できるようにする。なお、本実施の形態では、デジタルズーム領域107外の輝度値を低くすることにより、デジタルズーム領域107を識別するが、デジタルズーム領域107が撮影者に認識できれば、他の表示方法でもよい。撮影者は、この表示画像をみながら、デジタルズームの領域を決定ボタンの操作などにより決定する。   Next, the photographer sets digital zoom (step S22). The digital zoom operation is performed, for example, by pressing a left button 35 to which a digital zoom-in operation is assigned and a right button 37 to which a digital zoom-out operation is assigned. At this time, for example, as shown in FIG. 11, the display unit 30 displays the brightness value outside the digital zoom area 107 in the entire area to be imaged by lowering the brightness value of the captured image by a certain value. The photographer can recognize the area 107. In this embodiment, the digital zoom area 107 is identified by lowering the luminance value outside the digital zoom area 107, but other display methods may be used as long as the digital zoom area 107 can be recognized by the photographer. The photographer determines the digital zoom area by operating the determination button or the like while viewing the displayed image.

次に、撮影者はシャッターボタン32を押下することにより撮影を行う(ステップS23)。このとき、シャッターボタン32の押下を受けて、トリミング部26aは、選択されたデジタルズーム領域の画像をトリミング領域画像としてトリミング領域記憶部28に保存する。続いて、撮影された全体画像に対して四辺形抽出部21aにより、四辺形領域抽出が行われる(ステップS24)。四辺形抽出部21aは、実施の形態1の四辺形抽出部と同様の機能を有し、マーカとして使用する1つの四辺形を決定する。なお、本実施の形態では撮影された全体画像に対して、四辺形抽出部21aにより四辺形抽出を行うが、全体画像からトリミング領域記憶部28に記憶されたトリミング領域を除いた領域に対して四辺形抽出を行ってもよい。図9の画像の例では、四辺形抽出部21aによりマーカ106がマーカとして用いる四辺形として抽出、決定される。   Next, the photographer takes a picture by pressing the shutter button 32 (step S23). At this time, in response to pressing of the shutter button 32, the trimming unit 26a stores the selected digital zoom region image in the trimming region storage unit 28 as a trimming region image. Subsequently, quadrilateral extraction is performed on the entire captured image by the quadrilateral extraction unit 21a (step S24). The quadrilateral extraction unit 21a has the same function as the quadrilateral extraction unit of the first embodiment, and determines one quadrilateral to be used as a marker. In the present embodiment, the quadrilateral extraction unit 21a performs quadrilateral extraction on the entire captured image. However, the entire image is excluded from the trimming region stored in the trimming region storage unit 28. Quadrilateral extraction may be performed. In the example of the image of FIG. 9, the marker 106 is extracted and determined as a quadrilateral used as a marker by the quadrilateral extraction unit 21a.

次に、射影変換処理部27aは、四辺形抽出部21aで抽出・選択された四辺形(図9の例ではマーカ106)に基づいて、あおり補正のための射影変換行列を算出する。次に、算出された射影変換行列を用いて、トリミング領域記憶部28に保存されている画像を読み出し射影変換を施す(ステップS25)。そして処理後の画像を処理画像記憶部29に保存する。図11に示した撮影例において、射影変換処理後に保存される画像の例を図12に示す。   Next, the projective transformation processing unit 27a calculates a projective transformation matrix for tilt correction based on the quadrilateral (marker 106 in the example of FIG. 9) extracted and selected by the quadrilateral extracting unit 21a. Next, using the calculated projective transformation matrix, the image stored in the trimming area storage unit 28 is read and subjected to projective transformation (step S25). Then, the processed image is stored in the processed image storage unit 29. FIG. 12 shows an example of an image stored after the projective transformation process in the photographing example shown in FIG.

以上のように、本実施の形態によれば、撮影者がデジタルズームを用いて被写体の領域を選択し、被写体以外の四辺形をマーカとして自動抽出して被写体のあおり補正を実施するようにしたので、被写体と背景とのコントラストが低い場合についても任意の形状の被写体について、撮影者の煩雑な操作を必要とせずにあおり補正が実施でき、かつ、撮影者の保存した領域のみが保存できるという効果を奏する。   As described above, according to the present embodiment, the photographer selects the region of the subject using the digital zoom, and automatically extracts the quadrilateral other than the subject as a marker to perform the tilt correction of the subject. Even when the contrast between the subject and the background is low, the subject can be corrected for a subject having an arbitrary shape without requiring a complicated operation by the photographer, and only the area saved by the photographer can be saved. Play.

なお、第2の実施の形態にかかる撮像装置1aのこれ以外の構成および処理は、第1の実施の形態にかかる撮像装置1aの構成および処理と同様とする。   The other configuration and processing of the imaging device 1a according to the second embodiment are the same as the configuration and processing of the imaging device 1a according to the first embodiment.

(第3の実施の形態)
図13は、本発明の第3の実施の形態にかかる撮像装置1bの構成例を示すブロック図である。実施の形態1と同様の部分については、図1と同一の符号を付して説明を省略する。本実施の形態では、外部記憶装置17,ROM18の代わりに、それぞれ外部記憶装置17b,ROM18bを備える。
(Third embodiment)
FIG. 13 is a block diagram illustrating a configuration example of an imaging apparatus 1b according to the third embodiment of the present invention. The same parts as those in the first embodiment are denoted by the same reference numerals as those in FIG. In this embodiment, an external storage device 17b and a ROM 18b are provided instead of the external storage device 17 and the ROM 18, respectively.

つづいて、本実施の形態にかかるあおり補正プログラムの動作について、図を用いて説明する。図14は、本実施の形態の本実施の形態のあおり補正プログラムにかかる機能ブロック図である。あおり補正プログラムは、ROM18bに格納されカメラ信号処理部12で実行される。また、射影変換処理部26b,トリミング領域算出部27bで構成される。   Next, the operation of the tilt correction program according to the present embodiment will be described with reference to the drawings. FIG. 14 is a functional block diagram according to the tilt correction program of the present embodiment. The tilt correction program is stored in the ROM 18b and executed by the camera signal processing unit 12. The projection conversion processing unit 26b and the trimming region calculation unit 27b are also included.

四辺形抽出部21bは入力画像から四辺形を抽出し、射影変換処理部26bは四辺形抽出部21bにより抽出された四辺形の形状から射影変換行列を算出し、画像に対して射影変換を施し、トリミング領域算出部27bは入力画像からトリミング領域を算出する。処理画像記憶部29aは、射影変換処理部26bにより処理された画像を記憶するための外部記憶装置17bの領域である。   The quadrilateral extraction unit 21b extracts a quadrilateral from the input image, and the projective transformation processing unit 26b calculates a projective transformation matrix from the quadrilateral shape extracted by the quadrilateral extraction unit 21b, and performs the projective transformation on the image. The trimming area calculation unit 27b calculates a trimming area from the input image. The processed image storage unit 29a is an area of the external storage device 17b for storing the image processed by the projective transformation processing unit 26b.

図15に、本実施の形態にかかるあおり補正処理のフローチャートを示す。また、本実施の形態の機器構成例は図7に示した実施の形態2と同様である。以下、図7,図14,図15を用いて、本実施の形態のあおり補正処理手順について説明する。   FIG. 15 shows a flowchart of the tilt correction process according to the present embodiment. Further, the device configuration example of the present embodiment is the same as that of the second embodiment shown in FIG. Hereinafter, the tilt correction processing procedure of the present embodiment will be described with reference to FIGS. 7, 14, and 15.

まず、撮影者は撮影を希望する撮影範囲を、表示部30に映し出されるリアルタイム画像を見ながら、必要に応じてズームインアウトボタン31などを利用して、希望する撮影範囲を決定し表示させる(ステップS31)。そのとき表示部30に表示される画像例を図16に示す。図16の例では、被写体108は楕円形をしたメモ用紙であり、そのメモ用紙を、あおり角を持つ位置から撮影するときの画像である。   First, the photographer determines and displays the desired shooting range by using the zoom-in / out button 31 and the like as necessary while viewing the real-time image displayed on the display unit 30 while viewing the shooting range desired to be shot (step S31). S31). An example of an image displayed on the display unit 30 at that time is shown in FIG. In the example of FIG. 16, the subject 108 is an elliptical memo paper, and is an image when the memo paper is photographed from a position having a tilt angle.

撮影者がシャッターボタン32を半押しすると(ステップS32)、撮影範囲(表示部30に表示されている範囲)の画像(リアルタイム画像)に対して四辺形抽出部21bが四辺形抽出処理を行う(ステップS33)。   When the photographer presses the shutter button 32 halfway (step S32), the quadrilateral extraction unit 21b performs quadrilateral extraction processing on the image (real-time image) in the photographing range (the range displayed on the display unit 30) ( Step S33).

四辺形抽出部21bの処理により四辺形が一つも得られなかった場合は、自動的に光学ズームを一段階ズームアウトする(ステップS34)。そして、表示部30に、たとえば、図17のように、“補正処理できません。シャッターボタンを再度押してください”という文字を数秒間、リアルタイム画像に重畳表示する。そして、ステップS31に戻り撮影者は再度、シャッターボタン32を半押しする(ステップS32)。そして、再び、ステップS33のリアルタイム画像に対して四辺形抽出部21bが四辺形抽出処理を行う(ステップS33)。その結果、四辺形抽出部21bの処理により四辺形が得らない場合には、再度、ステップS34、ステップS31、ステップS32、ステップS33の処理を繰り返す。以降、ステップS33の処理で四辺形が得られるまで、S34、ステップS31、ステップS32、ステップS33を繰り返す。   If no quadrilateral is obtained by the processing of the quadrilateral extraction unit 21b, the optical zoom is automatically zoomed out by one step (step S34). Then, on the display unit 30, for example, as shown in FIG. 17, the characters “cannot be corrected. Please press the shutter button again” are superimposed on the real-time image for several seconds. Then, returning to step S31, the photographer again presses the shutter button 32 halfway (step S32). Then, again, the quadrilateral extraction unit 21b performs quadrilateral extraction processing on the real-time image in step S33 (step S33). As a result, when the quadrilateral is not obtained by the process of the quadrilateral extraction unit 21b, the processes of step S34, step S31, step S32, and step S33 are repeated again. Thereafter, S34, S31, S32, and S33 are repeated until a quadrilateral is obtained in the process of step S33.

四辺形抽出部21bの処理で四辺形が得られた場合のリアルタイム画像例を図18に示す。図18は、図17の撮影範囲例から、自動ズームアウト(ステップS34)により、周辺にある四辺形が撮影範囲に含まれるようになった例である。   FIG. 18 shows an example of a real-time image when a quadrilateral is obtained by the processing of the quadrilateral extraction unit 21b. FIG. 18 is an example in which the surrounding quadrilateral is included in the shooting range by the automatic zoom-out (step S34) from the shooting range example of FIG.

ステップS33において、四辺形抽出部21bにより四辺形(図18の例では四辺形109)が抽出された場合には、図19に示すように表示部30に“シャッターボタンを押してください”の文字が重畳される。そして、撮影者はシャッターボタン32を半押し状態から、さらに押下しシャッターボタン32を押し切る(ステップS35)。   In step S33, when a quadrilateral (a quadrilateral 109 in the example of FIG. 18) is extracted by the quadrilateral extraction unit 21b, the text “Please press the shutter button” is displayed on the display unit 30 as shown in FIG. Superimposed. Then, the photographer further depresses the shutter button 32 from the half-pressed state, and pushes down the shutter button 32 (step S35).

次に、四辺形抽出部21bは撮影画像に対して四辺形抽出を行う(ステップS36)。四辺形抽出部21bは、実施の形態1の四辺形抽出部と同様の機能を有し、マーカとして使用する1つの四辺形を抽出する。図18の例では四辺形109が抽出される。   Next, the quadrilateral extraction unit 21b performs quadrilateral extraction on the captured image (step S36). The quadrilateral extraction unit 21b has the same function as the quadrilateral extraction unit of the first embodiment, and extracts one quadrilateral used as a marker. In the example of FIG. 18, a quadrilateral 109 is extracted.

次に、四辺形抽出部21bで抽出した四辺形(図18の例では四辺形109)を用いて、トリミング領域算出部27bが、画像のトリミングを行う(ステップS37)。まず、トリミング領域算出部27bは、全体撮像領域から、四辺形を含む矩形領域を除いた領域を、初期トリミング領域110として設定する(図20)。   Next, using the quadrilateral extracted by the quadrilateral extraction unit 21b (the quadrilateral 109 in the example of FIG. 18), the trimming region calculation unit 27b performs image trimming (step S37). First, the trimming area calculation unit 27b sets, as the initial trimming area 110, an area obtained by removing a rectangular area including a quadrilateral from the entire imaging area (FIG. 20).

次に、射影変換処理部26bとトリミング領域算出部27bは、四辺形抽出部21bで抽出した四辺形に基づいて、射影変換を次のように行う(ステップS38)。本実施の形態では、あおり補正後の保存される画像が矩形となるように射影変換を行う。   Next, the projective transformation processing unit 26b and the trimming area calculating unit 27b perform the projective transformation as follows based on the quadrilateral extracted by the quadrilateral extracting unit 21b (step S38). In the present embodiment, projective transformation is performed so that the saved image after tilt correction is rectangular.

まず、射影変換処理部26bは、前記四辺形に基づいてあおり補正のための変換行列200を算出する。次に、トリミング領域算出部27bは、初期トリミング領域110を、射影変換行列200を用いて射影変換した変換後初期トリミング領域111を算出する(図21)。そして、変換後初期トリミング領域111に内接する矩形である変換後内接トリミング領域112を算出する。次に、射影変換行列200の逆行列である射影変換行列201を求める。次に、変換後内接トリミング領域112を、射影変換行列201を用いて逆変換した領域を算出し、算出した領域を内接トリミング領域113とする(図22)。そして、射影変換処理部26bは、算出された内接トリミング領域113に対応する入力画像に対して射影変換を施す。最後に、射影変換処理部26bは、射影変換した画像を処理画像記憶部24aに保存する。   First, the projective transformation processing unit 26b calculates a transformation matrix 200 for tilt correction based on the quadrilateral. Next, the trimming area calculation unit 27b calculates a converted initial trimming area 111 obtained by performing projective transformation on the initial trimming area 110 using the projective transformation matrix 200 (FIG. 21). Then, a converted inscribed trimming region 112 that is a rectangle inscribed in the converted initial trimming region 111 is calculated. Next, a projective transformation matrix 201 that is an inverse matrix of the projective transformation matrix 200 is obtained. Next, an area obtained by inversely transforming the converted inscribed trimming area 112 using the projective transformation matrix 201 is calculated, and the calculated area is set as an inscribed trimming area 113 (FIG. 22). Then, the projective transformation processing unit 26b performs projective transformation on the input image corresponding to the calculated inscribed trimming region 113. Finally, the projective transformation processing unit 26b stores the projective transformed image in the processed image storage unit 24a.

なお、本実施の形態では、トリミング領域算出部27bが、内接トリミング領域113を作成するようにしたが、図23のように、変換後内接トリミング領域112のかわりに変換後外接トリミング領域115を求め、射影変換行列201により外接トリミング領域115を作成してもよい。また、実施の形態1と同様に初期トリミング領域110を直接射影変換してもよい。   In this embodiment, the trimming area calculation unit 27b creates the inscribed trimming area 113. However, the converted circumscribed trimming area 115 is used instead of the converted inscribed trimming area 112 as shown in FIG. The circumscribing trimming region 115 may be created by the projective transformation matrix 201. Further, the initial trimming area 110 may be directly projective transformed as in the first embodiment.

なお、本実施の形態では、撮影画像に対して四辺形抽出を行って射影変換行列を求めたが、ステップS33の四辺形抽出(シャッター半押しの状態)によって抽出された四辺形を用いて射影変換行列を求めるようにしてもよい。この方法の場合には、半押しの状態とシャッターと押し切った状態とで、あおり補正の条件が同じになるよう撮像位置を保つ必要がある。たとえば、撮像装置1bを三脚などに固定しておいて、四辺形抽出をするまでは撮影範囲にマーカを置いておき、その後マーカを取り除く動作を行うことで実現できる。この方法によれば、トリミングすることなく、不要なマーカを画像内から除去できる。   In the present embodiment, the quadrilateral extraction is performed on the captured image to obtain the projective transformation matrix, but the projection is performed using the quadrilateral extracted by the quadrilateral extraction (shutter half-pressed state) in step S33. A conversion matrix may be obtained. In the case of this method, it is necessary to maintain the imaging position so that the tilt correction conditions are the same between the half-pressed state and the shutter-released state. For example, it can be realized by fixing the imaging device 1b to a tripod or the like, placing a marker in the imaging range until extracting the quadrilateral, and then removing the marker. According to this method, unnecessary markers can be removed from the image without trimming.

以上のように、本実施の形態によれば、撮影者がデジタルズームを用いて撮影領域を選択し、マーカとなる四辺形を含まない場合にはズームアウト後に再選択するようにし、トリミング後にあおり補正を実施するようにしたので、煩雑な操作を必要とせずにあおり補正が実施でき、かつ、補正後保存画像に不要なマーカが含まれないという効果を奏する。   As described above, according to the present embodiment, a photographer selects a shooting area using digital zoom, and if a quadrangle serving as a marker is not included, it is selected again after zooming out. As a result, the correction can be performed without requiring a complicated operation, and an unnecessary marker is not included in the corrected stored image.

なお、第3の実施の形態にかかる撮像装置1bのこれ以外の構成および処理は、第1の実施の形態にかかる撮像装置1または第2の実施の形態の撮像装置1aの構成および処理と同様とする。   The other configuration and processing of the imaging device 1b according to the third embodiment are the same as the configuration and processing of the imaging device 1 according to the first embodiment or the imaging device 1a according to the second embodiment. And

(第4の実施の形態)
図24は、本発明の第4の実施の形態にかかる画像処理装置2の構成例を示すブロック図である。実施の形態1と同様の部分については、図1と同一の符号を付して説明を省略する。本実施の形態の画像処理装置2は、実施の形態1の撮像装置のうち撮像部を除いたものである。
(Fourth embodiment)
FIG. 24 is a block diagram illustrating a configuration example of the image processing device 2 according to the fourth embodiment of the present invention. The same parts as those in the first embodiment are denoted by the same reference numerals as those in FIG. The image processing apparatus 2 according to the present embodiment is obtained by removing the imaging unit from the imaging apparatus according to the first embodiment.

デジタルカメラなどで撮影されたあおり補正前の入力画像は、撮影後に外部記憶装置17に保存される。以降の処理は実施の形態1と同様である。   An input image that has been photographed with a digital camera or the like before tilt correction is stored in the external storage device 17 after photographing. The subsequent processing is the same as in the first embodiment.

なお、本実施の形態では、画像処理装置を専用のハードウェアとしているが、汎用コンピュータなどのハードウェア資源を利用して実現することも可能である。   In the present embodiment, the image processing apparatus is dedicated hardware, but it can also be realized using hardware resources such as a general-purpose computer.

以上のように、本実施の形態によれば、画像処理装置であおり補正を行うこととしたので、高速にあおり補正を実施することができるという効果を奏する。   As described above, according to the present embodiment, since the image processing apparatus performs correction, there is an effect that the correction can be performed at high speed.

本発明は、画像処理方法、撮像装置、画像処理装置およびプログラムに有用であり、特に入力画像にあおり補正を実施する画像処理方法、撮像装置、画像処理装置およびプログラムに有用である。   The present invention is useful for an image processing method, an imaging apparatus, an image processing apparatus, and a program, and is particularly useful for an image processing method, an imaging apparatus, an image processing apparatus, and a program that perform correction of tilt on an input image.

第1の実施の形態の撮像装置の機能構成例を示すブロック図である。It is a block diagram which shows the function structural example of the imaging device of 1st Embodiment. 第1の実施の形態のあおり補正プログラムにかかる機能構成例を示すブロック図である。It is a block diagram which shows the function structural example concerning the tilt correction program of 1st Embodiment. 第1の実施の形態のフローチャートである。It is a flowchart of a 1st embodiment. 被写体の横にマーカを配置して撮影した画像例を示す図である。It is a figure which shows the example of an image image | photographed by arrange | positioning a marker beside a to-be-photographed object. 第1の実施の形態のトリミング領域を説明する図である。It is a figure explaining the trimming area | region of 1st Embodiment. 第2の実施の形態の撮像装置の機能構成例を示すブロック図である。It is a block diagram which shows the function structural example of the imaging device of 2nd Embodiment. 第2の実施の形態の機器構成例の背面図である。It is a rear view of the example of apparatus composition of a 2nd embodiment. 第2の実施の形態のあおり補正プログラムにかかる機能構成例を示すブロック図である。It is a block diagram which shows the function structural example concerning the tilt correction program of 2nd Embodiment. 被写体の近傍にマーカをおいた撮影画像例を示す図である。It is a figure which shows the example of a picked-up image which put the marker in the vicinity of a to-be-photographed object. 第2の実施の形態のフローチャートである。It is a flowchart of a 2nd embodiment. 第2の実施のデジタルズーム領域の表示例を示す図である。It is a figure which shows the example of a display of the digital zoom area | region of 2nd implementation. 第2の実施の射影変換後の保存画像例を示す図である。It is a figure which shows the example of the preservation | save image after the projective transformation of 2nd implementation. 第3の実施の形態の撮像装置の機能構成例を示すブロック図である。It is a block diagram which shows the function structural example of the imaging device of 3rd Embodiment. 第3の実施の形態のあおり補正プログラムにかかる機能構成例を示すブロック図である。It is a block diagram which shows the function structural example concerning the tilt correction program of 3rd Embodiment. 第3の実施の形態のフローチャートである。It is a flowchart of a 3rd embodiment. マーカとなる四辺形を含まない撮影画像例を示す図である。It is a figure which shows the example of a picked-up image which does not contain the quadrilateral used as a marker. 第3の実施の形態の警告表示例を示す図である。It is a figure which shows the example of a warning display of 3rd Embodiment. マーカとなる四辺形を含むメッセージ画像例を示す図である。It is a figure which shows the example of a message image containing the quadrilateral used as a marker. 第3の実施の形態の表示例を示す図である。It is a figure which shows the example of a display of 3rd Embodiment. 第3の実施の初期トリミング領域を説明する図である。It is a figure explaining the initial trimming area | region of 3rd implementation. 初期トリミング領域の射影変換を説明する図である。It is a figure explaining the projective transformation of an initial trimming area. 変換後内接トリミング領域と内接トリミング領域を説明する図である。It is a figure explaining the inscribed trimming area | region and inscribed trimming area | region after conversion. 変換後外接トリミング領域と外接トリミング領域を説明する図である。It is a figure explaining the circumscribed trimming area | region and circumscribed trimming area | region after conversion. 第4の実施の形態の画像処理装置の機能構成例を示すブロック図である。It is a block diagram which shows the function structural example of the image processing apparatus of 4th Embodiment.

符号の説明Explanation of symbols

1,1a,1b 撮像装置
2 画像処理
11 撮像部
12 カメラ信号処理部
13 CPU
14 フレームメモリ
15 I/F
16 表示部
17 外部記憶装置
18 ROM
20 レンズ
21 絞り
22 シャッター
23 光電変換素子
24 前処理部
25,25a,25b 四辺形抽出部
26,26a トリミング部
26b トリミング領域算出部
27,27a 射影変換処理部
28 トリミング領域記憶部
29,29a 処理画像記憶部
30 表示部
31 ズームインアウトボタン
32 シャッターボタン
33 ファインダー
34 上ボタン
35 右ボタン
36 下ボタン
37 右ボタン
38 決定ボタン
100 画像
101,105,108 被写体
102,106 マーカ
103 トリミング領域
104 非トリミング領域
107 デジタルズーム領域
109 四辺形
110 初期トリミング領域
111 変換後初期トリミング領域
112 変換後内接トリミング領域
113 内接トリミング領域
114 変換後外接トリミング領域
115 外接トリミング領域
200,201 変換行列
1, 1a, 1b Imaging device 2 Image processing 11 Imaging unit 12 Camera signal processing unit 13 CPU
14 frame memory 15 I / F
16 Display unit 17 External storage device 18 ROM
20 Lens 21 Aperture 22 Shutter 23 Photoelectric conversion element 24 Preprocessing unit 25, 25a, 25b Quadrilateral extraction unit 26, 26a Trimming unit 26b Trimming area calculation unit 27, 27a Projection conversion processing unit 28 Trimming area storage unit 29, 29a Processed image Storage unit 30 Display unit 31 Zoom-in / out button 32 Shutter button 33 Viewfinder 34 Up button 35 Right button 36 Down button 37 Right button 38 Enter button 100 Image 101, 105, 108 Subject 102, 106 Marker 103 Trimming region 104 Non-trimming region 107 Digital zoom Area 109 quadrangle 110 initial trimming area 111 initial trimming area after conversion 112 inscribed trimming area after conversion 113 inscribed trimming area 114 circumscribed trimming area after conversion 115 circumscribing the trimming area 200, 201 transformation matrix

Claims (13)

画像処理装置により実行され、あおり補正を行う画像処理方法であって、
前記画像処理装置の基準図形抽出手段が、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出ステップと、
前記画像処理装置のトリミング手段が、前記画像データを、前記基準図形を含まない領域にトリミングするトリミングステップと、
前記画像処理装置の変換行列算出手段が、前記基準図形に基づき変換行列を算出する変換行列算出ステップと、
前記画像処理装置の射影変換手段が、前記画像データを、前記変換行列を用いて射影変換する射影変換ステップと、を含み、
前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とする画像処理方法。
An image processing method that is executed by an image processing apparatus and performs tilt correction,
A reference graphic extracting step for extracting the reference graphic from image data including a subject to be corrected for tilt and a reference graphic used for tilt correction;
A trimming step in which the trimming means of the image processing apparatus trims the image data into an area not including the reference graphic;
A conversion matrix calculating step in which the conversion matrix calculating means of the image processing apparatus calculates a conversion matrix based on the reference graphic;
Projective transformation means of the image processing apparatus, the image data, seen including a projective conversion step of projective transformation, a using the transformation matrix,
The image processing method according to claim 1, wherein the reference graphic extracting means evaluates the size or contrast strength of a graphic included in the image data and selects a graphic having the highest evaluation value as the reference graphic .
前記射影変換ステップにおいては、トリミングされた画像を、前記射影変換することを特徴とする請求項1に記載の画像処理方法。   2. The image processing method according to claim 1, wherein in the projective transformation step, the trimmed image is subjected to the projective transformation. 前記トリミングステップにおいては、前記射影変換された画像データを、前記基準図形を含まない領域にトリミングすることを特徴とする請求項1に記載の画像処理方法。   2. The image processing method according to claim 1, wherein in the trimming step, the image data subjected to the projective transformation is trimmed into an area not including the reference graphic. 前記トリミングする領域を、画像全体領域から前記基準図形を含む矩形領域を除いた領域としたことを特徴とする請求項1または2に記載の画像処理方法。   3. The image processing method according to claim 1, wherein the area to be trimmed is an area obtained by removing a rectangular area including the reference graphic from an entire image area. 画像処理装置により実行され、あおり補正を行う画像処理方法であって、
前記画像処理装置の基準図形抽出手段が、あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出ステップと、
前記画像処理装置のトリミング手段が、前記画像データを、前記基準図形を含まない領域にトリミングするトリミングステップと、
前記画像処理装置の変換行列算出手段が、前記基準図形に基づき変換行列を算出する変換行列算出ステップと、
前記画像処理装置の射影変換手段が、前記画像データを、前記変換行列を用いて射影変換する射影変換ステップと、を含み、
前記トリミング手段は、ユーザによるデジタルズームの操作に従って前記画像データをトリミングし、
前記基準図形抽出手段は、前記デジタルズームによってトリミング領域から除かれる領域から図形を抽出して前記基準図形に選ぶことを特徴とする画像処理方法。
An image processing method that is executed by an image processing apparatus and performs tilt correction,
A reference graphic extracting step for extracting the reference graphic from image data including a subject to be corrected for tilt and a reference graphic used for tilt correction;
A trimming step in which the trimming means of the image processing apparatus trims the image data into an area not including the reference graphic;
A conversion matrix calculating step in which the conversion matrix calculating means of the image processing apparatus calculates a conversion matrix based on the reference graphic;
A projective transforming step of projecting transforming the image data using the transform matrix, the projective transforming means of the image processing device,
The trimming means trims the image data according to a digital zoom operation by a user,
The image processing method according to claim 1, wherein the reference graphic extraction means extracts a graphic from an area removed from the trimming area by the digital zoom and selects it as the reference graphic .
あおり補正を行う撮像装置であって、
あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む撮影対象領域を撮像する撮像手段と、
前記撮像手段により撮像された画像データから前記基準図形を抽出する基準図形抽出手段と、
前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段と、
前記基準図形に基づき変換行列を算出する変換行列算出手段と、
前記画像データを、前記変換行列を用いて射影変換する射影変換手段と、を備え
前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とする撮像装置。
An imaging device that performs tilt correction,
Imaging means for imaging a shooting target region including a subject to be corrected for tilt and a reference graphic used for tilt correction;
Reference graphic extraction means for extracting the reference graphic from the image data captured by the imaging means;
Trimming means for trimming the image data into an area not including the reference graphic;
Transformation matrix calculation means for calculating a transformation matrix based on the reference figure;
A projective transforming means for projectively transforming the image data using the transform matrix ;
The imaging apparatus according to claim 1, wherein the reference graphic extraction means evaluates the size or contrast strength of a graphic included in the image data, and selects a graphic having the highest evaluation value as the reference graphic .
前記射影変換手段は、トリミングされた画像を、前記射影変換することを特徴とする請求項6に記載の撮像装置。   The imaging apparatus according to claim 6, wherein the projective transformation unit performs the projective transformation on a trimmed image. 前記トリミング手段は、前記射影変換された画像データを、前記基準図形を含まない領域にトリミングすることを特徴とする請求項6に記載の撮像装置。   The imaging apparatus according to claim 6, wherein the trimming unit trims the image data subjected to the projective transformation into an area not including the reference graphic. あおり補正を行う撮像装置であって、
あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む撮影対象領域を撮像する撮像手段と、
前記撮像手段により撮像された画像データから前記基準図形を抽出する基準図形抽出手段と、
前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段と、
前記基準図形に基づき変換行列を算出する変換行列算出手段と、
前記画像データを、前記変換行列を用いて射影変換する射影変換手段と、を備え、
前記トリミング手段は、ユーザによるデジタルズームの操作に従って前記画像データをトリミングし、
前記基準図形抽出手段は、前記デジタルズームによってトリミング領域から除かれる領域から図形を抽出して前記基準図形に選ぶことを特徴とする撮像装置。
An imaging device that performs tilt correction,
Imaging means for imaging a shooting target region including a subject to be corrected for tilt and a reference graphic used for tilt correction;
Reference graphic extraction means for extracting the reference graphic from the image data captured by the imaging means;
Trimming means for trimming the image data into an area not including the reference graphic;
Transformation matrix calculation means for calculating a transformation matrix based on the reference figure;
A projective transforming means for projectively transforming the image data using the transform matrix;
The trimming means trims the image data according to a digital zoom operation by a user,
The imaging apparatus according to claim 1, wherein the reference graphic extraction means extracts a graphic from an area removed from the trimming area by the digital zoom and selects it as the reference graphic .
前記撮影対象領域と前記トリミング領域を同時に表示する表示手段、
を備えることを特徴とする請求項9に記載の撮像装置。
Display means for simultaneously displaying the area to be imaged and the trimming area;
The imaging apparatus according to claim 9, further comprising:
ユーザの操作により焦点距離を変更できる光学ズーム手段と、
撮影対象領域を仮設定する撮影対象領域仮設定手段と、
を備え、
前記基準図形抽出手段は、仮設定された撮影対象領域の画像データから基準図形を抽出し、
前記光学ズーム手段は、前記仮設定された撮影対象領域において、前記基準図形抽出手段により基準図形が抽出されない場合には、自動的にズームアウトを行うことを特徴とする請求項6〜8のいずれか1つに記載の撮像装置。
An optical zoom means capable of changing a focal length by a user operation;
A shooting target area temporary setting means for temporarily setting a shooting target area;
With
The reference graphic extraction means extracts the reference graphic from the image data of the temporarily set shooting target area,
9. The optical zoom unit according to claim 6, wherein when the reference graphic is not extracted by the reference graphic extraction unit in the temporarily set photographing target area, the optical zoom unit automatically zooms out. The imaging device as described in any one.
あおり補正を行う画像処理装置であって、
あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出手段と、
前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段と、
前記基準図形に基づき変換行列を算出する変換行列算出手段と、
前記画像データを、前記変換行列を用いて射影変換する射影変換手段と、を備え
前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とする画像処理装置。
An image processing apparatus that performs tilt correction,
Reference graphic extraction means for extracting the reference graphic from image data including a subject to be corrected for tilt and a reference graphic used for tilt correction;
Trimming means for trimming the image data into an area not including the reference graphic;
Transformation matrix calculation means for calculating a transformation matrix based on the reference figure;
A projective transforming means for projectively transforming the image data using the transform matrix ;
The image processing apparatus, wherein the reference graphic extracting means evaluates the size or contrast strength of a graphic included in the image data, and selects a graphic having the highest evaluation value as the reference graphic .
あおり補正の対象となる被写体とあおり補正に利用する基準図形とを含む画像データから前記基準図形を抽出する基準図形抽出手段としての機能と、
前記画像データを、前記基準図形を含まない領域にトリミングするトリミング手段としての機能と、
前記基準図形に基づき変換行列を算出する変換行列算出手段としての機能と、
前記画像データを、前記変換行列を用いて射影変換する射影変換手段としての機能と、
をコンピュータに実現させるプログラムであって、
前記基準図形抽出手段は、前記画像データに含まれる図形について大きさ又はコントラストの強さを評価し、最も評価値の高い図形を前記基準図形に選ぶことを特徴とするプログラム。
A function as a reference graphic extraction means for extracting the reference graphic from image data including a subject to be corrected and a reference graphic used for the correction;
A function as a trimming means for trimming the image data into an area not including the reference graphic;
A function as a conversion matrix calculation means for calculating a conversion matrix based on the reference figure;
A function as a projective transformation means for projective transformation of the image data using the transformation matrix;
Is a program for causing a computer to realize
The reference graphic extracting means evaluates the size or contrast strength of a graphic included in the image data, and selects a graphic having the highest evaluation value as the reference graphic .
JP2006234243A 2006-08-30 2006-08-30 Image processing method, imaging apparatus, image processing apparatus, and program Expired - Fee Related JP4848230B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006234243A JP4848230B2 (en) 2006-08-30 2006-08-30 Image processing method, imaging apparatus, image processing apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006234243A JP4848230B2 (en) 2006-08-30 2006-08-30 Image processing method, imaging apparatus, image processing apparatus, and program

Publications (2)

Publication Number Publication Date
JP2008060827A JP2008060827A (en) 2008-03-13
JP4848230B2 true JP4848230B2 (en) 2011-12-28

Family

ID=39243088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006234243A Expired - Fee Related JP4848230B2 (en) 2006-08-30 2006-08-30 Image processing method, imaging apparatus, image processing apparatus, and program

Country Status (1)

Country Link
JP (1) JP4848230B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010278506A (en) * 2009-05-26 2010-12-09 Elmo Co Ltd Document presentation device
WO2011055526A1 (en) * 2009-11-09 2011-05-12 コニカミノルタオプト株式会社 Image transmission device, imaging device, and remote work support system
JP5708051B2 (en) 2011-03-07 2015-04-30 株式会社リコー Video processing apparatus, video processing system, video conference system, remote monitoring system, video processing method, and imaging apparatus
JP6099937B2 (en) * 2012-11-13 2017-03-22 プラス株式会社 Camera applications for devices with built-in digital cameras
JP6288487B2 (en) * 2012-12-19 2018-03-07 カシオ計算機株式会社 Image processing apparatus and program
WO2019225255A1 (en) * 2018-05-21 2019-11-28 富士フイルム株式会社 Image correction device, image correction method, and image correction program
JP6679779B1 (en) * 2019-03-01 2020-04-15 キヤノン株式会社 Information processing device, information processing method, and program

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0721389A (en) * 1993-07-06 1995-01-24 Meidensha Corp Method for correcting distortion of graphic and method for calculating center of gravity
JP3653783B2 (en) * 1995-04-03 2005-06-02 スズキ株式会社 In-vehicle image processing apparatus and image display system
JPH09282458A (en) * 1996-04-18 1997-10-31 Glory Ltd Image collating device
JP2003141520A (en) * 2001-10-31 2003-05-16 Fuji Xerox Co Ltd Image reading apparatus, image inspection apparatus, and program
JP4238586B2 (en) * 2003-01-30 2009-03-18 ソニー株式会社 Calibration processing apparatus, calibration processing method, and computer program
JP4234059B2 (en) * 2003-06-06 2009-03-04 三菱電機株式会社 Camera calibration method and camera calibration apparatus
JP2005173940A (en) * 2003-12-10 2005-06-30 3D Media Co Ltd Image processing method, image processor and computer program
JP2005278003A (en) * 2004-03-26 2005-10-06 Fuji Photo Film Co Ltd Image processing apparatus

Also Published As

Publication number Publication date
JP2008060827A (en) 2008-03-13

Similar Documents

Publication Publication Date Title
JP4548144B2 (en) Digital camera device and through image display method
JP4848230B2 (en) Image processing method, imaging apparatus, image processing apparatus, and program
CN102739961B (en) Can the image processing apparatus of generating wide angle
TW200808044A (en) Imaging apparatus and computer readable recording medium
JP5061631B2 (en) Imaging apparatus and imaging method
JP4696614B2 (en) Image display control device and program
JP4735166B2 (en) Image display apparatus and program
JP4748442B2 (en) Imaging apparatus and program thereof
JP5013282B2 (en) Imaging apparatus and program
JP4788172B2 (en) Imaging apparatus and program
JP4986189B2 (en) Imaging apparatus and program
JP2010141609A (en) Imaging apparatus
JP4632417B2 (en) Imaging apparatus and control method thereof
JP4680022B2 (en) Imaging device
JP2007142639A (en) Imaging apparatus and program therefor
JP2009253925A (en) Imaging apparatus and imaging method, and imaging control program
JP4888829B2 (en) Movie processing device, movie shooting device, and movie shooting program
JP2004147114A (en) Digital camera
JP5962974B2 (en) Imaging apparatus, imaging method, and program
JP4379191B2 (en) Electronic camera and image processing program
JP4404200B2 (en) Imaging apparatus and image file generation program
JP2010050599A (en) Electronic camera
JPH11224324A (en) Image signal processing method and device
JP2005278003A (en) Image processing apparatus
JP5641352B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110517

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110719

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110920

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111017

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

Free format text: PAYMENT UNTIL: 20141021

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees