JP6180583B1 - Method and program for associating respective closed regions of at least two images including a plurality of closed regions - Google Patents

Method and program for associating respective closed regions of at least two images including a plurality of closed regions Download PDF

Info

Publication number
JP6180583B1
JP6180583B1 JP2016091456A JP2016091456A JP6180583B1 JP 6180583 B1 JP6180583 B1 JP 6180583B1 JP 2016091456 A JP2016091456 A JP 2016091456A JP 2016091456 A JP2016091456 A JP 2016091456A JP 6180583 B1 JP6180583 B1 JP 6180583B1
Authority
JP
Japan
Prior art keywords
closed
closed region
image
original image
intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016091456A
Other languages
Japanese (ja)
Other versions
JP2017199280A (en
Inventor
智明 横塚
智明 横塚
嶺 三島
嶺 三島
大地 倉持
大地 倉持
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Celsys Inc
Original Assignee
Celsys 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 Celsys Inc filed Critical Celsys Inc
Priority to JP2016091456A priority Critical patent/JP6180583B1/en
Application granted granted Critical
Publication of JP6180583B1 publication Critical patent/JP6180583B1/en
Publication of JP2017199280A publication Critical patent/JP2017199280A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

【課題】二次元アニメーションの作成工程における人的作業負担を軽減させることにより、二次元アニメーションの作成をよりスムーズに行うこと。【解決手段】原画1の第1の閉領域1Aに対応する、第2の閉領域2Aを、原画2から特定する方法であって、原画1及び原画2の各々は、複数の画素で構成されており、前記複数の画素の各々は、特徴量を持つ。方法は、第1の閉領域に含まれる複数の画素の各々が持つ特徴量と、原画2に含まれる複数の画素の各々が持つ特徴量とから、第1の閉領域と、原画2に含まれる複数の閉領域2A〜2Cとの近似の度合いを求めるステップと、原画2に含まれる複数の閉領域のうち、最も近似していることを示す1つの閉領域を、第2の閉領域に特定するステップと、を有する。前記特徴量は、画素を含む閉領域の境界線から当該画素までの距離の関数である。【選択図】図1To create a two-dimensional animation more smoothly by reducing the human work burden in the process of creating a two-dimensional animation. A method for identifying a second closed region 2A corresponding to a first closed region 1A of an original image 1 from an original image 2, wherein each of the original image 1 and the original image 2 includes a plurality of pixels. Each of the plurality of pixels has a feature amount. The method includes the first closed region and the original image 2 based on the feature amount of each of the plurality of pixels included in the first closed region and the feature amount of each of the plurality of pixels included in the original image 2. Determining the degree of approximation with the plurality of closed regions 2A to 2C, and among the plurality of closed regions included in the original image 2, one closed region indicating the closest approximation is set as the second closed region. Identifying. The feature amount is a function of the distance from the boundary line of the closed region including the pixel to the pixel. [Selection] Figure 1

Description

本発明は、複数の閉領域を含む少なくとも2つの画像のそれぞれの閉領域を対応づける方法、及びプログラムに関する。   The present invention relates to a method and a program for associating each closed region of at least two images including a plurality of closed regions.

複数の二次元画像を作成し、複数の二次元画像の各々を時系列的に順次表示することによって、二次元アニメーションを作成することが一般に行われている。二次元アニメーションは、手書きなどで作成された静止画像を時間軸上の各フレームに対応づけて再生することで、動画を構成する表現技法である。   In general, a two-dimensional animation is created by creating a plurality of two-dimensional images and sequentially displaying each of the plurality of two-dimensional images in time series. Two-dimensional animation is an expression technique for constructing a moving image by reproducing a still image created by handwriting in association with each frame on the time axis.

古くは、手書きの画像を複数枚作成し、複数枚の画像を順次映画フィルムに撮影し、映画フィルムを投影することによって、テレビや映画などの漫画(二次元アニメーション)を制作することが行われてきた。複数の画像は、それぞれ、キャラクタなどの動きを少しずつ変えた画像となっているため、複数の画像を連続的に表示することによって、動きのあるキャラクタの動画が生成できる。また、より原始的な技法として、複数の紙に描かれた複数毎の画像を、指によってパラパラとめくることによって、動きのあるキャラクタを表現するパラパラ漫画などが存在していた。   In the old days, it was possible to create cartoons (two-dimensional animations) such as television and movies by creating a plurality of handwritten images, sequentially shooting the images on a movie film, and projecting the movie film. I came. Since each of the plurality of images is an image in which the motion of the character or the like is changed little by little, a moving image of a character with motion can be generated by continuously displaying the plurality of images. Further, as a more primitive technique, there is a flip book that expresses a moving character by flipping a plurality of images drawn on a plurality of papers with a finger.

一般的な、二次元アニメーションは、以下の工程で作成されることが多い。
・行程(1)原画の作成:一連の動画の画像のうちの所定のタイミングに散在する要のフレームであるキーフレームに含まれる画像を原画と呼ぶ。主にデザイナーが原画を作成する。
・行程(2)中割り画像の作成:時間軸上、あるキーフレームと次のキーフレームとの間に位置し、前後の原画をなめらかに補間した画像(この画像を「中割り画像」という)を作成する。
・行程(3)彩色:原画と中割り画像の中に存在する複数の閉領域の着色を行う。
・行程(4)撮影:原画と背景との合成、及び中割り画像と背景との合成を行い各々のフレームを作成する。
A general two-dimensional animation is often created by the following steps.
Step (1) Creation of an original image: An image included in a key frame that is a key frame scattered at a predetermined timing among a series of moving image images is called an original image. Mainly designers create original drawings.
Step (2) Creation of intermediate image: An image that is located between a key frame and the next key frame on the time axis and smoothly interpolates the previous and subsequent original images (this image is called “intermediate image”) Create
Step (3) Coloring: Coloring of a plurality of closed regions existing in the original image and the middle image.
Step (4) Shooting: The original image and the background are combined, and the intermediate image and the background are combined to create each frame.

上記行程(1)の原画については、デザイナーが作成するのが基本である。原画は、動きのあるキャラクタの特徴的な動作部分をデザイナーが手書き又は、コンピュータグラフィクスのソフトウエア等を用いて作成する。通常、デザイナーは、動画の全てのフレームを作成することはなく、キーフレームのための原画を描く。幾つかのフレームを隔てて原画が描かれる。   The original picture of the process (1) is basically created by a designer. The original image is created by a designer handwriting or using computer graphics software or the like, which is a characteristic motion part of a moving character. Typically, the designer does not create all the frames of the video, but draws an original picture for the keyframes. The original picture is drawn across several frames.

上記行程(2)は、中割り画像の作成である。1つの原画と、時間的にその次に位置する原画との間は、デザイナー以外の者が中割り画像を作成する場合が多い。中割り画像は、時間軸上で隣り合う原画の間に位置する空白のフレームに用いられる画像である。中割り画像を作成する目的は、なめらかな動画を作成するために、時間軸上で隣り合う原画を含むキーフレームを補間した画像を作成することで、空白のフレームを埋めることである。   The process (2) is creation of a middle-sized image. In many cases, a person other than the designer creates an intermediate image between one original picture and the original picture positioned next in time. The intermediate image is an image used for a blank frame located between adjacent original images on the time axis. The purpose of creating an intermediate image is to fill a blank frame by creating an image obtained by interpolating key frames including adjacent original images on the time axis in order to create a smooth moving image.

したがって、中割り画像は、動画全体がスムーズなものとなるように描かれる。中割り画像は、手書きで作成されていることが多いが、原画に比べて、作成する枚数が多くなるため、多くのリソースが必要となる。また、自動的に中割り画像を作成することも試みられているが、自然な動画を作成する上で、自動的な中割り画像の作成には困難を伴う。   Therefore, the intermediate image is drawn so that the entire moving image is smooth. The half-cut image is often created by handwriting. However, since the number of images to be created is larger than that of the original image, many resources are required. In addition, although it has been attempted to automatically create an intermediate image, it is difficult to automatically create an intermediate image when creating a natural moving image.

上記行程(3)は、彩色である。原画及び中割り画像は、共に、線画で描かれていることが多いため、線画によって形成されたそれぞれの閉領域を、適切な色で着色する作業(彩色)が行われる。彩色についても、ディジタル化された処理が普及している。   The process (3) is coloring. Since both the original image and the intermediate image are often drawn as line drawings, an operation (coloring) of coloring each closed region formed by the line drawing with an appropriate color is performed. Also for coloring, digitized processing is widespread.

上記工程(4)は、撮影である。古くは、各フレームが銀塩フィルムに撮影されていた。撮影工程(4)は、ディジタル化された処理が普及しており、ディジタルの動画が生成される。   The step (4) is photographing. In the old days, each frame was shot on a silver salt film. In the photographing step (4), digitized processing is widespread, and a digital moving image is generated.

上記工程(2)及び工程(3)については、手作業を必要とする部分が多く、繁雑な作業をオペレータが行う割合が多い。これは、原画に存在する複数のオブジェクトの画像が重なり合っていたり、変形していたりするためである。すなわち、2つの原画における対応する閉領域が変形し、又は対応する交点(閉領域の境界線が交わる交点など)が移動してしまうため、自動的な対応付けが困難となることなどに起因している。   In the step (2) and the step (3), there are many parts that require manual work, and there are many ratios where the operator performs complicated work. This is because the images of a plurality of objects existing in the original image are overlapped or deformed. In other words, the corresponding closed areas in the two original images are deformed or the corresponding intersections (intersections where the boundary lines of the closed areas intersect) move, so that automatic association becomes difficult. ing.

2つの画像に存在する対応する交点を発見する技術としては以下の技術が存在する。   The following techniques exist as techniques for finding corresponding intersections existing in two images.

2枚のキーフレームとなるビットマップイメージのそれぞれに、双方のビットマップイメージの対応し合う位置関係を示すためのコントロールポイントを指定し、その対応するコントロールポイント間を結んだ直線上に決定された内分点にコントロールポイントを変更することにより補間フレームを生成する技術が存在する(例えば、特許文献1)。   A control point for indicating the corresponding positional relationship between the two bitmap images is designated for each of the two bitmap images to be key frames, and determined on a straight line connecting the corresponding control points. There is a technique for generating an interpolation frame by changing a control point to an internal dividing point (for example, Patent Document 1).

また、効率よくマッチング処理を行うため、マッチング部が、動的計画法を用いて、第1形状データの輪郭点とマッチングする第2形状データの輪郭点を求める技術が存在する(例えば、特許文献2)
2つの画像に存在する対応する閉領域を発見する技術としては以下の技術が存在する。
In addition, in order to perform matching processing efficiently, there is a technique in which the matching unit obtains the contour point of the second shape data that matches the contour point of the first shape data by using dynamic programming (for example, Patent Documents). 2)
The following techniques exist as techniques for finding the corresponding closed regions existing in the two images.

例えば、頭や手などの閉領域をチェーンとしてリスト化して記憶しておき、閉領域の特徴をトラッキングする技術が存在する(例えば、非特許文献1参照)。   For example, there is a technique in which closed regions such as heads and hands are listed and stored as a chain and the characteristics of the closed region are tracked (see, for example, Non-Patent Document 1).

また、輪郭のマッチングを行い、似ている画像閉領域を対応づける技術が存在する(例えば、非特許文献2参照)。   In addition, there is a technique for performing contour matching and associating similar image closed regions (for example, see Non-Patent Document 2).

特開平11−7539号公報Japanese Patent Laid-Open No. 11-7539 特開2015−115047号公報JP2015-1115047 A

P. Garcia Trigo,H. Johan,T. Imagire,and T. Nishita. Interactive Region Matching for 2D Animation Coloring Based on Feature's Variation. IEICE ransactions(E92-D),No.6,pp.1289-1295 (2009).P. Garcia Trigo, H. Johan, T. Imagire, and T. Nishita. Interactive Region Matching for 2D Animation Coloring Based on Feature's Variation. IEICE ransactions (E92-D), No.6, pp.1289-1295 (2009). J. S. Madeira,A. Stork,and M. H. Gross. An approach to computer-supported cartooning.The Visual Computer,Vol.12,No.1,pp.1-17 (1996).J. S. Madeira, A. Stork, and M. H. Gross. An approach to computer-supported cartooning. The Visual Computer, Vol.12, No.1, pp.1-17 (1996).

上述のように、中割り画像の作成工程(2)では、中割り画像の作成に多くのリソースを必要とする。また、彩色工程(3)には、手作業を伴う彩色の行程が存在する。この彩色の工程では、原画及び中割り画像の各々に対して、対応する閉領域に同じ彩色を施す必要がある。したがって、彩色を行う場合には、複数の原画及び複数の中割り画像の各々のフレームに存在する対応する閉領域を特定する作業が必要である。通常、対応する閉領域の判断は、オペレータによる目視の作業が必要とされる。   As described above, in the middle image creating process (2), many resources are required for creating the middle image. In the coloring step (3), there is a coloring process that involves manual work. In this coloring process, it is necessary to apply the same coloring to the corresponding closed region for each of the original image and the intermediate image. Therefore, when performing coloring, it is necessary to specify a corresponding closed region existing in each frame of the plurality of original images and the plurality of intermediate images. Usually, the determination of the corresponding closed region requires visual inspection by the operator.

以下に開示する実施形態は、特に中割り画像の作成工程及び彩色行程等における、オペレータの作業の軽減を図ることにより、二次元アニメーションの作成をよりスムーズに行うことができるようにすることを目的とする。   An embodiment disclosed below aims to make it possible to create a two-dimensional animation more smoothly by reducing the work of an operator, particularly in an intermediate image creation process and a coloring process. And

一実施形態は、一方の画像に含まれる複数の閉領域と、他方の画像に含まれる複数の閉領域とを、比較することによって、一方の画像の第1の閉領域に対応する、第2の閉領域を、他方の画像からコンピュータが特定する方法であって、前記一方の画像及び前記他方の画像の各々は、複数の画素で構成されており、前記複数の画素の各々は、特徴量を持ち、当該方法は、前記第1の閉領域に含まれる複数の画素の各々が持つ特徴量と、前記他方の画像に含まれる複数の画素の各々が持つ特徴量とから、前記第1の閉領域と、前記他方の画像に含まれる複数の閉領域との近似の度合いを求めるステップと、前記他方の画像に含まれる複数の閉領域のうち、前記近似の度合いが最も近似していることを示す1つの閉領域を、前記第2の閉領域に特定するステップと、を有し、前記特徴量は、画素を含む閉領域の境界線から当該画素までの距離の関数である、方法を提供する。   In one embodiment, the second region corresponding to the first closed region of one image is compared by comparing the plurality of closed regions included in one image with the plurality of closed regions included in the other image. In which the computer specifies the closed region from the other image, wherein each of the one image and the other image includes a plurality of pixels, and each of the plurality of pixels includes a feature amount. And the method uses the feature amount of each of the plurality of pixels included in the first closed region and the feature amount of each of the plurality of pixels included in the other image. A step of obtaining a degree of approximation between the closed region and a plurality of closed regions included in the other image; and the degree of approximation of the plurality of closed regions included in the other image being the closest One closed region indicating Comprising the steps of, a, the feature quantity is a function of the distance from the boundary line of the closed region including the pixel to the pixel, a method.

二次元アニメーションの作成工程における人的作業負担を軽減させることにより、二次元アニメーションの作成をよりスムーズに行うことができる。   By reducing the human work burden in the two-dimensional animation creation process, the two-dimensional animation can be created more smoothly.

原画及び中割り画像を含む複数のフレームにより二次元アニメーションを構成する例を示す図である。It is a figure which shows the example which comprises a two-dimensional animation by the some flame | frame containing an original image and a middle-split image. 原画を構成する各画素の特徴抽出の例を示す図である。It is a figure which shows the example of the feature extraction of each pixel which comprises an original picture. 原画を構成する各閉領域を管理する表の例を示す図である。It is a figure which shows the example of the table | surface which manages each closed area | region which comprises an original picture. 複数の閉領域を含む2つの画像のそれぞれの閉領域を対応づける手法の例を示す図である。It is a figure which shows the example of the method of matching each closed area | region of two images containing a some closed area | region. 複数の閉領域を含む2つの画像のそれぞれの閉領域の対応づけの結果を示す図である。It is a figure which shows the result of matching of each closed area | region of two images containing a some closed area | region. 領域の対応付けの例を示すフローチャートである。It is a flowchart which shows the example of matching of an area | region. 複数の閉領域を含む2つの画像のそれぞれに存在する交点の対応付けの例を示す図である。It is a figure which shows the example of matching of the intersection which exists in each of two images containing a some closed region. 複数の閉領域を含む2つの画像のそれぞれの交点の対応づけの結果を示す図である。It is a figure which shows the result of matching of each intersection of two images containing a some closed region. 複数の閉領域を含む2つの画像のそれぞれに存在する交点の対応付けの際に発生する第1の課題の例を示す図である。It is a figure which shows the example of the 1st subject which generate | occur | produces at the time of matching of the intersection which exists in each of two images containing a some closed region. 複数の閉領域を含む画像に存在する交点及び境界線を修正する処理の例を示す図である。It is a figure which shows the example of the process which corrects the intersection and boundary line which exist in the image containing a some closed region. 複数の閉領域を含む画像に存在する交点及び境界線を修正する処理の結果に基づいて、交点の対応付けの例を示す図である。It is a figure which shows the example of matching of an intersection based on the result of the process which corrects the intersection and boundary line which exist in the image containing a some closed region. 2つの交点をまとまりとして捉えた場合に、それらの周囲に存在する複数の閉領域のパターンが同一である場合を発見するフローチャートである。It is a flowchart which discovers the case where the pattern of the several closed region which exists in them when the two intersections are caught as a unity is the same. 交点の対応付けを行う処理を示すフローチャートである。It is a flowchart which shows the process which matches an intersection. 中割り画像を自動的に作成する第1の例を示す図である。It is a figure which shows the 1st example which creates a middle-split image automatically. 複数の中割り画像を生成する例を示す図である。It is a figure which shows the example which produces | generates a some middle image. 孤立した閉路上に交点が無い場合に交点を付与する例を示す図である。It is a figure which shows the example which provides an intersection when there is no intersection on an isolated circuit. 2つの原画の片方が孤立した閉路を持つ場合の交点の処理の例を示す図である。It is a figure which shows the example of the process of an intersection when one of two original pictures has an isolated cycle. 原画をレイヤーに分ける処理を行う例、閉領域の一部が対応している場合の処理の例を示す図である。It is a figure which shows the example which performs the process which divides | segments an original image into layers, and the process in case a part of closed region respond | corresponds. 本実施形態のハードウエア構成の例を示す図である。It is a figure which shows the example of the hardware constitutions of this embodiment.

図1は、原画及び中割り画像を含む複数のフレームにより二次元アニメーションを構成する例を示す図である。   FIG. 1 is a diagram illustrating an example in which a two-dimensional animation is configured by a plurality of frames including an original image and a middle-sized image.

図1には、時間軸tが示されている。デザイナーが、原画1と原画2とを描く。時刻t1からt2までの間、原画1を含むフレームが表示される。そして、時刻t3から原画2を含むフレームが表示される。この場合、時刻t2からt3のフレームを空白の画像とすることはできないため、中割り画像Nを作成して、中割り画像Nを含むフレームを時刻t2からt3までの間表示することで、動画がスムーズに表示されるようにすることができる。図1の例では、中割り画像Nを1つ追加する場合を例示しているが、実際には、原画1と原画2との間に、2つ以上の中割り画像を作成する場合もある。図1は、説明を簡略化するために、1つの中割り画像Nが図示されている。   FIG. 1 shows a time axis t. The designer draws original picture 1 and original picture 2. A frame including the original image 1 is displayed from the time t1 to t2. Then, a frame including the original image 2 is displayed from time t3. In this case, since the frame from time t2 to t3 cannot be a blank image, the intermediate image N is created and the frame including the intermediate image N is displayed from time t2 to time t3. Can be displayed smoothly. In the example of FIG. 1, a case where one intermediate image N is added is illustrated, but in reality, two or more intermediate images may be created between the original image 1 and the original image 2. . FIG. 1 shows one intermediate image N for the sake of simplicity.

原画1と原画2との中間の動きを表現する画像を生成することができれば、中割り画像Nを自動的に描くことができる。中割り画像Nを描くためには、例えば原画1と原画2における主要な交点の対応関係がわかっていれば、例えば、対応する交点どうしの位置を補間した交点(例えば中点)を求めることによって、中割り画像において対応する交点を求めてもよい。例えば、原画1の交点11と原画2の交点21は、対応する交点であることがわかる。したがって、例えば、交点11の座標と、交点21の座標を補間した交点(例えば中点)の座標)(例えばフレームの画素位置)を求めることによって、中割り画像Nの交点N1の座標を求めることができる。   If an image expressing an intermediate movement between the original image 1 and the original image 2 can be generated, the intermediate image N can be automatically drawn. In order to draw the intermediate image N, for example, if the correspondence between main intersections in the original picture 1 and the original picture 2 is known, for example, by obtaining an intersection (for example, a middle point) obtained by interpolating the positions of the corresponding intersections. A corresponding intersection point may be obtained in the intermediate image. For example, it can be seen that the intersection 11 of the original picture 1 and the intersection 21 of the original picture 2 are corresponding intersections. Therefore, for example, the coordinates of the intersection N1 of the intermediate image N are obtained by obtaining the coordinates (for example, the coordinates of the middle point) obtained by interpolating the coordinates of the intersection 11 and the coordinates of the intersection 21 (for example, the pixel position of the frame). Can do.

原画1と原画2における各交点の対応関係は以下のとおりである。すなわち、原画1における交点11、交点12、交点13、交点14は、それぞれ原画2における交点21、交点22、交点23、交点24に対応している。原画1及び原画2におけるこれらの複数の交点の対応付けを発見することができれば、中割り画像Nの複数の交点N1、交点N2、交点N3、交点N4の座標は、例えば、原画1と原画2との対応する交点を補間することで、求めることができる。   The correspondence between the intersection points in the original picture 1 and the original picture 2 is as follows. That is, the intersection point 11, the intersection point 12, the intersection point 13, and the intersection point 14 in the original image 1 correspond to the intersection point 21, the intersection point 22, the intersection point 23, and the intersection point 24 in the original image 2, respectively. If the correspondence between the plurality of intersection points in the original image 1 and the original image 2 can be found, the coordinates of the plurality of intersection points N1, N2, N3, and N4 of the intermediate image N are, for example, the original image 1 and the original image 2 Can be obtained by interpolating the corresponding intersection point.

上記の処理では、原画1の各交点と原画2の各交点の対応関係が既知であることを前提として説明した。しかしながら、現実には、原画1の各交点と原画2の各交点の対応関係をオペレータの指示に頼ることは、オペレータに多くの労力を強いることとなる。したがって、原画1の各交点と原画2の各交点の対応関係を自動的に推定することが求められる。   The above processing has been described on the assumption that the correspondence between each intersection of the original image 1 and each intersection of the original image 2 is known. However, in reality, relying on the operator's instructions for the correspondence between each intersection of the original picture 1 and each intersection of the original picture 2 imposes a great deal of labor on the operator. Therefore, it is required to automatically estimate the correspondence between each intersection of the original picture 1 and each intersection of the original picture 2.

図7に移る。図7は、原画1の交点13と原画2の交点23が対応関係にあることを推定するために、複数の閉領域を含む2つの画像のそれぞれに存在する交点の対応付けの例を示す図である。   Turning to FIG. FIG. 7 is a diagram showing an example of association of intersections existing in each of two images including a plurality of closed regions in order to estimate that the intersection 13 of the original image 1 and the intersection 23 of the original image 2 are in a correspondence relationship. It is.

図7(A)の交点13の周辺を拡大した図が図7(C)である。また、図7(B)の交点23の周辺を拡大した図が図7(D)である。   FIG. 7C is an enlarged view of the vicinity of the intersection 13 in FIG. FIG. 7D is an enlarged view of the vicinity of the intersection 23 in FIG.

図7(C)に示されるように、交点13は、背景Yと、閉領域1Bと、閉領域1Cとで作られる境界線上の交点であることがわかる。図7(D)に示されるように、交点23は、背景Yと、閉領域2Bと、閉領域2Cとで作られる境界線上の交点であることがわかる。   As shown in FIG. 7C, it can be seen that the intersection 13 is an intersection on the boundary line formed by the background Y, the closed region 1B, and the closed region 1C. As shown in FIG. 7D, it can be seen that the intersection 23 is an intersection on the boundary line formed by the background Y, the closed region 2B, and the closed region 2C.

ここで、閉領域2Bが閉領域1Bと対応関係にあること、及び閉領域1Cと閉領域2Cとが対応関係にあることが既知であると仮定する。なお、背景Yは、原画1と原画2とで同種の背景であり対応関係にあることが既知であると仮定する。図7(C)における交点13の周囲に存在する複数の閉領域は、左回りに閉領域1B、背景Y、閉領域1Cの順に存在しており、同様に図7(D)における交点23の周囲に存在する複数の閉領域は、左回りに閉領域1Bに対応する閉領域2B、背景Y、閉領域1Cに対応する閉領域2Cの順に存在している。このことから、交点13と交点23は、対応関係にあることを自動的に推定することが可能である。   Here, it is assumed that it is known that the closed region 2B has a corresponding relationship with the closed region 1B, and that the closed region 1C and the closed region 2C have a corresponding relationship. It is assumed that the background Y is the same kind of background in the original picture 1 and the original picture 2 and is known to have a correspondence relationship. A plurality of closed regions existing around the intersection 13 in FIG. 7C exist counterclockwise in the order of the closed region 1B, the background Y, and the closed region 1C. Similarly, the intersection 23 in FIG. The plurality of closed regions present in the surroundings exist in the order of the closed region 2B corresponding to the closed region 1B, the background Y, and the closed region 2C corresponding to the closed region 1C in the counterclockwise direction. From this, it is possible to automatically estimate that the intersection 13 and the intersection 23 are in a correspondence relationship.

上記の推定においては、原画1の交点13の周りに存在する複数の閉領域と、原画2の周りに存在する複数の閉領域同士の対応関係が既知であることを前提とした。しかしながら、原画1の複数の閉領域と原画2の複数の閉領域のそれぞれの対応関係を、オペレータの指示に頼ることは、オペレータに多くの労力を強いることとなる。したがって、原画1の各交点と原画2の各交点との対応関係を、可能な限り自動的に推定することが求められる。   In the above estimation, it is assumed that the correspondence between the plurality of closed regions existing around the intersection 13 of the original image 1 and the plurality of closed regions existing around the original image 2 is known. However, relying on the operator's instructions for the correspondence between the plurality of closed regions of the original image 1 and the plurality of closed regions of the original image 2 imposes a lot of labor on the operator. Therefore, it is required to automatically estimate the correspondence between each intersection of the original image 1 and each intersection of the original image 2 as much as possible.

図1に戻ると、上記のことは、原画1の閉領域1A、閉領域1B及び閉領域1Cが、それぞれ原画2の閉領域2A、閉領域2B及び閉領域2Cと対応することを、自動的に推定することが求められる。   Returning to FIG. 1, the above automatically indicates that the closed region 1A, closed region 1B, and closed region 1C of the original image 1 correspond to the closed region 2A, closed region 2B, and closed region 2C of the original image 2, respectively. To be estimated.

以上のことから、時間的に連続する2つの原画1及び原画2の時間軸上の中間に位置する中割り画像Nを自動的に生成するためには、上記の手順と逆の推定の処理を以下のとおり実行することが求められる。
(a)原画1と原画2とにおいて、それぞれに存在する閉領域の対応づけを推定すること。
(b)閉領域の対応付けの情報を用いて、原画1と原画2とにおいて、それぞれに存在する閉領域を分ける境界線の交点の対応づけを推定すること。
(c)対応づけられた交点を補間する交点の座標を求めること。
(d)原画1と原画2の対応する閉領域の形状及び補間された交点の座標を用いて、中割り画像を生成すること。
From the above, in order to automatically generate the intermediate image N located in the middle of the two original images 1 and 2 that are temporally continuous on the time axis, an estimation process opposite to the above procedure is performed. It is required to execute as follows.
(A) In the original picture 1 and the original picture 2, the correspondence between the closed areas existing in the original picture 1 and the original picture 2 is estimated.
(B) Estimating the correspondence of the intersections of the boundary lines that divide the closed regions existing in the original image 1 and the original image 2 using the information on the association of the closed regions.
(C) Finding the coordinates of intersections that interpolate the associated intersections.
(D) Generate an intermediate image using the shapes of the corresponding closed regions of the original image 1 and the original image 2 and the coordinates of the interpolated intersection point.

なお、上記(a)の行程において、閉領域の対応付けが行われるため、例えば原画1の彩色の指定を行えば、略自動的に原画2における対応する閉領域の彩色が行える。更に、上記工程(d)において生成された中割り画像においても、原画における閉領域と対応する閉領域がわかるため、中割り画像の閉領域の彩色も略自動で行うことができることとなる。   Since the closed areas are associated in the process (a), for example, if the coloring of the original picture 1 is designated, the corresponding closed area in the original picture 2 can be colored automatically. Furthermore, since the closed area corresponding to the closed area in the original image can be found also in the middle image generated in the step (d), coloring of the closed area of the middle image can be performed almost automatically.

したがって、上述の従来技術の説明では、中割り画像の作成の工程の後に彩色の工程が位置していたが、本実施形態では、中割り画像の作成工程と、彩色の工程が逆の順序になってもよいことがわかる。   Therefore, in the above description of the prior art, the coloring process is positioned after the process of creating the intermediate image, but in the present embodiment, the process of creating the intermediate image and the coloring process are in the reverse order. It turns out that it may be.

以下、順に、詳細な実施形態を説明する。   Hereinafter, detailed embodiments will be described in order.

<1>実施形態1:閉領域の対応付け
<1−1> 用語の定義
実施形態1では、2つの原画に存在する複数の閉領域の対応付けを自動的に行うための処理の例を示す。なお、以下の実施形態1は、処理の一例であって、この例に限られるものではない。
<1> Embodiment 1: Association of Closed Areas <1-1> Definition of Terms In Embodiment 1, an example of processing for automatically associating a plurality of closed areas existing in two original images is shown. . The following embodiment 1 is an example of processing, and is not limited to this example.

図2は、原画を構成する各画素の特徴抽出の例を示す図である。   FIG. 2 is a diagram illustrating an example of feature extraction of each pixel constituting the original image.

ここで、図2(A)を用いて、以下の定義を行う。   Here, the following definitions are made with reference to FIG.

「閉領域」:画像において、線で閉じられた領域を「閉領域」と呼ぶ。たとえば、図2(A)において、閉領域1A、閉領域1C及び閉領域1Bは、それぞれ線で閉じられた「閉領域」である。原画の背景は、閉領域ではない。また、直線及び点も画像も閉領域ではない。   “Closed area”: An area closed by a line in an image is called a “closed area”. For example, in FIG. 2A, the closed region 1A, the closed region 1C, and the closed region 1B are “closed regions” each closed by a line. The background of the original picture is not a closed area. Also, neither straight lines, points nor images are closed areas.

「境界線」:閉領域を囲む線を境界線という。境界線を隔てて閉領域と閉領域又は背景とが隣接することになる。   “Boundary line”: A line surrounding a closed region is called a boundary line. The closed region and the closed region or the background are adjacent to each other across the boundary line.

「隣接」:閉領域Aと閉領域Bとが、境界線Xで接している場合、閉領域Aと閉領域Bとは、境界線Xで隣接しているという。   “Adjacent”: When the closed region A and the closed region B are in contact with each other at the boundary line X, it is said that the closed region A and the closed region B are adjacent to each other at the boundary line X.

「交点」:境界線が交わっている点、あるいは境界線の端点(端の点)を交点と呼ぶ。   “Intersection”: A point where a boundary line intersects or an end point (end point) of the boundary line is called an intersection.

「画素」:画像に存在する二次元平面に等間隔にメッシュを定義して、メッシュの各交点の座標位置に存在する画像の構成要素を画素と呼ぶ。画素は、ディジタル画像を構成する各画素に対応させてもよい。   “Pixel”: A mesh is defined on a two-dimensional plane existing in the image at equal intervals, and a component of the image existing at the coordinate position of each intersection of the mesh is called a pixel. A pixel may correspond to each pixel constituting the digital image.

「方位」:図2(A)において、画素P1から例えば上下左右の4つの方向を「方位」という。そして上下左右のそれぞれの方位に伸びる半直線U、D、L、Rを定義する。半直線U、D、L、Rは、画素P1からそれぞれ上、下、左、右に伸びる半直線である。なお、図2(A)の例では、上下左右の4つの方位にそれぞれ半直線を定義したが、方位の数は、4つに限られるものではない。   “Azimuth”: In FIG. 2A, four directions from the pixel P1, for example, up, down, left, and right are referred to as “azimuth”. Then, semi-straight lines U, D, L, and R extending in the vertical and horizontal directions are defined. Half straight lines U, D, L, and R are half straight lines extending upward, downward, left, and right from the pixel P1, respectively. In the example of FIG. 2A, half straight lines are defined in four directions, top, bottom, left, and right, respectively, but the number of directions is not limited to four.

「交差回数」:図2(A)において、例えば、画素P1から上の方位に伸びる半直線Uが、原画1を構成する閉領域1Aとの境界線において、U11で交差している。この場合、画素P1の上方位の交差回数は1であると定義される。同様に画素P1の左の方位に伸びる半直線Lが、原画1を構成する閉領域1A、1C、1Bとの境界線とL11、L12、L13で交差している。この場合、画素P1の左方位の交差回数は3であると定義される。同様に画素P1の下の方位に伸びる半直線Dが、原画1を構成する閉領域A1との境界線と、D11で交差している。この場合、画素P1の下方位の交差回数は1であると定義される。同様に画素P1の右の方位に伸びる半直線Rが、原画1を構成する閉領域1Aとの境界線と、R11で交差している。この場合、画素P1の右方位の交差回数は1であると定義される。   “Number of intersections”: In FIG. 2A, for example, a half line U extending in the upper direction from the pixel P <b> 1 intersects at a boundary line with the closed region 1 </ b> A constituting the original image 1 at U <b> 11. In this case, the number of crossings in the upper direction of the pixel P1 is defined as 1. Similarly, the half line L extending in the left direction of the pixel P1 intersects the boundary lines with the closed regions 1A, 1C, and 1B constituting the original image 1 at L11, L12, and L13. In this case, the number of crossings in the left direction of the pixel P1 is defined as 3. Similarly, the half line D extending in the lower direction of the pixel P1 intersects the boundary line with the closed region A1 constituting the original image 1 at D11. In this case, the number of crossings in the lower direction of the pixel P1 is defined as 1. Similarly, a half straight line R extending in the right direction of the pixel P1 intersects the boundary line with the closed region 1A constituting the original image 1 at R11. In this case, the number of crossings in the right direction of the pixel P1 is defined as 1.

「境界線までの距離」:図2(A)において、例えば、画素P1から、画素P1を含む閉領域と、初めて交差するまでの距離を「境界線までの距離」と定義する。図2(A)において、画素P1の上方位の境界線までの距離は、α1である。境界線までの距離の単位は、たとえば、画素数であってもよい。   “Distance to boundary”: In FIG. 2A, for example, the distance from the pixel P1 to the first closed region including the pixel P1 is defined as “distance to the boundary”. In FIG. 2A, the distance to the upper boundary line of the pixel P1 is α1. The unit of the distance to the boundary line may be, for example, the number of pixels.

たとえば、画素が、ある閉領域に属している場合には、その画素は、いずれの方位においても、必ずその閉領域の境界線と交差することとなるため、交差回数は1以上となる。画素が、背景に属している場合には、交差回数がゼロの場合があり得る。   For example, when a pixel belongs to a certain closed region, the pixel always crosses the boundary line of the closed region in any direction, so the number of intersections is 1 or more. If the pixel belongs to the background, the number of crossings may be zero.

<1−2> 原画の構成要素
図1及び図18などに示す原画は、多くの場合線画であり、例えば以下のような要素で構成されている。
(a)閉領域(境界線で閉じた領域)
(b)閉領域から分岐する線分(分岐線分)
(c)閉領域に包含され孤立する線分(孤立線分)
2つの原画の間に存在する分岐線分と孤立線分は、閉領域の境界線との相対座標を比較することにより、対応付けが可能である。したがって、まず、2つの原画の間の閉領域の対応付けを行うことが望ましい。実施形態1では、閉領域の対応付けの例を示す。
<1-2> Components of Original Image The original image shown in FIG. 1 and FIG. 18 is a line image in many cases, and includes, for example, the following elements.
(A) Closed area (area closed at the boundary)
(B) Line branching from the closed region (branch line segment)
(C) An isolated line segment included in a closed region (isolated line segment)
A branch line segment and an isolated line segment existing between two original images can be associated by comparing relative coordinates with a boundary line of a closed region. Therefore, first, it is desirable to associate a closed region between two original images. Embodiment 1 shows an example of associating closed regions.

<1−3> 彩色と中割り画像の生成の順序
上述の、従来技術の例においては、中割り画像を作成した後に、原画と中割り画像の彩色が行われる手順を示した。しかしながら、本実施形態1では、原画の各閉領域の対応付けをまず行うため、この段階で、原画の対応する閉領域に彩色を施すことが可能である。まず、原画間で閉領域の対応付けを行う。そして、複数の原画で、対応する閉領域には、彩色において同じ色が塗られることになる。このようにすれば、彩色を原画毎に行う手間を省くことができる。
<1-3> Order of Coloring and Intermediate Image Generation In the above-described example of the prior art, the procedure for coloring the original image and the intermediate image after creating the intermediate image is shown. However, in the first embodiment, since each closed region of the original image is first associated, it is possible to color the corresponding closed region of the original image at this stage. First, the closed region is associated between the original images. In a plurality of original images, the corresponding closed areas are painted with the same color. In this way, it is possible to save the trouble of performing coloring for each original picture.

加えて、2つの原画の間に閉領域の対応付けが既になされていれば、時間軸上で2つの原画の間に位置する中割り画像をその後生成した場合にも、その中割り画像に含まれる閉領域と2つの原画の閉領域との対応付けが容易に行える。   In addition, if a closed region is already associated between two original images, even if a middle image located between the two original images on the time axis is subsequently generated, it is included in the middle image Can be easily associated with the closed area of the two original images.

したがって、まず原画における閉領域の対応付けを行った後、彩色を行い、その後に生成された中割り画像に含まれる閉領域に、略自動的彩色を行うことができる。   Therefore, after first associating the closed areas in the original image, coloring is performed, and then the closed areas included in the generated intermediate image can be substantially automatically colored.

<1−3> 原画の画素の特徴ベクトルの定義
本実施形態では、原画に存在する画素Pの特徴V(P)を、8次元ベクトルで以下のように定義する。
<1-3> Definition of Feature Vector of Pixel of Original Image In this embodiment, the feature V (P) of the pixel P existing in the original image is defined as an 8-dimensional vector as follows.

V(P)=(c,c,c,c,c,c,c,c) (式1)
ここで、c乃至cを、以下のように定義する。なお、βは、定数である。
画素Pから上下左右の境界線までの距離を、それぞれαu、αd、αl、αrとすると、
=1/(αu+β) ただし、上方位の交差回数が1である場合。その他の場合c=0
=1/(αr+β) ただし、右方位の交差回数が1である場合。その他の場合c=0
=1/(αd+β) ただし、下方位の交差回数が1である場合。その他の場合c=0
=1/(αl+β) ただし、左方位の交差回数が1である場合。その他の場合c=0
=1/(αu+β) ただし、上下左右の4つの方位の交差回数がいずれも2以上であり、かつ上方位の交差回数が上下左右の4つの方位の交差回数のうち最小である場合。その他の場合c=0
=1/(αr+β) ただし、上下左右の4つの方位の交差回数がいずれも2以上であり、かつ右方位の交差回数が上下左右の4つの方位の交差回数のうち最小である場合。その他の場合c=0
=1/(αd+β) ただし、上下左右の4つの方位の交差回数がいずれも2以上であり、かつ下方位の交差回数が上下左右の4つの方位の交差回数のうち最小である場合。その他の場合c=0
=1/(αl+β) ただし、上下左右の4つの方位の交差回数がいずれも2以上であり、かつ左方位の交差回数が上下左右の4つの方位の交差回数のうち最小である場合。その他の場合c=0
なお、c,c,c,cについては、交差回数が1の方位が複数ある場合は、交差回数が1の方位に対応する特徴ベクトルの要素に値を持つことになる。また、c,c,c,cについては、交差回数が2以上で最小の値の方位が複数ある場合は、その最小の交差回数の複数の方位に対応する特徴ベクトルの要素に値を持つことになる。
V (P) = (c 0 , c 1 , c 2 , c 3 , c 4 , c 5 , c 6 , c 7 ) (Formula 1)
Here, c 0 to c 7 are defined as follows. Note that β is a constant.
If the distances from the pixel P to the upper, lower, left, and right boundary lines are αu, αd, αl, and αr, respectively,
c 0 = 1 / (αu + β) where the number of crossings in the upper direction is 1. Other cases c 0 = 0
c 1 = 1 / (αr + β) However, the number of crossings in the right direction is 1. In other cases, c 1 = 0
c 2 = 1 / (αd + β) where the number of crossings in the lower position is 1. In other cases, c 2 = 0
c 3 = 1 / (αl + β) However, the number of intersections in the left direction is 1. In other cases c 3 = 0
c 4 = 1 / (αu + β) However, the number of intersections of the four directions of up, down, left and right are all 2 or more, and the number of intersections of the upper direction is the smallest of the number of intersections of the four directions of up, down, left and right. In other cases c 4 = 0
c 5 = 1 / (αr + β) However, when the number of intersections of the four directions of up, down, left and right are all 2 or more, and the number of intersections of the right direction is the smallest of the number of intersections of the four directions of up, down, left and right. In other cases, c 5 = 0
c 6 = 1 / (αd + β) However, the number of intersections of the four directions of up, down, left and right are all 2 or more, and the number of intersections of the lower position is the smallest of the number of intersections of the four directions of up, down, left and right. In other cases c 6 = 0
c 7 = 1 / (αl + β) However, the number of intersections of the four directions of up, down, left and right are all 2 or more, and the number of intersections of the left direction is the smallest of the number of intersections of the four directions of up, down, left and right. In other cases c 7 = 0
For c 0 , c 1 , c 2 , and c 3 , if there are a plurality of azimuths with the number of intersections of 1, the element of the feature vector corresponding to the azimuth with the number of intersections of 1 has a value. For c 4 , c 5 , c 6 , and c 7 , when the number of intersections is 2 or more and there are a plurality of minimum value orientations, the element of the feature vector corresponding to the plurality of orientations with the minimum number of intersections is used. Will have a value.

画素Pが背景又は境界線に属する画素である場合には、c=c=c=c=c=c=c=c=0とする。 When the pixel P is a pixel belonging to the background or the boundary line, c 0 = c 1 = c 2 = c 3 = c 4 = c 5 = c 6 = c 7 = 0.

なお、上述の規則は例示に過ぎず、これに限定されるものではない。特徴ベクトルのその他の要素の決定方法としては、たとえば、以下のような規則(a)又は(b)が挙げられる。   In addition, the above-mentioned rule is only an example and is not limited to this. Examples of the method for determining other elements of the feature vector include the following rule (a) or (b).

(a)上記規則においては、同じ交差回数が複数ある場合には、その複数の方位のすべてに、特徴ベクトルの要素を持つように定めた。しかしながらそのようにせずに、上下左右の方位にあらかじめ優先順位を設けておき、同じ交差回数の方位が複数ある場合には、同じ交差回数を持つ方位のうちで、優先順位の一番高い方位における境界線までの距離のみを採用してもよい。そして、特徴ベクトルのその他の要素は、ゼロとしてもよい。   (A) In the above rule, when there are a plurality of the same number of intersections, it is determined that all of the plurality of directions have feature vector elements. However, instead of doing so, priorities are set in advance in the top, bottom, left, and right directions, and when there are multiple directions with the same number of intersections, the direction with the highest priority among the directions with the same number of intersections Only the distance to the boundary line may be adopted. The other elements of the feature vector may be zero.

(b)特徴ベクトルのうちc,c,c及びcの成分は、交差回数が1となる方位が存在するときに、交差回数が1となる方位のうち、境界線までの距離が一番小さいαを用いた特徴量1/(α+β)を、境界線までの距離が一番小さいαの方位の要素に持つように定めてもよい。そして、特徴ベクトルのうちc,c,c及びcの成分は、交差回数として1となる方位が存在せずかつ全ての方位で交差回数が2以上となるときに、4つの方位のうちで、境界線までの距離が一番小さいαを用いた特徴量1/(α+β)を、境界線までの距離が一番小さいαの方位の要素に持つようにしてもよい。そして、それ以外の方位の特徴ベクトルの要素はゼロとしてもよい。 (B) Among the feature vectors, the components c 0 , c 1 , c 2, and c 3 are the distances to the boundary line among the azimuths with the number of intersections of 1 when there are azimuths with the number of intersections of 1. May be determined so that the feature amount 1 / (α + β) using α having the smallest value is included in the element in the direction of α having the smallest distance to the boundary line. The components of c 4 , c 5 , c 6, and c 7 in the feature vector have four directions when there is no direction where the number of intersections is 1 and the number of intersections is 2 or more in all directions. Among them, the feature amount 1 / (α + β) using α having the smallest distance to the boundary line may be included in the element of the direction of α having the smallest distance to the boundary line. Then, the elements of the feature vectors in other directions may be zero.

上述の例は、いずれもc及びcは上方位の成分を表す。c及びcは右方位の成分を表す。c及びcは下方位の成分を表す。c03及びcは左方位の成分を表す。 In the above examples, both c 0 and c 4 represent upward components. c 1 and c 5 represents a component of the right orientation. c 2 and c 6 represent the component of the lower position. c 03 and c 7 represent left-direction components.

背景に存在する画素の特徴ベクトルの成分は、全てが零であるとしてもよい。   The components of the feature vector of the pixels existing in the background may all be zero.

なお、上記の特徴ベクトルは、すでに指摘したように一例であって、課題を達成するための特徴ベクトルは他の形式であってもよい。更に、例えば、特徴ベクトルは、上下左右の4つの方位を次元とする4次元ベクトルであってもよい。4つの方位において最も交差回数の少ない方位の境界線までの距離に基づく関数を、対応する方位の次元の要素として、その他の次元の要素の値を零としてもよい。   Note that the above feature vector is an example as already pointed out, and the feature vector for achieving the task may be in other forms. Further, for example, the feature vector may be a four-dimensional vector whose dimensions are four directions of up, down, left, and right. A function based on the distance to the boundary line of the azimuth with the least number of intersections in the four azimuths may be set as the dimension element of the corresponding azimuth, and the values of the elements of the other dimensions may be zero.

<1−4> 特徴ベクトルの性質
上記の特徴ベクトルは、以下の性質を持つ。
<1-4> Properties of Feature Vector The above feature vector has the following properties.

本実施形態1では、原画は、線で構成された線画であると仮定している。原画が描かれる対象をオブジェクトと呼ぶ。オブジェクトは、複数の線画で描かれており、複数の閉領域を含む。   In the first embodiment, it is assumed that the original image is a line image composed of lines. A target on which an original picture is drawn is called an object. The object is drawn with a plurality of line drawings, and includes a plurality of closed regions.

オブジェクトと背景との境界線は、オブジェクト内に存在する閉領域間の境界線よりも、識別性が高い。これは、背景と接している境界線は、オブジェクトのシルエットを構成する輪郭とも呼べる線であり、オブジェクトの内部に存在する線よりも、オブジェクトの特徴をより強く現している境界線であることが経験則上わかっているためである。   The boundary line between the object and the background is more discriminating than the boundary line between the closed regions existing in the object. This is because the boundary line that touches the background can also be called the outline that makes up the silhouette of the object, and it is a boundary line that expresses the characteristics of the object more strongly than the line that exists inside the object. This is because the rule of thumb is known.

上記の交差回数が1である場合は、その方位に存在する境界線が背景との境にあることを示している。これに対して、交差回数が2以上である方位に存在する境界線は、オブジェクト内に入り込んだ境界線であり、背景とは接していない境界線である。   When the number of intersections is 1, it indicates that the boundary line existing in the direction is on the boundary with the background. On the other hand, a boundary line existing in a direction where the number of intersections is 2 or more is a boundary line that has entered the object and is not in contact with the background.

上記に定義した各画素が持つ特徴ベクトルは、少なくとも1つでも、交差回数が1の方位があれば、その方位における、境界線までの距離を優先して利用する。交差回数が1の方位が複数存在する場合には、その複数の方位のうち一番短い、境界線までの距離を用いて特徴ベクトルの成分を生成する。交差回数が1の方位がなければ、交差回数が2以上の方位のうち、最も値の小さい境界線までの距離を採用する。   If at least one of the feature vectors defined above has an azimuth with one intersection, the distance to the boundary line in that azimuth is used with priority. When there are a plurality of azimuths with the number of intersections of 1, a feature vector component is generated using the shortest distance to the boundary line among the azimuths. If there is no azimuth with the number of intersections of 1, the distance to the boundary line having the smallest value among the azimuths with the number of intersections of 2 or more is adopted.

このように、交差回数が1である境界線までの距離を優先して用いる理由は、背景と接している境界線を重要視するためである。   Thus, the reason why the distance to the boundary line with the number of intersections of 1 is used preferentially is to place importance on the boundary line in contact with the background.

そして、採用された境界線までの距離をαとすると、1/(α+β)を計算し、上記8次元ベクトルの所定のベクトル成分の値とし、その他のベクトル成分の値はゼロとする。ここで、βは、定数である。定数βをαに足す理由は、境界線上でαがゼロとなるため、ベクトル成分の値が無限大になるのを避けるために設定する。また、どの程度の閉領域の大きさを対象とするか、どの程度、境界線の近辺で大きな値の成分を特徴として持たせるかにも依存する。境界線までの距離αが分母に存在するため、ベクトルの成分1/(α+β)は、閉領域内において境界線に近い画素であればあるほど、大きな値をとること(増加関数)になる。このようにαを分母に置くことによって、閉領域のうち、境界線に近い部分に対して、より大きな特徴量を持たせることができる。このように、境界線に近い部分に対して、より大きな特徴量を持たせることは、境界線の形状をより重視するように特徴を持たせることができる。これは、オブジェクトの閉領域の中央付近よりも、境界線に近い部分にその形状の特徴が現れるため、この特徴ベクトルを用いることにより、後述するコスト関数を用いて、原画同士の閉領域の対応付けを高い確率で推定できるようにするためである。なお、特徴量1/(α+β)は、一例であって、この特徴量に限定されるものではない。特徴量は、閉領域の内部において、境界線付近で大きな値をとるような関数を選ぶことにより、閉領域の境界線付近を強調する関数であることが望ましい。   If the distance to the adopted boundary is α, 1 / (α + β) is calculated, and the value of a predetermined vector component of the 8-dimensional vector is set, and the values of the other vector components are set to zero. Here, β is a constant. The reason why the constant β is added to α is set in order to prevent the value of the vector component from becoming infinite because α is zero on the boundary line. Further, it depends on how much the size of the closed region is targeted and how much a component having a large value near the boundary is given as a feature. Since the distance α to the boundary line exists in the denominator, the vector component 1 / (α + β) takes a larger value (increasing function) as the pixel is closer to the boundary line in the closed region. Thus, by placing α in the denominator, it is possible to give a larger feature amount to the portion of the closed region that is close to the boundary line. As described above, giving a larger feature amount to a portion close to the boundary line can give the feature so as to give more importance to the shape of the boundary line. This is because the feature of the shape appears near the boundary rather than near the center of the closed region of the object. By using this feature vector, the correspondence between the closed regions of the original images can be achieved using the cost function described later. This is to make it possible to estimate the attachment with a high probability. The feature quantity 1 / (α + β) is an example, and is not limited to this feature quantity. The feature amount is desirably a function that emphasizes the vicinity of the boundary of the closed region by selecting a function that takes a large value in the vicinity of the boundary within the closed region.

<1−5> 画素の特徴ベクトルの例
(1)画素P1の特徴ベクトル(図2(A))
画素P1の4つの方位の交差回数は以下のとおりである。
<1-5> Example of Feature Vector of Pixel (1) Feature vector of pixel P1 (FIG. 2A)
The number of intersections of the four directions of the pixel P1 is as follows.

上方位において画素P1は、U11で交差しているため、上方位の交差回数は1である。   Since the pixel P1 intersects at U11 in the upward direction, the number of intersections in the upward direction is 1.

右方位において画素P1は、R11で交差しているため、右方位の交差回数は1である。   Since the pixel P1 intersects at R11 in the right direction, the number of intersections in the right direction is 1.

下方位において画素P1は、D11で交差しているため、下方位の交差回数は1である。   Since the pixel P1 intersects at D11 in the downward direction, the number of intersections in the lower position is 1.

左方位において画素P1は、L11、L12、L13で交差しているため、左方位の交差回数は3である。   Since the pixel P1 intersects at L11, L12, and L13 in the left direction, the number of intersections in the left direction is 3.

そして、画素P1は、交差回数1回の方位が上方位、右方位、下方位に存在する。上方位の境界からの距離がα1Uである。右方位の境界からの距離がα1Rである。下方位の境界からの距離がα1Dである。したがって、画素P1の特徴ベクトルV(P1)は、以下のとおりである。
V(P1)=(1/(α1U+β),1/(α1R+β),1/(α1D+β),0,0,0,0,0)
(2)画素P2の特徴ベクトル(図2(B))
画素P2の4つの方位の交差回数は以下のとおりである。
In the pixel P1, the azimuth with one crossing is present in the upper direction, the right direction, and the lower direction. The distance from the upper boundary is α1U. The distance from the rightward boundary is α1R. The distance from the lower boundary is α1D. Therefore, the feature vector V (P1) of the pixel P1 is as follows.
V (P1) = (1 / (α1U + β), 1 / (α1R + β), 1 / (α1D + β), 0, 0, 0, 0, 0)
(2) Feature vector of pixel P2 (FIG. 2B)
The number of intersections of the four directions of the pixel P2 is as follows.

上方位において画素P2は、U21、U22で交差しているため、上方位の交差回数は2である。   Since the pixel P2 intersects at U21 and U22 in the upward direction, the number of intersections in the upward direction is 2.

右方位において画素P2は、R21、R22で交差しているため、右方位の交差回数は2である。   Since the pixel P2 intersects at R21 and R22 in the right direction, the number of intersections in the right direction is 2.

下方位において画素P2は、D21、D22で交差しているため、下方位の交差回数は2である。   Since the pixel P2 intersects at D21 and D22 in the downward direction, the number of intersections in the lower position is 2.

左方位において画素P2は、L21、L22で交差しているため、左方位の交差回数は2である。   Since the pixel P2 intersects at L21 and L22 in the left direction, the number of intersections in the left direction is 2.

そして、図2(B)においては、交差回数が1である方位は存在せず、画素P2は、交差回数2以上の方位のうち最も小さい交差回数の値は2であり、その方位は、4つの方位全てである。上方位の境界線からの距離がα2Uである。右方位の境界線からの距離がα2Rである。下方位の境界線からの距離がα2Dである。左方位の境界線からの距離がα2Lである。したがって、画素P2の特徴ベクトルV(P2)は、以下のとおりである。
V(P2)=(0,0,0,0,1/(α2U+β),1/(α2R+β),1/(α2D+β),1/(α2L+β))
(3)画素P3の特徴ベクトル(図2(C))
画素P3の4つの方位の交差回数は以下のとおりである。
In FIG. 2B, there is no azimuth having the number of intersections of 1, and the pixel P2 has the smallest intersection number value of 2 among the azimuths having the number of intersections of 2 or more. All three directions. The distance from the upper boundary is α2U. The distance from the rightward boundary line is α2R. The distance from the lower boundary is α2D. The distance from the left azimuth boundary line is α2L. Therefore, the feature vector V (P2) of the pixel P2 is as follows.
V (P2) = (0, 0, 0, 0, 1 / (α2U + β), 1 / (α2R + β), 1 / (α2D + β), 1 / (α2L + β))
(3) Feature vector of the pixel P3 (FIG. 2C)
The number of intersections of the four directions of the pixel P3 is as follows.

上方位において画素P3は、U31、U32で交差しているため、上方位の交差回数は2である。   Since the pixel P3 intersects at U31 and U32 in the upward direction, the number of intersections in the upward direction is 2.

右方位において画素P3は、R31、R32で交差しているため、右方位の交差回数は2である。   Since the pixel P3 intersects at R31 and R32 in the right direction, the number of intersections in the right direction is 2.

下方位において画素P3は、D31で交差しているため、下方位の交差回数は1である。   Since the pixel P3 intersects at D31 in the downward direction, the number of intersections in the lower position is 1.

左方位において画素P3は、L31、L32で交差しているため、左方位の交差回数は2である。   Since the pixel P3 intersects at L31 and L32 in the left direction, the number of intersections in the left direction is 2.

そして、図2(C)においては、交差回数が1である方位が存在するため、画素P3の特徴を計算する場合には、下方位の境界線からの距離が、交差回数1の方位のα3Dを採用する。したがって、画素P3の特徴ベクトルV(P3)は、以下のとおりである。
V(P3)=(0,0,1/(α3D+β),0,0,0,0,0)
<1−6> 2つの原画を構成する閉領域を大きい順に並べた管理表の作成
図1に示す原画1と原画2とに含まれる複数の閉領域を対応づける前処理として、各原画に存在する複数の閉領域を、面積の大きい順に並べた表を作ってもよい。この表を作ることによって、面積の大きい閉領域から対応付けの評価を行うことができる。このような表を作る理由は、面積が大きい閉領域について、対応関係を早期に確定させて、対応候補から除いておく方が、面積の小さい閉領域の対応関係を先に確定してゆくよりも、閉領域の対応関係が見つけやすく、その対応関係の確度も高くなるという経験則があるからである。したがって、対応する可能性の高い順番に対応関係をチェックするようにするために、このような表を作る意味がある。
In FIG. 2C, since there is an orientation with the number of intersections of 1, when calculating the characteristics of the pixel P3, the distance from the lower boundary line is α3D of the orientation with the number of intersections of 1. Is adopted. Therefore, the feature vector V (P3) of the pixel P3 is as follows.
V (P3) = (0, 0, 1 / (α3D + β), 0, 0, 0, 0, 0)
<1-6> Creation of management table in which closed areas constituting two original pictures are arranged in descending order As pre-processing for associating a plurality of closed areas included in original picture 1 and original picture 2 shown in FIG. A table may be created in which a plurality of closed regions are arranged in descending order of area. By making this table, it is possible to evaluate the correspondence from a closed area having a large area. The reason for making such a table is that it is better to determine the correspondence relationship early for a closed region with a large area and remove it from the correspondence candidate than to determine the correspondence relationship of the closed region with a smaller area first. This is because there is an empirical rule that it is easy to find the correspondence of the closed region and the accuracy of the correspondence becomes high. Therefore, it is meaningful to create such a table in order to check the correspondence relationship in the order of high possibility of correspondence.

図3(A)は、図1の原画1の3つの閉領域(閉領域1A、閉領域1B、閉領域1C)を、面積の大きい順に並べた管理表である。No.は閉領域の大きい順を示し、閉領域インデックスは、閉領域にラベリングされたインデックス(例えば1A)が付される。インデックスは、閉領域毎にユニークな識別を自動的に付与してもよい。画素数は、それぞれの閉領域に含まれる画素の数を表し、面積に比例した数値となるため、面積を現す数として代用してもよい。なお、画素数は、例えば、閉領域の面積が大きい順にソートする場合に用いてもよい。「対応付け」の欄は、全て零(0)が初期値として記憶されている。後述する閉領域の対応付けが終了した閉領域には、例えば1を記憶させるようにする。そして、1が記憶された閉領域は、対応付けの処理が終了したことを示すため、以後の対応付けの処理の対象から除いてもよい。また、後述するように、対応付けが一部分しか完了していない閉領域は、「対応付け」を1に変更せず、0のままとして、その後の対応付けの処理の対象となるようにしてもよい。この処理の例は後述する。   FIG. 3A is a management table in which the three closed regions (closed region 1A, closed region 1B, and closed region 1C) of original image 1 in FIG. 1 are arranged in descending order of area. No. Indicates the descending order of the closed area, and the closed area index is assigned an index (for example, 1A) labeled on the closed area. The index may automatically give a unique identification for each closed region. The number of pixels represents the number of pixels included in each closed region, and is a numerical value proportional to the area. Therefore, the number representing the area may be substituted. Note that the number of pixels may be used, for example, when sorting in descending order of the area of the closed region. In the “association” column, all zeros (0) are stored as initial values. For example, 1 is stored in the closed region where the association of the closed region to be described later is completed. The closed region in which 1 is stored indicates that the association process has been completed, and may be excluded from the objects of the subsequent association process. Further, as will be described later, a closed region in which only a part of the association is completed is not changed to “1”, but is left as 0 and becomes a target of the subsequent association processing. Good. An example of this process will be described later.

図3(B)は、図1の原画2における各閉領域を、面積の大きい順に並べた管理表である。   FIG. 3B is a management table in which the closed regions in the original image 2 in FIG. 1 are arranged in descending order of area.

<1−7> 閉領域の対応付け
原画1と原画2とにそれぞれ存在する閉領域の対応を推定する例を以下に示す。
<1-7> Association of Closed Regions An example of estimating the correspondence of closed regions existing in the original image 1 and the original image 2 is shown below.

閉領域の対応付けを行う際には、すでに述べたように、経験則として、一方の原画(例えば原画1)の閉領域の面積が大きい閉領域は、他方の原画の対応している可能性の高い閉領域を見つけやすくかつその対応関係の確度も高いといえる。したがって、以下では、まず原画1で一番大きい面積の閉領域から順に取り出し、取り出された閉領域を以下に例示するコスト関数Eを用いて近似度を計算する。例えば、コスト関数Eが小さいほど近似していると判断し、コスト関数Eを最小にする移動ベクトル(最適な移動ベクトル)を求め、更に最適な移動ベクトルを用いて、原画1から取り出された閉領域と最も重なりの大きな原画2の閉領域を見つけて、この組み合わせを、対応する閉領域のペアと推定してもよい。或いは、このようにして見つけた閉領域のペアを表示して、オペレータに確認を促してもよい。この際に、オペレータが、対応付けの推定が誤っていることを入力させるようにして、このペアの対応付けをキャンセルさせてもよい。この場合には、次に重なりの大きな対応する閉領域をみつけて、ペアの候補として表示してもよい。あるいは、次に最適なベクトルを用いて、原画1の閉領域と最も重なりの大きな原画2の閉領域を見つけて、次のペアの候補として表示してもよい。   As described above, when associating closed regions, as a rule of thumb, a closed region having a large closed region in one original image (for example, original image 1) may correspond to the other original image. It can be said that it is easy to find a closed area with high accuracy and the accuracy of the correspondence is high. Therefore, in the following, first, the closed area having the largest area in the original image 1 is extracted in order, and the degree of approximation is calculated using the cost function E illustrated below for the extracted closed area. For example, the smaller the cost function E is, the closer the approximation is, the movement vector that minimizes the cost function E (optimal movement vector) is obtained, and the closed movement extracted from the original image 1 is further obtained using the optimal movement vector. The closed region of the original image 2 having the largest overlap with the region may be found, and this combination may be estimated as a corresponding closed region pair. Alternatively, the pair of closed areas found in this way may be displayed to prompt the operator for confirmation. At this time, the operator may cancel the association of the pair by inputting that the estimation of the association is incorrect. In this case, the corresponding closed region with the next largest overlap may be found and displayed as a pair candidate. Alternatively, the next optimal vector may be used to find the closed region of the original image 2 having the largest overlap with the closed region of the original image 1 and may be displayed as a candidate for the next pair.

例えば、図3(A)の原画1に存在するi個の閉領域D(3個の閉領域1A、1B、1C)のうちで一番大きな閉領域を占める閉領域1Aをまず取り出し、閉領域1Aに含まれる画素p全てに対して、図3(B)の原画2に重ねて、移動ベクトルδを動かしながら閉領域A1に対するコスト関数E(D,δ)を式2によって計算してもよい。 For example, the closed region 1A occupying the largest closed region among the i closed regions D i (three closed regions 1A, 1B, 1C) existing in the original image 1 in FIG. For all the pixels p included in the region 1A, the cost function E (D i , δ) for the closed region A1 is calculated by Equation 2 while moving the movement vector δ over the original image 2 in FIG. 3B. Also good.

ここで、p+δは、原画2とその背景とを移動ベクトルδだけずらし、閉領域D(例えば閉領域1A)と重ねたときの、閉領域D(例えば閉領域1A)内の画素pの位置に重なる原画2又は背景の位置である。V1(p)は、原画1の閉領域D(例えば閉領域1A)の画素位置pにおける画素の特徴ベクトルである。そして、V2(p+δ)は、原画2及びその背景の画素位置p+δにおける画素の特徴ベクトルである。原画1の閉領域D(例えば閉領域1A)の画素位置pに重なる原画2が閉領域内部である場合(例えば閉領域2A内部)には、原画1と原画2の特徴ベクトルの差の二乗を計算し積算する(式2上段)。原画1の閉領域D(例えば閉領域1A)の画素位置pに重なる原画2が閉領域内部でない場合(例えば背景や境界線)には、式2の下段の計算を行い、定数γを積算する。γを積算する意味は、背景部分との重なりについては、比較的大きな定数γを加えることにより、コスト関数が大きくなり、ペナルティを与えるためである。γは、原画の全体のピクセル数あるいは、閉領域のピクセル数によって妥当な値を選択する。たとえば、γ=2などの定数を設定すればよい。 Here, p + [delta] is shifted original 2 and its background by the movement vector [delta], when superimposed on the closed region D i (e.g. closed region 1A), the pixel p in the closed region D i (e.g. closed region 1A) This is the position of the original image 2 or background that overlaps the position. V1 (p) is a feature vector of the pixel at the pixel position p of the closed region D i (eg, the closed region 1A) of the original image 1. V2 (p + δ) is a pixel feature vector at the pixel position p + δ of the original image 2 and its background. When the original image 2 that overlaps the pixel position p of the closed region D i (eg, the closed region 1A) of the original image 1 is inside the closed region (eg, inside the closed region 2A), the square of the difference between the feature vectors of the original image 1 and the original image 2 Is calculated and integrated (Equation 2 top). When the original image 2 that overlaps the pixel position p of the closed region D i (eg, the closed region 1A) of the original image 1 is not inside the closed region (eg, background or boundary line), the lower calculation of Expression 2 is performed and the constant γ is accumulated. To do. The reason for adding γ is that, for the overlap with the background portion, adding a relatively large constant γ increases the cost function and gives a penalty. For γ, an appropriate value is selected depending on the total number of pixels in the original image or the number of pixels in the closed region. For example, a constant such as γ = 2 may be set.

なお、原画2のp+δの位置が閉領域内部でない場合、式2の下段の計算を行うこととしたが、たとえば、すでに対応付けがなされた原画2における閉領域は、背景等と同じ扱いとして、式2の下段の計算を行ってもよい。   If the position of p + δ of the original picture 2 is not within the closed area, the lower calculation of Equation 2 is performed. For example, the closed area in the original picture 2 that has already been associated is treated the same as the background. As shown in FIG.

なお、特徴ベクトルは、既に式1に示した。   The feature vector has already been shown in Equation 1.

移動ベクトルδは、例えば画素を単位とする二次元の移動ベクトルであり、原画1の閉領域D(例えば閉領域1A)を取り出し、原画2及びその背景を移動ベクトルδだけ移動させて両者を重ね合わせるために用いるベクトルである。そして、上記式2のコスト関数Eを最小にする二次元の移動ベクトルδ を求める。例えば、閉領域1Aと原画2及びその背景とをδの値を変化させながら、コスト関数Eが最小となるδ を以下の式のように求める。
δ =argminδE(D,δ) (式3)
ここで、argminδE(D,δ)とは、E(D,δ)の値を最小とする引数δを求めることを意味する。
The movement vector δ is a two-dimensional movement vector, for example, in units of pixels. The closed area D i (for example, the closed area 1A) of the original image 1 is taken out, and the original image 2 and its background are moved by the movement vector δ, and both are moved. A vector used for superposition. Then, a two-dimensional movement vector δ * i that minimizes the cost function E of Equation 2 is obtained. For example, while changing the value of δ between the closed region 1A, the original image 2, and the background thereof, δ * i that minimizes the cost function E is obtained as follows.
δ * i = argmin δ E ( D i, δ) ( Equation 3)
Here, argmin δ E (D i , δ) means obtaining an argument δ that minimizes the value of E (D i , δ).

そして、例えば原画1の1つの閉領域D(例えば閉領域1A)に対して、網羅的にδを変化させて原画2及び背景を重ねてコスト関数Eを計算し、コスト関数Eを最小にするように、上記式3を満足するδ を求める。あるいは、コスト関数Eの網羅的な計算の途中において、コスト関数Eの最小値(計算途中の極小値)が所定の計算回数の中で更新されなくなった場合には、網羅的なδの計算を途中で打ち切って、それまでに得られたコスト関数の最小値を採用してもよい。あるいは、大きな面積の閉領域に対してのコスト関数Eの計算においては、例えば、原画1の閉領域の1つおきの画素に限定して、コスト関数Eを計算し計算量を減少させることで、計算速度を速めてもよい。 Then, for example, for one closed region D i of the original image 1 (for example, the closed region 1A), the cost function E is calculated by superimposing the original image 2 and the background by changing δ comprehensively, and the cost function E is minimized. Thus, δ * i that satisfies the above Equation 3 is obtained. Alternatively, in the course of exhaustive calculation of the cost function E, if the minimum value of the cost function E (minimum value during the calculation) is not updated within a predetermined number of calculations, an exhaustive calculation of δ is performed. The minimum value of the cost function obtained up to that point may be adopted. Alternatively, in the calculation of the cost function E for a closed area having a large area, for example, the cost function E is limited to every other pixel in the closed area of the original image 1 to reduce the calculation amount. The calculation speed may be increased.

この移動ベクトルδ を用いたときに、閉領域D(例えば閉領域1A)と原画2との間で、閉領域の重なる面積(例えば画素数)が最大となる原画2の閉領域が原画1の閉領域Dに対応する原画2の閉領域である推定することができる。 When this movement vector δ * i is used, the closed region of the original image 2 that maximizes the area (for example, the number of pixels) of the closed region between the closed region D i (for example, the closed region 1A) and the original image 2 is can be estimated is a closed area of the original 2 corresponding to the closed region D i of the original 1.

以下、図4を用いて、対応関係の推定の一例を具体的に示す。   Hereinafter, an example of the correspondence estimation will be specifically described with reference to FIG.

説明をわかりやすくするために、原画1の閉領域1Cに対応する原画2の閉領域を求める例を、図4を用いて示す。   In order to make the explanation easy to understand, an example in which the closed region of the original image 2 corresponding to the closed region 1C of the original image 1 is obtained will be described with reference to FIG.

図4(A)において、原画1の閉領域1Cを取り出し、原画2にそのまま重ねる。そして、この状態で、閉領域C1についてコスト関数E(C1,δ)を求める。δの初期値はゼロベクトルである。なお、移動ベクトルδは、図4では、1Cを動かすように描かれているが、式2では、原画2の項の座標位置に足されている。移動ベクトルδは、相対的な重ね合わせの位置関係を規定するベクトルであるから、図においては、直感的にわかりやすくするために、原画1から取り出した閉領域を移動させるベクトルとして描いている点に留意すべきである。式2と図4の記載は、相対的な表現に関して、同義である。   In FIG. 4A, the closed area 1C of the original image 1 is taken out and is superimposed on the original image 2 as it is. In this state, the cost function E (C1, δ) is obtained for the closed region C1. The initial value of δ is a zero vector. The movement vector δ is drawn so as to move 1C in FIG. 4, but is added to the coordinate position of the term of the original picture 2 in Equation 2. Since the movement vector δ is a vector that defines the relative positional relationship of superposition, in the figure, for the sake of intuitive understanding, the movement vector δ is drawn as a vector for moving the closed region extracted from the original image 1. Should be noted. The descriptions in Equation 2 and FIG. 4 are synonymous with respect to relative expressions.

その後、移動ベクトルδを網羅的に変化させて、コスト関数E(C1,δ)を最小にするδを図4(B)に示されているように求める。 Thereafter, the movement vector δ is comprehensively changed to obtain δ * that minimizes the cost function E (C1, δ) as shown in FIG. 4B.

図4(B)に示されるように、原画2の閉領域のうち、閉領域C1との重なりの面積が一番大きな、原画2の閉領域を求める。この場合、閉領域2Cと閉領域1Cとは、領域S1において重なっている。そして、閉領域2Aと閉領域1Cとは、領域S2において重なっている。これらの重なりのうち、一番大きな重なりは、S2であることがわかる。したがって、一番大きな重なりの領域を共有する閉領域1Cと閉領域2Cとが対応することが推定される。   As shown in FIG. 4B, among the closed regions of the original image 2, the closed region of the original image 2 having the largest area overlapping with the closed region C1 is obtained. In this case, the closed region 2C and the closed region 1C overlap in the region S1. The closed region 2A and the closed region 1C overlap in the region S2. It can be seen that the largest of these overlaps is S2. Therefore, it is estimated that the closed region 1C sharing the largest overlapping region corresponds to the closed region 2C.

このようにして、原画1の閉領域1Cと原画2の閉領域2Cとの対応付けの推定がなされた。この推定を表示して、オペレータに確認を促してもよい。あるいは、オペレータの確認を得ずに、対応付けを確定させてもよい。仮に、オペレータが、対応付けの推定が間違っている旨を入力した場合には、次に重なりの面積が大きい領域(図4(B)の場合には、閉領域1Cと閉領域2Aとのペアを表示して、次の候補の対応を推定し表示してもよい。   In this way, the correspondence between the closed region 1C of the original image 1 and the closed region 2C of the original image 2 is estimated. This estimate may be displayed to prompt the operator for confirmation. Alternatively, the association may be confirmed without obtaining operator confirmation. If the operator inputs that the estimation of the association is wrong, a pair of the closed region 1C and the closed region 2A in the region with the next largest overlapping area (in the case of FIG. 4B). May be displayed to estimate the correspondence of the next candidate.

あるいは、オペレータが、対応付けの推定が間違っている旨を入力した場合には、コスト関数が移動ベクトルδの次に小さくなった移動ベクトルδを用いて、C1との重なりの面積が一番大きな原画2の閉領域を、閉領域C1に対応する次の閉領域の候補として、推定し、表示して、オペレータに確認を促してもよい。 Alternatively, when the operator inputs that the estimation of the association is wrong, the area where the cost function overlaps with C1 is the most, using the movement vector δ whose cost function is the next smaller than the movement vector δ *. The closed area of the large original image 2 may be estimated and displayed as a candidate for the next closed area corresponding to the closed area C1 to prompt the operator to confirm.

図5は、閉領域の対応表が示されている。以上の結果によって、原画1と原画2にそれぞれ存在する閉領域の対応関係が確定し、図5の対応表が記憶される。この対応表を用いて、原画1において、彩色を行えば、原画2における彩色は自動的に行うことができる。   FIG. 5 shows a correspondence table of closed regions. Based on the above results, the correspondence between the closed areas existing in the original picture 1 and the original picture 2 is determined, and the correspondence table in FIG. 5 is stored. If coloring is performed in the original picture 1 using this correspondence table, the coloring in the original picture 2 can be automatically performed.

<1−8> 領域の対応付けの動作
図6は、領域の対応付けの例を示すフローチャートである。
<1-8> Region Association Operation FIG. 6 is a flowchart illustrating an example of region association.

ステップS100でパラメータi及びjを初期化する。パラメータiは、例えば図3(A)に示すように原画1の閉領域を面積の大きい順に並べた際の順番(No)であってもよい。iは、原画1の各閉領域を一意に特定できる番号であればよい。パラメータjは、例えば図3(B)に示すように原画2の閉領域を面積の大きい順に並べた際の順番(No)であってもよい。jは、原画2の各閉領域を一意に特定できる番号であればよい。   In step S100, parameters i and j are initialized. The parameter i may be, for example, the order (No) when the closed regions of the original image 1 are arranged in descending order as shown in FIG. i may be any number that can uniquely identify each closed region of the original image 1. The parameter j may be the order (No) when the closed regions of the original image 2 are arranged in descending order of area as shown in FIG. 3B, for example. j may be any number that can uniquely identify each closed region of the original image 2.

ステップS102で、一方の画像(原画1)から1つの閉領域i(例えば閉領域1A)を抽出する。   In step S102, one closed region i (for example, closed region 1A) is extracted from one image (original image 1).

ステップS104で、閉領域Dと他方の原画とからコスト関数E(D,δ)を算出する。 In step S104, a cost function E (D i , δ) is calculated from the closed region D i and the other original image.

ステップS106で、δを網羅的に変化させたかがチェックされる。チェックが「いいえ」であれば、ステップS132に移る。チェックが「はい」であれば、ステップS108に移る。   In step S106, it is checked whether δ has been changed comprehensively. If the check is “No”, the process proceeds to step S132. If the check is “Yes”, the process proceeds to step S108.

ステップS132でδを所定の値だけ変化させる。   In step S132, δ is changed by a predetermined value.

ステップS108で、コスト関数E(D,δ)が最小となる場合の移動ベクトルδ を保存する。 In step S108, the movement vector δ * 1 when the cost function E (D i , δ) is minimized is stored.

ステップS110で、δ を用いて、閉領域Dと重なる面積が最大の他方の原画の閉領域Dを閉領域Dに対応する領域と推定する。 In step S110, [delta] * 1 by using the area overlapping the closed region D i is estimated as the maximum of the other original closed region D j regions corresponding to the closed region D i a.

ステップS152で、閉領域の対応を表示し、オペレータに確認を促してもよい。対応が間違っていると入力された場合には、次のペアの候補を表示させてもよい。また、オペレータの指示により、閉領域の正しい対応関係が入力されてもよい。この時に、彩色の指示を促してもよい。   In step S152, the correspondence of the closed area may be displayed to prompt the operator to confirm. If it is input that the correspondence is wrong, the next pair of candidates may be displayed. Further, the correct correspondence of the closed region may be input according to an instruction from the operator. At this time, an instruction for coloring may be prompted.

ステップS154で、対応関係が確定された原画1の閉領域Dと原画2の閉領域Dとを、その後の対応関係の処理の対象から除いてもよい。この操作は、図3の対応付けフラグを用いてもよい。 In step S154, of the closed region D j closed region D i and original 2 of the original 1 correspondence relationship is determined, may be excluded from the scope of the subsequent processing of the correspondence. This operation may use the association flag of FIG.

ステップS112で、i=Iとなったかがチェックされる。すなわち、原画1における閉領域全てに対して、対応付けの処理が完了したかがチェックされる。このチェックが「いいえ」であれば、ステップS134に移る。このチェックが「はい」であれば、全体の処理を終了させてもよい。   In step S112, it is checked whether i = I. That is, it is checked whether or not the association processing has been completed for all the closed regions in the original image 1. If this check is “NO”, the process proceeds to step S134. If this check is “Yes”, the entire process may be terminated.

ステップS134でiをインクリメントする。この操作によって、原画1の次の閉領域をステップS102で抽出できる。   In step S134, i is incremented. By this operation, the next closed region of the original image 1 can be extracted in step S102.

実施形態1の処理フローの概要は以上のとおりである。   The outline of the processing flow of the first embodiment is as described above.

<2> 実施形態2:交点の対応付け
<2−1> 交点の対応付けの処理の詳細
以下に、原画1と原画2のそれぞれに存在する交点の対応付けについて説明する。交点の対応付けの情報は、原画1と原画2とを補間した画像の生成に利用することができる。
<2> Embodiment 2: Association of intersections <2-1> Details of processing of association of intersections The following describes the association of intersections existing in the original image 1 and the original image 2, respectively. The information on the association of the intersections can be used to generate an image obtained by interpolating the original image 1 and the original image 2.

図7は、複数の閉領域を含む2つの画像のそれぞれに存在する交点の対応付けの例を示す図である。   FIG. 7 is a diagram illustrating an example of association of intersections existing in each of two images including a plurality of closed regions.

すでに説明した処理によって、原画1と原画2との間の各閉領域の対応付けが完了していることを前提とする。図7(A)の原画1の丸で囲んだ閉領域の拡大図が図7(C)に示されている。そして、図7(B)の原画2の丸で囲んだ閉領域の拡大図が図7(D)に示されている。既に、閉領域2Bは閉領域1Bと対応していることがわかっており、閉領域2Cは閉領域1Cと対応していることがわかっている。また、原画1及び原画2には、同じ背景Yが存在している。   It is assumed that the association of each closed region between the original image 1 and the original image 2 has been completed by the processing described above. FIG. 7C shows an enlarged view of the closed region surrounded by a circle in the original image 1 in FIG. FIG. 7D shows an enlarged view of the closed region surrounded by a circle in the original image 2 in FIG. It is already known that the closed region 2B corresponds to the closed region 1B, and the closed region 2C corresponds to the closed region 1C. In addition, the same background Y exists in the original picture 1 and the original picture 2.

既に説明したように、図7(C)における交点13の周囲に存在する複数の閉領域は、左回りに閉領域1B、背景Y、閉領域1Cの順に存在しており、同様に図7(D)における交点23の周囲に存在する複数の閉領域は、左回りに閉領域1Bに対応する閉領域2B、背景Y、閉領域1Cに対応する閉領域2Cの順に存在している。したがって、交点13に接する閉領域の位置関係のパターンは、交点23に接する閉領域の位置関係のパターンと一致していることがわかる。このことから、交点13と交点23とが対応関係にあることを自動的に推定することが可能である。このようにして、対応付けされた閉領域の情報を用いることによって、対応する交点の対応付けを自動的に推定することができる。この推定結果を画面に表示して、オペレータに最終的な対応関係の確定を促してもよい。或いは、推定された交点の対応関係を、自動的に確定させてもよい。   As already described, the plurality of closed regions existing around the intersection 13 in FIG. 7C exist counterclockwise in the order of the closed region 1B, the background Y, and the closed region 1C. The plurality of closed regions existing around the intersection 23 in D) exist counterclockwise in the order of the closed region 2B corresponding to the closed region 1B, the background Y, and the closed region 2C corresponding to the closed region 1C. Therefore, it can be seen that the pattern of the positional relationship of the closed region in contact with the intersection 13 matches the pattern of the positional relationship of the closed region in contact with the intersection 23. From this, it is possible to automatically estimate that the intersection 13 and the intersection 23 are in a correspondence relationship. In this way, by using the information on the associated closed region, it is possible to automatically estimate the correspondence of the corresponding intersection. This estimation result may be displayed on the screen to prompt the operator to finalize the correspondence. Alternatively, the correspondence relationship between the estimated intersections may be automatically determined.

図8は、複数の閉領域を含む2つの画像のそれぞれの交点の対応づけの結果を示す図である。対応づけられた交点の情報は、図8に示す交点の対応表によって、記憶することができる。   FIG. 8 is a diagram illustrating a result of associating each intersection of two images including a plurality of closed regions. The information on the intersections associated with each other can be stored by the intersection correspondence table shown in FIG.

図9は、複数の閉領域を含む2つの画像のそれぞれに存在する交点の対応付けの際に発生する第1の課題の例を示す図である。図9においては、前提として、閉領域1Aと2A、閉領域1Bと2B、閉領域1Cと2C、閉領域1Dと2D、がそれぞれ対応する閉領域であると仮定する。   FIG. 9 is a diagram illustrating an example of a first problem that occurs when associating intersections existing in two images including a plurality of closed regions. In FIG. 9, it is assumed that the closed regions 1A and 2A, the closed regions 1B and 2B, the closed regions 1C and 2C, and the closed regions 1D and 2D are the corresponding closed regions.

この場合、図9(A)の原画1においては、交点P11の周囲に、左回りに閉領域1A、1D、1Bが存在する。これに対して、図9(B)の原画2においては、交点P21に閉領域2A、2D、2Cが存在する。この例では、交点P11と交点P21とは、周囲に同じパターンで対応する閉領域が存在しないため、対応する交点ではないと判断される。原画1の交点P11に対応する交点が原画2には存在しない。   In this case, in the original image 1 in FIG. 9A, the closed regions 1A, 1D, and 1B exist around the intersection P11 in the counterclockwise direction. On the other hand, in the original image 2 in FIG. 9B, closed areas 2A, 2D, and 2C exist at the intersection P21. In this example, the intersection point P11 and the intersection point P21 are determined not to be corresponding intersection points because there are no corresponding closed regions in the same pattern around them. An intersection corresponding to the intersection P11 of the original picture 1 does not exist in the original picture 2.

しかしながら、図9(A)の2つの交点(交点P11及び交点P12)及び図9(B)(交点P21及び交点P22)をまとまりとして捉えた場合には、原画1の交点P11と交点P12の周りに左回りに閉領域1A、1D、1C,1Bが存在し、原画2の交点P21と交点P22の周りに左回りに閉領域2A、2D、2C,2Bが存在し、閉領域の対応関係を考慮すると、同一のパターンで閉領域が存在していることがわかる。   However, when the two intersections (intersection point P11 and intersection point P12) in FIG. 9A and FIG. 9B (intersection point P21 and intersection point P22) are regarded as a group, the surroundings of the intersection point P11 and the intersection point P12 of the original picture 1 are obtained. There are closed areas 1A, 1D, 1C, and 1B in the counterclockwise direction, and closed areas 2A, 2D, 2C, and 2B in the counterclockwise direction around the intersection P21 and the intersection P22 of the original image 2, and the correspondence relationship of the closed areas Considering this, it can be seen that closed regions exist in the same pattern.

図9の例においても、以下の処理を行うことにより、交点どうしの対応付けを行うことができる。   Also in the example of FIG. 9, it is possible to associate the intersections by performing the following processing.

図10は、複数の閉領域を含む画像に存在する交点及び境界線を修正する処理の例を示す図である。   FIG. 10 is a diagram illustrating an example of processing for correcting intersections and boundaries existing in an image including a plurality of closed regions.

図9(A)において原画1を選択する、原画1の代わりに原画2を選択してもよい。図10(A)に示されるように選択された原画1に存在する2つの交点(交点P11、交点P12)のうち、1つを削除する。図10(A)の場合には、交点P12を消去する。削除する交点は、いずれの交点であってもよい。これによって、閉領域の境界線Ldb、Lbc、Lcdが残る。なお、交点のうち、交点の角度が小さい方の交点(すなわち交点P12でLcdとLbcが領域1C側でなす角度の方が、交点P11でLadとLabが領域1A側でなす角度より小さいため、この場合は、交点P12)を優先して削除するようにしてもよい。   In FIG. 9A, the original image 1 is selected. Instead of the original image 1, the original image 2 may be selected. As shown in FIG. 10A, one of the two intersections (intersection P11, intersection P12) existing in the selected original picture 1 is deleted. In the case of FIG. 10A, the intersection P12 is deleted. The intersection to be deleted may be any intersection. As a result, boundary lines Ldb, Lbc, and Lcd of the closed region remain. Of the intersections, the intersection having the smaller angle of the intersection (that is, the angle formed by Lcd and Lbc on the region 1C side at the intersection P12 is smaller than the angle formed by Lad and Lab on the region 1A side at the intersection P11. In this case, the intersection P12) may be deleted with priority.

図10(B)に示すように、境界線LbcをLdbに沿って交点P11まで延ばす。延長されたLbcの交点P11の位置の交点を交点P111とする。   As shown in FIG. 10B, the boundary line Lbc is extended to the intersection P11 along Ldb. The intersection point of the position of the extended intersection point P11 of the Lbc is defined as an intersection point P111.

図10(C)に示すように、境界線LcdをLdbに沿って交点P11まで延ばす。延長されたLcdの交点P11の位置の交点を交点P112とする。   As shown in FIG. 10C, the boundary line Lcd is extended along the Ldb to the intersection P11. The intersection point of the extended intersection point P11 of the Lcd is defined as an intersection point P112.

なお、上記操作の後、Ldbは削除してもよい。   Note that Ldb may be deleted after the above operation.

図10(D)に示すように、この結果、交点P12が削除され、境界線Lbcが延長され、交点P11の位置に交点P111が設定された。境界線Lbcが延長され、交点P11の位置に交点P112が設定された。このため、交点P11は、交点P111と交点P112の2つに分割されたと考えることができる。なお、延長された境界線Lbcと、延長された境界線Lcdとは、離れて描かれているが、図を分かりやすくするために離れて描かれているのであって、実際は、同一線上に存在する。その他の図においても同様である。   As shown in FIG. 10D, as a result, the intersection point P12 is deleted, the boundary line Lbc is extended, and the intersection point P111 is set at the position of the intersection point P11. The boundary line Lbc is extended, and the intersection point P112 is set at the position of the intersection point P11. For this reason, it can be considered that the intersection P11 is divided into two, the intersection P111 and the intersection P112. Note that the extended boundary line Lbc and the extended boundary line Lcd are drawn apart from each other, but are drawn apart to make the figure easier to understand and actually exist on the same line. To do. The same applies to the other drawings.

図11は、複数の閉領域を含む画像に存在する交点及び境界線を修正する処理の結果に基づいて、交点の対応付けの例を示す図である。   FIG. 11 is a diagram illustrating an example of association of intersections based on a result of processing for correcting intersections and boundaries existing in an image including a plurality of closed regions.

先に示した図10の処理によって、図11(A)では、交点P12が削除され、境界線Lbcが延長され、交点P11の位置に交点P111が設定された。境界線Lbcが延長され、交点P11の位置に交点P112が設定された。このため、交点P11は、交点P111と交点P112の2つに分割された。   In the process of FIG. 10 described above, in FIG. 11A, the intersection point P12 is deleted, the boundary line Lbc is extended, and the intersection point P111 is set at the position of the intersection point P11. The boundary line Lbc is extended, and the intersection point P112 is set at the position of the intersection point P11. Therefore, the intersection point P11 is divided into two points, an intersection point P111 and an intersection point P112.

図11(B)に示すように、原画2は、そのまま2つの交点P21及び交点P22が存在している。図11(C)の交点の対応表に示されるように、原画1の交点P111と原画2の交点P21とを対応づける。そして、原画1の交点P112と原画2の交点22とを対応づける。そして、図11(A)の交点P111と交点P112との間は、長さ零の境界線が存在していることとする。また、交点P111は、境界線Labと接続させ、交点P112は境界線Ladと接続させる。交点P11は削除してもよい。   As shown in FIG. 11B, the original picture 2 has two intersection points P21 and P22 as they are. As shown in the intersection correspondence table in FIG. 11C, the intersection point P111 of the original picture 1 and the intersection point P21 of the original picture 2 are associated with each other. Then, the intersection point P112 of the original picture 1 and the intersection point 22 of the original picture 2 are associated with each other. Then, it is assumed that a zero-length boundary line exists between the intersection point P111 and the intersection point P112 in FIG. The intersection P111 is connected to the boundary line Lab, and the intersection P112 is connected to the boundary line Lad. The intersection P11 may be deleted.

以上の処理を行うことにより、図9のように対応付けが行えなかった交点に対しても、いずれかの原画の1つの交点を削除し、上記の処理を施すことによって、交点の対応付けが行える。   By performing the above processing, even for an intersection that could not be associated as shown in FIG. 9, by deleting one intersection of any of the original images and performing the above processing, the association of the intersection can be performed. Yes.

[交点の対応付けの動作]
図12は、図9に示したように、原画1と原画2のそれぞれの1つの交点どうしでは対応付けができない場合であって、2つの交点をまとまりとして捉えた場合に、それらの周囲に存在する複数の閉領域のパターンが同一である場合を発見するフローチャートである。理解を助けるために、図12のフローチャート及び下記の説明において、括弧書きで図9に示した符号を例示として示す。なお、図12のフローチャートは、図9の例に限定されるものではない。
[Intersection point mapping]
As shown in FIG. 9, FIG. 9 shows a case where the intersections of the original picture 1 and the original picture 2 cannot be associated with each other, and when the two intersections are regarded as a group, they exist around them. It is a flowchart which discovers the case where the pattern of the several closed area to perform is the same. In order to help understanding, in the flowchart of FIG. 12 and the following description, the reference numerals shown in FIG. Note that the flowchart of FIG. 12 is not limited to the example of FIG.

ステップS300において、一方の原画(原画1)において点の対応付けが行えなかった複数の点のうち、2つの閉領域(1D,1B)の境界線上(Ldb)に存在する隣り合う2つの交点(P11,P12)の組qの集合Qを抽出する。   In step S300, two adjacent intersections (Ldb) existing on the boundary line (Ldb) of two closed regions (1D, 1B) among a plurality of points that cannot be associated with each other in one original image (original image 1) ( A set Q of a set q of P11, P12) is extracted.

ステップS302において、他方の原画(原画2)において点の対応付けが行えなかった複数の点のうち、2つの閉領域(2A,2C)の境界線(Lac)上に存在する隣り合う2つの交点(P21,P22)の組rの集合Rを抽出する。   In step S302, two adjacent intersections existing on the boundary line (Lac) of the two closed regions (2A, 2C) among the plurality of points that cannot be associated with each other in the other original image (original image 2) A set R of a set r of (P21, P22) is extracted.

ステップS304は、ステップS314との間で、集合Qに含まれる要素qを、1つずつ取り出して処理を行う繰り返しの処理を示す。   Step S304 shows an iterative process in which the element q included in the set Q is extracted and processed one by one with the step S314.

ステップS306は、ステップS312との間で、集合Rに含まれる要素rを、1つずつ取り出して処理を行う繰り返しの処理を示す。   Step S306 indicates a repetitive process in which the element r included in the set R is extracted and processed one by one with the step S312.

ステップS308で、qに含まれる2つの交点(P11,P12)の少なくとも1つに接する複数の閉領域の並びのパターン(左回りに1A,1D,1C,1D)が、rに含まれる2つの交点(P21,P22)の少なくとも1つに接する複数の閉領域(2A,2D,2C,2D)のそれぞれに対応する一方の原画の閉領域の並びのパターン(左回りに1A,1D,1C,1D)と一致するか否かをチェックする。   In step S308, a plurality of closed region arrangement patterns (1A, 1D, 1C, 1D in the counterclockwise direction) in contact with at least one of the two intersections (P11, P12) included in q are included in r. A pattern of a sequence of closed regions of one original image corresponding to each of a plurality of closed regions (2A, 2D, 2C, 2D) in contact with at least one of the intersections (P21, P22) (counterclockwise 1A, 1D, 1C, 1D) is checked.

ステップS310は、ステップS308におけるチェックが一致しているか否かを判断する。チェックが一致していればステップS320に進む。チェックが一致していなければ、ステップS312に進む。   In step S310, it is determined whether or not the checks in step S308 match. If the checks match, the process proceeds to step S320. If the checks do not match, the process proceeds to step S312.

ステップS320で、rとqとが対応すると認識し、s=(r,q)として、要素sを集合Sに加え、記憶する。   In step S320, it is recognized that r corresponds to q, and element s is added to set S and stored as s = (r, q).

以上の処理を行うことにより、図9に示すような、2つの交点どうしの対応関係を抽出することができる。   By performing the above processing, the correspondence between two intersections as shown in FIG. 9 can be extracted.

図13は、図12で抽出した2つの交点の組を要素sとする集合から、要素sを1つずつ取り出して、交点の対応付けを行う処理を示すフローチャートである。理解を助けるために、図12のフローチャート及び下記の説明において、括弧書きで図9に示した符号を例示として示す。   FIG. 13 is a flowchart showing a process of taking out the elements s one by one from the set having the two intersection points extracted in FIG. 12 as the element s and associating the intersection points. In order to help understanding, in the flowchart of FIG. 12 and the following description, the reference numerals shown in FIG.

ステップS400は、集合Sから1つずつ要素sを取り出して、ステップS412との間で処理を繰り返すことを示している。   Step S400 indicates that the element s is taken out from the set S one by one, and the process is repeated with step S412.

ステップS402で、1つの交点の削除を行う。なお、図12のフローチャートは、図9の例に限定されるものではない。なお、以下に示すように、集合を定義する。
s∈S
s=(q,r)
q∈交点P11,交点P12 (一方の原画(原画1)に含まれる交点)
r∈交点P21,交点P22 (他方の原画(原画2)に含まれる交点)
このステップS402においては、一方の原画の交点の組(q)に含まれる2つの交点(P11,P12)のうちいずれか1つの交点(P12)を削除する。
In step S402, one intersection is deleted. Note that the flowchart of FIG. 12 is not limited to the example of FIG. A set is defined as shown below.
s∈S
s = (q, r)
q∈intersection P11, intersection P12 (intersection included in one original picture (original picture 1))
r∈intersection P21, intersection P22 (intersection included in the other original picture (original picture 2))
In step S402, one of the intersections (P11, P12) included in the intersection set (q) of one original image is deleted.

ステップS404で、削除された交点(P12)に接続されており、残された交点(P12)に接続されていない2つの境界線(Lbc,Lcd)を特定する。   In step S404, two boundary lines (Lbc, Lcd) connected to the deleted intersection (P12) and not connected to the remaining intersection (P12) are specified.

S406で、特定された2つの境界線(Lbc,Lcd)の各々を、削除された交点(P12)と残された交点(P11)とを結ぶ境界線(Ldb)に沿って、残された交点(P11)まで延長する。   In S406, each of the two specified boundary lines (Lbc, Lcd) is left along the boundary line (Ldb) connecting the deleted intersection point (P12) and the remaining intersection point (P11). Extend to (P11).

ステップS408で、延長された2つの境界線(Lbc,Lcd)の一方の境界線(Lbc)の延長された端に第1の交点(P111)を生成し、前記一方の境界線(Lbc)を境に隣接する2つの閉領域(1B,1C)に対応する他方の原画(原画2)の閉領域(2B,2C)の境界線(L2bc)上の点(P21)を、生成された前記第1の交点(P111)に対応させる。交点P111は、境界線Labに接続させる。同様に、延長された2つの境界線(Lbc,Lcd)の他方の境界線(Lcd)の延長された端に第2の交点(P112)を生成し、前記一方の境界線(Ldc)を境に隣接する2つの閉領域(1D,1C)に対応する他方の原画(原画2)の閉領域(2D,2C)の境界線(L2cd)上の点(P22)を、生成された前記第2の交点(P112)に対応させる。交点P112は、境界線Ladに接続させる。   In step S408, a first intersection (P111) is generated at the extended end of one boundary line (Lbc) of the two extended boundary lines (Lbc, Lcd), and the one boundary line (Lbc) is defined. The point (P21) on the boundary line (L2bc) of the closed region (2B, 2C) of the other original image (original image 2) corresponding to the two closed regions (1B, 1C) adjacent to the boundary is generated. 1 point of intersection (P111). The intersection point P111 is connected to the boundary line Lab. Similarly, a second intersection (P112) is generated at the extended end of the other boundary line (Lcd) of the two extended boundary lines (Lbc, Lcd), and the one boundary line (Ldc) is defined as the boundary. The point (P22) on the boundary line (L2cd) of the closed region (2D, 2C) of the other original image (original image 2) corresponding to the two closed regions (1D, 1C) adjacent to the second image is generated. Corresponding to the intersection (P112). The intersection point P112 is connected to the boundary line Lad.

ステップS410で、残された交点(P11)を削除する。生成された2つの交点(P111,P112)は、長さ零の境界線で結ばれているとする。境界線Ldbを削除してもよい。交点P11を消去してもよい。   In step S410, the remaining intersection (P11) is deleted. Assume that two generated intersections (P111, P112) are connected by a zero-length boundary line. The boundary line Ldb may be deleted. The intersection P11 may be deleted.

以上の処理を行うことによって、図9のパターンに対して、交点の対応付けの処理行うことができる。   By performing the above processing, intersection matching processing can be performed on the pattern of FIG.

図14は、図11、図12及び図13の処理が適用された2つの原画に対する中割り画像Nを生成する例を示している。   FIG. 14 shows an example of generating a middle-split image N for two original images to which the processes of FIGS. 11, 12, and 13 are applied.

図14の中割り画像Nに示されるように、原画1の交点P111が中割り画像の交点NP111に対応し、原画1の交点P112が中割り画像の交点NP112に対応する。そして、原画1では長さが零であった境界線が、中割り画像Nにおける交点NP111と交点NP112との間に境界線Lacとして表示されていることがわかる。このようにして、交点の対応付けを行うことにより、中割り画像を自動的に生成することが可能である。   As shown in the middle image N in FIG. 14, the intersection point P111 of the original image 1 corresponds to the intersection point NP111 of the middle image, and the intersection point P112 of the original image 1 corresponds to the intersection point NP112 of the middle image. Then, it can be seen that the boundary line having a length of zero in the original image 1 is displayed as the boundary line Lac between the intersection point NP111 and the intersection point NP112 in the intermediate image N. In this way, it is possible to automatically generate an intermediate image by associating intersections.

なお、中割り画像Nを生成する場合には、各境界線の形状についても補間を行い、なめらかな中割り画像が生成されるようにしてもよい。或いは、対応する交点、対応する境界線、対応する閉領域の情報等を用いて、モーフィングの技術により、中割り画像Nを生成するようにしてもよい。また、2つの原画にそれぞれ存在する閉領域を構成しない線及び点等については、閉領域及び交点の対応関係から、それらの対応関係を推測することが可能である場合が多い。なお、2つの原画に存在する閉領域、線、点などのうち、対応関係が推測不可能であるものについては、オペレータに対して、対応関係の指定を行うよう促してもよい。最終的に、オペレータの指示もなされておらず、対応関係が不明である閉領域、線、点などについては、周囲の閉領域、線、点など補間の結果をとの位置関係から、中割り画像における位置関係を決定してもよい。モーフィングの技術に見られるように、2つの原画に存在する全ての構成要素の対応関係が判明していなくても、モーフィングの技術等を利用することにより、中割り画像を生成することは可能である。   Note that when the intermediate image N is generated, the shape of each boundary line may also be interpolated to generate a smooth intermediate image. Alternatively, the intermediate image N may be generated by the morphing technique using the corresponding intersection point, the corresponding boundary line, the corresponding closed region information, and the like. In many cases, it is possible to infer the correspondence between the closed areas and the intersections of lines and points that do not constitute the closed areas that exist in the two original images. Of the closed areas, lines, points, and the like that exist in the two original images, the operator may be prompted to specify the corresponding relationship for which the corresponding relationship cannot be estimated. Finally, for closed areas, lines, points, etc. for which the operator has not instructed and the correspondence is unknown, the interpolation results such as surrounding closed areas, lines, points, etc. You may determine the positional relationship in an image. As seen in the morphing technology, it is possible to generate an intermediate image by using the morphing technology, etc., even if the correspondence between all the components present in the two original images is not known. is there.

図15は、図14に示した例と同様の例であって、中割り画像を複数生成した場合の例を示している。原画5と原画6との間に、時間軸に沿ってN01からN10までの10個の中割り画像が生成されている。原画及び中割り画像は、それぞれ、動画の1フレームに対応する。図15の場合には、原画5、10個の中割り画像、原画6の12のフレームが連続して表示され、スムーズな動画が再生されることとなる。   FIG. 15 is an example similar to the example illustrated in FIG. 14 and illustrates an example in which a plurality of intermediate images are generated. Between the original image 5 and the original image 6, ten intermediate images N01 to N10 are generated along the time axis. Each of the original image and the intermediate image corresponds to one frame of the moving image. In the case of FIG. 15, 12 frames of the original image 5, 10 intermediate images, and the original image 6 are displayed in succession, and a smooth moving image is reproduced.

図16は、交点の無い閉領域の境界線に端点を付与することで交点を作る例を示す図である。この例の場合には、原画7と原画8とにそれぞれ1つずつの交点(交点P51及び交点P61)が図示されている。それぞれの原画における閉領域の交点の数は、複数であってもよい。この場合には、まず、2つの閉領域を1つの平面上に置く。これら2つの閉領域の間のハウスドルフ距離を求める。次に一方の閉領域の境界線上の全ての点について、他方の閉領域の境界線上の点からの距離が最小となるそれぞれの点を求め、一方の閉領域の点と他方の閉領域の点とを対応づけた2点の組の集合を作る。それぞれの組において、2点間の距離がハウスドルフ距離と等しい組を、対応のついた交点としてそれぞれの閉領域に付与する。なお、2点間の距離がハウスドルフ距離と等しい点の組が複数ある場合は任意の組を選択して対応のついた交点としてもよい。   FIG. 16 is a diagram illustrating an example in which an intersection point is created by giving an end point to a boundary line of a closed region without an intersection point. In the case of this example, one intersection (intersection P51 and intersection P61) is shown for each of the original picture 7 and the original picture 8. The number of intersections of the closed regions in each original image may be plural. In this case, first, two closed regions are placed on one plane. Find the Hausdorff distance between these two closed regions. Next, for all the points on the boundary line of one closed region, find each point whose distance from the point on the boundary line of the other closed region is the smallest, and the point of one closed region and the point of the other closed region Create a set of two-point pairs that correspond to. In each pair, a pair having a distance between two points equal to the Hausdorff distance is assigned to each closed region as a corresponding intersection. In addition, when there are a plurality of pairs of points where the distance between the two points is equal to the Hausdorff distance, an arbitrary pair may be selected and set as a corresponding intersection.

ハウスドルフ距離dHは、一般に、2つの集合Aと集合Bがある場合に、集合Aのどの点であっても少なくとも距離dHだけ進めば集合Bのどれかの点に到達できる。同じく、集合Bのどの点であっても少なくとも距離dHだけ進めば集合Aのどれかの点に到達できる。このような距離dHをハウスドルフ距離と言う。図16の場合には、同一平面上に置いた、原画7と原画8において、原画7に含まれる複数の画素が集合Aに対応し、原画8に含まれる画素が集合Bに対応する。   In general, the Hausdorff distance dH can reach any point in the set B by proceeding at least the distance dH at any point in the set A when there are two sets A and B. Similarly, any point in the set B can reach any point in the set A by proceeding at least the distance dH. Such a distance dH is called a Hausdorff distance. In the case of FIG. 16, in the original image 7 and the original image 8 placed on the same plane, a plurality of pixels included in the original image 7 correspond to the set A, and pixels included in the original image 8 correspond to the set B.

なお、必ずしもハウスドルフ距離を採用する必要はなく、閉領域で、形状の似ている位置の点を、対応する交点として採用してもよい。また、パターン認識などの手法を用いて、類似するパターン上に存在する点どうしを対応する交点としてもよい。   Note that the Hausdorff distance is not necessarily employed, and a point having a similar shape in the closed region may be employed as a corresponding intersection. Moreover, it is good also considering the points which exist on a similar pattern as a corresponding intersection using methods, such as pattern recognition.

図17は、2つの原画の片方が孤立した閉路を持つ場合の交点の処理の例を示す図である。原画9は、孤立した閉路と直線が存在している。原画10Aでは、直線と円が接触しており、交点P101及び交点P102が存在している。   FIG. 17 is a diagram illustrating an example of intersection processing when one of two original images has an isolated cycle. In the original picture 9, there are isolated cycles and straight lines. In the original image 10A, a straight line and a circle are in contact with each other, and an intersection point P101 and an intersection point P102 exist.

この場合には、原画9と原画10Aとで、交点の対応付けが行えない。したがって、以下のようにすることが望ましい。   In this case, the intersection of the original picture 9 and the original picture 10A cannot be associated. Therefore, it is desirable to do the following.

すなわち、原画10Bに示されるように、交点P101及び交点P102を削除する。そして、交点P101に接続していた直線と、交点P102に接続していた直線を延長して、一つの直線にする。さらに、交点P101に接続していた円の端点と、交点P102に接続していた円の端点とを接続して、一つの円形状の図を作る。次に、原画9及び原画10Bに、図16で示した手法を用いて新たな交点を設ける。例えば、交点P093と、交点P103を設ける。この場合、図16を用いて説明したように、平面上に2つの円形状の図を置いた場合に、これらの2つの円の間のハウスドルフ距離を用いて、交点を付与してもよい。   That is, as shown in the original image 10B, the intersection point P101 and the intersection point P102 are deleted. Then, the straight line connected to the intersection point P101 and the straight line connected to the intersection point P102 are extended to form one straight line. Furthermore, the end point of the circle connected to the intersection point P101 and the end point of the circle connected to the intersection point P102 are connected to create one circular figure. Next, a new intersection is provided in the original picture 9 and the original picture 10B using the method shown in FIG. For example, an intersection point P093 and an intersection point P103 are provided. In this case, as described with reference to FIG. 16, when two circular figures are placed on a plane, an intersection may be given using the Hausdorff distance between these two circles. .

図18は、原画をレイヤーに分けて、処理を行う例を示す図である。原画11には、笛の上部11Aと笛の下部11Bが存在している。そして、原画12にも、笛の上部12Aと笛の下部12Bが存在している。このような笛の部分の画像の周辺では、2つの原画における交点の対応付けが単純に行えないことがある。すなわち、図7及び図9に関連して例示した交点の対応付けの処理によっても、なお、対応付けが行えない交点を含む閉領域が存在することがある。このような閉領域に対しては、その閉領域を切り出し、別のレイヤー(層)に移動させ、交点の対応付けの処理をレイヤー毎に別個に行うことが有効である。   FIG. 18 is a diagram illustrating an example in which an original image is divided into layers and processing is performed. The original picture 11 has an upper part 11A of the whistle and a lower part 11B of the whistle. The original picture 12 also has a whistle upper part 12A and a whistle lower part 12B. In the vicinity of such an image of the flute portion, there are cases where the intersection of the two original images cannot be simply associated. That is, there may be a closed region including an intersection that cannot be correlated even by the process of associating the intersection illustrated with reference to FIGS. 7 and 9. For such a closed region, it is effective to cut out the closed region and move it to another layer (layer), and perform the process of associating intersections separately for each layer.

すなわち、原画11及び原画12の笛の部分をそれぞれ別のレイヤーにコピーし、基の原画からは、笛の画像部分を削除する。この操作を行うと、人間の部分のレイヤーと笛の部分のレイヤーに原画を分けて、交点の対応付けの処理をすることができる。レイヤーに分けるか否かの判断手法としては、図9のパターンが周辺に多く発生する閉領域を他のレイヤーに移すことが有効である。   That is, the whistle part of the original picture 11 and the original picture 12 is copied to different layers, and the whistle image part is deleted from the original picture. When this operation is performed, the original picture is divided into the human part layer and the whistle part layer, and the process of associating the intersections can be performed. As a method for determining whether or not to divide into layers, it is effective to move a closed region where many patterns in FIG.

なお、一部の閉領域を他のレイヤーに移し、他のレイヤーに移した画像を原画から削除することが望ましい。この際に、削除された部分の周辺が空白となってしまい、閉領域が存在しない部分が発生する場合がある。すなわち、一部の閉領域を他のレイヤーに移動させた残りの画像の空白部分には、閉領域が存在せず、閉領域が開いた形の分岐線が存在する場合がある。この場合には、分岐線をそのまま残して、分岐線の端の点(端点)を特定し、一方の原画と他方の原画とで、端点どうしの対応付けを行ってもよい。あるいは、対応付けが行えない交点が残ってしまう場合には、オペレータに対して指示を行うよう促してもよい。   Note that it is desirable to move a part of the closed area to another layer and delete the image transferred to the other layer from the original image. At this time, there may be a case where a portion around the deleted portion becomes blank and a portion where no closed region exists is generated. That is, there may be a branch line in which the closed area is opened, and the blank area of the remaining image obtained by moving a part of the closed area to another layer does not exist. In this case, the branch line may be left as it is, the end point (end point) of the branch line may be specified, and the end points may be associated with each other in the original image and the other original image. Alternatively, when an intersection that cannot be associated remains, the operator may be prompted to give an instruction.

あるいは、上記の場合には、閉領域を削除した部分の周辺に存在する線分を延長して、つなぎ合わせる処理を行うことにより、閉領域を形成することが可能である。原画をレイヤーに分けて、交点の対応付けを行う際には、新たに生成された閉領域の対応付けの処理を行うことが必要となる場合がある。この場合には、レイヤーに移す前に存在した閉領域を結合させることにより、多くの場合対処することができる。なお、対処することができない場合には、再度、閉領域の対応付けを部分的に再度行うことも有効である。
<3> 実施形態3:中割り画像の形成の変形例
以上のようにして、2つの原画の閉領域の対応付け、交点の対応付けを順番に行うことにより、2つの原画の各部の対応付けが行える。
Alternatively, in the above case, it is possible to form the closed region by performing a process of extending the line segments existing around the portion where the closed region is deleted and joining them together. When dividing an original image into layers and associating intersections, it may be necessary to perform a process of associating a newly generated closed region. This case can be dealt with in many cases by combining the closed regions that existed before moving to the layer. If it is not possible to cope with it, it is also effective to partially perform the association of the closed areas again.
<3> Third Embodiment: Modification Example of Formation of Middle-Split Image As described above, by associating the closed regions of the two original images and associating the intersections in order, the association of each part of the two original images Can be done.

中割り画像は、2つの原画の交点の位置を補間することで行えるが、閉領域の対応関係、閉領域の境界線の形状、対応する交点を結んだ境界線の対応関係等をも勘案して、総合的に原画の補間を行うことがより自然な中割り画像を作成する上で有利である。   An intermediate image can be created by interpolating the position of the intersection of two original images. However, considering the correspondence of the closed region, the shape of the boundary of the closed region, the correspondence of the boundary connecting the corresponding intersections, etc. Thus, comprehensively interpolating the original image is advantageous in creating a more natural intermediate image.

また、閉領域の画像の対応付けの際に、オペレータに彩色の指示を促すことで、彩色の処理と、閉領域の確認とをまとめてオペレータに促すことができる。   Further, by associating the operator with a coloring instruction when associating the images in the closed area, it is possible to prompt the operator to perform the coloring process and the confirmation of the closed area together.

例えば原画1と原画2との閉領域の対応付けを行い、次に原画2と原画3の閉領域の対応付けを行うように、順番に対応付けを行うようにしてもよい。この場合、原画1と原画2との閉領域の対応付けの際に彩色の指示をオペレータが行えば、原画2と原画3との閉領域の対応付けの際の彩色は、略自動で行えることとなる。しかも、中割り画像の彩色は、原画の彩色から容易に推定できるので、中割り画像の彩色も略自動で行えることとなる。   For example, the closed areas may be associated with the original image 1 and the original image 2 and then the closed areas of the original image 2 and the original image 3 may be associated with each other in order. In this case, if the operator instructs the coloring when the original image 1 and the original image 2 are associated with each other in the closed region, the coloring when the original image 2 and the original image 3 are associated with each other in the closed region can be performed substantially automatically. It becomes. In addition, since the coloring of the intermediate image can be easily estimated from the coloring of the original image, the coloring of the intermediate image can be performed almost automatically.

<4> 実施形態4(閉領域の対応付けの変形例)
図18を用いて、一方の原画の2つの閉領域が、他方の原画における1つの閉領域に対応する場合の処理の例を以下に説明する。
<4> Embodiment 4 (modified example of associating closed regions)
An example of processing when two closed regions of one original image correspond to one closed region of the other original image will be described below with reference to FIG.

図18において、原画11における閉領域110及び閉領域111は、原画12における閉領域121に対応している。この場合には、閉領域の対応付けが多対1の形式になっている。このような状況は、閉領域の前側に、多のオブジェクトが重なっている原画の場合に発生しやすい。このような場合にも対処するためには、例えば、以下のような処理を行えばよい。   In FIG. 18, the closed region 110 and the closed region 111 in the original image 11 correspond to the closed region 121 in the original image 12. In this case, the association of the closed areas is in a many-to-one format. Such a situation is likely to occur in the case of an original image in which many objects overlap in front of the closed region. In order to deal with such a case, for example, the following processing may be performed.

まず、原画11の閉領域110に対応する原画12の閉領域を、上述の実施形態1で推定する。この推定によって、閉領域110に対応する閉領域として121が推定される。この時点で、対応する閉領域110と閉領域121とを画面に表示して、オペレータに確認を促す。オペレータは、閉領域の対応付けとして、原画11の閉領域111が残っていることがわかる。このため、推定は、部分的に正しいことを入力する。この入力においては、原画11の領域110は、以後の閉領域の対応の対象から除外し、閉領域121は、以後の閉領域の対象から除外しないように、オペレータが指示を行えばよい。この指示は、図3に示した表の対応付けの欄におけるフラグの処理で実現できる。すなわち、領域110の対応付けのフラグを1として、以後の対応付けの対象から除外する。これに対して、領域121の対応付けの欄は、フラグを0のままとし、以後の対応付けにおいても、考慮されるようにすればよい。オペレータは、この時、併せて、彩色の指示を行ってもよい。オペレータの彩色の指示によって、閉領域110と閉領域121が同じ色で彩色されるが、閉領域121は、閉領域の推定対象としての状態を保持することができる。   First, the closed region of the original image 12 corresponding to the closed region 110 of the original image 11 is estimated in the above-described first embodiment. With this estimation, 121 is estimated as a closed region corresponding to the closed region 110. At this point, the corresponding closed area 110 and closed area 121 are displayed on the screen to prompt the operator to confirm. The operator knows that the closed region 111 of the original image 11 remains as the closed region association. For this reason, the estimation enters that it is partially correct. In this input, the operator may instruct that the area 110 of the original image 11 is excluded from the corresponding target of the subsequent closed area, and the closed area 121 is not excluded from the target of the subsequent closed area. This instruction can be realized by the flag processing in the correspondence field of the table shown in FIG. That is, the association flag of the area 110 is set to 1, and is excluded from the subsequent association targets. On the other hand, in the association column of the area 121, the flag may be left as 0 so that it is taken into consideration in the subsequent association. At this time, the operator may also instruct coloring. Although the closed region 110 and the closed region 121 are colored with the same color according to the coloring instruction of the operator, the closed region 121 can hold a state as an estimation target of the closed region.

その後、原画11の閉領域111の対応付けの処理の際に、再度、原画12の閉領域121が、対応する旨の推定がなされることとなるので、この対応付けが表示され、オペレータへの指示の入力が促された際に、オペレータは、対応付けが正しいことを入力する。このオペレータの指示によって、図3に示す閉領域111の対応付けのフラグと、閉領域121の対応付けのフラグが、いずれも0から1に置き換えられ、これらの閉領域は、以後の閉領域の対応付けの推定の処理の対象から除かれることとなる。   Thereafter, when the process of associating the closed area 111 of the original image 11 is performed, it is estimated again that the closed area 121 of the original image 12 corresponds. When the instruction is prompted, the operator inputs that the correspondence is correct. According to the instruction of the operator, the association flag of the closed area 111 and the association flag of the closed area 121 shown in FIG. 3 are both replaced from 0 to 1, and these closed areas are the following closed areas. It is excluded from the target of the process of estimating the association.

なお、図3の対応付けの欄を使わないこととすれば、閉領域の対応付けとして、1対多、多対1、多対多の閉領域の対応付けを許容することができる。この場合にも、対応付けが正しいか否かの指示をオペレータが入力するように促してもよい。   If the association field in FIG. 3 is not used, one-to-many, many-to-one, and many-to-many closed regions can be allowed to be associated as closed regions. Also in this case, the operator may be prompted to input an instruction as to whether or not the association is correct.

<5> ハードウエア構成
図19は、本実施形態のハードウエア構成1700を示す図である。
<5> Hardware Configuration FIG. 19 is a diagram showing a hardware configuration 1700 of the present embodiment.

ハードウエア構成1700は、CPU1710、メモリ1720、通信制御部1730、入出力インタフェース1740、表示制御部1750、ドライブ制御部1760、及び印刷制御部1770を有する。   The hardware configuration 1700 includes a CPU 1710, a memory 1720, a communication control unit 1730, an input / output interface 1740, a display control unit 1750, a drive control unit 1760, and a print control unit 1770.

そして、通信制御部1730には、インターネットなどのネットワークが接続される。入出力インタフェース1740には、入出力装置1742が接続される。表示制御部1750には、表示装置1752が接続される。ドライブ制御部1760は、記憶媒体1762を読み書きすることができる。印刷制御部1770には、プリンタ1772が接続される。   The communication control unit 1730 is connected to a network such as the Internet. An input / output device 1742 is connected to the input / output interface 1740. A display device 1752 is connected to the display control unit 1750. The drive control unit 1760 can read and write the storage medium 1762. A printer 1772 is connected to the print control unit 1770.

記憶媒体1762は、RAM、ROM、CD−ROM、DVD−ROM、ハードディスク、メモリーカード等であってもよい。   The storage medium 1762 may be a RAM, ROM, CD-ROM, DVD-ROM, hard disk, memory card, or the like.

以上説明した実施形態の方法は,コンピュータにより実行され得る。また,実施形態の方法は,コンピュータに実行させるプログラムとして,インプリメントされてもよい。プログラムの一部又は前部は、オペレーティングシステムにより実行されてもよい。また、プログラムの一部がハードウエアにより実現されてもよい。プログラムは記憶媒体1762に記憶されてもよい。   The method of the embodiment described above can be executed by a computer. In addition, the method of the embodiment may be implemented as a program that is executed by a computer. Part or the front of the program may be executed by the operating system. A part of the program may be realized by hardware. The program may be stored in the storage medium 1762.

なお,上述の実施形態において,方法のステップ又はプログラムのステップは、矛盾のない限り,同時に,又は順序を入れ替えて実行されてもよい。   In the above-described embodiment, the method steps or the program steps may be executed simultaneously or in a different order as long as there is no contradiction.

以上の実施形態は,ハードウエアの装置としてインプリメントされ得る。   The above embodiments can be implemented as a hardware device.

以上の実施形態は,請求項に記載された発明を限定するものではなく,例示として取り扱われることは言うまでもない。   It goes without saying that the above embodiment does not limit the invention described in the claims, but is treated as an example.

なお、原画及び中割り画像に含まれる閉領域並びに背景は、領域の一例である。原画、中割り画像、背景は、画像を構成する要素の例である。境界線は、閉領域の輪郭の一部を構成する要素となり得る。   Note that the closed region and the background included in the original image and the intermediate image are examples of regions. The original image, the middle-split image, and the background are examples of elements constituting the image. The boundary line can be an element constituting a part of the outline of the closed region.

Lab 境界線
Lac 境界線
Lbc 境界線
Lcd 境界線
Ldb 境界線
Lde 境界線
P12 削除する交点
P111 P11の位置に設定される交点
P112 P11の位置に設定される交点
Lab boundary line Lac boundary line Lbc boundary line Lcd boundary line Ldb boundary line Lde boundary line P12 intersection point P112 set at the position of the deleted point P111 intersection point set at the position of P11

Claims (8)

一方の画像に含まれる複数の閉領域と、他方の画像に含まれる複数の閉領域とを、比較することによって、一方の画像の第1の閉領域に対応する、第2の閉領域を、他方の画像からコンピュータが特定する方法であって、前記一方の画像及び前記他方の画像の各々は、複数の画素で構成されており、前記複数の画素の各々は、特徴量を持ち、当該方法は、
前記第1の閉領域に含まれる複数の画素の各々が持つ特徴量と、前記他方の画像に含まれる複数の画素の各々が持つ特徴量とから、前記第1の閉領域と、前記他方の画像に含まれる複数の閉領域との近似の度合いを求めるステップと、
前記他方の画像に含まれる複数の閉領域のうち、前記近似の度合いが最も近似していることを示す1つの閉領域を、前記第2の閉領域に特定するステップと、
を有し、
前記特徴量は、画素を含む閉領域の境界線から当該画素までの距離の関数である、方法。
By comparing the plurality of closed regions included in one image with the plurality of closed regions included in the other image, a second closed region corresponding to the first closed region of one image is obtained. A method in which a computer specifies from the other image, wherein each of the one image and the other image is composed of a plurality of pixels, and each of the plurality of pixels has a feature amount, and the method Is
From the feature amount of each of the plurality of pixels included in the first closed region and the feature amount of each of the plurality of pixels included in the other image, the first closed region and the other Obtaining a degree of approximation with a plurality of closed regions included in the image;
Identifying one closed region indicating that the degree of approximation is the closest among the plurality of closed regions included in the other image as the second closed region;
Have
The method is a method in which the feature amount is a function of a distance from a boundary line of a closed region including a pixel to the pixel.
前記特徴量は、予め定められた方位に画素から伸びる半直線が、当該画素を含む閉領域の境界線と交差する点から当該画素までの距離の関数である、請求項1記載の方法。   The method according to claim 1, wherein the feature amount is a function of a distance from a point where a half line extending from a pixel in a predetermined direction intersects a boundary line of a closed region including the pixel to the pixel. 前記特徴量は、複数の前記予め定められた方位の半直線が閉領域の境界線と交差する交差回数が最も小さい方位に対応する距離の関数である、請求項2に記載の方法。   3. The method according to claim 2, wherein the feature amount is a function of a distance corresponding to an azimuth having the smallest number of intersections at which a plurality of the half-lines of the predetermined azimuth intersect the boundary line of the closed region. 前記特徴量は、前記複数の予め定められた方位の数及び前記交差回数の組み合わせに応じた次元を有するベクトルである、請求項3に記載の方法。   The method according to claim 3, wherein the feature amount is a vector having a dimension corresponding to a combination of the plurality of predetermined azimuths and the number of intersections. 前記距離の関数は、負の値を持たず、距離が小さいほど値が大きくなる関数である、請求項1ないし4のうちいずれか1項に記載の方法。   The method according to claim 1, wherein the distance function is a function that does not have a negative value and increases as the distance decreases. 前記近似の度合いは、前記第1の閉領域と、前記他方の画像を重ね合わせた際に、前記第1の閉領域と前記他方の画像が重なり合う部分については、重なり合う画素同士の特徴量の差の絶対値の和又は、前記差の二乗和を用いる、請求項1ないし5のうちいずれか1項記載の方法。   The degree of approximation is the difference in feature amount between overlapping pixels in a portion where the first closed region and the other image overlap when the first closed region and the other image are overlapped. The method according to claim 1, wherein a sum of absolute values of or a square sum of the differences is used. 前記第1の閉領域及び前記第2の閉領域を、相互に対応する閉領域の候補として表示し、オペレータに確認するよう促す、請求項1ないし6のうちいずれか1項記載の方法。   The method according to any one of claims 1 to 6, wherein the first closed region and the second closed region are displayed as mutually corresponding closed region candidates, and an operator is prompted to confirm. 請求項1ないし7のうちいずれか1項記載の方法を、コンピュータに実行させる、プログラム。   The program which makes a computer perform the method of any one of Claims 1 thru | or 7.
JP2016091456A 2016-04-28 2016-04-28 Method and program for associating respective closed regions of at least two images including a plurality of closed regions Active JP6180583B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016091456A JP6180583B1 (en) 2016-04-28 2016-04-28 Method and program for associating respective closed regions of at least two images including a plurality of closed regions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016091456A JP6180583B1 (en) 2016-04-28 2016-04-28 Method and program for associating respective closed regions of at least two images including a plurality of closed regions

Publications (2)

Publication Number Publication Date
JP6180583B1 true JP6180583B1 (en) 2017-08-16
JP2017199280A JP2017199280A (en) 2017-11-02

Family

ID=59604918

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016091456A Active JP6180583B1 (en) 2016-04-28 2016-04-28 Method and program for associating respective closed regions of at least two images including a plurality of closed regions

Country Status (1)

Country Link
JP (1) JP6180583B1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2835752B2 (en) * 1989-11-07 1998-12-14 富士通株式会社 Automatic coloring device
JPH09134422A (en) * 1995-11-07 1997-05-20 B U G:Kk Continuous coloring method for animation and device therefor
JP4093440B2 (en) * 1999-08-27 2008-06-04 株式会社リコー Method for determining inclusion relationship of closed region and recording medium recording program for executing this method
JP2014106713A (en) * 2012-11-27 2014-06-09 Univ Of Tsukuba Program, method, and information processor
JP2015115047A (en) * 2013-12-16 2015-06-22 国立大学法人 東京大学 Information processing apparatus, information processing method, program, and recording medium

Also Published As

Publication number Publication date
JP2017199280A (en) 2017-11-02

Similar Documents

Publication Publication Date Title
CN109003325B (en) Three-dimensional reconstruction method, medium, device and computing equipment
US10861232B2 (en) Generating a customized three-dimensional mesh from a scanned object
CN111160085A (en) Human body image key point posture estimation method
CN111428586A (en) Three-dimensional human body posture estimation method based on feature fusion and sample enhancement
CN111199531A (en) Interactive data expansion method based on Poisson image fusion and image stylization
CN115943436A (en) Rapid and deep facial deformation
US11436755B2 (en) Real-time pose estimation for unseen objects
US9881417B2 (en) Multi-view drawing apparatus of three-dimensional objects, and method
CA2875426C (en) Resizing an image
JP7129529B2 (en) UV mapping to 3D objects using artificial intelligence
CN111753739B (en) Object detection method, device, equipment and storage medium
EP3474185B1 (en) Classification of 2d images according to types of 3d arrangement
US20090103775A1 (en) Multi-Tracking of Video Objects
JP2023109570A (en) Information processing device, learning device, image recognition device, information processing method, learning method, and image recognition method
JP2009211150A (en) Extraction device for road network
US20150221074A1 (en) Adding objects to digital photographs
JP6180587B1 (en) Method and program for associating two images
US11170550B2 (en) Facial animation retargeting using an anatomical local model
CN108898679A (en) A kind of method of component serial number automatic marking
JP6180583B1 (en) Method and program for associating respective closed regions of at least two images including a plurality of closed regions
JP6283083B1 (en) Method and program for associating regions existing in two images
Olivier et al. Nested Explorative Maps: A new 3D canvas for conceptual design in architecture
JP6482620B1 (en) Method and program for generating an image obtained by interpolating a plurality of images
Nam et al. SPACESKETCH: Shape modeling with 3D meshes and control curves in stereoscopic environments
JPH08335268A (en) Area extracting method

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20170630

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170630

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170706

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170718

R150 Certificate of patent or registration of utility model

Ref document number: 6180583

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250