Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5482142B2 - Image processing apparatus, imaging apparatus, and image processing program - Google Patents
[go: Go Back, main page]

JP5482142B2 - Image processing apparatus, imaging apparatus, and image processing program - Google Patents

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

Info

Publication number
JP5482142B2
JP5482142B2 JP2009267464A JP2009267464A JP5482142B2 JP 5482142 B2 JP5482142 B2 JP 5482142B2 JP 2009267464 A JP2009267464 A JP 2009267464A JP 2009267464 A JP2009267464 A JP 2009267464A JP 5482142 B2 JP5482142 B2 JP 5482142B2
Authority
JP
Japan
Prior art keywords
image
trimming frame
trimming
subject
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009267464A
Other languages
Japanese (ja)
Other versions
JP2011114463A (en
Inventor
朗 江沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2009267464A priority Critical patent/JP5482142B2/en
Publication of JP2011114463A publication Critical patent/JP2011114463A/en
Application granted granted Critical
Publication of JP5482142B2 publication Critical patent/JP5482142B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)

Description

本発明は、画像処理装置、撮像装置および画像処理プログラムに関する。   The present invention relates to an image processing device, an imaging device, and an image processing program.

電子カメラなどで撮影した画像をトリミングし、新たな画像を作成して保存することや、トリミング範囲からプリントを作成することが行われている。なお、認識された顔にあわせてトリミングする技術が、知られている(特許文献1参照)。   Trimming an image taken with an electronic camera or the like, creating and saving a new image, and creating a print from a trimming range are performed. A technique for trimming in accordance with the recognized face is known (see Patent Document 1).

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

ところで、日常の撮影では同じ被写体・同じシーンで複数枚撮影をする場合、それらの画像においては画面内での被写体の大きさや位置が微妙に異なることが多い。それは、ユーザーが、被写体とカメラとの距離を変化させたり、ズーミングを変化させたり、構図を変化させたりして、撮影するからである。   By the way, when shooting a plurality of images with the same subject and the same scene in daily shooting, the size and position of the subject in the screen often differ slightly in these images. This is because the user shoots by changing the distance between the subject and the camera, changing the zooming, or changing the composition.

このような一連の撮影画像からベストなものを1画像だけ選択してトリミングする場合は問題ないが、被写体の表情が異なっているため複数画像を選択して保存したり、プリントを作成することも多い。このときに、それぞれの画像に対して個々に考えながら自分の好みに合ったようにトリミングしたい場合は良いが、第一画像で自分の好みに合ったようにトリミングを行なったら、第二画像以降は、「被写体に対して第一画像とだいたい同じようにトリミングできればよい」ということも多い。   There is no problem when only one best image is selected and trimmed from such a series of photographed images, but since the expression of the subject is different, multiple images can be selected and saved, or a print can be created. Many. At this time, if you want to trim each image to your liking while thinking individually, you can trim the first image to your liking. Is often "just need to be able to trim the subject in the same way as the first image".

しかしながら、現状でカメラ内蔵のトリミング装置や、パソコン上で使用される画像編集ソフトウェアーでは、各画像ごとにトリミングを行なわなければならないという問題がある。ユーザーにとってトリミング操作は、画像を写真として完成させる創造的なプロセスではあるが、ほぼ同様の画像に対してトリミング操作を複数回繰返さなければならないことは、時間的にも心理的にも大きな負担となっている。   However, in the present situation, the trimming apparatus with a built-in camera and the image editing software used on a personal computer have a problem that trimming must be performed for each image. Although the trimming operation is a creative process for a user to complete an image as a photograph, the fact that the trimming operation has to be repeated several times for a similar image is a great burden both in terms of time and psychology. It has become.

本発明は、このような事情に鑑みてなされたもので、その目的は、第1画像における被写体に対してのトリミングにあわせて、第2画像にも同様のトリミングすることができる画像処理装置、撮像装置および画像処理プログラムを提供することにある。   The present invention has been made in view of such circumstances, and an object thereof is an image processing apparatus capable of performing the same trimming on the second image in accordance with the trimming on the subject in the first image, To provide an imaging apparatus and an image processing program.

この発明は上述した課題を解決するためになされたもので、第1画像の被写体と第2画像の被写体が類似しているか否かを判定する判定手段と、前記判定手段により前記第2画像の被写体が前記第1画像の被写体に類似していると判定された場合には、前記第1画像に対して設定された第1トリミング枠の条件と同じ条件で前記第2画像に対する第2トリミング枠を自動的に設定するトリミング枠設定部と、を備えることを特徴とする画像処理装置である。 The present invention has been made to solve the above-described problem. A determination unit that determines whether or not the subject of the first image is similar to the subject of the second image, and the determination unit determines whether the second image If the subject is judged to be similar to the subject of the first image in the same conditions as the first trimming frame set for the first image, first against the second image a belt trimming frame setting unit automatically sets the 2 trimming frame is an image processing apparatus comprising: a.

また、この発明は、上記に記載の画像処理装置、を備えることを特徴とする撮像装置である。   Moreover, this invention is an imaging device provided with the image processing apparatus as described above.

また、この発明は、画像処理装置としてのコンピュータに、第1画像の被写体と第2画像の被写体が類似しているか否かを判定する判定手順と、前記判定手順により前記第2画像の被写体が前記第1画像の被写体に類似していると判定された場合には、前記第1画像に対して設定された第1トリミング枠の条件と同じ条件で前記第2画像に対する第2トリミング枠を自動的に設定するトリミング枠設定手順を実行させるための画像処理プログラムである。
The present invention also provides a determination procedure for determining whether or not the subject of the first image and the subject of the second image are similar to the computer as the image processing apparatus, and the subject of the second image is determined by the determination procedure. wherein when it is determined that the first is similar to the subject of the image, under the same conditions as the first trimming frame condition set for the first image, a second trimming against the second image an image processing program for executing the belt trimming frame setting procedure automatically configures the frame.

この発明によれば、第1画像における被写体に対してのトリミングにあわせて、第2画像にも同様のトリミングすることができるという効果を奏する。   According to the present invention, the same trimming can be performed on the second image as the subject is trimmed on the first image.

この発明の一実施形態による画像処理装置を有する撮像装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an imaging apparatus having an image processing apparatus according to an embodiment of the present invention. 総合メニューで「画像編集」を選択する操作の図である。It is a figure of operation which selects "image editing" in a comprehensive menu. 画像編集メニューで「トリミング」を選択する操作の図である。It is a figure of operation which selects "Trimming" from an image edit menu. トリミング操作で、対象画像を指定する操作の図である。It is a figure of operation which designates an object picture by trimming operation. トリミングの縦横比を決めるためにプリントサイズを指定する操作の図である。It is a figure of operation which designates a print size in order to determine the aspect ratio of trimming. 選択画像に対してトリミング枠を操作する図である。It is a figure which operates the trimming frame with respect to the selection image. 類似画像に対して自動トリミングを行なうかどうかを選択する操作の図である。It is a figure of operation which selects whether to perform automatic trimming with respect to a similar image. 自動トリミングを初めのトリミング枠と同じ縦横比とするかどうかを選択する操作の図である。It is a figure of operation which chooses whether automatic trimming is made into the same aspect ratio as the first trimming frame. 自動トリミングする対象となる類似画像を選択する操作の図である。It is a figure of operation which selects the similar image used as the object to perform automatic trimming. 自動トリミングで設定されたトリミング枠を確認・変更する操作の図である。It is a figure of operation which checks and changes the trimming frame set by automatic trimming. 第1画像に対してユーザーが設定したトリミング枠の分析を説明する図である。It is a figure explaining the analysis of the trimming frame which the user set with respect to the 1st image. 第1画像のトリミング枠分析結果から類似画像に対して自動トリミングをする方法を説明する図である。It is a figure explaining the method of automatically trimming with respect to a similar image from the trimming frame analysis result of a 1st image. 第1画像のトリミング枠の分析の別の方法を説明する図である。It is a figure explaining another method of the analysis of the trimming frame of a 1st image. 図1の画像処理装置を有する撮像装置の動作を示すフローチャートである。2 is a flowchart showing an operation of an imaging apparatus having the image processing apparatus of FIG.

以下、図面を参照して、本発明の実施形態について説明する。図1は、この発明の一実施形態による画像処理装置(トリミング装置)を有する撮像装置の構成を示す概略ブロック図である。ここでは、画像処理装置が、マイクロコンピュータ1として構成されている場合について説明する。   Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic block diagram showing a configuration of an imaging apparatus having an image processing apparatus (trimming apparatus) according to an embodiment of the present invention. Here, a case where the image processing apparatus is configured as the microcomputer 1 will be described.

撮像装置は、撮像装置が有している各構成を制御するマイクロコンピュータ1と、撮影レンズ31を用いた撮影における光学系を制御する光学系制御部2と、撮影レンズ31を介して受光した光信号を電気信号に変換する撮像部3と、ユーザーが操作する操作部4とを有している。また撮像装置は、外部インターフェース51、画像表示制御部61、重畳表示制御部62、モニター63、ドライバ回路DR5、撮影情報モニター64、カードコネクター71、メモリーカード72、画像記憶メモリー73、圧縮/伸長回路74、メモリー75、タイマー76、ドライバ回路DR6、圧電ブザー77、電池81および電池チェック回路82を有している。   The imaging apparatus includes a microcomputer 1 that controls each configuration of the imaging apparatus, an optical system control unit 2 that controls an optical system in photographing using the photographing lens 31, and light received through the photographing lens 31. An imaging unit 3 that converts a signal into an electrical signal and an operation unit 4 that a user operates are provided. The imaging apparatus includes an external interface 51, an image display control unit 61, a superimposed display control unit 62, a monitor 63, a driver circuit DR5, a photographing information monitor 64, a card connector 71, a memory card 72, an image storage memory 73, and a compression / decompression circuit. 74, a memory 75, a timer 76, a driver circuit DR6, a piezoelectric buzzer 77, a battery 81, and a battery check circuit 82.

光学系制御部2は、測光装置21、ドライバ回路DR2、ドライバ回路DR3、ドライバ回路DR4、シャッター部22、絞り機構部23およびミラー機構部24を有している。測光装置21は被写体の輝度を検出し、検出信号をマイクロコンピュータ1へ送出する。ドライバ回路DR2は、マイクロコンピュータ1からの指令に応じてシャッター部22を駆動制御する。シャッター部22は、シャッター羽根を開閉して光の遮光を行う。ドライバ回路DR3は、マイクロコンピュータ1からの指令に応じて絞り機構部23を駆動制御する。絞り機構部23は、撮影レンズ31が有する絞りを開閉する。ドライバ回路DR4は、マイクロコンピュータ1からの指令に応じてミラー機構部24を駆動制御する。ミラー機構部24は、不図示のミラーのアップ・ダウンを行う。   The optical system control unit 2 includes a photometry device 21, a driver circuit DR2, a driver circuit DR3, a driver circuit DR4, a shutter unit 22, an aperture mechanism unit 23, and a mirror mechanism unit 24. The photometric device 21 detects the luminance of the subject and sends a detection signal to the microcomputer 1. The driver circuit DR2 drives and controls the shutter unit 22 in accordance with a command from the microcomputer 1. The shutter unit 22 opens and closes shutter blades to block light. The driver circuit DR3 drives and controls the aperture mechanism unit 23 in accordance with a command from the microcomputer 1. The aperture mechanism unit 23 opens and closes the aperture of the taking lens 31. The driver circuit DR4 drives and controls the mirror mechanism unit 24 in accordance with a command from the microcomputer 1. The mirror mechanism unit 24 raises and lowers a mirror (not shown).

撮像部3は、撮影レンズ31、CCD(Charge Coupled Device)等の撮像素子32、撮像回路33、ドライバ回路DR1およびモータM1を有している。撮影レンズ31は、被写体像を撮像素子32の撮像面上に結像する。撮像回路33は、A/D変換回路を含み、撮像素子32から出力されるアナログ撮像信号をデジタルデータに変換し、変換後の画像データに対して所定の画像処理を行う。この画像処理として、たとえば、γ変換処理やホワイトバランス調整処理などがある。ドライバ回路DR1は、マイクロコンピュータ1からの指令に応じてモータM1を駆動する。モータM1は、たとえば、撮影レンズ31の焦点レンズを光軸方向に進退駆動する。なお、撮影レンズ31は、撮像装置に固定されて取り付けられていてもよいし、撮像装置に着脱可能となるようにして取り付けられていてもよい。   The imaging unit 3 includes an imaging lens 31, an imaging device 32 such as a CCD (Charge Coupled Device), an imaging circuit 33, a driver circuit DR1, and a motor M1. The photographing lens 31 forms a subject image on the imaging surface of the image sensor 32. The imaging circuit 33 includes an A / D conversion circuit, converts an analog imaging signal output from the imaging element 32 into digital data, and performs predetermined image processing on the converted image data. Examples of the image processing include γ conversion processing and white balance adjustment processing. The driver circuit DR1 drives the motor M1 in response to a command from the microcomputer 1. For example, the motor M1 drives the focus lens of the photographing lens 31 to advance and retract in the optical axis direction. Note that the photographic lens 31 may be fixedly attached to the imaging device, or may be attached so as to be detachable from the imaging device.

操作部4は、メインスイッチSW1、レリーズスイッチSW2、取消スイッチSW3、モードスイッチSW4、再生・メニュースイッチSW5、左選択スイッチSW6、右選択スイッチSW7、上選択スイッチSW8、下選択スイッチSW9、確定スイッチSW10、操作用スイッチSW11、操作用スイッチSW12、コマンドダイヤル左回転スイッチSW13、コマンドダイヤル右回転スイッチSW14、および、画像削除スイッチSW15を有している。   The operation unit 4 includes a main switch SW1, a release switch SW2, a cancel switch SW3, a mode switch SW4, a playback / menu switch SW5, a left selection switch SW6, a right selection switch SW7, an upper selection switch SW8, a lower selection switch SW9, and a confirmation switch SW10. , An operation switch SW11, an operation switch SW12, a command dial left rotation switch SW13, a command dial right rotation switch SW14, and an image deletion switch SW15.

メインスイッチSW1は、撮像装置の電源オンまたは電源オフを指示する操作信号を出力する。レリーズスイッチSW2は、レリーズスイッチSW2が半押しされた場合には撮影の開始を示す半押し操作信号を出力し、レリーズスイッチSW2が全押しされた場合には撮影することを示す全押し操作信号を出力する。取消スイッチSW3は、操作取消を示す操作信号を出力する。   The main switch SW1 outputs an operation signal for instructing to power on or power off the imaging apparatus. The release switch SW2 outputs a half-press operation signal indicating the start of shooting when the release switch SW2 is pressed halfway, and a full-press operation signal indicating that shooting is performed when the release switch SW2 is fully pressed. Output. The cancel switch SW3 outputs an operation signal indicating operation cancellation.

モードスイッチSW4は、撮像装置の撮影モードと再生モードとを切替えるための操作信号を出力する。また、モードスイッチSW4は、再生モードにおいて押されたことに応じて、総合メニューモードに切替える操作信号を出力する。再生・メニュースイッチSW5は、再生またはメニューを選択する操作信号を出力する。   The mode switch SW4 outputs an operation signal for switching between the shooting mode and the playback mode of the imaging apparatus. The mode switch SW4 outputs an operation signal for switching to the comprehensive menu mode in response to being pressed in the reproduction mode. The reproduction / menu switch SW5 outputs an operation signal for selecting reproduction or menu.

左選択スイッチSW6、右選択スイッチSW7、上選択スイッチSW8および下選択スイッチSW9は、それぞれ選択方向を示す操作信号を出力する。以降においては、左選択スイッチSW6および右選択スイッチSW7の組み合わせを左右選択スイッチSW6・7と称し、上選択スイッチSW8および下選択スイッチSW9の組み合わせを上下選択スイッチSW8・9と称して説明する。   The left selection switch SW6, the right selection switch SW7, the upper selection switch SW8, and the lower selection switch SW9 each output an operation signal indicating a selection direction. Hereinafter, the combination of the left selection switch SW6 and the right selection switch SW7 will be referred to as a left / right selection switch SW6 • 7, and the combination of the upper selection switch SW8 and the lower selection switch SW9 will be referred to as an upper / lower selection switch SW8 • 9.

確定スイッチSW10は、操作確定を示す操作信号を出力する。操作用スイッチSW11は、コマンドダイヤル左回転スイッチSW13またはコマンドダイヤル右回転スイッチSW14と組み合わせて用いられ、トリミング枠(後述する第1トリミング枠または第2トリミング枠)を拡大または縮小することを示す操作信号を出力する。   The confirmation switch SW10 outputs an operation signal indicating operation confirmation. The operation switch SW11 is used in combination with the command dial left rotation switch SW13 or the command dial right rotation switch SW14, and an operation signal indicating that a trimming frame (a first trimming frame or a second trimming frame described later) is enlarged or reduced. Is output.

コマンドダイヤル左回転スイッチSW13またはコマンドダイヤル右回転スイッチSW14は、順方向にまたは逆方向に順に切り替える操作信号を出力する。この左回転スイッチSW13またはコマンドダイヤル右回転スイッチSW14は、たとえば1つの回転スイッチとして構成されている。この回転スイッチが左回転した場合には左回転スイッチSW13が押された状態となり、回転スイッチが右回転した場合にはコマンドダイヤル右回転スイッチSW14が押された状態となる。   The command dial left rotation switch SW13 or the command dial right rotation switch SW14 outputs an operation signal for sequentially switching in the forward direction or the reverse direction. The left rotation switch SW13 or the command dial right rotation switch SW14 is configured as one rotation switch, for example. When the rotation switch rotates left, the left rotation switch SW13 is pressed. When the rotation switch rotates right, the command dial right rotation switch SW14 is pressed.

画像削除スイッチSW15は、画像を削除することを示す操作信号を出力する。プレビュースイッチSW16は、画像をプレビューすることを示す操作信号を出力する。   The image deletion switch SW15 outputs an operation signal indicating that an image is deleted. The preview switch SW16 outputs an operation signal indicating that an image is to be previewed.

外部インターフェース51は、撮像装置内のデータをパソコンや別の電子カメラなどの外部機器へ出力(送信)するインターフェース回路である。外部インターフェース51の一例として、RS232(Recommended Standard 232)、USB(Universal Serial Bus)、IEEE1394(Institute of Electrical and Electronic Engineers 1394)などの通信規格がある。   The external interface 51 is an interface circuit that outputs (transmits) data in the imaging apparatus to an external device such as a personal computer or another electronic camera. As an example of the external interface 51, there are communication standards such as RS232 (Recommended Standard 232), USB (Universal Serial Bus), IEEE1394 (Institute of Electrical and Electronic Engineers 1394).

画像表示制御部61は、マイクロコンピュータ1からの指令によりモニター63に画像やメニュー画面を表示させる駆動信号を生成して、モニター63に出力する。重畳表示制御部62は、マイクロコンピュータ1からの指令により、撮影条件などの文字情報やトリミング枠を、画像表示制御部61がモニター63に表示させている画像に重畳して表示させる駆動信号を生成して、モニター63に出力する。モニター63は、例えばカラーの液晶ディスプレイであり、画像表示制御部61および重畳表示制御部62からの駆動信号に基づいて、画像や操作メニューなどを表示するとともに、撮影条件などの文字情報やトリミング枠を重畳表示する。なおモニター63として、液晶ディスプレイの代わりにELディスプレイなどを用いてもよい。   The image display control unit 61 generates a drive signal for displaying an image or a menu screen on the monitor 63 according to a command from the microcomputer 1 and outputs the drive signal to the monitor 63. The superimposition display control unit 62 generates a drive signal that causes character information such as shooting conditions and a trimming frame to be superimposed and displayed on the image displayed on the monitor 63 by the instruction from the microcomputer 1. And output to the monitor 63. The monitor 63 is, for example, a color liquid crystal display, and displays an image, an operation menu, and the like based on drive signals from the image display control unit 61 and the superimposed display control unit 62, and character information such as shooting conditions and a trimming frame. Is superimposed. Note that an EL display or the like may be used as the monitor 63 instead of the liquid crystal display.

ドライバ回路DR5は、マイクロコンピュータ1からの指令により撮影情報モニター64に対する駆動信号を生成する。撮影情報モニター64は、例えば白黒の液晶ディスプレイであり、設定されている露出モードを示す符号もしくはマーク、撮影コマ数などの撮影条件を示す文字情報を表示する。   The driver circuit DR5 generates a drive signal for the photographing information monitor 64 according to a command from the microcomputer 1. The shooting information monitor 64 is, for example, a monochrome liquid crystal display, and displays character information indicating shooting conditions such as a code or mark indicating a set exposure mode and the number of shot frames.

メモリーカード72は、カードコネクター71を介して撮像装置に着脱される記録媒体である。メモリーカード72には画像データおよびトリミングされた画像データが記録される。画像記憶メモリー73は、上述した画像処理、後述する圧縮処理および伸長処理の際に一時的に画像データを格納する。圧縮/伸長回路74は、たとえば、JPEG(Joint Photographic Experts Group)など所定の画像形式で画像データを圧縮処理したり、圧縮された画像データを伸長処理したりする。   The memory card 72 is a recording medium that is attached to and detached from the imaging device via the card connector 71. The memory card 72 stores image data and trimmed image data. The image storage memory 73 temporarily stores image data during the above-described image processing, compression processing and decompression processing described later. The compression / decompression circuit 74 compresses image data in a predetermined image format such as JPEG (Joint Photographic Experts Group), or decompresses the compressed image data.

メモリー75は、たとえば、RAM(Random Access Memory)領域およびROM(Read Only Memory)領域の記憶領域を有している。RAM領域は、たとえば、マイクロコンピュータ1の作業領域として利用される。また、ROM領域は、撮像装置全体を制御するプログラムが予め記憶されている。マイクロコンピュータ1は、このROM領域から読み出したプログラムに基づいて撮像装置全体を制御する。   The memory 75 has storage areas such as a RAM (Random Access Memory) area and a ROM (Read Only Memory) area, for example. The RAM area is used as a work area of the microcomputer 1, for example. In the ROM area, a program for controlling the entire imaging apparatus is stored in advance. The microcomputer 1 controls the entire imaging apparatus based on the program read from the ROM area.

また、メモリー75は、トリミング枠情報記憶部751を有している。このトリミング枠情報記憶部751には、プリントサイズを示す情報と関連付けて、当該プリントサイズの場合のトリミング枠の縦横比を示す情報、または、当該プリントサイズの場合のトリミング枠の初期値としての縦と横とのサイズを示す情報が予め記憶されている。このトリミング枠情報記憶部751は、たとえばROM領域に含められている。   Further, the memory 75 has a trimming frame information storage unit 751. The trimming frame information storage unit 751 associates with the information indicating the print size, information indicating the aspect ratio of the trimming frame in the case of the print size, or the vertical value as the initial value of the trimming frame in the case of the print size. Information indicating the size of the horizontal and horizontal is stored in advance. The trimming frame information storage unit 751 is included in the ROM area, for example.

タイマー76は、マイクロコンピュータ1によって指定された時間を計時し、タイムアップ信号を出力したり、現在の日時を示す信号を出力したりする。ドライバ回路DR6は、マイクロコンピュータ1からの指令により圧電ブザー77に対する駆動信号を生成する。圧電ブザー77は、入力された駆動信号に応じて、内蔵している圧電素子を振動させてブザー音を出力する。電池81は、撮像装置内の各部に電力を供給する。電池チェック回路82は、電池81が撮像装置に供給する電力を監視し、監視した結果をマイクロコンピュータ1に出力する。   The timer 76 measures the time designated by the microcomputer 1 and outputs a time-up signal or a signal indicating the current date and time. The driver circuit DR6 generates a drive signal for the piezoelectric buzzer 77 in response to a command from the microcomputer 1. The piezoelectric buzzer 77 vibrates a built-in piezoelectric element according to the input drive signal and outputs a buzzer sound. The battery 81 supplies power to each unit in the imaging device. The battery check circuit 82 monitors the power supplied from the battery 81 to the imaging device, and outputs the monitored result to the microcomputer 1.

次に、本実施形態による画像処理装置としてのマイクロコンピュータ1について説明する。ここでは、マイクロコンピュータ1の構成において、画像処理装置に関する構成のみについて説明する。このマイクロコンピュータ1は、第1トリミング枠設定部11、第2トリミング枠設定部12、トリミング部13、および、制御部14を有している。   Next, the microcomputer 1 as the image processing apparatus according to the present embodiment will be described. Here, only the configuration related to the image processing apparatus in the configuration of the microcomputer 1 will be described. The microcomputer 1 includes a first trimming frame setting unit 11, a second trimming frame setting unit 12, a trimming unit 13, and a control unit 14.

第1トリミング枠設定部11は、第1画像に対して第1トリミング枠を設定する。
第2トリミング枠設定部12は、第1トリミング枠設定部11により第1画像に対して設定された第1トリミング枠の条件と同じ条件となるように、第2画像に対して第2トリミング枠を設定する。
The first trimming frame setting unit 11 sets a first trimming frame for the first image.
The second trimming frame setting unit 12 applies the second trimming frame to the second image so as to satisfy the same conditions as the first trimming frame conditions set for the first image by the first trimming frame setting unit 11. Set.

また、第2トリミング枠設定部12は、第1画像のうちの被写体と第2画像のうちの被写体とが類似しているか否かを判定し、当該判定した結果が類似である場合に、第1画像に対する第1トリミング枠の条件と同じ条件となるように、第2画像に対して第2トリミング枠を設定する。   Further, the second trimming frame setting unit 12 determines whether or not the subject in the first image is similar to the subject in the second image, and if the determined result is similar, A second trimming frame is set for the second image so that the same conditions as the first trimming frame for one image are satisfied.

また、第2トリミング枠設定部12は、第1画像のうちの被写体または第2画像のうちの被写体を、第1画像または第2画像に対する顔認識技術、または、色に基づいた被写体の検出技術により検出する。なお、画面内における色に基づいた被写体の検出技術として、たとえば、次の文献による技術が知られている。   Further, the second trimming frame setting unit 12 detects a subject in the first image or a subject in the second image, a face recognition technique for the first image or the second image, or a subject detection technique based on color. To detect. As a subject detection technique based on the color in the screen, for example, a technique according to the following document is known.

(文献) 特開2009−59326号公報 (Reference) JP 2009-59326 A

また、第2トリミング枠設定部12は、第1画像のうちの被写体に対する第1トリミング枠の画面内における位置を条件として、第2画像に対して第2トリミング枠を設定する。   The second trimming frame setting unit 12 sets a second trimming frame for the second image on the condition that the position of the first trimming frame in the screen with respect to the subject in the first image is a condition.

また、第2トリミング枠設定部12は、第1画像のうちの被写体に対する第1トリミング枠の画面内における位置の比率を算出し、当該算出した位置の比率を条件として、第2画像に対して第2トリミング枠を設定する。   Further, the second trimming frame setting unit 12 calculates a ratio of the position of the first trimming frame in the screen to the subject in the first image, and with respect to the second image on the condition of the calculated position ratio. A second trimming frame is set.

また、第2トリミング枠設定部12には、第2画像に対して第2トリミング枠を設定する場合に、第1トリミング枠の縦横比と同じとなるように第2トリミング枠の縦横比を設定するか否かが選択されて設定される。そして、第2トリミング枠設定部12は、第1トリミング枠の縦横比と同じとなるように第2トリミング枠の縦横比を設定するように選択せれている場合には、第2画像に対して第2トリミング枠を設定する場合に、第1トリミング枠の縦横比と同じとなるように第2トリミング枠を設定する。   The second trimming frame setting unit 12 sets the aspect ratio of the second trimming frame to be the same as the aspect ratio of the first trimming frame when the second trimming frame is set for the second image. Whether or not to do so is selected and set. When the second trimming frame setting unit 12 is selected to set the aspect ratio of the second trimming frame so as to be the same as the aspect ratio of the first trimming frame, the second trimming frame setting unit 12 applies to the second image. When setting the second trimming frame, the second trimming frame is set to be the same as the aspect ratio of the first trimming frame.

また、第2トリミング枠設定部12は、第1画像に対して設定された第1トリミング枠の条件と同じ条件となるように、第2画像に対して第2トリミング枠を設定する場合に、第2トリミング枠が第2画像の画像領域外に設定される場合には、当該第2トリミング枠を第2画像の画像領域内に設定する。   Further, the second trimming frame setting unit 12 sets the second trimming frame for the second image so that the same conditions as the first trimming frame conditions set for the first image are satisfied. When the second trimming frame is set outside the image area of the second image, the second trimming frame is set within the image area of the second image.

トリミング部13は、第1トリミング枠設定部11により設定された第1トリミング枠に基づいて、第1画像をトリミングする。また、トリミング部13は、第2トリミング枠設定部12により設定された第2トリミング枠に基づいて、第2画像をトリミングする。また、トリミング部13は、トリミングした第1画像または第2画像を、たとえば、カードコネクター71を介してメモリーカード72に記録する。   The trimming unit 13 trims the first image based on the first trimming frame set by the first trimming frame setting unit 11. The trimming unit 13 trims the second image based on the second trimming frame set by the second trimming frame setting unit 12. The trimming unit 13 records the trimmed first image or second image on the memory card 72 via the card connector 71, for example.

制御部14は、マイクロコンピュータ1が有している各構成、および、撮像装置が有している各構成を制御する。   The control unit 14 controls each configuration included in the microcomputer 1 and each configuration included in the imaging apparatus.

次に、図2から図13の画面図および図14のフローチャートを用いて、モニター63に画像を表示して、当該表示した画像に対してユーザーがトリミングする場合における撮像装置が有する画像処理装置の動作について説明する。なお、この図2から図13の画面図は、撮像装置のモニター63に表示される画像である。また、下記のステップ番号は、それぞれ、図14のフローチャートにおけるステップ番号である。また、下記においては、被写体が、顔認識技術により検出される顔ないし人物である場合について説明する。また、後述する類似画像は、上述した第2画像に相当する。   Next, using the screen diagrams of FIGS. 2 to 13 and the flowchart of FIG. 14, an image is displayed on the monitor 63, and an image processing apparatus included in the imaging apparatus when the user trims the displayed image. The operation will be described. 2 to 13 are images displayed on the monitor 63 of the imaging apparatus. The following step numbers are the step numbers in the flowchart of FIG. In the following, a case will be described in which the subject is a face or a person detected by face recognition technology. A similar image described later corresponds to the second image described above.

<1.トリミングのモードに入る>
まず、ユーザーがモードスイッチSW4(図1参照)を押すと、制御部14は、撮影モードから再生モードにし、もう一度、ユーザーがモードスイッチSW4(図1参照)押すと、制御部14は、総合メニューモードにする(図2、ステップS101)。
<1. Enter trimming mode>
First, when the user presses the mode switch SW4 (see FIG. 1), the control unit 14 switches from the shooting mode to the playback mode. When the user presses the mode switch SW4 (see FIG. 1) again, the control unit 14 displays the general menu. The mode is set (FIG. 2, step S101).

次に、ユーザーが上下選択スイッチSW8・9で「画像編集」を選択し確定スイッチSW10を押すと、制御部14は、画像編集メニューに移行する(図3、ステップS103)。   Next, when the user selects “image editing” with the up / down selection switches SW8 and 9 and presses the confirmation switch SW10, the control unit 14 shifts to the image editing menu (step S103 in FIG. 3).

次に、ユーザーが上下選択スイッチSW8・9で「トリミング」を選択し確定スイッチSW10を押すと、制御部14は、トリミングする対象の画像を選択する画面に移行する(図4、図14のステップS105)。   Next, when the user selects “trimming” with the up / down selection switches SW8 and 9 and presses the confirm switch SW10, the control unit 14 shifts to a screen for selecting an image to be trimmed (steps in FIGS. 4 and 14). S105).

<2.トリミングする画像を選択する>
次に、ユーザーが上下選択スイッチSW8・9と左右選択スイッチSW6・7とでトリミングする画像を選択して確定スイッチSW10を押すと、制御部14は、選択した画像を全画面表示すると共に、それに重ねて第1トリミング枠の指定のダイアログを表示する(図5、ステップS107,ステップS109)。
<2. Select the image to trim>
Next, when the user selects an image to be trimmed with the up / down selection switches SW8, 9 and the left / right selection switches SW6, 7 and presses the confirm switch SW10, the control unit 14 displays the selected image in full screen, A dialog for designating the first trimming frame is displayed again (FIG. 5, step S107, step S109).

<3. 第1トリミング枠(縦横比)を選択しトリミングを実行する>
次に、図5の画面で、ユーザーは、上下選択スイッチSW8・9で、予め定められている複数のプリントサイズの中から、いずれのプリントサイズの縦横比でトリミングするかを指定する。図5では、例として六切に対応する縦横比でトリミングする場合を示しており、ユーザーが、六切を選択して確定スイッチSW10を押すと(ステップS109)、第1トリミング枠設定部11は、第1トリミング枠を設定する画面に移行する(図6、ステップS111)。
<3. Select the first trimming frame (aspect ratio) and execute trimming>
Next, on the screen shown in FIG. 5, the user designates which print size is to be trimmed from among a plurality of predetermined print sizes using the up / down selection switches SW8 and 9. FIG. 5 shows a case where trimming is performed with an aspect ratio corresponding to six cuts as an example. When the user selects six cuts and presses the confirmation switch SW10 (step S109), the first trimming frame setting unit 11 Then, the screen shifts to a screen for setting the first trimming frame (FIG. 6, step S111).

<第1トリミング枠の拡大縮小・移動>
図6の画面で第1トリミング枠を操作するには、ユーザーは、左右選択スイッチSW6・7と上下選択スイッチSW8・9で左右と上下の移動を、操作用スイッチSW11を押しながらコマンドダイヤル左回転スイッチSW13または右回転スイッチSW14で第1トリミング枠の拡大・縮小を行なう。ユーザーの操作に応じて、第1トリミング枠設定部11は、第1トリミング枠を設定する。ユーザーが、第1トリミング枠の設定を終えてから確定スイッチSW10を押すと、制御部14は、類似画像に対して自動トリミングを行なうか否かを決める画面に移行する(図7、ステップS113)。
<Enlargement / reduction / movement of the first trimming frame>
To operate the first trimming frame on the screen shown in FIG. 6, the user can move left / right / up / down with left / right selection switch SW6 / 7 and up / down selection switch SW8 / 9, and rotate command dial to the left while pressing operation switch SW11. The first trimming frame is enlarged or reduced by the switch SW13 or the right rotation switch SW14. In response to a user operation, the first trimming frame setting unit 11 sets the first trimming frame. When the user presses the confirmation switch SW10 after completing the setting of the first trimming frame, the control unit 14 shifts to a screen for determining whether or not to perform automatic trimming on a similar image (step S113 in FIG. 7). .

<4.類似画像に対する自動トリミング(1)〜初期設定、類似画像の選択・チェック>
上記(図7、ステップS113)で、トリミング設定した第1画像と類似する画像に対して、第1画像のトリミングと同様に自動トリミングを行なう場合には、ユーザーは、「類似画像の自動トリミング」を上下選択スイッチSW8・9で選択し確定スイッチSW10を押す。すると、制御部14は、類似の画像以降の画像の第2トリミング枠について設定する画面に移行する(図8、ステップS115)。
<4. Automatic trimming for similar images (1)-Initial setting, selection and checking of similar images>
When automatic trimming is performed on an image similar to the first image trimmed and set in the above (FIG. 7, step S113) in the same manner as the trimming of the first image, the user selects “automatic trimming of similar images”. Select with the up / down selector switch SW8 / 9 and press the confirm switch SW10. Then, the control unit 14 shifts to a screen for setting the second trimming frame of images after the similar image (step S115 in FIG. 8).

一方、上記(図7、ステップS113)で、類似画像に対して自動トリミングを行なわない場合は、ユーザーは、「単一トリミング」を上下選択スイッチSW8・9で選択し確定スイッチSW10を押す。すると、制御部14は、後述のステップS141に処理を進める。   On the other hand, when automatic trimming is not performed on a similar image in the above (FIG. 7, step S113), the user selects “single trimming” with the up / down selection switches SW8 and 9 and presses the confirmation switch SW10. Then, the control part 14 advances a process to below-mentioned step S141.

次に、上記(図7、ステップS113)で、ユーザーが、「類似画像の自動トリミング」を選択し、制御部14が、類似の第2画像以降の画像の第2トリミング枠について設定する画面に移行(図8、ステップS115)した場合には、この図8(ステップS115)で、制御部14は、ユーザーに、類似画像に対しての第2トリミング枠の作成方法を選択させる。   Next, in the above (FIG. 7, step S113), the user selects “automatic trimming of similar images”, and the control unit 14 displays a screen for setting the second trimming frames of the images after the similar second image. In the case of transition (FIG. 8, step S115), in this FIG. 8 (step S115), the control unit 14 causes the user to select a method for creating the second trimming frame for the similar image.

たとえば、類似画像に対しての第2トリミング枠を、第1画像の第1トリミング枠と同じ縦横比としたい場合には、ユーザーは、「初めのトリミング枠と同じ縦横比で自動作成する」を選択し、第1画像の第1トリミング枠と同じ縦横比としなくてもよい場合は、ユーザーは、「縦横比は限定しないで自動作成する」を選択する。   For example, when it is desired to set the second trimming frame for the similar image to the same aspect ratio as that of the first trimming frame of the first image, the user selects “automatically create with the same aspect ratio as the first trimming frame”. When the selection is made and the aspect ratio is not necessarily the same as that of the first trimming frame of the first image, the user selects “automatically create without limiting the aspect ratio”.

後述のように、類似画像に対して自動トリミングを行なうと、第2トリミング枠の縦横比は、参照する第1画像に対する第1トリミング枠の縦横比と同じになるとは限らない。そのため、制御部14は、類似画像に対しても、ユーザーがトリミング設定した第1画像のトリミング縦横比と同じトリミングをするか否かを、この図8(ステップS115)で、ユーザーに選択させている。   As will be described later, when automatic trimming is performed on a similar image, the aspect ratio of the second trimming frame is not necessarily the same as the aspect ratio of the first trimming frame with respect to the first image to be referred to. Therefore, the control unit 14 allows the user to select whether or not to trim the similar image with the trimming aspect ratio of the first image trimmed by the user in FIG. 8 (step S115). Yes.

<類似画像の選択>
次に、図8で、ユーザーが、何れかを選択して確定スイッチSW10を押すと、制御部14は、自動トリミングを行なう類似画像を選択する画面に移行する(図9、ステップS117)。次に、ユーザーは、左右選択スイッチSW6・7と上下選択スイッチSW8・9で左右と上下の移動を行ないながら、自動トリミングをしたい画像を選択して、操作用スイッチSW11を押しながら確定スイッチSW10を押して、1つまたは複数の自動トリミング対象の類自画像を選択する。ユーザーは、選択が終了したら確定スイッチSW10を押す。
<Selection of similar images>
Next, in FIG. 8, when the user selects any one and presses the confirmation switch SW10, the control unit 14 shifts to a screen for selecting a similar image to be automatically trimmed (FIG. 9, step S117). Next, the user selects the image that he / she wants to automatically trim while moving left / right and up / down with the left / right selection switch SW6 / 7 and the up / down selection switch SW8 / 9, and presses the confirm switch SW10 while pressing the operation switch SW11. Press to select one or more self-images to be automatically trimmed. When the selection is completed, the user presses the confirmation switch SW10.

<類似画像の判定>
次に、第2トリミング枠設定部12は、ユーザーにより上記のように選択された自動トリミングすべき類似画像が、既にユーザーがトリミング指定した第1画像と類似であるか否かを判定する(ステップS119)。
<Determination of similar images>
Next, the second trimming frame setting unit 12 determines whether or not the similar image to be automatically trimmed selected by the user as described above is similar to the first image that the user has already designated for trimming (step). S119).

このステップS119で、第2トリミング枠設定部12は、類似でないと判定した場合には、その画像の選択を解除すると共に、「類似画像とは認識できない画像の選択を解除しました」というメッセージを表示する。第2トリミング枠設定部12は、「類似画像とは認識できない画像の選択を解除しました」というメッセージを表示する場合に、たとえば、図9の画面において、画像とともに、メッセージを表示してもよい。ユーザーは、表示されたメッセージを確認して再度確定スイッチSW10を押す(ステップS125,127)。この再度確定スイッチSW10が押されたことに応じて、第2トリミング枠設定部12は、処理を後述するステップS121に進める。   In step S119, if the second trimming frame setting unit 12 determines that the images are not similar, the second trimming frame setting unit 12 cancels the selection of the images and displays a message “The selection of images that cannot be recognized as similar images has been canceled”. indicate. The second trimming frame setting unit 12 may display the message together with the image on the screen of FIG. 9, for example, when displaying the message “The selection of an image that cannot be recognized as a similar image has been released”. . The user confirms the displayed message and presses the confirmation switch SW10 again (steps S125 and 127). In response to the depressing switch SW10 being pressed again, the second trimming frame setting unit 12 advances the process to step S121 described later.

上述した既にユーザーがトリミング指定した第1画像と類似であるか否かの判定、すなわち、類似画像の判定については、たとえば、第2トリミング枠設定部12は、第1画像で認識した顔数と、それぞれの指定された類似画像の顔数を比較し(ステップS119)、顔数が異なっている画像があるか否かにより判定する。また、この類似画像の判定は、顔数が同一であることで行なう他、類似画像での各顔の距離と、第1画像での対応する顔距離との差が一定値以内であるか否かを判定することにより、判定してもよい。   For example, the second trimming frame setting unit 12 determines whether the image is similar to the first image already specified by the user for trimming, that is, the determination of the similar image. Then, the number of faces of each designated similar image is compared (step S119), and a determination is made based on whether there is an image with a different number of faces. In addition, the determination of the similar image is performed based on the same number of faces, and whether or not the difference between the distance between each face in the similar image and the corresponding face distance in the first image is within a certain value. It may be determined by determining.

上述したステップS119で、第2トリミング枠設定部12は、類似であると判定された場合には、または、上述したステップS117で確定スイッチSW10が操作されたことに応じて、第2トリミング枠設定部12は、選択された類似画像に対して、以下に説明するステップS121からステップS139の処理により、第2トリミング枠を生成する。   If it is determined in step S119 that the second trimming frame setting unit 12 is similar, or if the confirmation switch SW10 is operated in step S117 described above, the second trimming frame setting unit 12 is set. The unit 12 generates a second trimming frame for the selected similar image by the processing from step S121 to step S139 described below.

<5.類似画像に対する自動トリミング(2)〜第1画像の第1トリミング枠の分析>
次に、第2画像以降の類似画像に対して自動トリミングを行なうために、第2トリミング枠設定部12は、まずユーザーが第1画像に対して設定した第1トリミング枠を、次のようにして分析する。
<5. Automatic trimming of similar images (2)-Analysis of the first trimming frame of the first image>
Next, in order to automatically trim similar images after the second image, the second trimming frame setting unit 12 first sets the first trimming frame set by the user for the first image as follows. To analyze.

1)図11に示すように、既知技術である顔認識を行ない、顔領域F1,F2,F3を認識する(ステップS121)。 1) As shown in FIG. 11, face recognition, which is a known technique, is performed to recognize face areas F1, F2, and F3 (step S121).

2) 第1トリミング枠左辺の分析:トリミング画面内で最も左にある認識された顔F1の幅F1Wと、その左端から第1トリミング枠までの距離SLを得て、値(SL÷F1W)を、トリミング左辺を定義する特性値とする(ステップS123)。 2) Analysis of the left side of the first trimming frame: Obtain the width F1W of the recognized leftmost face F1 in the trimming screen and the distance SL from the left edge to the first trimming frame, and set the value (SL ÷ F1W) The characteristic value defining the left side of trimming is used (step S123).

3) 第1トリミング枠右辺の分析:トリミング画面内で最も右にある認識された顔F3の幅F3Wと、その右端から第1トリミング枠までの距離SRを得て、値(SR÷F3W)を、トリミング右辺を定義する特性値とする(ステップS123)。 3) Analysis of the right side of the first trimming frame: Obtain the width F3W of the rightmost recognized face F3 in the trimming screen and the distance SR from the right edge to the first trimming frame, and set the value (SR ÷ F3W) The characteristic value defining the right side of trimming is set (step S123).

4) 第1トリミング枠上辺の分析:トリミング画面内で最も上にある認識された顔F2の高さF2Hと、その上端から第1トリミング枠までの距離SUを得て、値(SU÷F2H)を、トリミング上辺を定義する特性値とする(ステップS123)。 4) Analysis of the upper side of the first trimming frame: Obtain the height F2H of the recognized face F2 at the top of the trimming screen and the distance SU from the top edge to the first trimming frame, and obtain the value (SU ÷ F2H) Is a characteristic value that defines the upper side of trimming (step S123).

5) 第1トリミング枠下辺の分析:トリミング画面内で最も下にある認識された顔F3の高さF3Hと、その下端から第1トリミング枠までの距離SBを得て、値(SB÷F3H)を、トリミング下辺を定義する特性値とする(図12、ステップS123)。 5) Analysis of the lower side of the first trimming frame: the height F3H of the recognized face F3 at the bottom of the trimming screen and the distance SB from the lower end to the first trimming frame are obtained and the value (SB ÷ F3H) Is the characteristic value defining the trimming lower side (FIG. 12, step S123).

<6.類似画像に対する自動トリミング(3)〜特性値からの第2トリミング枠作成>
次に、上記で求めた4つの特性値を用いて、第2トリミング枠設定部12は、類似画像への自動トリミング設定を、次のようにして行なう(ステップS129)。
<6. Automatic Trimming for Similar Images (3)-Creation of Second Trimming Frame from Characteristic Values>
Next, using the four characteristic values obtained above, the second trimming frame setting unit 12 performs automatic trimming setting on a similar image as follows (step S129).

1) 自動トリミングを行なう類似画像に対し顔認識を行ない、顔領域F1,F2,F3を認識する。しかしながら、類似画像において認識される顔領域F1,F2,F3は、第1画像の場合とは、その位置や大きさが異なっている可能性がある。 1) Face recognition is performed on similar images to be automatically trimmed, and face areas F1, F2, and F3 are recognized. However, the face areas F1, F2, and F3 recognized in the similar image may have different positions and sizes from the case of the first image.

2) 第2トリミング枠左辺の設定:画面内において最も左にある認識された顔F1の幅F1W2と、上記特性値(SL÷F1W)から、次の(式1)により特性値SL2を求め、第2トリミング枠左辺を設定する。 2) Setting the left side of the second trimming frame: From the width F1W2 of the recognized leftmost face F1 in the screen and the above characteristic value (SL ÷ F1W), obtain the characteristic value SL2 by the following (Equation 1) Sets the left side of the second trimming frame.

SL2 = F1W2 × (SL÷F1W) ・・・ (式1)   SL2 = F1W2 × (SL ÷ F1W) (Equation 1)

3) 第2トリミング枠右辺の設定:画面内において最も右にある認識された顔F3の幅F3W2と、上記特性値(SR÷F3W)から、次の(式2)により特性値SR2を求め、第2トリミング枠右辺を設定する。 3) Setting the right side of the second trimming frame: From the width F3W2 of the recognized right face F3 in the screen and the above characteristic value (SR ÷ F3W), find the characteristic value SR2 by the following (Equation 2). Set the right side of the second trimming frame.

SR2 = F3W2 × (SR÷F3W) ・・・ (式2)   SR2 = F3W2 × (SR ÷ F3W) (Formula 2)

4) 第2トリミング枠上辺の設定:画面内において最も上にある認識された顔F2の高さF2H2と、上記特性値(SU÷F2H)から、次の(式3)により特性値SU2を求め、第2トリミング枠上辺を設定する。 4) Setting the upper side of the second trimming frame: From the height F2H2 of the recognized face F2 at the top of the screen and the above characteristic value (SU ÷ F2H), find the characteristic value SU2 by the following (Equation 3) The upper side of the second trimming frame is set.

SU2 = F2H2 × (SU÷F2H) ・・・ (式3)   SU2 = F2H2 × (SU ÷ F2H) (Equation 3)

5) 第2トリミング枠下辺の設定:画面内において最も下にある認識された顔F3の高さF3H2と、上記特性値(SB÷F3H)から、次の(式4)により特性値SB2を求め、第2トリミング枠下辺を設定する。 5) Setting the lower side of the second trimming frame: From the height F3H2 of the recognized face F3 at the bottom of the screen and the above characteristic value (SB ÷ F3H), obtain the characteristic value SB2 by the following (Equation 4) The lower side of the second trimming frame is set.

SB2 = F3H2 × (SB÷F3H) ・・・ (式4)   SB2 = F3H2 × (SB ÷ F3H) (Formula 4)

<7.類似画像に対する自動トリミング(4)〜第2トリミング枠の縦横比の修正>
次に、第2トリミング枠設定部12は、上述したステップS115で、自動トリミングで縦横比を保持することが選択されたか否かを判定する。すなわち、第2トリミング枠設定部12は、上述したステップS115で、「初めのトリミング枠と同じ縦横比で自動作成する」と、「縦横比は限定しないで自動作成する」とのうち、いずれを選択されたかを判定する。「初めのトリミング枠と同じ縦横比で自動作成する」が選択されている場合には、第2トリミング枠設定部12は、作成した第2トリミング枠を修正する(ステップS131,ステップS133)。
<7. Automatic trimming of similar images (4)-Correction of aspect ratio of second trimming frame>
Next, the second trimming frame setting unit 12 determines whether or not maintaining the aspect ratio by automatic trimming has been selected in step S115 described above. That is, in step S115 described above, the second trimming frame setting unit 12 selects either “automatically create with the same aspect ratio as the first trimming frame” or “automatically create without limiting the aspect ratio”. Determine if selected. When “automatically create with the same aspect ratio as the first trimming frame” is selected, the second trimming frame setting unit 12 corrects the created second trimming frame (steps S131 and S133).

ここでは、前述のように図8で、第2トリミング枠の指定として「初めのトリミング枠と同じ縦横比で自動作成する」を選択しているものとして説明する。この場合、類似画像で作成される第2トリミング枠も第1画像で指定した(図5)のと同様に六切の縦横比にしなければならない。しかしながら、上記のように自動作成した図12の第2トリミング枠(作成した初期の第2トリミング枠)は、結果的に六切の縦横比よりも横長や縦長になってしまっている可能性もある。この場合、横幅をつめて、六切の縦横比にする方法を以下に説明する(ステップS131,ステップS133)。   Here, as described above, in FIG. 8, it is assumed that “automatically create with the same aspect ratio as the first trimming frame” is selected as the designation of the second trimming frame. In this case, the second trimming frame created with a similar image must also have a six aspect ratio as specified in the first image (FIG. 5). However, there is a possibility that the second trimming frame of FIG. 12 automatically created as described above (initially created second trimming frame) is eventually longer or longer than the six-cut aspect ratio. is there. In this case, a method of filling the horizontal width to obtain a six aspect ratio will be described below (steps S131 and S133).

まず、第2トリミング枠設定部12は、上記で自動作成された初期の第2トリミング枠(幅W1・高さH1)の縦横比 (W1÷H1)と、六切の縦横比1.25とを比較し、初期の第2トリミング枠が縦長か横長かを判定する。この場合は横長と判定される。なお、この六切の縦横比は、たとえば、第2トリミング枠設定部12が、トリミング枠情報記憶部751から読み出している。そして、第2トリミング枠設定部12は、目標となる幅W2を、W2 = H1 × 1.25 により、算出して求める。この場合、左右合計で W1 - W2 だけ縮めてW2にすることになる。   First, the second trimming frame setting unit 12 compares the aspect ratio (W1 ÷ H1) of the initial second trimming frame (width W1 / height H1) automatically created above with a six-cut aspect ratio 1.25. Then, it is determined whether the initial second trimming frame is vertically long or horizontally long. In this case, it is determined to be horizontally long. The six-cut aspect ratio is read from the trimming frame information storage unit 751 by the second trimming frame setting unit 12, for example. Then, the second trimming frame setting unit 12 calculates and obtains the target width W2 by W2 = H1 × 1.25. In this case, the sum of left and right is reduced to W2 by W1-W2.

そこで、第2トリミング枠設定部12は、前期の最左の顔から左のスペースSL2と、最右の顔から右のスペースSR2の割合に応じてつめる量を左右で決めるとすれば、次の(式5)と(式6)により、新たな左右のスペースを求める。この様にして、第2トリミング枠設定部12は、作成した第2トリミング枠を、修正する。   Therefore, if the second trimming frame setting unit 12 determines the amount to be squeezed according to the ratio of the leftmost space to left space SL2 and the rightmost face to right space SR2 in the previous period, New left and right spaces are obtained from (Expression 5) and (Expression 6). In this way, the second trimming frame setting unit 12 corrects the created second trimming frame.

SL2’ = (W1 - W2) × (SL2 ÷ (SL2 + SR2)) ・・・ (式5)   SL2 ’= (W1-W2) x (SL2 ÷ (SL2 + SR2)) (Equation 5)

SR2’ = (W1 - W2) × (SR2 ÷ (SL2 + SR2)) ・・・ (式6)   SR2 ’= (W1-W2) x (SR2 ÷ (SL2 + SR2)) (Equation 6)

これとは逆に上下をつめなければならない場合も、第2トリミング枠設定部12は、同様に縦方向の上下スペースに対して補正をすることで、選択された縦横比となるように、第2トリミング枠を修正することができる。   On the other hand, when it is necessary to pinch up and down, the second trimming frame setting unit 12 similarly corrects the vertical space in the vertical direction so that the selected aspect ratio can be obtained. Two trimming frames can be modified.

<8.類似画像に対する自動トリミング(5)〜第2トリミング枠の4辺を決める別の例>
上記例では、第2トリミング枠設定部12は、ステップS131とS133とで、認識された顔の幅・高さをもとに特性値を求め、これとの比が等しくなるように上下左右の顔からのスペースを決めることで、第2トリミング枠を設定した。
この他の方法としては、第2トリミング枠設定部12は、図13のように認識された複数の顔の全体の幅(F13W)と高さ(F23H)から上記同様に特性値を求めてもよい。
更には、第2トリミング枠設定部12は、顔だけに限定せず、距離が顔と所定の範囲内にある部分を被写体と認識し、その幅・高さから特性値を求めてもよい。
<8. Automatic Trimming for Similar Images (5) to Another Example for Determining Four Sides of Second Trimming Frame>
In the above example, the second trimming frame setting unit 12 obtains a characteristic value based on the recognized face width / height in steps S131 and S133, and adjusts the upper, lower, left, and right sides so that the ratio is equal. The second trimming frame was set by determining the space from the face.
As another method, the second trimming frame setting unit 12 may obtain the characteristic value in the same manner as described above from the overall width (F13W) and height (F23H) of a plurality of faces recognized as shown in FIG. Good.
Further, the second trimming frame setting unit 12 may recognize a part whose distance is within a predetermined range from the face as a subject, and determine the characteristic value from the width / height, without being limited to the face.

<9.類似画像に対する自動トリミング(6)〜第2トリミング枠が画像終端に至った場合>
次に、第2トリミング枠設定部12は、作成した第2トリミング枠が第2画像の画像領域を超えているか否かを判定し、超えている場合には、第2トリミング枠が第2画像の画像領域内となるように、作成した第2トリミング枠を修正する(ステップS135,ステップS137)。
<9. Automatic trimming of similar images (6)-when the second trimming frame reaches the end of the image>
Next, the second trimming frame setting unit 12 determines whether or not the created second trimming frame exceeds the image area of the second image, and if so, the second trimming frame is set to the second image. The created second trimming frame is corrected so as to be within the image area (step S135, step S137).

たとえば、上記では、計算どおり第2トリミング枠を設定できたが、場合によっては特性値から計算した上下左右の第2トリミング枠のいずれかの辺が、画像自体から飛出してしまう場合、つまり計算した結果だけのスペースを顔からとれない場合もある。その場合は、第2トリミング枠設定部12は、画像外端を第2トリミング枠とする(ステップS135,ステップS137)。   For example, in the above description, the second trimming frame can be set as calculated. However, in some cases, when any one of the upper, lower, left, and right second trimming frames calculated from the characteristic value protrudes from the image itself, that is, the calculation. In some cases, it is not possible to take the space just for the result. In that case, the second trimming frame setting unit 12 sets the outer edge of the image as the second trimming frame (steps S135 and S137).

このように第2トリミング枠を画像外端に修正した場合、図8で「縦横比は限定しないで自動作成する」を選択している場合は問題ない。しかし、図8で「初めのトリミング枠と同じ縦横比で自動作成する」を選択している場合には、第2トリミング枠設定部12は、たとえば、図10での確認画面で「画像スペースが不足していたためトリミング枠の縦横比が変更された」旨のメッセージを表示する。   In this way, when the second trimming frame is corrected to the outer edge of the image, there is no problem if “automatically create without limiting the aspect ratio” is selected in FIG. However, when “automatically create with the same aspect ratio as the first trimming frame” is selected in FIG. 8, the second trimming frame setting unit 12 displays, for example, “Image space is displayed on the confirmation screen in FIG. 10. A message stating that “the aspect ratio of the trimming frame has been changed because it was insufficient” is displayed.

<10. 類似画像に対する自動トリミング(7)〜結果の確認・変更、トリミング作業の終了>
次に、上記により指定した類似画像に、第2トリミング枠が第2トリミング枠設定部12により設定され、制御部14は、第2トリミング枠が設定された類似画像を1画像ごとに確認する画面(図10、ステップS139)に、処理を移行する。
<10. Automatic trimming of similar images (7)-Confirmation / change of results and termination of trimming work>
Next, the second trimming frame is set by the second trimming frame setting unit 12 in the similar image specified above, and the control unit 14 is a screen for confirming the similar image with the second trimming frame set for each image. The process proceeds to (FIG. 10, step S139).

ユーザーは、第2トリミング枠がこのままで良ければ、確定スイッチSW10を押す。ユーザーは、もし、自動生成された第2トリミング枠を変更したい場合は、左右選択スイッチSW6・7と上下選択スイッチSW8・9で左右と上下の移動を、操作用スイッチSW11を押しながらコマンドダイヤル左回転スイッチSW13/右回転スイッチSW14で、第2トリミング枠の拡大・縮小を行なって変更し、確定スイッチSW10を押す。   If the second trimming frame is acceptable as it is, the user presses the confirmation switch SW10. If the user wants to change the automatically generated second trimming frame, use the left / right selection switch SW6 / 7 and the up / down selection switch SW8 / 9 to move left / right / up / down, while holding down the operation switch SW11, Using the rotation switch SW13 / right rotation switch SW14, the second trimming frame is enlarged / reduced and changed, and the confirmation switch SW10 is pressed.

更に自動トリミング設定をする次の類似画像がある場合は、第2トリミング枠は、次の類似画像に順に進み、同様の操作を行なう。自動トリミング設定した類似画像がなければ、第2トリミング枠は、一連の第2トリミング枠を設定する作業を終了し、次に、トリミング部13が、それぞれのトリミング枠で元画像を切出して新たなトリミング画像を生成し記録媒体(たとえば、メモリーカード72)に保存する(ステップS141)。   Further, when there is a next similar image to be automatically trimmed, the second trimming frame proceeds to the next similar image in order and performs the same operation. If there is no similar image set for automatic trimming, the second trimming frame finishes the operation of setting a series of second trimming frames, and then the trimming unit 13 cuts out the original image with each trimming frame and creates a new one. A trimmed image is generated and stored in a recording medium (for example, memory card 72) (step S141).

すなわち、トリミング部13は、第1トリミング枠で画像を切出してメモリーカード72のような記録媒体に保存するとともに、第2トリミング枠で類似画像を第2トリミング枠で切出して記録媒体に保存する。その後、制御部14は、たとえば、処理をステップS101に戻し、総合メニュー表示が復帰される(図2、ステップS143)。   That is, the trimming unit 13 cuts out an image with the first trimming frame and saves it on a recording medium such as the memory card 72, and cuts out a similar image with the second trimming frame and saves it on the recording medium. Thereafter, the control unit 14 returns the process to step S101, for example, and the general menu display is restored (FIG. 2, step S143).

以上説明したように、本実施形態による画像処理装置は以下のような動作を行う。
(1) 第1画像に対してユーザーが第1トリミング枠の指定を行なう。
(2) ユーザーは、被写体に対してのトリミング設定が第1画像とだいたい同じ様にしてトリミングしたい画像(類似画像)を選択し、自動トリミングの実行を指示する。
(3) 画像処理装置の第2トリミング枠設定部12は、第1画像において、シーン認識・顔認識などにより被写体を認識し、それとユーザーが設定した第1トリミング枠との位置関係を求め、それと同様になるように、ユーザーにより選択された第2以降の画像(類似画像)に対して第2トリミング枠を自動設定する。
(4) ユーザーは、第2以降の画像に対して自動的に設定された第2トリミング枠が適切であるかの確認および修正を行なう。
(5) ユーザーは、第2トリミング枠の確定、画像生成・保管 あるいはプリントを指示する。
(6) 画像処理装置は、上記指示に従い、画像生成、保管あるいはプリントを行なう。
As described above, the image processing apparatus according to the present embodiment performs the following operation.
(1) The user designates the first trimming frame for the first image.
(2) The user selects an image (similar image) to be trimmed in the same manner as the first image with trimming settings for the subject, and instructs execution of automatic trimming.
(3) The second trimming frame setting unit 12 of the image processing apparatus recognizes a subject in the first image by scene recognition / face recognition, and obtains a positional relationship between the subject and the first trimming frame set by the user. Similarly, the second trimming frame is automatically set for the second and subsequent images (similar images) selected by the user.
(4) The user checks and corrects whether the second trimming frame automatically set for the second and subsequent images is appropriate.
(5) The user instructs the confirmation of the second trimming frame, image generation / storage or printing.
(6) The image processing apparatus performs image generation, storage, or printing in accordance with the above instructions.

<効果>
上述した動作を実行する第2トリミング枠設定部12という構成を備えることにより、本実施形態による画像処理装置は、次のような効果を奏する。
<Effect>
With the configuration of the second trimming frame setting unit 12 that performs the above-described operation, the image processing apparatus according to the present embodiment has the following effects.

1.ユーザーは第1画像に対してだけ第1トリミング枠を設定すれば、その画像と類似の一連の画像に対し、被写体と第1トリミング枠の関係を第1画像と同様にして自動で第2トリミング枠が設定されるので、短時間で手間なく効率的にトリミング作業を行なうことができる。
2.自動トリミングの前に、第1画像と同じトリミング縦横比で行なうことを指定できるので、全てのトリミング対象画像に対して同じ縦横比でトリミングができる。
3.自動トリミングの前に、第1画像とは異なるトリミング縦横比で行なうことを指定できるので、各画像に最適なトリミングを行なうことができる。
4.自動トリミングされた第2トリミング枠を確認することと、更に必要に応じて第2トリミング枠を変更することができるので、ユーザーの希望に合ったトリミングを行なえる。
5.自動トリミング実行前に類似画像としてユーザーが選択した画像が、類似画像として扱えるかどうかをチェックするので、ユーザーが誤って第1画像とは類似でない画像を自動トリミング対象として選択しても、自動トリミングが不所望な結果となることを防止できる。
1. If the user sets the first trimming frame only for the first image, the relationship between the subject and the first trimming frame is automatically set in the same manner as the first image for a series of images similar to the first image. Since two trimming frames are set, the trimming operation can be performed efficiently in a short time without trouble.
2. Since automatic trimming can be specified to be performed with the same trimming aspect ratio as that of the first image, trimming can be performed with the same aspect ratio for all trimming target images.
3. Since automatic trimming can be specified to be performed with a trimming aspect ratio different from that of the first image, optimal trimming can be performed for each image.
4. Since the second trimming frame that has been automatically trimmed can be confirmed and the second trimming frame can be changed as necessary, trimming can be performed according to the user's wishes.
5. Since the image selected by the user as a similar image before execution of automatic trimming is checked whether it can be handled as a similar image, even if the user mistakenly selects an image that is not similar to the first image as the target for automatic trimming, Automatic trimming can be prevented from causing undesirable results.

このように、本実施形態による画像処理装置によれば、第1画像に対しての第1トリミング枠は、ユーザーの好み、指向、または、意思により設定される。たとえば、被写体の画面内の位置などが、ユーザーの好み、指向、または、意思により設定される。そして、第1トリミング枠に合わせて、ユーザーの好み、指向、または、意思が反映されて、第1トリミング枠の場合と同様に、第1画像と同様の被写体が撮像されている第2画像に対しても第2トリミング枠が設定される。   As described above, according to the image processing apparatus of the present embodiment, the first trimming frame for the first image is set according to the user's preference, orientation, or intention. For example, the position of the subject in the screen is set according to the user's preference, orientation, or intention. Then, in accordance with the first trimming frame, the user's preference, orientation, or intention is reflected, and in the same manner as in the first trimming frame, the same subject as the first image is captured in the second image. Again, the second trimming frame is set.

このようにして、本実施形態による画像処理装置は、第1画像における被写体に対してのトリミングにあわせて、第2画像にも同様のトリミングすることができるのみならず、ユーザーの好み、指向、または、意思を反映して、第2画像にも同様のトリミングすることができる。また、第1画像における被写体と第2画像における被写体とが類似しているか否かを判定することにより、第1画像における被写体と同様の被写体が撮像されている第2画像に対して、同様にトリミングすることができる。   In this way, the image processing apparatus according to the present embodiment can not only perform the same trimming on the second image in accordance with the trimming on the subject in the first image, but also the user's preference, orientation, Alternatively, the second image can be similarly trimmed to reflect the intention. Further, by determining whether or not the subject in the first image and the subject in the second image are similar, the same applies to the second image in which the same subject as the subject in the first image is captured. Can be trimmed.

<実施形態の応用>
1.実施形態では顔を認識して、この位置・寸法に基づいてユーザーが設定した第1画像に対する第1トリミング枠を分析し、それをもとに自動トリミングを行なっている。顔を認識する他にも、画像の色・形から被写体領域を認識してこれとユーザーが設定した第1トリミング枠の関係を分析し、これをもとに自動トリミング(第2トリミング枠の設定)をしてもよい。
2.実施形態では本発明のトリミング装置をカメラなどの撮像装置に搭載した例を示したが、この他に、PCで使用する画像編集アプリケーションソフトやプリンターに搭載することも可能で、その場合には操作インターフェースはそれぞれに適した形態で行なえばよい。
3.実施形態の第1画像への第1トリミング枠の設定では、第1トリミング枠は横長としているが、第1トリミング枠が横長か縦長かを最初にユーザーが選択するようにしてもよい。更には顔や被写体を認識してその配置から自動的に横長か縦長かを選択するようにしてもよい。
<Application of the embodiment>
1. In the embodiment, the face is recognized, the first trimming frame for the first image set by the user is analyzed based on the position / size, and automatic trimming is performed based on the first trimming frame. In addition to recognizing the face, the subject area is recognized from the color and shape of the image and the relationship between this and the first trimming frame set by the user is analyzed, and automatic trimming is performed based on this (setting of the second trimming frame) ).
2. In the embodiment, an example in which the trimming apparatus of the present invention is mounted on an imaging apparatus such as a camera is shown. However, in addition to this, it is also possible to mount it on image editing application software or a printer used on a PC. The operation interface may be performed in a form suitable for each.
3. In the setting of the first trimming frame to the first image of the embodiment, the first trimming frame is horizontally long, but the user may first select whether the first trimming frame is horizontally long or vertically long. Furthermore, it is also possible to recognize a face or a subject and automatically select either landscape or portrait from the layout.

なお、上記の説明においては、第2トリミング枠設定部12は、第1トリミング枠設定部11により第1画像に対して設定された第1トリミング枠の条件と同じ条件となるように、第2画像に対して第2トリミング枠を設定するものとして説明した。しかし、本実施形態は、これに限られるものではなく、第2トリミング枠設定部12は、第1画像に対して設定された第1トリミング枠の条件と同じ条件となるように、第2画像に対して第2トリミング枠を設定してもよい。   In the above description, the second trimming frame setting unit 12 has the second condition so that the second trimming frame setting unit 12 has the same condition as the first trimming frame condition set for the first image by the first trimming frame setting unit 11. It has been described that the second trimming frame is set for the image. However, the present embodiment is not limited to this, and the second trimming frame setting unit 12 has the same condition as the condition of the first trimming frame set for the first image. For this, a second trimming frame may be set.

たとえば、第1トリミング枠で既にトリミングされている第1画像がある場合、第2トリミング枠設定部12は、第1画像に対して設定された第1トリミング枠の条件と同じ条件となるように、第2画像に対して第2トリミング枠を設定してもよい。   For example, when there is a first image that has already been trimmed in the first trimming frame, the second trimming frame setting unit 12 has the same condition as the condition of the first trimming frame set for the first image. A second trimming frame may be set for the second image.

また、この第1トリミング枠で既にトリミングされている第1画像とは、実際には第1トリミング枠でトリミングされておらず、撮影されたままであってもよい。この場合、第2トリミング枠設定部12は、たとえば、第1トリミング枠は、第1画像全体に対応する枠であるとみなして、この第1画像に対して設定された第1トリミング枠の条件と同じ条件となるように、第2画像に対して第2トリミング枠を設定する。   In addition, the first image that has already been trimmed with the first trimming frame may not be trimmed with the first trimming frame, and may remain photographed. In this case, for example, the second trimming frame setting unit 12 regards the first trimming frame as a frame corresponding to the entire first image, and sets the conditions of the first trimming frame set for the first image. A second trimming frame is set for the second image so as to satisfy the same conditions as in FIG.

この場合でも、第2トリミング枠設定部12は、第1画像における被写体の画面内における位置が同じとなるように、第2画像をトリミングすることができる。そのために、第2トリミング枠設定部12を備える画像処理装置は、第1画像における被写体に対してのトリミングにあわせて、第2画像にも同様のトリミングすることができる。   Even in this case, the second trimming frame setting unit 12 can trim the second image so that the position of the subject in the first image is the same in the screen. Therefore, the image processing apparatus including the second trimming frame setting unit 12 can perform the same trimming of the second image in accordance with the trimming of the subject in the first image.

なお、上述した第2トリミング枠設定部12は、顔認識技術、または、色に基づいた被写体の検出技術により、画像内の被写体を検出している。このように、顔認識技術、または、色に基づいた被写体の検出技術により、画像内の被写体を検出する構成を、顔認識部または画像認識部という構成として、マイクロコンピュータ1または撮像装置が備えるようにしてもよい。そして、第2トリミング枠設定部12は、顔認識部または画像認識部という構成により、顔認識技術、または、色に基づいた被写体の検出技術により、画像内の被写体を検出してもよい。   The second trimming frame setting unit 12 described above detects a subject in the image by using a face recognition technique or a subject detection technique based on color. As described above, the microcomputer 1 or the imaging apparatus includes a configuration for detecting a subject in an image by using a face recognition technology or a subject detection technology based on color as a configuration of a face recognition unit or an image recognition unit. It may be. Then, the second trimming frame setting unit 12 may detect a subject in the image by using a face recognition technology or a subject detection technology based on a color by a configuration of a face recognition unit or an image recognition unit.

なお、上記の実施形態の説明においては、第2画像(類似画像)は、ユーザーにより選択されるものとして説明したが、これに限られるものではない。たとえば、第2トリミング枠設定部12は、ユーザーにより選択された第1画像に類似する第2画像を、画像が記憶されている記憶部(たとえば、メモリカード72)から選択し、当該選択した画像を、第2画像として、上述した処理を実行するようにしてもよい。このようにすることにより、ユーザーは、トリミングの対象とする画像を選択することなしに、第1画像と同様に第2画像に対して、トリミングすることができる。   In the description of the above embodiment, the second image (similar image) is described as being selected by the user, but the present invention is not limited to this. For example, the second trimming frame setting unit 12 selects a second image similar to the first image selected by the user from the storage unit (for example, the memory card 72) in which the image is stored, and the selected image May be executed as the second image. In this way, the user can trim the second image in the same manner as the first image without selecting an image to be trimmed.

なお、この第1画像に類似する第2画像の選択において、第2トリミング枠設定部12は、上述した顔数による判定以外にも、第1画像と第2画像との撮影時刻が連続している画像、または、撮影モードなどの撮影条件が同様に画像を、類似画像とするようにしてもよい。これらの撮影時間および撮影モードなどの撮影条件は、たとえば、画像が撮像される場合に、撮像装置により画像に付加される情報である。   In the selection of the second image similar to the first image, the second trimming frame setting unit 12 continuously captures the shooting times of the first image and the second image in addition to the determination based on the number of faces described above. An image having a similar image or an image having the same shooting condition such as a shooting mode may be used as a similar image. The shooting conditions such as the shooting time and the shooting mode are information added to the image by the imaging device when the image is taken, for example.

なお、上記に図1から図14を用いて説明した実施形態においては、画像処理装置を撮像装置が有する場合について説明したが、これに限られるものではなく、画像処理装置としての機能をコンピュータ上で実現するようにしてもよい。すなわち、図1における画像処理装置が有する第1トリミング枠設定部11、第2トリミング枠設定部12、トリミング部13、および、制御部14という各構成は、専用のハードウェアにより実現されるものであってもよく、また、この各構成はメモリーおよびCPU(中央演算装置)により構成され、この各構成の機能を実現するためのプログラムをメモリーにロードして実行することによりその機能を実現させるものであってもよい。   In the embodiment described above with reference to FIGS. 1 to 14, the case where the imaging apparatus includes the image processing apparatus has been described. However, the present invention is not limited to this, and the function as the image processing apparatus is performed on the computer. You may make it implement | achieve. That is, each configuration of the first trimming frame setting unit 11, the second trimming frame setting unit 12, the trimming unit 13, and the control unit 14 included in the image processing apparatus in FIG. 1 is realized by dedicated hardware. Each of these components may be configured by a memory and a CPU (central processing unit), and a program for realizing the function of each component is loaded into the memory and executed to realize the function. It may be.

また、図1における画像処理装置が有する各構成の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより画像処理装置としての機能を実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。   1 is recorded in a computer-readable recording medium, and the program recorded in the recording medium is read into a computer system and executed. Thus, the function as an image processing apparatus may be realized. Here, the “computer system” includes an OS and hardware such as peripheral devices.

また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリーのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよい。
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, it also includes those that hold a program for a certain period of time, such as a volatile memory inside a computer system serving as a server or client in that case. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

11…第1トリミング枠設定部、12…第2トリミング枠設定部   11 ... 1st trimming frame setting part, 12 ... 2nd trimming frame setting part

Claims (10)

第1画像の被写体と第2画像の被写体が類似しているか否かを判定する判定手段と、
前記判定手段により前記第2画像の被写体が前記第1画像の被写体に類似していると判定された場合には、前記第1画像に対して設定された第1トリミング枠の条件と同じ条件で前記第2画像に対する第2トリミング枠を自動的に設定するトリミング枠設定部と、
を備えることを特徴とする画像処理装置。
Determination means for determining whether the subject of the first image and the subject of the second image are similar;
When the determination unit determines that the subject of the second image is similar to the subject of the first image, the same condition as the first trimming frame condition set for the first image is used. a belt trimming frame setting unit automatically sets the second trimming frame against the second image,
An image processing apparatus comprising:
前記判定手段は、
前記第1画像の被写体と前記第2画像の被写体とが類似しているか否かを、前記第1画像および前記第2画像に含まれる被写体の顔数に基づいて判定する
ことを特徴とする請求項1に記載の画像処理装置。
The determination means includes
The determination as to whether the subject of the first image and the subject of the second image are similar based on the number of faces of the subject included in the first image and the second image. Item 8. The image processing apparatus according to Item 1.
前記判定手段は、
前記第1画像または前記第2画像に対する顔認識技術、または、色に基づいた被写体の検出技術により、前記第1画像の被写体と前記第2画像の被写体とが類似しているか否かを判定する
ことを特徴とする請求項1または請求項2に記載の画像処理装置。
The determination means includes
It is determined whether the subject of the first image and the subject of the second image are similar by a face recognition technology for the first image or the second image or a subject detection technology based on color. The image processing apparatus according to claim 1 , wherein the image processing apparatus is an image processing apparatus.
前記トリミング枠設定部は、The trimming frame setting unit
前記第1トリミング枠の画面内における位置と、前記第1画像の被写体の画面内における位置とに基づいた特性値を前記条件として、前記第2画像に対する第2トリミング枠を自動的に設定する  The second trimming frame for the second image is automatically set using the characteristic value based on the position of the first trimming frame on the screen and the position of the subject of the first image on the screen as the condition.
ことを特徴とする請求項1から請求項3のいずれか一項に記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
前記特性値とは、前記第1画像の被写体に対する前記第1トリミング枠の画面内における位置の比率であって、
記トリミング枠設定部は、
前記第1画像の被写体に対する前記第1トリミング枠の画面内における位置の比率を算出し、当該算出した位置の比率を前記条件として、前記第2画像に対して前記第2トリミング枠を自動的に設定する、
ことを特徴とする請求項4に記載の画像処理装置。
The characteristic value is the ratio of the position of the first trimming frame in the screen to the subject of the first image,
Prior to Quito trimming frame setting section,
Calculating a ratio of the position in the first trimming frame screen of respect to the Utsushitai of the first image, the ratio of the position the calculated as the condition, automatically the second trimming frame relative to the second image To set
The image processing apparatus according to claim 4 .
記トリミング枠設定部には、
前記第2画像に対して前記第2トリミング枠を設定する場合に、前記第1トリミング枠の縦横比と同じとなるように前記第2トリミング枠の縦横比を設定するか否かが選択されて設定される、
ことを特徴とする請求項1から請求項のいずれか1項に記載の画像処理装置。
The front Quito trimming frame setting section,
When setting the second trimming frame for the second image, it is selected whether to set the aspect ratio of the second trimming frame to be the same as the aspect ratio of the first trimming frame. Set,
The image processing apparatus according to any one of claims 1 to 5, characterized in that.
記トリミング枠設定部は、
前記第1トリミング枠の縦横比と同じとなるように前記第2トリミング枠の縦横比を設定するように選択れている場合には、前記第2画像に対して前記第2トリミング枠を設定する場合に、前記第1トリミング枠の縦横比と同じとなるように前記第2トリミング枠を自動的に設定する、
ことを特徴とする請求項に記載の画像処理装置。
Prior to Quito trimming frame setting section,
If the aspect ratio of the second trimming frame is selected to be the same as the aspect ratio of the first trimming frame, the second trimming frame is set for the second image. Automatically setting the second trimming frame to be the same as the aspect ratio of the first trimming frame,
The image processing apparatus according to claim 6 .
記トリミング枠設定部は、
前記第1画像に対して設定された前記第1トリミング枠の条件と同じ条件となるように、前記第2画像に対して前記第2トリミング枠を設定する場合に、前記第2トリミング枠が前記第2画像の画像領域外に設定される場合には、当該前記第2トリミング枠を前記第2画像の画像領域内に自動的に設定する、
ことを特徴とする請求項1から請求項のいずれかに1項に記載の画像処理装置。
Prior to Quito trimming frame setting section,
When setting the second trimming frame for the second image so that the same condition as the first trimming frame set for the first image is satisfied, the second trimming frame is When the second trimming frame is set outside the image area of the second image, the second trimming frame is automatically set within the image area of the second image;
That the image processing apparatus according to item 1 to any of claims 1 to 7, characterized in.
請求項1から請求項のいずれか1項に記載の画像処理装置、
を備えることを特徴とする撮像装置。
The image processing apparatus according to any one of claims 1 to 8 ,
An imaging apparatus comprising:
画像処理装置としてのコンピュータに、
第1画像の被写体と第2画像の被写体が類似しているか否かを判定する判定手順と、
前記判定手順により前記第2画像の被写体が前記第1画像の被写体に類似していると判定された場合には、前記第1画像に対して設定された第1トリミング枠の条件と同じ条件で前記第2画像に対する第2トリミング枠を自動的に設定するトリミング枠設定手順
を実行させるための画像処理プログラム。
In a computer as an image processing device,
A determination procedure for determining whether the subject of the first image and the subject of the second image are similar;
If it is determined by the determination procedure that the subject of the second image is similar to the subject of the first image, the same condition as the condition of the first trimming frame set for the first image is used. an image processing program for executing the automatic setting to belt trimming frame setting procedure of the second trimming frame against the second image.
JP2009267464A 2009-11-25 2009-11-25 Image processing apparatus, imaging apparatus, and image processing program Expired - Fee Related JP5482142B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009267464A JP5482142B2 (en) 2009-11-25 2009-11-25 Image processing apparatus, imaging apparatus, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009267464A JP5482142B2 (en) 2009-11-25 2009-11-25 Image processing apparatus, imaging apparatus, and image processing program

Publications (2)

Publication Number Publication Date
JP2011114463A JP2011114463A (en) 2011-06-09
JP5482142B2 true JP5482142B2 (en) 2014-04-23

Family

ID=44236496

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009267464A Expired - Fee Related JP5482142B2 (en) 2009-11-25 2009-11-25 Image processing apparatus, imaging apparatus, and image processing program

Country Status (1)

Country Link
JP (1) JP5482142B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7230396B2 (en) 2018-09-25 2023-03-01 富士フイルムビジネスイノベーション株式会社 Image processing program, image processing device, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006100987A (en) * 2004-09-28 2006-04-13 Canon Inc Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP2011114463A (en) 2011-06-09

Similar Documents

Publication Publication Date Title
EP1429290B1 (en) Image correction apparatus and image pickup apparatus
JP6112819B2 (en) Electronic device, driving method and program
US8520112B2 (en) Imaging device, display control method, and program
KR101786049B1 (en) A digital photographing apparatus, a method for controlling the same, and a computer-readable storage medium for performing the method
US8284264B2 (en) Imaging apparatus, method, and program
US7769287B2 (en) Image taking apparatus and image taking method
US7432972B2 (en) Method of controlling digital photographing apparatus, and digital photographing apparatus utilizing the method
KR20080072547A (en) Mobile device with display function
JP2007028536A (en) Digital camera
US9648242B2 (en) Display control apparatus, display control method, program, and image pickup apparatus for assisting a user
JP6755394B2 (en) Image pickup device, control method of image pickup device, and control program of image pickup device
US20050083350A1 (en) Digital camera image editor
JP2009111635A (en) Electronic imaging device
JP5544736B2 (en) Image processing apparatus and image processing program
JP4498116B2 (en) Imaging apparatus and raw data processing method
JP5482142B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP4457929B2 (en) Imaging device
EP1841210A1 (en) Imaging device and imaging system
JP2009118084A (en) Digital camera
JP5132184B2 (en) Digital camera, white balance adjustment method and program
JP4336186B2 (en) Image correction apparatus and imaging apparatus
JP6925827B2 (en) Image processing device and image processing method
JP6279120B2 (en) Electronic device, driving method and program
JP2000152039A (en) Photographing sequence control device and method and recording medium recording photographing sequence control program
JP5878063B2 (en) Imaging apparatus, imaging method, and imaging program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121031

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130510

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130611

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130809

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140121

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140203

R150 Certificate of patent or registration of utility model

Ref document number: 5482142

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees