JP5747474B2 - Imaging apparatus, imaging processing method, and program - Google Patents

Imaging apparatus, imaging processing method, and program Download PDF

Info

Publication number
JP5747474B2
JP5747474B2 JP2010243063A JP2010243063A JP5747474B2 JP 5747474 B2 JP5747474 B2 JP 5747474B2 JP 2010243063 A JP2010243063 A JP 2010243063A JP 2010243063 A JP2010243063 A JP 2010243063A JP 5747474 B2 JP5747474 B2 JP 5747474B2
Authority
JP
Japan
Prior art keywords
imaging
focus
unit
image
subject
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
JP2010243063A
Other languages
Japanese (ja)
Other versions
JP2012095249A (en
JP2012095249A5 (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.)
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 JP2010243063A priority Critical patent/JP5747474B2/en
Publication of JP2012095249A publication Critical patent/JP2012095249A/en
Publication of JP2012095249A5 publication Critical patent/JP2012095249A5/ja
Application granted granted Critical
Publication of JP5747474B2 publication Critical patent/JP5747474B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Focusing (AREA)
  • Lens Barrels (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)

Description

本発明は、撮像装置、撮像処理方法及びプログラムに関する。   The present invention relates to an imaging apparatus, an imaging processing method, and a program.

従来、ホワイトボードに書かれた文字や図形などの記録のために当該ホワイトボードをデジタルカメラにより撮像して画像データとして保存する機能を搭載したものがある。ところで、ホワイトボードに対して斜め方向から撮影すると、ホワイトボードが斜めに歪んだ状態で撮像されてしまうため、例えば、撮像画像に対して台形補正処理等を行って矩形画像などに変換する処理を行うものもある(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, there is a camera equipped with a function of capturing a white board with a digital camera and storing it as image data in order to record characters and figures written on the white board. By the way, if the whiteboard is photographed from an oblique direction, the image is captured in a state where the whiteboard is obliquely distorted. For example, a process of converting the captured image into a rectangular image by performing a trapezoid correction process or the like is performed. Some are performed (see, for example, Patent Document 1).

特開2005−115711号公報JP 2005-115711 A

しかしながら、ホワイトボードに対して斜め方向から撮影した画像に対して台形補正処理等を行うと、ホワイトボードの中央付近よりも遠い方に対応する画像領域が相対的に拡大されてしまい、文字や図形等の情報の解像感が近い方の画像領域と比べて劣化するといった問題がある。   However, if trapezoidal correction processing is performed on an image shot from an oblique direction with respect to the whiteboard, the image area corresponding to the farther than the center of the whiteboard is relatively enlarged, and characters and figures are relatively enlarged. There is a problem that the resolution of information such as the image quality deteriorates compared to the image area closer to the image.

本発明の課題は、歪補正処理により生成される画像の解像感のバランスを向上させることができる撮像装置、撮像処理方法及びプログラムを提供することである。   An object of the present invention is to provide an imaging apparatus, an imaging processing method, and a program that can improve the balance of the resolution of an image generated by distortion correction processing.

上記課題を解決するため、請求項1に記載の発明の撮像装置は、撮像手段と、画像内の被写体の歪みを補正する歪補正処理を施す処理手段と、前記撮像手段による撮像で得られる画像に対して前記処理手段による歪補正処理を施す場合には、被写体の中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理を行うように制御する合焦手段と、前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を複数設定する領域設定手段と、前記領域設定手段により設定された前記複数の評価領域について合焦評価値をそれぞれ算出する算出手段と、を備え、前記合焦手段は、前記所定の焦点調整処理として、前記撮像手段の合焦距離を無限域側から至近域側に移動させる際に、前記算出手段により逐次算出されるいずれかの評価領域の合焦評価値のピークを検出する合焦距離の中で、少なくとも最も遠い合焦距離に基づいて、被写体の中央部よりも距離が遠い位置にピントを合わせるように焦点を調整することを特徴としている。 In order to solve the above-described problem, an imaging apparatus according to a first aspect of the present invention includes an imaging unit, a processing unit that performs distortion correction processing for correcting distortion of a subject in the image, and an image obtained by imaging by the imaging unit. When performing distortion correction processing by the processing means, focusing means for controlling to perform a predetermined focus adjustment process for focusing at a position where the imaging distance is farther than the center of the subject, and the imaging means A region setting unit that sets a plurality of evaluation regions in which an in-focus evaluation value is to be calculated in the image captured by the method, and a calculation that calculates a focus evaluation value for each of the plurality of evaluation regions set by the region setting unit The focusing means is sequentially calculated by the calculating means when the focusing distance of the imaging means is moved from the infinite area side to the closest area side as the predetermined focus adjustment processing. Based on at least the farthest focus distance among the focus distances for detecting the peak focus evaluation value in the evaluation area, the focus is adjusted to focus on a position farther than the center of the subject. It is characterized by adjusting .

請求項2に記載の発明は更に、前記領域設定手段は、前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を所定方向に沿って複数設定することを特徴とする。
請求項3に記載の発明は更に、前記合焦手段は、前記所定の焦点調整処理として、前記撮像手段の合焦距離を無限域側から至近域側に移動させる途中で前記いずれかの評価領域の合焦評価値のピークを検出した場合は、それより至近域側への合焦距離の移動を中断し、このピークを検出した合焦距離または該合焦距離から所定距離だけ至近域側の合焦距離にピントを合わせるように焦点を調整することを特徴としている。
請求項4に記載の発明は更に、前記合焦手段は、前記所定の焦点調整処理として、前記複数の評価領域で合焦評価値のピークを検出する複数の合焦距離の範囲の中で、被写体の中央部よりも距離が遠い合焦距離にピントを合わせるように焦点を調整することを特徴としている。
The invention according to claim 2 is characterized in that the region setting means sets a plurality of evaluation regions in which a focus evaluation value is to be calculated along a predetermined direction in an image captured by the imaging device. To do.
According to a third aspect of the present invention, the focusing unit further includes the evaluation region as one of the evaluation regions in the middle of moving the focusing distance of the imaging unit from the infinite region side to the closest region side as the predetermined focus adjustment processing. When the peak of the in-focus evaluation value is detected, the movement of the in-focus distance from that position is interrupted, and the in-focus distance at which the peak is detected or a predetermined distance from the in-focus distance is detected. It is characterized by adjusting the focus so as to focus on the in-focus distance .
According to a fourth aspect of the present invention, the focusing means includes a plurality of in-focus distance ranges for detecting peaks of in-focus evaluation values in the plurality of evaluation regions as the predetermined focus adjustment processing. It is characterized in that the focus is adjusted so that the in-focus distance is farther than the center of the subject .

請求項5に記載の発明は更に、前記処理手段は、被写体の各部での撮像距離が異なる状態で撮像して得られた画像に対して、撮像距離が遠い側の被写体部分を相対的に拡大する歪補正処理を施すことを特徴としている。 According to a fifth aspect of the present invention, the processing means relatively expands the subject portion on the side where the imaging distance is farther than the image obtained by imaging with different imaging distances at each part of the subject. It is characterized by performing distortion correction processing .

請求項6に記載の発明は更に、前記撮像手段による撮像で得られる画像に対して前記処理手段による歪補正処理を施すか否かを判断する判断手段を更に備え、前記合焦手段は、前記判断手段により歪補正処理を施すと判断されたことを条件として、前記所定の焦点調整処理を行うように制御することを特徴としている。 The invention according to claim 6 further includes a determination unit that determines whether or not to perform distortion correction processing by the processing unit on an image obtained by imaging by the imaging unit, and the focusing unit includes: Control is performed so as to perform the predetermined focus adjustment process on condition that the determination unit determines that the distortion correction process is performed .

請求項7に記載の発明は更に、前記処理手段は、撮像距離が遠い側の被写体部分と撮像距離が近い側の被写体部分との撮像距離の比に応じて、撮像距離が遠い側の被写体部分の相対的な拡大率を決定することを特徴としている。 According to a seventh aspect of the present invention, the processing means further includes: a subject portion on the far side of the imaging distance according to a ratio of an imaging distance between the subject portion on the far side of the imaging distance and the subject portion on the side of the near side of the imaging distance. It is characterized by determining the relative enlargement ratio .

請求項8に記載の発明は更に、前記処理手段は、被写体の輪郭が直角四辺形である場合に、撮像画像から抽出される被写体の輪郭形状に応じて、この抽出された輪郭形状を前記歪補正処理によって直角四辺形に戻すように、撮像距離が遠い側の被写体部分の相対的な拡大率を決定することを特徴としている。 According to an eighth aspect of the present invention , when the contour of the subject is a right-angled quadrilateral, the processing means deforms the extracted contour shape according to the contour shape of the subject extracted from the captured image. It is characterized in that the relative magnification of the subject part on the far side of the imaging distance is determined so as to return to a right-angled quadrilateral by correction processing .

請求項9に記載の発明は更に、前記処理手段は、前記歪補正処理として、画像内の所定の被写体に対する直角四辺形変換処理を行って直角四辺形画像を生成する画像生成処理を含むことを特徴としている。 According to a ninth aspect of the present invention, the processing means further includes an image generation process for generating a right-angled quadrilateral image by performing a right-angled quadrangle conversion process on a predetermined subject in the image as the distortion correction process. It is a feature.

請求項10に記載の発明は更に、前記撮像手段による画像の撮像の際に、前記領域設定手段により設定される複数の評価領域を前記所定の被写体の中央よりも距離が遠い位置と近い位置のそれぞれに対応させるように撮像の案内を行う案内手段を更に備えることを特徴としている。 The invention according to claim 10 is further characterized in that when the image is picked up by the image pickup means, the plurality of evaluation areas set by the area setting means are located at positions closer to a position farther than the center of the predetermined subject. Further, it is characterized by further including guide means for guiding imaging so as to correspond to each.

請求項11に記載の発明は更に、前記処理手段は、前記複数の評価領域で合焦評価値のピークを検出した複数の合焦距離に基づいて、撮像距離が遠い側の被写体部分と撮像距離が近い側の被写体部分との撮像距離の比を特定して前記相対的な拡大率を決定することを特徴としている。 According to an eleventh aspect of the present invention , the processing means further includes a subject portion on the far side of the imaging distance and an imaging distance based on a plurality of focusing distances at which peaks of focus evaluation values are detected in the plurality of evaluation regions. The relative enlargement ratio is determined by specifying the ratio of the imaging distance with the subject portion on the near side.

請求項12に記載の発明は更に、ホワイトボードを撮像する撮像モードを設定する設定手段を更に備え、前記判断手段は、前記設定手段により前記撮像モードが設定された場合に、前記処理手段による歪補正処理を施すと判断することを特徴としている。 Furthermore the invention according to claim 12, further comprising setting means for setting the imaging mode for imaging a whiteboard, the determination unit, when the imaging mode is set by said setting means, distortion due to the processing means It is characterized in that it is determined that correction processing is performed.

請求項13に記載の発明の撮像処理方法は、撮像手段を備える撮像装置を用いた撮像処理方法であって、画像内の被写体の歪みを補正する歪補正処理と、前記撮像手段による撮像で得られる画像に対して前記歪補正処理を施す場合には、被写体の中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理と、前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を複数設定する領域設定処理と、前記領域設定処理により設定された前記複数の評価領域について合焦評価値をそれぞれ算出する算出処理と、を含み、前記所定の焦点調整処理は、前記撮像手段の合焦距離を無限域側から至近域側に移動させる際に、前記算出処理により逐次算出されるいずれかの評価領域の合焦評価値のピークを検出する合焦距離の中で、少なくとも最も遠い合焦距離に基づいて、被写体の中央部よりも距離が遠い位置にピントを合わせるように焦点を調整することを特徴としている。 An image pickup processing method according to a thirteenth aspect of the present invention is an image pickup processing method using an image pickup apparatus including an image pickup means, which is obtained by distortion correction processing for correcting distortion of a subject in an image and image pickup by the image pickup means. When the distortion correction process is performed on an image to be captured, a predetermined focus adjustment process for focusing at a position where the imaging distance is farther than the center of the subject , and an in-focus image within the image captured by the imaging unit An area setting process for setting a plurality of evaluation areas for which evaluation values are to be calculated; and a calculation process for calculating an in-focus evaluation value for each of the plurality of evaluation areas set by the area setting process. In the adjustment process, when the focus distance of the imaging unit is moved from the infinite range side to the close range side, the focus for detecting the peak of the focus evaluation value in any of the evaluation areas sequentially calculated by the calculation process is detected. Among away, is characterized by adjusting based on at least the farthest focus distance, the focus to focus on a distance farther than the center portion of the object.

請求項14に記載の発明のプログラムは、撮像手段を備える撮像装置のコンピュータを、画像内の被写体の歪みを補正する歪補正処理を施す処理手段、前記撮像手段による撮像で得られる画像に対して前記処理手段による歪補正処理を施す場合には、被写体の中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理を行うように制御する合焦手段、前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を複数設定する領域設定手段、前記領域設定手段により設定された前記複数の評価領域について合焦評価値をそれぞれ算出する算出手段、として機能させ、前記合焦手段は、前記所定の焦点調整処理として、前記撮像手段の合焦距離を無限域側から至近域側に移動させる際に、前記算出手段により逐次算出されるいずれかの評価領域の合焦評価値のピークを検出する合焦距離の中で、少なくとも最も遠い合焦距離に基づいて、被写体の中央部よりも距離が遠い位置にピントを合わせるように焦点を調整することを特徴としている。 According to a fourteenth aspect of the present invention, there is provided a program for an imaging apparatus including an imaging unit, a processing unit for performing distortion correction processing for correcting distortion of a subject in an image, and an image obtained by imaging by the imaging unit. When the distortion correction process is performed by the processing unit, the image is captured by the focusing unit and the imaging unit that are controlled to perform a predetermined focus adjustment process for focusing at a position where the imaging distance is farther than the center of the subject. In the image, function as area setting means for setting a plurality of evaluation areas for which focus evaluation values should be calculated, and calculation means for calculating focus evaluation values for the plurality of evaluation areas set by the area setting means. The focusing means sequentially performs the calculation by the calculation means when moving the focusing distance of the imaging means from the infinity side to the closest side as the predetermined focus adjustment processing. Focus at a position farther than the center of the subject based on at least the farthest focus distance among the focus distances that detect the peak focus evaluation value in any evaluation area It is characterized by adjusting the focus .

本発明によれば、台形補正などの歪補正処理により生成される画像の解像感のバランスを向上させることができる。   According to the present invention, it is possible to improve the balance of the resolution of an image generated by distortion correction processing such as trapezoid correction.

本発明を適用した一実施形態の撮像装置の概略構成を示すブロック図である。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 an imaging process by the imaging apparatus of FIG. 1. 図2の撮像処理における焦点調整処理に係る動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation related to a focus adjustment process in the imaging process of FIG. 2. 図2の撮像処理に係る画像の一例を模式的に示す図である。It is a figure which shows typically an example of the image which concerns on the imaging process of FIG. 変形例1の撮像装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the imaging device of the modification 1. 図5の撮像装置による撮像処理を説明するための図である。It is a figure for demonstrating the imaging process by the imaging device of FIG. 図5の撮像装置による撮像処理における焦点調整処理に係る動作の一例を示すフローチャートである。6 is a flowchart illustrating an example of an operation related to a focus adjustment process in an imaging process performed by the imaging apparatus in FIG. 5. 変形例2の撮像装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the imaging device of the modification 2. 図8の撮像装置による撮像処理に係る動作の一例を示すフローチャートである。It is a flowchart which shows an example of the operation | movement which concerns on the imaging process by the imaging device of FIG.

以下に、本発明について、図面を用いて具体的な態様を説明する。ただし、発明の範囲は、図示例に限定されない。
図1は、本発明を適用した一実施形態の撮像装置100の概略構成を示すブロック図である。
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.

本実施形態の撮像装置100は、図1に示すように、フォーカスレンズ1、レンズ駆動部2、電子撮像部3、ユニット回路4、撮像制御部5、画像生成部6、AF処理部7、画像処理部8、表示部9、画像記録部10、操作入力部11、バッファメモリ12、プログラムメモリ13、中央制御部14等を備えている。
また、レンズ駆動部2、撮像制御部5、画像生成部6、AF処理部7、画像処理部8、表示部9、画像記録部10、バッファメモリ12、プログラムメモリ13、中央制御部14は、バスライン15を介して接続されている。
As shown in FIG. 1, the imaging apparatus 100 according to the present embodiment includes a focus lens 1, a lens driving unit 2, an electronic imaging unit 3, a unit circuit 4, an imaging control unit 5, an image generation unit 6, an AF processing unit 7, and an image. A processing unit 8, a display unit 9, an image recording unit 10, an operation input unit 11, a buffer memory 12, a program memory 13, a central control unit 14 and the like are provided.
The lens driving unit 2, the imaging control unit 5, the image generation unit 6, the AF processing unit 7, the image processing unit 8, the display unit 9, the image recording unit 10, the buffer memory 12, the program memory 13, and the central control unit 14 are They are connected via a bus line 15.

レンズ駆動部2は、フォーカスレンズ1をそれぞれ光軸方向に駆動させる。具体的には、レンズ駆動部2は、フォーカスモータ等の駆動源と、AF処理部7や中央制御部14からの制御信号に従って駆動源を駆動させるドライバ等を備えている(何れも図示略)。   The lens driving unit 2 drives the focus lens 1 in the optical axis direction. Specifically, the lens driving unit 2 includes a driving source such as a focus motor and a driver that drives the driving source in accordance with control signals from the AF processing unit 7 and the central control unit 14 (none of which is shown). .

電子撮像部3は、フォーカスレンズ1の光軸上に配置されている。また、電子撮像部3は、例えば、CCD(Charge Coupled Device)やCMOS(Complementary Metal-oxide Semiconductor)等のイメージセンサから構成され、フォーカスレンズ1等の各種レンズを通過した光学像を二次元の画像信号に変換する。   The electronic imaging unit 3 is disposed on the optical axis of the focus lens 1. The electronic imaging unit 3 is composed of, for example, an image sensor such as a charge coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS), and an optical image that has passed through various lenses such as the focus lens 1 is a two-dimensional image. Convert to signal.

ユニット回路4は、電子撮像部3から出力される被写体の光学像に応じたアナログの撮像信号が入力され、入力された撮像信号を保持するCDSと、その撮像信号を増幅するゲイン調整アンプ(AGC)、増幅された撮像信号をデジタルの撮像信号に変換するA/D変換器(ADC)等から構成されている。
そして、ユニット回路4は、デジタルの撮像信号を画像生成部6に送信する。
The unit circuit 4 receives an analog imaging signal corresponding to the optical image of the subject output from the electronic imaging unit 3, receives a CDS that holds the input imaging signal, and a gain adjustment amplifier (AGC) that amplifies the imaging signal. ), An A / D converter (ADC) for converting the amplified imaging signal into a digital imaging signal, and the like.
Then, the unit circuit 4 transmits a digital imaging signal to the image generation unit 6.

撮像制御部5は、中央制御部14が設定するフレームレートに従ったタイミングで、電子撮像部3やユニット回路4を駆動させる制御を行う。具体的には、撮像制御部5は、TG(Timing Generator)、電子撮像部3を駆動するドライバ等(何れも図示略)を備え、TGを介してドライバやユニット回路4の動作タイミングを制御する。即ち、中央制御部14が、プログラムメモリ13から読み出したプログラム線図に従ってシャッタースピードを設定すると、撮像制御部5のTGは、当該シャッタースピードに対応する電荷蓄積時間をシャッターパルスとしてドライバに出力し、ドライバからの駆動パルス信号に従って電子撮像部3を動作させて電荷蓄積時間(露光時間)を制御する。   The imaging control unit 5 performs control to drive the electronic imaging unit 3 and the unit circuit 4 at a timing according to the frame rate set by the central control unit 14. Specifically, the imaging control unit 5 includes a TG (Timing Generator), a driver for driving the electronic imaging unit 3, and the like (both not shown), and controls the operation timing of the driver and the unit circuit 4 via the TG. . That is, when the central control unit 14 sets the shutter speed according to the program diagram read from the program memory 13, the TG of the imaging control unit 5 outputs the charge accumulation time corresponding to the shutter speed to the driver as a shutter pulse, The electronic image pickup unit 3 is operated in accordance with the drive pulse signal from the driver to control the charge accumulation time (exposure time).

このように構成されたフォーカスレンズ1、電子撮像部3、ユニット回路4及び撮像制御部5は、被写体を撮像する撮像手段を構成している。   The focus lens 1, the electronic imaging unit 3, the unit circuit 4, and the imaging control unit 5 configured in this way constitute imaging means for imaging a subject.

画像生成部6は、ユニット回路4から送られてきた画像データに対してγ補正処理、ホワイトバランス処理などの処理を施すとともに、輝度色差信号(YUVデータ)を生成する。そして、画像生成部6は、生成された輝度色差信号の画像データをAF処理部7及び画像処理部8に出力する。   The image generation unit 6 performs processing such as γ correction processing and white balance processing on the image data sent from the unit circuit 4 and generates a luminance color difference signal (YUV data). Then, the image generation unit 6 outputs the generated image data of the luminance / color difference signal to the AF processing unit 7 and the image processing unit 8.

AF処理部7は、領域設定部7aと、評価値算出部7bと、合焦制御部7cとを具備している。   The AF processing unit 7 includes an area setting unit 7a, an evaluation value calculation unit 7b, and a focus control unit 7c.

領域設定部7aは、ライブビュー画像P1にてフォーカスレンズ1の合焦状態の評価領域であるAF評価領域Aを設定する。
即ち、領域設定部7aは、例えば、画像生成部6からライブビュー画像P1の画像データが送られてくる毎に当該画像データに対して、ライブビュー画像P1におけるフォーカスレンズ1の合焦状態の評価に係り、評価値算出部7bによってAF評価値が算出されるAF評価領域A(図4(a)等参照)を設定する。具体的には、領域設定部7aは、中央制御部14によりホワイトボードを撮像する撮像モードが設定されると、測距方式を「マルチAF」に切り替えて画角内にて所定方向(例えば、横方向)に沿ってAF評価領域Aを複数(例えば、3つ)設定する。
このとき、表示部9は、ライブビュー画像P1に重畳させ、各AF評価領域Aに対応付けてAF枠Wを表示する(図4(a)等参照)。なお、AF枠Wは、複数のAF評価領域A、…のうち、ピントが合った状態のAF評価領域Aのみに表示するようにしても良い。
The area setting unit 7a sets an AF evaluation area A that is an evaluation area of the focus lens 1 in the live view image P1.
That is, for example, each time image data of the live view image P1 is sent from the image generation unit 6, the region setting unit 7a evaluates the focus state of the focus lens 1 in the live view image P1 with respect to the image data. Accordingly, the AF evaluation area A (see FIG. 4A, etc.) in which the AF evaluation value is calculated by the evaluation value calculation unit 7b is set. Specifically, when the imaging mode for imaging the whiteboard is set by the central control unit 14, the area setting unit 7 a switches the distance measurement method to “multi AF” and within a predetermined angle (for example, A plurality (for example, three) of AF evaluation areas A are set along the horizontal direction.
At this time, the display unit 9 superimposes on the live view image P1 and displays the AF frame W in association with each AF evaluation area A (see FIG. 4A and the like). The AF frame W may be displayed only in the AF evaluation area A that is in focus among the plurality of AF evaluation areas A,.

このように、領域設定部7aは、撮像手段により撮像される画像内に、AF評価値を算出すべきAF評価領域Aを所定方向に沿って複数設定する領域設定手段を構成している。   As described above, the area setting unit 7a constitutes an area setting unit that sets a plurality of AF evaluation areas A in which an AF evaluation value is to be calculated along a predetermined direction in an image captured by the imaging unit.

評価値算出部7bは、フォーカスレンズ1の合焦状態の評価に係るAF評価値を算出する。
評価値算出部7bは、領域設定部7aにより設定された複数のAF評価領域A、…の画像の画像データに基づいて、例えば、各AF評価領域Aの画像のコントラストの高低を示すAF評価値を算出する。具体的には、合焦制御部7cの制御下にて、レンズ駆動部2によりフォーカスレンズ1を光軸方向に沿って無限域側から至近域側に移動させる際に、評価値算出部7bは、フォーカスレンズ1の光軸方向の位置を規定する複数のフォーカスレンズアドレスのうち、所定間隔を空けて設定された所定数のアドレスに対応する測距位置で、複数のAF評価領域A、…の各々についてAF評価値を逐次算出する。
このように、評価値算出部7bは、領域設定部7aにより設定された複数のAF評価領域A、…についてAF評価値(合焦評価値)をそれぞれ算出する算出手段を構成している。
The evaluation value calculation unit 7 b calculates an AF evaluation value related to the evaluation of the focus state of the focus lens 1.
Based on the image data of the images of the plurality of AF evaluation areas A,... Set by the area setting unit 7a, the evaluation value calculation unit 7b, for example, an AF evaluation value indicating the contrast level of the image of each AF evaluation area A Is calculated. Specifically, when the focus driving unit 7c moves the focus lens 1 from the infinity region side to the closest region side along the optical axis direction under the control of the focus control unit 7c, the evaluation value calculation unit 7b , Among a plurality of focus lens addresses that define the position of the focus lens 1 in the optical axis direction, at a distance measurement position corresponding to a predetermined number of addresses set at predetermined intervals, a plurality of AF evaluation areas A,. An AF evaluation value is sequentially calculated for each.
As described above, the evaluation value calculation unit 7b constitutes a calculation unit that calculates the AF evaluation values (focus evaluation values) for the plurality of AF evaluation areas A,... Set by the area setting unit 7a.

合焦制御部7cは、フォーカスレンズ1の合焦位置を調整する焦点調整処理を行う。
即ち、合焦制御部7cは、ライブビュー画像P1内の所定の被写体Sにおける中央部よりも距離が遠い位置にピントを合わせるように、フォーカスレンズアドレスに対応する所定の制御信号をレンズ駆動部2に出力してフォーカスモータを駆動させてフォーカスレンズ1の合焦位置(合焦距離)を調整する。具体的には、合焦制御部7cは、所定の制御信号をレンズ駆動部2に出力してフォーカスレンズ1を光軸方向に沿って無限域側から至近域側に移動させていき、このとき、評価値算出部7bにより逐次算出された複数のAF評価領域A、…のAF評価値に基づいて、フォーカスレンズ1の合焦位置を調整する(焦点調整処理)。より具体的には、合焦制御部7cは、フォーカスレンズ1を無限遠に移動させた後、当該フォーカスレンズ1を光軸方向に沿って至近域側に移動させていく際に、評価値算出部7bにより逐次算出される何れかのAF評価領域Aのコントラストのピークを検出する合焦距離の中で、少なくとも最も遠い合焦距離に基づいて、所定の被写体Sの中央部よりも距離が遠い位置にピントを合わせるようにフォーカスレンズ1の合焦位置を調整する。例えば、合焦制御部7cは、評価値算出部7bにより逐次算出された複数のAF評価領域A、…に対応する各コントラストの変化を判定していき、何れかのAF評価領域Aに対応するコントラストのピークを検出した測距位置をフォーカスレンズ1の合焦位置とする制御信号をレンズ駆動部2に出力する。このとき、合焦制御部7cは、いずれかのAF評価領域AのAF評価値のピークを検出した場合は、それより至近域側へのフォーカスレンズ1の移動、即ち、合焦距離の移動を中断しても良い。
The focus control unit 7 c performs a focus adjustment process for adjusting the focus position of the focus lens 1.
That is, the focus control unit 7c sends a predetermined control signal corresponding to the focus lens address to the lens driving unit 2 so as to focus on a position that is farther than the center of the predetermined subject S in the live view image P1. And the focus motor is driven to adjust the focus position (focus distance) of the focus lens 1. Specifically, the focus control unit 7c outputs a predetermined control signal to the lens driving unit 2 to move the focus lens 1 from the infinite region side to the closest region side along the optical axis direction. The focus position of the focus lens 1 is adjusted based on the AF evaluation values of the plurality of AF evaluation areas A,... Sequentially calculated by the evaluation value calculation unit 7b (focus adjustment processing). More specifically, the focus control unit 7c calculates the evaluation value when moving the focus lens 1 to infinity along the optical axis direction after moving the focus lens 1 to infinity. The distance is longer than the central portion of the predetermined subject S based on at least the farthest focus distance among the focus distances for detecting the contrast peak of any AF evaluation area A sequentially calculated by the unit 7b. The focus position of the focus lens 1 is adjusted so as to focus on the position. For example, the focus control unit 7c determines changes in contrast corresponding to a plurality of AF evaluation areas A,... Sequentially calculated by the evaluation value calculation unit 7b, and corresponds to any AF evaluation area A. A control signal is output to the lens drive unit 2 that sets the distance measurement position where the contrast peak is detected as the focus position of the focus lens 1. At this time, when the focus control unit 7c detects the peak of the AF evaluation value in any of the AF evaluation areas A, the focus control unit 7c moves the focus lens 1 closer to that side, that is, moves the focus distance. It may be interrupted.

また、合焦制御部7cは、画像生成部6により生成された撮像画像P2(図4(b)参照)の画像データ(YUVデータ)に対して、四辺形変換処理部8bによる直角四辺形変換処理等の歪補正処理を施すか否かを判断する判断部c1を具備している。
具体的には、判断部c1は、ユーザによる操作入力部11の選択決定用ボタン11bの所定操作に基づいて、ホワイトボードを撮像する撮像モードが設定されているか否かに応じて、撮像画像P2(図4(b)参照)の画像データ(YUVデータ)に対して四辺形変換処理部8bによる歪補正処理を施すか否かを判断する。
そして、合焦制御部7cは、判断部c1により歪補正処理を施すと判断された場合には、上記のようにして、所定の被写体Sにおける中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理を行う。一方で、合焦制御部7cは、判断部c1により歪補正処理を施さないと判断された場合は、上記の所定の焦点調整処理を行わないように制御する。
なお、判断部c1を合焦制御部7cにより構成するようにしたが、一例であってこれに限られるものではなく、判断部c1を合焦制御部7cにより構成するか否かは適宜任意に変更可能であり、例えば、中央制御部14等の他の各部により構成しても良いし、判断部c1を他の構成とは独立して設けても良い。
Further, the focus control unit 7c converts the right-angled quadrilateral conversion by the quadrilateral conversion processing unit 8b to the image data (YUV data) of the captured image P2 (see FIG. 4B) generated by the image generation unit 6. A determination unit c1 for determining whether to perform distortion correction processing such as processing.
Specifically, the determination unit c1 determines whether the imaging mode for imaging the whiteboard is set based on a predetermined operation of the selection determination button 11b of the operation input unit 11 by the user. It is determined whether or not to perform distortion correction processing by the quadrilateral conversion processing unit 8b on the image data (YUV data) (see FIG. 4B).
Then, when it is determined by the determination unit c1 that the distortion correction process is to be performed, the focusing control unit 7c focuses on a position where the imaging distance is farther than the central portion of the predetermined subject S as described above. A predetermined focus adjustment process is performed. On the other hand, when the determination unit c1 determines that the distortion correction process is not performed, the focus control unit 7c performs control so that the predetermined focus adjustment process is not performed.
The determination unit c1 is configured by the focus control unit 7c. However, the determination unit c1 is an example, and the present invention is not limited thereto. Whether the determination unit c1 is configured by the focus control unit 7c is arbitrarily determined. For example, it may be configured by other units such as the central control unit 14 or the determination unit c1 may be provided independently of the other configurations.

なお、合焦制御部7cは、フォーカスレンズ1に代えて、電子撮像部3を光軸方向に移動させてフォーカスレンズ1の合焦位置を調整するようにしても良い。
このように、合焦制御部7cは、撮像手段により撮像された画像内の所定の被写体Sにおける中央部よりも距離が遠い位置にピントを合わせるように撮像手段の焦点を調整する焦点調整処理を行う合焦手段を構成している。
Note that the focus control unit 7 c may adjust the focus position of the focus lens 1 by moving the electronic imaging unit 3 in the optical axis direction instead of the focus lens 1.
In this way, the focus control unit 7c performs the focus adjustment processing for adjusting the focus of the imaging unit so that the focus is at a position farther than the center of the predetermined subject S in the image captured by the imaging unit. The focusing means to perform is comprised.

画像処理部8は、画像生成部6により生成された画像データ(YUVデータ)を所定の符号化方式(例えば、JPEG方式等)により圧縮・符号化する符号化部(図示略)や、画像記録部10から読み出された符号化された画像データを当該符号化方式に対応する復号化方式で復号化する復号化部等(何れも図示略)を具備している。   The image processing unit 8 includes an encoding unit (not shown) that compresses and encodes image data (YUV data) generated by the image generation unit 6 using a predetermined encoding method (for example, JPEG method), and image recording. The image processing apparatus includes a decoding unit (not shown) that decodes the encoded image data read from the unit 10 using a decoding method corresponding to the encoding method.

また、画像処理部8は、輪郭抽出部8aと、四辺形変換処理部8bとを具備している。   The image processing unit 8 includes a contour extraction unit 8a and a quadrilateral conversion processing unit 8b.

輪郭抽出部8aは、合焦制御部7cにより焦点調整処理が行われて撮像された撮像画像P2(図4(b)参照)に対して輪郭抽出処理を施して所定の画像領域Rを抽出する。
即ち、輪郭抽出部8aは、例えば、画像生成部6により生成された所定の被写体S(例えば、ホワイトボード)の撮像画像P2のYUVデータの輝度信号Yを取得する。そして、輪郭抽出部8aは、当該輝度信号Yに対して直線検出処理(例えば、ハフ変換処理など)を施して直線を検出し、所定方向に延在する4本の直線によって形成される四角形を輪郭として特定する。その後、輪郭抽出部8aは、特定された四角形内の画像領域を所定の画像領域R(図4(b)参照)として抽出する。なお、複数の四角形が特定された場合には、輪郭抽出部8aは、これら複数の四角形内の画像領域をそれぞれ抽出する。
これにより、ホワイトボードの文字や図形(例えば、「F、F、F」等)が書き込まれている記入領域の略矩形状(直角四辺形状)の画像などが所定の画像領域Rとして抽出される。
The contour extracting unit 8a extracts the predetermined image region R by performing the contour extracting process on the captured image P2 (see FIG. 4B) picked up by the focus adjusting process performed by the focusing control unit 7c. .
That is, the contour extraction unit 8a acquires the luminance signal Y of the YUV data of the captured image P2 of the predetermined subject S (for example, white board) generated by the image generation unit 6, for example. Then, the contour extraction unit 8a performs a straight line detection process (for example, a Hough transform process) on the luminance signal Y to detect a straight line, and a quadrangle formed by four straight lines extending in a predetermined direction. Specify as contour. Thereafter, the contour extracting unit 8a extracts the image area within the specified quadrangle as a predetermined image area R (see FIG. 4B). When a plurality of quadrangles are specified, the contour extracting unit 8a extracts image regions in the plurality of quadrangles.
As a result, a substantially rectangular (rectangular quadrilateral) image or the like of the entry area in which whiteboard characters and figures (for example, “F, F, F”, etc.) are written is extracted as the predetermined image area R. .

なお、輪郭抽出処理として、直線検出処理を利用したものを例示したが、一例であってこれに限られるものではなく、所定の画像領域R(四角領域)を抽出可能なものであれば適宜任意に変更可能である。
また、直線検出処理として、ハフ変換処理を例示したが、一例であってこれに限られるものではなく、エッジ検出処理など適宜任意に変更可能である。なお、ハフ変換処理やエッジ検出処理は、公知の技術であるので、ここでは詳細な説明を省略する。
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 arbitrary as long as predetermined image area | region R (square area | region) can be extracted 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.

四辺形変換処理部8bは、輪郭抽出部8aにより抽出された四角領域に対する直角四辺形変換処理(歪補正処理)を行って直角四辺形画像P3(図4(c)参照)を生成する。
即ち、所定の被写体S(例えば、ホワイトボード)と撮像装置100とが真正面に正確に対向していない状態で撮像されることによって、直角四辺形状をなさない(各内角が直角でない)歪んだ四角形内の画像領域(ホワイトボードの記入領域)が所定の画像領域Rとして輪郭抽出部8aにより抽出される。そこで、四辺形変換処理部8bは、ホワイトボードの撮像画像P2の輝度信号Yから輪郭抽出部8aにより抽出された四角領域(所定の画像領域R)に対して、直角四辺形変換処理(例えば、台形補正処理等)を行って直角四辺形画像P3(例えば、矩形画像、正方形画像など)を生成する。つまり、四辺形変換処理部8bは、輪郭抽出部8aにより抽出された四角領域(所定の画像領域R)のうち、短辺側(所定の被写体Sの中央よりも距離が遠い側)を長辺側(所定の被写体Sの中央よりも距離が近い側)に合わせるように相対的に拡大する処理を行って、直角四辺形画像P3を生成する。このとき、四辺形変換処理部8bは、四角領域(所定の画像領域R)の長辺側を短辺側に相対的に縮小する処理を行っても良い。
このように、四辺形変換処理部8bは、所定の被写体Sの輪郭が直角四辺形である場合に、撮像画像から抽出される所定の被写体Sの輪郭形状に応じて、この抽出された輪郭形状を直角四辺形変換処理(歪補正処理)によって直角四辺形に戻すように、撮像距離が遠い側の被写体部分の相対的な拡大率を決定する。
ここで、輪郭抽出部8aにより複数の四角領域が抽出されていた場合には、四辺形変換処理部8bは、これら複数の四角領域の中で、ユーザによる操作入力部11の所定操作に基づいて中央制御部14により選択指定された四角領域を処理対象として直角四辺形変換処理を施す。
The quadrangle conversion processing unit 8b performs a right-angled quadrangle conversion process (distortion correction process) on the square area extracted by the contour extraction unit 8a to generate a right-angled quadrangle image P3 (see FIG. 4C).
That is, a distorted quadrangle that does not form a right-angled quadrilateral (each interior angle is not a right angle) by capturing an image in a state where the predetermined subject S (for example, a whiteboard) and the image capturing apparatus 100 are not exactly facing each other. The image area (whiteboard entry area) is extracted as the predetermined image area R by the contour extracting unit 8a. Therefore, the quadrangle conversion processing unit 8b performs a right-angled quadrangle conversion process (for example, a predetermined image region R) extracted from the luminance signal Y of the captured image P2 of the whiteboard by the contour extracting unit 8a (for example, the predetermined image region R). A trapezoidal correction process or the like is performed to generate a rectangular quadrilateral image P3 (for example, a rectangular image, a square image, etc.). That is, the quadrilateral conversion processing unit 8b uses the short side (the side farther from the center of the predetermined subject S) as the long side of the square region (predetermined image region R) extracted by the contour extraction unit 8a. A process of relatively enlarging to match the side (the side closer to the center of the predetermined subject S) is performed to generate a right-angled quadrilateral image P3. At this time, the quadrangle conversion processing unit 8b may perform processing for relatively reducing the long side of the square region (predetermined image region R) to the short side.
In this way, the quadrilateral conversion processing unit 8b, when the contour of the predetermined subject S is a right-angled quadrilateral, this extracted contour shape according to the contour shape of the predetermined subject S extracted from the captured image. The relative enlargement ratio of the subject portion on the far side of the imaging distance is determined so as to return to the right quadrilateral by the right quadrilateral conversion processing (distortion correction processing).
Here, when a plurality of square areas are extracted by the contour extraction unit 8a, the quadrilateral conversion processing unit 8b is based on a predetermined operation of the operation input unit 11 by the user among the plurality of square areas. The rectangular region selected and designated by the central control unit 14 is subjected to a right-angled quadrangle conversion process.

なお、直角四辺形変換処理として、台形補正処理を例示したが、一例であってこれに限られるものではなく、四角形を直角四辺形状に変換する斜影変換処理であれば適宜任意に変更可能である。なお、台形補正処理は、公知の技術であるので、ここでは詳細な説明を省略する。
このように、四辺形変換処理部8bは、合焦制御部7cにより焦点調整処理が行われた撮像手段により撮像された画像を取得して、当該画像内の所定の被写体に対する直角四辺形変換処理を行って直角四辺形画像P3を生成する画像生成処理を行う処理手段を構成している。
なお、上記実施形態では、四辺形変換処理部8bは、輪郭抽出部8aにより抽出された四角領域に対する直角四辺形変換処理を行って直角四辺形画像P3を生成したが、輪郭抽出部8aにより抽出された四角領域だけでなく、その周辺領域を含めた撮像画像全体にも、この直角四辺形変換処理を拡張するような歪補正処理を施してもよい。この場合、生成される直角四辺形画像には、輪郭抽出部8aにより抽出された四角領域の周辺領域を含んでもよい。
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 thereof is omitted here.
As described above, the quadrangle conversion processing unit 8b acquires the image captured by the imaging unit that has been subjected to the focus adjustment processing by the focus control unit 7c, and performs a right-angled quadrangle conversion process on a predetermined subject in the image. To form a right-angled quadrilateral image P3.
In the above embodiment, the quadrangle conversion processing unit 8b performs the right-angled quadrangle conversion processing on the quadrilateral region extracted by the contour extraction unit 8a to generate the right-angled quadrilateral image P3. Distortion correction processing that extends this right-angled quadrangle conversion processing may be performed not only on the square area that has been made, but also on the entire captured image including the surrounding area. In this case, the generated right-angled quadrilateral image may include a peripheral region of the square region extracted by the contour extraction unit 8a.

また、上記直角四辺形変換処理の変換パラメータを決定するために、輪郭抽出部による輪郭抽出を行ったが、他の方法で直角四辺形変換処理の変換パラメータを決定する場合には輪郭抽出処理は必要ない。
つまり、四辺形変換処理部8bは、所定の被写体Sにおける撮像距離が遠い側の被写体部分と撮像距離が近い側の被写体部分との撮像距離の比に応じて、撮像距離が遠い側の被写体部分の撮像距離が近い側の被写体部分に対する相対的な拡大率を決定し、この拡大率に応じて直角四辺形変換処理の変換パラメータを決定するようにしてもよい。
例えば、ホワイトボードの輪郭を含まずに、ホワイトボード内の一部だけを撮像したような場合でも、ホワイトボードの左端と右端での撮像距離の比がわかれば、歪補正処理におけるホワイトボードの左端と右端の拡大率を決定することができる。
また、ホワイトボードの左端と右端での撮像距離の比がわからなくとも、ホワイトボードの撮像角度がわかれば、ホワイトボードの左端と右端の拡大率を決定することができる。
In addition, in order to determine the conversion parameter of the right-angled quadrilateral conversion process, the outline extraction by the outline extraction unit was performed, but when the conversion parameter of the right-angled quadrilateral conversion process is determined by another method, the outline extraction process is unnecessary.
In other words, the quadrilateral conversion processing unit 8b performs the subject portion on the far side of the imaging distance according to the ratio of the imaging distance between the subject portion on the far side of the predetermined subject S and the subject portion on the near side of the imaging distance. It is also possible to determine a relative enlargement ratio for the subject portion on the side where the imaging distance is near, and to determine a conversion parameter of the right-angled quadrangle conversion process according to this enlargement ratio.
For example, even when only a part of the whiteboard is imaged without including the outline of the whiteboard, if the ratio of the imaging distance between the left edge and the right edge of the whiteboard is known, the left edge of the whiteboard in the distortion correction process And the rightmost magnification factor can be determined.
Even if the ratio of the imaging distance between the left end and the right end of the whiteboard is not known, the enlargement ratio between the left end and the right end of the whiteboard can be determined if the imaging angle of the whiteboard is known.

表示部9は、バッファメモリ12に格納された1フレーム分のYUVデータをビデオ信号に変換した後、ライブビュー画像P1として表示画面に表示する。具体的には、表示部9は、被写体の撮像により生成された複数の画像フレームに基づいてライブビュー画像P1を逐次表示したり、本撮像画像として撮像されたレックビュー画像を表示する。
また、画像再生時においては、表示部9は、画像記録部10から読み出されて画像処理部8にて復号化された画像データに基づく画像を表示する。
The display unit 9 converts the YUV data for one frame stored in the buffer memory 12 into a video signal, and then displays it as a live view image P1 on the display screen. Specifically, the display unit 9 sequentially displays the live view image P1 based on a plurality of image frames generated by capturing the subject, or displays the REC view image captured as the actual captured image.
At the time of image reproduction, the display unit 9 displays an image based on the image data read from the image recording unit 10 and decoded by the image processing unit 8.

また、表示部9は、案内手段として、ライブビュー画像P1の撮像の際に、領域設定部7aにより設定される複数のAF評価領域A、…を基準として、撮像の案内を行う。具体的には、表示部9は、複数のAF評価領域A、…、特に、左右両端のAF評価領域A、Aが所定の被写体Sの中央よりも距離が遠い位置(例えば、図4における左端)と近い位置(例えば、図4における右端)のそれぞれに対応した状態で撮像が行われるようなガイド表示Gをライブビュー画像P1に重畳させてOSD表示する。
ここで、ガイド表示Gとしては、例えば、図4(a)に示すように、左右両端のAF評価領域Aに対応させて画角を指示するバー表示や、文字により画角調整を指示する表示(例えば、「ホワイトボードの両端が入るように画角を調整してください」等)等が挙げられる。
In addition, the display unit 9 provides guidance for imaging based on the plurality of AF evaluation areas A,... Set by the area setting unit 7a when the live view image P1 is captured as a guide unit. Specifically, the display unit 9 has a plurality of AF evaluation areas A,..., In particular, the AF evaluation areas A and A at both left and right ends are farther from the center of the predetermined subject S (for example, the left end in FIG. 4). ) Is superimposed on the live view image P1 so as to be captured in a state corresponding to each of the positions close to (for example, the right end in FIG. 4), and OSD display is performed.
Here, as the guide display G, for example, as shown in FIG. 4A, a bar display for instructing an angle of view corresponding to the AF evaluation areas A at the left and right ends, or a display for instructing an adjustment of the angle of view by characters. (For example, “Please adjust the angle of view so that both ends of the whiteboard enter”).

なお、表示部9によるガイド表示Gは、案内手段による撮像の案内方法の一例であってこれに限られるものではなく、適宜任意に変更可能である。例えば、人の五感、特に、聴覚、触覚等によって撮像の案内を行うようにしても良く、例えば、複数のAF評価領域A、…が所定の被写体Sの中央よりも距離が遠い位置と近い位置のそれぞれに対応しているか否かを音(音声など)や振動により案内するようにしても良い。   The guide display G by the display unit 9 is an example of an imaging guide method by the guide unit, and is not limited thereto, and can be arbitrarily changed as appropriate. For example, the imaging may be guided by human senses, in particular, hearing, touch, etc. For example, a plurality of AF evaluation areas A,... Are positions closer to a position farther than the center of the predetermined subject S. It may be possible to guide whether or not it corresponds to each by sound (voice etc.) or vibration.

画像記録部10は、例えば、不揮発性メモリ(フラッシュメモリ)等により構成されている。また、画像記録部10は、画像処理部8の符号化部(図示略)により所定の符号化方式(例えば、JPEG方式やMPEG方式等)により圧縮・符号化された静止画像データや動画像データを記録する。   The image recording unit 10 is configured by, for example, a nonvolatile memory (flash memory). The image recording unit 10 also includes still image data and moving image data that have been compressed and encoded by a coding unit (not shown) of the image processing unit 8 using a predetermined coding method (for example, JPEG method, MPEG method, etc.). Record.

操作入力部11は、当該撮像装置100の所定操作を行うためのものである。具体的には、操作入力部11は、被写体の撮影指示に係り、半押し及び全押し操作可能なシャッタボタン11a、撮像モードや機能等の選択指示に係る選択決定用ボタン11b、ズーム量の調整指示に係るズームボタン(図示略)等を備え、これらのボタンの操作に応じて所定の操作信号を中央制御部14に出力する。   The operation input unit 11 is for performing a predetermined operation of the imaging apparatus 100. Specifically, the operation input unit 11 is related to a subject shooting instruction, a shutter button 11a that can be half-pressed and fully pressed, a selection determination button 11b that is related to a selection instruction such as an imaging mode or a function, and a zoom amount adjustment. A zoom button (not shown) or the like according to instructions is provided, and a predetermined operation signal is output to the central control unit 14 in response to the operation of these buttons.

また、操作入力部11は、ユーザによる所定操作に基づいて、複数の撮像モードの中で、所定の撮像モードの指定信号を出力する。具体的には、操作入力部11は、表示部9に表示された複数の撮像モードの中で、ユーザによる選択決定用ボタン11bの所定操作に基づいて選択されたホワイトボードを撮像する撮像モードの指定信号を中央制御部14に出力する。中央制御部14は、操作入力部11から出力された指定信号が入力されると、当該指定信号に応じて撮像モードとして、ホワイトボードを撮像する撮像モードを設定する。
ここで、中央制御部14及び操作入力部11は、ホワイトボードを撮像する撮像モードを設定する設定手段を構成している。
The operation input unit 11 outputs a designation signal for a predetermined imaging mode among a plurality of imaging modes based on a predetermined operation by the user. Specifically, the operation input unit 11 is an imaging mode for imaging a whiteboard selected based on a predetermined operation of the selection determination button 11b by the user among a plurality of imaging modes displayed on the display unit 9. A designation signal is output to the central control unit 14. When the designation signal output from the operation input unit 11 is input, the central control unit 14 sets an imaging mode for imaging the whiteboard as an imaging mode in accordance with the designation signal.
Here, the central control unit 14 and the operation input unit 11 constitute setting means for setting an imaging mode for imaging the whiteboard.

バッファメモリ12は、画像データ等を一時保存するバッファであるとともに、中央制御部14のワーキングメモリ等としても使用される。
プログラムメモリ13には、当該撮像装置100の機能に係る各種プログラムやデータが格納されている。
The buffer memory 12 is a buffer for temporarily storing image data and the like, and is also used as a working memory for the central control unit 14.
The program memory 13 stores various programs and data related to the functions of the imaging apparatus 100.

中央制御部14は、撮像装置100の各部を制御するCPU(図示略)を具備している。
また、中央制御部14は、操作入力部11から出力され入力された操作信号に基づいて、撮像装置100の各部を制御する。具体的には、中央制御部14は、操作入力部11のシャッタボタン11aの所定操作に従って出力された撮像信号が入力されると、プログラムメモリ13に記憶されている所定のプログラムに従って、TGにより電子撮像部3及びユニット回路4の駆動タイミングを制御して静止画像を撮影する処理を実行する。この静止画像の撮影によりバッファメモリ12に格納された1フレーム分のYUVデータは、画像処理部8にてJPEG方式等により圧縮され符号化されて、画像記録部10に静止画像データとして記録される。
The central control unit 14 includes a CPU (not shown) that controls each unit of the imaging apparatus 100.
The central control unit 14 controls each unit of the imaging apparatus 100 based on the operation signal output from the operation input unit 11 and input. Specifically, when an imaging signal output according to a predetermined operation of the shutter button 11a of the operation input unit 11 is input, the central control unit 14 performs electronic control using a TG according to a predetermined program stored in the program memory 13. A process of taking a still image by controlling the drive timing of the imaging unit 3 and the unit circuit 4 is executed. One frame of YUV data stored in the buffer memory 12 by shooting this still image is compressed and encoded by the image processing unit 8 by the JPEG method or the like, and recorded as still image data in the image recording unit 10. .

次に、撮像装置100による撮像処理について、図2〜図4を参照して説明する。
図2は、撮像処理に係る動作の一例を示すフローチャートである。また、図3は、撮像処理における焦点調整処理に係る動作の一例を示すフローチャートである。
なお、以下の撮像処理は、中央制御部14の制御下にて静止画像を撮像する処理であり、予めユーザによる操作入力部11の選択決定用ボタン11bの所定操作に基づいて、ホワイトボードを撮像する撮像モードを含む複数の撮像モードの中から、所望の撮像モードが選択指示されているものとする。
Next, imaging processing by the imaging apparatus 100 will be described with reference to FIGS.
FIG. 2 is a flowchart illustrating an example of an operation related to the imaging process. FIG. 3 is a flowchart illustrating an example of an operation related to the focus adjustment process in the imaging process.
The following imaging process is a process of capturing a still image under the control of the central control unit 14, and images a whiteboard based on a predetermined operation of the selection determination button 11b of the operation input unit 11 by the user in advance. It is assumed that a desired imaging mode is selected from a plurality of imaging modes including the imaging mode to be selected.

図2に示すように、先ず、中央制御部14は、被写体の撮像により生成された複数の画像フレームに基づいてライブビュー画像P1を表示部9の表示画面に表示させる(ステップS0)。
次に、中央制御部14は、設定されている撮影モードがホワイトボードを撮像する撮像モードであるか否かを判断する(ステップS1)。
ここで、ホワイトボードを撮像する撮像モードでないと判断されると(ステップS1;NO)、即ち、ホワイトボードを撮像する撮像モード以外の撮像モードであると判断された場合には、中央制御部14は、通常の撮像処理の実行を制御する(ステップS10)。
一方、ホワイトボードを撮像する撮像モードであると判断された場合には(ステップS1;YES)、中央制御部14は、以下のホワイトボード専用の撮像処理の実行を制御する。これにより、合焦制御部7cの判断部c1は、ホワイトボードの撮像画像P2の画像データ(YUVデータ)に対して四辺形変換処理部8bによる歪補正処理を施すと判断する。
そして、表示部9は、ライブビュー画像P1に重畳させて、領域設定部7aにより設定される左右両端のAF評価領域Aが所定の被写体Sの中央よりも距離が遠い位置と近い位置のそれぞれに対応した状態で撮像が行われるようにガイド表示G(図4(a)参照)を行う。つまり、ホワイトボードを斜めから適切な大きさで撮影する場合に、このホワイトボードの左端と右端に対応する夫々の位置にAF評価領域Aを設ける。
なお、通常の撮像処理(ステップS10)においては、特にホワイトボードの左端と右端の位置を考慮しない通常の位置にAF評価領域が設けられる。例えば、中央部のみ、あるいは、中央部と、中央部から少しだけ離れた上下左右、または斜め方向の複数個所にAF評価領域が設けられる。
As shown in FIG. 2, first, the central control unit 14 displays the live view image P1 on the display screen of the display unit 9 based on a plurality of image frames generated by imaging the subject (step S0).
Next, the central control unit 14 determines whether or not the set shooting mode is an imaging mode for imaging a whiteboard (step S1).
Here, if it is determined that the imaging mode is not for imaging the whiteboard (step S1; NO), that is, if it is determined that the imaging mode is other than the imaging mode for imaging the whiteboard, the central control unit 14 Controls execution of normal imaging processing (step S10).
On the other hand, when it is determined that the imaging mode is for imaging the whiteboard (step S1; YES), the central control unit 14 controls execution of the following imaging processing dedicated to the whiteboard. Accordingly, the determination unit c1 of the focusing control unit 7c determines that the distortion correction processing by the quadrilateral conversion processing unit 8b is performed on the image data (YUV data) of the captured image P2 of the whiteboard.
Then, the display unit 9 superimposes on the live view image P1, and the AF evaluation areas A at the left and right ends set by the area setting unit 7a are respectively positioned at positions closer to the position farther than the center of the predetermined subject S. A guide display G (see FIG. 4A) is performed so that imaging is performed in a corresponding state. That is, when the whiteboard is photographed at an appropriate size from an oblique direction, the AF evaluation area A is provided at each position corresponding to the left end and the right end of the whiteboard.
In the normal imaging process (step S10), the AF evaluation area is provided at a normal position that does not consider the positions of the left and right ends of the whiteboard. For example, AF evaluation areas are provided only at the central portion, or at a plurality of locations in the vertical direction, left and right, or diagonal directions slightly apart from the central portion.

続けて、中央制御部14は、ユーザによる操作入力部11のシャッタボタン11aの所定操作(例えば、全押し操作)に基づいて、当該操作入力部11から出力される撮像指示が入力されたか否かを判定する(ステップS2)。
ここで、撮像指示が入力されたと判定されると(ステップS2;YES)、AF処理部7は、フォーカスレンズ1の合焦位置を調整する焦点調整処理(図3参照)を行う(ステップS3)。
以下に、焦点調整処理について図3を参照して詳細に説明する。
Subsequently, the central control unit 14 determines whether an imaging instruction output from the operation input unit 11 is input based on a predetermined operation (for example, full pressing operation) of the shutter button 11a of the operation input unit 11 by the user. Is determined (step S2).
If it is determined that an imaging instruction has been input (step S2; YES), the AF processing unit 7 performs a focus adjustment process (see FIG. 3) for adjusting the in-focus position of the focus lens 1 (step S3). .
The focus adjustment process will be described in detail below with reference to FIG.

図3に示すように、中央制御部14は、撮像制御部5に対して所定の制御信号を出力して、当該所定の制御信号に従って、撮像制御部5は、電子撮像部3やユニット回路4の動作タイミングを自動合焦処理(AF)用の駆動に対応するように切り替える(ステップS31)。
その後、合焦制御部7cは、所定の制御信号をレンズ駆動部2に出力してフォーカスレンズ1を光軸方向に沿って無限遠に移動させる(ステップS32)。
As illustrated in FIG. 3, the central control unit 14 outputs a predetermined control signal to the imaging control unit 5, and the imaging control unit 5 performs the electronic imaging unit 3 and the unit circuit 4 according to the predetermined control signal. Is switched so as to correspond to the driving for the automatic focusing process (AF) (step S31).
Thereafter, the focusing control unit 7c outputs a predetermined control signal to the lens driving unit 2 to move the focus lens 1 to infinity along the optical axis direction (step S32).

続けて、評価値算出部7bは、画像生成部6からライブビュー画像P1の画像データが送られてくる毎に、当該画像データに対して領域設定部7aにより設定された複数(例えば、3つ)のAF評価領域A、…の画像の画像データに基づいて、例えば、各AF評価領域Aの画像のコントラストの高低を示すAF評価値を算出して取得する(ステップS33)。なお、算出された各AF評価領域AのAF評価値は、フォーカスレンズアドレスと対応付けてバッファメモリ12に格納される。   Subsequently, each time the image data of the live view image P1 is sent from the image generation unit 6, the evaluation value calculation unit 7b receives a plurality of (for example, three) values set by the region setting unit 7a for the image data. ) In the AF evaluation area A,..., For example, an AF evaluation value indicating the contrast level of the image in each AF evaluation area A is calculated and acquired (step S33). The calculated AF evaluation value of each AF evaluation area A is stored in the buffer memory 12 in association with the focus lens address.

次に、合焦制御部7cは、評価値算出部7bにより算出された複数のAF評価領域A、…に対応する各コントラストに基づいて、何れかのAF評価領域Aにてコントラストのピークを検出したか否かを判定する(ステップS34)。ここで、何れかのAF評価領域Aにてコントラストのピークを検出していないと判定されると(ステップS34;NO)、合焦制御部7cは、フォーカスレンズアドレスに対応する所定の制御信号をレンズ駆動部2に出力して、フォーカスモータを駆動させることによりフォーカスレンズ1を光軸方向に沿って至近域側に移動させる(ステップS35)。具体的には、合焦制御部7cは、測距位置に対応する所定数のフォーカスレンズアドレスのうち、フォーカスレンズ1の焦点距離が無限遠から所定段階短くなるようなフォーカスレンズアドレスに対応する所定の制御信号をレンズ駆動部2に出力する。これにより、レンズ駆動部2が、フォーカスモータを駆動させて、フォーカスレンズアドレスに対応させるようにフォーカスレンズ1を光軸方向に沿って至近域側に移動させる。
その後、中央制御部14は、処理をステップS33に移行して、評価値算出部7bは、画像生成部6から送られてきたライブビュー画像P1の画像データに対して領域設定部7aにより設定された複数(例えば、3つ)のAF評価領域A、…の画像の画像データに基づいてAF評価値を算出する。
上記の処理をステップS34にて、何れかのAF評価領域Aにてコントラストのピークを検出したと判定されるまで(ステップS34;YES)、実行する。
Next, the focus control unit 7c detects a contrast peak in one of the AF evaluation regions A based on the contrasts corresponding to the plurality of AF evaluation regions A calculated by the evaluation value calculation unit 7b. It is determined whether or not (step S34). If it is determined that no contrast peak is detected in any AF evaluation area A (step S34; NO), the focus control unit 7c outputs a predetermined control signal corresponding to the focus lens address. The focus lens 1 is moved to the close side along the optical axis direction by outputting to the lens driving unit 2 and driving the focus motor (step S35). Specifically, the focus control unit 7c, among a predetermined number of focus lens addresses corresponding to the ranging positions, has a predetermined lens lens corresponding to a focus lens address that causes the focal length of the focus lens 1 to be shortened by a predetermined step from infinity. A control signal is output to the lens driving unit 2. As a result, the lens driving unit 2 drives the focus motor to move the focus lens 1 toward the closest region along the optical axis direction so as to correspond to the focus lens address.
Thereafter, the central control unit 14 proceeds to step S33, and the evaluation value calculation unit 7b is set by the region setting unit 7a for the image data of the live view image P1 sent from the image generation unit 6. AF evaluation values are calculated based on the image data of a plurality of (for example, three) AF evaluation areas A,.
The above processing is executed until it is determined in step S34 that a contrast peak has been detected in any AF evaluation area A (step S34; YES).

ステップS34にて、何れかのAF評価領域A(例えば、左端のAF評価領域A等)にてコントラストのピークを検出したと判定されると(ステップS34;YES)、合焦制御部7cは、何れかのAF評価領域Aに対応するコントラストのピークを検出した測距位置をフォーカスレンズ1の合焦位置とする制御信号をレンズ駆動部2に出力する。これにより、レンズ駆動部2が、最初にコントラストのピークを検出した位置より至近域側にフォーカスレンズ1を移動させる動作を停止する。このとき、フォーカスレンズ1は、ピークを検出するためにピーク位置を少し越えて移動するので、当該フォーカスレンズ1をピーク位置に戻すために、フォーカスモータを逆に駆動させて、フォーカスレンズ1を光軸方向に沿って移動させてコントラストのピークを検出した測距位置に戻す(ステップS36)。
このように、合焦制御部7cは、フォーカスレンズ1の合焦位置を無限遠側から調整していき、ピークを検出した位置より至近域側へのフォーカスレンズの移動が制限されるので、ライブビュー画像P1内の所定の被写体Sにおける中央部よりも距離が遠い位置へのピント合わせをより短い時間で行うことができる。
If it is determined in step S34 that a contrast peak has been detected in any AF evaluation area A (for example, the leftmost AF evaluation area A) (step S34; YES), the focus control unit 7c A control signal is output to the lens drive unit 2 that sets the distance measurement position at which the contrast peak corresponding to any AF evaluation area A is detected as the focus position of the focus lens 1. As a result, the lens driving unit 2 stops the operation of moving the focus lens 1 closer to the closest side than the position where the contrast peak is first detected. At this time, the focus lens 1 moves slightly beyond the peak position in order to detect the peak. Therefore, in order to return the focus lens 1 to the peak position, the focus motor is driven reversely, It is moved along the axial direction to return to the distance measuring position where the peak of contrast is detected (step S36).
As described above, the focus control unit 7c adjusts the focus position of the focus lens 1 from the infinity side, and the movement of the focus lens from the position where the peak is detected to the closest side is limited. It is possible to focus in a shorter time to a position farther than the center of the predetermined subject S in the view image P1.

その後、中央制御部14は、撮像制御部5に対して所定の制御信号を出力して、当該所定の制御信号に従って、撮像制御部5は、電子撮像部3やユニット回路4の動作タイミングをライブビュー表示用の駆動に対応するように切り替える(ステップS37)。
これにより、焦点調整処理を終了する。
以上は、ホワイトボード専用の撮像処理における焦点調整処理であるが、通常の撮像処理における焦点調整処理においては、特に所定の被写体Sの中央部よりも距離が遠い位置にピントをずらすような制御は行われない。つまり、通常の焦点調整処理では、被写体の中央部など、通常の被写体の撮影に適した位置にピントを合わせるが、ホワイトボード専用の焦点調整処理においては、通常の焦点調整処理で合わせられるピント位置に対して所定量だけ距離が遠い位置にピントをずらす制御を行う。
Thereafter, the central control unit 14 outputs a predetermined control signal to the imaging control unit 5, and the imaging control unit 5 displays the operation timing of the electronic imaging unit 3 and the unit circuit 4 according to the predetermined control signal. Switching is made so as to correspond to the drive for view display (step S37).
Thus, the focus adjustment process is finished.
The above is the focus adjustment process in the imaging process dedicated to the whiteboard, but in the focus adjustment process in the normal imaging process, control that shifts the focus to a position farther than the center portion of the predetermined subject S is particularly performed. Not done. In other words, in the normal focus adjustment process, the focus is adjusted to a position suitable for shooting a normal subject, such as the center of the subject, but in the focus adjustment process dedicated to the whiteboard, the focus position to be adjusted in the normal focus adjustment process In contrast, control is performed to shift the focus to a position that is a predetermined distance away.

図2に示すように、次に、中央制御部14は、撮像制御部5に露出条件(シャッター速度、絞り、増幅率等)やホワイトバランス等の条件を調整させて、所定の被写体Sとしてのホワイトボードの光学像を所定の条件で電子撮像部3により撮像させる(ステップS4)。   As shown in FIG. 2, the central control unit 14 then causes the imaging control unit 5 to adjust the exposure conditions (shutter speed, aperture, amplification factor, etc.), white balance, and other conditions as a predetermined subject S. An optical image of the whiteboard is picked up by the electronic image pickup unit 3 under a predetermined condition (step S4).

続けて、画像処理部8の四辺形変換処理部8bは、輪郭抽出部8aにより抽出された四角領域に対する直角四辺形変換処理を行って直角四辺形画像P3(図4(c)参照)を生成する画像生成処理を行う(ステップS5)。
具体的には、画像処理部8の輪郭抽出部8aは、例えば、画像生成部6により生成されたホワイトボードの撮像画像P2のYUVデータの輝度信号Yを取得して、当該輝度信号Yに対して直線検出処理を施して直線を検出し、所定方向に延在する4本の直線によって形成される四角形を輪郭として特定する。その後、輪郭抽出部8aは、特定された四角形内の画像領域を所定の画像領域R(図4(b)参照)として抽出する。
続けて、四辺形変換処理部8bは、輪郭抽出部8aにより抽出された四角領域(所定の画像領域R)に対して、短辺側を長辺側に合わせるように相対的に拡大する直角四辺形変換処理を行って直角四辺形画像P3を生成する。
Subsequently, the quadrangle conversion processing unit 8b of the image processing unit 8 performs a right-angled quadrangle conversion process on the quadrangular area extracted by the contour extraction unit 8a to generate a right-angled quadrangle image P3 (see FIG. 4C). An image generation process is performed (step S5).
Specifically, the contour extraction unit 8a of the image processing unit 8 acquires, for example, the luminance signal Y of the YUV data of the captured image P2 of the whiteboard generated by the image generation unit 6 and outputs the luminance signal Y to the luminance signal Y. A straight line is detected to detect a straight line, and a quadrangle formed by four straight lines extending in a predetermined direction is specified as an outline. Thereafter, the contour extracting unit 8a extracts the image area within the specified quadrangle as a predetermined image area R (see FIG. 4B).
Subsequently, the quadrilateral transformation processing unit 8b is a rectangular quadrangle that is relatively enlarged with respect to the square region (predetermined image region R) extracted by the contour extracting unit 8a so that the short side is aligned with the long side. A right-angled quadrilateral image P3 is generated by performing shape conversion processing.

次に、画像処理部8は、四辺形変換処理部8bにより生成された直角四辺形画像P3の画像データに対して、例えば、コントラスト調整やスムージング処理等の所定の画像処理を施した後、符号化部(図示略)により所定の符号化方式(例えば、JPEG方式等)により圧縮・符号化する(ステップS6)。その後、中央制御部14は、所定の符号化方式(例えば、JPEG方式等)により圧縮・符号化された直角四辺形画像P3の画像データを画像記録部10に記録させる(ステップS7)。
これにより、撮像処理を終了する。
Next, the image processing unit 8 performs predetermined image processing such as contrast adjustment and smoothing processing on the image data of the right-angled quadrilateral image P3 generated by the quadrangle conversion processing unit 8b. The encoding unit (not shown) compresses and encodes the data using a predetermined encoding method (for example, JPEG method) (step S6). Thereafter, the central control unit 14 causes the image recording unit 10 to record the image data of the rectangular quadrilateral image P3 compressed and encoded by a predetermined encoding method (for example, JPEG method) (step S7).
Thereby, the imaging process is terminated.

以上のように、本実施形態の撮像装置100によれば、ホワイトボードを撮像する撮像モードが設定された場合に、ライブビュー画像P1内の所定の被写体Sにおける中央部よりも距離が遠い位置にピントを合わせるようにフォーカスレンズ1の焦点を調整した後、撮像された撮像画像P2内の所定の被写体Sに対する直角四辺形変換処理(歪補正処理)を行って直角四辺形画像P3を生成するので、直角四辺形変換処理にて所定の被写体Sにおける中央部よりも距離が遠い側を相対的に拡大する処理を行っても、従来のように所定の被写体Sにおける中央部よりも距離が遠い側にて他の被写体部分に対する相対的な解像感の劣化が生じることを防止することができる。従って、所定の被写体Sの奥側から手前側までの全範囲において、直角四辺形変換処理により生成される直角四辺形画像P3の解像感のバランスを向上させることができる。
特に、例えば、ホワイトボードなどの所定の被写体Sを撮像する環境が暗い場合などには、適正露出を確保するために絞りを開放(絞り値を小さく)する必要があり、パンフォーカスにて撮像できないような条件下において、直角四辺形変換処理により生成される直角四辺形画像P3の解像感のバランスを向上させることができる。
As described above, according to the imaging apparatus 100 of the present embodiment, when the imaging mode for imaging the whiteboard is set, the distance is greater than the central portion of the predetermined subject S in the live view image P1. After the focus of the focus lens 1 is adjusted so as to be in focus, a right-angled quadrilateral image P3 is generated by performing a right-angled quadrangle conversion process (distortion correction process) on a predetermined subject S in the captured image P2. Even if the process of relatively enlarging the side farther than the center part of the predetermined subject S in the right-angled quadrangle conversion process is performed, the side farther than the center part of the predetermined subject S as in the prior art Thus, it is possible to prevent the degradation of the relative resolution with respect to other subject portions. Therefore, the balance of the resolution of the right-angled quadrilateral image P3 generated by the right-angled quadrangle conversion process can be improved in the entire range from the back side to the near side of the predetermined subject S.
In particular, for example, when the environment for imaging a predetermined subject S such as a white board is dark, it is necessary to open the aperture (small aperture value) in order to ensure proper exposure, and imaging cannot be performed with pan focus. Under such conditions, the balance of the resolution of the right-angled quadrilateral image P3 generated by the right-angled quadrangle conversion process can be improved.

具体的には、フォーカスレンズ1を無限域側から至近域側に移動させる際に、評価値算出部により逐次算出された複数のAF評価領域A、…のAF評価値に基づいて、フォーカスレンズ1の焦点を調整するので、直角四辺形変換処理が施される所定の被写体Sの中央部よりも距離が遠い側で焦点が合った時点で撮像することができ、所定の被写体Sの中央部よりも距離が近い側へフォーカスレンズ1を移動する時間を節約して焦点調整処理の高速化を図ることができる。   Specifically, when the focus lens 1 is moved from the infinite region side to the closest region side, the focus lens 1 is based on the AF evaluation values of the plurality of AF evaluation regions A,... Sequentially calculated by the evaluation value calculation unit. Since the focus of the subject is adjusted, the image can be picked up when the subject is focused on the side farther than the center of the predetermined subject S to which the right-angled quadrilateral transformation processing is applied. However, it is possible to save time for moving the focus lens 1 to the side closer to the distance and to speed up the focus adjustment processing.

また、ライブビュー画像P1の撮像の際に、領域設定部7aにより設定される複数のAF評価領域A、…を所定の被写体Sの中央よりも距離が遠い位置と近い位置のそれぞれに対応させるように撮像の案内を行うので、ユーザが当該撮像の案内に従って、直角四辺形変換処理が施される所定の被写体Sの奥側と手前側の両方にAF評価領域Aを容易に合わせることができる。   Further, when the live view image P1 is captured, the plurality of AF evaluation areas A,... Set by the area setting unit 7a are made to correspond to the positions that are closer to the position farther than the center of the predetermined subject S, respectively. Therefore, the user can easily adjust the AF evaluation area A to both the back side and the near side of the predetermined subject S to which the right-angled quadrangle conversion processing is performed according to the imaging guide.

なお、本発明は、上記実施形態に限定されることなく、本発明の趣旨を逸脱しない範囲において、種々の改良並びに設計の変更を行っても良い。
以下に、撮像装置100の変形例について説明する。
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.
Below, the modification of the imaging device 100 is demonstrated.

<変形例1>
変形例1の撮像装置200は、各種の撮像条件(例えば、焦点距離、撮影距離、絞り値、許容錯乱円径等)に応じた被写界深度を考慮して、フォーカスレンズ1の合焦位置を調整する。
なお、変形例1の撮像装置200は、上記した以外の点で上記実施形態の撮像装置100と略同様の構成をなし、その説明は省略する。
<Modification 1>
The imaging apparatus 200 according to the first modification takes into account the focus position of the focus lens 1 in consideration of the depth of field according to various imaging conditions (for example, focal length, imaging distance, aperture value, allowable confusion circle diameter, and the like). Adjust.
Note that the imaging apparatus 200 according to the first modification has substantially the same configuration as the imaging apparatus 100 according to the above-described embodiment except for the points described above, and a description thereof will be omitted.

即ち、例えば、焦点距離が長かったり、撮影距離(被写体までの距離)が短かったり(図6(a)及び図6(b)参照)、絞り値が小さかったり、許容錯乱円径が小さい場合には、被写界深度が浅くなるため、所定の被写体Sの中央よりも距離が遠い位置にピントが合った状態で、当該所定の被写体Sにおける被写界深度の近点よりも手前側の画像がボケた状態となってしまう場合がある。その後、四辺形変換処理部8bが、輪郭抽出部8aにより抽出された四角領域の短辺側(所定の被写体Sの中央よりも距離が遠い側)を長辺側(所定の被写体Sの中央よりも距離が近い側)に対して相対的に拡大すると、生成された直角四辺形画像P3の所定の被写体Sの中央よりも距離が遠い側と距離が近い側とでボケ度合いに差が生じ、その後の画像処理にてスムージングを行っても文字や図形等の情報の解像感に差が生じる虞がある。
そこで、合焦制御部7cは、所定の被写体Sの中央よりも距離が遠い位置に合わせたフォーカスレンズ1の合焦位置を、被写界深度の遠点側にて許容される分だけ手前側に補正する。
That is, for example, when the focal length is long, the shooting distance (distance to the subject) is short (see FIGS. 6A and 6B), the aperture value is small, or the allowable circle of confusion is small. Since the depth of field becomes shallow, an image in front of the near point of the depth of field in the predetermined subject S in a state where the distance is farther than the center of the predetermined subject S. May become out of focus. Thereafter, the quadrilateral conversion processing unit 8b sets the short side (the side farther from the center of the predetermined subject S) of the square area extracted by the contour extracting unit 8a to the long side (the center of the predetermined subject S). If the distance is relatively large, the degree of blur is different between the side farther than the center of the predetermined subject S of the generated right-angled quadrilateral image P3 and the side closer to the distance. Even if smoothing is performed in the subsequent image processing, there may be a difference in the resolution of information such as characters and graphics.
Therefore, the focus control unit 7c moves the in-focus position of the focus lens 1 adjusted to a position farther from the center of the predetermined subject S by an amount allowed on the far point side of the depth of field. To correct.

図5に示すように、AF処理部7は、領域設定部7aと、評価値算出部7bと、合焦制御部7cとに加えて、補正条件判定部7dを具備している。
補正条件判定部7dは、ライブビュー画像P1を撮像する際の各種の撮像条件(例えば、焦点距離、撮影距離、絞り値、許容錯乱円径等)を基準として前方被写界深度及び後方被写界深度を算出して、算出された前方被写界深度及び後方被写界深度を加算した被写界深度が所定の基準値よりも浅いか否かを判定する。なお、所定の基準値は、例えば、四辺形変換処理部8bによる四角領域の短辺側の拡大率等を考慮して適宜任意に設定される。
As shown in FIG. 5, the AF processing unit 7 includes a correction condition determination unit 7d in addition to an area setting unit 7a, an evaluation value calculation unit 7b, and a focus control unit 7c.
The correction condition determination unit 7d uses the various imaging conditions (for example, focal length, shooting distance, aperture value, allowable confusion circle diameter, etc.) when capturing the live view image P1 as a reference, and the depth of front field and the rear field of view. The depth of field is calculated, and it is determined whether or not the depth of field obtained by adding the calculated forward depth of field and backward depth of field is shallower than a predetermined reference value. Note that the predetermined reference value is arbitrarily set as appropriate in consideration of, for example, the enlargement ratio on the short side of the square region by the quadrilateral conversion processing unit 8b.

合焦制御部7cは、補正条件判定部7dにより被写界深度が所定の基準値よりも浅いと判定された場合に、上記実施形態と同様にして調整されたフォーカスレンズ1の合焦位置、即ち、所定の被写体Sの中央よりも距離が遠い位置に合わせたフォーカスレンズ1の合焦位置を調整する。具体的には、合焦制御部7cは、補正条件判定部7dにより算出された後方被写界深度に基づいて、フォーカスレンズ1の光軸方向の位置を被写界深度の遠点側にて許容される分だけ至近域側(近点側)に移動させることで、当該フォーカスレンズ1の合焦位置を補正する。   When the correction condition determination unit 7d determines that the depth of field is shallower than a predetermined reference value, the focusing control unit 7c adjusts the focus position of the focus lens 1 adjusted in the same manner as in the above embodiment. That is, the focus position of the focus lens 1 adjusted to a position farther from the center of the predetermined subject S is adjusted. Specifically, the focus control unit 7c sets the position in the optical axis direction of the focus lens 1 on the far point side of the depth of field based on the rear depth of field calculated by the correction condition determination unit 7d. The in-focus position of the focus lens 1 is corrected by moving it to the closest side (near point side) by an allowable amount.

次に、変形例1の撮像装置200による焦点調整処理について図7を参照して詳細に説明する。
変形例1の撮像装置200による焦点調整処理のうち、ステップS31〜S35の処理は、上記実施形態の焦点調整処理と同様であり、その詳細な説明は省略する。
Next, focus adjustment processing by the imaging apparatus 200 according to Modification 1 will be described in detail with reference to FIG.
Among the focus adjustment processes performed by the imaging apparatus 200 according to the first modification, the processes in steps S31 to S35 are the same as the focus adjustment processes in the above-described embodiment, and a detailed description thereof is omitted.

図7に示すように、ステップS34にて、何れかのAF評価領域Aにてコントラストのピークを検出したと判定されると(ステップS34;YES)、AF処理部7の補正条件判定部7dは、ライブビュー画像P1を撮像する際の被写界深度が所定の基準値よりも浅いか否かを判定する(ステップS41)。具体的には、補正条件判定部7dは、各種の撮像条件(例えば、焦点距離、撮影距離、絞り値、許容錯乱円径等)を基準として前方被写界深度及び後方被写界深度を算出し、前方被写界深度及び後方被写界深度を加算した被写界深度が所定の基準値よりも浅いか否かを判定する。
ここで、被写界深度が所定の基準値よりも浅いと判定されると(ステップS41;YES)、合焦制御部7cは、何れかのAF評価領域Aに対応するコントラストのピークを検出した測距位置に対応するフォーカスレンズ1の合焦位置を補正する(ステップS42)。具体的には、合焦制御部7cは、補正条件判定部7dにより算出された後方被写界深度に基づいて、フォーカスレンズ1の光軸方向の位置を被写界深度の遠点側にて許容される分だけ至近域側(近点側)に移動させることで、当該フォーカスレンズ1の合焦位置を補正する。
As shown in FIG. 7, when it is determined in step S34 that a contrast peak has been detected in any AF evaluation area A (step S34; YES), the correction condition determination unit 7d of the AF processing unit 7 Then, it is determined whether or not the depth of field when capturing the live view image P1 is shallower than a predetermined reference value (step S41). Specifically, the correction condition determination unit 7d calculates the front depth of field and the rear depth of field based on various imaging conditions (for example, focal length, shooting distance, aperture value, allowable confusion circle diameter, etc.). Then, it is determined whether or not the depth of field obtained by adding the front depth of field and the rear depth of field is shallower than a predetermined reference value.
When it is determined that the depth of field is shallower than the predetermined reference value (step S41; YES), the focus control unit 7c detects a contrast peak corresponding to any AF evaluation area A. The focus position of the focus lens 1 corresponding to the distance measurement position is corrected (step S42). Specifically, the focus control unit 7c sets the position in the optical axis direction of the focus lens 1 on the far point side of the depth of field based on the rear depth of field calculated by the correction condition determination unit 7d. The in-focus position of the focus lens 1 is corrected by moving it to the closest side (near point side) by an allowable amount.

その後、合焦制御部7cは、補正済みのフォーカスレンズ1の合焦位置に対応するフォーカスレンズアドレスに係る所定の制御信号をレンズ駆動部2に出力する。これにより、レンズ駆動部2が、フォーカスモータを駆動させて、補正済みのフォーカスレンズ1の合焦位置までフォーカスレンズ1を光軸方向に沿って移動させる(ステップS43)。
その後、中央制御部14は、処理をステップS37に移行して、撮像制御部5は、電子撮像部3やユニット回路4の動作タイミングをライブビュー表示用の駆動に対応するように切り替えた後、焦点調整処理を終了する。
Thereafter, the focus control unit 7 c outputs a predetermined control signal related to the focus lens address corresponding to the focus position of the corrected focus lens 1 to the lens driving unit 2. Thereby, the lens driving unit 2 drives the focus motor to move the focus lens 1 along the optical axis direction to the in-focus position of the corrected focus lens 1 (step S43).
Thereafter, the central control unit 14 shifts the processing to step S37, and the imaging control unit 5 switches the operation timing of the electronic imaging unit 3 and the unit circuit 4 so as to correspond to the driving for live view display. The focus adjustment process ends.

なお、ステップS41にて、被写界深度が所定の基準値よりも浅くないと判定された場合には(ステップS41;NO)、合焦制御部7cは、処理をステップS36に移行し、上記実施形態の焦点調整処理のステップS36と同様の処理を行う。   When it is determined in step S41 that the depth of field is not shallower than the predetermined reference value (step S41; NO), the focus control unit 7c moves the process to step S36, and The same process as step S36 of the focus adjustment process of the embodiment is performed.

従って、変形例1の撮像装置200によれば、各種の撮像条件に応じた被写界深度を考慮してフォーカスレンズ1の合焦位置を調整するので、所定の被写体Sにおける被写界深度の近点よりも手前側の画像がボケた状態となってしまい、直角四辺形変換処理により生成される直角四辺形画像P3の所定の被写体Sの中央よりも距離が遠い側と距離が近い側とでボケ度合いに差が生じる場合と、そうで無い場合のいずれの場合であっても、所定の被写体Sの奥側から手前側までの全範囲において、直角四辺形変換処理により生成される直角四辺形画像P3の解像感のバランスを向上させることができる。   Therefore, according to the imaging device 200 of the first modification, the focus position of the focus lens 1 is adjusted in consideration of the depth of field according to various imaging conditions. The image on the near side from the near point is in a blurred state, and the side farther than the center of the predetermined subject S of the right-angled quadrilateral image P3 generated by the right-angled quadrangle conversion process is closer to the side. The right-angled quadrangle generated by the right-angled quadrangle conversion processing in the entire range from the back side to the near side of the predetermined subject S, regardless of whether the degree of blur occurs or not The balance of the resolution of the shape image P3 can be improved.

<変形例2>
変形例2の撮像装置300は、所定の被写体Sの中央部から距離の遠い位置と距離の近い位置との遠近差に応じて、撮像処理の内容を変更する。
なお、変形例2の撮像装置300は、上記した以外の点で上記実施形態の撮像装置100と略同様の構成をなし、その説明は省略する。
<Modification 2>
The imaging apparatus 300 according to Modification 2 changes the content of the imaging process according to the perspective difference between the position far from the center of the predetermined subject S and the position near the distance.
Note that the imaging apparatus 300 of Modification 2 has substantially the same configuration as the imaging apparatus 100 of the above-described embodiment except for the points described above, and a description thereof is omitted.

図8に示すように、AF処理部7は、領域設定部7aと、評価値算出部7bと、合焦制御部7cとに加えて、遠近差判定部7eを具備している。   As shown in FIG. 8, the AF processing unit 7 includes a perspective difference determination unit 7e in addition to an area setting unit 7a, an evaluation value calculation unit 7b, and a focus control unit 7c.

合焦制御部7cは、領域設定部7aにより設定された複数のAF評価領域A、…の各々について評価値算出部7bにより算出されたAF評価値に基づいて、各AF評価領域Aに対応するコントラストのピーク、即ち、各AF評価領域Aに対応するフォーカスレンズ1の合焦位置を検出する。
遠近差判定部7eは、合焦制御部7cにより検出された各AF評価領域Aのフォーカスレンズ1の合焦位置、具体的には、所定の被写体Sの中央部から距離の遠い位置に対応するAF評価領域Aに係るフォーカスレンズ1の合焦位置と当該所定の被写体Sの中央部から距離の近い位置に対応するAF評価領域Aに係るフォーカスレンズ1の合焦位置とに基づいて、所定の被写体Sの中央部から距離の遠い位置と距離の近い位置との遠近差を算出する。そして、遠近差判定部7eは、算出された遠近差が、第1判定値及びこの第1判定値よりも大きい第2判定値により規定される所定の距離範囲内にあるか否かを判定する。
なお、遠近差判定部7eにより所定の被写体Sにおける遠近差が所定の距離範囲内にあると判定されると、判断部c1は、撮像画像P2の画像データ(YUVデータ)に対して四辺形変換処理部8bによる歪補正処理を施すと判断して、撮像処理にて、上記実施形態と同様の焦点調整処理が行われる。
The focusing control unit 7c corresponds to each AF evaluation region A based on the AF evaluation value calculated by the evaluation value calculation unit 7b for each of the plurality of AF evaluation regions A,... Set by the region setting unit 7a. The contrast peak, that is, the focus position of the focus lens 1 corresponding to each AF evaluation area A is detected.
The perspective difference determination unit 7e corresponds to a focus position of the focus lens 1 in each AF evaluation area A detected by the focus control unit 7c, specifically, a position far from the center of the predetermined subject S. Based on the in-focus position of the focus lens 1 related to the AF evaluation area A and the in-focus position of the focus lens 1 related to the AF evaluation area A corresponding to a position close to the center of the predetermined subject S. A perspective difference between a position far from the center of the subject S and a position near the distance is calculated. Then, the perspective difference determination unit 7e determines whether or not the calculated perspective difference is within a predetermined distance range defined by the first determination value and the second determination value that is larger than the first determination value. .
When the perspective difference determination unit 7e determines that the perspective difference in the predetermined subject S is within the predetermined distance range, the determination unit c1 converts the image data (YUV data) of the captured image P2 into a quadrangle. It is determined that the distortion correction process is performed by the processing unit 8b, and the focus adjustment process similar to that in the above embodiment is performed in the imaging process.

また、画像処理部8は、輪郭抽出部8aと、四辺形変換処理部8bとに加えて、合成画像生成部8cを具備している。
合成画像生成部8cは、遠近差判定部7eにより所定の被写体Sにおける遠近差が所定の距離範囲内になく、且つ、第2判定値よりも大きいと判定された場合に、合焦制御部7cにより複数のAF評価領域A、…の各々に対応するフォーカスレンズ1の合焦位置にフォーカスレンズ1をそれぞれ移動させた状態で撮像された複数の画像を画像生成部6から取得する。そして、合成画像生成部8cは、複数の画像の各々からAF評価値が最も高いAF評価領域Aが含まれる画像領域(例えば、水平方向に略等間隔で垂直方向に沿って分割された略矩形状の画像領域)をそれぞれトリミングして抽出する。
即ち、合成画像生成部8cは、例えば、3つのAF評価領域A、…のうち、中央のAF評価領域Aを基準としてフォーカスレンズ1の焦点調整が行われて撮像された画像からトリミングした所定の被写体Sの中央部にピントが合った画像領域、最も左端のAF評価領域Aを基準としてフォーカスレンズ1の焦点調整が行われて撮像された画像からトリミングした中央部から距離の遠い位置にピントが合った画像領域、最も右端のAF評価領域Aを基準としてフォーカスレンズ1の焦点調整が行われて撮像された画像からトリミングした中央部から距離の遠い位置にピントが画像領域を取得する。
そして、合成画像生成部8cは、各AF評価領域Aに応じて抽出された複数の画像領域どうしを合成して一の合成画像を生成する。
The image processing unit 8 includes a composite image generation unit 8c in addition to the contour extraction unit 8a and the quadrilateral conversion processing unit 8b.
When the perspective difference determination unit 7e determines that the perspective difference in the predetermined subject S is not within the predetermined distance range and is greater than the second determination value, the composite image generation unit 8c focuses the focus control unit 7c. Are obtained from the image generator 6 while the focus lens 1 is moved to the in-focus position of the focus lens 1 corresponding to each of the plurality of AF evaluation areas A,. Then, the composite image generation unit 8c includes an image area including the AF evaluation area A having the highest AF evaluation value from each of the plurality of images (for example, a substantially rectangular shape divided along the vertical direction at substantially equal intervals in the horizontal direction). Each of the shape image areas) is trimmed and extracted.
That is, the composite image generation unit 8c, for example, has a predetermined trimmed from an image captured by performing focus adjustment of the focus lens 1 with reference to the central AF evaluation area A among the three AF evaluation areas A,. The image is focused on the center of the subject S, and the focus evaluation of the focus lens 1 is performed with the leftmost AF evaluation area A as a reference. The focus is acquired at a position far from the center portion obtained by adjusting the focus of the focus lens 1 on the basis of the matched image area and the rightmost AF evaluation area A as a reference and trimming from the captured image.
Then, the composite image generation unit 8c generates a single composite image by combining a plurality of image regions extracted according to each AF evaluation region A.

その後、輪郭抽出部8aは、合成画像生成部8cにより生成された合成画像に対して輪郭抽出処理を施して所定の画像領域Rを抽出する。   After that, the contour extraction unit 8a performs a contour extraction process on the composite image generated by the composite image generation unit 8c to extract a predetermined image region R.

次に、変形例2の撮像装置300による撮像処理について、図9を参照して説明する。
変形例2の撮像装置300による焦点調整処理のうち、ステップS0〜S7の処理は、上記実施形態の焦点調整処理と同様であり、その詳細な説明は省略する。
Next, imaging processing performed by the imaging apparatus 300 according to Modification 2 will be described with reference to FIG.
Among the focus adjustment processes performed by the imaging apparatus 300 according to the second modification, the processes in steps S0 to S7 are the same as the focus adjustment processes in the above embodiment, and a detailed description thereof is omitted.

図9に示すように、ステップS2にて、撮像指示が入力されたと判定されると(ステップS2;YES)、AF処理部7の遠近差判定部7eは、所定の被写体Sの中央部から距離の遠い位置と距離の近い位置との遠近差を検出する(ステップS51)。
具体的には、合焦制御部7cは、複数のAF評価領域A、…の各々について評価値算出部7bにより算出されたAF評価値に基づいて、各AF評価領域Aに対応するコントラストのピーク(各AF評価領域Aに対応するフォーカスレンズ1の合焦位置)を検出する。そして、遠近差判定部7eは、合焦制御部7cにより検出された各AF評価領域Aのフォーカスレンズ1の合焦位置、具体的には、所定の被写体Sの中央部から距離の遠い位置に対応するAF評価領域Aに係るフォーカスレンズ1の合焦位置と当該所定の被写体Sの中央部から距離の近い位置に対応するAF評価領域Aに係るフォーカスレンズ1の合焦位置とに基づいて、所定の被写体Sの中央部から距離の遠い位置と距離の近い位置との遠近差を算出する。
As shown in FIG. 9, when it is determined in step S2 that an imaging instruction has been input (step S2; YES), the perspective difference determination unit 7e of the AF processing unit 7 is distanced from the center of the predetermined subject S. The distance difference between the far position and the near position is detected (step S51).
Specifically, the focus control unit 7c determines the contrast peak corresponding to each AF evaluation region A based on the AF evaluation value calculated by the evaluation value calculation unit 7b for each of the plurality of AF evaluation regions A,. (Focus position of the focus lens 1 corresponding to each AF evaluation area A) is detected. Then, the perspective difference determination unit 7e is located at a focus position of the focus lens 1 in each AF evaluation area A detected by the focus control unit 7c, specifically, at a position far from the center of the predetermined subject S. Based on the in-focus position of the focus lens 1 related to the corresponding AF evaluation area A and the in-focus position of the focus lens 1 related to the AF evaluation area A corresponding to a position close to the center of the predetermined subject S, A perspective difference between a position far from the center of the predetermined subject S and a position near the distance is calculated.

続けて、遠近差判定部7eは、算出された所定の被写体Sにおける遠近差が、第1判定値及び第2判定値により規定される所定の距離範囲内にあるか否かを判定し(ステップS52)、当該判定結果に応じて処理を分岐させる。
ここで、所定の被写体Sにおける遠近差が所定の距離範囲内にあると判定された場合には(ステップS52;遠近差が所定の距離範囲内)、上記実施形態と同様の焦点調整処理(ステップS3)が行われる。この場合、既に複数のAF評価領域A、…の各々に対応するフォーカスレンズ1の合焦位置が検出されているので、合焦制御部7cは、複数のAF評価領域A、…のうち、フォーカスレンズ1が最も無限域側に配置されるAF評価領域Aに対応する測距位置をフォーカスレンズ1の合焦位置として、フォーカスレンズ1を所定位置まで移動させても良い。
即ち、合焦制御部7cは、複数のAF評価領域A、…でAF評価値のピークを検出する複数の合焦距離を特定し、これら複数の合焦距離の範囲の中で、所定の被写体Sの中央部よりも距離が遠い合焦距離にピントを合わせるようにフォーカスレンズ1の合焦位置を調整する。
また、その後のステップS5における直角四辺形変換処理にあっては、四辺形変換処理部8bは、複数のAF評価領域A、…でAF評価値のピークを検出した複数の合焦距離に基づいて、撮像距離が遠い側の被写体部分と撮像距離が近い側の被写体部分との撮像距離の比を特定して、撮像距離が遠い側の被写体部分の撮像距離が近い側の被写体部分に対する相対的な拡大率を決定するようにしても良い。
Subsequently, the perspective difference determination unit 7e determines whether or not the calculated perspective difference in the predetermined subject S is within a predetermined distance range defined by the first determination value and the second determination value (step S1). S52), the process is branched according to the determination result.
Here, when it is determined that the perspective difference in the predetermined subject S is within the predetermined distance range (step S52; the perspective difference is within the predetermined distance range), the focus adjustment process similar to that in the above embodiment (step S3) is performed. In this case, since the focus position of the focus lens 1 corresponding to each of the plurality of AF evaluation areas A,... Has already been detected, the focus control unit 7c selects the focus among the plurality of AF evaluation areas A,. The focus lens 1 may be moved to a predetermined position, with the distance measurement position corresponding to the AF evaluation area A where the lens 1 is disposed on the most infinite region side as the focus position of the focus lens 1.
That is, the focus control unit 7c specifies a plurality of focus distances for detecting the peak of the AF evaluation value in the plurality of AF evaluation areas A,..., And a predetermined subject within the range of the plurality of focus distances. The focus position of the focus lens 1 is adjusted so that the focus distance is farther than the central portion of S.
Further, in the right-angled quadrangle conversion processing in the subsequent step S5, the quadrilateral conversion processing unit 8b is based on a plurality of in-focus distances in which peaks of AF evaluation values are detected in a plurality of AF evaluation areas A,. The ratio of the imaging distance between the subject part on the far side of the imaging distance and the subject part on the side of the near imaging distance is specified, and the relative part of the subject part on the far side of the imaging distance to the subject part on the near side of the imaging distance is specified. The enlargement rate may be determined.

一方、ステップS52にて、所定の被写体Sにおける遠近差が所定の距離範囲内になく、且つ、第2判定値よりも大きいと判定された場合には(ステップS52;遠近差が第2判定値よりも大きい)、合焦制御部7cは、レンズ駆動部2を制御して複数のAF評価領域A、…の各々に対応するフォーカスレンズ1の合焦位置にフォーカスレンズ1をそれぞれ移動させ、各々のフォーカスレンズ1の合焦位置にて、撮像制御部5は、ホワイトボードの光学像を所定の撮像条件で電子撮像部3により撮像させる(ステップS53)。即ち、フォーカスレンズ1の合焦位置をAF評価領域A毎に異ならせてホワイトボードの光学像を複数回撮像する。
そして、合成画像生成部8cは、撮像された複数の画像を取得した後、当該画像の各々からAF評価値が最も高いAF評価領域Aが含まれる画像領域をそれぞれトリミングして抽出し、各AF評価領域Aに応じて抽出された複数の画像領域どうしを合成して一の合成画像を生成する(ステップS54)。即ち、合成画像生成部8cは、例えば、3つのAF評価領域A、…のうち、中央のAF評価領域Aを基準として所定の被写体Sの中央部にピントが合った画像領域、最も左端のAF評価領域Aを基準として中央部から距離の遠い位置にピントが合った画像領域、最も右端のAF評価領域Aを基準として中央部から距離の遠い位置にピントが画像領域を取得した後、これらの画像領域どうしを合成した合成画像を生成する。
その後、中央制御部14は、処理をステップS5に移行して、四辺形変換処理部8bは、輪郭抽出部8aにより合成画像から抽出された四角領域に対する直角四辺形変換処理を行って直角四辺形画像P3を生成する。
On the other hand, when it is determined in step S52 that the perspective difference in the predetermined subject S is not within the predetermined distance range and is larger than the second determination value (step S52; the perspective difference is the second determination value). The focus control unit 7c controls the lens driving unit 2 to move the focus lens 1 to the focus position of the focus lens 1 corresponding to each of the plurality of AF evaluation areas A,. At the in-focus position of the focus lens 1, the imaging control unit 5 causes the electronic imaging unit 3 to capture an optical image of the whiteboard under predetermined imaging conditions (step S53). In other words, the optical position of the focus lens 1 is varied for each AF evaluation area A, and an optical image of the whiteboard is taken a plurality of times.
Then, after obtaining a plurality of captured images, the composite image generation unit 8c trims and extracts an image area including the AF evaluation area A having the highest AF evaluation value from each of the images, and extracts each AF. A plurality of image areas extracted according to the evaluation area A are combined to generate one combined image (step S54). That is, the composite image generation unit 8c, for example, among the three AF evaluation areas A,..., The image area focused on the center of the predetermined subject S with the center AF evaluation area A as a reference, the leftmost AF An image area that is in focus at a position far from the center with respect to the evaluation area A, and after the focus acquires an image area at a position far from the center with respect to the rightmost AF evaluation area A, these A composite image is generated by combining image regions.
Thereafter, the central control unit 14 shifts the processing to step S5, and the quadrangle conversion processing unit 8b performs a right-angled quadrangle conversion process on the quadrilateral region extracted from the composite image by the contour extraction unit 8a, thereby generating a right-angled quadrilateral. An image P3 is generated.

また、ステップS52にて、所定の被写体Sにおける遠近差が所定の距離範囲内になく、且つ、第1判定値よりも小さいと判定された場合には(ステップS52;遠近差が第1判定値よりも小さい)、合焦制御部7cは、測距方式を「スポットAF」に切り替えて、レンズ駆動部2を制御して複数のAF評価領域A、…のうち、中央のAF評価領域Aに対応するフォーカスレンズ1の合焦位置にフォーカスレンズ1をそれぞれ移動させる(ステップS55)。
その後、中央制御部14は、処理をステップS4に移行して、撮像制御部5は、ホワイトボードの光学像を所定の撮像条件で電子撮像部3により撮像させる(ステップS4)。
If it is determined in step S52 that the perspective difference in the predetermined subject S is not within the predetermined distance range and is smaller than the first determination value (step S52; the perspective difference is the first determination value). The focusing control unit 7c switches the distance measuring method to “spot AF” and controls the lens driving unit 2 to select the AF evaluation area A in the center among the plurality of AF evaluation areas A,. The focus lens 1 is moved to the focus position of the corresponding focus lens 1 (step S55).
Thereafter, the central control unit 14 shifts the processing to step S4, and the imaging control unit 5 causes the electronic imaging unit 3 to capture an optical image of the whiteboard under a predetermined imaging condition (step S4).

従って、変形例2の撮像装置300によれば、所定の被写体Sの中央部から距離の遠い位置と距離の近い位置との遠近差、即ち、所定の被写体Sに対する当該撮像装置300の撮影する角度に応じて、撮像処理の内容を変更するので、解像感のバランスの劣化を抑制した直角四辺形画像P3の生成を効率良く行うことができる。
特に、所定の被写体Sにおける遠近差が所定の距離範囲内になく、且つ、第2判定値よりも大きいと判定された場合に、所定の被写体Sの中央部にピントが合った画像領域、所定の被写体Sの中央部から距離の遠い位置にピントが合った画像領域、所定の被写体Sの中央部から距離の遠い位置にピントが画像領域をそれぞれ対応する撮像画像からトリミングして取得した後、これらの画像領域どうしを合成した合成画像を生成するので、所定の被写体Sの奥側から手前側までの全範囲においてピントが合った合成画像を生成することができる。その後、当該合成画像から抽出された四角領域に対する直角四辺形変換処理が行われて直角四辺形画像P3が生成されることにより、所定の被写体Sの奥側から手前側までの全範囲において、直角四辺形変換処理により生成される直角四辺形画像P3の解像感の劣化をより好適に防止することができる。
Therefore, according to the imaging apparatus 300 of the second modification, the perspective difference between the position far from the center of the predetermined subject S and the position near the distance, that is, the angle at which the imaging apparatus 300 captures the predetermined subject S Accordingly, the contents of the imaging process are changed, so that the right-angled quadrilateral image P3 in which deterioration of the balance of resolution is suppressed can be efficiently generated.
In particular, when it is determined that the perspective difference in the predetermined subject S is not within the predetermined distance range and is larger than the second determination value, an image area in which the center of the predetermined subject S is in focus, An image area focused at a position far from the center of the subject S, and a focus is obtained by trimming the image area from a corresponding captured image at a position far from the center of the predetermined subject S. Since a composite image is generated by combining these image areas, a composite image in focus can be generated in the entire range from the back side to the front side of the predetermined subject S. Thereafter, a right-angled quadrilateral transformation process is performed on the quadrilateral region extracted from the composite image to generate a right-angled quadrilateral image P3, whereby a right angle is obtained in the entire range from the back side to the near side of the predetermined subject S. It is possible to more suitably prevent deterioration in resolution of the right-angled quadrilateral image P3 generated by the quadrilateral conversion process.

なお、上記変形例2にあっては、所定の被写体Sにおける遠近差が所定の距離範囲内になく、且つ、第2判定値よりも大きいと判定された場合に、合成画像を生成するのに代えて、表示部9の表示画面に、直角四辺形変換処理により生成される直角四辺形画像P3の解像感のバランスが劣化する旨の所定の警告メッセージを表示させるようにしても良い。   In the second modification, when it is determined that the perspective difference in the predetermined subject S is not within the predetermined distance range and is larger than the second determination value, the composite image is generated. Instead, a predetermined warning message indicating that the balance of resolution of the right-angled quadrilateral image P3 generated by the right-angled quadrangle conversion process is deteriorated may be displayed on the display screen of the display unit 9.

また、上記実施形態及び各変形例1、2にあっては、レンズに固有に生じる光学像の歪みを補正する歪曲補正における各画像ブロック毎の拡大率を考慮して、複数のAF評価領域A、…の中でピントを合わせるAF評価領域Aを特定しても良い。
即ち、輪郭抽出部8aは、ライブビュー画像P1に対して輪郭抽出処理を行って、所定の四角形を特定する。四辺形変換処理部8bは、特定された所定の四角形を複数の画像ブロックに分割して、各画像ブロックに対する直角四辺形変換処理における拡大率を算出する。また、AF処理部7は、光学ズーム段毎に規定された歪曲補正データに基づいて、輪郭抽出処理にて特定された所定の四角形の各画像ブロック毎の歪曲補正処理における拡大率を算出する。そして、合焦制御部7cは、算出された各画像ブロック毎の直角四辺形変換処理における拡大率及び歪曲補正処理における拡大率に基づいて、最も拡大率が大きくなる画像ブロックの近傍のAF評価領域Aをフォーカスレンズ1の合焦位置の調整用のAF評価領域Aとして特定する。
In the embodiment and each of the first and second modified examples 1 and 2, a plurality of AF evaluation areas A are considered in consideration of an enlargement ratio for each image block in distortion correction for correcting distortion of an optical image inherently generated in the lens. ,... May be specified as an AF evaluation area A to be focused.
That is, the contour extraction unit 8a performs a contour extraction process on the live view image P1 to identify a predetermined square. The quadrangle conversion processing unit 8b divides the specified predetermined rectangle into a plurality of image blocks, and calculates an enlargement ratio in the right-angled quadrangle conversion processing for each image block. In addition, the AF processing unit 7 calculates an enlargement ratio in the distortion correction processing for each image block of the predetermined quadrangle specified by the contour extraction processing, based on the distortion correction data defined for each optical zoom stage. The focus control unit 7c then calculates the AF evaluation area in the vicinity of the image block having the largest enlargement ratio based on the calculated enlargement ratio in the quadrangle quadrangle conversion process and the enlargement ratio in the distortion correction process for each image block. A is specified as the AF evaluation area A for adjusting the focus position of the focus lens 1.

さらに、上記実施形態にあっては、焦点調整処理を、操作入力部11のシャッタボタン11aが全押し操作されたことを契機として行うようにしたが、シャッタボタン11aの半押し操作を契機としたり、シャッタボタン11aの操作の有無に関わらずライブビュー画像P1の表示中に必ず実行するようにしても良い。
また、撮像装置100、200、300の撮像モードとして、ホワイトボードを撮像する撮像モードを設けるか否かは適宜任意に変更することができる。また、焦点調整処理及び画像生成処理を、ホワイトボードを撮像する撮像モードが設定されている場合に実行するようにしたが、これに限られるものではなく、他の撮像モードにて実行するようにしても良い。
Furthermore, in the above-described embodiment, the focus adjustment process is performed when the shutter button 11a of the operation input unit 11 is fully pressed. However, when the shutter button 11a is half-pressed, Regardless of whether the shutter button 11a is operated or not, it may be executed while the live view image P1 is being displayed.
Further, whether or not an imaging mode for imaging a whiteboard is provided as an imaging mode of the imaging devices 100, 200, and 300 can be arbitrarily changed as appropriate. In addition, the focus adjustment process and the image generation process are executed when the imaging mode for imaging the whiteboard is set. However, the present invention is not limited to this, and is executed in another imaging mode. May be.

さらに、撮像装置100、200、300の構成は、上記実施形態に例示したものは一例であり、これに限られるものではなく、少なくとも撮像手段、合焦手段、処理手段を備える構成であれば適宜任意に変更することができる。例えば、撮像の案内(ガイド表示G)を行う案内手段としての表示部9を備えるようにしたが、案内手段を備えるか否かは適宜任意に変更可能である。   Furthermore, the configurations of the imaging devices 100, 200, and 300 are merely examples illustrated in the above-described embodiment, and are not limited thereto. Any configuration that includes at least an imaging unit, a focusing unit, and a processing unit may be used as appropriate. It can be changed arbitrarily. For example, the display unit 9 is provided as guide means for performing imaging guidance (guide display G). However, whether or not the guide means is provided can be arbitrarily changed as appropriate.

加えて、上記実施形態にあっては、処理手段、判断手段、合焦手段としての機能を、中央制御部14の制御下にて、画像処理部8の四辺形変換処理部8b、AF処理部7が駆動することにより実現される構成としたが、これに限られるものではなく、中央制御部14のCPUによって所定のプログラム等が実行されることにより実現される構成としても良い。
即ち、プログラムを記憶するプログラムメモリ13に、生成処理ルーチン、判断処理ルーチン、合焦処理ルーチンを含むプログラムを記憶しておく。そして、生成処理ルーチンにより中央制御部14のCPUを、被写体の各部での撮像距離が異なる状態で撮像して得られた画像に対して、撮像距離が遠い側の被写体部分を相対的に拡大する歪補正処理を施す処理手段として機能させるようにしても良い。また、判断処理ルーチンにより中央制御部14のCPUを、撮像手段による撮像で得られる画像に対して処理手段による歪補正処理を施すか否かを判断する判断手段として機能させるようにしても良い。また、合焦処理ルーチンにより中央制御部14のCPUを、判断手段により歪補正処理を施すと判断された場合は、被写体の中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理を行い、一方、判断手段により歪補正処理を施さないと判断された場合は、所定の焦点調整処理を行わないように制御する合焦手段として機能させるようにしても良い。
In addition, in the above-described embodiment, the functions as the processing unit, the determination unit, and the focusing unit are controlled under the control of the central control unit 14, and the quadrilateral conversion processing unit 8b and the AF processing unit of the image processing unit 8. However, the present invention is not limited to this, and may be realized by executing a predetermined program or the like by the CPU of the central control unit 14.
That is, a program including a generation processing routine, a determination processing routine, and a focusing processing routine is stored in the program memory 13 that stores the program. Then, the CPU of the central control unit 14 relatively enlarges the subject portion on the side where the imaging distance is farther than the image obtained by imaging the CPU of the central control unit 14 in a state where the imaging distance is different in each part of the subject by the generation processing routine. You may make it function as a process means which performs a distortion correction process. Further, the CPU of the central control unit 14 may function as a determination unit that determines whether to perform distortion correction processing by the processing unit on an image obtained by imaging by the imaging unit by a determination processing routine. Further, when it is determined by the focusing processing routine that the CPU of the central control unit 14 performs the distortion correction processing by the determining means, a predetermined focus adjustment processing for focusing at a position where the imaging distance is farther than the central portion of the subject. On the other hand, when it is determined by the determination means that the distortion correction process is not performed, the determination means may function as a focusing means for performing control so as not to perform the predetermined focus adjustment process.

同様に、領域設定手段、算出手段、案内手段、設定手段についても、中央制御部14のCPUによって所定のプログラム等が実行されることにより実現される構成としても良い。   Similarly, the area setting unit, the calculation unit, the guidance unit, and the setting unit may be realized by executing a predetermined program or the like by the CPU of the central control unit 14.

さらに、上記の各処理を実行するためのプログラムを格納したコンピュータ読み取り可能な媒体として、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 レンズ駆動部
3 電子撮像部
7 AF処理部
7a 領域設定部
7b 評価値算出部
7c 合焦制御部
c1 判断部
8 画像処理部
8b 四辺形変換処理部
9 表示部
11 操作入力部
14 中央制御部
DESCRIPTION OF SYMBOLS 100 Imaging device 1 Focus lens 2 Lens drive part 3 Electronic imaging part 7 AF process part 7a Area setting part 7b Evaluation value calculation part 7c Focus control part c1 Judgment part 8 Image processing part 8b Quadrilateral conversion process part 9 Display part 11 Operation Input unit 14 Central control unit

Claims (14)

撮像手段と、
画像内の被写体の歪みを補正する歪補正処理を施す処理手段と、
前記撮像手段による撮像で得られる画像に対して前記処理手段による歪補正処理を施す場合には、被写体の中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理を行うように制御する合焦手段と、
前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を複数設定する領域設定手段と、
前記領域設定手段により設定された前記複数の評価領域について合焦評価値をそれぞれ算出する算出手段と、
を備え、
前記合焦手段は、前記所定の焦点調整処理として、前記撮像手段の合焦距離を無限域側から至近域側に移動させる際に、前記算出手段により逐次算出されるいずれかの評価領域の合焦評価値のピークを検出する合焦距離の中で、少なくとも最も遠い合焦距離に基づいて、被写体の中央部よりも距離が遠い位置にピントを合わせるように焦点を調整する
ことを特徴とする撮像装置。
Imaging means;
Processing means for performing distortion correction processing for correcting distortion of a subject in the image;
When distortion correction processing by the processing means is performed on an image obtained by imaging by the imaging means, control is performed so as to perform predetermined focus adjustment processing for focusing on a position that is farther than the center of the subject. Focusing means to
An area setting means for setting a plurality of evaluation areas in which an in-focus evaluation value is to be calculated in an image captured by the imaging means;
Calculation means for calculating a focus evaluation value for each of the plurality of evaluation areas set by the area setting means;
With
As the predetermined focus adjustment process, the focusing unit adjusts the focus of any evaluation area sequentially calculated by the calculation unit when the focusing distance of the imaging unit is moved from the infinite region side to the closest region side. Based on at least the farthest focus distance for detecting the peak of the focus evaluation value, the focus is adjusted to focus on a position that is farther than the center of the subject. Imaging device.
前記領域設定手段は、前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を所定方向に沿って複数設定することを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the area setting unit sets a plurality of evaluation areas for calculating a focus evaluation value in a predetermined direction in an image captured by the imaging unit. 前記合焦手段は、
前記所定の焦点調整処理として、前記撮像手段の合焦距離を無限域側から至近域側に移動させる途中で前記いずれかの評価領域の合焦評価値のピークを検出した場合は、それより至近域側への合焦距離の移動を中断し、このピークを検出した合焦距離または該合焦距離から所定距離だけ至近域側の合焦距離にピントを合わせるように焦点を調整することを特徴とする請求項1または2に記載の撮像装置。
The focusing means is
As the predetermined focus adjustment process, if the focus evaluation value peak of any one of the evaluation areas is detected while moving the focusing distance of the imaging unit from the infinite range side to the close range side, it is closer to that. The focus is adjusted so that the movement of the focusing distance to the area side is interrupted and the focusing distance at which this peak is detected or the focusing distance on the closest area side is focused by a predetermined distance from the focusing distance. The imaging apparatus according to claim 1 or 2.
前記合焦手段は、
前記所定の焦点調整処理として、前記複数の評価領域で合焦評価値のピークを検出する複数の合焦距離の範囲の中で、被写体の中央部よりも距離が遠い合焦距離にピントを合わせるように焦点を調整することを特徴とする請求項1乃至3の何れか一項に記載の撮像装置。
The focusing means is
As the predetermined focus adjustment processing, focus is adjusted to an in-focus distance that is farther from the center of the subject in a plurality of in-focus distance ranges in which peaks of in-focus evaluation values are detected in the plurality of evaluation areas. The imaging apparatus according to any one of claims 1 to 3, wherein the focus is adjusted as described above.
前記処理手段は、被写体の各部での撮像距離が異なる状態で撮像して得られた画像に対して、撮像距離が遠い側の被写体部分を相対的に拡大する歪補正処理を施すことを特徴とする請求項1乃至4の何れか一項に記載の撮像装置。   The processing means performs a distortion correction process for relatively enlarging a subject portion on a side with a longer imaging distance on an image obtained by imaging with different imaging distances at each part of the subject. The imaging device according to any one of claims 1 to 4. 前記撮像手段による撮像で得られる画像に対して前記処理手段による歪補正処理を施すか否かを判断する判断手段を更に備え、
前記合焦手段は、前記判断手段により歪補正処理を施すと判断されたことを条件として、前記所定の焦点調整処理を行うように制御することを特徴とする請求項1乃至5の何れか一項に記載の撮像装置。
A judgment means for judging whether or not to perform distortion correction processing by the processing means on an image obtained by imaging by the imaging means;
6. The focusing device according to claim 1, wherein the focusing unit performs control so as to perform the predetermined focus adjustment process on condition that the determination unit determines to perform distortion correction processing. The imaging device according to item.
前記処理手段は、撮像距離が遠い側の被写体部分と撮像距離が近い側の被写体部分との撮像距離の比に応じて、撮像距離が遠い側の被写体部分の相対的な拡大率を決定することを特徴とする請求項1乃至6の何れか一項に記載の撮像装置。   The processing means determines a relative enlargement ratio of the subject portion on the far side of the imaging distance according to a ratio of the subject distance on the far side of the subject portion and the subject portion on the near side of the imaging distance. The imaging device according to any one of claims 1 to 6, wherein 前記処理手段は、被写体の輪郭が直角四辺形である場合に、撮像画像から抽出される被写体の輪郭形状に応じて、この抽出された輪郭形状を前記歪補正処理によって直角四辺形に戻すように、撮像距離が遠い側の被写体部分の相対的な拡大率を決定することを特徴とする請求項1乃至6の何れか一項に記載の撮像装置。   When the contour of the subject is a right-angled quadrilateral, the processing means returns the extracted contour shape to the right-angled quadrilateral by the distortion correction processing according to the contour shape of the subject extracted from the captured image. The image pickup apparatus according to claim 1, wherein a relative enlargement ratio of a subject part on a far side of the image pickup distance is determined. 前記処理手段は、前記歪補正処理として、画像内の所定の被写体に対する直角四辺形変換処理を行って直角四辺形画像を生成する画像生成処理を含むことを特徴とする請求項1〜8の何れか一項に記載の撮像装置。   9. The image processing according to claim 1, wherein the processing unit includes an image generation process for generating a right-angled quadrilateral image by performing a right-angled quadrangle conversion process on a predetermined subject in the image as the distortion correction process. The imaging device according to claim 1. 前記撮像手段による画像の撮像の際に、前記領域設定手段により設定される複数の評価領域を前記所定の被写体の中央よりも距離が遠い位置と近い位置のそれぞれに対応させるように撮像の案内を行う案内手段を更に備えることを特徴とする請求項1〜9の何れか一項に記載の撮像装置。   When the image is picked up by the image pickup means, a plurality of evaluation areas set by the area setting means are provided to guide the image pickup so as to correspond to positions that are far from the center of the predetermined subject. The image pickup apparatus according to claim 1, further comprising a guide unit that performs the operation. 前記処理手段は、前記複数の評価領域で合焦評価値のピークを検出した複数の合焦距離に基づいて、撮像距離が遠い側の被写体部分と撮像距離が近い側の被写体部分との撮像距離の比を特定して前記相対的な拡大率を決定することを特徴とする請求項7又は8に記載の撮像装置。 The processing means, based on a plurality of focus distances in which peaks of focus evaluation values are detected in the plurality of evaluation regions, an imaging distance between a subject part on the far side and a subject part on the near side. The image pickup apparatus according to claim 7, wherein the relative enlargement ratio is determined by specifying the ratio. ホワイトボードを撮像する撮像モードを設定する設定手段を更に備え、
前記判断手段は、前記設定手段により前記撮像モードが設定された場合に、前記処理手段による歪補正処理を施すと判断することを特徴とする請求項に記載の撮像装置。
It further comprises setting means for setting an imaging mode for imaging the whiteboard,
The imaging apparatus according to claim 6 , wherein the determination unit determines to perform distortion correction processing by the processing unit when the imaging mode is set by the setting unit.
撮像手段を備える撮像装置を用いた撮像処理方法であって、
画像内の被写体の歪みを補正する歪補正処理と、
前記撮像手段による撮像で得られる画像に対して前記歪補正処理を施す場合には、被写体の中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理と、
前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を複数設定する領域設定処理と、
前記領域設定処理により設定された前記複数の評価領域について合焦評価値をそれぞれ算出する算出処理と、
を含み、
前記所定の焦点調整処理は、前記撮像手段の合焦距離を無限域側から至近域側に移動させる際に、前記算出処理により逐次算出されるいずれかの評価領域の合焦評価値のピークを検出する合焦距離の中で、少なくとも最も遠い合焦距離に基づいて、被写体の中央部よりも距離が遠い位置にピントを合わせるように焦点を調整する
ことを特徴とする撮像処理方法。
An imaging processing method using an imaging device including an imaging means,
Distortion correction processing for correcting distortion of the subject in the image;
When performing the distortion correction process on an image obtained by imaging by the imaging unit, a predetermined focus adjustment process for focusing on a position where the imaging distance is farther than the center of the subject;
An area setting process for setting a plurality of evaluation areas in which an in-focus evaluation value is to be calculated in an image captured by the imaging unit;
A calculation process for calculating a focus evaluation value for each of the plurality of evaluation areas set by the area setting process;
Including
In the predetermined focus adjustment process, when the focusing distance of the imaging unit is moved from the infinite region side to the closest region side, the peak of the focus evaluation value of any evaluation region sequentially calculated by the calculation processing is obtained. An imaging processing method comprising: adjusting a focal point so as to focus on a position farther than a center portion of a subject based on at least a farthest focusing distance among detected focusing distances.
撮像手段を備える撮像装置のコンピュータを、
画像内の被写体の歪みを補正する歪補正処理を施す処理手段、
前記撮像手段による撮像で得られる画像に対して前記処理手段による歪補正処理を施す場合には、被写体の中央部よりも撮像距離が遠い位置にピントを合わせる所定の焦点調整処理を行うように制御する合焦手段、
前記撮像手段により撮像される画像内に、合焦評価値を算出すべき評価領域を複数設定する領域設定手段、
前記領域設定手段により設定された前記複数の評価領域について合焦評価値をそれぞれ算出する算出手段、
として機能させ、
前記合焦手段は、前記所定の焦点調整処理として、前記撮像手段の合焦距離を無限域側から至近域側に移動させる際に、前記算出手段により逐次算出されるいずれかの評価領域の合焦評価値のピークを検出する合焦距離の中で、少なくとも最も遠い合焦距離に基づいて、被写体の中央部よりも距離が遠い位置にピントを合わせるように焦点を調整する
ことを特徴とするプログラム。
A computer of an imaging apparatus comprising imaging means;
Processing means for performing distortion correction processing for correcting distortion of a subject in the image;
When distortion correction processing by the processing means is performed on an image obtained by imaging by the imaging means, control is performed so as to perform predetermined focus adjustment processing for focusing on a position that is farther than the center of the subject. Focusing means,
A region setting unit for setting a plurality of evaluation regions in which an in-focus evaluation value is to be calculated in an image captured by the imaging unit;
Calculation means for calculating a focus evaluation value for each of the plurality of evaluation areas set by the area setting means;
Function as
As the predetermined focus adjustment process, the focusing unit adjusts the focus of any evaluation area sequentially calculated by the calculation unit when the focusing distance of the imaging unit is moved from the infinite region side to the closest region side. Based on at least the farthest focus distance for detecting the peak of the focus evaluation value, the focus is adjusted to focus on a position that is farther than the center of the subject. program.
JP2010243063A 2010-10-29 2010-10-29 Imaging apparatus, imaging processing method, and program Expired - Fee Related JP5747474B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010243063A JP5747474B2 (en) 2010-10-29 2010-10-29 Imaging apparatus, imaging processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010243063A JP5747474B2 (en) 2010-10-29 2010-10-29 Imaging apparatus, imaging processing method, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014180781A Division JP5862732B2 (en) 2014-09-05 2014-09-05 Imaging control apparatus, imaging control method, and program

Publications (3)

Publication Number Publication Date
JP2012095249A JP2012095249A (en) 2012-05-17
JP2012095249A5 JP2012095249A5 (en) 2013-11-28
JP5747474B2 true JP5747474B2 (en) 2015-07-15

Family

ID=46388080

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010243063A Expired - Fee Related JP5747474B2 (en) 2010-10-29 2010-10-29 Imaging apparatus, imaging processing method, and program

Country Status (1)

Country Link
JP (1) JP5747474B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6092371B2 (en) * 2013-04-10 2017-03-08 株式会社東芝 Electronic apparatus and image processing method
JP6486603B2 (en) * 2014-04-03 2019-03-20 シャープ株式会社 Image processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004109246A (en) * 2002-09-13 2004-04-08 Minolta Co Ltd Projection system
JP2010124406A (en) * 2008-11-21 2010-06-03 Konica Minolta Opto Inc Imaging device and electronic apparatus

Also Published As

Publication number Publication date
JP2012095249A (en) 2012-05-17

Similar Documents

Publication Publication Date Title
JP5025532B2 (en) Imaging apparatus, imaging apparatus control method, and imaging apparatus control program
KR101661216B1 (en) Digital image processing apparatus, method for digital image signal processing, medium for recording the method
JP5195660B2 (en) Imaging apparatus, focusing method, and program
JP5664626B2 (en) Image processing apparatus, image processing method, and program
JP5665013B2 (en) Image processing apparatus, image processing method, and program
JP2007142965A (en) Imaging apparatus, screen display method, focus adjusting method, exposure adjusting method, and computer program
JP2007215091A (en) Imaging apparatus and program therefor
JP2010054730A (en) Focusing position detecting device, imaging apparatus, and focusing position detecting method
JP2009218704A (en) Image processing apparatus and image processing method
JP5367129B2 (en) Imaging apparatus, control apparatus, and control method thereof
JP2010154306A (en) Device, program and method for imaging control
JP5747474B2 (en) Imaging apparatus, imaging processing method, and program
JP5195663B2 (en) Imaging apparatus, focusing method, and program
JP5397426B2 (en) Imaging apparatus, focusing method, and program
JP5673454B2 (en) Image processing apparatus, image processing method, and program
JP6675917B2 (en) Imaging device and imaging method
JP5862732B2 (en) Imaging control apparatus, imaging control method, and program
JP4985716B2 (en) Imaging apparatus, method for setting focus evaluation area, and program
JP4888829B2 (en) Movie processing device, movie shooting device, and movie shooting program
JP5477345B2 (en) Imaging apparatus, focusing method, and program
JP5892211B2 (en) Imaging apparatus and program
JP2012220890A (en) Focus adjustment device
JP5561392B2 (en) Imaging apparatus, focusing method, and program
JP5455485B2 (en) Imaging device
JP6003974B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131009

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131009

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140708

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140905

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150326

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150427

R150 Certificate of patent or registration of utility model

Ref document number: 5747474

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees