JP2007006162A - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
JP2007006162A
JP2007006162A JP2005184373A JP2005184373A JP2007006162A JP 2007006162 A JP2007006162 A JP 2007006162A JP 2005184373 A JP2005184373 A JP 2005184373A JP 2005184373 A JP2005184373 A JP 2005184373A JP 2007006162 A JP2007006162 A JP 2007006162A
Authority
JP
Japan
Prior art keywords
image
inclination
detection result
detection
display
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
JP2005184373A
Other languages
Japanese (ja)
Inventor
Daisuke Uehara
大輔 上原
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2005184373A priority Critical patent/JP2007006162A/en
Publication of JP2007006162A publication Critical patent/JP2007006162A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of improving operability for reproduction. <P>SOLUTION: A tilt sensor 36 detects a tilt α in a direction around an optical axis. When a camera mode is selected, an image photographed in response to a photographing instruction and detection result information showing a detection result of the tilt sensor 36 at the time of accepting the photographing instruction are recorded in a memory card 44. When a reproduction mode is selected, an image reproduced from the memory card 44 is displayed on a monitor 28 through a video encoder 26. A CPU 38 reads out detection result information corresponding to the display image from the memory card 44 and takes in the detection result of the tilt sensor 36 and then controls an attitude of the display image on the basis of the read-out detection result information and the taken-in detection result. When a present tilt in the direction around the optical axis is changed from the tilt in the direction around the optical axis at the time of photographing, the attitude of the reproduced image is changed. As a result, the reproduced image can be displayed in an erect attitude to improve operability in the reproducing mode. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、画像処理装置に関し、特にたとえば、傾斜センサを備えた電子カメラに適用される、画像処理装置に関する。   The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus applied to an electronic camera including a tilt sensor, for example.

従来この種の装置が、特許文献1に開示されている。この従来技術が適用される電子カメラは、光軸周り方向の傾斜(具体的には左90度傾斜または右90度傾斜)を検知する傾斜センサを備える。従来の画像処理装置は、カメラモードが選択されると、撮影指示に応答して撮影された画像と撮影指示を受け付けた時点の傾斜センサの検知結果を示す検知結果情報とを記録媒体に記録する。再生モードが選択されると、記録媒体から再生された画像を当該画像に関連する検知結果情報に応じた態様で表示する。これにより、電子カメラが光軸周り方向に傾斜している状態で撮影された画像を正立姿勢で表示させることができる。
特開2003−110914号公報〔H04N 5/225,5/907〕
Conventionally, this type of apparatus is disclosed in Patent Document 1. An electronic camera to which this conventional technique is applied includes an inclination sensor that detects an inclination in the direction around the optical axis (specifically, an inclination of 90 degrees to the left or 90 degrees to the right). When a camera mode is selected, a conventional image processing apparatus records an image photographed in response to a photographing instruction and detection result information indicating a detection result of a tilt sensor at the time when the photographing instruction is received on a recording medium. . When the reproduction mode is selected, an image reproduced from the recording medium is displayed in a mode corresponding to detection result information related to the image. Thereby, it is possible to display an image taken with the electronic camera tilted in the direction around the optical axis in an upright posture.
JP 2003-110914 A [H04N 5/225, 5/907]

しかしながら、再生操作は、正立状態つまり電子カメラが光軸周り方向に傾斜していない状態で行われるとは限らない。従来技術では、傾斜状態で撮影された画像は、正立状態で再生操作が行われれば正立姿勢で表示されるが、傾斜状態で再生操作が行われると傾斜姿勢で表示され、操作性が悪化する。   However, the reproduction operation is not always performed in an upright state, that is, in a state where the electronic camera is not inclined in the direction around the optical axis. In the prior art, an image captured in an inclined state is displayed in an upright posture if a playback operation is performed in an upright state. However, if a playback operation is performed in an inclined state, the image is displayed in an inclined posture and operability is improved. Getting worse.

それゆえに、この発明の主たる目的は、再生時の操作性を向上させることができる、画像処理装置を提供することである。   Therefore, a main object of the present invention is to provide an image processing apparatus capable of improving the operability during reproduction.

請求項1の発明に従う画像処理装置は、撮影指示に応答して撮影された画像と撮影指示を受け付けた時点の光軸(Z)周り方向の撮像面(14a)の傾斜を示す傾斜情報とが記録された記録媒体(44)に向けられた画像再生操作を受け付ける第1受け付け手段(S5,S85)、画像再生操作によって指定された画像を記録媒体から読み出す第1読み出し手段(S73)、第1読み出し手段によって記録媒体から読み出された画像をモニタ画面(28)に表示する表示手段(26)、表示手段の表示動作に関連してモニタ画面の法線周り方向の傾斜を検知する第1検知手段(S75)、表示手段によって表示された画像に対応する傾斜情報を記録媒体から読み出す第2読み出し手段(S73)、および表示手段によって表示される画像の姿勢を第1検知手段の検知結果と第2読み出し手段によって読み出された傾斜情報とに基づいて制御する姿勢制御手段(S77,S91)を備える。   The image processing apparatus according to the first aspect of the present invention includes an image photographed in response to a photographing instruction and inclination information indicating the inclination of the imaging surface (14a) in the direction around the optical axis (Z) when the photographing instruction is received. First receiving means (S5, S85) for receiving an image reproducing operation directed to the recorded recording medium (44), first reading means (S73) for reading an image designated by the image reproducing operation from the recording medium, first Display means (26) for displaying an image read from the recording medium by the reading means on the monitor screen (28), and a first detection for detecting the inclination in the direction around the normal line of the monitor screen in relation to the display operation of the display means. Means (S75), second reading means (S73) for reading tilt information corresponding to the image displayed by the display means from the recording medium, and the attitude of the image displayed by the display means and the detection result of the first detecting means and the first 2 Read by reading means And attitude control means (S77, S91) for controlling based on the tilt information.

記録媒体には、撮影指示に応答して撮影された画像と、撮影指示を受け付けた時点の光軸周り方向の傾斜を示す傾斜情報とが記録されている。かかる記録媒体に向けられた画像再生操作が、第1受け付け手段によって受け付けられる。   In the recording medium, an image photographed in response to the photographing instruction and inclination information indicating the inclination in the direction around the optical axis at the time when the photographing instruction is received are recorded. The image reproducing operation directed to the recording medium is received by the first receiving unit.

第1読み出し手段は、画像再生操作によって指定された画像を記録媒体から読み出す。表示手段は、読み出された画像をモニタ画面に表示する。傾斜検知手段は、かかる表示動作に関連してモニタ画面の法線周り方向の傾斜を検知する。第2読み出し手段は、モニタ画面に表示された画像に対応する傾斜情報を記録媒体から読み出す。   The first reading means reads the image designated by the image reproduction operation from the recording medium. The display means displays the read image on the monitor screen. The tilt detection means detects a tilt in the direction around the normal line of the monitor screen in relation to the display operation. The second reading means reads tilt information corresponding to the image displayed on the monitor screen from the recording medium.

モニタ画面に表示される画像の姿勢は、傾斜検知手段によって検知された検知結果と第2読み出し手段によって読み出された傾斜情報とに基づいて、姿勢制御手段によって制御される。   The posture of the image displayed on the monitor screen is controlled by the posture control unit based on the detection result detected by the tilt detection unit and the tilt information read by the second reading unit.

つまり、撮影時点の撮像面の光軸回り方向の傾斜に対する、モニタ画面の法線周り方向の傾斜の変化に応じて、再生画像の姿勢が制御される。この結果、再生画像を正立姿勢で表示可能となり、再生時の操作性が向上する。   That is, the posture of the reproduced image is controlled according to the change in the inclination around the normal line of the monitor screen with respect to the inclination around the optical axis of the imaging surface at the time of shooting. As a result, the reproduced image can be displayed in an upright posture, and the operability during reproduction is improved.

請求項2の発明に従う画像処理装置は、請求項1に従属し、姿勢制御手段は、第1検知手段の検知結果と第2読み出し手段によって読み出された傾斜情報との差分を算出する差分算出手段(S111)、および差分算出手段の算出結果に基づいて姿勢補正量を算出する補正量算出手段(S113)を含む。   An image processing apparatus according to a second aspect of the invention is dependent on the first aspect, wherein the attitude control means calculates a difference between the detection result of the first detection means and the inclination information read by the second reading means. Means (S111), and correction amount calculation means (S113) for calculating the posture correction amount based on the calculation result of the difference calculation means.

差分算出手段は第1検知手段の検知結果と第2読み出し手段によって読み出された傾斜情報との差分を算出し、補正量算出手段は差分算出手段の算出結果に基づいて姿勢補正量を算出する。姿勢制御手段は、こうして算出された姿勢補正量に従って制御を行う。   The difference calculating means calculates a difference between the detection result of the first detecting means and the inclination information read by the second reading means, and the correction amount calculating means calculates the posture correction amount based on the calculation result of the difference calculating means. . The posture control means performs control according to the posture correction amount thus calculated.

請求項3の発明に従う画像処理装置は、請求項1または2に従属し、第1検知手段は表示手段の表示動作と並行して検知を繰り返し行う。   An image processing apparatus according to a third aspect of the invention is dependent on the first or second aspect, and the first detection unit repeatedly performs detection in parallel with the display operation of the display unit.

これにより、表示中に随時生じる傾斜変化にも対応することができる。   Thereby, it is possible to cope with a tilt change that occurs at any time during display.

請求項4の発明に従う画像処理装置は、請求項1ないし3のいずれかに従属し、表示手段によって表示される画像の倍率を姿勢制御手段の制御に応じて制御する倍率制御手段(S79,S93)を備える。   An image processing apparatus according to a fourth aspect of the invention is dependent on any one of the first to third aspects, and a magnification control means (S79, S93) for controlling the magnification of an image displayed by the display means in accordance with the control of the attitude control means. ).

表示手段によって表示される画像の倍率は、姿勢制御手段の制御に応じて、倍率制御手段によって制御される。これにより、倍率変更のための操作量が削減され、再生時の操作性がさらに向上する。   The magnification of the image displayed by the display means is controlled by the magnification control means in accordance with the control of the attitude control means. Thereby, the operation amount for changing the magnification is reduced, and the operability during reproduction is further improved.

請求項5の発明に従う画像処理装置は、請求項4に従属し、縮小方向への制御および拡大方向への制御のいずれか一方を選択する選択操作を受け付ける第2受付手段(S53,S55)をさらに備え、倍率制御手段は選択操作によって選択された方向に制御する。   An image processing apparatus according to the invention of claim 5 is dependent on claim 4, and includes a second receiving means (S53, S55) for receiving a selection operation for selecting one of the control in the reduction direction and the control in the enlargement direction. In addition, the magnification control means controls in the direction selected by the selection operation.

縮小方向への制御および拡大方向への制御のいずれか一方を選択する選択操作は、第2受け付け手段によって受け付けられる。再生画像の倍率は、かかる選択操作によって選択された方向に制御される。   The selection operation for selecting one of the control in the reduction direction and the control in the enlargement direction is received by the second reception unit. The magnification of the reproduced image is controlled in the direction selected by the selection operation.

縮小方向への制御を選択することで、画像の姿勢が制御されても画像の極力全部を表示させることができる。拡大方向への制御を選択することで、画像の姿勢が制御されても画面の極力全体に画像を表示させることができる。   By selecting control in the reduction direction, the entire image can be displayed as much as possible even if the attitude of the image is controlled. By selecting control in the enlargement direction, an image can be displayed on the entire screen as much as possible even if the orientation of the image is controlled.

請求項6の発明に従う画像処理装置は、請求項5に従属し、選択操作によって選択された方向を示す方向情報を保持する保持手段(S59)をさらに備える。   An image processing apparatus according to the invention of claim 6 is dependent on claim 5 and further comprises holding means (S59) for holding direction information indicating the direction selected by the selection operation.

選択操作によって選択された方向を示す方向情報は、保持手段によって保持される。倍率制御手段は、保持手段の保持情報を参照して制御を行う。これにより、選択操作のための操作量が抑制される。   Direction information indicating the direction selected by the selection operation is held by the holding unit. The magnification control means performs control with reference to the holding information of the holding means. Thereby, the operation amount for the selection operation is suppressed.

請求項7の発明に従う画像処理装置は、請求項1ないし6のいずれかに従属し、撮影指示を受け付けた時点の光軸周り方向の撮像面の傾斜を検知する第2検知手段、および撮影指示に応じて撮影された画像と第2検知手段の検知結果を示す傾斜情報とを記録媒体に記録する記録手段をさらに備える。   An image processing apparatus according to a seventh aspect of the present invention is dependent on any one of the first to sixth aspects, wherein the second detection means for detecting the inclination of the imaging surface in the direction around the optical axis when the imaging instruction is received, and the imaging instruction Recording means for recording on the recording medium the image photographed in response to the information and the tilt information indicating the detection result of the second detection means.

光軸周り方向の撮像面の傾斜は、撮影指示を受け付けた時点で、第2検知手段によって検知される。かかる第2検知手段の検知結果を示す傾斜情報は、撮影指示に応じて撮影された画像と共に、記録手段によって記録媒体に記録される。   The inclination of the imaging surface in the direction around the optical axis is detected by the second detection means when a shooting instruction is received. The inclination information indicating the detection result of the second detection unit is recorded on the recording medium by the recording unit together with the image shot in accordance with the shooting instruction.

請求項8の発明に従う画像処理装置は、請求項7に従属し、モニタ画面は撮像面と平行である。   An image processing apparatus according to an eighth aspect of the present invention is dependent on the seventh aspect, and the monitor screen is parallel to the imaging surface.

つまり、モニタ画面の法線は光軸と平行であり、このため、ただ1つの傾斜センサで姿勢制御が行える。   In other words, the normal line of the monitor screen is parallel to the optical axis, and therefore the posture can be controlled with only one tilt sensor.

請求項9の発明に従う画像処理装置は、請求項8に従属し、互いに直交する2つの軸方向にそれぞれ加わる2つの加速度を検知する1つの2軸加速度センサ(36a)をさらに備え、第1検知手段および第2検知手段の各々は2軸加速度センサの出力に基づいて検知を行う。   The image processing apparatus according to the invention of claim 9 is dependent on claim 8 and further comprises one biaxial acceleration sensor (36a) for detecting two accelerations respectively applied in two axial directions orthogonal to each other, and the first detection Each of the means and the second detection means performs detection based on the output of the biaxial acceleration sensor.

互いに直交する2つの軸方向にそれぞれ加わる2つの加速度が2軸加速度センサによって検知され、第1検知手段および第2検知手段の各々は、かかる2軸加速度センサの出力に基づいて傾斜を検知する。   Two accelerations respectively applied in two axial directions orthogonal to each other are detected by a biaxial acceleration sensor, and each of the first detection means and the second detection means detects an inclination based on the output of the biaxial acceleration sensor.

請求項10の発明に従う画像処理装置は、請求項9に従属し、2つの軸の各々は光軸と直交する。   The image processing apparatus according to the invention of claim 10 is dependent on claim 9, and each of the two axes is orthogonal to the optical axis.

これにより、画像処理装置の光軸方向の厚みが抑制される。   Thereby, the thickness of the image processing apparatus in the optical axis direction is suppressed.

この発明によれば、再生画像を正立姿勢で表示することができ、この結果、再生時の操作性を向上させることができる。   According to the present invention, a reproduced image can be displayed in an upright posture, and as a result, operability during reproduction can be improved.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1を参照して、この実施例のディジタルカメラ10は、フォーカスレンズ12を含む。被写体の光学像は、このフォーカスレンズ12を経てイメージセンサ14の撮像面14aに入射される。撮像面14aでは、入射された光学像に対応するカメラ信号(生画像信号)が光電変換によって生成される。なお、撮像面14aは、原色ベイヤ配列の色フィルタ(図示せず)によって覆われ、カメラ信号を形成する各々の画素信号は、R,GおよびBのいずれか1つの色成分のみを持つ。   Referring to FIG. 1, a digital camera 10 of this embodiment includes a focus lens 12. The optical image of the subject enters the imaging surface 14 a of the image sensor 14 through the focus lens 12. On the imaging surface 14a, a camera signal (raw image signal) corresponding to the incident optical image is generated by photoelectric conversion. The imaging surface 14a is covered with a primary color Bayer array color filter (not shown), and each pixel signal forming a camera signal has only one of R, G, and B color components.

操作キー32によってカメラモードが選択されると、CPU38によってスルー撮影命令が発行される。発行されたスルー撮影命令に応答して、まずイメージセンサ14が、光電変換によって生成されるカメラ信号を所定フレームレートで出力する。イメージセンサ14から出力された各フレームのカメラ信号は、CDS/AGC回路16における周知のノイズ除去およびレベル調整を経て、A/D変換器18でディジタル信号に変換される。   When the camera mode is selected by the operation key 32, a through shooting command is issued by the CPU 38. In response to the issued through shooting command, the image sensor 14 first outputs a camera signal generated by photoelectric conversion at a predetermined frame rate. The camera signal of each frame output from the image sensor 14 is converted into a digital signal by the A / D converter 18 through known noise removal and level adjustment in the CDS / AGC circuit 16.

信号処理回路20は、A/D変換器18から出力された各フレームのカメラデータに色分離,白バランス調整,YUV変換などの信号処理を施し、輝度成分(Yデータ)および色差成分(Uデータ,Vデータ)からなる画像データを生成する。生成された画像データはメモリ制御回路24に与えられ、メモリ制御回路24によってSDRAM22に書き込まれる。   The signal processing circuit 20 performs signal processing, such as color separation, white balance adjustment, and YUV conversion, on the camera data of each frame output from the A / D converter 18 to obtain a luminance component (Y data) and a color difference component (U data). , V data) is generated. The generated image data is given to the memory control circuit 24 and written into the SDRAM 22 by the memory control circuit 24.

ビデオエンコーダ26は、SDRAM22の画像データをメモリ制御回路24に読み出させる。そして、読み出された各フレームの画像データをNTSCフォーマットのコンポジット画像信号にエンコードし、エンコードされたコンポジット画像信号をモニタ28に供給する。モニタ28には、被写体のリアルタイム動画像(スルー画像)が表示される。   The video encoder 26 causes the memory control circuit 24 to read the image data of the SDRAM 22. Then, the read image data of each frame is encoded into a composite image signal in the NTSC format, and the encoded composite image signal is supplied to the monitor 28. The monitor 28 displays a real-time moving image (through image) of the subject.

オペレータによってシャッタボタン30が半押しされると、CPU38は、露光量や白バランスなどの撮影条件を調整する。この後、シャッタボタン30が全押しされると、CPU38は、撮影命令を発行する。発行された撮影命令に応答して、イメージセンサ14は、電子シャッタ方式で露光を行い、これによって生成されたカメラ信号を出力する。出力されたカメラ信号は上述と同じ処理を経て輝度成分および色差成分からなる画像データに変換され、変換された画像データがSDRAM22に格納される。   When the shutter button 30 is half-pressed by the operator, the CPU 38 adjusts photographing conditions such as exposure amount and white balance. Thereafter, when the shutter button 30 is fully pressed, the CPU 38 issues a shooting command. In response to the issued shooting command, the image sensor 14 performs exposure using an electronic shutter method, and outputs a camera signal generated thereby. The output camera signal is converted into image data composed of a luminance component and a color difference component through the same processing as described above, and the converted image data is stored in the SDRAM 22.

シャッタボタン30の全押しに基づく画像データがSDRAM22に確保されると、CPU38は、イメージセンサ14を不能化するとともに、圧縮命令をJPEGコーデック40に与える。JPEGコーデック40は、SDRAM22に格納された画像データをメモリ制御回路24に読み出させ、読み出された画像データにJPEGフォーマットに準じた圧縮処理を施す。圧縮画像データ(JPEGデータ)が得られると、JPEGコーデック40は、当該JPEGデータをメモリ制御回路24に与える。JPEGデータは、メモリ制御回路24によってSDRAM22に格納される。   When image data based on the full press of the shutter button 30 is secured in the SDRAM 22, the CPU 38 disables the image sensor 14 and gives a compression command to the JPEG codec 40. The JPEG codec 40 causes the memory control circuit 24 to read out the image data stored in the SDRAM 22 and applies a compression process according to the JPEG format to the read image data. When compressed image data (JPEG data) is obtained, the JPEG codec 40 provides the JPEG data to the memory control circuit 24. The JPEG data is stored in the SDRAM 22 by the memory control circuit 24.

CPU38はその後、メモリ制御回路24を通してSDRAM22からJPEGデータを読み出し、読み出したJPEGデータをI/F回路42を通してメモリカード44に記録する。CPU38はさらに、シャッタボタン30が全押しされる直前の傾斜センサ36の検知結果(後述)を示す検知結果情報をI/F回路42を通してメモリカード44に記録する。   Thereafter, the CPU 38 reads JPEG data from the SDRAM 22 through the memory control circuit 24 and records the read JPEG data in the memory card 44 through the I / F circuit 42. Further, the CPU 38 records detection result information indicating a detection result (described later) of the tilt sensor 36 immediately before the shutter button 30 is fully pressed on the memory card 44 through the I / F circuit 42.

メモリカード44への記録時、互いに対応するJPEGデータおよび検知結果情報は、同じ画像ファイルに格納される。つまり、JPEGデータはファイル形式でメモリカード44に記録され、画像ファイルの中に検知結果情報が埋め込まれる。   When recording to the memory card 44, the corresponding JPEG data and detection result information are stored in the same image file. That is, JPEG data is recorded in the memory card 44 in a file format, and detection result information is embedded in the image file.

なお、メモリカード44は着脱自在な不揮発性の記録媒体であり、スロット(図示せず)に装着されたときにCPU38によってアクセス可能となる。   Note that the memory card 44 is a detachable nonvolatile recording medium and can be accessed by the CPU 38 when it is mounted in a slot (not shown).

ここで、傾斜センサ36について詳しく説明する。傾斜センサ36は、2軸加速度センサ36aと、演算回路36bとを含む。2軸加速度センサ36aは、互いに直交する2つの軸方向にそれぞれ加わる2つの加速度を検知する。以下では、これら2つの軸を“第1軸X”および“第2軸Y”と呼ぶ。   Here, the tilt sensor 36 will be described in detail. The tilt sensor 36 includes a biaxial acceleration sensor 36a and an arithmetic circuit 36b. The biaxial acceleration sensor 36a detects two accelerations applied in two axial directions orthogonal to each other. Hereinafter, these two axes are referred to as “first axis X” and “second axis Y”.

2軸加速度センサ36aは、図2に示すように、正立状態に置かれたディジタルカメラ10内の所定位置に、第1軸Xが鉛直かつ第2軸Yが水平となるように固定される。つまり、第1軸Xおよび第2軸Yの各々は、モニタ28の表示面の法線つまりフォーカスレンズ12の光軸Zに対して直角となる。これら3つの軸(X,Y,Z)は、ディジタルカメラ10の姿勢の変化に伴って回転する。   As shown in FIG. 2, the biaxial acceleration sensor 36a is fixed at a predetermined position in the digital camera 10 placed in an upright state so that the first axis X is vertical and the second axis Y is horizontal. . That is, each of the first axis X and the second axis Y is perpendicular to the normal line of the display surface of the monitor 28, that is, the optical axis Z of the focus lens 12. These three axes (X, Y, Z) rotate as the posture of the digital camera 10 changes.

2軸加速度センサ36aは、第1軸Xおよび第2軸Yの各々の水平面に対する傾斜に応じた信号(x,y)を出力し、演算回路36bは、出力された信号に基づいて、光軸Zの右周り方向の傾斜α(−90°≦α≦90°;図3参照)を算出する。α=0が正立状態に対応し、α=−90°が左90度傾斜状態に対応し、α=90°が右90度傾斜状態に対応する。この実施例では、演算は5°単位で行われる。傾斜センサ36からは、こうして算出された傾斜αつまり−90,−85,…,0,5,…,85,90のいずれかを示す検知結果が出力される。なお、演算回路36bを省略し、CPU38が同様の演算を行うようにしてもよい。   The biaxial acceleration sensor 36a outputs a signal (x, y) corresponding to the inclination of each of the first axis X and the second axis Y with respect to the horizontal plane, and the arithmetic circuit 36b calculates the optical axis based on the output signal. An inclination α in the clockwise direction of Z (−90 ° ≦ α ≦ 90 °; see FIG. 3) is calculated. α = 0 corresponds to the upright state, α = −90 ° corresponds to the left 90 ° inclined state, and α = 90 ° corresponds to the right 90 ° inclined state. In this embodiment, the calculation is performed in units of 5 °. The inclination sensor 36 outputs a detection result indicating the inclination α thus calculated, that is, any of −90, −85,..., 0, 5,. Note that the arithmetic circuit 36b may be omitted, and the CPU 38 may perform the same calculation.

操作キー32によって再生モードが選択されると、CPU38は、メモリカード44に記録された画像ファイルからJPEGデータを読み出し、読み出したJPEGデータをメモリ制御回路24を通してSDRAM22に書き込む。   When the reproduction mode is selected by the operation key 32, the CPU 38 reads JPEG data from the image file recorded on the memory card 44 and writes the read JPEG data to the SDRAM 22 through the memory control circuit 24.

CPU38は続いて、JPEGデータを読み出した画像ファイルから検知結果情報を読み出すと共に、傾斜センサ36から現時点の検知結果を取り込む。次に、読み出した検知結果情報が示す傾斜と、取り込んだ検知結果が示す傾斜との差分、つまり傾斜の変化量(Δα)を算出する。次に、算出した傾斜変化量Δαに対応する倍率を算出する。   Subsequently, the CPU 38 reads detection result information from the image file from which the JPEG data has been read, and captures the current detection result from the tilt sensor 36. Next, a difference between the inclination indicated by the read detection result information and the inclination indicated by the acquired detection result, that is, a change amount (Δα) of the inclination is calculated. Next, a magnification corresponding to the calculated inclination change amount Δα is calculated.

ここで、倍率算出は、フラッシュメモリ34に記憶された2つのテーブルT1およびT2の一方(デフォルトではテーブルT1)を参照して行われる。参照されるテーブルつまり有効テーブルは、図4に示す表示モード選択画面を通して任意に変更できる。   Here, the magnification calculation is performed with reference to one of the two tables T1 and T2 stored in the flash memory 34 (the table T1 by default). The table to be referred to, that is, the valid table can be arbitrarily changed through the display mode selection screen shown in FIG.

図4を参照して、表示モード選択画面には、2つの選択肢“全画像表示”および“全画面表示”が含まれる。操作キー32の操作で“全画像表示”および“全画面表示”の一方が選択されると、選択結果に対応する方のテーブルが有効化される。具体的には、“全画像表示”が選択されるとテーブルT1が有効化され、“全画面表示”が選択されるとテーブルT2が有効化される。   Referring to FIG. 4, the display mode selection screen includes two options “full image display” and “full screen display”. When one of “full image display” and “full screen display” is selected by operating the operation key 32, the table corresponding to the selection result is validated. Specifically, the table T1 is validated when “display all images” is selected, and the table T2 is validated when “display full screen” is selected.

図5(A)を参照して、テーブルT1には、傾斜変化量の絶対値0,5,…,85,90に対応する倍率1,0.9,…,0.7,0.75が登録されている。図5(B)を参照して、テーブルT2には、傾斜変化量の絶対値0,5,…,85,90に対応する倍率1,1.1,…,1.4,1.35が登録されている。なお、登録値は、モニタ28のアスペクト比などに基づいて算出される。   Referring to FIG. 5A, table T1 has magnifications 1, 0.9,..., 0.7, 0.75 corresponding to absolute values 0, 5,. It is registered. Referring to FIG. 5B, the table T2 has magnifications 1, 1.1,..., 1.4, 1.35 corresponding to the absolute values 0, 5,. It is registered. The registered value is calculated based on the aspect ratio of the monitor 28 and the like.

図1に戻って、CPU38は続いて、算出した傾斜変化量Δαに対応する傾斜補正値(−Δα)と、算出した倍率とをメモリ制御回路24に設定し、そして再生開始命令を発行する。再生開始命令には伸長命令が含まれており、この伸長命令に応答して、JPEGコーデック40は、メモリ制御回路24を通してSDRAM22からJPEGデータを読み出し、読み出したJPEGデータにJPEGフォーマットに準じた伸長処理を施す。伸長された画像データは、メモリ制御回路24に与えられる。メモリ制御回路24は、設定された傾斜変化量(−Δα)および設定された倍率に応じた態様で、与えられた伸長画像データをSDRAM22に書き込む。   Returning to FIG. 1, the CPU 38 subsequently sets the inclination correction value (−Δα) corresponding to the calculated inclination change amount Δα and the calculated magnification in the memory control circuit 24 and issues a reproduction start command. The playback start command includes a decompression command. In response to this decompression command, the JPEG codec 40 reads JPEG data from the SDRAM 22 through the memory control circuit 24, and decompresses the read JPEG data according to the JPEG format. Apply. The expanded image data is given to the memory control circuit 24. The memory control circuit 24 writes the given decompressed image data to the SDRAM 22 in a manner corresponding to the set inclination change amount (−Δα) and the set magnification.

つまり、検知結果情報が“0”を示せば、傾斜変化は生じていないとみなされ、伸長画像データは正立状態で書き込まれる。検知結果情報が“90”を示せば、右に90度の傾斜変化が生じたとみなされ、伸長画像データは左に90°回転させた状態で書き込まれる。検知結果情報が“−90”を示せば、左に90度の傾斜変化が生じたとみなされ、伸長画像データは右に90°回転させた状態で書き込まれる。   That is, if the detection result information indicates “0”, it is considered that no tilt change has occurred, and the decompressed image data is written in an upright state. If the detection result information indicates “90”, it is considered that a 90 ° tilt change has occurred on the right, and the expanded image data is written in a state rotated 90 ° to the left. If the detection result information indicates “−90”, it is considered that a 90-degree tilt change has occurred on the left, and the expanded image data is written in a state rotated 90 ° to the right.

同様に、検知結果情報が“5”を示せば、伸長画像データは左に5°回転させた状態で書き込まれる。検知結果情報が“85”を示せば、伸長画像データは左に85°回転させた状態で書き込まれる。   Similarly, if the detection result information indicates “5”, the decompressed image data is written in a state rotated by 5 ° to the left. If the detection result information indicates “85”, the decompressed image data is written in a state rotated by 85 ° to the left.

こうしてSDRAM22に展開された伸長画像データは、ビデオエンコーダ26によってメモリ制御回路24を通して読み出され、NTSC方式のコンポジット画像信号に変換される。変換されたコンポジット画像信号はモニタ28に与えられ、この結果、再生画像が表示される。   The decompressed image data developed in the SDRAM 22 in this manner is read by the video encoder 26 through the memory control circuit 24 and converted into an NTSC composite image signal. The converted composite image signal is supplied to the monitor 28, and as a result, a reproduced image is displayed.

以上のように構成されたディジタルカメラ10では、正立状態で図6(A)に示す被写界を撮影した場合、正立状態で再生を行えば、再生画像は、表示モードに関わらず図6(B)のように正立姿勢かつ等倍で表示される。右90度傾斜状態(または左90度傾斜状態)で再生を行えば、全画像表示モードのとき図6(C)のように正立姿勢かつ縮小倍率(0.75倍)で表示され、全画面表示モードのとき図6(D)のように正立姿勢かつ拡大倍率(1.35倍)で表示される。   In the digital camera 10 configured as described above, when the object scene shown in FIG. 6A is photographed in the upright state, if the reproduction is performed in the upright state, the reproduced image is displayed regardless of the display mode. As shown in FIG. 6 (B), the image is displayed in the upright posture and the same magnification. If playback is performed in the right 90 degree tilt state (or left 90 degree tilt state), the image is displayed in the upright posture and the reduction magnification (0.75 times) as shown in FIG. In the screen display mode, the screen is displayed in an upright posture and an enlargement magnification (1.35 times) as shown in FIG.

また、右90度傾斜状態(または左90度傾斜状態)で図7(A)に示す被写界を撮影した場合、右90度傾斜状態または左90度傾斜状態で再生を行えば、再生画像は、表示モードに関わらず図7(B)のように正立姿勢かつ等倍で表示される。正立状態で再生を行えば、全画像表示モードのとき図7(C)のように正立姿勢かつ縮小倍率(0.75倍)で表示され、全画面表示モードのとき図7(D)のように正立姿勢かつ拡大倍率(1.35倍)で表示される。   Further, when the object scene shown in FIG. 7A is photographed in the right 90 degree inclined state (or left 90 degree inclined state), if the reproduction is performed in the right 90 degree inclined state or the left 90 degree inclined state, a reproduced image is obtained. Is displayed in an upright posture and at an equal magnification as shown in FIG. 7B regardless of the display mode. If playback is performed in the upright state, the image is displayed in the upright posture and the reduction magnification (0.75 times) as shown in FIG. 7C in the full image display mode, and in the full screen display mode, FIG. As shown, the image is displayed in an upright posture and an enlargement magnification (1.35 times).

さらには、右90度傾斜状態(または左90度傾斜状態)で図8(A)に示す被写界を撮影した場合、左85度傾斜状態で再生を行えば、再生画像は、全画像表示モードのとき図8(B)のように正立姿勢かつ縮小倍率(0.9倍)で表示され、全画面表示モードのとき図8(C)のように正立姿勢かつ拡大倍率(1.1倍)で表示される。左5度傾斜状態で再生を行えば、全画像表示モードのとき図8(D)のように正立姿勢かつ縮小倍率(0.7倍)で表示され、全画面表示モードのとき図8(C)のように正立姿勢かつ拡大倍率(1.4倍)で表示される。   Further, when the object scene shown in FIG. 8A is photographed in the right 90 degree tilt state (or left 90 degree tilt state), if the playback is performed in the left 85 degree tilt state, the reproduced image is displayed as a full image. In the mode, the image is displayed in the upright posture and the reduction magnification (0.9 times) as shown in FIG. 8B, and in the full screen display mode, the image is displayed in the upright posture and the enlargement magnification (1. 1x). If playback is performed in a state of tilting 5 degrees to the left, the image is displayed in the upright posture and the reduction magnification (0.7 times) as shown in FIG. 8D in the full image display mode, and in the full screen display mode, as shown in FIG. As in (C), the image is displayed in an upright posture and an enlargement magnification (1.4 times).

CPU38は、μITRONなどのマルチタスクOSの制御下で、図9および図11〜図15に示すメインタスクと、図10に示す撮影タスクとを並列的に処理する。なお、これらのフロー図に対応するプログラムは、フラッシュメモリ34に格納されている。   The CPU 38 processes the main task shown in FIGS. 9 and 11 to the imaging task shown in FIG. 10 in parallel under the control of a multitask OS such as μITRON. Note that programs corresponding to these flowcharts are stored in the flash memory 34.

図9を参照して、まずステップS1で撮影タスクを起動し、次いでステップS3〜S7のループに入る。ステップS3では設定開始操作の有無を判別し、ステップS5では再生開始操作の有無を判別し、ステップS7では電源オフ操作の有無を判別する。   Referring to FIG. 9, first, a shooting task is started in step S1, and then a loop of steps S3 to S7 is entered. In step S3, the presence / absence of a setting start operation is determined. In step S5, the presence / absence of a reproduction start operation is determined. In step S7, the presence / absence of a power-off operation is determined.

設定開始操作が行われると、ステップS3でYESと判別し、ステップS9に移って撮影タスクを終了する。そしてステップS11で設定処理(後述)を実行し、その後ステップS1に戻る。再生開始操作が行われると、ステップS5でYESと判別し、ステップS13に移って撮影タスクを終了する。そしてステップS15で再生処理(後述)を実行し、その後ステップS1に戻る。電源オフ操作が行われると、ステップS7でYESと判別し、ステップS17に移って撮影タスクを終了する。その後、このメインタスクを終了する。   When the setting start operation is performed, “YES” is determined in the step S3, the process proceeds to a step S9, and the photographing task is ended. In step S11, a setting process (described later) is executed, and then the process returns to step S1. When the reproduction start operation is performed, “YES” is determined in the step S5, the process proceeds to a step S13, and the photographing task is ended. In step S15, a reproduction process (described later) is executed, and then the process returns to step S1. When the power-off operation is performed, “YES” is determined in the step S7, and the photographing task is ended by moving to a step S17. Thereafter, the main task is terminated.

図10を参照して、まずステップS31でスルー撮影命令を発行し、その後ステップS33に移って撮影操作の有無を判別する。撮影操作が行われると、ステップS33でYESと判別し、ステップS35に移って撮影命令を発行する。この撮影命令に応じて、イメージセンサ14による露光,CDS/AGC回路16によるノイズ除去およびレベル調整,およびA/D変換器18による変換が行われる。   Referring to FIG. 10, first, a through shooting command is issued in step S31, and then the process proceeds to step S33 to determine whether or not there is a shooting operation. When a shooting operation is performed, YES is determined in step S33, and the process proceeds to step S35 to issue a shooting command. In response to the photographing command, exposure by the image sensor 14, noise removal and level adjustment by the CDS / AGC circuit 16, and conversion by the A / D converter 18 are performed.

ステップS37では、傾斜センサ36の出力つまり検知結果αを取り込む。ステップS39では、圧縮命令を発行する。この圧縮命令に応答して、JPEGコーデック40によるJPEG圧縮処理が実行される。ステップS41では、記録処理を実行する。具体的には、メモリ制御回路24を通してSDRAM22からJPEGデータを読み出し、読み出したJPEGデータと、取り込んだ検知結果αを含む検知結果情報とを、I/F回路42を通してファイル形式でメモリカード44に記録する。記録処理が完了すると、ステップS31に戻る。   In step S37, the output of the inclination sensor 36, that is, the detection result α is captured. In step S39, a compression instruction is issued. In response to this compression command, JPEG compression processing by the JPEG codec 40 is executed. In step S41, a recording process is executed. Specifically, JPEG data is read from the SDRAM 22 through the memory control circuit 24, and the read JPEG data and the detection result information including the acquired detection result α are recorded in the memory card 44 in a file format through the I / F circuit 42. To do. When the recording process is completed, the process returns to step S31.

図11を参照して、ステップS51では、設定項目として“表示モード設定”が選択されたか否かを判別する。ここでYESであれば、ステップS53でモニタ28に表示モード設定画面(図4参照)を表示する。その後、ステップS55およびS57のループに入る。ステップS55では設定操作の受け付けが完了したか否かを判別し、ステップS57ではキャンセル操作の有無を判別する。   Referring to FIG. 11, in step S51, it is determined whether or not “display mode setting” has been selected as a setting item. If “YES” here, a display mode setting screen (see FIG. 4) is displayed on the monitor 28 in a step S53. Thereafter, the loop of steps S55 and S57 is entered. In step S55, it is determined whether or not acceptance of the setting operation has been completed, and in step S57, it is determined whether or not a cancel operation has been performed.

表示モード設定画面に向けた操作キー32の操作によって、“全画像表示”および“全画面表示”のどちらか一方が選択され、そして選択結果が確定されると、ステップS55でYESと判別し、ステップS59に移って選択結果をフラッシュメモリ34に保持する。その後、上位層のルーチンに復帰する。キャンセル操作が行われれば、ステップS57でYESと判別し、上位層のルーチンに復帰する。   When the operation key 32 for the display mode setting screen is operated, either “full image display” or “full screen display” is selected, and when the selection result is confirmed, YES is determined in a step S55, In step S59, the selection result is stored in the flash memory 34. Thereafter, the process returns to the upper layer routine. If a cancel operation is performed, “YES” is determined in the step S57, and the process returns to the upper layer routine.

図12を参照して、メモリカード44内の画像ファイルには識別番号(1,2,…)が付されており、まずステップS71で変数Nに“1”をセットする。ステップS73では、画像ファイルNから検知結果情報を読み出す。ステップS75では、傾斜センサ36の出力つまり検知結果αを取り込む。ステップS77では、姿勢変更(後述)を行う。ステップS79では、倍率変更(後述)を行う。そしてステップS81で、再生開始命令を発行する。   Referring to FIG. 12, an identification number (1, 2,...) Is assigned to the image file in memory card 44. First, “1” is set to variable N in step S71. In step S73, the detection result information is read from the image file N. In step S75, the output of the tilt sensor 36, that is, the detection result α is captured. In step S77, the posture is changed (described later). In step S79, the magnification is changed (described later). In step S81, a reproduction start command is issued.

この再生開始命令に含まれる伸長命令に応答して、JPEGコーデック40によるJPEG伸長処理が実行される。伸長された画像データは、メモリ制御回路24によって、ステップS77の姿勢変更結果およびステップS79の倍率変更結果に応じた態様でSDRAM22に書き込まれる。SDRAM22に展開された伸長画像データは、ビデオエンコーダ26によって読み出され、コンポジット画像信号に変換される。変換されたコンポジット画像信号はモニタ28に与えられ、モニタ28の表示面に再生画像が表示される。   In response to the decompression command included in the reproduction start command, JPEG decompression processing by the JPEG codec 40 is executed. The decompressed image data is written into the SDRAM 22 by the memory control circuit 24 in a manner corresponding to the attitude change result in step S77 and the magnification change result in step S79. The decompressed image data developed in the SDRAM 22 is read by the video encoder 26 and converted into a composite image signal. The converted composite image signal is applied to the monitor 28, and a reproduced image is displayed on the display surface of the monitor 28.

図13を参照して、命令発行の後、CPU38の処理はステップS83〜S87のループに入る。ステップS83では所定時間が経過したか否かを判別し、ステップS85では更新操作の有無を判別し、ステップS87では停止操作の有無を判別する。   Referring to FIG. 13, after the instruction is issued, the process of CPU 38 enters a loop of steps S83 to S87. In step S83, it is determined whether or not a predetermined time has elapsed. In step S85, it is determined whether there is an update operation. In step S87, it is determined whether there is a stop operation.

前回のセンサ出力取り込みから所定時間が経過すると、ステップS83でYESと判別し、ステップS89に移って傾斜センサ36の出力を取り込む。ステップS91では姿勢変更(後述)を行い、ステップS93では倍率変更(後述)を行う。そして、ステップS83〜S87のループに戻る。   When a predetermined time has elapsed since the previous sensor output capture, YES is determined in step S83, and the process proceeds to step S89 to capture the output of the tilt sensor 36. In step S91, the posture is changed (described later), and in step S93, the magnification is changed (described later). Then, the process returns to the loop of steps S83 to S87.

操作キー32を介して更新操作が行われると、ステップS85でYESと判別し、ステップS95に移って変数Nをインクリメントする。インクリメントの後、ステップS73に戻る。   When an update operation is performed via the operation key 32, YES is determined in the step S85, and the process proceeds to a step S95 to increment the variable N. After the increment, the process returns to step S73.

操作キー32を介して停止操作が行われると、ステップS87でYESと判別し、ステップS97に移って再生停止命令を発行する。これによって、実行中の再生処理は停止される。命令発行の後、上位層のルーチンに復帰する。   If a stop operation is performed via the operation key 32, “YES” is determined in the step S87, and the process shifts to a step S97 to issue a reproduction stop command. As a result, the reproduction process being executed is stopped. After issuing the command, return to the upper layer routine.

図14を参照して、ステップS111では、傾斜変化量Δαつまり現時点の傾斜が撮影操作を受け付けた時点の傾斜に対してどれだけ変化したかを算出する。傾斜変化量Δαは、ステップS75で取り込んだ検知結果αから、ステップS73で読み出した検知結果情報に含まれる検知結果αを減算することで得られる。   Referring to FIG. 14, in step S111, the amount of change in inclination Δα, that is, how much the current inclination changes with respect to the inclination at the time when the photographing operation is accepted is calculated. The inclination change amount Δα is obtained by subtracting the detection result α included in the detection result information read out in step S73 from the detection result α acquired in step S75.

ステップS113では、ステップS111の算出結果に基づいて傾斜補正値(−Δα)を算出する。傾斜補正値は、ステップS77の算出結果の符合を反転することで得られる。ステップS115では、ステップS113の算出結果をメモリ制御回路24に設定する。この後、上位層のルーチンに復帰する。   In step S113, an inclination correction value (−Δα) is calculated based on the calculation result of step S111. The inclination correction value is obtained by inverting the sign of the calculation result in step S77. In step S115, the calculation result of step S113 is set in the memory control circuit 24. Thereafter, the process returns to the upper layer routine.

図15を参照して、ステップS121では、フラッシュメモリ34に保持されている選択結果が全画像表示モードであるか否かを判別する。ここでYESであれば、ステップS123に移って、ステップS111で算出された傾斜変化量Δαに対応する倍率をテーブルT1から読み出す。NOであればステップS125に移って、ステップS111で算出された傾斜変化量Δαに対応する倍率をテーブルT2から読み出す。続くステップS127では、テーブルT1またはT2から読み出された倍率をメモリ制御回路24に設定する。設定の後、上位層のルーチンに復帰する。   Referring to FIG. 15, in step S121, it is determined whether or not the selection result stored in flash memory 34 is the all-image display mode. If “YES” here, the process proceeds to a step S123, and the magnification corresponding to the inclination change amount Δα calculated in the step S111 is read from the table T1. If NO, the process proceeds to step S125, and the magnification corresponding to the inclination change amount Δα calculated in step S111 is read from the table T2. In the subsequent step S127, the magnification read from the table T1 or T2 is set in the memory control circuit 24. After setting, return to the upper layer routine.

以上から明らかなように、この実施例のディジタルカメラ10では、傾斜センサ36は光軸Z周り方向(すなわちモニタ28の表示面の法線周り方向)の傾斜αを検知する。カメラモードが選択されると、撮影指示に応答して撮影された画像と、撮影指示を受け付けた時点の傾斜センサ36の検知結果を示す検知結果情報とが、メモリカード44に記録される。再生モードが選択されると、メモリカード44から再生された画像がビデオエンコーダ26を通してモニタ28に表示される。   As is apparent from the above, in the digital camera 10 of this embodiment, the tilt sensor 36 detects the tilt α in the direction around the optical axis Z (that is, the direction around the normal line of the display surface of the monitor 28). When the camera mode is selected, an image shot in response to the shooting instruction and detection result information indicating the detection result of the tilt sensor 36 when the shooting instruction is received are recorded in the memory card 44. When the reproduction mode is selected, an image reproduced from the memory card 44 is displayed on the monitor 28 through the video encoder 26.

CPU38は、表示画像に対応する検知結果情報をメモリカード44から読み出し(S73)、傾斜センサ36の検知結果を取り込む(S75,S89)。そして、読み出された検知結果情報と、取り込まれた検知結果とに基づいて、表示画像の姿勢を変更する(S77,S91)。   The CPU 38 reads the detection result information corresponding to the display image from the memory card 44 (S73), and takes in the detection result of the tilt sensor 36 (S75, S89). Then, the orientation of the display image is changed based on the read detection result information and the captured detection result (S77, S91).

つまり、撮影時点の光軸Z回り方向の傾斜に対して、現時点の光軸Z周り方向の傾斜が変化すれば、再生画像の姿勢が変更される。具体的には、取り込まれた検知結果の示す傾斜値から読み出された検知結果情報の示す傾斜値を減算し(S111)、減算結果“Δα”の符合を反転し(S113)、そして反転結果“−Δα”を補正値として姿勢変更を行う。この結果、再生画像を正立姿勢で表示可能となり、再生モードにおける操作性が向上する。   That is, if the current inclination in the direction around the optical axis Z changes with respect to the inclination in the direction around the optical axis Z at the time of shooting, the posture of the reproduced image is changed. Specifically, the inclination value indicated by the detected detection result information is subtracted from the inclination value indicated by the detected detection result (S111), the sign of the subtraction result “Δα” is inverted (S113), and the inversion result is obtained. The posture is changed using “−Δα” as a correction value. As a result, the reproduced image can be displayed in an upright posture, and the operability in the reproduction mode is improved.

CPU38はさらに、かかる姿勢変更に伴って、表示画像の倍率も変更する(S79,S93)。この結果、倍率変更のための操作量が抑制され、再生モードでの操作性がさらに向上する。   Further, the CPU 38 also changes the magnification of the display image in accordance with the posture change (S79, S93). As a result, the operation amount for changing the magnification is suppressed, and the operability in the reproduction mode is further improved.

なお、この実施例では、2つのテーブルT1およびT2の一方を用いて倍率を算出したが、全画像表示モード用および全画面表示モード用の2つのアルゴリズムを準備しておき、2つのアルゴリズムの一方に従う演算によって倍率を算出してもよい。   In this embodiment, the magnification is calculated using one of the two tables T1 and T2. However, two algorithms for the full image display mode and the full screen display mode are prepared, and one of the two algorithms is prepared. The magnification may be calculated by calculation according to the following.

また、この実施例では、イメージセンサ14の撮像面14aとモニタ28の表示面とは互いに平行である(すなわちモニタ28の表示面の法線と光軸Zとは互いに平行である)が、モニタ28がカメラ本体に対して回動可能に連結されていれば、両者は一般に平行でない。この場合には、モニタ28に別の傾斜センサ(図示せず)を設ければよい。つまり、カメラモードでは傾斜センサ36が光軸Z周り方向の傾斜を検知し、再生モードでは別の傾斜センサがモニタ28の表示面の法線周りの方向の傾斜を検知する。そして、撮影時点の光軸Z回り方向の傾斜に対して、現時点の表示面の法線周り方向の傾斜が変化したとき、再生画像の姿勢が変更される。   In this embodiment, the imaging surface 14a of the image sensor 14 and the display surface of the monitor 28 are parallel to each other (that is, the normal line of the display surface of the monitor 28 and the optical axis Z are parallel to each other). If 28 is pivotally connected to the camera body, they are generally not parallel. In this case, another inclination sensor (not shown) may be provided on the monitor 28. That is, in the camera mode, the tilt sensor 36 detects the tilt in the direction around the optical axis Z, and in the playback mode, another tilt sensor detects the tilt in the direction around the normal line of the display surface of the monitor 28. Then, when the inclination in the direction around the normal line of the current display surface is changed with respect to the inclination in the direction around the optical axis Z at the time of shooting, the posture of the reproduced image is changed.

以下、この発明の他の実施例について簡単に説明する。この実施例は、撮影指示に応答して撮影された画像と、撮影指示を受け付けた時点の光軸周り方向の傾斜を示す傾斜情報(傾斜センサの検知結果)とが記録されたメモリカードが装着され、メモリカードに向けられた再生操作に応答して画像をモニタ画面に表示する画像表示装置(ビューア)である。   Hereinafter, another embodiment of the present invention will be briefly described. In this embodiment, a memory card in which an image photographed in response to a photographing instruction and inclination information (inclination sensor detection result) indicating inclination in the direction around the optical axis at the time when the photographing instruction is received is mounted. The image display device (viewer) displays an image on a monitor screen in response to a reproduction operation directed to the memory card.

このビューアは、図1のディジタルカメラ10において、カメラモードに関係する構成要素つまりフォーカスレンズ12,イメージセンサ14,CDS/AGC回路16,A/D変換器18,信号処理回路20およびシャッタボタン30を除外した構成を有する。残りの構成要素は、図1のものと同様の動作を行う。ただし、JPEGコーデック40は、伸長だけを行えればよい。また、メモリカード44は、図1実施例のディジタルカメラ10から取り外されたメモリカード44でもよく、他の電子カメラから取り外されたメモリカードでもよい。   This viewer includes components related to the camera mode, that is, a focus lens 12, an image sensor 14, a CDS / AGC circuit 16, an A / D converter 18, a signal processing circuit 20, and a shutter button 30 in the digital camera 10 of FIG. Has an excluded configuration. The remaining components perform the same operations as in FIG. However, the JPEG codec 40 only needs to perform decompression. The memory card 44 may be the memory card 44 removed from the digital camera 10 of FIG. 1 embodiment, or may be a memory card removed from another electronic camera.

他の電子カメラから取り外されたメモリカードに記録された傾斜情報は、図1傾斜センサ36の検知結果とは異なるフォーマットを有していてもよい。この場合、CPU38は、姿勢変更(図14参照)を行う際、傾斜変化量の算出(S111)に先立って、傾斜情報のフォーマット変換を行う。なお、傾斜情報は、傾斜センサ36の検知結果と同じ5度単位でもよく、これ以外の単位たとえば90度単位(−90°,0,90°のいずれか)であってもよい。   The inclination information recorded on the memory card removed from the other electronic camera may have a format different from the detection result of the inclination sensor 36 in FIG. In this case, when performing the posture change (see FIG. 14), the CPU 38 performs format conversion of the tilt information prior to the calculation of the tilt change amount (S111). The inclination information may be in the same unit of 5 degrees as the detection result of the inclination sensor 36, or may be in units other than this, for example, in units of 90 degrees (any one of -90 °, 0, and 90 °).

以上では、ディジタルカメラ10およびビューアを用いて説明したが、この発明は、モニタ画面を有する携帯型の画像処理装置(たとえば携帯電話端末,PDA,携帯型ゲーム機など)に適用できる。また、モニタ画面をその法線周り方向に回転させる機構を有する据え置き型の画像処理装置(たとえばパソコン,カーナビなど)にも適用が可能である。   Although the above description has been made using the digital camera 10 and the viewer, the present invention can be applied to a portable image processing device (for example, a mobile phone terminal, a PDA, a portable game machine, etc.) having a monitor screen. The present invention can also be applied to a stationary image processing apparatus (for example, a personal computer or a car navigation system) having a mechanism for rotating the monitor screen in the direction around the normal line.

この発明の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of this invention. 正立状態に置かれた図1実施例を示す斜視図である。FIG. 2 is a perspective view showing the embodiment of FIG. 1 placed in an upright state. 図1実施例に適用される光軸周り方向の傾斜の定義を示す図解図である。It is an illustration figure which shows the definition of the inclination of the surroundings direction of an optical axis applied to the FIG. 1 Example. 図1実施例に適用される表示モード選択画面を示す図解図である。It is an illustration figure which shows the display mode selection screen applied to the FIG. 1 Example. (A)は図1実施例に適用されるテーブルの一例を示す図解図であり、(B)は図1実施例に適用されるテーブルの他の一例を示す図解図である。(A) is an illustration figure which shows an example of the table applied to FIG. 1 Example, (B) is an illustration figure which shows another example of the table applied to FIG. 1 Example. (A)は撮影画像の一例を示す図解図であり、(B)は(A)画像に基づく再生画面の一例を示す図解図であり、(C)は(A)画像に基づく再生画面の他の一例を示す図解図であり、(D)は(A)画像に基づく再生画面の他の一例を示す図解図である。(A) is an illustrative view showing an example of a photographed image, (B) is an illustrative view showing an example of a reproduction screen based on (A) image, and (C) is another reproduction screen based on (A) image. (D) is an illustrative view showing another example of a reproduction screen based on an image. (A)は撮影画像の他の一例を示す図解図であり、(B)は(A)画像に基づく再生画面の一例を示す図解図であり、(C)は(A)画像に基づく再生画面の他の一例を示す図解図であり、(D)は(A)画像に基づく再生画面のその他の一例を示す図解図である。(A) is an illustrative view showing another example of a captured image, (B) is an illustrative view showing an example of a playback screen based on (A) image, and (C) is a playback screen based on (A) image. It is an illustration figure which shows another example of (A), (D) is an illustration figure which shows another example of the reproduction | regeneration screen based on (A) image. (A)は撮影画像のその他の一例を示す図解図であり、(B)は(A)画像に基づく再生画面の一例を示す図解図であり、(C)は(A)画像に基づく再生画面の他の一例を示す図解図であり、(D)は(A)画像に基づく再生画面のその他の一例を示す図解図であり、(E)は(A)画像に基づく再生画面のさらにその他の一例を示す図解図である。(A) is an illustrative view showing another example of a captured image, (B) is an illustrative view showing an example of a playback screen based on (A) image, and (C) is a playback screen based on (A) image. (D) is an illustrative view showing another example of a playback screen based on (A) image, and (E) is yet another example of a playback screen based on (A) image. It is an illustration figure which shows an example. 図1実施例に適用されるCPU動作の一部を示す図解図である。It is an illustration figure which shows a part of CPU operation | movement applied to FIG. 1 Example. 図1実施例に適用されるCPU動作の他の一部を示す図解図である。FIG. 10 is an illustrative view showing another portion of the CPU operation applied to the embodiment in FIG. 1; 図1実施例に適用されるCPU動作のその他の一部を示す図解図である。It is an illustration figure which shows the other part of CPU operation | movement applied to FIG. 1 Example. 図1実施例に適用されるCPU動作のさらにその他の一部を示す図解図である。FIG. 10 is an illustrative view showing yet another portion of the CPU operation applied to the embodiment in FIG. 1; 図1実施例に適用されるCPU動作の他の一部を示す図解図である。FIG. 10 is an illustrative view showing another portion of the CPU operation applied to the embodiment in FIG. 1; 図1実施例に適用されるCPU動作の他の一部を示す図解図である。FIG. 10 is an illustrative view showing another portion of the CPU operation applied to the embodiment in FIG. 1; 図1実施例に適用されるCPU動作のその他の一部を示す図解図である。It is an illustration figure which shows the other part of CPU operation | movement applied to FIG. 1 Example.

符号の説明Explanation of symbols

10…ディジタルカメラ
12…フォーカスレンズ
14…イメージセンサ
14a…撮像面
18…CPU
22…SDRAM
24…メモリ制御回路
26…ビデオエンコーダ
28…モニタ
36…傾斜センサ
36a…2軸加速度センサ
36b…演算回路
44…メモリカード
DESCRIPTION OF SYMBOLS 10 ... Digital camera 12 ... Focus lens 14 ... Image sensor 14a ... Imaging surface 18 ... CPU
22 ... SDRAM
24 ... Memory control circuit 26 ... Video encoder 28 ... Monitor 36 ... Tilt sensor 36a ... Biaxial acceleration sensor 36b ... Arithmetic circuit 44 ... Memory card

Claims (10)

撮影指示に応答して撮影された画像と前記撮影指示を受け付けた時点の光軸周り方向の撮像面の傾斜を示す傾斜情報とが記録された記録媒体に向けられた画像再生操作を受け付ける第1受け付け手段、
前記画像再生操作によって指定された画像を前記記録媒体から読み出す第1読み出し手段、
前記第1読み出し手段によって前記記録媒体から読み出された画像をモニタ画面に表示する表示手段、
前記表示手段の表示動作に関連して前記モニタ画面の法線周り方向の傾斜を検知する第1検知手段、
前記表示手段によって表示された画像に対応する傾斜情報を前記記録媒体から読み出す第2読み出し手段、および
前記表示手段によって表示される画像の姿勢を前記第1検知手段の検知結果と前記第2読み出し手段によって読み出された傾斜情報とに基づいて制御する姿勢制御手段を備える、画像処理装置。
First to accept an image reproduction operation directed to a recording medium in which an image photographed in response to a photographing instruction and inclination information indicating the inclination of the imaging surface in the direction around the optical axis when the photographing instruction is accepted are recorded Receiving means,
First reading means for reading an image designated by the image reproduction operation from the recording medium;
Display means for displaying an image read from the recording medium by the first reading means on a monitor screen;
First detection means for detecting an inclination in a direction around a normal line of the monitor screen in relation to a display operation of the display means;
Second readout means for reading out tilt information corresponding to the image displayed by the display means from the recording medium, and the detection result of the first detection means and the second readout means for the orientation of the image displayed by the display means An image processing apparatus comprising posture control means for controlling based on the inclination information read out by.
前記姿勢制御手段は、前記第1検知手段の検知結果と前記第2読み出し手段によって読み出された傾斜情報との差分を算出する差分算出手段、および前記差分算出手段の算出結果に基づいて姿勢補正量を算出する補正量算出手段を含む、請求項1記載の画像処理示装置。   The posture control means includes a difference calculation means for calculating a difference between the detection result of the first detection means and the inclination information read by the second reading means, and posture correction based on the calculation result of the difference calculation means The image processing display apparatus according to claim 1, further comprising a correction amount calculation unit that calculates the amount. 前記第1検知手段は前記表示手段の表示動作と並行して検知を繰り返し行う、請求項1または2記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first detection unit repeatedly performs detection in parallel with the display operation of the display unit. 前記表示手段によって表示される画像の倍率を前記姿勢制御手段の制御に応じて制御する倍率制御手段をさらに備える、請求項1ないし3のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a magnification control unit that controls a magnification of an image displayed by the display unit in accordance with control of the posture control unit. 縮小方向への制御および拡大方向への制御のいずれか一方を選択する選択操作を受け付ける第2受け付け手段をさらに備え、
前記倍率制御手段は前記選択操作によって選択された方向に制御する、請求項4記載の画像処理装置。
A second receiving means for receiving a selection operation for selecting one of the control in the reduction direction and the control in the enlargement direction;
The image processing apparatus according to claim 4, wherein the magnification control unit performs control in a direction selected by the selection operation.
前記選択操作によって選択された方向を示す方向情報を保持する保持手段をさらに備える、請求項5記載の画像処理装置。   The image processing apparatus according to claim 5, further comprising holding means for holding direction information indicating a direction selected by the selection operation. 撮影指示を受け付けた時点の光軸周り方向の撮像面の傾斜を検知する第2検知手段、および
前記撮影指示に応じて撮影された画像と前記第2検知手段の検知結果を示す傾斜情報とを記録媒体に記録する記録手段をさらに備える、請求項1ないし6のいずれかに記載の画像処理装置。
Second detection means for detecting the inclination of the imaging surface in the direction around the optical axis at the time when the imaging instruction is received, and an image captured in accordance with the imaging instruction and inclination information indicating a detection result of the second detection means. The image processing apparatus according to claim 1, further comprising recording means for recording on a recording medium.
前記モニタ画面は前記撮像面と平行である、請求項7記載の画像処理装置。   The image processing apparatus according to claim 7, wherein the monitor screen is parallel to the imaging surface. 互いに直交する2つの軸方向にそれぞれ加わる2つの加速度を検知する1つの2軸加速度センサをさらに備え、
前記第1検知手段および前記第2検知手段の各々は前記2軸加速度センサの出力に基づいて検知を行う、請求項8記載の画像処理装置。
A two-axis acceleration sensor for detecting two accelerations respectively applied in two axial directions orthogonal to each other;
The image processing apparatus according to claim 8, wherein each of the first detection unit and the second detection unit performs detection based on an output of the biaxial acceleration sensor.
前記2つの軸の各々は前記光軸と直交する、請求項9記載の画像処理装置。   The image processing apparatus according to claim 9, wherein each of the two axes is orthogonal to the optical axis.
JP2005184373A 2005-06-24 2005-06-24 Image processor Withdrawn JP2007006162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005184373A JP2007006162A (en) 2005-06-24 2005-06-24 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005184373A JP2007006162A (en) 2005-06-24 2005-06-24 Image processor

Publications (1)

Publication Number Publication Date
JP2007006162A true JP2007006162A (en) 2007-01-11

Family

ID=37691330

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005184373A Withdrawn JP2007006162A (en) 2005-06-24 2005-06-24 Image processor

Country Status (1)

Country Link
JP (1) JP2007006162A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010252239A (en) * 2009-04-20 2010-11-04 Kyocera Corp Imaging apparatus and imaging method
JP2011176677A (en) * 2010-02-25 2011-09-08 Nikon Corp Display device, imaging device, and program
US8749647B2 (en) 2009-04-20 2014-06-10 Kyocera Corporation Image capturing device and image capturing method
US10285705B2 (en) 2016-04-01 2019-05-14 Ethicon Llc Surgical stapling system comprising a grooved forming pocket

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010252239A (en) * 2009-04-20 2010-11-04 Kyocera Corp Imaging apparatus and imaging method
US8749647B2 (en) 2009-04-20 2014-06-10 Kyocera Corporation Image capturing device and image capturing method
JP2011176677A (en) * 2010-02-25 2011-09-08 Nikon Corp Display device, imaging device, and program
US10285705B2 (en) 2016-04-01 2019-05-14 Ethicon Llc Surgical stapling system comprising a grooved forming pocket

Similar Documents

Publication Publication Date Title
US8570402B2 (en) Imaging apparatus for obtaining a user-intended image when orientation of the imaging apparatus changes in applying a special effect that changes the image quality in a set direction
JP4999268B2 (en) Electronic camera and program
JP5375744B2 (en) Movie playback device, movie playback method and program
JP4236986B2 (en) Imaging apparatus, method, and program
JP2006245726A (en) Digital camera
JP2005110097A (en) Imaging apparatus and image pickup method
US20170111574A1 (en) Imaging apparatus and imaging method
JP2007201539A (en) Digital camera
KR20130054748A (en) Digital photographing apparatus and controlling method thereof
JP2004343476A (en) Image pickup device, processor of image pickup result, and method for processing same result
JP2019106604A (en) Imaging apparatus, method for controlling imaging apparatus, and program
JP2007006162A (en) Image processor
JP6312426B2 (en) Imaging apparatus and control method thereof
JP2009105559A (en) Method of detecting and processing object to be recognized from taken image, and portable electronic device with camera
JP2006279291A (en) Imaging apparatus
JP2009033223A (en) Imaging apparatus
JP2006285073A (en) Imaging apparatus and method of operating the imaging apparatus
JP2011188225A (en) Electronic camera
JP5735759B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP5021370B2 (en) Imaging apparatus, display method, and program
JP4967692B2 (en) Camera and storage program
WO2007075071A1 (en) Method and processor for compensating image tilt and record media recored program therefor
JP2012124614A (en) Imaging apparatus and imaging apparatus control method
JP4828486B2 (en) Digital camera, photographing method and photographing program
JP2008065851A (en) Information processing apparatus and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080616

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090602