JP2012156628A - Electronic camera, image processing apparatus, and image processing program - Google Patents

Electronic camera, image processing apparatus, and image processing program Download PDF

Info

Publication number
JP2012156628A
JP2012156628A JP2011011944A JP2011011944A JP2012156628A JP 2012156628 A JP2012156628 A JP 2012156628A JP 2011011944 A JP2011011944 A JP 2011011944A JP 2011011944 A JP2011011944 A JP 2011011944A JP 2012156628 A JP2012156628 A JP 2012156628A
Authority
JP
Japan
Prior art keywords
image
unit
rotation
reference axis
electronic camera
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.)
Withdrawn
Application number
JP2011011944A
Other languages
Japanese (ja)
Inventor
Mio Nishizawa
未央 西沢
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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP2011011944A priority Critical patent/JP2012156628A/en
Publication of JP2012156628A publication Critical patent/JP2012156628A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To eliminate the need for complicated operation for rotation or trimming of an image.SOLUTION: An electronic camera comprises: an imaging part which takes a subject image; a display part which has a rectangular display surface for displaying the image taken by the imaging part; a reference axis setting part which sets a reference axis indicating a horizontal or vertical direction to the image displayed by the display part; a rotation direction indication part which indicates the rotation direction of the image displayed by the display part; and an image rotation part which rotates the image in the rotation direction so that the reference axis becomes horizontal or vertical to a side of the rectangular display surface of the display part.

Description

本発明は、画像処理技術に関する。   The present invention relates to an image processing technique.

近年の電子カメラの普及に伴い、画像撮影が気軽に行われるようになってきた。ところが、撮影時に電子カメラを水平に構えることができず、被写体が斜めに撮影されてしまうという問題があった。また、撮影された画像を好みの角度に回転して編集したいという要望もあった。そこで、例えば撮影済みの画像をトリミングして、任意に角度を決めて回転させる技術が検討されていた(例えば特許文献1参照)。   With the recent spread of electronic cameras, it has become easy to take images. However, there is a problem that the electronic camera cannot be held horizontally during shooting, and the subject is shot obliquely. There has also been a desire to edit a photographed image by rotating it to a desired angle. For this reason, for example, a technique for trimming a photographed image, arbitrarily determining an angle, and rotating the image has been studied (see, for example, Patent Document 1).

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

ところが、従来技術では、画像の回転を行うために煩雑な操作を行わなければならないという問題があった。   However, the conventional technique has a problem that a complicated operation must be performed to rotate the image.

本発明の目的は、煩雑な操作を行うことなく画像の回転を行うことができる電子カメラ、画像処理装置および画像処理プログラムを提供することである。   An object of the present invention is to provide an electronic camera, an image processing apparatus, and an image processing program capable of rotating an image without performing a complicated operation.

本発明に係る電子カメラは、被写体画像を撮影する撮影部と、前記撮影部が撮影した画像を表示するための方形状の表示面を有する表示部と、前記表示部に表示された画像に対して水平または垂直を示す基準軸を設定する基準軸設定部と、前記表示部に表示された画像の回転方向を指示する回転方向指示部と、前記基準軸が前記表示部の方形状の表示面の辺に対して水平または垂直になるように前記画像を前記回転方向に回転させる画像回転部とを有することを特徴とする。   An electronic camera according to the present invention provides a photographing unit for photographing a subject image, a display unit having a square display surface for displaying an image photographed by the photographing unit, and an image displayed on the display unit. A reference axis setting unit that sets a reference axis indicating horizontal or vertical, a rotation direction instruction unit that indicates a rotation direction of an image displayed on the display unit, and a display surface in which the reference axis is a rectangular shape of the display unit And an image rotation unit that rotates the image in the rotation direction so as to be horizontal or perpendicular to the sides of the image.

本発明に係る画像処理装置は、記憶媒体に記憶された画像を表示するための方形状の表示面を有する表示部と、前記表示部に表示された画像に対して水平または垂直を示す基準軸を設定する基準軸設定部と、前記表示部に表示された画像の回転方向を指示する回転方向指示部と、前記基準軸が前記表示部の方形状の表示面の辺に対して水平または垂直になるように前記画像を前記回転方向に回転させる画像回転部とを有することを特徴とする。   An image processing apparatus according to the present invention includes a display unit having a square display surface for displaying an image stored in a storage medium, and a reference axis indicating horizontal or vertical with respect to the image displayed on the display unit A reference axis setting unit for setting a rotation direction indicating unit for specifying a rotation direction of an image displayed on the display unit, and a horizontal or vertical direction with respect to a side of a rectangular display surface of the display unit. And an image rotation unit that rotates the image in the rotation direction.

本発明に係る画像処理プログラムは、方形状の表示面を有する表示媒体に記憶媒体に記憶された画像を表示するための表示する画像表示処理と、前記表示媒体に表示された画像に対して水平または垂直を示す基準軸を設定する基準軸設定処理と、前記表示媒体に表示された画像の回転方向を指示する回転方向指示処理と、前記基準軸が前記表示媒体の方形状の表示面の辺に対して水平または垂直になるように前記画像を前記回転方向に回転させる画像回転処理とを有することを特徴とする。   An image processing program according to the present invention includes an image display process for displaying an image stored in a storage medium on a display medium having a square display surface, and a horizontal display with respect to the image displayed on the display medium. Alternatively, a reference axis setting process for setting a reference axis indicating vertical, a rotation direction instruction process for indicating a rotation direction of an image displayed on the display medium, and a side of a rectangular display surface of the display medium. Image rotation processing for rotating the image in the rotation direction so as to be horizontal or vertical with respect to the image.

本発明に係る電子カメラ、画像処理装置および画像処理プログラムは、煩雑な操作を行うことなく画像の回転を行うことができる。   The electronic camera, the image processing apparatus, and the image processing program according to the present invention can rotate an image without performing a complicated operation.

電子カメラ101の構成例を示す図である。1 is a diagram illustrating a configuration example of an electronic camera 101. FIG. 画像処理部104の構成例を示す図である。3 is a diagram illustrating a configuration example of an image processing unit 104. FIG. 電子カメラ101の画像処理の具体例を示す図である。It is a figure which shows the specific example of the image process of the electronic camera. 回転ベクトルの一例を示す図である。It is a figure which shows an example of a rotation vector. 回転ベクトルのその他の例を示す図である。It is a figure which shows the other example of a rotation vector. 電子カメラ101の水平・垂直補正処理を示すフローチャートである。4 is a flowchart illustrating horizontal / vertical correction processing of the electronic camera 101. 電子カメラ101aの構成例を示す図である。It is a figure which shows the structural example of the electronic camera 101a. 電子カメラ101aの画像処理の具体例を示す図である。It is a figure which shows the specific example of the image process of the electronic camera 101a. 電子カメラ101aの水平・垂直補正処理を示すフローチャートである。It is a flowchart which shows the horizontal and vertical correction process of the electronic camera 101a. その他の基準軸または回転ベクトルの入力方法を示す図である。It is a figure which shows the input method of the other reference axis or rotation vector.

以下、本発明に係る電子カメラ、画像処理装置および画像処理プログラムの実施形態について図面を用いて詳しく説明する。尚、以下の実施形態では、本発明に係る画像処理装置および画像処理プログラムが搭載された電子カメラの例について説明するが、撮影済みの画像データを入力して画像処理を行うパソコンの画像処理プログラムや単体の画像処理装置であっても構わない。   Hereinafter, embodiments of an electronic camera, an image processing apparatus, and an image processing program according to the present invention will be described in detail with reference to the drawings. In the following embodiments, an example of an electronic camera equipped with an image processing apparatus and an image processing program according to the present invention will be described. An image processing program for a personal computer that performs image processing by inputting captured image data Or a single image processing apparatus.

[電子カメラ101の構成例および基本動作]
先ず、各実施形態に共通の電子カメラ101の構成例および基本動作について説明する。図1は電子カメラ101の構成例を示すブロック図で、電子カメラ101は、撮像部102と、画像バッファ103と、画像処理部104と、表示部105と、タッチパネル106と、制御部107と、メモリ108と、メモリカードIF(インターフェース)109と、操作部110とで構成される。尚、操作ボタン110以外の各ブロックは、共通バス111を介して相互に接続されている。
[Configuration Example and Basic Operation of Electronic Camera 101]
First, a configuration example and basic operation of the electronic camera 101 common to the embodiments will be described. FIG. 1 is a block diagram illustrating a configuration example of an electronic camera 101. The electronic camera 101 includes an imaging unit 102, an image buffer 103, an image processing unit 104, a display unit 105, a touch panel 106, a control unit 107, The memory 108, a memory card IF (interface) 109, and an operation unit 110 are included. The blocks other than the operation button 110 are connected to each other via the common bus 111.

撮像部102は、例えば光学レンズ、撮像素子、A/D変換器およびタイミング発生器などで構成される。そして、撮像部102は、制御部107の指令に従って被写体画像を撮影し、撮影した画像を共通バッファ111を介して画像バッファ103に取り込む。   The imaging unit 102 includes, for example, an optical lens, an imaging device, an A / D converter, a timing generator, and the like. Then, the imaging unit 102 captures a subject image in accordance with an instruction from the control unit 107, and takes the captured image into the image buffer 103 via the common buffer 111.

画像バッファ103は、例えば揮発性の高速メモリで構成され、撮像部102が撮影した画像を一時的に記憶する。また、画像処理部104が画像処理を行う際のバッファメモリとしても使用される。或いは、メモリカードIF109に接続されたメモリカード109aに保存されている撮影済の画像を読み出して表示部105に表示したり、画像処理を施す際のバッファメモリとしても使用される。   The image buffer 103 is composed of, for example, a volatile high-speed memory, and temporarily stores an image captured by the imaging unit 102. Further, it is also used as a buffer memory when the image processing unit 104 performs image processing. Alternatively, the captured image stored in the memory card 109a connected to the memory card IF 109 is read out and displayed on the display unit 105, or used as a buffer memory when performing image processing.

画像処理部104は、例えば信号処理プロセッサなどで構成され、画像バッファ103に取り込まれた画像に対して所定の画像処理を施す。所定の画像処理は、例えばホワイトバランス処理、色補間処理、ガンマ補正処理、彩度強調処理、輪郭輪郭強調処理、或いはJPEG規格などに準拠した画像圧縮方法による画像データの圧縮処理などである。特に本実施形態では、画像処理部104は、後に説明するように、画像の回転処理、トリミング処理、画像サイズ調整処理などを行う。   The image processing unit 104 includes, for example, a signal processor, and performs predetermined image processing on the image captured in the image buffer 103. The predetermined image processing is, for example, white balance processing, color interpolation processing, gamma correction processing, saturation enhancement processing, contour outline enhancement processing, or image data compression processing by an image compression method compliant with the JPEG standard or the like. In particular, in the present embodiment, the image processing unit 104 performs image rotation processing, trimming processing, image size adjustment processing, and the like, as will be described later.

表示部105は、液晶モニタなどで構成され、制御部107の指令によって画像バッファ103に記憶されている撮影画像や電子カメラ101の操作に必要なメニュー画面などが表示される。   The display unit 105 is configured by a liquid crystal monitor or the like, and displays a captured image stored in the image buffer 103 or a menu screen necessary for operating the electronic camera 101 in accordance with an instruction from the control unit 107.

タッチパネル106は、表示部105の画面上に配置され、ユーザーが指で触れた画面上の座標位置を制御部107に出力する。   The touch panel 106 is disposed on the screen of the display unit 105, and outputs the coordinate position on the screen touched by the user with the finger to the control unit 107.

制御部107は、例えば内部に記憶されたプログラムに従って動作するCPUで構成され、電子カメラ101の各部の動作を制御する。例えばユーザーによる操作部110の操作に従って電子カメラ101の電源のON/OFFや撮影モードの設定などを行う。また、制御部107は、タッチパネル106が出力する座標位置の情報を使用して、例えば表示部105にメニュー画面が表示されている場合は、メニュー画面上に表示されたボタンが押下されたか否かを判別する。特に本実施形態では、表示部105に表示されている画像を回転する際の操作をタッチパネル106を利用して行う。   The control unit 107 is configured by a CPU that operates according to a program stored therein, for example, and controls the operation of each unit of the electronic camera 101. For example, according to the operation of the operation unit 110 by the user, the power of the electronic camera 101 is turned on / off, the shooting mode is set, and the like. Further, the control unit 107 uses the coordinate position information output from the touch panel 106, for example, when a menu screen is displayed on the display unit 105, whether or not the button displayed on the menu screen has been pressed. Is determined. In particular, in the present embodiment, an operation for rotating an image displayed on the display unit 105 is performed using the touch panel 106.

メモリ108は、例えばフラッシュメモリなどの不揮発性の半導体メモリで構成され、電子カメラ101の動作に必要なパラメータが記憶される。制御部107は、これらのパラメータを参照して電子カメラ101の動作を制御する。尚、これらのパラメータは、操作部110を介して行われるユーザー操作に応じて適宜更新される。   The memory 108 is composed of a nonvolatile semiconductor memory such as a flash memory, for example, and stores parameters necessary for the operation of the electronic camera 101. The control unit 107 controls the operation of the electronic camera 101 with reference to these parameters. Note that these parameters are updated as appropriate according to user operations performed via the operation unit 110.

メモリカードIF109は、電子カメラ101にメモリカード109aを接続するためのインターフェースである。そして、制御部107はメモリカードIF109を介してメモリカード109aに画像データを読み書きする。   The memory card IF 109 is an interface for connecting the memory card 109 a to the electronic camera 101. Then, the control unit 107 reads / writes image data from / to the memory card 109 a via the memory card IF 109.

操作部110は、電源ボタン110a、レリーズボタン110b、動作モード選択ダイヤル110c、カーソルボタン110d、水平・垂直補正ボタン111eなどで構成される。ユーザーは、これらの操作ボタンを操作して電子カメラ101を使用する。例えば動作モード選択ダイヤル110cでは、静止画撮影モード、動画撮影モード、或いは撮影済みの画像の再生モードなどを選択する。また、カーソルボタン110dでは、表示部105に表示されたメニュー画面の操作などをタッチパネル106と並行して行う。特に本実施形態では、水平・垂直補正ボタン111eが押下されると、制御部107および画像処理部104は、表示部105に表示されている画像を回転して、画像内の被写体が水平または垂直になるように補正する処理を行う。   The operation unit 110 includes a power button 110a, a release button 110b, an operation mode selection dial 110c, a cursor button 110d, a horizontal / vertical correction button 111e, and the like. The user operates these operation buttons to use the electronic camera 101. For example, the operation mode selection dial 110c selects a still image shooting mode, a moving image shooting mode, a playback mode of a shot image, or the like. Further, the cursor button 110 d performs operations on the menu screen displayed on the display unit 105 in parallel with the touch panel 106. In particular, in this embodiment, when the horizontal / vertical correction button 111e is pressed, the control unit 107 and the image processing unit 104 rotate the image displayed on the display unit 105 so that the subject in the image is horizontal or vertical. The process which correct | amends to become is performed.

以上が電子カメラ101の構成および基本動作である。尚、電子カメラ101ではなく、本発明に係る単体の画像処理装置の場合は、図1において、撮像部102および操作部110のレリーズボタン110bなどの撮像用のブロックを取り除いた構成でよい。そして、制御部107は画像処理装置の制御部に相当し、撮影済みの画像データをメモリカード109aから画像バッファ103に読み出して、画像処理部104で画像の回転処理、トリミング処理、画像サイズ調整処理などを行う。   The above is the configuration and basic operation of the electronic camera 101. In the case of a single image processing apparatus according to the present invention instead of the electronic camera 101, the image capturing block such as the image capturing unit 102 and the release button 110b of the operation unit 110 in FIG. The control unit 107 corresponds to the control unit of the image processing apparatus, reads captured image data from the memory card 109a to the image buffer 103, and the image processing unit 104 performs image rotation processing, trimming processing, and image size adjustment processing. Etc.

[画像処理部104の構成例]
次に、画像処理部104について詳しく説明する。画像処理部104は、先に説明したように、ホワイトバランス処理や色補間処理などの一般的な画像処理に加えて、表示部105に表示されている画像を回転する処理を行う。尚、この処理は、操作部110の水平・垂直補正ボタン111eが押下された場合に、制御部107から画像処理部104に回転処理を指令する。
[Configuration Example of Image Processing Unit 104]
Next, the image processing unit 104 will be described in detail. As described above, the image processing unit 104 performs processing for rotating the image displayed on the display unit 105 in addition to general image processing such as white balance processing and color interpolation processing. In this process, when the horizontal / vertical correction button 111e of the operation unit 110 is pressed, the control unit 107 instructs the image processing unit 104 to perform a rotation process.

図2は、画像処理部104が行う画像の回転処理に関係する処理ブロックを示した図である。尚、図2では、わかり易いように、一般的な画像処理を行うブロックは省略してある。   FIG. 2 is a diagram illustrating processing blocks related to image rotation processing performed by the image processing unit 104. In FIG. 2, a block for performing general image processing is omitted for easy understanding.

図2において、画像処理部104は、基準軸設定処理部201と、回転方向設定処理部202と、回転処理部203と、トリミング処理部204とで基本的に構成される。さらに、後で説明するように、画像サイズ調整処理部205を設けても構わない。以下、図3を参照して各処理について説明する。   In FIG. 2, the image processing unit 104 basically includes a reference axis setting processing unit 201, a rotation direction setting processing unit 202, a rotation processing unit 203, and a trimming processing unit 204. Furthermore, as will be described later, an image size adjustment processing unit 205 may be provided. Hereinafter, each process will be described with reference to FIG.

基準軸設定処理部201は、表示部105の画面105aに表示された画像300を回転する際に、水平または垂直に合わせようとする基準軸を設定する処理を行う。例えば図3(a)は、表示部105の画面105aに表示された撮影済みの画像300の例を示し、被写体301の人物が左に傾いて撮影されている。そして、基準軸設定処理部201は、ユーザーが表示部105の画面105a上を指でなぞった部分に直線Aを描画し、図3(b)に示すように、この直線Aを基準軸として設定する。   When the image 300 displayed on the screen 105a of the display unit 105 is rotated, the reference axis setting processing unit 201 performs a process of setting a reference axis to be aligned horizontally or vertically. For example, FIG. 3A shows an example of a photographed image 300 displayed on the screen 105a of the display unit 105, and a person of the subject 301 is photographed while tilting to the left. Then, the reference axis setting processing unit 201 draws a straight line A on a portion where the user traces the screen 105a of the display unit 105 with a finger, and sets the straight line A as a reference axis as shown in FIG. To do.

回転方向設定処理部202は、基準軸となる直線Aが描かれた画面105aに、回転方向を設定する処理を行う。例えば図3(c)に示すように、直線Aが描かれた画面105a上をユーザーが指でなぞった部分に直線Bを回転ベクトルとして設定する。   The rotation direction setting processing unit 202 performs a process of setting the rotation direction on the screen 105a on which the straight line A serving as the reference axis is drawn. For example, as shown in FIG. 3C, the straight line B is set as a rotation vector at a portion where the user traces the screen 105a on which the straight line A is drawn with a finger.

回転処理部203は、回転ベクトルとなる直線Bが設定された画面105a内で、画像300を回転する処理を行う。例えば図3(d)に示すように、直線Aが描かれた画像300は、直線Aが画面105aに対して垂直になるように回転される。ここで、回転処理部203は、直線Aを直近の水平または垂直の位置に自動的に合わせるものとする。また、直線Aを画面105aに対して垂直にする処理は、例えば図3(c)および図3(d)に示すように、画面105aおよび画像300の画素座標から、直線Aと画面105aの垂直方向との角度θが判るので、周知のアフィン変換などの座標回転計算を行うことにより、回転後の画像を得ることができる。   The rotation processing unit 203 performs a process of rotating the image 300 in the screen 105a on which the straight line B serving as a rotation vector is set. For example, as shown in FIG. 3D, the image 300 on which the straight line A is drawn is rotated so that the straight line A is perpendicular to the screen 105a. Here, the rotation processing unit 203 automatically adjusts the straight line A to the nearest horizontal or vertical position. Further, the process of making the straight line A perpendicular to the screen 105a is, for example, as shown in FIGS. 3C and 3D, based on the pixel coordinates of the screen 105a and the image 300, the straight line A and the screen 105a. Since the angle θ with the direction is known, a rotated image can be obtained by performing coordinate rotation calculation such as well-known affine transformation.

トリミング処理部204は、回転後の画像300は画面105aからはみ出した部分があるので、画面105aと水平および垂直が平行になるように画像300をトリミングして画像302を作成する。尚、トリミングは、画像302ができるだけ大きくなるように矩形上に画像300をトリミングする。トリミング方法の一例として、例えば、画像302が画面105aと同じアスペクト比の矩形領域とした場合、図3(e)に示すように、直線Aの中点を基準に矩形領域の4つの角を広げて行った時に画像302の4つの角のいずれかが画像300の辺に突き当たった状態がトリミングの最大サイズとなる。このようにして、図3(f)に示すようなトリミング後の画像302を得ることができる。   The trimming processing unit 204 creates the image 302 by trimming the image 300 so that the horizontal and vertical directions are parallel to the screen 105a because the rotated image 300 has a portion that protrudes from the screen 105a. In the trimming, the image 300 is trimmed on a rectangle so that the image 302 becomes as large as possible. As an example of the trimming method, for example, when the image 302 is a rectangular area having the same aspect ratio as the screen 105a, the four corners of the rectangular area are expanded with reference to the midpoint of the straight line A as shown in FIG. The maximum trimming size is a state in which any one of the four corners of the image 302 hits the side of the image 300. In this way, a trimmed image 302 as shown in FIG. 3F can be obtained.

画像サイズ調整処理部205は、トリミング後の画像302を撮影済みの画像300と同じサイズに拡大する処理を行う。トリミング後の画像302は、図3(f)に示すように、画面105aより小さい画像になっているので、メモリカード109aに記憶されている他の撮影済みの画像と画像のサイズが異なってしまう。そこで、画像サイズ調整処理部205は、図3(g)に示すように、画像300と同じサイズになるように画像302に対して拡大処理を行って拡大後の画像303を作成する。尚、拡大処理は、例えば1画素を縦横2画素に置き換えたり、画素補間などの方法で行うことができる。   The image size adjustment processing unit 205 performs a process of enlarging the trimmed image 302 to the same size as the captured image 300. Since the trimmed image 302 is smaller than the screen 105a as shown in FIG. 3 (f), the image size differs from other captured images stored in the memory card 109a. . Therefore, the image size adjustment processing unit 205 performs an enlargement process on the image 302 so as to have the same size as the image 300 as illustrated in FIG. Note that the enlargement process can be performed, for example, by replacing one pixel with two vertical and horizontal pixels or by pixel interpolation.

尚、図3(c)の説明では、回転ベクトルは直線Bの方向だけで決まり、図3(d)に示すように、回転処理部203は直線Aが直近の画面105aの水平または垂直に合うように回転処理を行うものとしたが、直線Bの代わりに、図4(a)に示すように、2方向を示す2つの直線を組み合わせた線Cを回転方向として入力できるようにしても構わない。この場合は、一旦、図3(c)に示すように直線Aを画面105aの垂直方向に合わせた後、さらに同じ方向(図3の場合は時計回り)に回転させて、図4(b)に示すように、画面105aの水平方向に合わせる。尚、線Cを3方向を示す3つの直線を組み合わせて、さらに大きな回転角度を指定できるようにしてもよい。或いは、図4(d)に示すように、曲線Dや曲線Eで指定するようにしてもよい。この場合は、曲線Dや曲線Eの長さなどで回転角度を指定できる。   In the description of FIG. 3C, the rotation vector is determined only by the direction of the straight line B. As shown in FIG. 3D, the rotation processing unit 203 matches the horizontal or vertical of the screen 105a with the straight line A. However, instead of the straight line B, as shown in FIG. 4A, a line C that is a combination of two straight lines indicating two directions may be input as the rotation direction. Absent. In this case, once the straight line A is aligned with the vertical direction of the screen 105a as shown in FIG. 3C, it is further rotated in the same direction (clockwise in the case of FIG. 3), and FIG. As shown in FIG. 4, the horizontal direction of the screen 105a is adjusted. The line C may be combined with three straight lines indicating three directions so that a larger rotation angle can be designated. Or you may make it designate with the curve D and the curve E, as shown in FIG.4 (d). In this case, the rotation angle can be specified by the length of the curve D or the curve E.

また、図3(d)の回転処理では、図5(a)に示すように、直線Aの中点を中心に回転するようにしたが、図5(b)に示すように回転の中心を移動できるようにしてもよい。この場合は、図3(b)の直線Aの設定時に、図5(a)に示すように中心点311を画面105aに表示し、例えば操作部110のカーソルボタン110dによって中心311の位置を直線Aに沿って移動できるようにしてもよい。例えばカーソルボタン110dの下矢印キーを押下すると、図5(b)に示すように中心311が直線Aの下方に移動する。同様に、カーソルボタン110dの上矢印キーを押下すれば、中心311を直線Aの上方に移動することもできる。或いは、図5(c)に示すように、ユーザーの人差し指312を中心311に固定し、中指313で画面105a上をコンパスのように回転させて回転ベクトルを入力するようにしてもよい。   In the rotation process of FIG. 3 (d), the rotation is performed around the midpoint of the straight line A as shown in FIG. 5 (a). However, the center of rotation is rotated as shown in FIG. 5 (b). It may be possible to move. In this case, when the straight line A in FIG. 3B is set, the center point 311 is displayed on the screen 105a as shown in FIG. 5A, and the position of the center 311 is straightened by the cursor button 110d of the operation unit 110, for example. You may enable it to move along A. For example, when the down arrow key of the cursor button 110d is pressed, the center 311 moves below the straight line A as shown in FIG. Similarly, the center 311 can be moved above the straight line A by pressing the up arrow key of the cursor button 110d. Alternatively, as shown in FIG. 5C, the user's index finger 312 may be fixed to the center 311, and the rotation vector may be inputted by rotating the screen 105 a like a compass with the middle finger 313.

このようにして、本実施形態に係る電子カメラ101は、図3(a)のように、斜めに撮影された被写体301を図3(f)および図3(g)に示すように画面105aに対して水平または垂直に回転する補正を行うことができる。   In this way, the electronic camera 101 according to the present embodiment displays the subject 301 photographed obliquely on the screen 105a as shown in FIGS. 3 (f) and 3 (g), as shown in FIG. 3 (a). On the other hand, correction that rotates horizontally or vertically can be performed.

[水平・垂直補正処理]
次に、水平・垂直補正処理について図6のフローチャートを用いて説明する。
[Horizontal / Vertical correction processing]
Next, horizontal / vertical correction processing will be described with reference to the flowchart of FIG.

(ステップS101)ユーザーは、電子カメラ101を用いて撮影した画像またはメモリカード109aから読み出した画像を表示部105に表示する。   (Step S <b> 101) The user displays an image captured using the electronic camera 101 or an image read from the memory card 109 a on the display unit 105.

(ステップS102)ユーザーが操作部110の水平・垂直補正ボタン111eを押下すると、制御部107および画像処理部104は水平・垂直補正処理を開始する。   (Step S102) When the user presses the horizontal / vertical correction button 111e of the operation unit 110, the control unit 107 and the image processing unit 104 start horizontal / vertical correction processing.

(ステップS103)制御部107は、タッチパネル106から入力される座標情報に応じて直線Aを描画するよう画像処理部104に指令する。そして、画像処理部104の基準軸設定処理部201は、制御部107から入力する座標情報に従って基準軸を設定する処理を行う。例えば、基準軸設定処理部201は、先に説明した図3(b)のように、ユーザーがタッチパネル106で入力した直線Aを画面105aの画像300上に描画する。   (Step S <b> 103) The control unit 107 instructs the image processing unit 104 to draw the straight line A according to the coordinate information input from the touch panel 106. Then, the reference axis setting processing unit 201 of the image processing unit 104 performs processing for setting the reference axis according to the coordinate information input from the control unit 107. For example, the reference axis setting processing unit 201 draws a straight line A input by the user on the touch panel 106 on the image 300 of the screen 105a as illustrated in FIG.

(ステップS104)制御部107は、ユーザーによる直線Aの入力および画像処理部104による設定が完了したか否かを判別し、完了していない場合はステップS103に戻り、完了した場合は次のステップに進む。   (Step S104) The control unit 107 determines whether or not the input of the straight line A by the user and the setting by the image processing unit 104 have been completed. If not completed, the control unit 107 returns to step S103. Proceed to

(ステップS105)制御部107は、タッチパネル106から入力される座標情報に応じて直線Bを入力し、回転ベクトルを設定するよう画像処理部104に指令する。そして、画像処理部104の回転方向設定処理部202は、制御部107から入力する座標情報に従って回転ベクトルを設定する処理を行う。例えば、回転方向設定処理部202は、先に説明した図3(c)のように、ユーザーがタッチパネル106で入力した直線Bを回転ベクトルとする。   (Step S105) The control unit 107 inputs the straight line B according to the coordinate information input from the touch panel 106, and instructs the image processing unit 104 to set a rotation vector. Then, the rotation direction setting processing unit 202 of the image processing unit 104 performs processing for setting a rotation vector according to the coordinate information input from the control unit 107. For example, the rotation direction setting processing unit 202 uses the straight line B input by the user on the touch panel 106 as the rotation vector as illustrated in FIG.

尚、直線Bは、画面105aの画像300上に描画してもよいが、直線Bの設定終了と同時に次のステップS106とステップS107とが連続して直ぐに実行されるので、直線Bの描画を行わなくても構わない。或いは、ユーザーが直線Bを確認できるように、所定時間(例えば1秒間)だけ直線Bを表示した後、次のステップS106およびステップS107に進むようにしても構わないし、直線Bを表示したまま後の処理を行うようにしても構わない。いずれの場合でも、直線Aや直線Bは画像300の画像データを書き換えるのではなく、画面105aに表示する際の表示用のデータ上に書き加えられるので、メモリカード109aに保存するときに直線Aや直線Bが残ることはない。   The straight line B may be drawn on the image 300 on the screen 105a. However, since the next step S106 and step S107 are executed immediately after the setting of the straight line B, the straight line B is drawn. You don't have to. Alternatively, after the straight line B is displayed for a predetermined time (for example, 1 second) so that the user can check the straight line B, the process may proceed to the next step S106 and step S107. You may make it perform. In any case, the straight line A and the straight line B are not rewritten on the image data of the image 300, but are added to the display data for display on the screen 105a. And the straight line B does not remain.

(ステップS106)制御部107は、ユーザーによる直線Bの入力および画像処理部104による設定が完了したか否かを判別し、完了していない場合はステップS105に戻り、完了した場合は次のステップに進む。   (Step S106) The control unit 107 determines whether or not the input of the straight line B by the user and the setting by the image processing unit 104 have been completed. If not completed, the control unit 107 returns to step S105. Proceed to

(ステップS107)画像処理部104の回転処理部203は、設定された直線Aを基準に直線Bの回転ベクトルに従って表示部105に表示されている画像300を回転する処理を行う。この状態で、先に説明した図3(d)の回転後の画像300が得られる。   (Step S107) The rotation processing unit 203 of the image processing unit 104 performs a process of rotating the image 300 displayed on the display unit 105 according to the rotation vector of the straight line B with reference to the set straight line A. In this state, the image 300 after rotation shown in FIG.

(ステップS108)画像処理部104のトリミング処理部204は、回転後の画像のトリミング処理を行う。例えば、トリミング処理部204は、先に説明した図3(e)のようなトリミング処理を行い、図3(f)に示すようなトリミング後の画像302が得られる。   (Step S108) The trimming processing unit 204 of the image processing unit 104 performs trimming processing of the rotated image. For example, the trimming processing unit 204 performs the trimming process as illustrated in FIG. 3E to obtain a trimmed image 302 as illustrated in FIG.

(ステップS109)画像処理部104の画像サイズ調整処理部205は、トリミング後の画像を撮影後の画像と同じサイズ(同じ画素数)の画像になるように拡大する処理を行う。例えば、画像サイズ調整処理部205は、先に説明した図3(g)のように、トリミング後の画像302を撮影時の画像300と同じサイズになるように拡大処理を行い、拡大後の画像303が得られる。尚、本処理を行わずに次の保存処理を行うようにしても構わない。   (Step S109) The image size adjustment processing unit 205 of the image processing unit 104 performs a process of enlarging the trimmed image so that the image has the same size (the same number of pixels) as the captured image. For example, as shown in FIG. 3G described above, the image size adjustment processing unit 205 performs an enlargement process so that the trimmed image 302 has the same size as the image 300 at the time of shooting, and the enlarged image. 303 is obtained. Note that the next storage process may be performed without performing this process.

(ステップS110)制御部107は、画像バッファ103に記憶されている画像処理部104が処理後の画像をメモリカードIF109を介してメモリカード109aに保存する。例えば、ステップS109の拡大処理を行わない場合は、図3(f)のトリミング後の画像302の画像データをメモリカード109aに保存し、ステップS109の拡大処理を行う場合は、図3(g)の拡大後の画像303の画像データをメモリカード109aに保存する。   (Step S <b> 110) The control unit 107 stores the image processed by the image processing unit 104 stored in the image buffer 103 in the memory card 109 a via the memory card IF 109. For example, when the enlargement process of step S109 is not performed, the image data of the trimmed image 302 of FIG. 3F is stored in the memory card 109a, and when the enlargement process of step S109 is performed, FIG. Is stored in the memory card 109a.

このようにして、本実施形態に係る電子カメラ101は、図3(a)のように、斜めに撮影された被写体301を図3(f)および図3(g)に示すように画面105aに対して水平または垂直に回転する補正を行うことができる。   In this way, the electronic camera 101 according to the present embodiment displays the subject 301 photographed obliquely on the screen 105a as shown in FIGS. 3 (f) and 3 (g), as shown in FIG. 3 (a). On the other hand, correction that rotates horizontally or vertically can be performed.

(変形例)
次に、先に説明した図1の電子カメラ101の変形例として、図7の電子カメラ101aについて説明する。尚、図7において、図1と同符号のものは同じものを示す。図7において、図1と異なるのは、ジャイロセンサ112が追加されていることである。ジャイロセンサ112は、加速度を感知するセンサで、電子カメラ101の筐体の傾き角度を検出するセンサである。特に本実施形態に係る電子カメラ101では、ジャイロセンサ112は、表示部105の表示面を含む二次元平面上の回転角度を検出する。
(Modification)
Next, an electronic camera 101a in FIG. 7 will be described as a modified example of the electronic camera 101 in FIG. 1 described above. In FIG. 7, the same reference numerals as those in FIG. 7 is different from FIG. 1 in that a gyro sensor 112 is added. The gyro sensor 112 is a sensor that senses acceleration, and is a sensor that detects the tilt angle of the casing of the electronic camera 101. In particular, in the electronic camera 101 according to this embodiment, the gyro sensor 112 detects a rotation angle on a two-dimensional plane including the display surface of the display unit 105.

ジャイロセンサ112が出力する傾き角度の情報は、図2で説明した画像処理部104の回転方向設定処理部202に出力される。そして、回転方向設定処理部202は、先の実施形態で説明した直線Bによる回転ベクトルの代わりにジャイロセンサ112の傾き角度の情報を利用する。   Information on the tilt angle output from the gyro sensor 112 is output to the rotation direction setting processing unit 202 of the image processing unit 104 described with reference to FIG. Then, the rotation direction setting processing unit 202 uses information on the inclination angle of the gyro sensor 112 instead of the rotation vector by the straight line B described in the previous embodiment.

次に、本変形例における電子カメラ101aの処理について説明する。図8は、図3に対応する図で、電子カメラ101aの筐体の表示部105側の様子を示した図である。例えば図8(a)は図3(a)に対応し、表示部105の画面105aに表示された撮影済みの画像300の例を示し、被写体301の人物が左に傾いて撮影されている。そして、基準軸設定処理部201は、ユーザーが表示部105の画面105a上を指でなぞった部分に直線Aを描画し、図8(b)に示すように、この直線Aを基準軸として設定する。基準軸の設定までの処理は、図3(b)と同じである。   Next, processing of the electronic camera 101a in this modification will be described. FIG. 8 is a diagram corresponding to FIG. 3 and is a diagram showing a state of the display unit 105 side of the casing of the electronic camera 101a. For example, FIG. 8A corresponds to FIG. 3A and shows an example of a photographed image 300 displayed on the screen 105a of the display unit 105, and a person of the subject 301 is photographed while tilting to the left. Then, the reference axis setting processing unit 201 draws a straight line A on a portion where the user traces the screen 105a of the display unit 105 with a finger, and sets the straight line A as a reference axis as shown in FIG. 8B. To do. The processing up to the setting of the reference axis is the same as in FIG.

ここで、ユーザーは、回転方向設定処理部202に、回転方向を設定する操作を行う。例えば図8(c)に示すように、ユーザーは、画像300を回転したい方向に、電子カメラ101aの筐体を回転させる。ジャイロセンサ112は、この動きを検知して傾き角度の情報を回転方向設定処理部202に出力する。回転方向設定処理部202は、ジャイロセンサ112から入力する傾き角度の情報から例えば紙面の時計回りに傾いたことがわかるので回転ベクトルを時計回りに設定する。ここで、ジャイロセンサ112が出力する情報から回転方向がわかればよいので、正確な角度情報は不要である。   Here, the user performs an operation of setting the rotation direction on the rotation direction setting processing unit 202. For example, as illustrated in FIG. 8C, the user rotates the casing of the electronic camera 101 a in the direction in which the image 300 is to be rotated. The gyro sensor 112 detects this movement and outputs information on the tilt angle to the rotation direction setting processing unit 202. The rotation direction setting processing unit 202 sets the rotation vector in the clockwise direction because it can be seen from the information on the inclination angle input from the gyro sensor 112 that the image is inclined, for example, clockwise. Here, since it is only necessary to know the rotation direction from the information output from the gyro sensor 112, accurate angle information is unnecessary.

そして、回転処理部203は、回転方向設定処理部202が設定した回転ベクトルに従って、画面105a内で画像300を回転する処理を行う。例えば図8(d)に示すように、直線Aが描かれた画像300は、直線Aが画面105aに対して垂直になるように回転される。ここで、回転処理部203は、図3の場合と同様に、直線Aを直近の水平または垂直の位置に自動的に合わせるものとする。尚、ジャイロセンサ112の傾き角度が予め設定した閾値以下の場合は直近の水平または垂直の位置に合わせ、閾値以上の場合はさらに次の水平または垂直の位置に合わせるようにしてもよい。   Then, the rotation processing unit 203 performs a process of rotating the image 300 in the screen 105a according to the rotation vector set by the rotation direction setting processing unit 202. For example, as shown in FIG. 8D, the image 300 on which the straight line A is drawn is rotated so that the straight line A is perpendicular to the screen 105a. Here, the rotation processing unit 203 automatically adjusts the straight line A to the nearest horizontal or vertical position as in the case of FIG. If the tilt angle of the gyro sensor 112 is less than or equal to a preset threshold value, it may be adjusted to the nearest horizontal or vertical position, and if it is more than the threshold value, it may be adjusted to the next horizontal or vertical position.

また、図8(d)の回転終了後に、回転後の位置を確定する操作を行うようにしてもよい。例えば回転後にレリーズボタン110bの押下(或いは水平・垂直補正ボタン111eの押下)を行うことにより、回転位置を確定する。これにより、さらに回転処理を続けることが可能になる。例えば、ユーザーは図8(d)の状態から図8(c)のようにさらに電子カメラ101aの筐体を回転させることにより、画像300を時計回りや反時計回りに自由に回転させることができる。そして、気に入った位置で、レリーズボタン110bの押下(或いは水平・垂直補正ボタン111eの押下)を行うことにより、回転位置を確定する。   Further, after the rotation in FIG. 8D, an operation for determining the position after the rotation may be performed. For example, the rotation position is determined by pressing the release button 110b (or pressing the horizontal / vertical correction button 111e) after the rotation. This makes it possible to continue the rotation process. For example, the user can freely rotate the image 300 clockwise or counterclockwise from the state of FIG. 8D by further rotating the housing of the electronic camera 101a as shown in FIG. 8C. . Then, the rotation position is determined by pressing the release button 110b (or pressing the horizontal / vertical correction button 111e) at a desired position.

尚、回転方向設定処理部202がジャイロセンサ112の傾き角度から回転ベクトルを設定する際に、ジャイロセンサ112の角度変化が予め設定した閾値以上の場合だけ回転ベクトルとして認識するようにしてもよい。これにより、ユーザーが手持ちの電子カメラ101aが緩やかに動いている場合の誤動作を防止できる。   When the rotation direction setting processing unit 202 sets the rotation vector from the tilt angle of the gyro sensor 112, it may be recognized as the rotation vector only when the angle change of the gyro sensor 112 is equal to or greater than a preset threshold value. Thereby, it is possible to prevent malfunction when the electronic camera 101a that the user has is moving gently.

そして、回転処理が終了後、トリミング処理部204は、図3(e)と同様に、回転後の画像300の画面105aからはみ出した部分をトリミングする処理を行い、図8(e)に示すようなトリミング後の画像302を作成する。尚、トリミング方法については、先に説明した通りである。また、電子カメラ101aの設定により、画像サイズ調整処理部205は、トリミング後の画像302を撮影時の画像300と同じサイズに拡大する処理を行って、図8(f)に示すように、拡大後の画像303を作成してもよい。   Then, after the rotation process is completed, the trimming processing unit 204 performs a process of trimming the portion of the rotated image 300 that protrudes from the screen 105a, as shown in FIG. 3E, as shown in FIG. A trimmed image 302 is created. The trimming method is as described above. Further, according to the setting of the electronic camera 101a, the image size adjustment processing unit 205 performs a process of enlarging the trimmed image 302 to the same size as the image 300 at the time of shooting, and as illustrated in FIG. A later image 303 may be created.

このようにして、本変形例に係る電子カメラ101aは、図8(a)のように、斜めに撮影された被写体301を図8(e)および図8(f)に示すように画面105aに対して水平または垂直に回転する補正を行うことができる。特に本変形例では、回転方向の指定を電子カメラ101aの筐体を傾ける操作によって行うので、感覚的に利用することができる。   In this way, the electronic camera 101a according to the present modification example displays the subject 301 photographed obliquely on the screen 105a as shown in FIGS. 8 (e) and 8 (f), as shown in FIG. 8 (a). On the other hand, correction that rotates horizontally or vertically can be performed. In particular, in this modification, the rotation direction is designated by an operation of tilting the housing of the electronic camera 101a, and thus can be used sensuously.

次に、変形例に係る電子カメラ101aの水平・垂直補正処理について図9のフローチャートを用いて説明する。尚、図9のフローチャートは、先に説明した図6に対応する図で、同じステップ番号は同じ処理を示す。以下、図6と異なる部分についてのみ説明する。図9において、ステップS101からステップS103までの基準軸を設定するまでの処理は図6と同じである。   Next, horizontal / vertical correction processing of the electronic camera 101a according to the modification will be described with reference to the flowchart of FIG. The flowchart of FIG. 9 corresponds to FIG. 6 described above, and the same step number indicates the same process. Only the parts different from FIG. 6 will be described below. In FIG. 9, the process from the step S101 to the step S103 until the reference axis is set is the same as that in FIG.

(ステップS201)ユーザーは、表示部105の画面105aに表示されている画像を回転させたい方向に電子カメラ101aの筐体を回転させる。そして、ジャイロセンサ112が筐体の回転を検出した場合は次のステップに進み、筐体の回転を検出しない場合はステップS201で待機する。   (Step S201) The user rotates the casing of the electronic camera 101a in a direction in which the image displayed on the screen 105a of the display unit 105 is to be rotated. When the gyro sensor 112 detects the rotation of the casing, the process proceeds to the next step. When the gyro sensor 112 does not detect the rotation of the casing, the process waits in step S201.

(ステップS202)画像処理部104の回転方向設定処理部202は、ジャイロセンサ112から入力する傾き角度の情報に従って回転ベクトルを設定する処理を行う。尚、本処理は、図6のステップS105に対応する処理である。   (Step S <b> 202) The rotation direction setting processing unit 202 of the image processing unit 104 performs a process of setting a rotation vector according to the tilt angle information input from the gyro sensor 112. This process is a process corresponding to step S105 in FIG.

次のステップS107の処理は、図6と同じ処理で、画像処理部104の回転処理部203は、設定された直線Aを基準に回転ベクトルに従って表示部105に表示されている画像300を回転する処理を行う。この状態で、先に説明した図8(d)の回転後の画像300が得られる。   The processing in the next step S107 is the same as that in FIG. 6, and the rotation processing unit 203 of the image processing unit 104 rotates the image 300 displayed on the display unit 105 based on the set straight line A according to the rotation vector. Process. In this state, the image 300 after rotation shown in FIG.

(ステップS203)制御部107は、ジャイロセンサ112が筐体の傾きを検出したか否かを判別する。そして、ジャイロセンサ112が筐体の傾きを検出した場合は、ステップS202に戻って再び回転処理を行い、ジャイロセンサ112が筐体の傾きを検出していない場合は、次のステップに進む。   (Step S203) The control unit 107 determines whether or not the gyro sensor 112 has detected the tilt of the housing. If the gyro sensor 112 detects the tilt of the casing, the process returns to step S202 to perform the rotation process again. If the gyro sensor 112 does not detect the tilt of the casing, the process proceeds to the next step.

(ステップS204)制御部107は、回転後の位置を確定するために、ユーザーが操作部110のレリーズボタン110bを押下したか否かを判別する。尚、ここでは、レリーズボタン110bの押下により、回転後の位置を確定するものとするが、水平・垂直補正ボタン111eの押下により回転後の位置を確定するようにしてもよい。この場合は、本処理ステップで水平・垂直補正ボタン111eが押下されたか否かの判別を行う。そして、レリーズボタン110bが押下された場合は次のステップに進み、押下されていない場合はステップS203に戻って、連続して回転するか否かの判別処理を行う。尚、連続して回転する処理を行わない場合は、ステップS203およびステップS204の処理は不要である。   (Step S204) The control unit 107 determines whether or not the user has pressed the release button 110b of the operation unit 110 in order to determine the position after the rotation. Here, the position after rotation is determined by pressing the release button 110b, but the position after rotation may be determined by pressing the horizontal / vertical correction button 111e. In this case, it is determined whether or not the horizontal / vertical correction button 111e is pressed in this processing step. If the release button 110b is pressed, the process proceeds to the next step. If the release button 110b is not pressed, the process returns to step S203 to determine whether to continuously rotate. Note that if the process of continuously rotating is not performed, the processes of steps S203 and S204 are not necessary.

(ステップS205)制御部107は、画像処理部104に回転後の位置確定の指令を出力し、画像処理部104は回転後の位置を確定する。   (Step S205) The control unit 107 outputs a command for determining the position after rotation to the image processing unit 104, and the image processing unit 104 determines the position after rotation.

回転後の位置が確定すると、図6と同様にステップS108のトリミング処理を行い、さらに画像サイズを調整する場合は、ステップS109で画像サイズの拡大処理を行う。そして、ステップS110で、制御部107は、画像バッファ103に記憶されている画像処理部104が処理後の画像をメモリカードIF109を介してメモリカード109aに保存する。例えば、ステップS109の拡大処理を行わない場合は、図8(e)のトリミング後の画像302の画像データをメモリカード109aに保存し、ステップS109の拡大処理を行う場合は、図8(f)の拡大後の画像303の画像データをメモリカード109aに保存する。   When the position after rotation is determined, the trimming process in step S108 is performed as in FIG. 6, and when the image size is further adjusted, the image size enlargement process is performed in step S109. In step S110, the control unit 107 stores the image processed by the image processing unit 104 stored in the image buffer 103 in the memory card 109a via the memory card IF 109. For example, when the enlargement process of step S109 is not performed, the image data of the trimmed image 302 of FIG. 8E is stored in the memory card 109a, and when the enlargement process of step S109 is performed, FIG. Is stored in the memory card 109a.

このようにして、本変形例に係る電子カメラ101aは、図8(a)のように、斜めに撮影された被写体301を図8(e)および図8(f)に示すように画面105aに対して水平または垂直に回転する補正を行うことができる。特に本変形例では、回転方向の指定を電子カメラ101aの筐体を傾ける操作によって行うので、感覚的に利用することができる。   In this way, the electronic camera 101a according to the present modification example displays the subject 301 photographed obliquely on the screen 105a as shown in FIGS. 8 (e) and 8 (f), as shown in FIG. 8 (a). On the other hand, correction that rotates horizontally or vertically can be performed. In particular, in this modification, the rotation direction is designated by an operation of tilting the housing of the electronic camera 101a, and thus can be used sensuously.

尚、上記の実施形態では、本発明を電子カメラ101および電子カメラ101aに適用する場合について説明したが、単体の画像処理装置の場合は、図1または図7において、撮像部102および操作部110のレリーズボタン110bなどの撮像用のブロックを取り除いた構成でよい。そして、制御部107は画像処理装置の制御部に相当し、撮影済みの画像データをメモリカード109aから画像バッファ103に読み出して、画像処理部104で画像の回転処理、トリミング処理、画像サイズ調整処理などを行う。   In the above embodiment, the case where the present invention is applied to the electronic camera 101 and the electronic camera 101a has been described. However, in the case of a single image processing apparatus, the imaging unit 102 and the operation unit 110 in FIG. 1 or FIG. The image capturing block such as the release button 110b may be removed. The control unit 107 corresponds to the control unit of the image processing apparatus, reads captured image data from the memory card 109a to the image buffer 103, and the image processing unit 104 performs image rotation processing, trimming processing, and image size adjustment processing. And so on.

また、図6のフローチャートおよび図9のフローチャートに従った処理を行う画像プログラムを記憶した記憶媒体やインターネット等の通信媒体を介してダウンロードした画像処理プログラムをパソコンなどのコンピュータにインストールして実行するようにしてもよい。このようにパソコンで処理を行う場合は、例えば図1のタッチパネル106ではなくマウスなどのポインティングデバイスを用いて基準軸や回転ベクトルの設定を行うことができる。例えば図10(a)に示すように、パソコンのモニタの画面105a上に表示されたマウスのカーソル401で基準軸となる直線Aを引いたり(図10(a))、回転ベクトルとなる直線Bを引くことができる(図10(b))。或いは、回転ベクトルは、図10(c)に示すように、マウス402自体を右方向や左方向に動かすことによって指定することができる。尚、トリミングや画像サイズの拡大などの処理は、電子カメラ101や電子カメラ101aの場合と同じである。   The image processing program downloaded via a storage medium storing an image program for performing processing according to the flowchart of FIG. 6 and the flowchart of FIG. 9 or a communication medium such as the Internet is installed in a computer such as a personal computer and executed. It may be. When processing is performed by a personal computer in this way, the reference axis and the rotation vector can be set using a pointing device such as a mouse instead of the touch panel 106 of FIG. For example, as shown in FIG. 10A, a straight line A serving as a reference axis is drawn with a mouse cursor 401 displayed on the monitor screen 105a of the personal computer (FIG. 10A), or a straight line B serving as a rotation vector is displayed. Can be drawn (FIG. 10B). Alternatively, the rotation vector can be specified by moving the mouse 402 itself in the right direction or the left direction as shown in FIG. Note that processes such as trimming and image size enlargement are the same as those of the electronic camera 101 and the electronic camera 101a.

このように、各実施形態に係る電子カメラ101および電子カメラ101a、或いは撮像部102を持たない専用の画像処理装置やパソコンなどのコンピュータで実行する画像処理プログラムは、撮影済みの画像に対して、表示部105の画面上で任意に基準軸となる直線を設定して表示し、その直線が画面の各辺に対して垂直又は水平になるように表示された画像を回転し、画面の各辺と平行になるように矩形状に画像をトリミングする。これにより、画面の各辺に対して斜めに撮影された画像を水平または垂直になるように画像を回転して補正することことができ、撮影時に被写体が水平になっているか或いは垂直になっているかに気を使うことなく気軽に撮影することができる。   As described above, the electronic camera 101 and the electronic camera 101a according to each embodiment, or an image processing program executed by a computer such as a dedicated image processing apparatus or a personal computer that does not have the imaging unit 102, A straight line as a reference axis is arbitrarily set and displayed on the screen of the display unit 105, and the displayed image is rotated so that the straight line is vertical or horizontal with respect to each side of the screen. Trim the image in a rectangular shape so that This makes it possible to correct the image taken obliquely with respect to each side of the screen by rotating the image so that it is horizontal or vertical, and the subject is horizontal or vertical at the time of shooting. You can easily shoot without worrying about whether or not you are.

以上、本発明に係る電子カメラ、画像処理装置および画像処理プログラムについて、各実施形態で例を挙げて説明してきたが、その精神またはその主要な特徴から逸脱することなく他の多様な形で実施することができる。そのため、上述した実施形態はあらゆる点で単なる例示に過ぎず、限定的に解釈してはならない。本発明は、特許請求の範囲によって示されるものであって、本発明は明細書本文にはなんら拘束されない。さらに、特許請求の範囲の均等範囲に属する変形や変更は、全て本発明の範囲内である。   As described above, the electronic camera, the image processing apparatus, and the image processing program according to the present invention have been described by way of examples in the respective embodiments. However, the electronic camera, the image processing apparatus, and the image processing program may be implemented in various other forms without departing from the spirit or main features thereof. can do. Therefore, the above-described embodiment is merely an example in all respects and should not be interpreted in a limited manner. The present invention is defined by the claims, and the present invention is not limited to the text of the specification. Further, all modifications and changes belonging to the equivalent scope of the claims are within the scope of the present invention.

101・・・電子カメラ;102・・・撮像部;103・・・画像バッファ;104・・・画像処理部;105・・・表示部;106・・・タッチパネル;107・・・制御部;108・・・メモリ;109・・・メモリカードIF;110・・・操作部;111・・・共通バス;201・・・基準軸設定処理部;202・・・回転方向設定処理部;203・・・回転処理部;204・・・トリミング処理部;205・・・画像サイズ調整処理部;112・・・ジャイロセンサ;110a・・・電源ボタン;110b・・・レリーズボタン;110c・・・動作モード選択ダイヤル;110d・・・カーソルボタン;111e・・・水平・垂直補正ボタン DESCRIPTION OF SYMBOLS 101 ... Electronic camera; 102 ... Imaging part; 103 ... Image buffer; 104 ... Image processing part; 105 ... Display part; 106 ... Touch panel; ... Memory 109... Memory card IF 110 110 Operation unit 111 Common bus 201 201 Reference axis setting processing unit 202 202 Rotation direction setting processing unit 203 Rotation processing unit; 204, trimming processing unit, 205, image size adjustment processing unit, 112, gyro sensor, 110a, power button, 110b, release button, 110c, operation mode Selection dial; 110d ... cursor button; 111e ... horizontal / vertical correction button

Claims (8)

(基本クレーム)
被写体画像を撮影する撮影部と、
前記撮影部が撮影した画像を表示するための方形状の表示面を有する表示部と、
前記表示部に表示された画像に対して水平または垂直を示す基準軸を設定する基準軸設定部と、
前記表示部に表示された画像の回転方向を指示する回転方向指示部と、
前記基準軸が前記表示部の方形状の表示面の辺に対して水平または垂直になるように前記画像を前記回転方向に回転させる画像回転部と、
を有することを特徴とする電子カメラ。
(Basic claims)
A shooting section for shooting a subject image;
A display unit having a square display surface for displaying an image captured by the imaging unit;
A reference axis setting unit for setting a reference axis indicating horizontal or vertical with respect to the image displayed on the display unit;
A rotation direction instruction unit for instructing the rotation direction of the image displayed on the display unit;
An image rotation unit that rotates the image in the rotation direction so that the reference axis is horizontal or vertical with respect to a side of a rectangular display surface of the display unit;
An electronic camera comprising:
請求項1に記載の電子カメラにおいて、
前記画像回転部が回転後の画像をトリミングするトリミング部と、
前記トリミング部がトリミング後の画像を記憶媒体に記録する記録部と
を更に設けたことを特徴とする電子カメラ。
The electronic camera according to claim 1,
A trimming unit for trimming the rotated image by the image rotation unit;
An electronic camera, wherein the trimming unit further includes a recording unit that records the trimmed image on a storage medium.
(トリミング後の画像サイズ調整)
請求項2に記載の電子カメラにおいて、
前記トリミング部がトリミング後の画像のサイズを前記撮影部が撮影した画像と同サイズに調整する画像サイズ調整部を更に設けたことを特徴とする電子カメラ。
(Adjust image size after trimming)
The electronic camera according to claim 2,
An electronic camera, further comprising: an image size adjustment unit that adjusts a size of an image after the trimming unit is trimmed to the same size as an image captured by the imaging unit.
(タッチパネル)
請求項1から3のいずれか一項に記載の電子カメラにおいて、
前記基準軸および前記回転方向を設定するためのタッチパネルを前記表示部に更に設けたことを特徴とする電子カメラ。
(Touch panel)
The electronic camera according to any one of claims 1 to 3,
An electronic camera, wherein a touch panel for setting the reference axis and the rotation direction is further provided on the display unit.
(パソコンなどの画像処理装置クレーム)
記憶媒体に記憶された画像を表示するための方形状の表示面を有する表示部と、
前記表示部に表示された画像に対して水平または垂直を示す基準軸を設定する基準軸設定部と、
前記表示部に表示された画像の回転方向を指示する回転方向指示部と、
前記基準軸が前記表示部の方形状の表示面の辺に対して水平または垂直になるように前記画像を前記回転方向に回転させる画像回転部と
を有することを特徴とする画像処理装置。
(Image processing device complaints such as personal computers)
A display unit having a square display surface for displaying an image stored in a storage medium;
A reference axis setting unit for setting a reference axis indicating horizontal or vertical with respect to the image displayed on the display unit;
A rotation direction instruction unit for instructing the rotation direction of the image displayed on the display unit;
An image processing apparatus comprising: an image rotation unit configured to rotate the image in the rotation direction so that the reference axis is horizontal or vertical with respect to a side of a rectangular display surface of the display unit.
請求項5に記載の画像処理装置において、
前記画像回転部が回転後の画像をトリミングするトリミング部を更に設けたことを特徴とする画像処理装置。
The image processing apparatus according to claim 5.
An image processing apparatus, further comprising a trimming unit for trimming the rotated image by the image rotation unit.
(マウス対応)
請求項5または6に記載の画像処理装置において、
前記基準軸および前記回転方向を設定するためのポインティング部を更に設けたことを特徴とする画像処理装置。
(Compatible with mouse)
The image processing apparatus according to claim 5 or 6,
An image processing apparatus, further comprising a pointing unit for setting the reference axis and the rotation direction.
(プログラムクレーム)
方形状の表示面を有する表示媒体に記憶媒体に記憶された画像を表示するための表示する画像表示処理と、
前記表示媒体に表示された画像に対して水平または垂直を示す基準軸を設定する基準軸設定処理と、
前記表示媒体に表示された画像の回転方向を指示する回転方向指示処理と、
前記基準軸が前記表示媒体の方形状の表示面の辺に対して水平または垂直になるように前記画像を前記回転方向に回転させる画像回転処理と
を有することを特徴とするコンピュータで実行可能な画像処理プログラム。
(Program claims)
An image display process for displaying an image stored in the storage medium on a display medium having a square display surface;
A reference axis setting process for setting a reference axis indicating horizontal or vertical with respect to an image displayed on the display medium;
A rotation direction instruction process for instructing a rotation direction of an image displayed on the display medium;
An image rotation process for rotating the image in the rotation direction so that the reference axis is horizontal or vertical with respect to a side of the rectangular display surface of the display medium. Image processing program.
JP2011011944A 2011-01-24 2011-01-24 Electronic camera, image processing apparatus, and image processing program Withdrawn JP2012156628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011011944A JP2012156628A (en) 2011-01-24 2011-01-24 Electronic camera, image processing apparatus, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011011944A JP2012156628A (en) 2011-01-24 2011-01-24 Electronic camera, image processing apparatus, and image processing program

Publications (1)

Publication Number Publication Date
JP2012156628A true JP2012156628A (en) 2012-08-16

Family

ID=46837944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011011944A Withdrawn JP2012156628A (en) 2011-01-24 2011-01-24 Electronic camera, image processing apparatus, and image processing program

Country Status (1)

Country Link
JP (1) JP2012156628A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109791600A (en) * 2016-12-05 2019-05-21 谷歌有限责任公司 It is the method for the mobile layout of vertical screen by transverse screen Video Quality Metric

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109791600A (en) * 2016-12-05 2019-05-21 谷歌有限责任公司 It is the method for the mobile layout of vertical screen by transverse screen Video Quality Metric
CN109791600B (en) * 2016-12-05 2023-11-10 谷歌有限责任公司 Method for converting horizontal screen video into vertical screen mobile layout

Similar Documents

Publication Publication Date Title
US10136069B2 (en) Apparatus and method for positioning image area using image sensor location
CN107026973B (en) Image processing device, image processing method and photographic auxiliary equipment
US8350896B2 (en) Terminal apparatus, display control method, and display control program
KR102114377B1 (en) Method for previewing images captured by electronic device and the electronic device therefor
JP2009211166A (en) Authentication device, authentication method and authentication program
JP2017058812A (en) Image display apparatus, image display method and program
JP2014053794A (en) Information processing program, information processing apparatus, information processing system, and information processing method
US20170111574A1 (en) Imaging apparatus and imaging method
US9921054B2 (en) Shooting method for three dimensional modeling and electronic device supporting the same
EP4195664A1 (en) Image processing method, mobile terminal, and storage medium
CN110941375B (en) Method, device and storage medium for locally amplifying image
US8643679B2 (en) Storage medium storing image conversion program and image conversion apparatus
JP2012217101A (en) Information processor, control method of the same, program, and storage medium
US20240031667A1 (en) Image Processing Method, Mobile Terminal, and Storage Medium
JP5805013B2 (en) Captured image display device, captured image display method, and program
JP2007094661A (en) Presentation control device and presentation system
JP5229928B1 (en) Gaze position specifying device and gaze position specifying program
JP2012156628A (en) Electronic camera, image processing apparatus, and image processing program
JPWO2019058641A1 (en) Electronic device, program, control device, and control method
CN113592874A (en) Image display method and device and computer equipment
JP5292210B2 (en) Document presentation device
JP2016111521A (en) Information processing device, information processing program and information processing method
JP2013131811A (en) Image display device
WO2023275920A1 (en) Trigger signal generation device and mobile terminal
KR102614026B1 (en) Electronic device having a plurality of lens and controlling method thereof

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140401