JP2010244452A - Image processing device, image processing method, program and printer - Google Patents

Image processing device, image processing method, program and printer Download PDF

Info

Publication number
JP2010244452A
JP2010244452A JP2009094640A JP2009094640A JP2010244452A JP 2010244452 A JP2010244452 A JP 2010244452A JP 2009094640 A JP2009094640 A JP 2009094640A JP 2009094640 A JP2009094640 A JP 2009094640A JP 2010244452 A JP2010244452 A JP 2010244452A
Authority
JP
Japan
Prior art keywords
image
region
person
enlarged
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2009094640A
Other languages
Japanese (ja)
Inventor
Eiji Yotsuya
栄史 四谷
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 JP2009094640A priority Critical patent/JP2010244452A/en
Publication of JP2010244452A publication Critical patent/JP2010244452A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To properly correct a portrait image. <P>SOLUTION: A portrait image detection unit 22 detects a portrait image including a face image. An adjustment unit 23 determines whether the portrait image is included in an enlargement area, and adjusts, when the portrait image is determined to be included in the enlargement area, the range of the enlargement area and the range of a compression area so that the portrait image is not included in the enlargement area. A slim correction unit 24 compresses the compression area of a target image at a predetermined compression rate, and enlarges the enlargement area of the target image at a predetermined enlargement rate. This invention can be applied to a printer. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像処理装置、画像処理方法、およびプログラム、並びに印刷装置に関する。   The present invention relates to an image processing apparatus, an image processing method, a program, and a printing apparatus.

デジタル画像を対象に、画像を変形する画像処理技術が知られている(特許文献1参照。)。特許文献1には、顔の画像上の一部の領域(頬の画像を表す領域)を補正領域として設定し、補正領域を所定のパターンに従い複数の小領域に分割し、小領域毎に設定された倍率で画像を拡大または圧縮することにより、顔の形状を変形する画像処理が開示されている。   An image processing technique for deforming an image for a digital image is known (see Patent Document 1). In Patent Document 1, a partial area (an area representing a cheek image) on a face image is set as a correction area, the correction area is divided into a plurality of small areas according to a predetermined pattern, and set for each small area. Image processing is disclosed in which a face shape is deformed by enlarging or compressing an image at a specified magnification.

特開2004‐318204号公報JP 2004-318204 A

ところで人物が写っている画像を、その人物の体型が好みの体型(例えば、細身の体型)に見えるように変形する技術もある。この変形処理として、画像内に圧縮領域を設定してこの領域に対して一律な圧縮処理を施し、同時に、当該圧縮領域外の拡大領域に対して一律な拡大処理を施すものがある。通常、被写体の像(例えば、人物の像)は、処理対象の全体画像の中央にあることが多いので、全体画像内の中央の領域が圧縮領域とされ、その両端が拡大領域とされている。   By the way, there is a technique for transforming an image of a person so that the figure of the person looks like a favorite figure (for example, a slim figure). As this deformation processing, there is a method in which a compression region is set in an image and uniform compression processing is performed on this region, and at the same time, uniform expansion processing is performed on an expansion region outside the compression region. Usually, an image of a subject (for example, an image of a person) is often in the center of the entire image to be processed, so the central area in the entire image is a compressed area and both ends are enlarged areas. .

本発明は、このような状況に鑑みてなされたものであり、適切に、人物の像を、見栄えよくなるように補正できるようにするものである。   The present invention has been made in view of such a situation, and appropriately corrects an image of a person so as to improve appearance.

本発明の一側面の画像処理装置は、補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理装置において、対象画像の圧縮領域を所定の圧縮率で圧縮し、対象画像の拡大領域を所定の拡大率で拡大する画像補正手段と、顔画像を含む人物画像を検出する検出手段と、人物画像が拡大領域に含まれているか否かを判定する判定手段と、人物画像が拡大領域に含まれていると判定された場合、人物画像が拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整手段とを有することを特徴とする。   An image processing apparatus according to one aspect of the present invention compresses or enlarges a compression area of a target image at a predetermined compression rate in an image processing apparatus that compresses or expands a target image to be corrected in a predetermined correction direction. An image correcting means for enlarging an enlarged area of the image at a predetermined enlargement ratio, a detecting means for detecting a person image including a face image, a determining means for determining whether or not the person image is included in the enlarged area, and a person Adjustment means for adjusting the range of the enlarged region and the range of the compressed region so that the person image is not included in the enlarged region when it is determined that the image is included in the enlarged region. .

拡大領域は、対象画像の補正方向の両端に設けられており、一方の拡大領域は人物画像を含むが、他方の拡大領域は人物画像を含まない場合、調整手段は、一方の拡大領域を、人物画像を含まないように、その拡大領域の範囲を狭め、人物画像を含まない範囲で、狭めた分の大きさだけ他方の拡大領域を拡大することができる。   The enlargement areas are provided at both ends in the correction direction of the target image, and when one enlargement area includes a person image, but the other enlargement area does not contain a person image, the adjustment unit selects one enlargement area, The range of the enlarged area can be narrowed so as not to include the person image, and the other enlarged area can be enlarged by the amount of the narrowed area within the range not including the person image.

人物画像が複数検出された場合において、調整手段は、人物画像が拡大領域に含まれないように、その拡大領域の範囲を狭め、人物画像の間の領域に、人物画像を含まない範囲で、狭めた分の大きさに応じた範囲の拡大領域を設定することができる。   When a plurality of person images are detected, the adjustment means narrows the range of the enlarged area so that the person image is not included in the enlarged area, and the area between the person images does not include the person image. An enlarged region in a range corresponding to the size of the narrowed portion can be set.

調整手段は、対象画像の補正方向の中心を含んで拡大範囲が設定される場合、人物画像の間の領域への拡大領域の設定を禁止することができる。   The adjustment means can prohibit the setting of the enlargement area to the area between the person images when the enlargement range is set including the center of the correction direction of the target image.

調整手段は、人物画像の間隔が所定の距離以上離れている場合、人物画像の間の領域への拡大領域の設定を禁止することができる。   The adjustment means can prohibit the setting of the enlarged region to the region between the human images when the interval between the human images is more than a predetermined distance.

本発明の一側面の画像処理方法は、補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理装置の画像処理方法において、対象画像の圧縮領域を所定の圧縮率で圧縮し、対象画像の拡大領域を所定の拡大率で拡大する画像補正ステップと、顔画像を含む人物画像を検出する検出ステップと、人物画像が拡大領域に含まれているか否かを判定する判定ステップと、人物画像が拡大領域に含まれていると判定された場合、人物画像が拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整ステップとを含むことを特徴とする。   An image processing method according to one aspect of the present invention is an image processing method of an image processing apparatus that compresses or enlarges a target image to be corrected in a predetermined correction direction, and compresses a target image at a predetermined compression rate. An image correction step for compressing and enlarging the enlargement area of the target image at a predetermined enlargement ratio, a detection step for detecting a person image including a face image, and a determination for determining whether the person image is included in the enlargement area And an adjustment step for adjusting the range of the enlarged region and the range of the compressed region so that the person image is not included in the enlarged region when it is determined that the person image is included in the enlarged region. It is characterized by.

本発明の一側面のプログラムは、補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理をコンピューターに実行させるプログラムであって、対象画像の圧縮領域を所定の圧縮率で圧縮し、対象画像の拡大領域を所定の拡大率で拡大する画像補正ステップと、顔画像を含む人物画像を検出する検出ステップと、人物画像が拡大領域に含まれているか否かを判定する判定ステップと、人物画像が拡大領域に含まれていると判定された場合、人物画像が拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整ステップとを含む画像処理をコンピューターに実行させることを特徴とする。   A program according to one aspect of the present invention is a program that causes a computer to execute image processing for compressing or enlarging a target image that is a target of correction processing in a predetermined correction direction. The image correction step for compressing the image to enlarge the enlargement area of the target image at a predetermined enlargement ratio, the detection step for detecting a person image including a face image, and determining whether the person image is included in the enlargement area A determination step, and an adjustment step for adjusting the range of the enlarged region and the range of the compressed region so that the person image is not included in the enlarged region when it is determined that the person image is included in the enlarged region. The image processing is executed by a computer.

本発明の一側面の画像処理装置、画像処理方法、またはプログラムにおいては、補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理をコンピューターに実行させるプログラムであって、補正処理の対象となる対象画像から顔画像を含む人物画像が検出され、人物画像が拡大領域に含まれているか否かが判定され、人物画像が拡大領域に含まれていると判定された場合、人物画像が拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲が調整され、圧縮領域が所定の圧縮率で圧縮され、拡大領域が所定の拡大率で拡大される。   An image processing apparatus, an image processing method, or a program according to one aspect of the present invention is a program that causes a computer to execute image processing for compressing or enlarging a target image to be corrected in a predetermined correction direction. When a human image including a face image is detected from the target image to be corrected, it is determined whether or not the human image is included in the enlarged region, and it is determined that the human image is included in the enlarged region The range of the enlarged region and the range of the compressed region are adjusted so that the person image is not included in the enlarged region, the compressed region is compressed at a predetermined compression rate, and the enlarged region is enlarged at the predetermined enlarged rate.

本発明の一側面の印刷装置は、補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する印刷装置において、対象画像の圧縮領域を所定の圧縮率で圧縮し、対象画像の拡大領域を所定の拡大率で拡大する画像補正手段と、顔画像を含む人物画像を検出する検出手段と、人物画像が拡大領域に含まれているか否かを判定する判定手段と、人物画像が拡大領域に含まれていると判定された場合、人物画像が拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整手段と、画像補正手段により補正された画像を印刷媒体に印刷する印刷手段とを有することを特徴とする。   A printing apparatus according to an aspect of the present invention is a printing apparatus that compresses or expands a target image to be corrected in a predetermined correction direction, compresses a compression area of the target image at a predetermined compression rate, and An image correcting means for enlarging the enlarged area at a predetermined magnification, a detecting means for detecting a human image including a face image, a determining means for determining whether or not the human image is included in the enlarged area, and a human image When it is determined that the image is included in the enlarged region, the image corrected by the image correcting unit and the adjusting unit that adjusts the range of the enlarged region and the compressed region so that the person image is not included in the enlarged region Printing means for printing on a print medium.

本発明によれば、適切に、人物の像を補正することができる。   According to the present invention, it is possible to appropriately correct an image of a person.

本発明の実施の形態に係るプリンターのハードウェアの構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration example of hardware of a printer according to an embodiment of the present invention. 図1に示すプリンターにおいてスリム補正の制御処理を実行するための機能的構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a functional configuration example for executing slim correction control processing in the printer illustrated in FIG. 1. 対象画像TIの拡大領域Raと圧縮領域Rbの例を示す図である。It is a figure which shows the example of expansion area Ra and compression area | region Rb of the object image TI. 図1に示すプリンターにおいて実行されるスリム処理の制御処理の流れを示すフローチャートである。2 is a flowchart showing a flow of slim processing control processing executed in the printer shown in FIG. 1. 人物画像FBの検出例を示す図である。It is a figure which shows the example of a detection of person image FB. 人物画像FBの検出例および領域の調整例を示す図である。It is a figure which shows the example of a detection of person image FB, and the example of adjustment of an area | region. 他の人物画像FBの検出例および領域の調整例を示す図である。It is a figure which shows the example of a detection of the other person image FB, and the example of adjustment of an area | region. 他の人物画像FBの検出例および領域の調整例を示す図である。It is a figure which shows the example of a detection of the other person image FB, and the example of adjustment of an area | region. 他の人物画像FBの検出例および領域の調整例を示す図である。It is a figure which shows the example of a detection of the other person image FB, and the example of adjustment of an area | region. 他の人物画像FBの検出例および領域の調整例を示す図である。It is a figure which shows the example of a detection of the other person image FB, and the example of adjustment of an area | region.

以下に本発明の実施の形態を説明するが、本発明の構成要件と、発明の詳細な説明に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、発明の詳細な説明に記載されていることを確認するためのものである。従って、発明の詳細な説明中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。   Embodiments of the present invention will be described below. Correspondences between the configuration requirements of the present invention and the embodiments described in the detailed description of the present invention are exemplified as follows. This description is to confirm that the embodiments supporting the present invention are described in the detailed description of the invention. Accordingly, although there are embodiments that are described in the detailed description of the invention but are not described here as embodiments corresponding to the constituent elements of the present invention, It does not mean that the embodiment does not correspond to the configuration requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.

本発明の一側面の画像処理装置は、
補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理装置において、
対象画像の圧縮領域を所定の圧縮率で圧縮し、対象画像の拡大領域を所定の拡大率で拡大する画像補正手段(たとえば、図2のスリム補正部24)と、
顔画像を含む人物画像を検出する検出手段(たとえば、図2の人物画像検出部22)と、
人物画像が拡大領域に含まれているか否かを判定する判定手段(たとえば、図2の調整部23)と、
人物画像が拡大領域に含まれていると判定された場合、人物画像が拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整手段(たとえば、図2の調整部23)と
を有することを特徴とする。
An image processing apparatus according to one aspect of the present invention includes:
In an image processing apparatus that compresses or expands a target image to be corrected in a predetermined correction direction,
Image correction means (for example, the slim correction unit 24 in FIG. 2) that compresses the compression area of the target image at a predetermined compression ratio and expands the expansion area of the target image at a predetermined expansion ratio;
Detecting means for detecting a human image including a face image (for example, human image detecting unit 22 in FIG. 2);
Determination means for determining whether or not a person image is included in the enlarged region (for example, the adjustment unit 23 in FIG. 2);
When it is determined that the person image is included in the enlarged area, an adjustment unit that adjusts the range of the enlarged area and the range of the compressed area so that the person image is not included in the enlarged area (for example, the adjustment in FIG. 2) And 23).

拡大領域は、対象画像の補正方向の両端に設けられており、一方の拡大領域は人物画像を含むが、他方の拡大領域は人物画像を含まない場合(たとえば、図6または図7)、
調整手段は、一方の拡大領域を、人物画像を含まないように、その拡大領域の範囲を狭め、
人物画像を含まない範囲で、狭めた分の大きさだけ他方の拡大領域を拡大する
ことができる。
Enlarged areas are provided at both ends in the correction direction of the target image, and when one enlarged area includes a person image but the other enlarged area does not include a person image (for example, FIG. 6 or FIG. 7),
The adjusting means narrows the range of the enlarged region so that one enlarged region does not include the person image,
The other enlargement area can be enlarged by the size of the narrowed area within the range not including the human image.

人物画像が複数検出された場合において、
調整手段は、人物画像が拡大領域に含まれないように、その拡大領域の範囲を狭め、人物画像の間の領域に、人物画像を含まない範囲で、狭めた分の大きさに応じた範囲の拡大領域を設定する(たとえば、図8から図10)ことができる。
When multiple person images are detected,
The adjusting means narrows the range of the enlarged region so that the human image is not included in the enlarged region, and includes a range corresponding to the size of the narrowed portion without including the human image in the region between the human images. Can be set (for example, FIG. 8 to FIG. 10).

調整手段は、対象画像の補正方向の中心を含んで拡大範囲が設定される場合、人物画像の間の領域への拡大領域の設定を禁止する(たとえば、図10)ことができる。   When the enlargement range is set including the center of the correction direction of the target image, the adjustment unit can prohibit the setting of the enlargement region to the region between the person images (for example, FIG. 10).

調整手段は、人物画像の間隔が所定の距離以上離れている場合、人物画像の間の領域への拡大領域の設定を禁止する(たとえば、図10)ことができる。   The adjustment means can prohibit the setting of the enlarged area to the area between the person images when the interval between the person images is more than a predetermined distance (for example, FIG. 10).

図1は、本発明を適用したプリンター1のハードウェアの構成例を示すブロック図である。このプリンター1は、メモリーカード18等から取得した画像データに基づき画像を印刷する、いわゆるダイレクトプリントに対応したカラーインクジェットプリンターである。なおカラー印刷だけでなく、モノクロ印刷についても、本発明を適用することができる。   FIG. 1 is a block diagram illustrating a hardware configuration example of a printer 1 to which the present invention is applied. The printer 1 is a color inkjet printer that supports so-called direct printing, in which an image is printed based on image data acquired from a memory card 18 or the like. Note that the present invention can be applied not only to color printing but also to monochrome printing.

プリンター1は、CPU11、内部メモリー12、操作部13、表示部14、プリンターエンジン15、およびカードインターフェース(I/F)16を備えている。   The printer 1 includes a CPU 11, an internal memory 12, an operation unit 13, a display unit 14, a printer engine 15, and a card interface (I / F) 16.

CPU(central processing unit)11は、各部を制御して、内部メモリー12に格納されているプログラムに応じて各種の処理等を実行する。   A CPU (central processing unit) 11 controls each unit and executes various processes according to a program stored in the internal memory 12.

たとえばCPU11は、補正処理の対象となる画像(以下、対象画像TIとも称する)の圧縮領域を所定の方向に圧縮し、また対象画像TIの拡大領域を所定の方向に拡大する補正(以下、スリム補正とも称する)を行う。このスリム補正を実行する処理(以下、スリム補正制御処理とも称する)の詳細は、後述する。   For example, the CPU 11 compresses a compression area of an image to be corrected (hereinafter also referred to as a target image TI) in a predetermined direction, and corrects the expansion area of the target image TI in a predetermined direction (hereinafter referred to as slim). (Also referred to as correction). Details of the processing for executing the slim correction (hereinafter also referred to as slim correction control processing) will be described later.

内部メモリー12は、CPU11が実行する各種プログラムや各種データを格納しているROM(Read Only Memory)、及びCPU11が実行対象とするプログラムやデータを一時的に格納するRAM(Random Access Memory)等を有して構成されている。   The internal memory 12 includes a ROM (Read Only Memory) that stores various programs executed by the CPU 11 and various data, and a RAM (Random Access Memory) that temporarily stores programs and data to be executed by the CPU 11. It is configured.

操作部13は、ボタンやタッチパネルの1つまたは複数により構成され、ユーザーによる操作内容をCPU11に通知する。   The operation unit 13 includes one or a plurality of buttons and a touch panel, and notifies the CPU 11 of the operation content by the user.

表示部14は、液晶ディスプレイ等により構成され、CPU11から供給された表示データに対応する画像を表示する。   The display unit 14 includes a liquid crystal display and displays an image corresponding to the display data supplied from the CPU 11.

プリンターエンジン15は、CPU11から供給された印刷データに基づき印刷を行う印刷機構である。   The printer engine 15 is a printing mechanism that performs printing based on the print data supplied from the CPU 11.

カードインターフェース(I/F)16は、カードスロット17に挿入されたメモリーカード18との間でデータのやり取りを行うためのインターフェースである。なお、この例では、メモリーカード18にRGBデータとしての画像データが格納されており、プリンター1は、カードインターフェース16を介してメモリーカード18に格納された画像データの取得を行う。   The card interface (I / F) 16 is an interface for exchanging data with the memory card 18 inserted in the card slot 17. In this example, image data as RGB data is stored in the memory card 18, and the printer 1 acquires the image data stored in the memory card 18 via the card interface 16.

プリンター1の各構成要素は、バス19を介して互いに接続されている。   The components of the printer 1 are connected to each other via a bus 19.

なおプリンター1は、さらに、他の機器(例えばデジタルスチルカメラ)とのデータ通信を行うためのインターフェースを備えているとしてもよい。   The printer 1 may further include an interface for performing data communication with other devices (for example, a digital still camera).

図2は、スリム補正制御処理を実行するためのプリンター1の機能的構成例を示すブロック図である。この機能は、CPU11が内部メモリー12に記憶されている所定のプログラムを実行することより実現可能となる。   FIG. 2 is a block diagram illustrating a functional configuration example of the printer 1 for executing the slim correction control process. This function can be realized by the CPU 11 executing a predetermined program stored in the internal memory 12.

顔画像検出部21は、たとえばメモリーカード18から読み出されてプリンター1に入力された、補正処理の対象となる対象画像TIを解析し、対象画像TIの人物の顔部分が写っていると推定される画像を含む領域(以下、顔画像FAと称する)を検出する。   The face image detection unit 21 analyzes a target image TI that is a target of correction processing, for example, read from the memory card 18 and input to the printer 1, and estimates that a human face portion of the target image TI is captured. An area including an image to be processed (hereinafter referred to as a face image FA) is detected.

人物画像検出部22は、顔画像FAの大きさまたは位置に基づいて、人物の顔、胴体、脚等の全体が写っていると推定される画像を含む領域(以下、人物画像FBと称する)を検出する。なおこの例では、顔画像FAを含む領域を人物画像FBとするが、顔画像FAを含まない領域を人物画像FBとすることもできる。また顔画像FAに基づいて人物画像FBを検出するが、人物画像FBの検出は、これに限定するものではない。   The person image detection unit 22 includes an area (hereinafter referred to as a person image FB) that includes an image that is estimated to include the entire face, body, legs, and the like of the person based on the size or position of the face image FA. Is detected. In this example, the area including the face image FA is the person image FB, but the area not including the face image FA may be the person image FB. The person image FB is detected based on the face image FA, but the detection of the person image FB is not limited to this.

調整部23は、対象画像TIに設定されている圧縮領域および拡大領域の範囲を、拡大領域に人物画像FBが含まれないように調整する。   The adjustment unit 23 adjusts the range of the compression area and the enlargement area set in the target image TI so that the person image FB is not included in the enlargement area.

図3は、初期状態の圧縮領域および拡大領域の例を示す図である。この例では、初期状態として、対象画像TIの両端が拡大領域Raに設定され、中央部分が圧縮領域Rbに設定されている。調整部23は、拡大領域Raに人物画像FBが含まれている場合、その拡大画像Raに人物画像FBが含まれないように、拡大領域Raの範囲を狭めるなどの調整を行う。   FIG. 3 is a diagram illustrating an example of the compressed region and the enlarged region in the initial state. In this example, as an initial state, both ends of the target image TI are set to the enlarged region Ra, and the central portion is set to the compressed region Rb. When the person image FB is included in the enlarged region Ra, the adjustment unit 23 performs adjustment such as narrowing the range of the enlarged region Ra so that the person image FB is not included in the enlarged image Ra.

図2に戻りスリム補正部24は、スリム補正を行う。すなわち圧縮領域Rbを画像上の横方向(図3の例では、X軸方向)に、所定の圧縮率で圧縮するとともに、画サイズを維持するために、その圧縮率に応じた拡大率で、拡大領域Raを拡大する補正が行われる。なお圧縮または拡大される方向(図3の例では、X軸の方向)を、個々に区別する必要がない場合、単に補正方向と称する。   Returning to FIG. 2, the slim correction unit 24 performs slim correction. That is, in order to compress the compression region Rb in the horizontal direction on the image (X-axis direction in the example of FIG. 3) at a predetermined compression rate and maintain the image size, the enlargement rate according to the compression rate is Correction for enlarging the enlargement area Ra is performed. Note that the direction to be compressed or expanded (in the example of FIG. 3, the direction of the X axis) is simply referred to as a correction direction when it is not necessary to distinguish each direction.

出力制御部25は、補正処理が施された対象画像TIの画像データから表示データまたは印刷データを生成する処理を実行する。表示データは表示部14に供給されて表示される。印刷データはプリンターエンジン15に供給され、印刷データに基づく画像の印刷が実行される。   The output control unit 25 executes a process of generating display data or print data from the image data of the target image TI that has been subjected to the correction process. The display data is supplied to the display unit 14 and displayed. The print data is supplied to the printer engine 15 and an image is printed based on the print data.

図4は、プリンター1によるスリム補正制御処理の流れを示すフローチャートである。このフローチャートを参照して、スリム補正処理について説明する。   FIG. 4 is a flowchart showing a flow of slim correction control processing by the printer 1. The slim correction process will be described with reference to this flowchart.

ステップS1において、顔画像検出部21は、スリム補正処理の対象となる対象画像TIにおける顔画像FAの検出を行う。   In step S <b> 1, the face image detection unit 21 detects a face image FA in the target image TI that is a target of slim correction processing.

この顔画像FAの検出は、たとえば人物の目、鼻、及び口等の基本的な形状を表すテンプレートを利用したパターンマッチングによる方法(たとえば、特開2006−279460号公報参照)といった公知の検出方法を用いて実行することができる。   The detection of the face image FA is a known detection method such as a pattern matching method using a template representing a basic shape such as a person's eyes, nose, and mouth (see, for example, JP-A-2006-279460). Can be used.

この顔画像検出処理では、顔画像FAの位置とサイズ(顔位置を基点とした矩形画素領域の縦横サイズ)からなる顔領域データ、及び顔の正立や倒立といった構図姿勢を顔角度として表している顔姿勢データが、顔情報として取得される。   In this face image detection process, face area data composed of the position and size of the face image FA (vertical and horizontal size of the rectangular pixel area with the face position as a base point), and a composition posture such as face upright or inverted are expressed as face angles. Face posture data is acquired as face information.

次にステップS2において、人物画像検出部22は、対象画像TIにおける人物の顔、胴体や脚を含む領域を人物画像FBとして検出する。具体的には、検出された顔画像FAにはそのサイズと構図姿勢に関するデータが付随しているので、対象画像TIにおける顔の大きさと顔の姿勢から、平均的な頭身比を基準として、顔の下側に位置する胴体や脚の大きさが推定されて、顔画像FAに対応する人物領域FBが検出される。   Next, in step S2, the person image detection unit 22 detects an area including a person's face, body, and legs in the target image TI as a person image FB. Specifically, since the detected face image FA is accompanied by data on its size and composition posture, the average head-to-body ratio is used as a reference from the face size and face posture in the target image TI. The size of the torso and legs located below the face is estimated, and the person area FB corresponding to the face image FA is detected.

図5は、人物画像FBの検出例を示す図である。図5には、人物像が模式的に示されているとともに、その人物像の顔画像FAおよび人物画像FBが点線で囲まれて示されている。   FIG. 5 is a diagram illustrating a detection example of the person image FB. In FIG. 5, a person image is schematically shown, and a face image FA and a person image FB of the person image are surrounded by dotted lines.

図4に戻りステップS3において、調整部23は、人物画像FBが拡大領域Raに含まれているか否かを判定し、含まれていると判定した場合、処理はステップS4に進む。   Returning to FIG. 4, in step S <b> 3, the adjustment unit 23 determines whether or not the person image FB is included in the enlarged region Ra. If it is determined that the person image FB is included, the process proceeds to step S <b> 4.

図6から図10は、人物画像FBと拡大領域Raの位置関係を示す図である。なお図6から図10においては、図5に示した人物画像FBの範囲を示す点線の枠は省略されている。図6の上側の例では、1個の人物画像FBが存在し、その人物画像FBの一部が左側の拡大領域Raに含まれている。図7の上側の例では、1個の人物画像FBが存在し、その人物画像FBの全部が左側の拡大領域Raに含まれている。   6 to 10 are diagrams showing the positional relationship between the person image FB and the enlarged region Ra. 6 to 10, the dotted frame indicating the range of the person image FB shown in FIG. 5 is omitted. In the upper example of FIG. 6, there is one person image FB, and a part of the person image FB is included in the left enlarged region Ra. In the example on the upper side of FIG. 7, there is one person image FB, and the entire person image FB is included in the enlarged region Ra on the left side.

図8の最上段の例では、2個の人物画像FBが存在し、左側の人物画像FBの全部が左側の拡大領域Raに含まれている。図9の最上段の例では、3個の人物画像FBが存在し、最も右側の人物画像FBの全部が右側の拡大領域Raに含まれている。図10の最上段の例では、2個の人物画像FBが存在し、左側の人物画像FBの全部が左側の拡大領域Raに、右側の人物画像FBの全部が右側の拡大領域Raに、それぞれ含まれている。   In the uppermost example of FIG. 8, there are two person images FB, and the entire left person image FB is included in the left enlarged area Ra. In the example at the top of FIG. 9, there are three person images FB, and the rightmost person image FB is all included in the right enlarged region Ra. In the uppermost example of FIG. 10, there are two person images FB, all of the left person images FB are in the left enlarged area Ra, and all of the right person images FB are in the right enlarged area Ra. include.

図6から図10の上側または最上段に示したように、人物画像FBが拡大領域Raに含まれている場合、処理は、ステップS4に進む。   If the person image FB is included in the enlarged region Ra as shown in the upper side or uppermost row of FIGS. 6 to 10, the process proceeds to step S4.

ステップS4において、調整部23は、人物画像FBが拡大領域Raに含まれないように、拡大領域Raおよび圧縮領域Rbの範囲を調整する。その後、ステップS5において、スリム補正部24は、決定された圧縮領域Rbを補正方向に所定の圧縮率で圧縮するとともに、その圧縮率に応じた拡大率で、拡大領域Raを拡大する。   In step S4, the adjusting unit 23 adjusts the ranges of the enlarged region Ra and the compressed region Rb so that the person image FB is not included in the enlarged region Ra. Thereafter, in step S5, the slim correction unit 24 compresses the determined compression region Rb in the correction direction at a predetermined compression rate, and expands the expansion region Ra at an expansion rate corresponding to the compression rate.

ステップS3で、人物画像FBが拡大領域Raに含まれていないと判定された場合(たとえば図5)、スリム補正部24は、ステップS5において、初期設定の拡大領域Raおよび圧縮領域Rbにおいて、圧縮領域Rbを補正方向に所定の圧縮率で圧縮するとともに、その圧縮率に応じた拡大率で、拡大領域Raを拡大する。   When it is determined in step S3 that the person image FB is not included in the enlarged region Ra (for example, FIG. 5), the slim correction unit 24 performs compression in the initially set enlarged region Ra and compression region Rb in step S5. The area Rb is compressed in the correction direction at a predetermined compression rate, and the enlarged area Ra is enlarged at an enlargement ratio corresponding to the compression ratio.

ステップS4における領域調整処理を、図6から図10を参照して具体的に説明する。   The region adjustment processing in step S4 will be specifically described with reference to FIGS.

たとえば図6の上側に示したように人物画像FBが拡大領域Raに含まれている場合、拡大領域Raの範囲が、図6の下側に示すように、X軸方向におけるその拡大領域の右端が人物画像FBの左端まで狭められる。そして人物画像FBを含まない右側の拡大領域Raの範囲が、狭められた分だけ広げられる。圧縮領域Rbの範囲は、拡大領域Raの範囲の変更に伴って変更される。   For example, when the person image FB is included in the enlarged region Ra as shown in the upper side of FIG. 6, the range of the enlarged region Ra is the right end of the enlarged region in the X-axis direction as shown in the lower side of FIG. Is narrowed to the left end of the person image FB. Then, the range of the enlarged region Ra on the right side that does not include the person image FB is widened by the narrowed amount. The range of the compression region Rb is changed along with the change of the range of the enlarged region Ra.

図7の上側に示すように人物画像FBが拡大領域Raに含まれている場合、すなわち人物画像FBの端(図7の例では、左端)から対象画像TIの端(図7の例では、左端)までの距離が閾値XL以下である場合、人物画像FBを含む左側の拡大領域Raが、図7の下側に示したようにが削除される(すなわち拡大領域Raの範囲が、X軸方向におけるその拡大領域Raの右端が対象画像TIの左端まで狭められる)。そして人物画像FBを含まない右側の拡大領域Raの範囲が削除された分だけ広げられる。圧縮領域Rbの範囲は、拡大領域Raの範囲の変更に伴って変更される。   As shown in the upper side of FIG. 7, when the person image FB is included in the enlarged region Ra, that is, from the end of the person image FB (the left end in the example of FIG. 7) to the end of the target image TI (in the example of FIG. When the distance to the left end is equal to or less than the threshold value XL, the left enlarged region Ra including the person image FB is deleted as shown in the lower side of FIG. 7 (that is, the range of the enlarged region Ra is the X axis). The right end of the enlarged region Ra in the direction is narrowed to the left end of the target image TI). Then, the range of the enlarged region Ra on the right side that does not include the person image FB is expanded by the amount deleted. The range of the compression region Rb is changed along with the change of the range of the enlarged region Ra.

なお図6の例では、人物画像FBの左端から対象画像TIの左端までの距離が閾値XLより大きいので、拡大領域Raの範囲が人物画像FBを含む領域分だけ狭められている。   In the example of FIG. 6, since the distance from the left end of the person image FB to the left end of the target image TI is larger than the threshold value XL, the range of the enlarged area Ra is narrowed by the area including the person image FB.

図8の最上段に示すように人物画像FBが拡大領域Raに含まれている場合、左側の人物画像FBの左端から対象画像TIの左端までの距離が閾値XL以下であるので、人物画像FBを含む左側の拡大領域Raが、図8の上から第2段目に示すように削除される。この例の場合、人物画像FBを含まない右側の拡大領域Raの範囲を、図8の上から第2段目に示すように削除した分だけ広げると、広げられた右側の拡大領域Raが右側の人物画像FBを含むようになる。そこでこのような場合、図8の上から第3段目に示すように、左側の拡大領域Raは削除されるが、右側の拡大領域Raは広げられない。圧縮領域Rbは、左側の拡大領域Raが削除された分だけその範囲が変更される。   When the person image FB is included in the enlarged region Ra as shown in the uppermost part of FIG. 8, the distance from the left end of the left person image FB to the left end of the target image TI is equal to or less than the threshold value XL. As shown in the second row from the top in FIG. In the case of this example, when the range of the right enlarged region Ra that does not include the person image FB is expanded by the amount deleted as shown in the second row from the top in FIG. 8, the expanded right enlarged region Ra becomes the right side. The person image FB is included. Therefore, in such a case, as shown in the third row from the top in FIG. 8, the left enlarged region Ra is deleted, but the right enlarged region Ra is not expanded. The range of the compression area Rb is changed as much as the left-side enlarged area Ra is deleted.

図9の最上段に示すように人物画像FBが拡大領域Raに含まれている場合、右側の人物画像FBの左端から対象画像TIの右端までの距離は閾値XL以下であるので、人物画像FBを含む右側の拡大領域Raが、図9の上から第2段目に示すようにされる。この場合も、人物画像FBを含まない左側の拡大領域Raの範囲を、削除した分広げると、広げられた左側の拡大領域Raは左側の人物画像FBを含むようになるので、図9の上から3段目に示すように、右側の拡大領域Raが削除されるが、左側の拡大領域Raの範囲は広げられない。圧縮領域Rbは、右側の拡大領域Raが削除された分その範囲が変更される。   When the person image FB is included in the enlarged region Ra as shown in the uppermost part of FIG. 9, the distance from the left end of the right person image FB to the right end of the target image TI is equal to or less than the threshold value XL. The right-side enlarged region Ra including is shown in the second row from the top in FIG. Also in this case, if the left enlarged region Ra that does not include the person image FB is expanded by the amount deleted, the expanded left enlarged region Ra includes the left person image FB. As shown in the third row, the right enlarged region Ra is deleted, but the left enlarged region Ra cannot be expanded. The range of the compression area Rb is changed as the right-side enlarged area Ra is deleted.

図10の最上段に示すように人物画像FBが拡大領域Raに含まれている場合、左側の人物画像FBの左端から対象画像TIの左端までの距離が閾値XL以下であるので、左側の拡大領域Raが、図10の上から第2番目に示すように削除される。この場合、右側の拡大領域Raにはすでに人物画像FBが含まれているので、右側の拡大領域Raの範囲を、図10の上から第2段目に示すように削除した分だけ広げると、当然、広げられた右側の拡大領域Raには右側の人物画像FBが含まれる。   When the person image FB is included in the enlargement area Ra as shown in the uppermost part of FIG. 10, the distance from the left end of the left person image FB to the left end of the target image TI is equal to or less than the threshold value XL, so The area Ra is deleted as shown second from the top in FIG. In this case, since the person image FB is already included in the right-side enlarged region Ra, if the range of the right-side enlarged region Ra is expanded by the amount deleted as shown in the second row from the top of FIG. Naturally, the right-side person image FB is included in the enlarged right-side enlarged area Ra.

右側の人物画像FBの右端から対象画像TIの右端までの距離が閾値XL以下であるので、右側の拡大領域Raが削除される。この場合も、左側の拡大領域Raにはすでに人物画像FBが含まれているので、左側の拡大領域Raの範囲が、削除した分だけ広げると、拡大された左側の拡大領域Raには左側の人物画像FBが含まれる。   Since the distance from the right end of the right person image FB to the right end of the target image TI is equal to or smaller than the threshold value XL, the right enlarged region Ra is deleted. Also in this case, since the person image FB is already included in the left enlarged region Ra, if the left enlarged region Ra is expanded by the amount of deletion, the enlarged left enlarged region Ra has a left side. A person image FB is included.

すなわちこの場合、図10の上から第3段目に示すように、左側および右側の拡大領域Raの両方が削除され、拡大領域Raは設けられない。この場合、圧縮領域Rbも設けられず、スリム補正は行われない(ステップS5の処理はスキップされる)。   That is, in this case, as shown in the third row from the top in FIG. 10, both the left and right enlarged areas Ra are deleted, and the enlarged area Ra is not provided. In this case, the compression region Rb is not provided, and slim correction is not performed (the process of step S5 is skipped).

以上のように、人物画像FBが拡大領域Raに含まれている場合、人物画像FBが拡大領域Raに含まれないように、拡大領域Raおよび圧縮領域Rbの範囲を調整して、スリム補正を行うようにしたので、人物画像FBが横方向に拡大されないようにすることができる。   As described above, when the person image FB is included in the enlarged area Ra, the range of the enlarged area Ra and the compression area Rb is adjusted so that the person image FB is not included in the enlarged area Ra, and slim correction is performed. Since this is done, the person image FB can be prevented from being enlarged in the horizontal direction.

[他の拡大領域Raと圧縮領域Rbの調整方法]
なお図8から図10に湿したように、狭められた拡大領域Raの大きさだけ他方の拡大領域Raの範囲を広げることによって人物画像FBを含むようになる場合、拡大領域Raの拡大は行われなかった。そこでこのように拡大領域Raの拡大を行うことができな場合、拡大領域Raを広げる代わりに、人物画像FBが存在しない領域に、新たな拡大領域Raを設けることができる。
[Adjustment method of other enlarged region Ra and compression region Rb]
As shown in FIGS. 8 to 10, when the person image FB is included by expanding the range of the other enlarged region Ra by the size of the narrowed enlarged region Ra, the enlarged region Ra is enlarged. I wasn't. Therefore, when the enlargement area Ra cannot be enlarged in this way, a new enlargement area Ra can be provided in an area where the person image FB does not exist, instead of enlarging the enlargement area Ra.

たとえば図8から図10の例では、図8から図10の上から第4段目に示すように、人物画像FBの間の領域に、削除された分の大きさの拡大領域Raが設けられる。   For example, in the example of FIGS. 8 to 10, as shown in the fourth row from the top of FIGS. 8 to 10, an enlarged area Ra having a size corresponding to the deleted size is provided in the area between the person images FB. .

このように拡大領域Raを設けるようにすれば、図8から図10の上から第3段目の場合に比べ圧縮率を大きくすることができる。   If the enlarged region Ra is provided in this way, the compression rate can be increased compared to the case of the third stage from the top of FIGS.

[他の拡大領域Raと圧縮領域Rbの調整方法]
たとえば、ある銅像を挟んで記念撮影を行うような場合、人物画像FBの間には、主となる被写体(いまの場合、銅像)の像が存在することが考えられる。そこで人物画像FBの間に新たな拡大領域Raを設けるようにする場合、人物画像FBの間の距離が一定距離以上あるとき、または対象画像TIの補正方向の中心を含んで拡大領域Raが設定されるようなとき、拡大領域Raの設定を行わないようにすることができる。
[Adjustment method of other enlarged region Ra and compression region Rb]
For example, when taking a commemorative photo with a certain copper image in between, it is conceivable that an image of a main subject (in this case, a copper image) exists between the person images FB. Therefore, when a new enlarged area Ra is provided between the person images FB, the enlarged area Ra is set when the distance between the person images FB is a certain distance or more, including the center of the correction direction of the target image TI. In such a case, it is possible not to set the enlarged region Ra.

たとえば図10の例の場合、人物画像FBの間の距離が離れているので、拡大領域Raの設定を行わないようにすることができる。また図10の例の場合、対象画像TIの補正方向の中心を含んで拡大領域Raが設定されるようになるので、拡大領域Raの設定を行わないようにすることができる。   For example, in the case of the example in FIG. 10, since the distance between the person images FB is long, the enlarged region Ra can be set not to be set. In the case of the example in FIG. 10, the enlarged region Ra is set including the center of the correction direction of the target image TI, so that the enlarged region Ra cannot be set.

[他の拡大領域Raと圧縮領域Rbの調整方法]
なお以上においては、人物画像FBの位置に基づいて拡大領域Raおよび圧縮領域Rbの範囲が調整されたが、ユーザーが調整する範囲を設定することもできる。たとえばユーザーは、ポインタデバイスにより拡大範囲Raや圧縮領域Rbの範囲を変更させることができる。
[Adjustment method of other enlarged region Ra and compression region Rb]
In the above description, the range of the enlarged region Ra and the compressed region Rb has been adjusted based on the position of the person image FB, but the range to be adjusted by the user can also be set. For example, the user can change the range of the enlargement range Ra and the compression region Rb with the pointer device.

[他のスリム補正制御処理]
またたとえば横になっている人物の人物画像FBと立っている人物の人物画像FBが混在する場合、拡大領域Raに含まれるか否かによって拡大領域Raおよび圧縮領域Rbの範囲を決定してスリム補正を行うと、適切に補正されない場合がある。したがってそのような場合にはスリム補正を行わないようにすることができる。なお横になっている人物の人物画像FBは、たとえば顔画像FAに付随する顔姿勢データに基づいて判定することができる。
[Other slim correction control processing]
Further, for example, when a person image FB of a lying person and a person image FB of a standing person are mixed, the range of the enlarged region Ra and the compressed region Rb is determined depending on whether or not it is included in the enlarged region Ra, and slim If correction is performed, correction may not be performed properly. Therefore, in such a case, it is possible to prevent slim correction. The person image FB of the person lying down can be determined based on, for example, face posture data accompanying the face image FA.

[他の実施例]
また以上においては、インクジェット方式のプリンター1を例として説明したが、インクジェット方式以外のプリンターにも適用できるとともに、画像をユーザーに提示するものであれば、デジタルカメラやフォトビューアーにも適用することができる。
[Other embodiments]
In the above description, the ink jet printer 1 has been described as an example. However, the present invention can be applied to a printer other than the ink jet method, and can be applied to a digital camera or a photo viewer as long as the image is presented to the user. it can.

[他の実施例]
なお上述した機能は、コンピューターによって実現することができる。その場合、上述した機能の処理内容を記述したプログラムが提供される。そのプログラムをコンピューターで実行することにより、処理機能がコンピューター上で実現される。処理内容を記述したプログラムは、コンピューターで読み取り可能な記録媒体に記録しておくことができる。コンピューターで読み取り可能な記録媒体としては、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリーなどがある。磁気記録装置には、ハードディスク装置(HDD)、フレキシブルディスク(FD)、磁気テープなどがある。光ディスクには、DVD(Digital Versatile Disk)、DVD−RAM、CD−ROM(Compact Disk ROM)、CD−R(Recordable)/RW(ReWritable)などがある。光磁気記録媒体には、MO(Magneto-Optical disk)などがある。
[Other embodiments]
The functions described above can be realized by a computer. In that case, a program describing the processing contents of the above-described functions is provided. The processing function is realized on the computer by executing the program on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium. Examples of the computer-readable recording medium include a magnetic recording device, an optical disk, a magneto-optical recording medium, and a semiconductor memory. Examples of the magnetic recording device include a hard disk device (HDD), a flexible disk (FD), and a magnetic tape. Examples of the optical disc include a DVD (Digital Versatile Disk), a DVD-RAM, a CD-ROM (Compact Disk ROM), and a CD-R (Recordable) / RW (ReWritable). Magneto-optical recording media include MO (Magneto-Optical disk).

プログラムを流通させる場合には、たとえば、そのプログラムが記録されたDVD、CD−ROMなどの可搬型記録媒体が販売される。また、プログラムをサーバコンピューターの記憶装置に格納しておき、ネットワークを介して、サーバコンピューターから他のコンピューターにそのプログラムを転送することもできる。   When distributing the program, for example, portable recording media such as a DVD and a CD-ROM in which the program is recorded are sold. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.

プログラムを実行するコンピューターは、たとえば、可搬型記録媒体に記録されたプログラム若しくはサーバコンピューターから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピューターは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピューターは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピューターは、サーバコンピューターからプログラムが転送される毎に、逐次、受け取ったプログラムに従った処理を実行することもできる。   The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read a program directly from a portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.

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

またフローチャートにその流れを示した処理は、各ステップが、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくても、並列的あるいは個別に実行される処理を含むものである。また適宜処理を省略することもできる。   The process shown in the flowchart is executed in parallel or individually even if the steps are not necessarily processed in time series, as well as processes performed in time series in the order described. It includes processing that. Further, the processing can be omitted as appropriate.

1 プリンター, 11 CPU, 12 内部メモリー, 13 操作部,14 表示部, 15 プリンターエンジン, 16 カードI/F, 21 顔画像検出部, 22 人物画像検出部, 23 調整部, 24 スリム補正部, 25 出力制御部   DESCRIPTION OF SYMBOLS 1 Printer, 11 CPU, 12 Internal memory, 13 Operation part, 14 Display part, 15 Printer engine, 16 Card I / F, 21 Face image detection part, 22 Person image detection part, 23 Adjustment part, 24 Slim correction part, 25 Output control unit

Claims (8)

補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理装置において、
上記対象画像の圧縮領域を所定の圧縮率で圧縮し、上記対象画像の拡大領域を所定の拡大率で拡大する画像補正手段と、
上記顔画像を含む人物画像を検出する検出手段と、
上記人物画像が上記拡大領域に含まれているか否かを判定する判定手段と、
上記人物画像が上記拡大領域に含まれていると判定された場合、上記人物画像が上記拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整手段と
を有することを特徴とする画像処理装置。
In an image processing apparatus that compresses or expands a target image to be corrected in a predetermined correction direction,
Image correction means for compressing the compression region of the target image at a predetermined compression rate, and enlarging the enlargement region of the target image at a predetermined magnification rate;
Detecting means for detecting a human image including the face image;
Determining means for determining whether or not the person image is included in the enlarged region;
Adjusting means for adjusting the range of the enlarged region and the range of the compressed region so that the person image is not included in the enlarged region when it is determined that the person image is included in the enlarged region. An image processing apparatus.
請求項1に記載の画像処理装置において、
前記拡大領域は、前記対象画像の前記補正方向の両端に設けられており、一方の前記拡大領域は前記人物画像を含むが、他方の前記拡大領域は前記人物画像を含まない場合、
前記調整手段は、上記一方の拡大領域を、人物画像を含まないように、その拡大領域の範囲を狭め、
人物画像を含まない範囲で、狭めた分の大きさだけ上記他方の拡大領域を拡大する
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The enlarged areas are provided at both ends of the target image in the correction direction, and one of the enlarged areas includes the person image, while the other enlarged area does not include the person image.
The adjusting means narrows the range of the enlarged region so that the one enlarged region does not include a person image,
An image processing apparatus, wherein the other enlarged area is enlarged by a narrowed size within a range not including a person image.
請求項2に記載の画像処理装置において、
前記人物画像が複数検出された場合において、
前記調整手段は、前記人物画像が上記拡大領域に含まれないように、その前記拡大領域の範囲を狭め、前記人物画像の間の領域に、前記人物画像を含まない範囲で、狭めた分の大きさに応じた範囲の拡大領域を設定する
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 2,
When a plurality of the person images are detected,
The adjustment means narrows the range of the enlarged region so that the person image is not included in the enlarged region, and reduces the amount of the narrowed portion within the range not including the person image in the region between the person images. An image processing apparatus characterized in that an enlarged region in a range corresponding to a size is set.
請求項3に記載の画像処理装置において、
前記調整手段は、前記対象画像の前記補正方向の中心を含んで前記拡大範囲が設定される場合、前記人物画像の間の領域への前記拡大領域の設定を禁止する
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 3.
The adjustment unit prohibits setting of the enlargement area to an area between the person images when the enlargement range is set including the center of the correction direction of the target image. apparatus.
請求項3に記載の画像処理装置において、
前記調整手段は、前記人物画像の間隔が所定の距離以上離れている場合、前記人物画像の間の領域への前記拡大領域の設定を禁止する
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 3.
The image processing apparatus according to claim 1, wherein the adjustment unit prohibits the setting of the enlargement area to an area between the person images when the interval between the person images is a predetermined distance or more.
補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理装置の画像処理方法において、
上記対象画像の圧縮領域を所定の圧縮率で圧縮し、上記対象画像の拡大領域を所定の拡大率で拡大する画像補正ステップと、
上記顔画像を含む人物画像を検出する検出ステップと、
上記人物画像が上記拡大領域に含まれているか否かを判定する判定ステップと、
上記人物画像が上記拡大領域に含まれていると判定された場合、上記人物画像が上記拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整ステップと
を含むことを特徴とする画像処理方法。
In an image processing method of an image processing apparatus for compressing or enlarging a target image to be corrected in a predetermined correction direction,
An image correction step of compressing the compression region of the target image at a predetermined compression rate and expanding the enlargement region of the target image at a predetermined magnification rate;
A detecting step for detecting a human image including the face image;
A determination step of determining whether or not the person image is included in the enlarged region;
An adjustment step for adjusting the range of the enlarged region and the range of the compressed region so that the person image is not included in the enlarged region when it is determined that the person image is included in the enlarged region. An image processing method.
補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する画像処理をコンピューターに実行させるプログラムであって、
上記対象画像の圧縮領域を所定の圧縮率で圧縮し、上記対象画像の拡大領域を所定の拡大率で拡大する画像補正ステップと、
上記顔画像を含む人物画像を検出する検出ステップと、
上記人物画像が上記拡大領域に含まれているか否かを判定する判定ステップと、
上記人物画像が上記拡大領域に含まれていると判定された場合、上記人物画像が上記拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整ステップと
を含む画像処理をコンピューターに実行させることを特徴とするプログラム。
A program for causing a computer to execute image processing for compressing or enlarging a target image to be corrected in a predetermined correction direction,
An image correction step of compressing the compression region of the target image at a predetermined compression rate and expanding the enlargement region of the target image at a predetermined magnification rate;
A detecting step for detecting a human image including the face image;
A determination step of determining whether or not the person image is included in the enlarged region;
An adjustment step for adjusting the range of the enlarged region and the range of the compressed region so that the person image is not included in the enlarged region when it is determined that the person image is included in the enlarged region. A program that causes a computer to execute image processing.
補正処理の対象となる対象画像を、所定の補正方向に圧縮または拡大する印刷装置において、
上記対象画像の圧縮領域を所定の圧縮率で圧縮し、上記対象画像の拡大領域を所定の拡大率で拡大する画像補正手段と、
上記顔画像を含む人物画像を検出する検出手段と、
上記人物画像が上記拡大領域に含まれているか否かを判定する判定手段と、
上記人物画像が上記拡大領域に含まれていると判定された場合、上記人物画像が上記拡大領域に含まれないように、その拡大領域の範囲および圧縮領域の範囲を調整する調整手段と、
上記画像補正手段により補正された画像を印刷媒体に印刷する印刷手段と
を有することを特徴とする印刷装置。
In a printing apparatus that compresses or expands a target image to be corrected in a predetermined correction direction,
Image correction means for compressing the compression region of the target image at a predetermined compression rate, and enlarging the enlargement region of the target image at a predetermined magnification rate;
Detecting means for detecting a human image including the face image;
Determining means for determining whether or not the person image is included in the enlarged region;
An adjustment unit that adjusts the range of the enlarged region and the range of the compressed region so that the person image is not included in the enlarged region when it is determined that the person image is included in the enlarged region;
A printing apparatus comprising: a printing unit that prints an image corrected by the image correction unit on a printing medium.
JP2009094640A 2009-04-09 2009-04-09 Image processing device, image processing method, program and printer Withdrawn JP2010244452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009094640A JP2010244452A (en) 2009-04-09 2009-04-09 Image processing device, image processing method, program and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009094640A JP2010244452A (en) 2009-04-09 2009-04-09 Image processing device, image processing method, program and printer

Publications (1)

Publication Number Publication Date
JP2010244452A true JP2010244452A (en) 2010-10-28

Family

ID=43097374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009094640A Withdrawn JP2010244452A (en) 2009-04-09 2009-04-09 Image processing device, image processing method, program and printer

Country Status (1)

Country Link
JP (1) JP2010244452A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007088965A (en) * 2005-09-26 2007-04-05 Casio Hitachi Mobile Communications Co Ltd Image output device and program
JP2008017146A (en) * 2006-07-05 2008-01-24 Business Architect Sogo Kenkyusho:Kk Equipment for fitting room

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007088965A (en) * 2005-09-26 2007-04-05 Casio Hitachi Mobile Communications Co Ltd Image output device and program
JP2008017146A (en) * 2006-07-05 2008-01-24 Business Architect Sogo Kenkyusho:Kk Equipment for fitting room

Similar Documents

Publication Publication Date Title
US9053556B2 (en) Image processing apparatus for panoramic synthesis of a plurality of sub-images
JP4605006B2 (en) Print data generation apparatus, print data generation method, and program
JP2009237619A (en) Detection of face area and organ area in image
JP5789719B2 (en) Method and apparatus for determining the display mode of an electronic document
JP5366699B2 (en) Image processing apparatus, image processing method, and image processing program
JP2009237977A (en) Image output control device, image output control method, image output control program, and printer
WO2005032120A1 (en) Camera, computer, projector and image processing for projecting a size-adjusted image
JP2009251633A (en) Image processor, image processing method and program
JP2009152718A (en) Unit and method for image processing, and program
JP2009237616A (en) Detection of face area in image
US20100149557A1 (en) Image processing apparatus and image processing method
JP2007318393A (en) Trimming image display device and program
JP2006221221A (en) Generation of high resolution image using two or more low resolution image
JP2008072231A (en) Image forming apparatus
JP2009237976A (en) Unit, method and program for controlling face image output, and print unit
JP2010244452A (en) Image processing device, image processing method, program and printer
JP2004054898A (en) Printing data generating device, printing data generating method and program
JP2009015749A (en) Device and method for displaying image, and program
JP6889774B2 (en) Image processing device, imaging device, image printing device, control method of image processing device, and image processing program
JP2009237614A (en) Setting of face area corresponding to face image in target image
JP2009124576A (en) Image processing apparatus and control method thereof
JP2007253488A (en) Printer
JP2006203716A (en) Formation of high resolution image using a plurality of low resolution images
JP6086656B2 (en) Server system, program, and processing method
JP2009237978A (en) Image output control device, image output control method, image output control program, and printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120406

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130219

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20130228