JP2005229181A - Image processing method - Google Patents

Image processing method Download PDF

Info

Publication number
JP2005229181A
JP2005229181A JP2004033471A JP2004033471A JP2005229181A JP 2005229181 A JP2005229181 A JP 2005229181A JP 2004033471 A JP2004033471 A JP 2004033471A JP 2004033471 A JP2004033471 A JP 2004033471A JP 2005229181 A JP2005229181 A JP 2005229181A
Authority
JP
Japan
Prior art keywords
image
target
feature point
point
processing method
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.)
Pending
Application number
JP2004033471A
Other languages
Japanese (ja)
Inventor
Toru Kawabe
徹 川邊
Shoichi Nomura
庄一 野村
Chizuko Ikeda
千鶴子 池田
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.)
Konica Minolta Photo Imaging Inc
Original Assignee
Konica Minolta Photo Imaging Inc
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 Konica Minolta Photo Imaging Inc filed Critical Konica Minolta Photo Imaging Inc
Priority to JP2004033471A priority Critical patent/JP2005229181A/en
Publication of JP2005229181A publication Critical patent/JP2005229181A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method capable of correcting an image by solving a problem of prior arts that has only magnified a person region in the image and cannot have partially adjusted the image and corrected the attitude of people in the image. <P>SOLUTION: A flowchart for indicating image adjustment processing includes: a step S4 of extracting a feature point from a reference image; a step S5 of respectively extracting feature points corresponding to the feature point of reference image data from an object image; a step S7 of determining a target point on the basis of each feature point of the object image corresponding to each feature point of the reference image; and a step S10 of applying geometrical conversion processing to the object image in a way of making each feature point of the object image in matching with the target point, wherein the target point is selectable from a point for internally dividing an interval between each feature point of the reference image and each feature point of the object image at a prescribed ratio and for applying exterior division to an interval between each feature point of the reference image and each feature point of the object image by m:n (m, n are positive integers for satisfying a relation of m>n). <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像を矯正するための画像処理方法に関する。   The present invention relates to an image processing method for correcting an image.

運転免許証やパスポート等を申請する際に貼付する証明写真は、人物の特定に使用されるため、証明写真毎に写真のサイズや人物の位置等が定められている。このような規格に合った写真を作成するために、画像中の人物領域の形状、サイズに基づいて、画像のトリミング及び拡縮を行い、画像中の人物が証明写真の規格に合致したサイズ、配置で露光されるよう画像加工する技術や、被写体画像から被写体の頭部を検出し、頭部を含む部分を、証明写真の要求仕様と相似形になるよう、被写体画像からトリミングし、要求仕様の大きさに変倍する技術が提案されている(例えば、特許文献1、特許文献2参照。)。
特開2000−196980号公報 特開2001−311996号公報
The ID photo attached when applying for a driver's license or passport is used to identify a person, so the size of the photo, the position of the person, etc. are determined for each ID photo. In order to create a photo that conforms to such a standard, the image is trimmed and scaled based on the shape and size of the person area in the image, so that the person in the image matches the ID photo standard. Detecting the subject's head from the subject image, and trimming the part including the head from the subject image so that it is similar to the required specification of the ID photo. Techniques for scaling the size have been proposed (see, for example, Patent Document 1 and Patent Document 2).
JP 2000-196980 A JP 2001-311996 A

しかし、上記従来技術においては、画像中の人物領域を変倍するのみであって、部分的な調整や人物の姿勢の矯正を行うことはできなかった。   However, in the above-described conventional technique, only the person area in the image is scaled, and partial adjustment and correction of the posture of the person cannot be performed.

本発明は上記の従来技術における問題に鑑みてなされたものであって、画像を矯正することを課題とする。   The present invention has been made in view of the above-described problems in the prior art, and an object thereof is to correct an image.

請求項1に記載の発明は、画像処理方法において、予め用意されている基準画像から特徴点を抽出し、処理すべき対象画像から前記基準画像の特徴点に対応する特徴点を抽出し、前記基準画像の各特徴点と前記対象画像の各特徴点とに基づいて目標点を決定し、前記対象画像に対して、前記対象画像の各特徴点を前記目標点に一致させるよう幾何変換処理を行うことを特徴とする。   In the image processing method, the feature point is extracted from a reference image prepared in advance, the feature point corresponding to the feature point of the reference image is extracted from the target image to be processed, A target point is determined based on each feature point of the reference image and each feature point of the target image, and geometric conversion processing is performed on the target image so that each feature point of the target image matches the target point. It is characterized by performing.

請求項2に記載の発明は、請求項1に記載の画像処理方法において、前記目標点は、前記基準画像の各特徴点であることを特徴とする。   According to a second aspect of the present invention, in the image processing method according to the first aspect, the target point is each characteristic point of the reference image.

請求項3に記載の発明は、請求項1に記載の画像処理方法において、前記目標点は、前記基準画像の各特徴点と前記対象画像の各特徴点とを所定比で内分する点であることを特徴とする。   According to a third aspect of the present invention, in the image processing method according to the first aspect, the target point is a point that internally divides each feature point of the reference image and each feature point of the target image by a predetermined ratio. It is characterized by being.

請求項4に記載の発明は、請求項1に記載の画像処理方法において、前記目標点は、前記基準画像の各特徴点と前記対象画像の各特徴点とをm:n(m,nはm>nを満たす正の数)に外分する点であることを特徴とする。   According to a fourth aspect of the present invention, in the image processing method according to the first aspect, the target point is represented by m: n (where m and n are the characteristic points of the reference image and the characteristic points of the target image). A positive number satisfying m> n).

請求項5に記載の発明は、請求項1に記載の画像処理方法において、前記目標点は、前記基準画像の各特徴点と前記対象画像の各特徴点とを所定比で内分する点か、又は、前記基準画像の各特徴点と前記対象画像の各特徴点とをm:n(m,nはm>nを満たす正の数)に外分する点のいずれか一方から選択可能としたことを特徴とする。   The invention according to claim 5 is the image processing method according to claim 1, wherein the target point is a point that internally divides each feature point of the reference image and each feature point of the target image by a predetermined ratio. Alternatively, it is possible to select from any one of points that divide each feature point of the reference image and each feature point of the target image into m: n (m, n is a positive number satisfying m> n). It is characterized by that.

請求項6に記載の発明は、請求項5に記載の画像処理方法において、前記基準画像の各特徴点と前記対象画像の各特徴点とを内分する内分比、又は、前記基準画像の各特徴点と前記対象画像の各特徴点とを外分する外分比を選択可能としたことを特徴とする。   According to a sixth aspect of the present invention, in the image processing method according to the fifth aspect, an internal ratio that internally divides each feature point of the reference image and each feature point of the target image, or of the reference image An external division ratio that externally divides each feature point and each feature point of the target image can be selected.

請求項7に記載の発明は、請求項5又は6に記載の画像処理方法において、前記目標点の決定方法を前記対象画像の領域毎に選択可能としたことを特徴とする。   According to a seventh aspect of the present invention, in the image processing method according to the fifth or sixth aspect, the target point determination method can be selected for each region of the target image.

請求項8に記載の発明は、請求項1〜7のいずれか一項に記載の画像処理方法において、前記基準画像は、目的とするサイズに応じて拡大又は縮小して用いることを特徴とする。   According to an eighth aspect of the present invention, in the image processing method according to any one of the first to seventh aspects, the reference image is used after being enlarged or reduced according to a target size. .

請求項9に記載の発明は、請求項1〜8のいずれか一項に記載の画像処理方法において、前記幾何変換処理は、前記対象画像を当該対象画像の各特徴点を頂点とする多角形の領域に分割し、前記分割された領域毎に幾何変換を行うことを特徴とする。   The invention according to claim 9 is the image processing method according to any one of claims 1 to 8, wherein the geometric transformation process is a polygon having the target image as a vertex at each feature point of the target image. And the geometric transformation is performed for each of the divided areas.

請求項10に記載の発明は、請求項9に記載の画像処理方法において、前記多角形は三角形であって、前記幾何変換はアフィン変換であることを特徴とする。   The invention according to claim 10 is the image processing method according to claim 9, wherein the polygon is a triangle and the geometric transformation is an affine transformation.

請求項11に記載の発明は、請求項10に記載の画像処理方法において、前記三角形は、前記目標点を頂点とするドローネ(Delaunay)の三角形分割に対応した三角形であることを特徴とする。   The invention according to claim 11 is the image processing method according to claim 10, wherein the triangle is a triangle corresponding to Delaunay triangulation with the target point as a vertex.

請求項12に記載の発明は、請求項1〜11のいずれか一項に記載の画像処理方法において、前記対象画像は、予め定められた姿勢で撮影して得られた証明写真用画像であって、前記基準画像は、予め定められた証明写真種に応じた顔位置及び顔サイズを有する人物モデル画像であることを特徴とする。   According to a twelfth aspect of the present invention, in the image processing method according to any one of the first to eleventh aspects, the target image is an ID photo image obtained by photographing in a predetermined posture. The reference image is a person model image having a face position and a face size corresponding to a predetermined ID photo type.

請求項13に記載の発明は、請求項1〜12のいずれか一項に記載の画像処理方法において、前記基準画像は、予め撮影された複数の画像又は当該複数の画像から抽出された特徴点の平均的な位置情報に基づいて作成されたことを特徴とする。   A thirteenth aspect of the present invention is the image processing method according to any one of the first to twelfth aspects, wherein the reference image is a plurality of pre-captured images or feature points extracted from the plurality of images. It was created based on the average position information.

請求項14に記載の発明は、請求項1〜13のいずれか一項に記載の画像処理方法において、前記基準画像は、予め複数用意されており、前記対象画像に応じて選択可能であることを特徴とする。   According to a fourteenth aspect of the present invention, in the image processing method according to any one of the first to thirteenth aspects, a plurality of the reference images are prepared in advance and can be selected according to the target image. It is characterized by.

請求項1に記載の発明によれば、予め用意されている基準画像から特徴点を抽出し、処理すべき対象画像から基準画像の特徴点に対応する特徴点を抽出し、基準画像の各特徴点と対象画像の各特徴点とに基づいて目標点を決定し、対象画像に対して、対象画像の各特徴点を目標点に一致させるよう幾何変換処理を行うので、画像を矯正することができる。   According to the first aspect of the present invention, feature points are extracted from a reference image prepared in advance, feature points corresponding to feature points of the reference image are extracted from a target image to be processed, and each feature of the reference image is extracted. The target point is determined based on the point and each feature point of the target image, and geometric conversion processing is performed on the target image so that each feature point of the target image matches the target point. it can.

請求項2に記載の発明によれば、対象画像の各特徴点を基準画像の各特徴点に一致させるよう幾何変換処理を行うので、画像を標準化することができる。   According to the second aspect of the invention, the geometric transformation process is performed so that each feature point of the target image matches each feature point of the reference image, so that the image can be standardized.

請求項3に記載の発明によれば、対象画像の各特徴点を、基準画像の各特徴点と対象画像の各特徴点とを所定比で内分する点に一致させるよう幾何変換処理を行うので、対象画像の特徴を残しつつ、画像を標準化することができる。   According to the third aspect of the present invention, the geometric transformation process is performed so that each feature point of the target image matches a point that internally divides each feature point of the reference image and each feature point of the target image at a predetermined ratio. Therefore, it is possible to standardize the image while leaving the feature of the target image.

請求項4に記載の発明によれば、対象画像の各特徴点を、基準画像の各特徴点と対象画像の各特徴点とをm:nに外分する点に一致させるよう幾何変換処理を行うので、対象画像の各特徴点の基準画像からのずれを強調することができる。   According to the fourth aspect of the present invention, the geometric transformation process is performed so that each feature point of the target image matches a point that divides each feature point of the reference image and each feature point of the target image into m: n. As a result, the deviation of each feature point of the target image from the reference image can be emphasized.

請求項5に記載の発明によれば、目標点を基準画像の各特徴点と対象画像の各特徴点とを所定比で内分する点か、又は、基準画像の各特徴点と対象画像の各特徴点とをm:nに外分する点のいずれか一方から選択可能とすることにより、ユーザの要望に応じて対象画像を矯正することができる。   According to the invention described in claim 5, the target point is a point that internally divides each feature point of the reference image and each feature point of the target image at a predetermined ratio, or each feature point of the reference image and the target image By making it possible to select any one of the points that divide each feature point into m: n, the target image can be corrected according to the user's request.

請求項6に記載の発明によれば、基準画像の各特徴点と対象画像の各特徴点とを内分する内分比、又は、基準画像の各特徴点と対象画像の各特徴点とを外分する外分比を選択可能とすることにより、ユーザの要望に応じて対象画像を標準化する度合いや、基準画像からのずれを強調する度合いを調整することができる。   According to the sixth aspect of the present invention, an internal ratio that internally divides each feature point of the reference image and each feature point of the target image, or each feature point of the reference image and each feature point of the target image. By making it possible to select the external division ratio to be divided, it is possible to adjust the degree of standardization of the target image and the degree of emphasizing deviation from the reference image according to the user's request.

請求項7に記載の発明によれば、目標点の決定方法を対象画像の領域毎に選択可能とすることにより、対象画像の領域毎に異なる処理を行うことができる。   According to the invention described in claim 7, by making it possible to select a target point determination method for each region of the target image, different processing can be performed for each region of the target image.

請求項8に記載の発明によれば、基準画像は、目的とするサイズに応じて拡大又は縮小して用いるので、複数のサイズの基準画像を予め用意しておく必要がない。   According to the invention described in claim 8, since the reference image is used after being enlarged or reduced according to the target size, it is not necessary to prepare a plurality of reference images in advance.

請求項9、10、11に記載の発明によれば、幾何変換処理は、対象画像を当該対象画像の各特徴点を頂点とする多角形の領域に分割し、分割された領域毎に幾何変換を行うので、それぞれの変換を単純化することができる。   According to the invention described in claims 9, 10 and 11, the geometric transformation process divides the target image into polygonal regions having the feature points of the target image as vertices, and performs geometric transformation for each divided region. Therefore, each conversion can be simplified.

請求項12に記載の発明によれば、予め定められた証明写真種に応じた顔位置及び顔サイズを有する人物モデル画像に基づいて、予め定められた姿勢で撮影して得られた証明写真用画像を矯正することができる。   According to the twelfth aspect of the present invention, for an ID photo obtained by photographing in a predetermined posture based on a person model image having a face position and a face size corresponding to a predetermined ID photo type The image can be corrected.

請求項13に記載の発明によれば、基準画像は、予め撮影された複数の画像又は当該複数の画像から抽出された特徴点の平均的な位置情報に基づいて作成されているので、平均的な画像を基準画像として用いることができる。   According to the invention described in claim 13, since the reference image is created based on a plurality of images taken in advance or average position information of feature points extracted from the plurality of images, Can be used as a reference image.

請求項14に記載の発明によれば、予め複数用意された基準画像を、対象画像に応じて選択することができる。   According to the invention described in claim 14, a plurality of reference images prepared in advance can be selected according to the target image.

以下、図を参照して本発明の実施の形態を詳細に説明する。ただし、発明の範囲は、図示例に限定されない。本実施の形態においては、予め定められた姿勢で撮影して得られた証明写真用画像を対象画像とし、予め定められた証明写真種に応じた顔位置及び顔サイズを有する人物モデル画像を基準画像として説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the scope of the invention is not limited to the illustrated examples. In the present embodiment, an ID photo image obtained by photographing in a predetermined posture is set as a target image, and a human model image having a face position and face size corresponding to a predetermined ID photo type is used as a reference. This will be described as an image.

図1に、本発明の実施の形態における画像処理装置1の機能的構成を示す。
図1に示すように、画像処理装置1は、制御部2、操作部3、表示部4、画像入力部5、画像出力部6、画像データメモリ7、基準画像データベース8、画像処理部9、記憶部10を備えて構成され、各部はバス11により接続されている。
FIG. 1 shows a functional configuration of an image processing apparatus 1 according to an embodiment of the present invention.
As shown in FIG. 1, the image processing apparatus 1 includes a control unit 2, an operation unit 3, a display unit 4, an image input unit 5, an image output unit 6, an image data memory 7, a reference image database 8, an image processing unit 9, The storage unit 10 is provided, and each unit is connected by a bus 11.

制御部2は、記憶部10に格納された制御プログラムに従って、画像処理装置1の各部を統括的に制御する。   The control unit 2 comprehensively controls each unit of the image processing apparatus 1 according to a control program stored in the storage unit 10.

操作部3は、カーソルキーや数字キー等、各種入力キーにより構成され、これらのキーの押下による操作信号を制御部2に出力する。   The operation unit 3 includes various input keys such as cursor keys and numeric keys, and outputs operation signals generated by pressing these keys to the control unit 2.

表示部4は、LCD(Liquid Crystal Display)やEL(Electro Luminescent)ディスプレイ等を備え、制御部2から入力される表示制御信号に従って、所要の表示処理を行う。   The display unit 4 includes an LCD (Liquid Crystal Display), an EL (Electro Luminescent) display, and the like, and performs a required display process according to a display control signal input from the control unit 2.

画像入力部5は、画像処理装置1において画像処理の対象となる対象画像データを取得する。対象画像データは、予め定められた姿勢で撮影して得られた証明写真用画像である。画像入力部5として、例えば、レンズを介して入力される画像をCCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)等の撮像素子により電気信号に変換し、画像データを取得するデジタルカメラ、紙やフィルムに印刷された画像を光学的にスキャンして、その反射光や透過光の強度に基づいた画像データを取得するスキャナ、メモリカード等の記録媒体から画像データを読み出すカードリーダ等が挙げられる。画像入力部5により取得された対象画像データは、画像データメモリ7に記憶される。   The image input unit 5 acquires target image data to be subjected to image processing in the image processing apparatus 1. The target image data is an ID photo image obtained by photographing with a predetermined posture. As the image input unit 5, for example, a digital camera that converts an image input via a lens into an electric signal by an image sensor such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor) and acquires image data, Examples include a scanner that optically scans an image printed on paper or film and acquires image data based on the intensity of reflected light or transmitted light, and a card reader that reads image data from a recording medium such as a memory card. It is done. The target image data acquired by the image input unit 5 is stored in the image data memory 7.

画像出力部6は、画像データメモリ7に記憶されている画像処理後の調整画像データに基づいて、画像を出力する。画像出力部6として、例えば、画像を印刷するプリンタ、CD−R(Compact Disc-Recordable)等の記録媒体に画像データを記録する記録装置、画像を表示するモニタ等が挙げられる。   The image output unit 6 outputs an image based on the adjusted image data after image processing stored in the image data memory 7. Examples of the image output unit 6 include a printer that prints an image, a recording device that records image data on a recording medium such as a CD-R (Compact Disc-Recordable), a monitor that displays an image, and the like.

画像データメモリ7は、半導体メモリ等から構成され、画像入力部5により取得された対象画像データや、画像処理部9により生成された調整画像データを記憶する。   The image data memory 7 is composed of a semiconductor memory or the like, and stores target image data acquired by the image input unit 5 and adjusted image data generated by the image processing unit 9.

基準画像データベース8は、半導体メモリ等から構成され、予め用意されている基準画像データを記憶している。基準画像データは、証明写真種に応じた顔位置及び顔サイズを有する人物モデル画像であって、用途や体型に応じて複数用意されている。また、基準画像データは、予め撮影された複数の画像又はこれら複数の画像から抽出された特徴点の平均的な位置情報に基づいて作成されたものである。   The reference image database 8 is composed of a semiconductor memory or the like, and stores reference image data prepared in advance. The reference image data is a person model image having a face position and a face size according to the ID photo type, and a plurality of reference image data are prepared according to the use and the body shape. The reference image data is created based on a plurality of images taken in advance or average position information of feature points extracted from the plurality of images.

画像処理部9は、基準画像データベース8に記憶されている基準画像データと、画像データメモリ7に記憶されている対象画像データとに基づいて、対象画像データに画像処理を施し、調整画像データを生成する(図2参照)。この画像処理部9は、記憶部10に格納された画像処理プログラムと制御部2との協働によってソフトウェア処理で実現される。   The image processing unit 9 performs image processing on the target image data based on the reference image data stored in the reference image database 8 and the target image data stored in the image data memory 7 to obtain the adjusted image data. Generate (see FIG. 2). The image processing unit 9 is realized by software processing in cooperation with the image processing program stored in the storage unit 10 and the control unit 2.

記憶部10は、制御部2により実行される各種制御プログラムや、当該制御プログラムの実行時に必要なデータ、画像処理条件等を記憶する。   The storage unit 10 stores various control programs executed by the control unit 2, data necessary for executing the control program, image processing conditions, and the like.

次に、本実施の形態の動作を説明する。
図2は、画像調整処理を示すフローチャートである。
Next, the operation of the present embodiment will be described.
FIG. 2 is a flowchart showing the image adjustment process.

まず、画像入力部5により対象画像データが取得される(ステップS1)。画像入力部5により取得された対象画像データは、画像データメモリ7に記憶される。   First, target image data is acquired by the image input unit 5 (step S1). The target image data acquired by the image input unit 5 is stored in the image data memory 7.

次に、表示部4に基準画像データ選択設定画面が表示され、ユーザが操作部3から証明写真種を選択指示することにより、基準画像データベース8に記憶されている基準画像データが選択される(ステップS2)。なお、対象画像データを解析することにより、体型別の複数の基準画像データの中から自動的に設定されることとしてもよい。そして、選択された基準画像データは、目的とする画像サイズに応じて拡大又は縮小される(ステップS3)。   Next, the reference image data selection setting screen is displayed on the display unit 4, and the reference image data stored in the reference image database 8 is selected by the user instructing the selection of the identification photo type from the operation unit 3 ( Step S2). The target image data may be automatically set from a plurality of reference image data by body type by analyzing the target image data. The selected reference image data is enlarged or reduced according to the target image size (step S3).

次に、基準画像データから特徴点が抽出される(ステップS4)。特徴点とは、各画像における特徴を示す点をいい、人物の顔画像であれば、黒目の中心や目の端の位置を示す各点、口の輪郭や顔の輪郭を示す各点、頭部及び肩と背景との境界を示す各点等が挙げられる。図3(a)に、基準画像と基準画像から抽出された特徴点を示す。基準画像データの特徴点は、予め抽出され、基準画像データとともに基準画像データベース8に記憶されていることとしてもよい。   Next, feature points are extracted from the reference image data (step S4). A feature point is a point indicating a feature in each image. In the case of a human face image, each point indicating the center of the black eye or the position of the edge of the eye, each point indicating the contour of the mouth or the face, the head Examples include points indicating boundaries between the part and shoulder and the background. FIG. 3A shows a reference image and feature points extracted from the reference image. The feature points of the reference image data may be extracted in advance and stored in the reference image database 8 together with the reference image data.

そして、対象画像データから基準画像データの特徴点に対応する特徴点がそれぞれ抽出される(ステップS5)。図3(b)に示す対象画像から抽出された特徴点を図3(c)に示す。   Then, feature points corresponding to the feature points of the reference image data are extracted from the target image data (step S5). FIG. 3C shows the feature points extracted from the target image shown in FIG.

次に、表示部4に変換条件選択設定画面が表示され、ユーザが操作部3から指示することにより、画像処理における対象画像データに対する変換条件が選択される(ステップS6)。対象画像データの変換において各特徴点の目標となる目標点を、基準画像の各特徴点と対象画像の各特徴点との内分点とするか、又は、基準画像の各特徴点と対象画像の各特徴点との外分点とするか、さらに、その内分比又は外分比をユーザが直接指示することとしてもよいし、対象画像を標準化する度合い、又は基準画像からのずれを強調する度合いを段階的に複数設定しておき、その中から選択することとしてもよい。そして、選択された変換条件に基づいて、目標点が決定される(ステップS7)。   Next, a conversion condition selection setting screen is displayed on the display unit 4, and the conversion condition for the target image data in the image processing is selected by an instruction from the operation unit 3 by the user (step S6). The target point that is the target of each feature point in the conversion of the target image data is an internal dividing point between each feature point of the reference image and each feature point of the target image, or each feature point of the reference image and the target image The feature point may be an external division point, or the user may directly specify the internal division ratio or the external division ratio, and the degree of standardization of the target image or the deviation from the reference image is emphasized. It is also possible to set a plurality of degrees in a stepwise manner and select from among them. Then, a target point is determined based on the selected conversion condition (step S7).

ここで、図4(a)に示すように、対象画像の各特徴点Aiを基準画像の各特徴点Biと一致させる場合には、基準画像の各特徴点Biを目標点とする。これにより、対象画像の各特徴点Aiを基準画像の各特徴点Biの位置に矯正して、画像を標準化することができる。 Here, as shown in FIG. 4A, when each feature point A i of the target image is matched with each feature point B i of the reference image, each feature point B i of the reference image is set as a target point. . Thereby, each feature point A i of the target image can be corrected to the position of each feature point B i of the reference image, and the image can be standardized.

また、対象画像の各特徴点Aiを基準画像の各特徴点に近づける場合には、図4(b)に示すように、基準画像の各特徴点Biとそれぞれに対応する対象画像の各特徴点Aiとを所定比h:k(h,kは正の数)で内分する点を目標点Ciとする。これにより、対象画像の特徴を残しつつ、画像を標準化することができる。 Further, when each feature point A i of the target image is brought close to each feature point of the reference image, as shown in FIG. 4B, each feature point B i of the reference image and each of the target images corresponding to the feature point B i respectively. A point that internally divides the feature point A i by a predetermined ratio h: k (h and k are positive numbers) is defined as a target point C i . Thereby, it is possible to standardize the image while leaving the feature of the target image.

また、対象画像の各特徴点Aiの基準画像からのずれを強調する場合には、図4(c)に示すように、基準画像の各特徴点Biとそれぞれに対応する対象画像の各特徴点Aiとを所定比m:n(m,nはm>nを満たす正の数)に外分する点を目標点Ciとする。 When emphasizing the deviation of each feature point A i of the target image from the reference image, as shown in FIG. 4C, each feature point B i of the reference image and each of the target images corresponding to the feature point B i respectively. A point that divides the feature point A i into a predetermined ratio m: n (m, n is a positive number satisfying m> n) is defined as a target point C i .

なお、対象画像データに対する変換条件は、対象画像の領域毎に選択可能としてもよい。例えば、目のみを強調したり、口のみを基準画像に合わせたり等、対象画像の領域毎に異なる処理を行うことができる。   Note that the conversion condition for the target image data may be selectable for each region of the target image. For example, different processing can be performed for each region of the target image, such as emphasizing only the eyes or matching only the mouth with the reference image.

次に、目標点を頂点としてドローネの三角形分割が行われ(ステップS8)、図3(d)に示すように、対象画像もこの三角形に対応する領域に分割される(ステップS9)。ドローネの三角形分割とは、各点を頂点とする三角形で領域を分割する方法のうち、三角形の最小角の和を最大にするように分割する方法をいう。   Next, Delaunay triangulation is performed with the target point as a vertex (step S8), and the target image is also divided into regions corresponding to the triangle as shown in FIG. 3D (step S9). Delaunay triangulation refers to a method of dividing a region so as to maximize the sum of the minimum angles of the triangles among the methods of dividing a region by triangles having vertices at respective points.

そして、対象画像データに対して、対象画像の各特徴点を頂点とする三角形を、対応する目標点を頂点とする三角形に一致させるよう、分割された三角形の領域毎に、アフィン(Affine)変換が行われ(ステップS10)、図3(e)に示すように、調整画像データが生成される。アフィン変換は、線形変換と平行移動の組み合わせによる幾何変換である。
以上で、画像調整処理が終了する。
Then, for the target image data, an affine transformation is performed for each of the divided triangle areas so that the triangle having the vertex of each feature point of the target image matches the triangle having the corresponding target point as the vertex. Is performed (step S10), and adjusted image data is generated as shown in FIG. The affine transformation is a geometric transformation based on a combination of linear transformation and parallel movement.
This completes the image adjustment process.

以上説明したように、画像処理装置1によれば、予め用意されている基準画像から特徴点を抽出し、処理すべき対象画像から基準画像の特徴点に対応する特徴点を抽出し、基準画像の各特徴点と対象画像の各特徴点とに基づいて目標点を決定し、対象画像に対して、対象画像の各特徴点を目標点に一致させるよう幾何変換処理を行うので、画像を矯正することができる。   As described above, according to the image processing apparatus 1, the feature points are extracted from the reference image prepared in advance, the feature points corresponding to the feature points of the reference image are extracted from the target image to be processed, and the reference image A target point is determined based on each feature point of the target image and each feature point of the target image, and geometric conversion processing is performed on the target image so that each feature point of the target image matches the target point. can do.

また、対象画像を対象画像の各特徴点を頂点とする三角形の領域に分割し、分割された領域毎にアフィン変換を行うので、それぞれの変換を単純化することができる。   In addition, since the target image is divided into triangular regions having the feature points of the target image as vertices and affine transformation is performed for each of the divided regions, each transformation can be simplified.

また、目標点の決定方法を選択可能とすることにより、ユーザの要望に応じて対象画像を標準化したり、基準画像からのずれを強調したりすることができる。   In addition, by making it possible to select a target point determination method, it is possible to standardize a target image or emphasize deviation from a reference image in accordance with a user's request.

また、基準画像は、目的とするサイズに応じて拡大又は縮小して用いるので、複数のサイズの基準画像を予め用意しておく必要がない。   Further, since the reference image is enlarged or reduced according to the target size, it is not necessary to prepare a plurality of reference images in advance.

なお、上記実施の形態における記述は、本発明に係る好適な画像処理方法の例であり、これに限定されるものではない。画像処理装置1を構成する各部の細部構成及び細部動作に関しても本発明の趣旨を逸脱することのない範囲で適宜変更可能である。   The description in the above embodiment is an example of a suitable image processing method according to the present invention, and the present invention is not limited to this. The detailed configuration and detailed operation of each part constituting the image processing apparatus 1 can be changed as appropriate without departing from the spirit of the present invention.

本発明の実施の形態における画像処理装置1の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the image processing apparatus 1 in embodiment of this invention. 画像調整処理を示すフローチャートである。It is a flowchart which shows an image adjustment process. 対象画像の変換手順を説明するための図である。It is a figure for demonstrating the conversion procedure of a target image. 目標点の決定方法を示す図である。It is a figure which shows the determination method of a target point.

符号の説明Explanation of symbols

1 画像処理装置
2 制御部
3 操作部
4 表示部
5 画像入力部
6 画像出力部
7 画像データメモリ
8 基準画像データベース
9 画像処理部
10 記憶部
11 バス
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 2 Control part 3 Operation part 4 Display part 5 Image input part 6 Image output part 7 Image data memory 8 Reference | standard image database 9 Image processing part 10 Memory | storage part 11 Bus

Claims (14)

予め用意されている基準画像から特徴点を抽出し、
処理すべき対象画像から前記基準画像の特徴点に対応する特徴点を抽出し、
前記基準画像の各特徴点と前記対象画像の各特徴点とに基づいて目標点を決定し、
前記対象画像に対して、前記対象画像の各特徴点を前記目標点に一致させるよう幾何変換処理を行うことを特徴とする画像処理方法。
Extract feature points from a standard image prepared in advance,
Extracting feature points corresponding to the feature points of the reference image from the target image to be processed;
Determining a target point based on each feature point of the reference image and each feature point of the target image;
An image processing method, wherein a geometric transformation process is performed on the target image so that each feature point of the target image matches the target point.
前記目標点は、前記基準画像の各特徴点であることを特徴とする請求項1に記載の画像処理方法。   The image processing method according to claim 1, wherein the target point is each feature point of the reference image. 前記目標点は、前記基準画像の各特徴点と前記対象画像の各特徴点とを所定比で内分する点であることを特徴とする請求項1に記載の画像処理方法。   The image processing method according to claim 1, wherein the target point is a point that internally divides each feature point of the reference image and each feature point of the target image at a predetermined ratio. 前記目標点は、前記基準画像の各特徴点と前記対象画像の各特徴点とをm:n(m,nはm>nを満たす正の数)に外分する点であることを特徴とする請求項1に記載の画像処理方法。   The target point is a point that divides each feature point of the reference image and each feature point of the target image into m: n (m, n is a positive number satisfying m> n). The image processing method according to claim 1. 前記目標点は、前記基準画像の各特徴点と前記対象画像の各特徴点とを所定比で内分する点か、又は、前記基準画像の各特徴点と前記対象画像の各特徴点とをm:n(m,nはm>nを満たす正の数)に外分する点のいずれか一方から選択可能としたことを特徴とする請求項1に記載の画像処理方法。   The target point is a point that internally divides each feature point of the reference image and each feature point of the target image at a predetermined ratio, or each feature point of the reference image and each feature point of the target image. The image processing method according to claim 1, wherein m: n (m, n is a positive number satisfying m> n) can be selected from any one of the points. 前記基準画像の各特徴点と前記対象画像の各特徴点とを内分する内分比、又は、前記基準画像の各特徴点と前記対象画像の各特徴点とを外分する外分比を選択可能としたことを特徴とする請求項5に記載の画像処理方法。   An internal ratio that internally divides each feature point of the reference image and each feature point of the target image, or an external ratio that externally divides each feature point of the reference image and each feature point of the target image. 6. The image processing method according to claim 5, wherein the image processing method is selectable. 前記目標点の決定方法を前記対象画像の領域毎に選択可能としたことを特徴とする請求項5又は6に記載の画像処理方法。   The image processing method according to claim 5 or 6, wherein a method for determining the target point can be selected for each region of the target image. 前記基準画像は、目的とするサイズに応じて拡大又は縮小して用いることを特徴とする請求項1〜7のいずれか一項に記載の画像処理方法。   The image processing method according to claim 1, wherein the reference image is used after being enlarged or reduced according to a target size. 前記幾何変換処理は、前記対象画像を当該対象画像の各特徴点を頂点とする多角形の領域に分割し、前記分割された領域毎に幾何変換を行うことを特徴とする請求項1〜8のいずれか一項に記載の画像処理方法。   The geometric transformation process divides the target image into polygonal regions having respective feature points of the target image as vertices, and performs geometric transformation for each of the divided regions. The image processing method according to any one of the above. 前記多角形は三角形であって、前記幾何変換はアフィン変換であることを特徴とする請求項9に記載の画像処理方法。   The image processing method according to claim 9, wherein the polygon is a triangle, and the geometric transformation is an affine transformation. 前記三角形は、前記目標点を頂点とするドローネの三角形分割に対応した三角形であることを特徴とする請求項10に記載の画像処理方法。   The image processing method according to claim 10, wherein the triangle is a triangle corresponding to Delaunay triangulation with the target point as a vertex. 前記対象画像は、予め定められた姿勢で撮影して得られた証明写真用画像であって、前記基準画像は、予め定められた証明写真種に応じた顔位置及び顔サイズを有する人物モデル画像であることを特徴とする請求項1〜11のいずれか一項に記載の画像処理方法。   The target image is an ID photo image obtained by photographing with a predetermined posture, and the reference image is a human model image having a face position and a face size corresponding to a predetermined ID photo type The image processing method according to claim 1, wherein the image processing method is an image processing method. 前記基準画像は、予め撮影された複数の画像又は当該複数の画像から抽出された特徴点の平均的な位置情報に基づいて作成されたことを特徴とする請求項1〜12のいずれか一項に記載の画像処理方法。   13. The reference image according to claim 1, wherein the reference image is created based on a plurality of images taken in advance or average position information of feature points extracted from the plurality of images. An image processing method described in 1. 前記基準画像は、予め複数用意されており、前記対象画像に応じて選択可能であることを特徴とする請求項1〜13のいずれか一項に記載の画像処理方法。   The image processing method according to claim 1, wherein a plurality of the reference images are prepared in advance and can be selected according to the target image.
JP2004033471A 2004-02-10 2004-02-10 Image processing method Pending JP2005229181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004033471A JP2005229181A (en) 2004-02-10 2004-02-10 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004033471A JP2005229181A (en) 2004-02-10 2004-02-10 Image processing method

Publications (1)

Publication Number Publication Date
JP2005229181A true JP2005229181A (en) 2005-08-25

Family

ID=35003575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004033471A Pending JP2005229181A (en) 2004-02-10 2004-02-10 Image processing method

Country Status (1)

Country Link
JP (1) JP2005229181A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022514136A (en) * 2019-10-16 2022-02-10 平安科技(深▲せん▼)有限公司 Data detection methods, devices, computer equipment and storage media

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022514136A (en) * 2019-10-16 2022-02-10 平安科技(深▲せん▼)有限公司 Data detection methods, devices, computer equipment and storage media
JP7296452B2 (en) 2019-10-16 2023-06-22 平安科技(深▲せん▼)有限公司 Data detection method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
JP4218348B2 (en) Imaging device
US7885477B2 (en) Image processing method, apparatus, and computer readable recording medium including program therefor
JP5553141B2 (en) Image processing system, image processing apparatus, image processing method, and program
US20150009336A1 (en) Thermal imaging device and normative photographing method for thermal image
JP2005086516A (en) Imaging device, printer, image processor and program
JP5949331B2 (en) Image generating apparatus, image generating method, and program
JP4739870B2 (en) Sunglasses detection device and face center position detection device
US20060227385A1 (en) Image processing apparatus and image processing program
CN109147037B (en) Special effect processing method and device based on three-dimensional model and electronic equipment
JP2004062565A (en) Image processor and image processing method, and program storage medium
WO2008012905A1 (en) Authentication device and method of displaying image for authentication
US20050041111A1 (en) Frame adjustment device and image-taking device and printing device
JP5930245B1 (en) Image processing apparatus, image processing method, and program
JP5949030B2 (en) Image generating apparatus, image generating method, and program
US8498453B1 (en) Evaluating digital images using head points
KR101597915B1 (en) Image processing apparatus and image processing method
JP2019046239A (en) Image processing apparatus, image processing method, program, and image data for synthesis
JP4148903B2 (en) Image processing apparatus, image processing method, and digital camera
JP6098133B2 (en) Face component extraction device, face component extraction method and program
JP5966657B2 (en) Image generating apparatus, image generating method, and program
JP2005316958A (en) Red eye detection device, method, and program
JP2005229181A (en) Image processing method
JP2010026630A (en) Image retrieval device and image retrieval method
JP3754786B2 (en) Image processing apparatus and method
JP2007249366A (en) Hairstyle selection support device and method