JP4725351B2 - Image processing apparatus, image processing method, and image processing program - Google Patents

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

Info

Publication number
JP4725351B2
JP4725351B2 JP2006042550A JP2006042550A JP4725351B2 JP 4725351 B2 JP4725351 B2 JP 4725351B2 JP 2006042550 A JP2006042550 A JP 2006042550A JP 2006042550 A JP2006042550 A JP 2006042550A JP 4725351 B2 JP4725351 B2 JP 4725351B2
Authority
JP
Japan
Prior art keywords
image
image data
area
circle
face
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.)
Active
Application number
JP2006042550A
Other languages
Japanese (ja)
Other versions
JP2007221675A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006042550A priority Critical patent/JP4725351B2/en
Publication of JP2007221675A publication Critical patent/JP2007221675A/en
Application granted granted Critical
Publication of JP4725351B2 publication Critical patent/JP4725351B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To improve the appearance of a printed result in printing to a circular printable area. <P>SOLUTION: The image processor generates image data corresponding to a circular area. The image processor comprises an object area stipulation part for stipulating an object area segmented by two line segments from the circular area, an image acquisition part for acquiring first image data, a feature area information acquisition part, an image arrangement part, and an image generation part. The feature area information acquisition part acquires a feature area information specifying a position and a size in an image at least in the feature area of the first image data. The image arrangement part adjusts the position and size to the object area of the image indicated by the first image data by using the feature area information, and arranges the image indicated by the first image data in the object area so that at least the feature area is included inside the object area. The image generation part generates second image data corresponding to the object area on the basis of the arranged result. <P>COPYRIGHT: (C)2007,JPO&amp;INPIT

Description

本発明は、画像処理に関し、特に円領域に対応する画像データの生成に関する。   The present invention relates to image processing, and more particularly to generation of image data corresponding to a circular region.

家庭向けのインクジェットプリンタをはじめとするパーソナルユースの印刷装置が普及している。かかる印刷装置には、DVD−R、CD−Rをはじめとする円形の電子記録媒体のレーベル面に、直接印刷を行う機能を備えるものがある。このようなレーベル印刷では、印刷可能領域は、円形であるのに対して、印刷しようとする画像データ、例えば、デジタルカメラで生成された画像データは、矩形であることが多い。このため、印刷に用いる画像データを、円形である印刷可能領域に対応させるため、印刷に用いる画像データに対して、加工を加える画像処理技術が知られている(例えば、特許文献1)。   Personal use printing devices such as home-use inkjet printers have become widespread. Some of such printing apparatuses have a function of directly printing on a label surface of a circular electronic recording medium such as a DVD-R and a CD-R. In such label printing, the printable area is circular, whereas image data to be printed, for example, image data generated by a digital camera is often rectangular. For this reason, an image processing technique is known in which image data used for printing is processed with respect to image data used for printing in order to correspond to a circular printable area (for example, Patent Document 1).

この画像処理技術では、矩形画像の全体が、円形の印刷可能領域に収まるように、矩形画像の画像データに縮小処理を施すことや、矩形画像を円形の印刷可能領域に合わせて切り抜くために、矩形画像の画像データにトリミング処理を施こすことが行われている。   In this image processing technique, in order to reduce the image data of the rectangular image so that the entire rectangular image fits in the circular printable area, or to cut out the rectangular image in accordance with the circular printable area, Trimming processing is performed on image data of a rectangular image.

特開2004−122583号公報JP 2004-122583 A 特開2002−292939号公報JP 2002-292939 A

しかしながら、上記従来技術では、印刷しようとする矩形画像の特徴的な領域(例えば、主要被写体が写っている領域)について考慮していない。このため、上記従来技術では、縮小処理によって特徴的な領域が小さくなりすぎたり、トリミング処理によって特徴的な領域が欠けてしまったりするおそれがあり、印刷結果の見映えが悪い場合があった。   However, the above-described conventional technology does not consider a characteristic area (for example, an area in which a main subject is captured) of a rectangular image to be printed. For this reason, in the prior art, there is a possibility that the characteristic area becomes too small due to the reduction process, or the characteristic area may be lost due to the trimming process, and the appearance of the print result may be poor.

このような課題は、DVD−R、CD−Rをはじめとする円形の電子記録媒体のレーベル面に印刷を行う場合に限らず、矩形の画像データを用いて、円形の印刷可能領域に対して印刷を実行する場合に、共通する課題であった。   Such a problem is not limited to printing on a label surface of a circular electronic recording medium such as a DVD-R or CD-R, but using a rectangular image data for a circular printable area. This is a common problem when performing printing.

本発明は、上記課題を解決するためになされたものであり、円形の印刷可能領域に対して印刷を実行する場合において、印刷結果の見映えを向上することを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to improve the appearance of a print result when printing is performed on a circular printable area.

上記課題の少なくとも一部を解決するため、本発明の第1の態様は、第1の径を有する第1の円を外形とする円領域に対応する画像データを生成する画像処理装置を提供する。第1の態様に係る画像処理装置は、対象領域規定部と、画像取得部と、領域情報取得部と、画像配置部と、画像生成部と、を備える。前記対象領域規定部は、前記円領域から前記第1の円の中心と前記第1の円の円周上の2点とをそれぞれ結ぶ異なる2本の線分により切り出される対象領域を規定する。前記画像取得部は、第1の画像データを取得する。前記領域情報取得部は、前記第1の画像データを解析して、前記第1の画像データが表す画像の中の人物の顔を含む顔領域に関する少なくとも画像における位置および大きさを特定する領域情報を取得する。前記画像配置部は、前記領域情報を用いて、前記第1の画像データが表す画像の前記対象領域に対する位置および大きさの少なくとも一方を調整し、前記顔領域が前記対象領域内に含まれるとともに前記顔領域の前記対象領域に対する面積比が所定値以上となるように、前記第1の画像データが表す画像を前記対象領域に配置する。前記画像生成部は、前記配置結果に基づいて、前記第1の画像データを加工することにより、前記対象領域に対応する第2の画像データを生成する。 In order to solve at least a part of the above problem, a first aspect of the present invention provides an image processing apparatus that generates image data corresponding to a circular region having a first circle having a first diameter as an outer shape. . The image processing apparatus according to the first aspect includes a target region defining unit, an image acquisition unit, a face region information acquisition unit, an image placement unit, and an image generation unit. The target area defining unit defines a target area cut out from the circular area by two different line segments respectively connecting a center of the first circle and two points on the circumference of the first circle. The image acquisition unit acquires first image data. The face-area information obtaining unit, the analyzes of the first image data, for specifying the position and size of at least the image relating to a face region including the face of a person in the first image data represents the image face Get region information. The image placement unit adjusts at least one of a position and a size of the image represented by the first image data with respect to the target area using the face area information, and the face area is included in the target area. At the same time, the image represented by the first image data is arranged in the target area so that the area ratio of the face area to the target area is equal to or greater than a predetermined value . The image generation unit generates second image data corresponding to the target region by processing the first image data based on the arrangement result.

第1の態様に係る画像処理装置によれば、第1の画像データが表す画像の中の顔領域が含まれるように、円領域に対応する画像データが生成される。従って、生成された円領域に対応する画像データが表す画像(生成画像)において、領域が欠けてしまうことがなく、印刷結果の見映えを向上することができる。 According to the image processing apparatus according to the first aspect, the image data corresponding to the circular area is generated so that the face area in the image represented by the first image data is included. Accordingly, the face area is not lost in the image (generated image) represented by the image data corresponding to the generated circular area, and the appearance of the print result can be improved.

第1の態様に係る画像処理装置において、前記第1の画像データが表す画像の大きさの調整は、前記特徴領域が前記対象領域内に含まれる範囲内で、前記第1の画像データが表す画像を拡大することを含んでも良い。こうすれば、生成画像において、特徴領域が小さくなり過ぎることがなく、印刷結果の見映えをさらに向上することができる。   In the image processing device according to the first aspect, the adjustment of the size of the image represented by the first image data is represented by the first image data within a range in which the feature region is included in the target region. It may include enlarging the image. In this way, the feature area in the generated image does not become too small, and the appearance of the print result can be further improved.

第1の態様に係る画像処理装置において、前記第1の画像データが表す画像の大きさの調整は、前記特徴領域が前記対象領域内に含まれるように、前記第1の画像データが表す画像を縮小することを含んでも良い。こうすれば、第1の画像データが表す画像を縮小して、確実に特徴領域を対象領域内に含むことができる。   In the image processing device according to the first aspect, the size of the image represented by the first image data is adjusted by the image represented by the first image data so that the feature region is included in the target region. May be included. In this way, the image represented by the first image data can be reduced and the feature region can be reliably included in the target region.

第1の態様に係る画像処理装置において、前記円領域は、前記第1の円と同心であり、前記第1の径より小さい第2の径を有する第2の円と、前記第1の円とにより規定される領域であっても良い。   In the image processing device according to the first aspect, the circular region is concentric with the first circle, and has a second circle having a second diameter smaller than the first diameter, and the first circle. It may be a region defined by

第1の態様に係る画像処理装置において、前記第1の画像データが表す画像の位置および大きさの調整は、前記対象領域内において、前記特徴領域の前記第2の円側の端部が前記第2の円上に実質的に位置し、前記特徴領域の前記第1の円側の端部が前記第1の円上に実質的に位置するように実行されても良く、前記特徴領域情報と共に、前記第1の径と、前記第2の径とを用いて、実行されても良い。こうすれば、第1の円と、第2の円とにより規定する円領域に対して、第1の画像データが表す画像を見映え良く配置することができる。   In the image processing device according to the first aspect, the adjustment of the position and size of the image represented by the first image data is performed in such a manner that, in the target region, the end of the feature region on the second circle side is The feature region information may be executed so as to be substantially located on a second circle and an end of the feature region on the first circle side substantially located on the first circle. At the same time, it may be executed using the first diameter and the second diameter. By so doing, it is possible to arrange the image represented by the first image data in a good-looking manner in a circular area defined by the first circle and the second circle.

第1の態様に係る画像処理装置において、前記第1の画像データが表す画像の位置の調整は、前記第1の円と同心であり、前記第2の径より大きく前記第1の径より小さい第3の径を有する第3の円を基準として実行されても良い。こうすれば、第1の円と、第2の円とにより規定する円領域に対して、第1の画像データが表す画像の特徴領域を見映えの良い位置に配置することができる。   In the image processing apparatus according to the first aspect, the adjustment of the position of the image represented by the first image data is concentric with the first circle and is larger than the second diameter and smaller than the first diameter. It may be executed with reference to a third circle having a third diameter. In this way, it is possible to arrange the feature region of the image represented by the first image data in a position where the image is represented with respect to the circular region defined by the first circle and the second circle.

第1の態様に係る画像処理装置において、画像配置部は、前記第1の画像データが表す画像を前記対象領域に配置する際に、前記第1の画像データが表す画像の位置および大きさの少なくとも一方に加えて、前記第1の画像データが表す画像の角度を調整しても良い。こうすれば、円領域に対して、第1の画像データが表す画像を、さらに見映え良く配置することができる。   In the image processing device according to the first aspect, the image placement unit determines the position and size of the image represented by the first image data when placing the image represented by the first image data in the target region. In addition to at least one, the angle of the image represented by the first image data may be adjusted. In this way, the image represented by the first image data can be arranged with a better appearance in the circular area.

第1の態様に係る画像処理装置において、前記特徴領域情報取得部は、前記第1の画像データに関連付けられている付属情報の中から前記特徴領域情報を取得しても良い。こうすれば、容易に特徴領域情報を取得することができる。   In the image processing device according to the first aspect, the feature region information acquisition unit may acquire the feature region information from the attached information associated with the first image data. In this way, the feature area information can be easily acquired.

第1の態様に係る画像処理装置において、前記特徴領域情報取得部は、前記第1の画像データを解析して、前記特徴領域を検出することによって、前記特徴領域情報を取得しても良い。こうすれば、特徴領域情報を、第1の画像データを解析することにより取得することができる。   In the image processing device according to the first aspect, the feature region information acquisition unit may acquire the feature region information by analyzing the first image data and detecting the feature region. In this way, the feature area information can be acquired by analyzing the first image data.

第1の態様に係る画像処理装置において、前記特徴領域は、所定の被写体を示す領域であっても良く、例えば、人物の顔を示す領域であっても良い。   In the image processing apparatus according to the first aspect, the feature region may be a region indicating a predetermined subject, for example, a region indicating a person's face.

第1の態様に係る画像処理装置において、前記円領域は、電子情報を記録するための円形の記録媒体のレーベル面に対応する領域であっても良い。   In the image processing apparatus according to the first aspect, the circular area may be an area corresponding to a label surface of a circular recording medium for recording electronic information.

なお、本発明は、種々の態様で実現することが可能であり、上述した画像処理装置や、画像処理部を備えて印刷装置のような装置発明に加えて、例えば、円領域に対応する画像データを生成する方法のような方法発明として実現することができる。あるいは、かかる装置または方法を構築するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、そのコンピュータプログラムを含み搬送波内に具現化されたデータ信号、等の態様で実現することができる。   Note that the present invention can be realized in various modes. For example, an image corresponding to a circular region is added to the image processing apparatus described above and an apparatus invention including an image processing unit such as a printing apparatus. It can be realized as a method invention such as a method of generating data. Alternatively, the present invention can be realized in the form of a computer program for constructing such an apparatus or method, a recording medium storing the computer program, a data signal including the computer program and embodied in a carrier wave, and the like.

A.実施例:
・画像処理装置の構成:
次に、本発明の実施の形態を実施例に基づき説明する。図1は、本実施例に係る画像処理装置として機能するプリンタの概略構成を示すブロック図である。図2は、本実施例におけるプリンタの印刷部の概略構成を示す説明図である。このプリンタ200を用いることにより、ユーザは、選択した画像データを用いて、DVD−R、CD−Rをはじめとする円形の電子記録媒体のレーベル面に対して、容易に印刷を行うことができる。
A. Example:
・ Configuration of image processing device:
Next, embodiments of the present invention will be described based on examples. FIG. 1 is a block diagram illustrating a schematic configuration of a printer that functions as an image processing apparatus according to the present embodiment. FIG. 2 is an explanatory diagram illustrating a schematic configuration of a printing unit of the printer according to the present exemplary embodiment. By using this printer 200, the user can easily print on the label surface of a circular electronic recording medium such as a DVD-R or CD-R using the selected image data. .

プリンタ200は、CPU210と、ROMやRAMなどの内部記憶装置220と、外部記憶装置250と、液晶パネルなどの表示部260と、ユーザからの要求を受け付けるための操作ボタンを備えたパネルなどの操作部270と、印刷部280と、を備えている。   The printer 200 operates a CPU 210, an internal storage device 220 such as a ROM and a RAM, an external storage device 250, a display unit 260 such as a liquid crystal panel, and a panel having an operation button for receiving a request from a user. A printing unit 270 and a printing unit 280.

外部記憶装置250は、画像ファイルを保存しておくための記憶装置であり、メモリカードや、CD−Rなどの脱着可能な記録媒体を用いる装置であっても良いし、内蔵HDD(ハードディスクドライブ)装置であっても良い。外部記憶装置250には、ユーザによって格納された複数の画像ファイル252、例えば、デジタルカメラを用いて生成された複数の画像ファイルが格納されている。各画像ファイル252は、例えば、デジタルカメラ用画像ファイルフォーマット規格(Exif)に従ったファイル構造を有し、矩形画像を表す画像データと、画像データに関連付けられた付属情報を含んでいる。矩形画像を表す画像データは、例えば、JPEG形式、TIFF形式、GIF形式、BMP形式などの保存形式で、画像ファイル252に格納されている。   The external storage device 250 is a storage device for storing image files, and may be a device using a memory card, a removable recording medium such as a CD-R, or a built-in HDD (hard disk drive). It may be a device. The external storage device 250 stores a plurality of image files 252 stored by the user, for example, a plurality of image files generated using a digital camera. Each image file 252 has, for example, a file structure in accordance with the digital camera image file format standard (Exif), and includes image data representing a rectangular image and attached information associated with the image data. Image data representing a rectangular image is stored in the image file 252 in a storage format such as a JPEG format, a TIFF format, a GIF format, or a BMP format.

印刷部280は、実際に印刷を行う機構部分であり、本実施例では、例えば、シアン(C)、マゼンタ(M)、イエロー(Y)、ブラック(K)の4色の色インクを印刷媒体上に噴射してドットパターンを形成することによって画像を形成するインクジェット方式の印刷部である。図2に示すように、印刷部280は、キャリッジガイド軸13に摺動可能に取り付けられたキャリッジ10を備えている。キャリッジ10には、印刷媒体にインクを吐出する記録ヘッド11が搭載されている。図示は省略するが、印刷部280は、記録ヘッド11を駆動してインクの吐出およびドット形成を行う機構と、このキャリッジ10をキャリッジガイド軸13の軸方向(図2:X方向)に往復動させる機構と、トレイTを図2におけるY方向に搬送する機構とを備えている。トレイTは、図2に示すように矩形板形状を有している。トレイTの略中央部には、DVD−RやCD−Rなどの円形の電子記録媒体20を嵌合するための円形の凸部である嵌合部16が設けられている。印刷部280は、後述する印刷制御部240の制御に従い、上述した各機構を協働して動作させることにより、電子記録媒体20の上の印刷可能領域(後述)に印刷を実行することができる。   The printing unit 280 is a mechanism portion that actually performs printing. In this embodiment, for example, four color inks of cyan (C), magenta (M), yellow (Y), and black (K) are used as a printing medium. It is an ink jet type printing unit that forms an image by spraying upward to form a dot pattern. As shown in FIG. 2, the printing unit 280 includes a carriage 10 that is slidably attached to the carriage guide shaft 13. A recording head 11 that discharges ink onto a print medium is mounted on the carriage 10. Although not shown, the printing unit 280 reciprocates the carriage 10 in the axial direction (FIG. 2: X direction) of the carriage guide shaft 13 and the mechanism for driving the recording head 11 to eject ink and forming dots. And a mechanism for transporting the tray T in the Y direction in FIG. The tray T has a rectangular plate shape as shown in FIG. A fitting portion 16, which is a circular convex portion for fitting a circular electronic recording medium 20 such as a DVD-R or a CD-R, is provided at a substantially central portion of the tray T. The printing unit 280 can execute printing in a printable area (described later) on the electronic recording medium 20 by operating the above-described mechanisms in cooperation under the control of the printing control unit 240 described later. .

内部記憶装置220(図1)には、画像処理部230として機能するコンピュータプログラムと、印刷制御部240として機能するコンピュータプログラムが格納されている。なお、画像処理部230および印刷制御部240の機能は、CPU210がコンピュータプログラムを実行することによって実現される。   The internal storage device 220 (FIG. 1) stores a computer program that functions as the image processing unit 230 and a computer program that functions as the print control unit 240. Note that the functions of the image processing unit 230 and the print control unit 240 are realized by the CPU 210 executing a computer program.

画像処理部230は、対象領域規定部231と、画像取得部232と、顔領域情報取得部233と、画像配置部234と、画像生成部235と、を備えている。   The image processing unit 230 includes a target region defining unit 231, an image acquisition unit 232, a face region information acquisition unit 233, an image placement unit 234, and an image generation unit 235.

対象領域規定部231は、印刷を行うべき印刷可能領域を検出すると共に、検出された印刷可能領域から対象領域を切り出して、対象領域を規定する。画像取得部232は、対象領域に対応する印刷用画像データの作成に用いる原画像データを取得する。顔領域情報取得部233は、原画像データが表す画像(以下、原画像と呼ぶ)において、人物の顔に対応する顔領域を特定する顔領域情報を取得する。顔領域情報取得部233は、付属情報取得部2331と、顔領域検出部2332とを含んでいる。付属情報取得部2331は、上述した画像ファイル252に含まれる付属情報の中から顔領域情報を取得する。顔領域検出部2332は、原画像データを解析して、顔領域を検出する。画像配置部234は、原画像の対象領域に対する位置および大きさを調整し、原画像を対象領域上に配置する。原画像の位置および大きさの調整、および、原画像の配置は、顔領域情報を用いて実行される。画像生成部235は、画像配置部234による配置の結果に基づいて、原画像データを加工することにより、対象領域に対応する印刷用画像データを生成する。   The target area defining unit 231 detects a printable area to be printed and cuts out the target area from the detected printable area to define the target area. The image acquisition unit 232 acquires original image data used to create printing image data corresponding to the target area. The face area information acquisition unit 233 acquires face area information for specifying a face area corresponding to a human face in an image represented by original image data (hereinafter referred to as an original image). The face area information acquisition unit 233 includes an attached information acquisition unit 2331 and a face area detection unit 2332. The attached information acquisition unit 2331 acquires face area information from the attached information included in the image file 252 described above. The face area detection unit 2332 analyzes the original image data and detects a face area. The image placement unit 234 adjusts the position and size of the original image with respect to the target area, and places the original image on the target area. The adjustment of the position and size of the original image and the arrangement of the original image are executed using the face area information. The image generation unit 235 generates print image data corresponding to the target area by processing the original image data based on the result of the arrangement by the image arrangement unit 234.

印刷制御部240は、画像生成部235により生成された印刷用画像データを用いて、上述した印刷部280を制御し、電子記録媒体20に対して印刷を実行する。   The print control unit 240 controls the above-described printing unit 280 using the printing image data generated by the image generation unit 235 and executes printing on the electronic recording medium 20.

・画像処理部230の処理:
図3は、画像処理部230によって実行される一連の処理の処理ルーチンを示すフローチャートである。本処理によって、プリンタ200は、画像処理装置として機能する。
Processing of the image processing unit 230:
FIG. 3 is a flowchart showing a processing routine of a series of processes executed by the image processing unit 230. By this processing, the printer 200 functions as an image processing apparatus.

本処理は、操作部270を介して、ユーザからの電子記録媒体20に対する印刷の指示を受け付けた時に開始される。本処理が開始されると、対象領域規定部231は、電子記録媒体20上の印刷可能領域を特定する(ステップS102)。具体的には、対象領域規定部231は、ユーザからの入力によって、電子記録媒体20の種類を特定し、電子記録媒体20の種類ごとに予め定められた印刷可能領域を特定しても良い。あるいは、対象領域規定部231は、トレイTに装着された電子記録媒体20上にキャリッジ10を走査し、電子記録媒体20の位置、および、大きさをキャリッジ10に取り付けられたセンサ(図示省略)を用いて検出することによって、印刷可能領域を特定しても良い。   This process is started when an instruction for printing on the electronic recording medium 20 is received from the user via the operation unit 270. When this process is started, the target area defining unit 231 specifies a printable area on the electronic recording medium 20 (step S102). Specifically, the target area defining unit 231 may specify the type of the electronic recording medium 20 based on an input from the user, and may specify a printable area predetermined for each type of the electronic recording medium 20. Alternatively, the target area defining unit 231 scans the carriage 10 on the electronic recording medium 20 mounted on the tray T, and a sensor (not shown) attached to the carriage 10 for the position and size of the electronic recording medium 20. The printable area may be specified by detecting using.

図4は、印刷可能領域および印刷可能領域の分割について示す説明図である。対象領域規定部231は、ステップS102において、例えば、図4(a)に示す円領域ARを、印刷可能領域として特定する。円領域ARは、第1の円CR1と、第2の円CR2との間の領域である。第1の円CR1は、第1の径r1を半径とする円であり、第2の円CR2は、第1の径r1より小さい第2の径r2を半径とする円である。第2の径r2は、第1の径r1の1/3〜1/8程度の大きさである。第1の円CR1と、第2の円CR2は、互いに中心Cを同じくする同心円である。   FIG. 4 is an explanatory diagram showing the printable area and the division of the printable area. In step S102, the target area defining unit 231 specifies, for example, the circular area AR illustrated in FIG. 4A as a printable area. The circular area AR is an area between the first circle CR1 and the second circle CR2. The first circle CR1 is a circle whose radius is the first diameter r1, and the second circle CR2 is a circle whose radius is the second diameter r2, which is smaller than the first diameter r1. The second diameter r2 is about 1/3 to 1/8 of the first diameter r1. The first circle CR1 and the second circle CR2 are concentric circles having the same center C.

印刷可能領域が特定されると、対象領域規定部231は、印刷可能領域を複数の対象領域に分割する(ステップS104)。例えば、対象領域規定部231は、印刷可能領域としての円領域ARを、図4(b)に示すように、4つの対象領域SA1〜SA4に分割する。図4(b)に示すように、第1の対象領域SA1は、第1の円CR1の中心Cと第1の円CR1の円周上の点P1とを結ぶ線分L1と、第1の円CR1の中心Cと第1の円CR1の円周上の点P2とを結ぶ線分L2とにより、円領域ARから切り出された領域ということができる。同様に、第2の対象領域SA2は、線分L2とL3によって、第3の対象領域SA3は、線分L3とL4によって、第4の対象領域SA4は、線分L4とL1によって、それぞれ円領域ARから切り出された領域である。   When the printable area is specified, the target area defining unit 231 divides the printable area into a plurality of target areas (step S104). For example, the target area defining unit 231 divides the circular area AR as the printable area into four target areas SA1 to SA4 as shown in FIG. 4B. As shown in FIG. 4B, the first target area SA1 includes a line segment L1 connecting the center C of the first circle CR1 and the point P1 on the circumference of the first circle CR1, It can be said that the region is cut out from the circular region AR by the line segment L2 connecting the center C of the circle CR1 and the point P2 on the circumference of the first circle CR1. Similarly, the second target area SA2 is indicated by the line segments L2 and L3, the third target area SA3 is indicated by the line segments L3 and L4, and the fourth target area SA4 is indicated by the line segments L4 and L1, respectively. This is an area cut out from the area AR.

複数の対象領域が規定されると、画像処理部230は、複数の対象領域の中から、1つの対象領域を処理の対象として順次に選択する(ステップS106)。本ステップでは、上述した第1の対象領域SA1が選択されたものとして、以下の処理を説明していく。図5は、第1の対象領域SA1を示す説明図である。第1の対象領域SA1は、円領域ARの右上部分に位置する内角が90度の略扇型の領域である。   When a plurality of target areas are defined, the image processing unit 230 sequentially selects one target area as a processing target from among the plurality of target areas (step S106). In this step, the following process will be described on the assumption that the above-described first target area SA1 has been selected. FIG. 5 is an explanatory diagram showing the first target area SA1. The first target area SA1 is a substantially fan-shaped area with an inner angle of 90 degrees located in the upper right part of the circular area AR.

続いて、画像処理部230の画像取得部232は、選択された対象領域に対応する印刷用データの生成に用いる原画像データを、原画像データに関連付けられた付属情報と共に取得する(ステップS108)。原画像データは、外部記憶装置250に保存されている複数の画像ファイル252の中から予めユーザにより指定された画像ファイルに格納された画像データである。画像ファイル252には、画像データと共に、上述したように付属情報が格納されており、かかる付属情報が原画像データと共に取得される。図6は、取得された原画像データが表す原画像GAの一例を示す説明図である。原画像GAの略中央部において、人物の顔Fが画像を特徴付ける主要被写体として表現されている場合(図6)を例に以下の説明を進める。   Subsequently, the image acquisition unit 232 of the image processing unit 230 acquires the original image data used for generating the print data corresponding to the selected target area together with the attached information associated with the original image data (step S108). . The original image data is image data stored in an image file designated in advance by the user from among a plurality of image files 252 stored in the external storage device 250. The image file 252 stores the attached information as described above together with the image data, and the attached information is acquired together with the original image data. FIG. 6 is an explanatory diagram showing an example of the original image GA represented by the acquired original image data. The following description will be given by taking as an example the case where the person's face F is represented as the main subject characterizing the image in the approximate center of the original image GA (FIG. 6).

画像データおよび付属情報が取得されると、画像処理部230の顔領域情報取得部233は、取得された付属情報の中に顔領域情報が含まれているか否かを判断する(ステップS110)。顔領域情報は、例えば、図6に示すように、矩形の顔領域FAの第1の頂点V1の座標(x1、y1)と、第1の頂点V1と向かい合う第2の頂点V2の座標(x2、y2)である。V1の座標(x1、y1)と、V2の座標(x2、y2)によって、顔領域FAの原画像GAにおける位置、および、大きさが特定される。顔領域FAは、例えば、人物の顔Fがおおよそ内接する矩形領域である。   When the image data and the attached information are acquired, the face area information acquiring unit 233 of the image processing unit 230 determines whether the acquired attached information includes face area information (step S110). For example, as shown in FIG. 6, the face area information includes the coordinates (x1, y1) of the first vertex V1 of the rectangular face area FA and the coordinates (x2) of the second vertex V2 facing the first vertex V1. Y2). The position and size of the face area FA in the original image GA are specified by the coordinates (x1, y1) of V1 and the coordinates (x2, y2) of V2. The face area FA is, for example, a rectangular area in which a person's face F is roughly inscribed.

顔領域情報が付属情報の中にあると判断されると(ステップS110:YES)、顔領域情報取得部233の付属情報取得部2331は、付属情報の中から顔領域情報を取得する(ステップS112)。   If it is determined that the face area information is included in the attached information (step S110: YES), the attached information acquisition unit 2331 of the face area information acquisition unit 233 acquires the face area information from the attached information (step S112). ).

一方、顔領域情報が付属情報の中にないと判断されると(ステップS110:NO)、顔領域情報取得部233の顔領域検出部2332は、顔領域検出処理を実行する(ステップS114)。顔領域検出処理は、原画像データの解析により、原画像GA内の人物の顔Fを認識して、顔領域FAを特定する顔領域情報(例えば、上述したV1およびV2の座標)を出力する処理である。人物の顔Fの認識には、周知の画像処理技術が用いられる。例えば、顔領域検出部2332は、RGBで表現される画像データを、輝度成分Y、色差成分Cb、Crで表現されるYCbCrの色空間に変換し、所定の閾値内の色差成分を持つ画素を肌色領域として抽出し、抽出した肌色領域に基づいて人物の顔Fを認識する。また、顔領域検出部2332は、ニューラルネットワークを用いたマッチングにより、人物の顔Fの認識を行なっても良い。   On the other hand, when it is determined that the face area information is not included in the attached information (step S110: NO), the face area detection unit 2332 of the face area information acquisition unit 233 executes a face area detection process (step S114). The face area detection process recognizes the face F of the person in the original image GA by analyzing the original image data, and outputs face area information (for example, the coordinates of V1 and V2 described above) for specifying the face area FA. It is processing. A known image processing technique is used for recognizing the human face F. For example, the face area detection unit 2332 converts image data expressed in RGB into a color space of YCbCr expressed by a luminance component Y, color difference components Cb, and Cr, and detects pixels having color difference components within a predetermined threshold. A skin color area is extracted, and the person's face F is recognized based on the extracted skin color area. Further, the face area detection unit 2332 may recognize the person's face F by matching using a neural network.

付属情報から、あるいは、顔領域検出処理によって、顔領域情報が取得されると、画像処理部230の画像配置部234は、画像配置処理を実行する(ステップS116)。   When the face area information is acquired from the attached information or by the face area detection process, the image arrangement unit 234 of the image processing unit 230 executes the image arrangement process (step S116).

図7〜図9を参照して、画像配置処理について説明する。図7は、画像配置処理の処理ルーチンを示すフローチャートである。図8は、初期配置の一例を示す説明図である。図9は、配置調整処理について示す説明図である。   The image arrangement process will be described with reference to FIGS. FIG. 7 is a flowchart showing a processing routine of image arrangement processing. FIG. 8 is an explanatory diagram showing an example of the initial arrangement. FIG. 9 is an explanatory diagram showing the arrangement adjustment process.

画像配置処理が開始されると、画像配置部234は、原画像GAを、対象領域上に、初期配置する(ステップS202)。図8(a)には、第1の対象領域SA1に、原画像GAを初期配置した様子を示している。第1の対象領域SA1に対する原画像GAの初期配置の位置は、矩形の原画像GAの下辺を、第1の対象領域SA1の外形を形成する一の線分L1に重ね合わせ、原画像GAの左辺を、第1の対象領域SA1の外形を形成する他の線分L2に重ね合わせた位置である。さらに、初期配置において、原画像GAの大きさは、原画像GAの左辺および右辺の長さが、線分L1およびL2の長さ、すなわち、第1の円CR1の半径r1に一致するように調整される。   When the image arrangement process is started, the image arrangement unit 234 initially arranges the original image GA on the target area (step S202). FIG. 8A shows a state in which the original image GA is initially arranged in the first target area SA1. The position of the initial arrangement of the original image GA with respect to the first target area SA1 is such that the lower side of the rectangular original image GA is superimposed on one line segment L1 that forms the outer shape of the first target area SA1. This is a position where the left side is overlapped with another line segment L2 forming the outer shape of the first target area SA1. Further, in the initial arrangement, the size of the original image GA is such that the lengths of the left side and the right side of the original image GA coincide with the lengths of the line segments L1 and L2, that is, the radius r1 of the first circle CR1. Adjusted.

続いて、画像配置部234は、原画像GAに顔領域FAがあるか否かを判断する(ステップS204)。上述したステップS112またはS114において、顔領域情報が取得されていれば、顔領域FAがあると判断され、顔領域情報が取得されていなければ、顔領域FAが無いと判断される。顔領域FAがないと判断されると(ステップS204:NO)、画像配置部234は、画像配置処理を終了する。すなわち、FAがない場合には、原画像GAの対象領域に対する配置は、初期配置の状態で確定することになる。   Subsequently, the image placement unit 234 determines whether or not the face area FA exists in the original image GA (step S204). In step S112 or S114 described above, if face area information is acquired, it is determined that there is a face area FA, and if face area information is not acquired, it is determined that there is no face area FA. If it is determined that there is no face area FA (step S204: NO), the image arrangement unit 234 ends the image arrangement process. That is, when there is no FA, the arrangement of the original image GA with respect to the target area is determined in the initial arrangement state.

一方、顔領域FAがあると判断されると(ステップS204:YES)、画像配置部234は、初期配置の状態において、顔領域FAが対象領域からはみ出しているか否かを判断する(ステップS206)。画像配置部234は、例えば、矩形の顔領域FAの4つの頂点のうち、第1の円CR1の中心Cとの距離が最も離れている点と、中心Cとの距離が第1の円CR1の半径(第1の径r1)より大きい場合には、顔領域FAが対象領域からはみ出していると判断する。例えば、図8(a)に示す例では、原画像GAの顔領域FAの右上の頂点が第1の対象領域SA1からはみ出しているので、顔領域FAが対象領域からはみ出していると判断される。一方で、図8(b)は、図8(a)とは異なる画像である原画像GA2が第1の対象領域SA1に対して初期配置されている状態を示しており、かかる場合には、顔領域FA全体が第1の対象領域SA1内に完全に含まれているので、顔領域FAが対象領域からはみ出していないと判断される。   On the other hand, if it is determined that there is a face area FA (step S204: YES), the image arrangement unit 234 determines whether the face area FA protrudes from the target area in the initial arrangement state (step S206). . For example, the image placement unit 234 has a distance between the center C of the first circle CR1 and the center C of the first circle CR1 that is the farthest from the four vertices of the rectangular face area FA. Is larger than the radius (first diameter r1), it is determined that the face area FA protrudes from the target area. For example, in the example shown in FIG. 8A, since the upper right vertex of the face area FA of the original image GA protrudes from the first target area SA1, it is determined that the face area FA protrudes from the target area. . On the other hand, FIG. 8B shows a state in which the original image GA2, which is an image different from that in FIG. 8A, is initially arranged with respect to the first target area SA1, and in such a case, Since the entire face area FA is completely included in the first target area SA1, it is determined that the face area FA does not protrude from the target area.

顔領域FAが対象領域からはみ出していると判断されると(ステップS206:YES)、画像配置部234は、配置調整処理に移る(ステップS210)。一方、顔領域FAが対象領域からはみ出していないと判断されると(ステップS206:NO)、画像配置部234は、顔領域FAの大きさは所定の閾値以上であるか否かを判断する(ステップS208)。本ステップで問題となる顔領域FAの大きさは、対象領域に対する相対的な大きさである。従って、例えば、本ステップでは、初期配置状態(図8)における顔領域FAの対象領域に対する面積比が、所定値以上であるか否かによって判断される。   If it is determined that the face area FA protrudes from the target area (step S206: YES), the image arrangement unit 234 proceeds to an arrangement adjustment process (step S210). On the other hand, if it is determined that the face area FA does not protrude from the target area (step S206: NO), the image placement unit 234 determines whether or not the size of the face area FA is equal to or greater than a predetermined threshold ( Step S208). The size of the face area FA that is a problem in this step is a relative size with respect to the target area. Therefore, for example, in this step, determination is made based on whether or not the area ratio of the face area FA to the target area in the initial arrangement state (FIG. 8) is a predetermined value or more.

顔領域FAの大きさが所定の閾値以上であると判断されると(ステップS208:YES)、画像配置部234は、画像配置処理を終了する。すなわち、顔領域FAが対象領域からはみ出しておらず、かつ、顔領域FAの大きさが所定の閾値以上である場合には、原画像GAの対象領域に対する配置は、初期配置の状態で確定することになる。   If it is determined that the size of the face area FA is greater than or equal to the predetermined threshold (step S208: YES), the image placement unit 234 ends the image placement process. That is, when the face area FA does not protrude from the target area and the size of the face area FA is equal to or larger than a predetermined threshold, the arrangement of the original image GA with respect to the target area is determined in the initial arrangement state. It will be.

一方、顔領域FAの大きさが所定の閾値以下であると判断されると(ステップS208:NO)、画像配置部234は、顔領域FAが対象領域からはみ出していると判断された場合と同様に、配置調整処理に移る(ステップS210)。   On the other hand, when it is determined that the size of the face area FA is equal to or smaller than the predetermined threshold value (step S208: NO), the image placement unit 234 is the same as when it is determined that the face area FA protrudes from the target area. Then, the process proceeds to the arrangement adjustment process (step S210).

図9(a)には、配置調整処理後の顔領域FA_adjと、第1の対象領域SA1との位置関係が示されている。図9(a)に示すように、配置調整後の顔領域FA_adjの中心FCは、第1の対象領域SA1の外形を形成する水平方向の線分L1と角度θをなし、第1の円CR1の中心Cを通る直線SL上に位置する。角度θは、以下の式(1)を満たす角度である。
tanθ=H/W …(1)
ここで、Wは、顔領域FAの左右方向の巾(上下の辺の長さ)であり、Hは、顔領域FAの上下方向の巾(左右の辺の長さ)である。HおよびWの値は、顔領域情報(上述した顔領域FAの頂点V1、V2の座標)から、容易に算出することができる。
FIG. 9A shows the positional relationship between the face area FA_adj after the placement adjustment process and the first target area SA1. As shown in FIG. 9A, the center FC of the face area FA_adj after the placement adjustment forms an angle θ with the horizontal line segment L1 that forms the outer shape of the first target area SA1, and the first circle CR1 It lies on a straight line SL passing through the center C. The angle θ is an angle that satisfies the following expression (1).
tan θ = H / W (1)
Here, W is a width in the left-right direction of the face area FA (length of upper and lower sides), and H is a width in the vertical direction of the face area FA (length of left and right sides). The values of H and W can be easily calculated from the face area information (the coordinates of the vertices V1 and V2 of the face area FA described above).

そして、配置調整後の顔領域FA_adjの最も第1の円CR1側の頂点V1_adjは、第1の円CR1上に位置し、最も第2の円CR2側の頂点V2_adjは、第2の円CR2上に位置する。配置調整後の顔領域FA_adjの調整前の顔領域FAに対する倍率、すなわち、調整による顔領域FAの倍率(拡大または縮小率)Eは、以下の式(2)により算出される。
E=(r1−r2)/D
=(r1−r2)/{(x1−x2)2+(y1−y2)21/2 …(2)
ここで、Dは、調整前の顔領域FAの対角線の長さを表している。また、(x1、y1)、(x2、y2)は、調整前の顔領域FAの向かい合う2つの頂点V1、V2の座標をそれぞれ表している。
The vertex V1_adj on the first circle CR1 side of the face area FA_adj after the placement adjustment is located on the first circle CR1, and the vertex V2_adj on the second circle CR2 side is on the second circle CR2. Located in. The magnification of the face area FA_adj after the adjustment to the face area FA before the adjustment, that is, the magnification (enlargement or reduction ratio) E of the face area FA by the adjustment is calculated by the following equation (2).
E = (r1-r2) / D
= (R1-r2) / {(x1-x2) 2 + (y1-y2) 2 } 1/2 (2)
Here, D represents the length of the diagonal line of the face area FA before adjustment. Further, (x1, y1) and (x2, y2) represent the coordinates of two vertices V1 and V2 that face the face area FA before adjustment, respectively.

以上の説明から解るように、顔領域FAの位置および大きさの調整は、顔領域情報(顔領域FAの頂点V1、V2の座標)と、第1の円CR1の半径(第1の径r1)と、第2の円CR2の半径(第2の径r2)と、を用いて実行される。   As can be understood from the above description, the position and size of the face area FA are adjusted by adjusting the face area information (the coordinates of the vertices V1 and V2 of the face area FA) and the radius (first diameter r1) of the first circle CR1. ) And the radius of the second circle CR2 (second diameter r2).

配置調整処理は、図9(a)を参照して説明したように配置調整後の顔領域FA_adjが位置するように、原画像GA全体の位置および大きさを、対象領域に対して調整する処理である(図9(b))。この結果、原画像GAの対象領域に対する配置が決定される。配置調整処理が終了すると、画像配置部234は、画像配置処理を終了する   The arrangement adjustment process is a process for adjusting the position and size of the entire original image GA with respect to the target area so that the face area FA_adj after the arrangement adjustment is located as described with reference to FIG. (FIG. 9B). As a result, the arrangement of the original image GA with respect to the target area is determined. When the layout adjustment process ends, the image layout unit 234 ends the image layout process.

図3に戻って、説明を続ける。画像配置処理が終了すると、画像処理部230は、全ての対象領域について上述したステップS106〜S116までの処理が終了したか否かを判断する(ステップS118)。本実施例の場合は、ステップS104において、図4(b)に示すように、4つの対象領域SA1〜SA4が規定されるので、上述したステップS106〜S116は、それぞれの対象領域を順次、ステップS106において選択しながら、4回繰り返される。   Returning to FIG. 3, the description will be continued. When the image arrangement process is completed, the image processing unit 230 determines whether or not the above-described steps S106 to S116 have been completed for all target regions (step S118). In the case of the present embodiment, as shown in FIG. 4B, in step S104, four target areas SA1 to SA4 are defined. Therefore, in steps S106 to S116 described above, the target areas are sequentially stepped. Repeated four times while selecting in S106.

画像処理部230は、全ての対象領域について終了していないと判断すると(ステップS118:NO)、まだ選択されていない対象領域を選択してステップS106〜S116の処理を繰り返す。画像処理部230は、全ての対象領域について終了したと判断すると(ステップS118:YES)、印刷用画像データを生成する処理に移る(ステップS210)。   If the image processing unit 230 determines that the processing has not been completed for all target regions (step S118: NO), the image processing unit 230 selects a target region that has not yet been selected, and repeats the processing of steps S106 to S116. If the image processing unit 230 determines that the processing has been completed for all target regions (step S118: YES), the image processing unit 230 proceeds to processing for generating image data for printing (step S210).

図10は、印刷用画像データを生成する処理について概念的に示す説明図である。印刷用画像データを生成処理に移る時点で、4つの対象領域SA1〜SA4と、4つの対象領域SA1〜SA4にそれぞれ配置される4枚の原画像GAとの位置関係、すなわち、原画像GAの対象領域に対する配置結果が、それぞれ規定されている。画像生成部235は、上述した処理により規定された配置結果に基づいて、原画像GAを表す原画像データを加工することにより、各対象領域に対応するサブ画像データを生成する。図10の上側には、第1の対象領域SA1に配置された原画像GAに対して、第1の対象領域SA1の形状に合わせたトリミング加工を施したトリミング画像TGA1が、概念的に示されている。画像生成部235は、トリミング画像TGA1を表す第1のサブ画像データを生成する。画像配置部234は、同様の処理により、第2の対象領域SA2に合わせたトリミング画像TGA2、第3の対象領域SA3に合わせたトリミング画像TGA3、第4の対象領域SA4に合わせたトリミング画像TGA4、をそれぞれ表す第2〜第4のサブ画像データをそれぞれ生成する。   FIG. 10 is an explanatory diagram conceptually showing processing for generating printing image data. At the time when the image data for printing is shifted to the generation process, the positional relationship between the four target areas SA1 to SA4 and the four original images GA respectively arranged in the four target areas SA1 to SA4, that is, the original image GA The arrangement results for the target area are respectively defined. The image generation unit 235 generates sub image data corresponding to each target region by processing the original image data representing the original image GA based on the arrangement result defined by the above-described processing. On the upper side of FIG. 10, a trimmed image TGA1 obtained by trimming the original image GA arranged in the first target area SA1 in accordance with the shape of the first target area SA1 is conceptually shown. ing. The image generation unit 235 generates first sub image data representing the trimmed image TGA1. By the same processing, the image placement unit 234 performs the trimming image TGA2 matched with the second target area SA2, the trimmed image TGA3 matched with the third target area SA3, and the trimmed image TGA4 matched with the fourth target area SA4, The second to fourth sub-image data respectively representing the above are generated.

画像生成部235は、4つのトリミング画像TGA1〜TGA4が円領域AR(印刷可能領域)の形状に組み合わせられた印刷用画像PGA(図10の下側)を表す印刷用画像データを生成する。印刷用画像データは、4つのトリミング画像TGA1〜TGA4をそれぞれ表す第1〜第4のサブ画像データを用いて生成される。印刷用画像データが生成されると、画像処理部230によって実行される画像処理(図3)は、終了される。   The image generation unit 235 generates print image data representing the print image PGA (lower side in FIG. 10) in which the four trimmed images TGA1 to TGA4 are combined in the shape of the circular area AR (printable area). The print image data is generated using the first to fourth sub-image data representing the four trimmed images TGA1 to TGA4, respectively. When the printing image data is generated, the image processing (FIG. 3) executed by the image processing unit 230 is terminated.

生成された印刷用画像データは、印刷制御部240によって、色変換処理、ハーフトーン処理を施され、印刷用制御コマンドを含むラスタデータに変換され、印刷部280に出力される。印刷部280は、ラスタデータに従って、電子記録媒体20に対して、印刷を実行する。   The generated printing image data is subjected to color conversion processing and halftone processing by the printing control unit 240, converted into raster data including a printing control command, and output to the printing unit 280. The printing unit 280 performs printing on the electronic recording medium 20 according to the raster data.

以上説明した本実施例に係る画像処理装置としてのプリンタ200によれば、原画像GAを特徴付ける顔領域FAが対象領域に含まれるように、必要に応じて原画像GAを縮小して大きさを調整する。円領域ARを構成する各対象領域SA1〜SA4に、それぞれ調整後の原画像GAが配置される。そして、配置結果に基づいて、円領域ARに対応する印刷用画像データが生成される。したがって、生成された印刷用画像データを用いて印刷を行えば、印刷画像において、顔領域が欠けたりすることがなく、印刷画像の見映えを向上することができる。   According to the printer 200 as the image processing apparatus according to the present embodiment described above, the size of the original image GA is reduced as necessary so that the face area FA that characterizes the original image GA is included in the target area. adjust. The adjusted original image GA is arranged in each of the target areas SA1 to SA4 constituting the circular area AR. Then, based on the arrangement result, print image data corresponding to the circular area AR is generated. Therefore, if printing is performed using the generated image data for printing, the face area is not lost in the printed image, and the appearance of the printed image can be improved.

さらに、初期配置において、対象領域に対して顔領域FAが小さい場合には、原画像GAを拡大して、対象領域に対して配置する。この結果、印刷画像の見映えをさらに向上することができる。   Further, in the initial arrangement, when the face area FA is smaller than the target area, the original image GA is enlarged and arranged in the target area. As a result, the appearance of the printed image can be further improved.

さらに、対象領域に対する原画像GAの位置および大きさを調整する際に、顔領域FAの頂点V1が第1の円CR1上に位置し、頂点V2が第2の円CR2上に位置するように配置する。この結果、顔領域FAが見映え良い位置および大きさになるように、原画像GAを対象領域上に配置することができる。   Further, when adjusting the position and size of the original image GA with respect to the target area, the vertex V1 of the face area FA is located on the first circle CR1, and the vertex V2 is located on the second circle CR2. Deploy. As a result, the original image GA can be arranged on the target area so that the face area FA has a good position and size.

また、顔領域情報の取得は、顔領域情報が付属情報として原画像データに関連付けられている場合には、当該付属情報を取得することにより行われる。一方、顔領域情報が付属情報として原画像データに関連付けられていない場合には、原画像データを解析することにより、行われる。従って、原画像データに顔領域情報が関連付けられているか否かに関わらず、画像処理部230は、顔領域情報を取得することができる。   The face area information is acquired by acquiring the attached information when the face area information is associated with the original image data as attached information. On the other hand, when the face area information is not associated with the original image data as the attached information, the analysis is performed by analyzing the original image data. Therefore, the image processing unit 230 can acquire the face area information regardless of whether the face area information is associated with the original image data.

B.変形例:
・第1変形例:
上記実施例では、原画像GAを特徴付ける人物の顔Fが、原画像GAにつき1つである場合について説明されているが、人物の顔Fの数は、原画像GAにつき1つに限られない。図11は、複数の人物の顔を含む原画像の一例を示す説明図である。図11に示す原画像GAは、画像を特徴付ける被写体として、2つの人物の顔F1、F2を含んでいる。かかる場合には、例えば、2つ人物の顔F1、F2含む最小の矩形領域を、顔領域FAとすることができる(図11)。こうすれば、顔領域情報として、上記実施例と同様に、顔領域FAの2つの対角V1、V2の座標を用いることができ、画像配置処理を、上記実施例と同様の手法により実行することができる。
B. Variations:
・ First modification:
In the above embodiment, the case where there is one person's face F characterizing the original image GA per original image GA has been described, but the number of person's faces F is not limited to one per original image GA. . FIG. 11 is an explanatory diagram illustrating an example of an original image including a plurality of human faces. The original image GA shown in FIG. 11 includes two human faces F1 and F2 as subjects characterizing the image. In such a case, for example, the minimum rectangular area including the faces F1 and F2 of the two persons can be set as the face area FA (FIG. 11). In this way, the coordinates of the two diagonals V1 and V2 of the face area FA can be used as the face area information as in the above embodiment, and the image placement process is executed by the same method as in the above embodiment. be able to.

・第2変形例:
上記実施例では、配置調整後の顔領域FA_adjの中心を、対象領域の外形を形成する水平方向の線分(例えば、線分L1:図9)と角度θをなし、第1の円CR1の中心Cを通る直線SL上に配置しているが、配置調整処理は、かかる手法に限られない。図12は、配置調整処理の変形例を示す第1の説明図である。図12は、図9と同様に、第1の対象領域SA1に対して、原画像GAを配置する場合を例にして示している。図12に示すように、配置調整後の顔領域FA_adjの下側の辺を、第1の対象領域SA1の外形を形成する水平方向の線分L1上に配置しても良い。そして、配置調整後の顔領域FA_adjの最も第1の円CR1側の頂点V1_adjは、第1の円CR1上に位置し、最も第2の円CR2側の頂点V2_adjは、第2の円CR2上に位置するように、配置しても良い。このようにしても、対象領域に対して、人物の顔Fを見映えの良い位置および大きさに配置することができる。
・ Second modification:
In the above embodiment, the center of the face area FA_adj after the placement adjustment is formed at an angle θ with a horizontal line segment (for example, line segment L1: FIG. 9) that forms the outer shape of the target area, and the first circle CR1 Although it arrange | positions on the straight line SL which passes along the center C, arrangement | positioning adjustment processing is not restricted to this method. FIG. 12 is a first explanatory diagram illustrating a modification of the arrangement adjustment process. FIG. 12 shows, as an example, the case where the original image GA is arranged in the first target area SA1, as in FIG. As shown in FIG. 12, the lower side of the face area FA_adj after the placement adjustment may be placed on a horizontal line segment L1 that forms the outer shape of the first target area SA1. The vertex V1_adj on the first circle CR1 side of the face area FA_adj after the placement adjustment is located on the first circle CR1, and the vertex V2_adj on the second circle CR2 side is on the second circle CR2. You may arrange | position so that it may be located in. Even in this manner, the person's face F can be arranged at a position and size that can be seen with respect to the target area.

・第3変形例:
上記実施例では、円領域ARを4つの対象領域SA1〜SA4に分割しているが、これに限られない。図13は、配置調整処理の変形例を示す第2の説明図である。図13に示す例では、円領域ARを、線分L1〜L3により、内角が120度である略扇型の3つの対象領域SA1〜SA3に分割している。このように、対象領域は、第1の円CR1の中心Cと、第1の円CR1の円周上の2点とをそれぞれ結ぶ2本の線分(例えば、図13:L1、L2)により切り出される領域であれば良く、例えば、円領域ARを5〜8等分する略扇型の領域を対象領域としても良い。
・ Third modification:
In the above embodiment, the circular area AR is divided into the four target areas SA1 to SA4, but the present invention is not limited to this. FIG. 13 is a second explanatory diagram illustrating a modification of the arrangement adjustment process. In the example shown in FIG. 13, the circular area AR is divided into three substantially fan-shaped target areas SA1 to SA3 having an inner angle of 120 degrees by line segments L1 to L3. In this way, the target region is defined by two line segments (for example, FIG. 13: L1 and L2) connecting the center C of the first circle CR1 and the two points on the circumference of the first circle CR1. Any region that is cut out may be used. For example, a substantially fan-shaped region that divides the circular region AR into 5 to 8 parts may be used as the target region.

・第4変形例:
上記実施例における配置調整処理では、原画像GAの対象領域に対する位置および大きさを調整しているが、位置および大きさと共に、または、位置および大きさに変えて、原画像GAの対象領域に対する角度を、調整しても良い。図13には、第1の対象領域SA1に対する配置調整後の原画像GAが示されている。このように、原画像GAの上下方向(図13に示すY方向)が、第1の対象領域SA1の内角を2等分する直線L_refと平行になるように、原画像GAの角度を調整しても良い。こうすれば、印刷画像において、上記実施例とは異なった趣の見映えを得ることができる。また、図13に示す例では、配置調整後の顔領域FA_adjの中心FCが、第1の円CR1と中心を同じくする第3の円CR_refと、上述した直線L_refとの交点に位置するように、原画像GAの対象領域SA1に対する位置を調整している。第3の円CR_refの半径r_refは、第1の円CR1の半径(第1の径r1)より小さく、第2の円CR2の半径(第2の径r2)より大きく設定される。例えば、第3の円CR_refの半径r_refは、第1の円CR1の中心Cと円周上の点を結ぶ線分を、黄金分割比で分割する値に設定しても良い。具体的には、黄金分割比を用いて、r1:r_ref≒1:0.618となるように、第3の円CR_refの半径r_refを設定しても良い。こうすれば、印刷画像において、上記実施例とは異なった趣の見映えを得ることができる。
-Fourth modification:
In the arrangement adjustment processing in the above embodiment, the position and size of the original image GA with respect to the target region are adjusted. However, the position and size of the original image GA are changed with the position and size or in place of the position and size. The angle may be adjusted. FIG. 13 shows the original image GA after the arrangement adjustment with respect to the first target area SA1. Thus, the angle of the original image GA is adjusted so that the vertical direction of the original image GA (the Y direction shown in FIG. 13) is parallel to the straight line L_ref that bisects the interior angle of the first target area SA1. May be. By doing so, it is possible to obtain an appearance that is different from the above embodiment in the printed image. In the example shown in FIG. 13, the center FC of the face area FA_adj after the placement adjustment is located at the intersection of the third circle CR_ref having the same center as the first circle CR1 and the straight line L_ref described above. The position of the original image GA with respect to the target area SA1 is adjusted. The radius r_ref of the third circle CR_ref is set smaller than the radius (first diameter r1) of the first circle CR1 and larger than the radius (second diameter r2) of the second circle CR2. For example, the radius r_ref of the third circle CR_ref may be set to a value that divides a line segment connecting the center C of the first circle CR1 and a point on the circumference with the golden division ratio. Specifically, the radius r_ref of the third circle CR_ref may be set using the golden division ratio so that r1: r_ref≈1: 0.618. By doing so, it is possible to obtain an appearance that is different from the above embodiment in the printed image.

・第5変形例:
上記第4変形例において、原画像GAの角度の調整は、原画像GAの上下方向を基準にしているが、顔領域FAに含まれる人物の顔Fの上下方向を基準としても良い。図14は、人物の顔の上下方向の一例を示す説明図である。図14に示すように、人物の顔Fの上下方向VLは、例えば、人物の顔Fの2つの目の位置を結ぶ直線ELに垂直な方向としても良い。人物の顔Fの上下方向VLは、人物の顔Fの2つの目の位置と、口の位置とに基づいて定めても良い。人物の顔Fの2つの目の位置や口の位置は、周知の画像解析処理によって、特定することができる。
-5th modification:
In the fourth modification, the angle of the original image GA is adjusted based on the vertical direction of the original image GA, but may be based on the vertical direction of the person's face F included in the face area FA. FIG. 14 is an explanatory diagram illustrating an example of the vertical direction of a person's face. As shown in FIG. 14, the vertical direction VL of the person's face F may be a direction perpendicular to a straight line EL that connects the positions of the two eyes of the person's face F, for example. The vertical direction VL of the person's face F may be determined based on the position of the second eye of the person's face F and the position of the mouth. The position of the second eye of the person's face F and the position of the mouth can be specified by a known image analysis process.

・その他の変形例:
上記実施例では、顔領域情報は、付属情報の中から、あるいは、画像解析により取得されるが、これに限られない。例えば、顔領域情報取得部233は、ユーザから操作部270を介して、顔領域情報の入力を受け付けることにより、取得しても良い。具体的には、表示部260に、原画像GAを矢印などのカーソルと共に表示し、ユーザが操作部270を用いて、カーソルを操作し、原画像GAの特徴的な領域を指示する。顔領域情報取得部233は、かかる指示に基づいて、顔領域情報を取得することができる。
・ Other variations:
In the above embodiment, the face area information is acquired from the attached information or by image analysis, but is not limited thereto. For example, the face area information acquisition unit 233 may acquire the face area information by receiving input of face area information from the user via the operation unit 270. Specifically, the original image GA is displayed on the display unit 260 together with a cursor such as an arrow, and the user operates the cursor using the operation unit 270 to indicate a characteristic area of the original image GA. The face area information acquisition unit 233 can acquire face area information based on the instruction.

上記実施例では、人物の顔Fを含む顔領域FAを、原画像GAを特徴付ける特徴領域として用いているが、特徴領域は、これに限られない。例えば、原画像GAが花などの植物や、犬などの動物を主要被写体とする画像である場合には、主要被写体である植物や動物を含む領域を、特徴領域としても良い。   In the above embodiment, the face area FA including the person's face F is used as a characteristic area characterizing the original image GA, but the characteristic area is not limited to this. For example, when the original image GA is an image having a plant such as a flower or an animal such as a dog as a main subject, a region including the plant or animal that is the main subject may be used as the feature region.

上記実施例では、原画像GAを調整する際の倍率Eを式(2)により算出しているが、ユーザの好みなどに応じて、倍率Eを調整しても良い。例えば、式(2)により算出された倍率Eに、所定の係数kを乗じて、倍率Eを調整しても良い。係数kの値は、例えば、0.8〜1.1程度の値としても良い。   In the above embodiment, the magnification E when adjusting the original image GA is calculated by the equation (2). However, the magnification E may be adjusted according to the user's preference or the like. For example, the magnification E may be adjusted by multiplying the magnification E calculated by Expression (2) by a predetermined coefficient k. The value of the coefficient k may be a value of about 0.8 to 1.1, for example.

上記実施例では、プリンタ200が画像処理部230を備えており、スタンドアローンにて画像処理および印刷処理を実行することができる。これに代えて、パーソナルコンピュータや、デジタルカメラを画像処理装置として用いても良い。かかる場合には、パーソナルコンピュータやデジタルカメラに上述した画像処理部230の機能を実現するためのソフトウェアが実装され、パーソナルコンピュータやデジタルカメラにおいて、図3に示す画像処理が実行される。かかる場合、プリンタは、パーソナルコンピュータやデジタルカメラから印刷用データを受け取り、電子記録媒体に対して印刷を実行する。   In the above embodiment, the printer 200 includes the image processing unit 230, and image processing and printing processing can be executed in a stand-alone manner. Instead, a personal computer or a digital camera may be used as the image processing apparatus. In such a case, software for realizing the functions of the image processing unit 230 described above is installed in a personal computer or digital camera, and the image processing shown in FIG. 3 is executed in the personal computer or digital camera. In such a case, the printer receives printing data from a personal computer or a digital camera, and executes printing on the electronic recording medium.

上記実施例において生成される印刷用画像データは、円形の電子記録媒体に対して直接印刷するために用いられる場合に限らず、円形の電子記録媒体に貼付けるためのシールに対する印刷など、種々の印刷媒体に対して印刷するために用いられ得る。   The image data for printing generated in the above embodiment is not limited to being used for direct printing on a circular electronic recording medium, but can be used in various ways such as printing on a sticker for sticking to a circular electronic recording medium. It can be used for printing on print media.

上記実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えてもよい。   In the above embodiment, a part of the configuration realized by hardware may be replaced by software, and conversely, a part of the configuration realized by software may be replaced by hardware.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。   As mentioned above, although this invention was demonstrated based on the Example and the modification, Embodiment mentioned above is for making an understanding of this invention easy, and does not limit this invention. The present invention can be changed and improved without departing from the spirit and scope of the claims, and equivalents thereof are included in the present invention.

実施例に係る画像処理装置として機能するプリンタの概略構成を示すブロック図。FIG. 1 is a block diagram illustrating a schematic configuration of a printer that functions as an image processing apparatus according to an embodiment. 実施例におけるプリンタの印刷部の概略構成を示す説明図。FIG. 3 is an explanatory diagram illustrating a schematic configuration of a printing unit of the printer according to the embodiment. 画像処理部によって実行される一連の処理の処理ルーチンを示すフローチャート。The flowchart which shows the process routine of a series of processes performed by the image process part. 印刷可能領域および印刷可能領域の分割について示す説明図。Explanatory drawing shown about the division | segmentation of a printable area | region and a printable area | region. 第1の対象領域を示す説明図。Explanatory drawing which shows a 1st object area | region. 取得された原画像データが表す原画像の一例を示す説明図。Explanatory drawing which shows an example of the original image which the acquired original image data represents. 画像配置処理の処理ルーチンを示すフローチャート。The flowchart which shows the process routine of an image arrangement | positioning process. 初期配置の一例を示す説明図。An explanatory view showing an example of initial arrangement. 配置調整処理について示す説明図。Explanatory drawing shown about arrangement | positioning adjustment processing. 印刷用画像データを生成する処理について概念的に示す説明図。Explanatory drawing which shows notionally the process which produces | generates the image data for printing. 複数の人物の顔を含む原画像の一例を示す説明図。Explanatory drawing which shows an example of the original image containing a several person's face. 配置調整処理の変形例を示す第1の説明図。The 1st explanatory view showing the modification of arrangement adjustment processing. 配置調整処理の変形例を示す第2の説明図。The 2nd explanatory view showing the modification of arrangement adjustment processing. 人物の顔の上下方向の一例を示す説明図。Explanatory drawing which shows an example of the up-down direction of a person's face.

符号の説明Explanation of symbols

10…キャリッジ
11…記録ヘッド
13…キャリッジガイド軸
16…嵌合部
20…電子記録媒体
200…プリンタ
210…CPU
220…内部記憶装置
230…画像処理部
231…対象領域規定部
232…画像取得部
233…顔領域情報取得部
2331…付属情報取得部
2332…顔領域検出部
234…画像配置部
235…画像生成部
240…印刷制御部
250…外部記憶装置
252…画像ファイル
260…表示部
270…操作部
280…印刷部
T…トレイ
DESCRIPTION OF SYMBOLS 10 ... Carriage 11 ... Recording head 13 ... Carriage guide shaft 16 ... Fitting part 20 ... Electronic recording medium 200 ... Printer 210 ... CPU
DESCRIPTION OF SYMBOLS 220 ... Internal storage device 230 ... Image processing part 231 ... Target area prescription | regulation part 232 ... Image acquisition part 233 ... Face area information acquisition part 2331 ... Attached information acquisition part 2332 ... Face area detection part 234 ... Image arrangement | positioning part 235 ... Image generation part 240 ... Print control unit 250 ... External storage device 252 ... Image file 260 ... Display unit 270 ... Operation unit 280 ... Printing unit T ... Tray

Claims (12)

第1の径を有する第1の円を外形とする円領域に対応する画像データを生成する画像処理装置であって、
前記円領域から前記第1の円の中心と前記第1の円の円周上の異なる2点とをそれぞれ結ぶ2本の線分により切り出される対象領域を規定する対象領域規定部と、
第1の画像データを取得する画像取得部と、
前記第1の画像データを解析して、前記第1の画像データが表す画像の中の人物の顔を含む顔領域に関する少なくとも画像における位置および大きさを特定する領域情報を取得する領域情報取得部と、
前記領域情報を用いて、前記第1の画像データが表す画像の前記対象領域に対する位置および大きさの少なくとも一方を調整し、前記顔領域が前記対象領域内に含まれるとともに前記顔領域の前記対象領域に対する面積比が所定値以上となるように、前記第1の画像データが表す画像を前記対象領域に配置する、画像配置部と、
前記配置結果に基づいて、前記第1の画像データを加工することにより、前記対象領域に対応する第2の画像データを生成する、画像生成部と、
を備える、画像処理装置。
An image processing device that generates image data corresponding to a circular region having a first circle having a first diameter as an outer shape,
A target area defining unit for defining a target area cut out by two line segments respectively connecting the center of the first circle and two different points on the circumference of the first circle from the circular area;
An image acquisition unit for acquiring first image data;
The first image data by analyzing of the at least the face area information acquires the face area information for specifying the position and size of the image related to a face region including the face of a person in the first image data represents the image An acquisition unit;
Using the face area information, adjust at least one of the position and size of the image represented by the first image data with respect to the target area, and the face area is included in the target area and the face area An image placement unit for placing an image represented by the first image data in the target region such that an area ratio to the target region is equal to or greater than a predetermined value ;
An image generation unit configured to generate second image data corresponding to the target region by processing the first image data based on the arrangement result;
An image processing apparatus comprising:
請求項1に記載の画像処理装置において、
前記第1の画像データが表す画像の大きさの調整は、前記領域が前記対象領域内に含まれる範囲内で、前記第1の画像データが表す画像を拡大することを含む、画像処理装置。
The image processing apparatus according to claim 1.
The adjustment of the size of the image represented by the first image data includes enlarging the image represented by the first image data within a range in which the face region is included in the target region. .
請求項1に記載の画像処理装置において、
前記第1の画像データが表す画像の大きさの調整は、前記領域が前記対象領域内に含まれるように、前記第1の画像データが表す画像を縮小することを含む、画像処理装置。
The image processing apparatus according to claim 1.
The adjustment of the size of the image represented by the first image data includes reducing the image represented by the first image data so that the face region is included in the target region.
請求項1ないし請求項3のいずれかに記載の画像処理装置において、
前記円領域は、前記第1の円と同心であり、前記第1の径より小さい第2の径を有する第2の円と、前記第1の円とにより規定される領域である、画像処理装置。
The image processing apparatus according to any one of claims 1 to 3,
The circular area is an area defined by the second circle having a second diameter smaller than the first diameter and concentric with the first circle, and the first circle. apparatus.
請求項4に記載の画像処理装置において、
前記第1の画像データが表す画像の位置および大きさの調整は、前記対象領域内において、前記領域の前記第2の円側の端部が前記第2の円上に実質的に位置し、前記領域の前記第1の円側の端部が前記第1の円上に実質的に位置するように実行される、画像処理装置。
The image processing apparatus according to claim 4.
The adjustment of the position and size of the image represented by the first image data is performed in such a manner that an end of the face region on the second circle side is substantially located on the second circle in the target region. The image processing apparatus is executed such that an end of the face region on the first circle side is substantially located on the first circle.
請求項4に記載の画像処理装置において、
前記第1の画像データが表す画像の位置および大きさの調整は、前記領域情報と共に、前記第1の径と、前記第2の径とを用いて、実行される、画像処理装置。
The image processing apparatus according to claim 4.
Adjustment of the position and size of an image represented by the first image data is performed using the first diameter and the second diameter together with the face area information.
請求項4に記載の画像処理装置において、
前記第1の画像データが表す画像の位置の調整は、前記第1の円と同心であり、前記第2の径より大きく前記第1の径より小さい第3の径を有する第3の円を基準として実行される、画像処理装置。
The image processing apparatus according to claim 4.
Adjustment of the position of the image represented by the first image data is performed by adjusting a third circle that is concentric with the first circle and has a third diameter that is larger than the second diameter and smaller than the first diameter. An image processing apparatus executed as a reference.
請求項1ないし請求項7のいずれかに記載の画像処理装置において、
画像配置部は、前記第1の画像データが表す画像を前記対象領域に配置する際に、前記第1の画像データが表す画像の位置および大きさの少なくとも一方に加えて、前記第1の画像データが表す画像の角度を調整する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 7,
The image placement unit, when placing the image represented by the first image data in the target area, in addition to at least one of the position and size of the image represented by the first image data, An image processing apparatus that adjusts an angle of an image represented by data.
請求項1ないし請求項8のいずれかに記載の画像処理装置において、  The image processing apparatus according to any one of claims 1 to 8,
前記顔領域は、2つの人物の顔を含んでいる、画像処理装置。  The image processing apparatus, wherein the face area includes two human faces.
請求項1ないし請求項のいずれかに記載の画像処理装置において、
前記円領域は、電子情報を記録するための円形の記録媒体のレーベル面に対応する領域である、画像処理装置。
The image processing apparatus according to any one of claims 1 to 9 ,
The circular area is an image processing apparatus corresponding to a label surface of a circular recording medium for recording electronic information.
第1の径を有する第1の円を外形とする円領域に対応する画像データを生成する方法であって、
前記円領域から前記第1の円の中心と前記第1の円の円周上の異なる2点とをそれぞれ結ぶ2本の線分により切り出される対象領域を規定し、
第1の画像データを取得し、
前記第1の画像データを解析して、前記第1の画像データが表す画像の中の人物の顔を含む顔領域に関する少なくとも画像における位置および大きさを特定する領域情報を取得し、
前記領域情報を用いて、前記第1の画像データが表す画像の前記対象領域に対する位置および大きさの少なくとも一方を調整し、前記顔領域が前記対象領域内に含まれるとともに前記顔領域の前記対象領域に対する面積比が所定値以上となるように、前記第1の画像データが表す画像を前記対象領域に配置し、
前記配置結果に基づいて、前記第1の画像データを加工することにより、前記対象領域に対応する第2の画像データを生成する、方法。
A method of generating image data corresponding to a circular region having a first circle having a first diameter as an outer shape,
Defining a target area to be cut out by two line segments respectively connecting the center of the first circle and two different points on the circumference of the first circle from the circular area;
Obtain first image data,
Analyzing the first image data to obtain face area information specifying at least the position and size in the image related to the face area including the face of a person in the image represented by the first image data;
Using the face area information, adjust at least one of the position and size of the image represented by the first image data with respect to the target area, and the face area is included in the target area and the face area An image represented by the first image data is arranged in the target region so that an area ratio with respect to the target region is a predetermined value or more ,
A method of generating second image data corresponding to the target region by processing the first image data based on the arrangement result.
第1の径を有する第1の円を外形とする円領域に対応する画像データを、コンピュータに生成させるためのコンピュータプログラムであって、
前記円領域から前記第1の円の中心と前記第1の円の円周上の異なる2点とをそれぞれ結ぶ2本の線分により切り出される対象領域を規定する機能と、
第1の画像データを取得する機能と、
前記第1の画像データを解析して、前記第1の画像データが表す画像の中の人物の顔を含む顔領域に関する少なくとも画像における位置および大きさを特定する領域情報を取得する機能と、
前記領域情報を用いて、前記第1の画像データが表す画像の前記対象領域に対する位置および大きさの少なくとも一方を調整し、前記顔領域が前記対象領域内に含まれるとともに前記顔領域の前記対象領域に対する面積比が所定値以上となるように、前記第1の画像データが表す画像を前記対象領域に配置する機能と、
前記配置結果に基づいて、前記第1の画像データを加工することにより、前記対象領域に対応する第2の画像データを生成する機能と、
を前記コンピュータに実現させるコンピュータプログラム。
A computer program for causing a computer to generate image data corresponding to a circular region whose outer shape is a first circle having a first diameter,
A function for defining a target region cut out by two line segments respectively connecting the center of the first circle and two different points on the circumference of the first circle from the circular region;
A function of acquiring first image data;
A function of analyzing the first image data and acquiring face area information that specifies at least a position and a size in the image related to a face area including a human face in the image represented by the first image data;
Using the face area information, adjust at least one of the position and size of the image represented by the first image data with respect to the target area, and the face area is included in the target area and the face area A function of arranging an image represented by the first image data in the target region so that an area ratio to the target region is equal to or greater than a predetermined value ;
A function of generating second image data corresponding to the target area by processing the first image data based on the arrangement result;
A computer program for causing the computer to realize the above.
JP2006042550A 2006-02-20 2006-02-20 Image processing apparatus, image processing method, and image processing program Active JP4725351B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006042550A JP4725351B2 (en) 2006-02-20 2006-02-20 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006042550A JP4725351B2 (en) 2006-02-20 2006-02-20 Image processing apparatus, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2007221675A JP2007221675A (en) 2007-08-30
JP4725351B2 true JP4725351B2 (en) 2011-07-13

Family

ID=38498392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006042550A Active JP4725351B2 (en) 2006-02-20 2006-02-20 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP4725351B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090184989A1 (en) * 2008-01-18 2009-07-23 Dymo Controller
JP2011035593A (en) * 2009-07-31 2011-02-17 Nikon Corp Electronic apparatus
JP5464157B2 (en) 2011-02-25 2014-04-09 ブラザー工業株式会社 Image processing apparatus and image processing program
JP6969258B2 (en) * 2017-09-26 2021-11-24 カシオ計算機株式会社 Image pickup device, printing system, image processing method and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004228651A (en) * 2003-01-20 2004-08-12 Seiko Epson Corp Image reproduction system
JP2005246699A (en) * 2004-03-02 2005-09-15 Seiko Epson Corp Printer, printing method and program
JP2005301337A (en) * 2004-04-06 2005-10-27 Fuji Xerox Co Ltd Apparatus and method for image processing, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000270198A (en) * 1999-03-17 2000-09-29 Noritsu Koki Co Ltd Image processing method and method for processing photo print
JP2004104161A (en) * 2002-09-04 2004-04-02 Canon Inc Image processing method, image processing apparatus, storage medium, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004228651A (en) * 2003-01-20 2004-08-12 Seiko Epson Corp Image reproduction system
JP2005246699A (en) * 2004-03-02 2005-09-15 Seiko Epson Corp Printer, printing method and program
JP2005301337A (en) * 2004-04-06 2005-10-27 Fuji Xerox Co Ltd Apparatus and method for image processing, and program

Also Published As

Publication number Publication date
JP2007221675A (en) 2007-08-30

Similar Documents

Publication Publication Date Title
JP4605006B2 (en) Print data generation apparatus, print data generation method, and program
JP5187139B2 (en) Image processing apparatus and program
JP4375289B2 (en) Comment layout device
JP7167195B2 (en) PRINT SYSTEM, RECORDING METHOD, STORAGE MEDIUM AND PROGRAM
US20100290067A1 (en) Image processing apparatus, image processing method, and recording medium
JP6765858B2 (en) Image processing methods, programs, and image processing equipment
JP4229072B2 (en) Image processing device, printing device
JP4725351B2 (en) Image processing apparatus, image processing method, and image processing program
JP2011114717A (en) Color selection method, image processing method, image processing apparatus and program
JP7381211B2 (en) Image processing device and image processing method
JP5070155B2 (en) Image processing apparatus, image processing method, and program
US11691434B2 (en) Apparatus and method
JP2005252710A (en) Image processing apparatus, image processing method, and image processing program
JP2007124623A (en) Printing method, printer and printing program
US9355473B2 (en) Image forming apparatus having color conversion capability
JP2004358714A (en) Multifunction printer, label printing method and program
JP2007235686A (en) Image processing apparatus, image processing method, and image processing program
JP2017080933A (en) Molding system, molding operation control method, molding control device, and program
JP2009105541A (en) Image processing apparatus, method and program
JP2005080070A (en) Determination of recommended trimming size
JP4085265B2 (en) Print control apparatus and print control method
JP2005115768A (en) Image processing method, apparatus, and system, and image forming apparatus, and image processing system
US8781166B2 (en) Image processing apparatus and image processing program
US20120257221A1 (en) Image processing device and program
JP2005109807A (en) Image processing method, image processor, image forming device and image processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090120

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100813

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100824

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101022

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110328

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140422

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350