JP5867894B2 - Imaging apparatus, program, and display method - Google Patents

Imaging apparatus, program, and display method Download PDF

Info

Publication number
JP5867894B2
JP5867894B2 JP2011114810A JP2011114810A JP5867894B2 JP 5867894 B2 JP5867894 B2 JP 5867894B2 JP 2011114810 A JP2011114810 A JP 2011114810A JP 2011114810 A JP2011114810 A JP 2011114810A JP 5867894 B2 JP5867894 B2 JP 5867894B2
Authority
JP
Japan
Prior art keywords
image
straight line
regarded
captured image
horizontal
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
JP2011114810A
Other languages
Japanese (ja)
Other versions
JP2012244536A (en
JP2012244536A5 (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 JP2011114810A priority Critical patent/JP5867894B2/en
Publication of JP2012244536A publication Critical patent/JP2012244536A/en
Publication of JP2012244536A5 publication Critical patent/JP2012244536A5/en
Application granted granted Critical
Publication of JP5867894B2 publication Critical patent/JP5867894B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Indication In Cameras, And Counting Of Exposures (AREA)
  • Studio Devices (AREA)

Description

本発明は、撮影時にその指標として利用される撮影補助線を表示する撮像装置プログラム及び表示方法に関する。 The present invention relates to an imaging apparatus , a program, and a display method for displaying a shooting assistance line used as an index for shooting.

従来、撮像装置としてのデジタルカメラ(コンパクトカメラ)には、グリッド線表示機能が備えられており、水平や垂直を保つために格子状のグリッドがライブビュー画面の全体に表示されるため、撮影者にあっては、画面内のグリッド表示を指標として、撮影画像(ライブビュー画像)内の水平線或いは地平線などが斜めにならないように、カメラ筐体を回転させて撮影するようにしている。このようなグリッド表示は、一般に、メニューの中から選択して設定することができ、ライブビュー画面がグリッド表示により9分割されているので、構図の指標にも利用することができるが、常にグリッドを表示させていると、グリッド表示の不要時には目障りとなり、邪魔になってしまう。また、従来では、電子ファインダに表示するグリッドパターンを選択できるようにした技術も開示されている(特許文献1参照)。   Conventionally, a digital camera (compact camera) as an imaging device has a grid line display function, and a grid-like grid is displayed on the entire live view screen in order to maintain horizontal and vertical directions. In this case, using the grid display in the screen as an index, the camera casing is rotated so that the horizontal line or the horizon in the captured image (live view image) does not become oblique. In general, such a grid display can be set by selecting from a menu, and since the live view screen is divided into nine by the grid display, it can also be used as an index of composition, but always the grid If it is displayed, it becomes annoying and obstructive when the grid display is unnecessary. Conventionally, a technique has also been disclosed in which a grid pattern to be displayed on an electronic viewfinder can be selected (see Patent Document 1).

特開2007−279767号公報JP 2007-279767 A

しかしながら、上述した特許文献1の技術にあっては、選択したグリッドパターンの表示位置が固定されているため、ユーザが望む適切な位置にグリッドが表示されるとは限らず、水平や垂直の指標や構図の指標としての利用に影響を与えてしまい、必ずしも、グリッド表示を効果的に利用できるとは限らなかった。   However, in the technique of Patent Document 1 described above, since the display position of the selected grid pattern is fixed, the grid is not always displayed at an appropriate position desired by the user, and a horizontal or vertical index is displayed. And the use as an index of composition is affected, and the grid display cannot always be effectively used.

本発明の課題は、撮影時にその指標として利用される撮影補助線を必要時に適切な位置に表示できるようにすることである。   An object of the present invention is to make it possible to display an auxiliary shooting line used as an index for shooting at an appropriate position when necessary.

上述した課題を解決するために本発明の一つの態様は、
撮像手段と、
前記撮像手段により取得された撮影画像を表示する表示手段と、
前記撮影画像内に含まれている略直線画像を検出する検出手段と、
前記検出手段により検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する判別手段と、
前記判別手段が前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させる変更手段と、
前記判別手段により前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる表示制御手段と、
を備えるようにしたことを特徴とする撮像装置である。
上述した課題を解決するために本発明の他の態様は、
撮像手段と、
前記撮像手段により取得された撮影画像を表示する表示手段と、
前記撮影画像内に含まれている略直線画像を検出する検出手段と、
前記検出手段により検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する判別手段と、
前記判別手段により前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる表示制御手段と、
を備え、
前記判別手段は、前記検出手段により検出された前記略直線画像の一端部と前記撮影画像の一端部との距離と前記略直線画像の他端部と前記撮影画像の一端部との距離が略同一である場合に、前記略直線画像が略水平或いは略垂直とみなせると判別する、
ようにしたことを特徴とする撮像装置である
In order to solve the above-described problem, one aspect of the present invention is as follows.
Imaging means;
Display means for displaying a captured image acquired by the imaging means;
Detecting means for detecting a substantially linear image included in the captured image;
Discriminating means for discriminating whether or not the substantially linear image detected by the detecting means can be regarded as substantially horizontal or substantially vertical;
Changing means for changing a threshold value as a reference value for determining whether the determining means can determine that the substantially straight line image is substantially horizontal or substantially vertical;
When it is determined by the determining means that the substantially straight line image can be regarded as substantially horizontal or substantially vertical, an auxiliary shooting line is set at a position corresponding to the position of the substantially straight line image in the captured image displayed on the display means. Display control means for displaying;
It is an imaging device characterized by comprising.
In order to solve the above-described problem, another aspect of the present invention provides:
Imaging means;
Display means for displaying a captured image acquired by the imaging means;
Detecting means for detecting a substantially linear image included in the captured image;
Discriminating means for discriminating whether or not the substantially linear image detected by the detecting means can be regarded as substantially horizontal or substantially vertical;
When it is determined by the determining means that the substantially straight line image can be regarded as substantially horizontal or substantially vertical, an auxiliary shooting line is set at a position corresponding to the position of the substantially straight line image in the captured image displayed on the display means. Display control means for displaying;
With
The discriminating means has a distance between one end of the substantially linear image and one end of the captured image detected by the detecting means, and a distance between the other end of the substantially linear image and one end of the captured image. If they are the same, it is determined that the substantially straight line image can be regarded as substantially horizontal or substantially vertical.
The imaging apparatus is characterized by the above .

上述した課題を解決するために本発明の他の態様は、
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備えるコンピュータに対して、
前記撮影画像内に含まれている略直線画像を検出する機能と、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する機能と、
前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させる機能と、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる機能と、
を実現させるためのプログラムである。
上述した課題を解決するために本発明の他の態様は、
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備える撮像装置における表示方法であって、
前記撮影画像内に含まれている略直線画像を検出するステップと、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別するステップと、
前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させるステップと、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させるステップと、
を含むことを特徴とする表示方法である。
上述した課題を解決するために本発明の他の態様は、
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備えるコンピュータに対して、
前記撮影画像内に含まれている略直線画像を検出する機能と、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する機能と、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる機能と、
を実現させ、
検出された前記略直線画像の一端部と前記撮影画像の一端部との距離と前記略直線画像の他端部と前記撮影画像の一端部との距離が略同一である場合に、前記略直線画像が略水平或いは略垂直とみなせると判別する、
ことを特徴とするプログラムである。
上述した課題を解決するために本発明の他の態様は、
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備える撮像装置における表示方法であって、
前記撮影画像内に含まれている略直線画像を検出するステップと、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別するステップと、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させるステップと、
を含み、
検出された前記略直線画像の一端部と前記撮影画像の一端部との距離と前記略直線画像の他端部と前記撮影画像の一端部との距離が略同一である場合に、前記略直線画像が略水平或いは略垂直とみなせると判別する、
ことを特徴とする表示方法である
In order to solve the above-described problem, another aspect of the present invention provides:
For a computer comprising an imaging means and a display means for displaying a captured image acquired by the imaging means,
A function of detecting a substantially straight line image included in the captured image;
A function of determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A function of changing a threshold value as a reference value for determining whether or not the substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A function of displaying a shooting auxiliary line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display unit when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
It is a program for realizing.
In order to solve the above-described problem, another aspect of the present invention provides:
A display method in an imaging apparatus comprising imaging means and display means for displaying a captured image acquired by the imaging means,
Detecting a substantially straight line image included in the captured image;
Determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
Changing a threshold value as a reference value for determining whether or not the substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A step of displaying an auxiliary shooting line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display means when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
It is the display method characterized by including.
In order to solve the above-described problem, another aspect of the present invention provides:
For a computer comprising an imaging means and a display means for displaying a captured image acquired by the imaging means,
A function of detecting a substantially straight line image included in the captured image;
A function of determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A function of displaying a shooting auxiliary line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display unit when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
Realized,
When the detected distance between the one end of the substantially linear image and the one end of the captured image and the distance between the other end of the approximately linear image and the one end of the captured image are substantially the same, It is determined that the image can be regarded as substantially horizontal or substantially vertical.
It is a program characterized by this.
In order to solve the above-described problem, another aspect of the present invention provides:
A display method in an imaging apparatus comprising imaging means and display means for displaying a captured image acquired by the imaging means,
Detecting a substantially straight line image included in the captured image;
Determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A step of displaying an auxiliary shooting line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display means when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
Including
When the detected distance between the one end of the substantially linear image and the one end of the captured image and the distance between the other end of the approximately linear image and the one end of the captured image are substantially the same, It is determined that the image can be regarded as substantially horizontal or substantially vertical.
This is a display method characterized by this .

本発明によれば、撮影時にその指標として利用される撮影補助線を必要時に適切な位置に表示することができ、効果的な撮影支援を実現することが可能となる。   According to the present invention, it is possible to display an auxiliary shooting line used as an index during shooting at an appropriate position when necessary, and to realize effective shooting support.

撮像装置として適用したデジタルカメラの基本的な構成要素を示したブロック図。The block diagram which showed the basic component of the digital camera applied as an imaging device. (1)〜(5)は、撮影補助線表示機能を説明するための図。(1)-(5) is a figure for demonstrating a photography auxiliary line display function. 閾値テーブルM3を説明するための図。The figure for demonstrating the threshold value table M3. (1)〜(3)は、閾値テーブルM3に設定されている閾値を説明するための図。(1)-(3) is a figure for demonstrating the threshold value set to the threshold value table M3. 電源投入に応じて実行開始されるデジタルカメラの動作(本実施形態の特徴的な動作)を説明するためのメインのフローチャート。The main flowchart for demonstrating the operation | movement (characteristic operation | movement of this embodiment) of the digital camera started execution according to power activation. 図5の動作に続くフローチャート。6 is a flowchart following the operation of FIG. 略水平/略垂直判別処理(図6のステップA23)を詳述するための図。FIG. 7 is a diagram for explaining in detail a substantially horizontal / substantially vertical discrimination process (step A23 in FIG. 6). (1)〜(3)は、ライブビュー画像内に表示される撮影補助線ATを示した図。(1)-(3) is the figure which showed photographing auxiliary line AT displayed in a live view image. (1)、(2)は、第1実施形態の変形例を説明するための図。(1), (2) is a figure for demonstrating the modification of 1st Embodiment. 第2実施形態におけるデジタルカメラの基本的な構成要素を示したブロック図。The block diagram which showed the basic component of the digital camera in 2nd Embodiment. 第2実施形態において、略水平/略垂直判別処理(図6のステップA23)を詳述するための図。FIG. 10 is a diagram for explaining in detail a substantially horizontal / substantially vertical discrimination process (step A23 in FIG. 6) in the second embodiment.

以下、本発明の実施の形態について、図面を参照して詳細に説明する。
(第1実施形態)
先ず、図1〜図8を参照して本発明の第1実施形態を説明する。
図1は、撮像装置として適用したデジタルカメラの基本的な構成要素を示したブロック図である。
このデジタルカメラ(撮像装置)は、例えば、フルカラーの静止画像のほかに動画像の撮影も可能なコンパクトカメラで、撮像機能、タッチ入力機能などのほか、撮影補助線表示機能を有している。この撮影補助線表示機能は、例えば、ライブビュー画面(モニタ画面)を9分割する格子状のグリッドを表示するほか、本実施形態においては、1本の水平線或いは垂直線(撮影補助線)を表示する機能である。そして、このデジタルカメラの中核となる制御部1は、電源部(二次電池)2からの電力供給によって動作し、記憶部3内の各種のプログラムに応じてこのデジタルカメラ(以下、カメラと略称する)の全体動作を制御する中央演算処理装置である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(First embodiment)
First, a first embodiment of the present invention will be described with reference to FIGS.
FIG. 1 is a block diagram showing basic components of a digital camera applied as an imaging apparatus.
This digital camera (imaging device) is, for example, a compact camera capable of shooting a moving image in addition to a full-color still image, and has a shooting auxiliary line display function in addition to an imaging function and a touch input function. This shooting auxiliary line display function displays, for example, a grid-like grid that divides the live view screen (monitor screen) into nine parts, and in the present embodiment, displays one horizontal line or vertical line (shooting auxiliary line). It is a function to do. The control unit 1 serving as the core of the digital camera operates by supplying power from the power supply unit (secondary battery) 2, and the digital camera (hereinafter abbreviated as camera) according to various programs in the storage unit 3. Is a central processing unit that controls the overall operation of the computer.

記憶部3は、例えば、ROM、RAM、フラッシュメモリなどを有する構成で、後述する図5〜図7に示した動作手順に応じて本実施形態を実現するためのプログラムや各種のアプリケーションなどが格納されているほかに、このカメラが動作するために必要となる各種の情報(例えば、フラグ、タイマなど)を一時的に記憶するワーク領域を有する構成となっている。そして、記憶部3は、プログラムメモリM1、ワークメモリM2などのほか、後述する閾値テーブルM3を有している。なお、記憶部3は、例えば、SDカード、ICカードなど、着脱自在な可搬型メモリ(記録メディア)を含む構成であってもよく、図示しないが、通信機能を介してネットワークに接続された状態においては所定の外部サーバ側の記憶領域を含むものであってもよい。   The storage unit 3 has, for example, a configuration including a ROM, a RAM, a flash memory, and the like, and stores programs and various applications for realizing the present embodiment in accordance with operation procedures shown in FIGS. In addition to this, it has a configuration having a work area for temporarily storing various information (for example, a flag, a timer, etc.) necessary for the operation of this camera. The storage unit 3 includes a threshold value table M3 (to be described later) in addition to the program memory M1, the work memory M2, and the like. Note that the storage unit 3 may be configured to include a removable portable memory (recording medium) such as an SD card or an IC card, and is connected to a network via a communication function (not shown). May include a storage area on a predetermined external server side.

タッチ表示部4は、上述のタッチ入力機能として、指などでタッチ操作された位置を検出するタッチ入力手段(タッチスクリーン)を構成するもので、表示パネル4aとタッチパネル4bとを有する構成となっている。なお、タッチパネル4bとしては、静電容量方式、抵抗皮膜方式、電磁誘導方式、圧電方式などの各種方式のうち、軽量化、光透過性、耐久性などに優れた静電容量方式を採用しているが、その他の方式であってもよい。表示パネル4aは、例えば、縦横比(横4:縦3)の異なる画面を有した高精細液晶ディスプレイ又は有機EL(Electro Luminescence)ディスプレイで、ソフトウェアキーとしての機能名を表示するほか、撮像された画像(ライブビュー画像:スルー画像)を表示するファインダ画面(モニタ画面)として機能したり、保存済み画像(撮影済み画像)を表示する再生画面として機能したりする。   The touch display unit 4 constitutes a touch input unit (touch screen) that detects a position touched with a finger or the like as the touch input function described above, and includes a display panel 4a and a touch panel 4b. Yes. As the touch panel 4b, among various methods such as a capacitance method, a resistance film method, an electromagnetic induction method, and a piezoelectric method, a capacitance method excellent in weight reduction, light transmittance, durability, etc. is adopted. However, other methods may be used. The display panel 4a is, for example, a high-definition liquid crystal display or an organic EL (Electro Luminescence) display having screens with different aspect ratios (horizontal 4: vertical 3), and displays a function name as a software key and is imaged. It functions as a finder screen (monitor screen) that displays an image (live view image: through image) or as a playback screen that displays a saved image (photographed image).

このタッチ表示部4を構成するタッチパネル4b上でのタッチ操作に応じて制御部1は、そのタッチ位置を取得してその位置に応じた座標データを入力する処理を行う。キー操作部5は、図示省略したが、モード切替操作、シャッタ操作、動画撮影操作、露出やシャッタスピードなどの撮影条件を設定する設定操作、撮影済み画像の再生を指示する再生操作などを行う押しボタン式のキーを備えたもので、制御部1は、キー操作部5からの入力操作信号に応じた処理として、例えば、撮影処理、撮影条件の設定、再生処理、データ入力処理などを行う。なお、モード切替操作は、撮影が可能な撮影モードに設定したり、撮影済み画像を再生可能な再生モードに設定したりして動作モードを切り替える操作である。   In response to a touch operation on the touch panel 4b constituting the touch display unit 4, the control unit 1 performs a process of acquiring the touch position and inputting coordinate data corresponding to the position. Although not shown in the figure, the key operation unit 5 performs a mode switching operation, a shutter operation, a moving image shooting operation, a setting operation for setting shooting conditions such as exposure and shutter speed, and a playback operation for instructing playback of a shot image. The control unit 1 includes a button-type key, and performs, for example, photographing processing, photographing condition setting, reproduction processing, data input processing, and the like as processing according to an input operation signal from the key operation unit 5. The mode switching operation is an operation for switching the operation mode by setting a shooting mode in which shooting is possible or setting a playback mode in which a shot image can be played back.

撮像部6は、図示省略したが、レンズ部、撮像素子、A/D(アナログ/デジタル)変換部などを有し、静止画像のほかに動画像の撮影も可能な構成で、ズームレンズ、フォーカスレンズなどを備えたレンズ部からの被写体像が、図示省略した絞りやシャッタを介して撮像素子(CCD又はCMOS)に結像されることにより被写体を高精細に撮影可能な構成となっている。ここで、撮像素子で光電変換された画像信号(アナログ値の信号)に対して、色分離やRGBの色成分毎のゲイン調整などが行われた後に、デジタル値のデータに変換されると共に、デジタル変換された画像データは、色補間処理(デモザイク処理)が施される。このようにしてデモザイク処理された画像データは、表示パネル4aに送られて、ライブビュー画像としてフルカラー表示される。   Although not shown, the imaging unit 6 includes a lens unit, an imaging device, an A / D (analog / digital) conversion unit, and the like, and can capture moving images in addition to still images. A subject image from a lens unit including a lens or the like is formed on an image sensor (CCD or CMOS) via a diaphragm or a shutter (not shown) so that the subject can be photographed with high definition. Here, the image signal photoelectrically converted by the image sensor (analog value signal) is subjected to color separation, gain adjustment for each RGB color component, and the like, and then converted into digital value data. The digitally converted image data is subjected to color interpolation processing (demosaic processing). The image data that has been demosaiced in this way is sent to the display panel 4a and displayed in full color as a live view image.

図2は、上述の撮影補助線表示機能を説明するための図である。
図2(1)〜(5)は、撮像部6により撮像された撮影画像(ライブビュー画像:スルー画像)がタッチ表示部4にファインダ画面(モニタ画面)として表示されている状態を示した図である。この図示の例において、撮影画像(ライブビュー画像)には、例えば、地平線を示す画像(略直線画像)LNが含まれている。なお、図2(4)、(5)において、図中、矢印を付した右側の図は、ライブビュー画像の一部拡大図(略直線画像LN部分の拡大図)である。図2(1)は、タッチ表示部4に表示されているライブビュー画像内において、地平線を示す略直線画像LNの上がタッチされた場合を示し、制御部1は、そのタッチ位置座標を取得し、このタッチ位置の近傍(タッチ位置から所定範囲内)に含まれている略直線画像LNを検出するようにしている。なお、タッチ位置から所定範囲内とは、画面サイズにもよるが、タッチ位置を中心として、例えば、周囲1cmなどである。
FIG. 2 is a diagram for explaining the above-described photographing auxiliary line display function.
2 (1) to 2 (5) are diagrams illustrating a state in which a captured image (live view image: through image) captured by the imaging unit 6 is displayed on the touch display unit 4 as a finder screen (monitor screen). It is. In the illustrated example, the captured image (live view image) includes, for example, an image (substantially straight line image) LN indicating the horizon. 2 (4) and 2 (5), the diagram on the right side with an arrow in the drawings is a partially enlarged view of the live view image (enlarged view of the substantially linear image LN portion). FIG. 2 (1) shows a case where the top of the substantially straight line image LN indicating the horizon is touched in the live view image displayed on the touch display unit 4, and the control unit 1 acquires the touch position coordinates. In addition, a substantially straight line image LN included in the vicinity of the touch position (within a predetermined range from the touch position) is detected. Note that within a predetermined range from the touch position is, for example, 1 cm around the touch position, for example, depending on the screen size.

ここで、制御部1は、ライブビュー画像のうち、タッチ位置から所定範囲内を解析することにより、例えば、コントラスト値に差のある直線的な線分を略直線画像LNとして検出するようにしている。その際、タッチ位置から所定範囲内に直線的な線分が複数含まれていれば、この複数の略直線画像LNをそれぞれ検出するようにしている。なお、直線的な線分を略直線画像LNとして検出する場合、曲率の大きい円弧や曲線などを除き、直線に近い線分であれば、略直線画像LNとして検出するようにしている。このような検出の仕方は、周知技術であり、本実施形態でもその周知技術を利用するようにしているため、その具体的な説明については省略するものとする。   Here, the control unit 1 analyzes, for example, a predetermined range from the touch position in the live view image to detect, for example, a linear line segment having a difference in contrast value as the substantially linear image LN. Yes. At this time, if a plurality of straight line segments are included within a predetermined range from the touch position, the plurality of substantially straight line images LN are respectively detected. When a straight line segment is detected as a substantially straight line image LN, a line segment close to a straight line is detected as a substantially straight line image LN except for arcs and curves having a large curvature. Such a detection method is a well-known technique, and since this well-known technique is also used in the present embodiment, a specific description thereof will be omitted.

そして、制御部1は、この略直線画像LNの両端を結ぶ接続線の傾きを検出し、その傾きが45°未満であれば、略直線を略水平として取り扱い、45°以上であれば、略垂直として取り扱うようにしている。図2(1)の場合には、略直線画像LNの傾きが45°未満であるので、この略直線画像LNは、略水平として取り扱われる。図2(2)は、略直線画像LNが略水平とみなせるか否かを判別する際の判別の仕方を説明するための図である。図示の例において、制御部1は、略直線画像LNの一端部とライブビュー画像の一端部との距離L1と、略直線画像LNの他端部とライブビュー画像の一端部との距離L2が略同一である場合に、この略直線画像LNは、略水平とみなせると判別するようにしている。   And the control part 1 detects the inclination of the connection line which connects the both ends of this substantially linear image LN, and if the inclination is less than 45 degrees, it will treat a substantially straight line as substantially horizontal, and if it is 45 degrees or more, it will be substantially I treat it as vertical. In the case of FIG. 2 (1), since the inclination of the substantially straight image LN is less than 45 °, the substantially straight image LN is treated as substantially horizontal. FIG. 2B is a diagram for explaining how to determine whether or not the substantially linear image LN can be regarded as substantially horizontal. In the illustrated example, the control unit 1 has a distance L1 between one end of the substantially linear image LN and one end of the live view image, and a distance L2 between the other end of the substantially linear image LN and one end of the live view image. When they are substantially the same, it is determined that the substantially straight line image LN can be regarded as substantially horizontal.

ここで、判別の基準となるライブビュー画像の一端部とは、略直線画像LNの近くに位置する端部を意味している。例えば、図2(2)の例においては、略直線画像LNは、略水平とみなせる場合であるから、図中、上下方向(縦方向)におけるライブビュー画像の両端部のうち、略直線画像LNに近い方の一端部が判別の基準となる。この場合、略直線画像LNは、ライブビュー画像の上半部分の領域内に含まれているので、ライブビュー画像の上端部が判別の基準となる。図2(3)は、略直線画像LNが略垂直とみなせるか否かを判別する際の判別の仕方を説明するための図で、略直線画像LNが略垂直とみなせる場合であるから、図中、左右方向(横方向)におけるライブビュー画像の両端部のうち、略直線画像LNに近い方の一端部が判別の基準となる。この場合、略直線画像LNは、ライブビュー画像の左半部分の領域内に含まれているので、ライブビュー画像の左端部が判別の基準となる。   Here, the one end portion of the live view image serving as a reference for discrimination means an end portion located near the substantially linear image LN. For example, in the example of FIG. 2 (2), the substantially linear image LN is considered to be substantially horizontal, and therefore, in the figure, the substantially linear image LN out of both ends of the live view image in the vertical direction (vertical direction). The one end portion closer to is a criterion for discrimination. In this case, since the substantially straight line image LN is included in the upper half of the live view image, the upper end portion of the live view image is a criterion for determination. FIG. 2 (3) is a diagram for explaining how to determine whether or not the substantially straight image LN can be regarded as being substantially vertical. This is because the substantially straight image LN can be regarded as being substantially vertical. Among the both end portions of the live view image in the middle and right and left directions (lateral direction), one end portion closer to the substantially straight image LN is a criterion for discrimination. In this case, since the substantially straight line image LN is included in the left half portion of the live view image, the left end portion of the live view image is a criterion for determination.

図2(4)は、略直線画像LNが略水平とみなせると判別した場合に、タッチ表示部4に表示されているライブビュー画像内の略直線画像LNに対応して撮影補助線ATを表示させた場合である。この場合、撮影補助線ATは、1本の横方向の直線(点線:水平線)であり、略直線画像LNの上に重なり合うように表示される。図2(5)は、略直線画像LNが略垂直とみなせると判別した場合に、タッチ表示部4に表示されているライブビュー画像内の略直線画像LNに対応して撮影補助線ATを表示させた場合である。この場合、撮影補助線ATは、1本の縦方向の直線(点線:垂直線)であり、略直線画像LNの上に重なり合うように表示される。なお、撮影補助線ATは、着色した実線、一点鎖線、二点鎖線、着色した破線或いは点滅表示などであってもよく、略直線画像LNに対して識別可能であれば、その表示形態や表示の仕方は任意である。   FIG. 2 (4) displays the auxiliary shooting line AT corresponding to the substantially straight line image LN in the live view image displayed on the touch display unit 4 when it is determined that the substantially straight line image LN can be regarded as substantially horizontal. This is the case. In this case, the photographing auxiliary line AT is one horizontal straight line (dotted line: horizontal line), and is displayed so as to overlap the substantially straight line image LN. FIG. 2 (5) displays the auxiliary shooting line AT corresponding to the substantially straight line image LN in the live view image displayed on the touch display unit 4 when it is determined that the substantially straight line image LN can be regarded as substantially vertical. This is the case. In this case, the photographing auxiliary line AT is a single straight line in the vertical direction (dotted line: vertical line), and is displayed so as to overlap the substantially straight line image LN. Note that the photographing auxiliary line AT may be a colored solid line, a one-dot chain line, a two-dot chain line, a colored broken line, a blinking display, or the like. The method of is arbitrary.

図3は、閾値テーブルM3を説明するための図である。
閾値テーブルM3は、ライブビュー画像内の略直線画像LNが略水平或いは略垂直とみなせるか否かを判別するための基準値(閾値)を記憶するテーブルで、「タッチ継続時間」、「閾値」、「許容誤差」の各項目を有している。「タッチ継続時間」は、タッチパネル4bに対してタッチ操作を続けているタッチ継続時間であり、制御部1は、タッチパネル4bがタッチされた際に、タイマの計測動作を開始してそのタッチが離れるまでの時間をタッチ継続時間として計測するようにしている。なお、図示の例では、「タッチ継続時間」としてt1(1秒)未満の“〜t1”が設定され、t1以上t2未満(1秒以上2秒未満)の“t1〜〜t2”が設定され、t2以上t3未満(2秒以上3秒未満)の“t2〜t3”が設定されている場合である。
FIG. 3 is a diagram for explaining the threshold value table M3.
The threshold value table M3 is a table that stores reference values (threshold values) for determining whether or not the substantially straight line image LN in the live view image can be regarded as being substantially horizontal or substantially vertical. , Each item of “allowable error”. The “touch duration” is a touch duration in which the touch operation is continued on the touch panel 4b, and when the touch panel 4b is touched, the control unit 1 starts a timer measurement operation and the touch is released. Is measured as the touch duration. In the illustrated example, “t1” less than t1 (1 second) is set as “touch duration”, and “t1 to t2” is set between t1 and less than t2 (1 second and less than 2 seconds). , T2 to t3 (2 seconds to less than 3 seconds) “t2 to t3” is set.

「閾値」は、略水平或いは略垂直とみなせるか否かを判別するための閾値で、「タッチ継続時間」に応じて異なる値が記憶されている。なお、図示の例では、「タッチ継続時間」の“〜t1”に対応して“s1”が記憶され、“t1〜〜t2”に対応して“s2”が記憶され、“t2〜〜t3”に対応して“s3”が記憶されている場合を示している。「許容誤差」は、図2(2)、図2(3)に示すように、略直線画像LNの一端部とライブビュー画像の一端部との距離L1と、略直線画像LNの他端部と撮影画像の一端部との距離L2が略同一であるとみなす場合の許容誤差(距離の差:ドット数)を示している。すなわち、略直線画像LNが略水平或いは略垂直とみなせる場合の許容誤差を示し、図示の例では、「閾値」の“s1”、“s2”、“s3”に対応する「許容誤差」としてドット数“a”、“b”、“c”が記憶されている。   The “threshold value” is a threshold value for determining whether or not it can be regarded as substantially horizontal or substantially vertical, and a different value is stored according to the “touch duration”. In the illustrated example, “s1” is stored corresponding to “˜t1” of “touch duration”, “s2” is stored corresponding to “t1 to t2”, and “t2 to t3”. “S3” is stored in correspondence with “”. As shown in FIGS. 2 (2) and 2 (3), the “allowable error” is the distance L1 between one end of the substantially linear image LN and one end of the live view image, and the other end of the approximately linear image LN. And an allowable error (distance difference: number of dots) in the case where it is considered that the distance L2 between the image and one end of the photographed image is substantially the same. In other words, the allowable error when the substantially linear image LN can be regarded as substantially horizontal or substantially vertical is shown. In the example shown in the drawing, the “threshold” includes “s1”, “s2”, and “s3” as “allowable errors”. Numbers “a”, “b”, “c” are stored.

図4は、略直線画像LNが略水平の場合において、「閾値」の“s1”、“s2”、“s3”、つまり、「許容誤差」の“a”、“b”、“c”を説明するための図である。図4(1)は、「閾値」の“s1”、「許容誤差」の“a”により略水平と判別される略直線を示し、図4(2)は、「閾値」の“s2”、「許容誤差」の“b”により略水平と判別される略直線を示し、図4(3)は、「閾値」の“s3”、「許容誤差」の“c”により略水平と判別される略直線を示している。ここで、図示の例では、「閾値」の“s1”、“s2”、“s3”、つまり、「許容誤差」の“a”、“b”、“c”の関係は、s1<s2<s3、つまり、a<b<cとなっている。   FIG. 4 shows that “s1”, “s2”, “s3” of “threshold values”, that is, “a”, “b”, “c” of “allowable errors” when the substantially linear image LN is substantially horizontal. It is a figure for demonstrating. 4 (1) shows a substantially straight line that is determined to be substantially horizontal by “s1” of “threshold” and “a” of “allowable error”, and FIG. 4 (2) shows “s2” of “threshold”, FIG. 4C shows a substantially straight line determined to be substantially horizontal by “b” of “allowable error”, and FIG. 4C is determined to be substantially horizontal by “s3” of “threshold” and “c” of “allowable error”. A substantially straight line is shown. In the illustrated example, “threshold” “s1”, “s2”, “s3”, that is, “allowable error” “a”, “b”, “c” have a relationship of s1 <s2 < s3, that is, a <b <c.

次に、第1実施形態におけるカメラの動作概念を図5〜図7に示すフローチャートを参照して説明する。ここで、これらのフローチャートに記述されている各機能は、読み取り可能なプログラムコードの形態で格納されており、このプログラムコードにしたがった動作が逐次実行される。また、ネットワークなどの伝送媒体を介して伝送されてきた上述のプログラムコードに従った動作を逐次実行することもできる。すなわち、記録媒体のほかに、伝送媒体を介して外部供給されたプログラム/データを利用して本実施形態特有の動作を実行することもできる。   Next, the operation concept of the camera in the first embodiment will be described with reference to the flowcharts shown in FIGS. Here, each function described in these flowcharts is stored in the form of a readable program code, and operations according to the program code are sequentially executed. Further, it is possible to sequentially execute the operation according to the above-described program code transmitted via a transmission medium such as a network. In other words, in addition to the recording medium, an operation unique to the present embodiment can be executed using a program / data supplied externally via a transmission medium.

図5及び図6は、電源投入に応じて実行開始されるカメラの動作(本実施形態の特徴的な動作)を説明するためのメインのフローチャートである。
先ず、制御部1は、電源投入操作に応じてメモリなどをクリアする初期化処理を実行した後(図5のステップA1)、撮影が可能な撮影モードに切替られているかを調べる(ステップA2)。いま、再生モードに切替られているときには(ステップA2でNO)、再生モードの初期設定を行った後、再生対象の撮影済み画像を呼び出してタッチ表示部4に再生表示させる(ステップA3)。
FIG. 5 and FIG. 6 are main flowcharts for explaining the operation of the camera (characteristic operation of the present embodiment) that is started when the power is turned on.
First, the control unit 1 executes an initialization process for clearing a memory or the like in response to a power-on operation (step A1 in FIG. 5), and then checks whether the photographing mode is switched to a photographing mode (step A2). . When the mode is switched to the playback mode (NO in step A2), the playback mode is initially set, and then the captured image to be played back is called and displayed on the touch display unit 4 (step A3).

この再生モードにおいて、モード切替操作が行われたかを調べたり(ステップA4)、その他の操作が行われたかを調べたりし(ステップA5)、モード切替操作が行われたときには(ステップA4でYES)、撮影モードに応じた処理を実行するためにステップA7に移るが、再生モードにおいて、その他の操作が行われたときには(ステップA5でYES)、操作に応じた処理として、例えば、画像送り、ズーム、スライドショーなどの処理を実行した後(ステップA6)、上述のモード切替操作の有無を判別するステップA4に戻る。   In this playback mode, it is checked whether a mode switching operation has been performed (step A4), whether other operations have been performed (step A5), and when a mode switching operation has been performed (YES in step A4). Then, the process proceeds to step A7 in order to execute the process according to the shooting mode. However, when another operation is performed in the playback mode (YES in step A5), as the process according to the operation, for example, image feed, zoom After executing a process such as a slide show (step A6), the process returns to step A4 for determining whether or not the above-described mode switching operation is performed.

いま、撮影モードに切替られているときには(ステップA2でYES)、撮影モードの初期設定を行った後、撮像部6から取得した撮像画像(ライブビュー画像:スルー画像)をタッチ表示部4にファインダ画面(モニタ画面)として表示させる(ステップA7)。この撮影モードにおいて、タッチ表示部4へのタッチ操作の有無を調べたり(ステップA8)、シャッタ操作の有無を調べたり(ステップA9)、その他の操作の有無を調べたりする(ステップA10)。いま、その他の操作として、例えば、露出設定、ズーム調整などの設定操作が行われると(ステップA10でYES)、その操作に応じた処理として、露出設定などの設定処理を行った後(ステップA11)、上述のタッチ有無を判別するステップA8に戻る。   Now, when the mode is switched to the shooting mode (YES in step A2), the initial setting of the shooting mode is performed, and then the captured image (live view image: through image) acquired from the imaging unit 6 is displayed on the touch display unit 4. It is displayed as a screen (monitor screen) (step A7). In this photographing mode, the presence / absence of a touch operation on the touch display unit 4 is checked (step A8), the presence / absence of a shutter operation (step A9), and the presence / absence of other operations are checked (step A10). As another operation, for example, when a setting operation such as exposure setting or zoom adjustment is performed (YES in step A10), after performing a setting process such as exposure setting as a process corresponding to the operation (step A11). ), The process returns to step A8 for determining the presence or absence of the touch.

また、撮影モードにおいてシャッタ操作が行われたときには(ステップA9でYES)、撮像部6を撮影条件に応じて制御する撮影処理を実行する(ステップA12)。そして、撮像部6から取得した撮像画像を記録保存する処理を行うと共に、タッチ表示部4のモニタ画面に撮影補助線ATが表示されていれば、この撮影補助線ATを消去する処理を行う(ステップA13)。その後、上述のタッチ操作有無を判別するステップA8に戻る。   When a shutter operation is performed in the shooting mode (YES in step A9), a shooting process for controlling the imaging unit 6 according to the shooting conditions is executed (step A12). Then, processing for recording and saving the captured image acquired from the imaging unit 6 is performed, and processing for deleting the imaging auxiliary line AT is performed if the imaging auxiliary line AT is displayed on the monitor screen of the touch display unit 4 ( Step A13). Thereafter, the process returns to step A8 for determining the presence or absence of the touch operation.

また、撮影モードにおいてタッチ表示部4へのタッチ操作が行われたときには(ステップA8でYES)、図6のフローに移り、タッチ表示部4からそのタッチ位置座標を取得した後(ステップA14)、上述のタッチ継続時間を計測するためのタッチタイマ(ソフトタイマ)の計測動作を開始させる(ステップA15)。その後、タッチ表示部4に表示されているライブビュー画像を解析することにより、タッチ位置の近傍(タッチ位置から所定範囲内)に含まれている略直線画像LNを検出する(ステップA16)。この場合、例えば、コントラスト値の差などに基づいて直線的な線分を略直線画像LNとして検出することができたかを調べ、略直線画像LNを検出することができなければ(ステップA17でNO)、略直線を検出できなかった旨のエラーメッセージをタッチ表示部4にオーバーラップ表示させる(ステップA18)。そして、上述のタッチタイマの計測動作を停止させた後(ステップA27)、上述のタッチ操作有無を判別するステップA8に戻る。   When a touch operation is performed on the touch display unit 4 in the shooting mode (YES in step A8), the flow proceeds to the flow of FIG. 6 and the touch position coordinates are acquired from the touch display unit 4 (step A14). The measurement operation of the touch timer (soft timer) for measuring the touch duration time is started (step A15). Thereafter, by analyzing the live view image displayed on the touch display unit 4, a substantially straight line image LN included in the vicinity of the touch position (within a predetermined range from the touch position) is detected (step A16). In this case, for example, it is checked whether or not a straight line segment can be detected as the substantially straight line image LN based on a difference in contrast value. If the substantially straight line image LN cannot be detected (NO in step A17). ), An error message indicating that a substantially straight line could not be detected is displayed on the touch display unit 4 in an overlapping manner (step A18). Then, after the measurement operation of the touch timer is stopped (step A27), the process returns to step A8 for determining the presence or absence of the touch operation.

略直線画像LNを検出できたときには(ステップA17でYES)、上述のタッチタイマの計測時間を取得してその計測時間(タッチ継続時間)は、t3未満であるかを調べ(ステップA19)、タッチ継続時間がt3以上であれば(ステップA19でNO)、タイムオーバーとしてエラーメッセージをタッチ表示部4にオーバーラップ表示させる(ステップA20)。そして、上述のタッチタイマの計測動作を停止させた後(ステップA27)、上述のタッチ操作有無を判別するステップA8に戻る。また、タッチ継続時間がt3未満であれば(ステップA19でYES)、このタッチ継続時間に基づいて閾値テーブルM3を参照し(ステップA21)、タッチ継続時間に対応する「閾値」として「許容誤差」を設定する(ステップA22)。例えば、「タッチ継続時間」が“〜t1(1秒未満)”であれば、「閾値」として“s1”、「許容誤差」として“a”を設定する。その後、略水平/略垂直判別処理に移る(ステップA23)。   When the substantially linear image LN can be detected (YES in step A17), the measurement time of the touch timer described above is acquired, and it is checked whether the measurement time (touch duration) is less than t3 (step A19). If the duration is equal to or greater than t3 (NO in step A19), an error message is displayed on the touch display unit 4 as a time-over (step A20). Then, after the measurement operation of the touch timer is stopped (step A27), the process returns to step A8 for determining the presence or absence of the touch operation. If the touch duration is less than t3 (YES in step A19), the threshold table M3 is referred to based on the touch duration (step A21), and “allowable error” is set as the “threshold” corresponding to the touch duration. Is set (step A22). For example, if “touch duration” is “˜t1 (less than 1 second)”, “s1” is set as “threshold” and “a” is set as “allowable error”. Thereafter, the process proceeds to a substantially horizontal / substantially vertical discrimination process (step A23).

図7は、略水平/略垂直判別処理(図6のステップA23)を詳述するための図である。
先ず、制御部1は、ライブビュー画像内から検出した略直線画像LNは複数であるかを調べ(ステップB1)、検出した略直線画像LNが単数であれば(ステップB1でNO)、その略直線画像LNを処理対象として指定するが(ステップB2)、検出した略直線画像LNが複数であれば(ステップB1でYES)、複数の略直線画像LNの中から最初の略直線画像LNとして、ライブビュー画像の所定位置(例えば、左上隅部の位置)を基準として、その基準位置に近い略直線画像LNを処理対象として選択して指定する(ステップB3)。
FIG. 7 is a diagram for explaining the substantially horizontal / substantially vertical discrimination process (step A23 in FIG. 6) in detail.
First, the control unit 1 checks whether there are a plurality of substantially linear images LN detected from the live view image (step B1). If the detected substantially linear image LN is single (NO in step B1), the approximate Although the straight line image LN is designated as a processing target (step B2), if there are a plurality of detected substantially straight line images LN (YES in step B1), the first substantially straight line image LN is selected from the plurality of substantially straight line images LN. Using a predetermined position (for example, the position of the upper left corner) of the live view image as a reference, a substantially linear image LN close to the reference position is selected and specified as a processing target (step B3).

そして、処理対象として指定した略直線画像LNの傾きとして、略直線画像LNの両端を結ぶ接続線(直線)の傾きを算出し(ステップB4)、この略直線画像LNの傾きに基づいて略直線画像LNを略水平として取り扱うか、略垂直として取り扱うかを決定する(ステップB5)。この場合、略直線画像LNの傾きが45°未満であれば、略直線画像LNを略水平として取り扱い、45°以上であれば、略直線画像LNを略垂直として取り扱う。   Then, the inclination of the connection line (straight line) connecting both ends of the substantially straight line image LN is calculated as the inclination of the substantially straight line image LN designated as the processing target (step B4), and the substantially straight line is based on the inclination of the substantially straight line image LN. It is determined whether the image LN is handled as substantially horizontal or substantially vertical (step B5). In this case, if the inclination of the substantially straight image LN is less than 45 °, the substantially straight image LN is handled as substantially horizontal, and if it is 45 ° or more, the substantially straight image LN is handled as substantially vertical.

そして、その略直線画像LNの位置に応じて、略直線画像LNが略水平或いは略垂直とみなせるか否かを判別する際の判別基準となるライブビュー画像の端部を決定する(ステップB6)。すなわち、図2(2)の例においては、略直線画像LNは、略水平とみなせる場合であるから、図中、上下方向(縦方向)におけるライブビュー画像の両端部のうち、略直線画像LNに近い方の一端部(上端部)を判別基準として決定する。また、図2(3)の例においては、略直線画像LNが略垂直とみなせる場合であるから、図中、左右方向(横方向)におけるライブビュー画像の両端部のうち、略直線画像LNに近い方の一端部(左端部)が判別基準として決定する。   Then, in accordance with the position of the substantially linear image LN, an end of the live view image that is a determination criterion when determining whether or not the approximately linear image LN can be regarded as approximately horizontal or approximately vertical is determined (step B6). . That is, in the example of FIG. 2 (2), the substantially linear image LN is a case where it can be regarded as being substantially horizontal, and therefore, in the figure, out of both ends of the live view image in the vertical direction (vertical direction), One end portion (upper end portion) closer to is determined as a discrimination criterion. In the example of FIG. 2 (3), since the substantially straight line image LN can be regarded as substantially vertical, in the figure, the both ends of the live view image in the left-right direction (horizontal direction) are substantially straight line images LN. The near end (left end) is determined as a discrimination criterion.

これによって決定した判別基準に基づいて、制御部1は、略直線画像LNの一端部とライブビュー画像の一端部(判別基準)との距離L1と、略直線画像LNの他端部と撮影画像の一端部(判別基準)との距離L2をドット数として計測した後(ステップB7)、この距離L1と距離L2との差を算出する(ステップB8)。そして、算出した距離の差と、図6のステップA22で設定したタッチ継続時間に応じた「閾値」、つまり、「許容誤差」と比較し(ステップB9)、算出した距離の差は、「許容誤差」の範囲内であるかを調べる(ステップB10)。   Based on the determination criterion determined in this way, the control unit 1 determines the distance L1 between one end portion of the substantially linear image LN and one end portion (discrimination criterion) of the live view image, the other end portion of the approximately linear image LN, and the captured image. Is measured as the number of dots (step B7), and then the difference between the distance L1 and the distance L2 is calculated (step B8). Then, the difference between the calculated distance and the “threshold value” corresponding to the touch duration set in step A22 in FIG. 6, that is, “allowable error” (step B9), is calculated. It is checked whether it is within the range of “error” (step B10).

いま、算出した距離の差が「許容誤差」の範囲内であれば(ステップB10でYES)、距離L1と距離L2とは略同一であると判断して、この略直線画像LNを略水平或いは略垂直とみなせると判別するが(ステップB11)、「許容誤差」から外れていれば(ステップB10でNO)、上述のステップB11をスキップし、その判別を行わない。以下、処理対象として未指定の略直線画像LNが残っているかを調べ(ステップB12)、未指定の略直線画像LNが残っていれば(ステップB12でYES)、上述の基準位置に近い順にその未指定の略直線画像LNを処理対象として指定した後(ステップB13)、上述の傾き算出処理を行うステップB4に戻り、以下、全ての略直線画像LNを指定し終わるまで上述の動作を繰り返す。   If the calculated distance difference is within the “allowable error” range (YES in step B10), it is determined that the distance L1 and the distance L2 are substantially the same, and the substantially linear image LN is substantially horizontal or Although it is determined that it can be regarded as substantially vertical (step B11), if it deviates from the “allowable error” (NO in step B10), the above step B11 is skipped and the determination is not performed. Thereafter, it is checked whether or not an unspecified substantially straight line image LN remains as a processing target (step B12). If an unspecified substantially straight line image LN remains (YES in step B12), the process proceeds in the order from the reference position described above. After designating an unspecified substantially straight line image LN as a processing target (step B13), the process returns to step B4 where the above-described inclination calculation process is performed, and the above operation is repeated until all the substantially straight line images LN are designated.

このようにして略水平/略垂直判別処理(図6のステップA23)が終わると、その判別結果に基づいて略水平或いは略垂直とみなせる判別の有無を調べ(ステップA24)、略水平或いは略垂直とみなせると判別されなければ(ステップA24でNO)、タッチ表示部4へのタッチ操作は継続していることを条件に(ステップA25でYES)、上述の計測時間を判別するステップA19に戻る。また、タッチが離れてタッチ操作が解除されたときには(ステップA25でNO)、略水平/略垂直を判定することができない旨のエラーメッセージをタッチ表示部4にオーバーラップ表示させると共に(ステップA26)、上述のタッチタイマの計測動作を停止させた後(ステップA27)、上述のタッチ操作有無を判別するステップA7に戻る。   When the substantially horizontal / substantially vertical discrimination process (step A23 in FIG. 6) is completed in this way, the presence / absence of discrimination that can be regarded as substantially horizontal or substantially vertical is examined based on the discrimination result (step A24), and substantially horizontal or substantially vertical. If it is not determined that it can be considered (NO in step A24), the process returns to step A19 for determining the measurement time described above on the condition that the touch operation on the touch display unit 4 is continued (YES in step A25). When the touch is released and the touch operation is released (NO in step A25), an error message indicating that the substantially horizontal / substantially vertical cannot be determined is displayed on the touch display unit 4 in an overlapping manner (step A26). After stopping the measurement operation of the touch timer described above (step A27), the process returns to step A7 for determining the presence or absence of the touch operation.

一方、略水平/略垂直判別処理(ステップA23)を行った結果、略水平或いは略垂直とみなせると判別されたときには(ステップA24でYES)、複数の略直線画像LNについて略水平或いは略垂直とみなせると判別されたかを調べる(ステップA28)。ここで、略水平或いは略垂直とみなせると判別された略直線画像LNが単数であれば(ステップA28でNO)、その略直線画像LNに対応して(重ね合わせて)、1本の横方向の直線(水平線)或いは1本の縦方向の直線(垂直線)を撮影補助線ATとして表示させる(ステップA31)。その後、上述のタッチタイマの計測動作を停止させた後(ステップA27)、上述のタッチ操作有無を判別するステップA7に戻る。   On the other hand, as a result of performing the substantially horizontal / substantially vertical discrimination process (step A23), when it is determined that it can be regarded as substantially horizontal or substantially vertical (YES in step A24), the plurality of substantially linear images LN are substantially horizontal or substantially vertical. It is checked whether it is determined that it can be considered (step A28). Here, if there is a single substantially straight line image LN determined to be regarded as substantially horizontal or substantially vertical (NO in step A28), one horizontal direction corresponding to the substantially straight line image LN (overlapping). A straight line (horizontal line) or one vertical straight line (vertical line) is displayed as the photographing auxiliary line AT (step A31). Then, after stopping the measurement operation of the touch timer described above (step A27), the process returns to step A7 for determining the presence or absence of the touch operation.

また、略水平或いは略垂直とみなせると判別された略直線画像LNが複数であれば(ステップA28でYES)、複数の略直線画像LNは全て略水平或いは略垂直の同一種である、つまり、複数の略直線画像LNは全て略水平或いは全て略垂直であるかを調べる(ステップA29)。ここで、略水平の略直線画像LNと略垂直の略直線画像LNとが混在していれば(ステップA29でNO)、後述する図8(3)に示すように略水平、略垂直に応じて撮影補助線ATを識別可能に表示させる(ステップA31)。また、複数の略直線画像LNが全て同一種であれば(ステップA29でYES)、各略直線画像LNの優先順位を決定した後(ステップA30)、後述する図8(1)、(2)に示すように、優先順位に基づいて撮影補助線ATを識別可能に表示させる(ステップA31)。その後、上述のタッチタイマの計測動作を停止させた後(ステップA27)、上述のタッチ操作有無を判別するステップA7に戻る。   If there are a plurality of substantially straight line images LN determined to be regarded as substantially horizontal or substantially vertical (YES in step A28), the plurality of substantially straight line images LN are all of the same type that is substantially horizontal or substantially vertical. It is checked whether the plurality of substantially straight line images LN are all substantially horizontal or all substantially vertical (step A29). Here, if the substantially horizontal substantially straight line image LN and the substantially vertical substantially straight line image LN are mixed (NO in step A29), as shown in FIG. The auxiliary shooting line AT is displayed in an identifiable manner (step A31). If the plurality of substantially linear images LN are all of the same type (YES in step A29), after determining the priority order of each of the substantially linear images LN (step A30), FIGS. 8 (1) and (2) described later. As shown in FIG. 5, the photographing auxiliary line AT is displayed in an identifiable manner based on the priority order (step A31). Then, after stopping the measurement operation of the touch timer described above (step A27), the process returns to step A7 for determining the presence or absence of the touch operation.

ここで、上述の優先順位の決定は、次のようにして行う。すなわち、上述のステップA14で取得したタッチ位置座標と各略直線画像LNとの距離を考慮するほか、水平度或いは垂直度をも考慮して優先順位を決定するようにしている。水平度或いは垂直度とは、各略直線画像LNが略水平或いは略垂直とみなせると判別した場合に、その水平或いは垂直と近似する度合い(近似度)を示すもので、その水平度或いは垂直度が高い順(水平或いは垂直に近い順)に優先順位を決定するようにしている。このように本実施形態においては、タッチ位置からの距離と、水平度或いは垂直度との両方を考慮して優先順位を決定するようにしているが、そのいずれか一方から優先順位を決定するようにしてもよい。   Here, the above-mentioned priority order is determined as follows. In other words, in addition to considering the distance between the touch position coordinates acquired in step A14 and each substantially linear image LN, the priority order is determined in consideration of the horizontality or the verticality. The horizontality or verticality indicates the degree (approximation) that approximates the horizontal or vertical when it is determined that each of the substantially linear images LN can be regarded as substantially horizontal or substantially vertical. The priority order is determined in descending order (in the order close to horizontal or vertical). As described above, in this embodiment, the priority is determined in consideration of both the distance from the touch position and the horizontality or verticality, but the priority is determined from either one of them. It may be.

図8は、ライブビュー画像内に略水平或いは略垂直とみなせる略直線画像LNが複数存在している場合に、各略直線画像LNに重ね合わせて表示される撮影補助線ATを、決定した優先順位に基づいて識別可能に表示されることを例示した図である。なお、図8(1)〜(3)において、図中、矢印を付した右側の図は、ライブビュー画像の一部拡大図(略直線画像LN部分の拡大図)である。図8(1)は、2本の略水平の略直線画像LNが存在している場合で、略直線画像LNの1本目をLN(1)、2本目をLN(2)とすると、各略直線画像LNの水平度は略同じであるが、タッチ位置は1本目のLN(1)の方が近いために、優先順位は、1本目のLN(1)が1位、2本目のLN(2)が2位となる場合である。この場合、優先順位が1位のLN(1)に対応して重ね合わせ表示される撮影補助線ATをAT(1)とすると、例えば、優先順位の高い撮影補助線AT(1)を赤色表示し、優先順位の低い撮影補助線AT(2)を青色表示により識別表示させる。なお、着色に限らず、線種を変えることにより識別表示するようにしてもよい(以下、同様)。   FIG. 8 shows the determined priority for the photographing auxiliary line AT displayed superimposed on each of the substantially linear images LN when there are a plurality of substantially linear images LN that can be regarded as substantially horizontal or substantially vertical in the live view image. It is the figure which illustrated that it was displayed so that identification was possible based on order. In FIGS. 8 (1) to (3), the diagram on the right side with an arrow in the drawing is a partially enlarged view of the live view image (enlarged view of the substantially linear image LN portion). FIG. 8A shows a case where there are two substantially horizontal straight line images LN. If the first line of the substantially straight line image LN is LN (1) and the second line is LN (2), The level of horizontality of the straight line image LN is substantially the same, but since the touch position is closer to the first LN (1), the first LN (1) is first and the second LN (1) This is the case where 2) is second. In this case, if the auxiliary shooting line AT that is superimposed and displayed corresponding to LN (1) having the highest priority is AT (1), for example, the auxiliary shooting line AT (1) having a higher priority is displayed in red. Then, the photographing auxiliary line AT (2) having a low priority is identified and displayed in blue. In addition, you may make it identify and display not only by coloring but by changing a line type (following, the same).

図8(2)は、上述と同様に、2本の略水平の略直線画像LNが存在している場合である。この場合、各略直線画像LNのタッチ位置からの距離は略同じであるが、水平度は1本目のLN(1)の方が高いために、優先順位は、1本目のLN(1)が1位、2本目のLN(2)が2位となる。この場合においても、優先順位が1位のLN(1)に対応して重ね合わせ表示される撮影補助線AT(1)を赤色表示し、2位の撮影補助線AT(2)を青色表示により識別表示させる。   FIG. 8B shows a case where there are two substantially horizontal straight line images LN as described above. In this case, although the distance from the touch position of each substantially linear image LN is substantially the same, the first LN (1) has a higher level of horizontality, so the priority is determined by the first LN (1). The first and second LN (2) are second. Even in this case, the photographing auxiliary line AT (1) displayed in a superimposed manner corresponding to the LN (1) having the first priority is displayed in red, and the second photographing auxiliary line AT (2) is displayed in blue. Display identification.

図8(3)は、1本の略水平の略直線画像LN(11)と1本の略垂直の略直線画像LN(12)とが混在している場合で、この略水平の略直線画像LN(11)と略垂直の略直線画像LN(12)とが交差し、その交差位置がタッチされた場合である。この場合、略水平、略垂直に応じて撮影補助線AT(11)、AT(12)を識別可能に表示させる。例えば、略水平の略直線画像LN(11)に対応する撮影補助線AT(11)を赤色表示し、略垂直の略直線画像LN(12)に対応する撮影補助線AT(12)を青色表示により識別表示させる。   FIG. 8 (3) shows a case where one substantially horizontal substantially straight line image LN (11) and one substantially vertical substantially straight line image LN (12) are mixed, and this substantially horizontal substantially straight line image. This is a case where LN (11) and a substantially vertical substantially straight line image LN (12) intersect and the intersection position is touched. In this case, the auxiliary shooting lines AT (11) and AT (12) are displayed in an identifiable manner according to substantially horizontal and substantially vertical. For example, the photographing auxiliary line AT (11) corresponding to the substantially horizontal substantially straight line image LN (11) is displayed in red, and the photographing auxiliary line AT (12) corresponding to the substantially vertical substantially straight line image LN (12) is displayed in blue. The identification is displayed.

以上のように、第1実施形態においては、撮像部6から取得したライブビュー画像を表示させると共に、このライブビュー画像内に含まれている略直線画像LNを検出し、この略直線画像LNが略水平或いは略垂直とみなせる場合に、この略直線画像LNに対応して撮影補助線ATを表示するようにしたので、撮影時にその指標として利用される撮影補助線ATを必要時に適切な位置に表示することができ、最適な構図の撮影が可能となるなど、効果的な撮影支援を実現することが可能となる。   As described above, in the first embodiment, the live view image acquired from the imaging unit 6 is displayed, the substantially linear image LN included in the live view image is detected, and the approximately linear image LN is detected. Since the auxiliary shooting line AT is displayed corresponding to the substantially straight line image LN when it can be regarded as substantially horizontal or substantially vertical, the auxiliary shooting line AT used as an index for shooting is set to an appropriate position when necessary. It is possible to display the image, and it is possible to realize effective shooting support such as shooting with an optimal composition.

ライブビュー画像内に含まれている略直線画像LNを検出する場合、任意に指定された位置から所定範囲内に含まれている略直線画像LNを検出するようにしたので、撮影補助線ATを表示させたい位置の略直線画像LNを指定することができ、ユーザの意向を反映させることができる。   When detecting the substantially straight line image LN included in the live view image, the substantially straight line image LN included in the predetermined range from the arbitrarily designated position is detected. A substantially linear image LN at a position to be displayed can be designated, and the user's intention can be reflected.

ライブビュー画像が表示されている表示パネル4aに重ね合わせて配設されているタッチパネル4bへのタッチ位置により、そのタッチ位置から所定範囲内の略直線画像LNを検出するようにしたので、位置の指定を容易かつ確実に行うことができる。   Since a substantially straight line image LN within a predetermined range from the touch position is detected based on the touch position on the touch panel 4b arranged to overlap the display panel 4a on which the live view image is displayed. Specification can be performed easily and reliably.

タッチ継続時間に応じて、略直線画像LNが略水平或いは略垂直とみなせるか否かを判別するための閾値を変化させるようにしたので、ユーザの意向に応じてその判別基準を動的に変えることが可能となる。これによって、例えば、水平度或いは垂直度が若干足りない略直線画像LNに対しても、撮影補助線ATを表示することができ、逆に、水平度或いは垂直度を厳しくすることで、水平或いは垂直に近似した略直線画像LNに対してだけに撮影補助線ATを表示することができる。   Since the threshold for determining whether or not the substantially straight line image LN can be regarded as substantially horizontal or substantially vertical is changed according to the touch duration, the determination criterion is dynamically changed according to the user's intention. It becomes possible. As a result, for example, the auxiliary shooting line AT can be displayed even for a substantially straight line image LN that is slightly lacking in horizontal or vertical, and conversely, by tightening the horizontal or vertical, The auxiliary shooting line AT can be displayed only for the substantially straight line image LN approximated to the vertical.

略直線画像LNの一端部とライブビュー画像の一端部との距離と、略直線画像LNの他端部とライブビュー画像の一端部との距離が略同一である場合に、略直線画像LNが略水平或いは略垂直とみなせると判別するようにしたので、センサなどを搭載することなく、距離比較という簡略な処理により略水平或いは略垂直を判別することが可能となる。   When the distance between one end of the substantially straight line image LN and one end of the live view image is substantially the same as the distance between the other end of the substantially straight line image LN and one end of the live view image, the substantially straight line image LN is Since it is determined that it can be regarded as approximately horizontal or approximately vertical, it is possible to determine approximately horizontal or approximately vertical by a simple process of distance comparison without mounting a sensor or the like.

ライブビュー画像内の略直線画像LNの上に重ね合わせて撮影補助線ATを表示するようにしたので、略直線画像LNと撮影補助線ATとの対応関係が明確となる。   Since the photographing auxiliary line AT is displayed on the substantially linear image LN in the live view image, the correspondence between the substantially linear image LN and the photographing auxiliary line AT becomes clear.

略水平或いは略垂直とみなされた略直線画像LNが複数存在している場合には、各略直線画像LNの優先順位を決定し、この優先順位に基づいて撮影補助線ATを識別可能に表示するようにしたので、ユーザにあっては複数の撮影補助線ATの中から適切な撮影補助線ATを見つけ出すことができる。   When there are a plurality of substantially straight line images LN regarded as substantially horizontal or substantially vertical, the priority order of each substantially straight line image LN is determined, and the photographing auxiliary line AT is displayed so as to be identifiable based on this priority order. Thus, the user can find an appropriate shooting assistance line AT from the plurality of shooting assistance lines AT.

各略直線画像LNとタッチ位置との距離に基づき優先順位を決定するようにしたので、よりユーザの意向を反映させた撮影補助線ATを提供することができる。   Since the priority order is determined based on the distance between each substantially straight line image LN and the touch position, it is possible to provide the auxiliary shooting line AT that more reflects the user's intention.

各略直線画像LNの水平度或いは垂直度に基づいて優先順位を決定するようにしたので、ユーザにあっては、複数の略直線画像LNが含まれていても、本来の水平線或いは地平線などを適切に識別することができる。   Since the priority order is determined based on the horizontal or verticality of each of the substantially straight line images LN, even if a plurality of substantially straight line images LN are included, the user can display the original horizontal line or horizon line. Can be properly identified.

なお、上述した第1実施形態においては、ライブビュー画像内の略直線画像LNの上に重ね合わせて撮影補助線ATを表示するようにしたが、これに限らず、例えば、予め設定されている複数の撮影補助線ATのうち、表示されているライブビュー画像内の略直線画像LNと略水平或いは略垂直が同方向であり、かつ一番近い撮影補助線ATを選択して表示するようにしてもよい。例えば、図9(1)は、通常使用の一般的なグリッドを示し、このグリッドは、横線(水平線)2本の撮影補助線AT(a)、AT(b)と、縦線(垂直線)2本の撮影補助線AT(c)、AT(d)の合計4本の撮影補助線により構成され、ライブビュー画像が表示されるモニタ画面を3×3の領域に9分割するようにしている。   In the first embodiment described above, the auxiliary shooting line AT is displayed so as to be superimposed on the substantially linear image LN in the live view image. However, the present invention is not limited to this, and is set in advance, for example. Among the plurality of shooting auxiliary lines AT, the substantially straight line image LN in the displayed live view image is substantially horizontal or substantially vertical in the same direction and the closest shooting auxiliary line AT is selected and displayed. May be. For example, FIG. 9 (1) shows a general grid that is normally used. This grid includes two horizontal lines (horizontal lines) auxiliary shooting lines AT (a) and AT (b) and vertical lines (vertical lines). The monitor screen, which is composed of a total of four shooting auxiliary lines of two shooting auxiliary lines AT (c) and AT (d) and displays a live view image, is divided into nine 3 × 3 areas. .

図9(2)は、ライブビュー画像内の略直線画像LNを示した図である。制御部1は、略直線画像LNが略水平或いは略垂直であるかを判別し、略水平であれば、図9(1)で示したように、上下方向に配列されている2本の撮影補助線AT(a)、AT(b)のうち、略直線画像LNに一番近い撮影補助線AT(a)、つまり、図中、上側の撮影補助線AT(a)を選択して表示させる。なお、略直線画像LNが略垂直であれば、左右方向に配列されている2本の撮影補助線AT(c)、AT(d)のうち、略直線画像LNに一番近い撮影補助線を選択して表示させる。このように予め設定されている複数の撮影補助線AT(a)〜AT(d)のうち、表示されているライブビュー画像内の略直線画像LNと略水平或いは略垂直が同方向であり、かつ一番近い撮影補助線ATを選択して表示するようにすれば、略直線画像LNとの位置合わせを行う必要もなく、予め用意されている撮影補助線をそのまま用いて表示することができる。   FIG. 9B is a diagram showing a substantially straight line image LN in the live view image. The control unit 1 determines whether the substantially linear image LN is substantially horizontal or substantially vertical, and if it is substantially horizontal, as shown in FIG. 9 (1), two photographings arranged in the vertical direction. Among the auxiliary lines AT (a) and AT (b), the shooting auxiliary line AT (a) closest to the substantially straight line image LN, that is, the upper shooting auxiliary line AT (a) in the drawing is selected and displayed. . If the substantially straight image LN is substantially vertical, the photographing auxiliary line closest to the substantially linear image LN is selected from the two photographing auxiliary lines AT (c) and AT (d) arranged in the left-right direction. Select to display. Of the plurality of auxiliary shooting lines AT (a) to AT (d) set in advance in this way, the substantially straight line image LN and the substantially horizontal or substantially vertical direction in the displayed live view image are in the same direction. If the closest photographing auxiliary line AT is selected and displayed, it is not necessary to perform alignment with the substantially straight line image LN, and the photographing auxiliary line prepared in advance can be used for display. .

(第2実施形態)
以下、この発明の第2実施形態について図10及び図11を参照して説明する。
なお、上述した第1実施形態においては、略直線画像LNが略水平或いは略垂直とみなせるか否かを判別する場合に、略直線画像LNの一端部とライブビュー画像の一端部との距離と略直線画像LNの他端部とライブビュー画像の一端部との距離が略同一であるかを判別することにより行うようにしたが、この第2実施形態においては、重力センサを使用し、略直線画像LNが重力センサにより検出された重力方向に応じて略水平或いは略垂直とみなせるか否かを判別するようにしたものである。ここで、両実施形態において基本的或いは名称的に同一のものは、同一符号を付して示し、その説明を省略すると共に、以下、第2実施形態の特徴部分を中心に説明するものとする。
(Second Embodiment)
Hereinafter, a second embodiment of the present invention will be described with reference to FIGS.
In the first embodiment described above, when determining whether or not the substantially straight image LN can be regarded as being substantially horizontal or substantially vertical, the distance between one end of the substantially straight image LN and one end of the live view image is determined. The determination is made by determining whether the distance between the other end of the substantially linear image LN and the one end of the live view image is substantially the same. In the second embodiment, a gravity sensor is used, It is determined whether or not the straight line image LN can be regarded as being substantially horizontal or substantially vertical according to the direction of gravity detected by the gravity sensor. Here, in both the embodiments, the same or the same names are denoted by the same reference numerals, the description thereof will be omitted, and the following description will focus on the features of the second embodiment. .

図10は、第2実施形態におけるデジタルカメラの基本的な構成要素を示したブロック図である。
このデジタルカメラ(画像処理装置)は、上述と基本的には同様の構成要素として、制御部1、電源部(二次電池)2、記憶部3、タッチ表示部4、キー操作部5、撮像部6を有しているほか、この第2実施形態においては、重力センサ7を更に有する構成となっている。この重力センサ7は、重力方向を検出する加速度センサで、制御部1は、ライブビュー画像内の略直線画像LNが重力センサ7により検出された重力方向に応じて特定される水平或いは垂直に近似する度合い(近似度)、つまり、水平度或いは垂直度に基づいて、略水平或いは略垂直とみなすか否かを判別するようにしている。
FIG. 10 is a block diagram illustrating basic components of a digital camera according to the second embodiment.
The digital camera (image processing apparatus) includes basically the same components as those described above, including a control unit 1, a power supply unit (secondary battery) 2, a storage unit 3, a touch display unit 4, a key operation unit 5, and imaging. In addition to having the portion 6, the second embodiment further includes a gravity sensor 7. The gravity sensor 7 is an acceleration sensor that detects the direction of gravity. The control unit 1 approximates a horizontal or vertical direction in which a substantially straight image LN in the live view image is specified according to the direction of gravity detected by the gravity sensor 7. Based on the degree (approximation), that is, the horizontality or the verticality, it is determined whether or not it is considered to be substantially horizontal or substantially vertical.

記憶部3は、プログラムメモリM1、ワークメモリM2などのほか、後述する閾値テーブルM3を有する構成で、第2実施形態における閾値テーブルM3は、上述した第1実施形態と同様に、「タッチ継続時間」、「閾値」、「許容誤差」の各項目を有し、第2実施形態の「許容誤差」には、重力センサ7により検出された重力方向との差を許容する値として傾きの度合いが許容誤差として記憶されている。   The storage unit 3 includes a program memory M1, a work memory M2, and the like, and a threshold table M3 to be described later. The threshold table M3 in the second embodiment is similar to the above-described first embodiment in “touch duration”. ”,“ Threshold ”, and“ allowable error ”. In the“ allowable error ”of the second embodiment, the degree of inclination is a value that allows a difference from the gravity direction detected by the gravity sensor 7. It is stored as an allowable error.

図11は、第2実施形態において、略水平/略垂直判別処理(図6のステップA23)を詳述するための図である。なお、第2実施形態において図11の略水平/略垂直判別処理のうち、図7の第1実施形態と基本的に同様な部分は簡単に説明するものとする。
先ず、制御部1は、ライブビュー画像内から検出した略直線画像LNが単数であれば(ステップC1でNO)、その略直線画像LNを処理対象として指定するが(ステップC2)、検出した略直線画像LNが複数であれば(ステップC1でYES)、複数の略直線画像LNの中から最初の略直線画像LNを処理対象として指定する(ステップC3)。この場合、ライブビュー画像の所定位置(例えば、左上隅部の位置)を基準として、その基準位置に近い略直線画像LNを処理対象として指定する。
FIG. 11 is a diagram for explaining in detail the substantially horizontal / substantially vertical discrimination process (step A23 in FIG. 6) in the second embodiment. In the second embodiment, in the substantially horizontal / substantially vertical discrimination process of FIG. 11, the part basically the same as that of the first embodiment of FIG. 7 will be briefly described.
First, if the substantially straight line image LN detected from the live view image is single (NO in step C1), the control unit 1 designates the substantially straight line image LN as a processing target (step C2), but the detected rough line image LN. If there are a plurality of straight line images LN (YES in step C1), the first substantially straight line image LN is designated as a processing target from among the plurality of substantially straight line images LN (step C3). In this case, with a predetermined position (for example, the position of the upper left corner) of the live view image as a reference, a substantially linear image LN close to the reference position is designated as a processing target.

そして、処理対象として指定した略直線画像LNの傾きとして、略直線画像LNの両端を結ぶ接続線(直線)の傾きを算出し(ステップC4)、この略直線画像LNの傾きが45°未満であるか否かに基づいて略直線画像LNを略水平として取り扱うか、略垂直として取り扱うかを決定する(ステップC5)。そして、ライブビュー画像内の略直線画像LNが重力センサ7により検出された重力方向に応じて特定される水平或いは垂直に近似する度合い(近似度)として、水平度或いは垂直度を計測する(ステップC6)。   Then, the inclination of the connection line (straight line) connecting both ends of the substantially linear image LN is calculated as the inclination of the substantially linear image LN designated as the processing target (step C4), and the inclination of the substantially linear image LN is less than 45 °. Based on whether or not there is, it is determined whether to handle the substantially straight line image LN as substantially horizontal or substantially vertical (step C5). Then, the horizontal degree or the vertical degree is measured as the degree of approximation (approximation) of the substantially straight line image LN in the live view image that is specified according to the gravity direction detected by the gravity sensor 7 (step). C6).

そして、計測した水平度或いは垂直度と、図6のステップA22で設定したタッチ継続時間に応じた「閾値」、つまり、「許容誤差」と比較し(ステップC7)、計測した水平度或いは垂直度の差は、「許容誤差」の範囲内であるかを調べる(ステップC8)。いま、「許容誤差」の範囲内であれば(ステップC8でYES)、この略直線画像LNを略水平或いは略垂直とみなせると判別するが(ステップC9)、「許容誤差」から外れていれば(ステップC8でNO)、上述のステップC9をスキップし、その判別を行わない。以下、処理対象として未指定の略直線画像LNが残っていれば(ステップC10でYES)、基準位置に近い未指定の略直線画像LNを処理対象として指定する(ステップC11)。そして、上述の傾き算出処理を行うステップC4に戻り、以下、全ての略直線画像LNを指定し終わるまで上述の動作を繰り返す。   Then, the measured horizontality or verticality is compared with the “threshold value” corresponding to the touch duration set in step A22 of FIG. 6, that is, “allowable error” (step C7), and the measured horizontality or verticality. It is checked whether the difference is within the range of “allowable error” (step C8). If it is within the range of “allowable error” (YES in step C8), it is determined that the substantially straight line image LN can be regarded as substantially horizontal or substantially vertical (step C9), but if it is outside the “allowable error”. (NO in step C8), the above-mentioned step C9 is skipped and the determination is not performed. Hereinafter, if an unspecified substantially straight image LN remains as a processing target (YES in Step C10), an unspecified substantially straight image LN close to the reference position is specified as a processing target (Step C11). Then, the process returns to step C4 where the above-described inclination calculation process is performed, and the above-described operation is repeated until all the substantially linear images LN are designated.

以上のように、第2実施形態においては、撮像部6から取得したライブビュー画像を表示させると共に、ライブビュー画像内に含まれている略直線画像LNを検出し、この略直線画像LNが重力センサ7により検出された重力方向に応じて特定される水平或いは垂直に近似する度合いを示す水平度或いは垂直度に基づいて、略水平或いは略垂直とみなすか否かを判別するようにしたので、正確に略水平或いは略垂直を判別することができるほか、第1実施形態と同様に、撮影時にその指標として利用される撮影補助線ATを必要時に適切な位置に表示することができ、最適な構図の撮影が可能となるなど、効果的な撮影支援を実現することが可能となる。   As described above, in the second embodiment, the live view image acquired from the imaging unit 6 is displayed, and the substantially straight image LN included in the live view image is detected. Since it is determined whether or not to be regarded as substantially horizontal or substantially vertical based on the horizontal or vertical indicating the degree of approximation to horizontal or vertical specified according to the direction of gravity detected by the sensor 7. In addition to being able to accurately determine substantially horizontal or substantially vertical, as in the first embodiment, the photographing auxiliary line AT used as an index at the time of photographing can be displayed at an appropriate position when necessary. It becomes possible to realize effective shooting support such as shooting of the composition.

なお、上述した第1実施形態では、略直線画像LNが略水平或いは略垂直とみなせるか否かを判別する場合に、略直線画像LNの一端部とライブビュー画像の一端部との距離と略直線画像LNの他端部とライブビュー画像の一端部との距離が略同一であるかを判別し、第2実施形態では、重力センサ7を使用して、略直線画像LNが略水平或いは略垂直とみなせるか否かを判別するようにしたが、第1実施形態の距離比較を行う判別方向と、第2実施形態の重力センサ7を使用した判別方法とをユーザ操作により任意に選択可能としてもよい。   In the first embodiment described above, when determining whether or not the substantially straight image LN can be regarded as substantially horizontal or substantially vertical, the distance between one end of the substantially straight image LN and one end of the live view image is substantially the same. In the second embodiment, it is determined whether the distance between the other end portion of the straight line image LN and the one end portion of the live view image is substantially the same, and in the second embodiment, the substantially straight image LN is substantially horizontal or substantially Although it is determined whether or not it can be regarded as vertical, the determination direction in which the distance comparison of the first embodiment is performed and the determination method using the gravity sensor 7 of the second embodiment can be arbitrarily selected by a user operation. Also good.

また、上述した各実施形態においては、撮影補助線として1本の直線(点線線)を示したが、二重線など、その形態や着色などは任意である。   In each of the above-described embodiments, a single straight line (dotted line) is shown as a photographing auxiliary line, but the form, coloring, etc., such as a double line, are arbitrary.

また、上述した各実施形態においては、静止画撮影を行う場合に限らず、動画撮影を行う場合であっても同様に適用可能である。また、撮像装置としては、デジタルカメラ自体(単体)に限らず、カメラ機能付きPDA・携帯電話機・音楽プレイヤーなどであってもよい。   Further, in each of the above-described embodiments, the present invention is not limited to the case where still image shooting is performed, but can be similarly applied to the case where moving image shooting is performed. Further, the imaging device is not limited to the digital camera itself (single unit), but may be a PDA with a camera function, a mobile phone, a music player, or the like.

また、上述した各実施形態において示した“装置”や“部”とは、機能別に複数の筐体に分離されていてもよく、単一の筐体に限らない。また、上述したフローチャートに記述した各ステップは、時系列的な処理に限らず、複数のステップを並列的に処理したり、別個独立して処理したりするようにしてもよい。   Further, the “apparatus” and “unit” shown in each of the above-described embodiments may be separated into a plurality of cases by function, and are not limited to a single case. In addition, each step described in the above-described flowchart is not limited to time-series processing, and a plurality of steps may be processed in parallel or separately.

以上、この発明のいくつかの実施形態について説明したが、この発明は、これに限定されるものではなく、特許請求の範囲に記載された発明とその均等の範囲を含むものである。
以下、本願出願の特許請求の範囲に記載された発明を付記する。
(付記)
(請求項1)
請求項1に記載の発明は、
撮像手段と、
前記撮像手段により取得された撮影画像を表示する表示手段と、
前記撮影画像内に含まれている略直線画像を検出する検出手段と、
前記検出手段により検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する判別手段と、
前記判別手段により前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる表示制御手段と、
を備えるようにしたことを特徴とする撮像装置である。
(請求項2)
請求項2に記載の発明は、請求項1に記載の撮像装置において、
前記表示手段に表示されている前記撮影画像内の位置を指定する指定手段を更に備え、
前記検出手段は、前記指定手段により指定された前記撮影画像内の位置から所定範囲内に含まれている略直線画像を検出する、
ようにしたことを特徴とする撮像装置である。
(請求項3)
請求項3に記載の発明は、請求項2に記載の撮像装置において、
前記指定手段は、前記表示手段上に重ね合わせて配設されているタッチパネルであり、
前記指定手段による位置の指定は、前記タッチパネルへのタッチ位置を検出することにより行う、
ようにしたことを特徴とする撮像装置である。
(請求項4)
請求項4に記載の発明は、請求項3に記載の撮像装置において、
前記タッチパネルをタッチし続けているタッチ継続時間を計測する計測手段を更に備え、
前記判別手段は、前記計測手段により計測された前記タッチ継続時間に応じて、前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させる、
ようにしたことを特徴とする撮像装置である。
(請求項5)
請求項5に記載の発明は、請求項1に記載の撮像装置において、
前記判別手段は、前記検出手段により検出された前記略直線画像の一端部と前記撮影画像の一端部との距離と前記略直線画像の他端部と前記撮影画像の一端部との距離が略同一である場合に、前記略直線画像が略水平或いは略垂直とみなせると判別する、
ようにしたことを特徴とする撮像装置である。
(請求項6)
請求項6に記載の発明は、請求項1に記載の撮像装置において、
重力センサを更に備え、
前記判別手段は、前記検出手段により検出された前記略直線画像が前記重力センサにより検出された重力方向に応じて特定される水平或いは垂直に近似する度合いを示す水平度或いは垂直度に基づいて、略水平或いは略垂直とみなすか否かを判別する、
ようにしたことを特徴とする撮像装置である。
(請求項7)
請求項7に記載の発明は、請求項1に記載の撮像装置において、
前記表示制御手段は、前記表示手段に表示されている前記撮影画像内の略直線画像の上に重ね合わせて前記撮影補助線を表示させる、
ようにしたことを特徴とする撮像装置である。
(請求項8)
請求項8に記載の発明は、請求項1に記載の撮像装置において、
前記表示制御手段は、予め設定されている撮影補助線のうち、前記表示手段に表示されている前記撮影画像内の略直線画像と略水平或いは略垂直が同方向であり、かつ一番近い位置の撮影補助線を選択して表示させる、
ようにしたことを特徴とする撮像装置である。
(請求項9)
請求項9に記載の発明は、請求項1に記載の撮像装置において、
前記判別手段は、前記検出手段により前記撮影画像内に複数の略直線画像が検出された場合に、その検出された略直線画像毎に略水平或いは略垂直とみなせるか否かの判別を行い、
前記判別手段により判別された複数の略直線画像の優先順位を決定する優先順位決定手段を更に備え、
前記表示制御手段は、前記優先順位決定手段により決定された優先順位に基づいて前記撮影補助線を識別可能に表示する、
ようにしたことを特徴とする撮像装置である。
(請求項10)
請求項10に記載の発明は、請求項9に記載の撮像装置において、
前記表示手段に表示されている前記撮影画像内の位置を指定する指定手段を更に備え、
前記優先順位決定手段は、前記指定手段により指定された位置との距離に基づき優先順位を決定する、
ようにしたことを特徴とする撮像装置である。
(請求項11)
請求項11に記載の発明は、請求項9に記載の撮像装置において、
前記判別手段は、前記検出手段により検出された略直線画像が略水平或いは略垂直とみなせると判別した場合に、その水平或いは垂直に近似する度合いを示す水平度或いは垂直度を更に判別し、
前記優先順位決定手段は、前記判別手段により判別された水平度或いは垂直度に基づいて優先順位を決定する、
ようにしたことを特徴とする撮像装置である。
(請求項12)
請求項12に記載の発明は、
コンピュータに対して、
撮像手段により取得された撮影画像を表示する機能と、
前記撮影画像内に含まれている略直線画像を検出する機能と、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する機能と、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる機能と、
を実現させるためのプログラムである。
As mentioned above, although several embodiment of this invention was described, this invention is not limited to this, The invention described in the claim and its equal range are included.
Hereinafter, the invention described in the claims of the present application will be appended.
(Appendix)
(Claim 1)
The invention described in claim 1
Imaging means;
Display means for displaying a captured image acquired by the imaging means;
Detecting means for detecting a substantially linear image included in the captured image;
Discriminating means for discriminating whether or not the substantially linear image detected by the detecting means can be regarded as substantially horizontal or substantially vertical;
When it is determined by the determining means that the substantially straight line image can be regarded as substantially horizontal or substantially vertical, an auxiliary shooting line is set at a position corresponding to the position of the substantially straight line image in the captured image displayed on the display means. Display control means for displaying;
It is an imaging device characterized by comprising.
(Claim 2)
The invention according to claim 2 is the imaging apparatus according to claim 1,
Further comprising designation means for designating a position in the captured image displayed on the display means;
The detection means detects a substantially straight image included in a predetermined range from a position in the captured image designated by the designation means;
The imaging apparatus is characterized by the above.
(Claim 3)
The invention according to claim 3 is the imaging apparatus according to claim 2,
The designation means is a touch panel disposed on the display means in an overlapping manner,
The designation of the position by the designation means is performed by detecting a touch position on the touch panel.
The imaging apparatus is characterized by the above.
(Claim 4)
The invention according to claim 4 is the imaging apparatus according to claim 3,
It further comprises a measuring means for measuring a touch duration time during which the touch panel is continuously touched,
The determination unit changes a threshold value as a reference value for determining whether or not the substantially linear image can be regarded as substantially horizontal or substantially vertical according to the touch duration time measured by the measurement unit.
The imaging apparatus is characterized by the above.
(Claim 5)
The invention according to claim 5 is the imaging apparatus according to claim 1,
The discriminating means has a distance between one end of the substantially linear image and one end of the captured image detected by the detecting means, and a distance between the other end of the substantially linear image and one end of the captured image. If they are the same, it is determined that the substantially straight line image can be regarded as substantially horizontal or substantially vertical.
The imaging apparatus is characterized by the above.
(Claim 6)
The invention described in claim 6 is the imaging apparatus according to claim 1,
A gravity sensor,
The discriminating means is based on a horizontal degree or a vertical degree indicating a degree to which the substantially straight line image detected by the detecting means approximates a horizontal or vertical direction specified according to the direction of gravity detected by the gravity sensor. To determine whether it is considered to be substantially horizontal or substantially vertical,
The imaging apparatus is characterized by the above.
(Claim 7)
The invention according to claim 7 is the imaging apparatus according to claim 1,
The display control unit displays the auxiliary shooting line superimposed on a substantially linear image in the captured image displayed on the display unit;
The imaging apparatus is characterized by the above.
(Claim 8)
The invention according to claim 8 is the imaging apparatus according to claim 1,
The display control means has a substantially horizontal or substantially vertical direction in the same direction as the substantially straight line image in the photographed image displayed on the display means among preset photographing auxiliary lines, and the closest position. Select and display the shooting auxiliary line,
The imaging apparatus is characterized by the above.
(Claim 9)
The invention described in claim 9 is the imaging apparatus according to claim 1,
The determination unit determines whether or not each of the detected substantially linear images can be regarded as substantially horizontal or substantially vertical when a plurality of substantially linear images are detected in the captured image by the detection unit;
Priority order determining means for determining the priority order of the plurality of substantially linear images determined by the determining means;
The display control means displays the photographing auxiliary line in an identifiable manner based on the priority order determined by the priority order determination means.
The imaging apparatus is characterized by the above.
(Claim 10)
The invention according to claim 10 is the imaging apparatus according to claim 9,
Further comprising designation means for designating a position in the captured image displayed on the display means;
The priority order determining means determines the priority order based on a distance from the position specified by the specifying means;
The imaging apparatus is characterized by the above.
(Claim 11)
The invention according to claim 11 is the imaging apparatus according to claim 9,
When determining that the substantially straight line image detected by the detecting unit can be regarded as substantially horizontal or substantially vertical, the determining unit further determines a horizontal or vertical degree indicating a degree of approximation to the horizontal or vertical,
The priority determining means determines the priority order based on the horizontality or verticality determined by the determining means;
The imaging apparatus is characterized by the above.
(Claim 12)
The invention according to claim 12
Against the computer,
A function of displaying a captured image acquired by the imaging means;
A function of detecting a substantially straight line image included in the captured image;
A function of determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A function of displaying a shooting auxiliary line at a position corresponding to the position of the substantially linear image in the displayed captured image when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical;
It is a program for realizing.

1 制御部
3 記憶部
4 タッチ表示部
4a 表示パネル
4b タッチパネル
5 キー操作部
6 撮像部
M1 プログラムメモリ
M3 閾値テーブル
LN 略直線画像
AT 撮影補助線
DESCRIPTION OF SYMBOLS 1 Control part 3 Memory | storage part 4 Touch display part 4a Display panel 4b Touch panel 5 Key operation part 6 Imaging part M1 Program memory M3 Threshold table LN Substantially straight image AT Shooting auxiliary line

Claims (18)

撮像手段と、
前記撮像手段により取得された撮影画像を表示する表示手段と、
前記撮影画像内に含まれている略直線画像を検出する検出手段と、
前記検出手段により検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する判別手段と、
前記判別手段が前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させる変更手段と、
前記判別手段により前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる表示制御手段と、
を備えるようにしたことを特徴とする撮像装置。
Imaging means;
Display means for displaying a captured image acquired by the imaging means;
Detecting means for detecting a substantially linear image included in the captured image;
Discriminating means for discriminating whether or not the substantially linear image detected by the detecting means can be regarded as substantially horizontal or substantially vertical;
Changing means for changing a threshold value as a reference value for determining whether the determining means can determine that the substantially straight line image is substantially horizontal or substantially vertical;
When it is determined by the determining means that the substantially straight line image can be regarded as substantially horizontal or substantially vertical, an auxiliary shooting line is set at a position corresponding to the position of the substantially straight line image in the captured image displayed on the display means. Display control means for displaying;
An image pickup apparatus comprising:
撮像手段と、
前記撮像手段により取得された撮影画像を表示する表示手段と、
前記撮影画像内に含まれている略直線画像を検出する検出手段と、
前記検出手段により検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する判別手段と、
前記判別手段により前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる表示制御手段と、
を備え、
前記判別手段は、前記検出手段により検出された前記略直線画像の一端部と前記撮影画像の一端部との距離と前記略直線画像の他端部と前記撮影画像の一端部との距離が略同一である場合に、前記略直線画像が略水平或いは略垂直とみなせると判別する、
ようにしたことを特徴とする撮像装置。
Imaging means;
Display means for displaying a captured image acquired by the imaging means;
Detecting means for detecting a substantially linear image included in the captured image;
Discriminating means for discriminating whether or not the substantially linear image detected by the detecting means can be regarded as substantially horizontal or substantially vertical;
When it is determined by the determining means that the substantially straight line image can be regarded as substantially horizontal or substantially vertical, an auxiliary shooting line is set at a position corresponding to the position of the substantially straight line image in the captured image displayed on the display means. Display control means for displaying;
With
The discriminating means has a distance between one end of the substantially linear image and one end of the captured image detected by the detecting means, and a distance between the other end of the substantially linear image and one end of the captured image. If they are the same, it is determined that the substantially straight line image can be regarded as substantially horizontal or substantially vertical.
An imaging apparatus characterized by being configured as described above.
前記表示制御手段に前記撮影補助線の表示を開始する指示を行う指示手段を更に備える、
ようにしたことを特徴とする請求項1又は2に記載の撮像装置。
An instruction means for instructing the display control means to start displaying the photographing auxiliary line;
The imaging apparatus according to claim 1 or 2, characterized in that the the like.
前記指示手段は、前記表示手段上に重ね合わせて配設されているタッチパネルであり、
前記指示手段による開始の指示は、前記タッチパネルへのタッチを検出することにより行う、
ようにしたことを特徴とする請求項に記載の撮像装置。
The instructing means is a touch panel disposed on the display means in an overlapping manner,
The start instruction by the instruction unit is performed by detecting a touch on the touch panel.
The imaging apparatus according to claim 3, which is configured as described above.
前記表示手段に表示されている前記撮影画像内の位置を指定する指定手段を更に備え、
前記検出手段は、前記指定手段により指定された前記撮影画像内の位置から所定範囲内に含まれている略直線画像を検出する、
ようにしたことを特徴とする請求項1又は2に記載の撮像装置。
Further comprising designation means for designating a position in the captured image displayed on the display means;
The detection means detects a substantially straight image included in a predetermined range from a position in the captured image designated by the designation means;
The imaging apparatus according to claim 1 or 2, characterized in that the the like.
前記指定手段は、前記検出手段が、前記指定手段により指定された前記撮影画像内の位置から所定範囲内に含まれている略直線画像を検出した場合に、前記表示制御手段に前記撮影補助線の表示を開始する指示を更に行う、
ようにしたことを特徴とする請求項に記載の撮像装置。
The designation means is arranged such that when the detection means detects a substantially straight image included in a predetermined range from the position in the photographed image designated by the designation means, the display control means is provided with the photographing auxiliary line. Further instructions to start displaying
The imaging apparatus according to claim 5, which is configured as described above.
前記指定手段は、前記表示手段上に重ね合わせて配設されているタッチパネルであり、
前記指定手段による位置の指定は、前記タッチパネルへのタッチ位置を検出することにより行う、
ようにしたことを特徴とする請求項又はに記載の撮像装置。
The designation means is a touch panel disposed on the display means in an overlapping manner,
The designation of the position by the designation means is performed by detecting a touch position on the touch panel.
The imaging apparatus according to claim 5 or 6 , wherein the imaging apparatus is configured as described above.
前記変更手段は、前記表示手段上に重ね合わせて配設されているタッチパネルであり、
前記タッチパネルをタッチし続けているタッチ継続時間を計測する計測手段を更に備え、
前記判別手段は、前記計測手段により計測された前記タッチ継続時間に応じて、前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させる、
ようにしたことを特徴とする請求項1に記載の撮像装置。
The changing means is a touch panel disposed on the display means so as to overlap with each other.
It further comprises a measuring means for measuring a touch duration time during which the touch panel is continuously touched,
The determination unit changes a threshold value as a reference value for determining whether or not the substantially linear image can be regarded as substantially horizontal or substantially vertical according to the touch duration time measured by the measurement unit.
The imaging apparatus according to claim 1, which is configured as described above.
重力センサを更に備え、
前記判別手段は、前記検出手段により検出された前記略直線画像が前記重力センサにより検出された重力方向に応じて特定される水平或いは垂直に近似する度合いを示す水平度或いは垂直度に基づいて、略水平或いは略垂直とみなすか否かを判別する、
ようにしたことを特徴とする請求項1〜のいずれかに記載の撮像装置。
A gravity sensor,
The discriminating means is based on a horizontal degree or a vertical degree indicating a degree to which the substantially straight line image detected by the detecting means approximates a horizontal or vertical direction specified according to the direction of gravity detected by the gravity sensor. To determine whether it is considered to be substantially horizontal or substantially vertical,
The imaging apparatus according to any one of claims 1 to 7, characterized in that the the like.
前記表示制御手段は、前記表示手段に表示されている前記撮影画像内の略直線画像の上に重ね合わせて前記撮影補助線を表示させる、
ようにしたことを特徴とする請求項1〜のいずれかに記載の撮像装置。
The display control unit displays the auxiliary shooting line superimposed on a substantially linear image in the captured image displayed on the display unit;
The imaging apparatus according to any one of claims 1 to 9, characterized in that the the like.
前記表示制御手段は、予め設定されている撮影補助線のうち、前記表示手段に表示されている前記撮影画像内の略直線画像と略水平或いは略垂直が同方向であり、かつ一番近い位置の撮影補助線を選択して表示させる、
ようにしたことを特徴とする請求項1〜1のいずれかに記載の撮像装置。
The display control means has a substantially horizontal or substantially vertical direction in the same direction as the substantially straight line image in the photographed image displayed on the display means among preset photographing auxiliary lines, and the closest position. Select and display the shooting auxiliary line,
Imaging device according to any one of claims 1 to 1 0, characterized in that the the like.
前記判別手段は、前記検出手段により前記撮影画像内に複数の略直線画像が検出された場合に、その検出された略直線画像毎に略水平或いは略垂直とみなせるか否かの判別を行い、
前記判別手段により判別された複数の略直線画像の優先順位を決定する優先順位決定手段を更に備え、
前記表示制御手段は、前記優先順位決定手段により決定された優先順位に基づいて前記撮影補助線を識別可能に表示する、
ようにしたことを特徴とする請求項1又は2に記載の撮像装置。
The determination unit determines whether or not each of the detected substantially linear images can be regarded as substantially horizontal or substantially vertical when a plurality of substantially linear images are detected in the captured image by the detection unit;
Priority order determining means for determining the priority order of the plurality of substantially linear images determined by the determining means;
The display control means displays the photographing auxiliary line in an identifiable manner based on the priority order determined by the priority order determination means.
The imaging apparatus according to claim 1 or 2, characterized in that the the like.
前記表示手段に表示されている前記撮影画像内の位置を指定する指定手段を更に備え、
前記優先順位決定手段は、前記指定手段により指定された位置との距離に基づき優先順位を決定する、
ようにしたことを特徴とする請求項1に記載の撮像装置。
Further comprising designation means for designating a position in the captured image displayed on the display means;
The priority order determining means determines the priority order based on a distance from the position specified by the specifying means;
The imaging apparatus according to claim 12 , wherein the imaging apparatus is configured as described above.
前記判別手段は、前記検出手段により検出された略直線画像が略水平或いは略垂直とみなせると判別した場合に、その水平或いは垂直に近似する度合いを示す水平度或いは垂直度を更に判別し、
前記優先順位決定手段は、前記判別手段により判別された水平度或いは垂直度に基づいて優先順位を決定する、
ようにしたことを特徴とする請求項1に記載の撮像装置。
When determining that the substantially straight line image detected by the detecting unit can be regarded as substantially horizontal or substantially vertical, the determining unit further determines a horizontal or vertical degree indicating a degree of approximation to the horizontal or vertical,
The priority determining means determines the priority order based on the horizontality or verticality determined by the determining means;
The imaging apparatus according to claim 12 , wherein the imaging apparatus is configured as described above.
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備えるコンピュータに対して、
前記撮影画像内に含まれている略直線画像を検出する機能と、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する機能と、
前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させる機能と、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる機能と、
を実現させるためのプログラム。
For a computer comprising an imaging means and a display means for displaying a captured image acquired by the imaging means,
A function of detecting a substantially straight line image included in the captured image;
A function of determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A function of changing a threshold value as a reference value for determining whether or not the substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A function of displaying a shooting auxiliary line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display unit when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
A program to realize
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備える撮像装置における表示方法であって、
前記撮影画像内に含まれている略直線画像を検出するステップと、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別するステップと、
前記略直線画像が略水平或いは略垂直とみなせるか否かを判別するための基準値としての閾値を変化させるステップと、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させるステップと、
を含むことを特徴とする表示方法。
A display method in an imaging apparatus comprising imaging means and display means for displaying a captured image acquired by the imaging means,
Detecting a substantially straight line image included in the captured image;
Determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
Changing a threshold value as a reference value for determining whether or not the substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A step of displaying an auxiliary shooting line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display means when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
A display method comprising:
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備えるコンピュータに対して、
前記撮影画像内に含まれている略直線画像を検出する機能と、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別する機能と、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させる機能と、
を実現させ、
検出された前記略直線画像の一端部と前記撮影画像の一端部との距離と前記略直線画像の他端部と前記撮影画像の一端部との距離が略同一である場合に、前記略直線画像が略水平或いは略垂直とみなせると判別する、
ことを特徴とするプログラム。
For a computer comprising an imaging means and a display means for displaying a captured image acquired by the imaging means,
A function of detecting a substantially straight line image included in the captured image;
A function of determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A function of displaying a shooting auxiliary line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display unit when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
Realized,
When the detected distance between the one end of the substantially linear image and the one end of the captured image and the distance between the other end of the approximately linear image and the one end of the captured image are substantially the same, It is determined that the image can be regarded as substantially horizontal or substantially vertical.
A program characterized by that.
撮像手段と、前記撮像手段により取得された撮影画像を表示する表示手段を備える撮像装置における表示方法であって、
前記撮影画像内に含まれている略直線画像を検出するステップと、
前記検出された略直線画像が略水平或いは略垂直とみなせるか否かを判別するステップと、
前記略直線画像が略水平或いは略垂直とみなせると判別された場合に、前記表示手段に表示されている前記撮影画像内の略直線画像の位置に対応する位置に撮影補助線を表示させるステップと、
を含み、
検出された前記略直線画像の一端部と前記撮影画像の一端部との距離と前記略直線画像の他端部と前記撮影画像の一端部との距離が略同一である場合に、前記略直線画像が略水平或いは略垂直とみなせると判別する、
ことを特徴とする表示方法。

A display method in an imaging apparatus comprising imaging means and display means for displaying a captured image acquired by the imaging means,
Detecting a substantially straight line image included in the captured image;
Determining whether the detected substantially straight line image can be regarded as substantially horizontal or substantially vertical;
A step of displaying an auxiliary shooting line at a position corresponding to the position of the substantially linear image in the captured image displayed on the display means when it is determined that the substantially linear image can be regarded as substantially horizontal or substantially vertical; ,
Including
When the detected distance between the one end of the substantially linear image and the one end of the captured image and the distance between the other end of the approximately linear image and the one end of the captured image are substantially the same, It is determined that the image can be regarded as substantially horizontal or substantially vertical.
A display method characterized by that.

JP2011114810A 2011-05-23 2011-05-23 Imaging apparatus, program, and display method Expired - Fee Related JP5867894B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011114810A JP5867894B2 (en) 2011-05-23 2011-05-23 Imaging apparatus, program, and display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011114810A JP5867894B2 (en) 2011-05-23 2011-05-23 Imaging apparatus, program, and display method

Publications (3)

Publication Number Publication Date
JP2012244536A JP2012244536A (en) 2012-12-10
JP2012244536A5 JP2012244536A5 (en) 2014-06-19
JP5867894B2 true JP5867894B2 (en) 2016-02-24

Family

ID=47465732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011114810A Expired - Fee Related JP5867894B2 (en) 2011-05-23 2011-05-23 Imaging apparatus, program, and display method

Country Status (1)

Country Link
JP (1) JP5867894B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004104463A (en) * 2002-09-10 2004-04-02 Sony Corp Imaging device
JP4904108B2 (en) * 2006-07-25 2012-03-28 富士フイルム株式会社 Imaging apparatus and image display control method
JP5157647B2 (en) * 2008-05-30 2013-03-06 株式会社ニコン camera

Also Published As

Publication number Publication date
JP2012244536A (en) 2012-12-10

Similar Documents

Publication Publication Date Title
JP5109803B2 (en) Image processing apparatus, image processing method, and image processing program
JP6757268B2 (en) Imaging device and its control method
US10158798B2 (en) Imaging apparatus and method of controlling the same
JP6742730B2 (en) Electronic device and control method thereof
JP2009294850A (en) Image processor and image processing method
JP6405531B2 (en) Imaging device
JP6544996B2 (en) Control device and control method
US20190116318A1 (en) Electronic apparatus and method for controlling the same
JP2013219525A (en) Imaging device, control method therefor, and program
JP5652408B2 (en) Imaging apparatus, imaging method, and program
JP6270578B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP5565433B2 (en) Imaging apparatus, imaging processing method, and program
JP2009230036A (en) Setting device and program
JP5880459B2 (en) Electronic device, display control method and program
JP5867894B2 (en) Imaging apparatus, program, and display method
JP5015121B2 (en) Imaging device
JP2015133624A (en) Imaging apparatus, control method and control program of the same, and recording medium
JP6406393B2 (en) Display control apparatus, display control method, and program
JP5907602B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP6149952B2 (en) Electronic device, display control method and program
JP7513639B2 (en) Display method
JP7394151B2 (en) Display method
JP2005333340A (en) Imaging apparatus
JP6128929B2 (en) Imaging apparatus, control method therefor, and program
JP5215427B2 (en) Information processing apparatus, information processing method, program, and recording medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140428

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140428

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150115

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150721

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150731

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

R150 Certificate of patent or registration of utility model

Ref document number: 5867894

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151227

LAPS Cancellation because of no payment of annual fees