JP2008217053A - Image processor and image processing program - Google Patents

Image processor and image processing program Download PDF

Info

Publication number
JP2008217053A
JP2008217053A JP2007049310A JP2007049310A JP2008217053A JP 2008217053 A JP2008217053 A JP 2008217053A JP 2007049310 A JP2007049310 A JP 2007049310A JP 2007049310 A JP2007049310 A JP 2007049310A JP 2008217053 A JP2008217053 A JP 2008217053A
Authority
JP
Japan
Prior art keywords
minimum
layer
dissimilarity
grid
coordinate
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.)
Granted
Application number
JP2007049310A
Other languages
Japanese (ja)
Other versions
JP4821653B2 (en
Inventor
Kazunori So
一憲 宋
Shunichi Kimura
俊一 木村
Yutaka Koshi
裕 越
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2007049310A priority Critical patent/JP4821653B2/en
Publication of JP2008217053A publication Critical patent/JP2008217053A/en
Application granted granted Critical
Publication of JP4821653B2 publication Critical patent/JP4821653B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor which can perform alignment in sub-pixel by decreasing processing load by performing alignment with smaller number of hierarchies. <P>SOLUTION: An image input means of the image processor inputs two sheets of an image. A computing means computes a coordinate with minimum difference level from a difference level of grids based on a layer value, covering the image input by the image input means. A control means makes the coordinate with minimum difference level computed by the computing means output if the layer value is a desired layer value. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

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

複数の画像同士で似たテクスチャーを重ね合わせるパノラマ画像の生成や、Super resolution技術を用いた画像の高解像度化、また動画像圧縮における動き補償処理のために、高速・高精度な画像の位置合わせ技術が必要不可欠である。
特に、位置合わせの精度をサブ画素の精度とし、かつ高速な処理が求められている。
High-speed and high-precision image alignment for panoramic image generation that overlays similar textures between multiple images, higher resolution of images using Super resolution technology, and motion compensation processing in moving image compression Technology is essential.
In particular, there is a demand for high-speed processing with the accuracy of alignment being the accuracy of sub-pixels.

例えば、特許文献1には、画像が撮像装置の特性やノイズなどの影響で変形を受けていても精度が低下しない、サブピクセル精度の位置合わせ手法を提供することを課題とし、フィッティング範囲設定手段において、入力画像の微分値の大きな画素の連なりをフィッティング範囲と設定し、関数フィッティング手段において、各フィッティング範囲に対し、単峰性の関数をフィッティングしエッジ位置をサブピクセル精度で求め、次に、ピクセル精度位置合わせ手段において位置合わせを行う。対応候補曲線生成手段において、ある一方の画像上のエッジ点に対して、他方の画像上の対応する複数のエッジ点を曲線で結び対応候補曲線とし、位置ずれ算出手段において、全ての対応候補曲線が交差する点、若しくは最も密集する点を求め、その座標を一方の画像からもう一方の画像に対するサブピクセル精度の変位とみなすことが開示されている。   For example, Patent Document 1 has an object to provide an alignment method with sub-pixel accuracy that does not decrease accuracy even when an image is deformed due to the characteristics of an imaging device, noise, or the like. , A series of pixels having a large differential value of the input image is set as a fitting range, and in the function fitting means, a unimodal function is fitted to each fitting range to obtain an edge position with sub-pixel accuracy. The pixel precision alignment means performs alignment. In the correspondence candidate curve generation means, a plurality of corresponding edge points on the other image are connected by a curve to an edge point on one image, and a correspondence candidate curve is obtained. Are found, and the coordinates are regarded as sub-pixel precision displacements from one image to the other.

また、これらに関連する技術として、例えば、特許文献2には、画像の位置合わせをサブピクセル精度で行う技術が記載されている。すなわち、N次元類似度を考慮することで、画像間対応パラメータを少ない計算量で安定かつ高速に高精度で同時に推定できるようにした、画像のサブピクセルマッチングにおける多パラメータ高精度同時推定方法及び多パラメータ高精度同時推定プログラムを提供することを課題とし、離散的な位置で得られた画像間のN次元類似度値が、ある1つのパラメータ軸に対して平行な直線上で最大又は最小となるサブサンプリング位置を求め、求められた前記サブサンプリング位置に最も近似するN次元超平面を各パラメータ軸毎に求め、求められた超平面の交点からサブサンプリンググリッド推定位置を求めることが開示されている。
特許第2897772号公報 再表2004−063991号公報
Further, as a technique related to these, for example, Patent Document 2 describes a technique for performing image alignment with sub-pixel accuracy. That is, by considering the N-dimensional similarity, the multi-parameter high-precision simultaneous estimation method in image sub-pixel matching, which enables simultaneous estimation of the correspondence parameter between images with a small amount of calculation, stably and at high speed, and multiple An object is to provide a parameter high-accuracy simultaneous estimation program, and an N-dimensional similarity value between images obtained at discrete positions becomes maximum or minimum on a straight line parallel to a certain parameter axis. It is disclosed that a subsampling position is obtained, an N-dimensional hyperplane that is closest to the obtained subsampling position is obtained for each parameter axis, and a subsampling grid estimated position is obtained from the intersection of the obtained hyperplanes. .
Japanese Patent No. 2897772 Table 2004-063991

画像の高解像度化のためにサブ画素の高精度な位置合わせをしようとすると、1画素毎の相違度を算出するため膨大な処理時間がかかるのが問題となる。また階層的に探索する方式では、あらかじめ決められた階層数だけ相違度の算出と補間処理が必要となることで処理時間が増大し、階層数を少なくすると精度が悪くなるという問題があった。
本発明は、このような背景技術の状況のなかでなされたもので、より少ない階層数で位置合わせを行うことで、処理負荷を減少させてサブ画素での位置合わせをすることができるようにした画像処理装置及び画像処理プログラムを提供することを目的としている。
If a high-precision alignment of sub-pixels is attempted to increase the resolution of an image, it takes a huge amount of processing time to calculate the degree of difference for each pixel. Further, the hierarchical search method has a problem that the processing time increases because the calculation of the degree of difference and the interpolation processing are required for the predetermined number of layers, and the accuracy decreases when the number of layers is reduced.
The present invention has been made in the background of such a background art, and by performing alignment with a smaller number of layers, it is possible to reduce the processing load and perform alignment with sub-pixels. An object of the present invention is to provide an image processing apparatus and an image processing program.

かかる目的を達成するための本発明の要旨とするところは、次の各項の発明に存する。
[1] 2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値であれば、前記相違度最小座標算出手段によって算出した相違度最小座標を出力させる制御手段
を具備することを特徴とする画像処理装置。
The gist of the present invention for achieving the object lies in the inventions of the following items.
[1] Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
An image processing apparatus comprising: control means for outputting the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculating means if the layer value is a desired layer value.

[2] 2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値でなければ、任意の数に減らしたレイヤ値のグリッドから相違度最小座標を前記相違度最小座標算出手段に算出させる制御手段
を具備することを特徴とする画像処理装置。
[2] Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
If the layer value is not a desired layer value, the image processing apparatus comprises: a control unit that causes the minimum dissimilarity coordinate calculating unit to calculate a minimum dissimilarity coordinate from a grid of layer values reduced to an arbitrary number .

[3] 前記制御手段は、前記相違度最小座標算出手段によって算出された相違度最小座標を次の減少させたレイヤ値で量子化する
ことを特徴とする[1]又は[2]に記載の画像処理装置。
[3] The control unit according to [1] or [2], wherein the control unit quantizes the minimum dissimilarity coordinate calculated by the minimum dissimilarity coordinate calculation unit with the next reduced layer value. Image processing device.

[4] グリッドはレイヤ値の画素分だけ互いに離れた画素とする
ことを特徴とする[1]、[2]又は[3]に記載の画像処理装置。
[4] The image processing apparatus according to [1], [2], or [3], wherein the grid is pixels separated from each other by a pixel corresponding to the layer value.

[5] 前記相違度最小座標算出手段は、グリッドの中心の相違度が最小となるグリッドにおいて相違度最小座標を算出する
ことを特徴とする[1]、[2]、[3]又は[4]に記載の画像処理装置。
[5] The minimum dissimilarity coordinate calculating means calculates the minimum dissimilarity coordinate in a grid having a minimum dissimilarity at the center of the grid. [1], [2], [3] or [4] ] The image processing apparatus as described in.

[6] 前記制御手段は、前記相違度最小座標算出手段によってグリッドの中心の相違度が最小となるグリッドを決定するためにレイヤ内で探索を行う
ことを特徴とする[5]に記載の画像処理装置。
[6] The image according to [5], wherein the control unit performs a search within a layer in order to determine a grid having a minimum difference between the centers of the grids by the minimum difference calculation unit. Processing equipment.

[7] 前記制御手段が行うレイヤ内でのグリッドの探索は、レイヤ値の画素分だけ離れた画素の相違度のなかで、中心の画素の相違度が最小となる場合に終了する
ことを特徴とする[6]に記載の画像処理装置。
[7] The search of the grid in the layer performed by the control means is ended when the difference of the central pixel is the minimum among the differences of the pixels separated by the pixels of the layer value. The image processing apparatus according to [6].

[8] 前記制御手段が行うレイヤ内でのグリッドの探索は、レイヤ値の画素分だけ離れた画素の相違度のなかで、中心の画素の相違度が最小でない場合、相違度が最小の座標を中心にレイヤ値の画素分だけ離れた画素の相違度で未算出の相違度を算出する
ことを特徴とする[6]に記載の画像処理装置。
[8] The search of the grid in the layer performed by the control means is performed when the dissimilarity of the pixel at the center is not the smallest among the dissimilarities of the pixels separated by the pixels of the layer value. The image processing apparatus according to [6], wherein an uncalculated dissimilarity is calculated based on a dissimilarity between pixels separated by a pixel corresponding to a layer value centering on.

[9] 前記制御手段は、前記相違度最小座標算出手段によって算出された相違度最小座標の位相で補間画像を生成し、
前記相違度最小座標算出手段は、前記制御手段によって生成された該補間画像と相違度最小座標から次のレイヤでのグリッドの相違度を算出し、該レイヤの相違度最小座標を算出する
ことを特徴とする[1]又は[2]に記載の画像処理装置。
[9] The control means generates an interpolated image with the phase of the minimum dissimilarity coordinate calculated by the minimum dissimilarity coordinate calculating means,
The dissimilarity minimum coordinate calculation means calculates the dissimilarity of the grid in the next layer from the interpolated image generated by the control means and the minimum dissimilarity coordinates, and calculates the minimum dissimilarity coordinates of the layer. The image processing apparatus according to [1] or [2], which is characterized.

[10] 画像処理システムを、
2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値であれば、前記相違度最小座標算出手段によって算出した相違度最小座標を出力させる制御手段
として機能させることを特徴とする画像処理プログラム。
[10] An image processing system
Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
If the layer value is a desired layer value, the image processing program is made to function as a control unit that outputs the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculating unit.

[11] 画像処理システムを、
2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値でなければ、任意の数に減らしたレイヤ値のグリッドから相違度最小座標を前記相違度最小座標算出手段に算出させる制御手段
として機能させることを特徴とする画像処理プログラム。
[11] An image processing system
Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
If the layer value is not a desired layer value, the image processing program causes the minimum dissimilarity coordinate calculating unit to function as a control unit that calculates the minimum dissimilarity coordinate from a grid of layer values reduced to an arbitrary number. .

本発明にかかる画像処理装置及び画像処理プログラムによれば、本構成を有していない場合に比較して、より少ない階層数で位置合わせを行うことで、処理負荷を減少させてサブ画素での位置合わせをすることができる。   According to the image processing apparatus and the image processing program according to the present invention, compared with the case where the present configuration is not provided, by performing alignment with a smaller number of layers, the processing load is reduced and sub-pixels are reduced. Can be aligned.

<実施の形態における背景技術>
まず、実施の形態の理解を容易にするために、実施の形態における背景技術及びその背景技術を実現した場合の状況について説明する。
前述した特許文献1には、整数位置3点の相違度を用いて、3点を通る2次曲線を引いて、その2次曲線を最小化する位置を求める手法が記載されている。
つまり、サブ画素の精度で2画像間の位置合わせを行う方式として、画像間の位置と相違度の関係が下に凸の2次曲線となる性質(図18(B)参照)を利用し、この凸となる相違度最小座標を求めるために、周辺の相違度から近似的に推測して求める方式が提案されている。
しかし、凸となる相違度が最小となる周辺を特定するためには、画像間をずらしながら1画素単位に相違度を算出し、その相違度が最小となる位置を特定する必要がある。相違度は画像間の最小自乗誤差、絶対誤差、相関係数、などがあるが、ある位置での相違度を算出するために2画像についてラスタスキャンを行う必要がある。すなわち、全画素の走査順での相違度の算出が必要となる。
仮に、512画素×512画素の2画像の位置合わせを行う場合(図18(A)参照)、重なりが1画素から1画素単位にずらして相違度を算出するとなると、(511+512+511)×(511+512+511)=2,353,156回の膨大な2画像の画素間の計算が必要(図18(C)参照)となり、実用的ではない状況である。
<Background Technology in the Embodiment>
First, in order to facilitate understanding of the embodiment, the background technology in the embodiment and the situation when the background technology is realized will be described.
Patent Document 1 described above describes a method of obtaining a position at which a quadratic curve passing through three points is drawn by using a degree of difference at three integer positions and minimizing the quadratic curve.
In other words, as a method of performing alignment between two images with subpixel accuracy, a property (see FIG. 18B) in which the relationship between the position between images and the degree of difference is a downwardly convex quadratic curve is used. In order to obtain the convex minimum dissimilarity coordinates, a method has been proposed in which approximate coordinates are obtained by inferring from the peripheral dissimilarities.
However, in order to specify the periphery where the degree of difference that becomes convex is minimum, it is necessary to calculate the degree of difference for each pixel while shifting between images, and to specify the position where the degree of difference is minimum. The degree of difference includes a least square error between images, an absolute error, a correlation coefficient, and the like. In order to calculate the degree of difference at a certain position, it is necessary to perform raster scanning for two images. That is, it is necessary to calculate the degree of difference in the scanning order of all pixels.
If two images of 512 pixels × 512 pixels are aligned (see FIG. 18A), if the degree of difference is calculated by shifting the overlap from one pixel to one pixel unit, (511 + 512 + 511) × (511 + 512 + 511) = 2,353,156 It is necessary to perform calculation between the pixels of two huge images (see FIG. 18C), which is not practical.

また、特許文献2には、X軸に水平な複数の直線上で相違度が最小となる点を結ぶ直線を求め、Y軸に水平な複数の直線上で相違度が最小となる点を結ぶ直線を求め、2つの直線の交点を推定値とし、そのために25個の相違度値が必要となることが記載されている。
つまり、2画像間のサブ画素精度での位置合わせを高速に行うために、相違度計算の回数を簡略化する目的から階層的に行う方式が提案されている。
この方式では、ある階層で3×3の9画素で最小相違度の画素を中心に次の階層でより狭い範囲の最小相違度座標を求めていく。
したがって、あらかじめ決められたグリッド上でのみ相違度を算出するため、高精度にするためには階層数が多数になる。またサブ画素の階層では階層毎に補間画像を生成する。
仮に、0.1画素以下の精度で位置を合わせる場合、もれなく探索するためには0.5画素ステップで階層的に絞り込む必要がある。このため4画素から始めた場合、4画素から0.0625画素までの7段階の階層が必要となる(図19参照)。この間、9回+6段階×8回=57回の相違度の算出と3回の補間画像の生成処理が必要となり、処理時間は、依然として実用的ではない状況である。なお、図19は、階層の状況を示しており、白の四角が4画素の段階の階層であり、以下、白三角が2画素、黒丸が1画素、黒四角が0.5画素、黒三角が0.125画素、白丸が0.0625画素(なお、0.25画素は省略)を表している。
Further, Patent Document 2 obtains a straight line connecting points where the dissimilarity is minimum on a plurality of horizontal lines parallel to the X axis, and connects a point where the dissimilarity is minimum on the plurality of horizontal lines parallel to the Y axis. It is described that a straight line is obtained and an intersection of two straight lines is used as an estimated value, and therefore 25 dissimilarity values are required.
That is, in order to perform high-speed alignment between two images with sub-pixel accuracy, a hierarchical method has been proposed for the purpose of simplifying the number of differences calculation.
In this method, the minimum dissimilarity coordinates in a narrower range are obtained in the next hierarchy centering on the pixels having the minimum dissimilarity of 3 × 3 9 pixels in a certain hierarchy.
Therefore, since the degree of difference is calculated only on a predetermined grid, the number of hierarchies becomes large for high accuracy. In the subpixel hierarchy, an interpolated image is generated for each hierarchy.
If the position is adjusted with an accuracy of 0.1 pixel or less, it is necessary to narrow down hierarchically in 0.5 pixel steps in order to search without fail. For this reason, when starting with 4 pixels, 7 levels of hierarchy from 4 pixels to 0.0625 pixels are required (see FIG. 19). During this time, 9 times + 6 steps × 8 times = 57 times of calculation of difference and 3 times of interpolation image generation processing are required, and the processing time is still not practical. FIG. 19 shows a hierarchical situation, in which the white square is a hierarchy of four pixels. Hereinafter, the white triangle is two pixels, the black circle is one pixel, the black square is 0.5 pixel, and the black triangle. Represents 0.125 pixel and white circle represents 0.0625 pixel (note that 0.25 pixel is omitted).

<基本アーキテクチャ>
2画像間の相違度(縦軸方向)と画像間の位置(横軸方向)をグラフにとると、下に凸となるグラフとなる(例えば、図18(B)参照、2次元になった場合は2次局面のグラフとなる)。この性質を利用し、図1(A)に示すS0からS8のように9点の相違度を通る2次曲面を推定し、相違度の最小座標を求めることができる。
この方式の9点をn画素幅で算出することで、精度が悪くても相違度最小座標の荒振るいをすることが可能となる。ここで、nはレイヤ値である。したがって、グリッドはレイヤ値だけ互いに離れた3×3の9画素となる。
求められた相違度最小座標に基づいて、さらにn−m画素幅の9点で相違度最小座標を算出することでさらに精度が高い座標が得られる(図1(B)参照)。
これらn,mは画像にあわせて最適な値を算出し、繰り返し数を設定することで、高い精度を維持しながら処理時間を低減することができる。
以下、相違度最小座標を求めるための座標をグリッドという。つまり、図1(A)に示した相違度最小座標を求めるS0〜S8の9座標がグリッドとなる。通常はグリッドの座標間を1画素とすることで、サブ画素の精度で相違度最小座標を算出する。またこのnをレイヤと呼ぶ。
<Basic architecture>
If the difference between the two images (vertical axis direction) and the position between the images (horizontal axis direction) are plotted in a graph, the graph becomes convex downward (see, for example, FIG. 18B, becomes two-dimensional). In the case of a secondary phase graph). By utilizing this property, a quadratic curved surface passing through nine dissimilarities as in S0 to S8 shown in FIG. 1A can be estimated, and the minimum coordinates of the dissimilarities can be obtained.
By calculating the nine points of this method with an n pixel width, it is possible to perform rough shake of the minimum dissimilarity coordinates even if the accuracy is poor. Here, n is a layer value. Therefore, the grid has 3 × 3 9 pixels separated from each other by the layer value.
Based on the obtained minimum dissimilarity coordinates, further calculating the minimum dissimilarity coordinates with 9 points of the nm pixel width can obtain coordinates with higher accuracy (see FIG. 1B).
By calculating the optimum values for n and m according to the image and setting the number of repetitions, the processing time can be reduced while maintaining high accuracy.
Hereinafter, the coordinates for obtaining the minimum dissimilarity coordinates are referred to as a grid. That is, the nine coordinates S0 to S8 for obtaining the minimum dissimilarity coordinates shown in FIG. Normally, the minimum difference coordinates are calculated with the accuracy of sub-pixels by setting the grid coordinates to one pixel. This n is called a layer.

<第1の実施の形態>
以下、図面に基づき本発明を実現するにあたっての好適な各種の実施の形態を説明する。
図2は、第1の実施の形態の概念的なモジュール構成図を示している。
なお、モジュールとは、一般的に論理的に分離可能なソフトウェア、ハードウェア等の部品を指す。したがって、本実施の形態におけるモジュールはプログラムにおけるモジュールのことだけでなく、ハードウェア構成におけるモジュールも指す。それゆえ、本実施の形態は、プログラム、システム及び方法の説明をも兼ねている。また、モジュールは機能にほぼ一対一に対応しているが、実装においては、1モジュールを1プログラムで構成してもよいし、複数モジュールを1プログラムで構成してもよく、逆に1モジュールを複数プログラムで構成してもよい。また、複数モジュールは1コンピュータによって実行されてもよいし、分散又は並列環境におけるコンピュータによって1モジュールが複数コンピュータで実行されてもよい。なお、1つのモジュールに他のモジュールが含まれていてもよい。また、以下、「接続」とは物理的な接続の他、論理的な接続(データの授受、指示等)を含む。
また、システムとは、複数のコンピュータ、ハードウェア、装置等がネットワーク等の通信手段で接続されて構成されるほか、1つのコンピュータ、ハードウェア、装置等によって実現される場合も含まれる。
<First Embodiment>
In the following, various preferred embodiments for realizing the present invention will be described with reference to the drawings.
FIG. 2 is a conceptual module configuration diagram of the first embodiment.
The module generally refers to a component such as software or hardware that can be logically separated. Therefore, the module in the present embodiment indicates not only a module in a program but also a module in a hardware configuration. Therefore, the present embodiment also serves as an explanation of a program, a system, and a method. In addition, the modules correspond almost one-to-one with the functions. However, in mounting, one module may be composed of one program, or a plurality of modules may be composed of one program. A plurality of programs may be used. The plurality of modules may be executed by one computer, or one module may be executed by a plurality of computers in a distributed or parallel environment. Note that one module may include other modules. In the following, “connection” includes not only physical connection but also logical connection (data exchange, instruction, etc.).
The system includes a configuration in which a plurality of computers, hardware, devices, and the like are connected by communication means such as a network, and also includes a case where the system is realized by a single computer, hardware, devices, and the like.

第1の実施の形態は、レイヤ値の決定モジュール21、レイヤのグリッドの相違度算出モジュール22、相違度最小座標算出モジュール23、量子化モジュール24を有している。
レイヤ値の決定モジュール21は、図2に示すように、レイヤのグリッドの相違度算出モジュール22、量子化モジュール24と接続されており、あらかじめレイヤ情報としてのレイヤの初期値(n)と推移値(m)を決定する。それらをレイヤのグリッドの相違度算出モジュール22、量子化モジュール24へ渡す。ただし、レイヤ情報の値は固定的な値としてもよいし、動的で可変的な値としてもよい。
レイヤのグリッドの相違度算出モジュール22は、図2に示すように、レイヤ値の決定モジュール21、量子化モジュール24、相違度最小座標算出モジュール23と接続されており、2枚の画像を入力し、レイヤ値の決定モジュール21からレイヤ情報を受け取り、このレイヤ値及び画像データに基づいてレイヤのグリッドの相違度を算出する。その算出した相違度を相違度最小座標算出モジュール23へ渡す。なお、画像を入力するとは、具体的には、スキャナによって画像を入力すること、ファックスによって通信回線を介して外部機器から画像を入力すること、記憶媒体から画像を入力すること等がある。
The first embodiment includes a layer value determination module 21, a layer grid dissimilarity calculation module 22, a dissimilarity minimum coordinate calculation module 23, and a quantization module 24.
As shown in FIG. 2, the layer value determination module 21 is connected to the layer grid dissimilarity calculation module 22 and the quantization module 24, and the layer initial value (n) and transition value as layer information in advance. (M) is determined. These are transferred to the grid difference calculation module 22 and the quantization module 24 of the layer. However, the value of the layer information may be a fixed value or a dynamic and variable value.
As shown in FIG. 2, the layer grid dissimilarity calculation module 22 is connected to the layer value determination module 21, the quantization module 24, and the minimum dissimilarity coordinate calculation module 23, and inputs two images. The layer information is received from the layer value determination module 21 and the difference between the layer grids is calculated based on the layer value and the image data. The calculated difference is passed to the minimum difference coordinate calculation module 23. Note that inputting an image specifically includes inputting an image by a scanner, inputting an image from an external device via a communication line by fax, and inputting an image from a storage medium.

相違度最小座標算出モジュール23は、図2に示すように、レイヤのグリッドの相違度算出モジュール22、量子化モジュール24と接続されており、レイヤのグリッドの相違度算出モジュール22によって算出されたグリッドの相違度に基づいてそのレイヤの相違度最小座標を算出する。そして、相違度最小座標を量子化モジュール24へ渡す。又は、量子化モジュール24による制御によって、相違度最小座標を画像合成する処理部へ渡す。相違度最小座標算出モジュール23による処理については、図5、図6、図7を用いて後述する。
量子化モジュール24は、図2に示すように、レイヤ値の決定モジュール21、レイヤのグリッドの相違度算出モジュール22、相違度最小座標算出モジュール23と接続されており、レイヤ値の決定モジュール21からレイヤ情報、相違度最小座標算出モジュール23によって算出された相違度最小座標を受け取り、座標値の量子化値をレイヤのグリッドの相違度算出モジュール22へ渡す。つまり、レイヤが目標レイヤ(例えば、レイヤ=1)でなければ、相違度最小座標算出モジュール23によって算出された相違度最小座標値を次のレイヤで量子化を行い、再びそのレイヤのグリッドの相違度を算出するレイヤのグリッドの相違度算出モジュール22へフォールバックする。目標レイヤで相違度最小座標値が算出されたら、その値を出力する。量子化モジュール24による処理については、図4を用いて後述する。
As shown in FIG. 2, the minimum dissimilarity coordinate calculation module 23 is connected to the difference calculation module 22 of the layer grid and the quantization module 24, and the grid calculated by the dissimilarity calculation module 22 of the layer grid is used. The minimum difference degree coordinate of the layer is calculated based on the difference degree. Then, the minimum dissimilarity coordinates are passed to the quantization module 24. Alternatively, under the control of the quantization module 24, the minimum dissimilarity coordinates are transferred to a processing unit that synthesizes an image. The processing performed by the minimum difference coordinate calculation module 23 will be described later with reference to FIGS. 5, 6, and 7.
As shown in FIG. 2, the quantization module 24 is connected to a layer value determination module 21, a layer grid dissimilarity calculation module 22, and a minimum dissimilarity coordinate calculation module 23. The layer information and the minimum dissimilarity coordinate calculated by the minimum dissimilarity coordinate calculating module 23 are received, and the quantized value of the coordinate value is passed to the dissimilarity calculating module 22 of the layer grid. That is, if the layer is not the target layer (for example, layer = 1), the minimum dissimilarity coordinate value calculated by the minimum dissimilarity coordinate calculation module 23 is quantized in the next layer, and the grid difference of the layer is again determined. Fall back to the difference calculation module 22 of the grid of the layer for calculating the degree. When the minimum dissimilarity coordinate value is calculated in the target layer, the value is output. The processing by the quantization module 24 will be described later with reference to FIG.

図3に示すフローチャートを用いて、第1の実施の形態による処理、働き(動作)を説明する。
ステップS302では、レイヤ値の決定モジュール21がレイヤ値(n)を決定する。つまり、変数nにレイヤ値を代入する。
ステップS304では、レイヤのグリッドの相違度算出モジュール22が、ステップS302又はステップS310で決定されたレイヤ(n)のグリッドを決定する。
ステップS306では、相違度最小座標算出モジュール23が、ステップS304で決定されたレイヤ(n)の相違度最小座標を算出する。
The processing and operation (operation) according to the first embodiment will be described with reference to the flowchart shown in FIG.
In step S302, the layer value determination module 21 determines the layer value (n). That is, the layer value is substituted for the variable n.
In step S304, the layer grid dissimilarity calculation module 22 determines the grid of the layer (n) determined in step S302 or step S310.
In step S306, the minimum dissimilarity coordinate calculation module 23 calculates the minimum dissimilarity coordinate of the layer (n) determined in step S304.

ステップS308では、量子化モジュール24が目標としているレイヤであるか否かを判断する。かかる判断において、目標レイヤとなっている場合はステップS314の処理へ進み、目標レイヤとはなっていない場合はステップS310の処理へ進み、ステップS304、ステップS306の処理を繰り返す。
ステップS310では、量子化モジュール24が次のレイヤを決定する。つまり、現在のレイヤ(n)から推移値(m、又はレイヤ値変更値)を減算し、次のレイヤ(n)とする。より具体的には、変数nに現在のレイヤ(n)−推移値(m)を代入する。
ステップS312では、量子化モジュール24がステップS310で決定されたレイヤ(n)で、相違度最小座標を量子化する。そして、ステップS304の処理へ戻る。
ステップS314では、目標レイヤに達しているので、量子化モジュール24は相違度最小座標算出モジュール23によって算出された相違度最小座標を、画像を合成等する処理部へ送出する。
In step S308, it is determined whether the quantization module 24 is the target layer. In this determination, if it is the target layer, the process proceeds to step S314. If it is not the target layer, the process proceeds to step S310, and the processes in steps S304 and S306 are repeated.
In step S310, the quantization module 24 determines the next layer. That is, the transition value (m or the layer value change value) is subtracted from the current layer (n) to obtain the next layer (n). More specifically, the current layer (n) −transition value (m) is substituted for the variable n.
In step S312, the quantization module 24 quantizes the minimum dissimilarity coordinates in the layer (n) determined in step S310. Then, the process returns to step S304.
In step S314, since the target layer has been reached, the quantization module 24 sends the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculating module 23 to a processing unit that combines images.

図4を用いて、量子化モジュール24等による相違度最小座標の量子化処理についてより詳細に説明する。
例えば、レイヤn=3において算出された相違度最小座標を、レイヤn=1で量子化する手順を以下に説明する。推移値m=2とする。
レイヤn=3で求められたグリッド(図4に示す白丸)の9点の相違度を用いて算出した相違度最小座標(図4に示す黒丸)に対して、最も近いレイヤn=1のグリッド(図4に示す黒三角)を算出し、これを量子化座標としてレイヤのグリッドの相違度算出モジュール22へ送出する。
その後、次の処理によって、量子化された相違度最小座標(図4に示す黒三角)を中心にレイヤn=1の9点のグリッド(図4に示す白三角)の相違度に基づいて、相違度最小座標を算出する。
With reference to FIG. 4, the quantization processing of the minimum dissimilarity coordinates by the quantization module 24 and the like will be described in more detail.
For example, a procedure for quantizing the minimum dissimilarity coordinates calculated in layer n = 3 in layer n = 1 will be described below. The transition value m = 2.
The closest grid of layer n = 1 with respect to the minimum difference coordinates (black circles shown in FIG. 4) calculated using the nine differences of the grids (white circles shown in FIG. 4) obtained in layer n = 3 (Black triangle shown in FIG. 4) is calculated and sent to the grid difference calculation module 22 of the layer as quantized coordinates.
After that, by the following processing, based on the dissimilarity of the nine-point grid (white triangle shown in FIG. 4) of layer n = 1 around the quantized difference degree minimum coordinate (black triangle shown in FIG. 4), Calculate the minimum dissimilarity coordinates.

相違度最小座標算出モジュール23による処理である相違度が最小となる座標を算出する方法は、次に示すようないくつかの手法がある。
(1)手法1(特許文献1に記載されている技術)
図5に示すように整数位置の3点の値がわかっているとき、その3点を通る2次曲線を引いて、その2次曲線を最小化する位置(最適値)を求めるものである。
(2)手法2(特許文献2に記載されている技術)
ある横線上で相違度を最小化するxの値を求める。そして、複数の横線上でこのようなxの値を求める。この点(図6の白丸)を通る直線を引く。
さらに、ある縦線上で相違度を最小化するyの値を求める。そして、複数の縦線上でこのようなyの値を求める。この点(図6の黒丸)を通る直線を引く。
このように求めた2つの直線の交点を求める最適値とするものである。
(3)手法3
相違度が最小となる座標を求めるためのグリッドの9点をおおよそ通る2次曲面を推定し(図7の破線で示すのが推定2次曲面)、この曲面が最小となる(x,y)の値を求める。つまり、入力された画像を整数グリッド上で変換し、相違度を求める関数を近似する2次曲面の係数を算出し、算出された係数のサブ量子化精度での推定を行うものである。そして、近似の場合に各整数グリッド位置に関する重み付けを行い、その重み付けは、各整数グリッドを中心とするボロノイ分割領域の面積又は超体積であるようにしてもよい。
There are several methods for calculating the coordinate that minimizes the dissimilarity, which is a process performed by the minimum dissimilarity coordinate calculating module 23.
(1) Method 1 (Technique described in Patent Document 1)
As shown in FIG. 5, when the values of three points at integer positions are known, a quadratic curve passing through the three points is drawn to obtain a position (optimum value) at which the quadratic curve is minimized.
(2) Method 2 (Technique described in Patent Document 2)
Find the value of x that minimizes the dissimilarity on a horizontal line. Then, such a value of x is obtained on a plurality of horizontal lines. A straight line passing through this point (white circle in FIG. 6) is drawn.
Further, a value of y that minimizes the degree of difference on a certain vertical line is obtained. Then, such a value of y is obtained on a plurality of vertical lines. A straight line passing through this point (black circle in FIG. 6) is drawn.
The optimum value for obtaining the intersection of the two straight lines obtained in this way is used.
(3) Method 3
A quadric surface that roughly passes through nine points of the grid for obtaining coordinates with the smallest difference is estimated (indicated by a broken line in FIG. 7 is an estimated quadric surface), and this curved surface is minimized (x, y). Find the value of. That is, an input image is converted on an integer grid, a coefficient of a quadric surface that approximates a function for obtaining a difference degree is calculated, and the calculated coefficient is estimated with sub-quantization accuracy. Then, in the case of approximation, weighting for each integer grid position may be performed, and the weighting may be an area or a super volume of a Voronoi divided region centered on each integer grid.

<第2の実施の形態>
図8〜図13を用いて、第2の実施の形態を説明する。
図9に示すようにS0からS8(S0は9点の中心に位置する)のグリッドのなかでS0が最小となるグリッドを最小グリッドと呼ぶ。この最小グリッドの相違度を用いて相違度最小座標を算出することは内挿になることから、より精度が高くなる。第2の実施の形態は、最小グリッドを求め、この最小グリッドを用いることでより精度が高くなる。
第2の実施の形態は、レイヤ値の決定モジュール81、レイヤの最小グリッドの相違度算出モジュール82、相違度最小座標算出モジュール83、量子化モジュール84を有している。
レイヤ値の決定モジュール81は、図8に示すように、レイヤの最小グリッドの相違度算出モジュール82、量子化モジュール84と接続されており、第1の実施の形態のレイヤ値の決定モジュール21と同様である。
レイヤの最小グリッドの相違度算出モジュール82は、図8に示すように、レイヤ値の決定モジュール81、量子化モジュール84、相違度最小座標算出モジュール83と接続されており、2枚の画像を入力し、レイヤ値の決定モジュール81からレイヤ情報を受け取り、このレイヤ値及び画像データに基づいてレイヤの最小グリッドが決定され、その最小グリッドの相違度を算出する。その算出した相違度を相違度最小座標算出モジュール83へ渡す。
<Second Embodiment>
A second embodiment will be described with reference to FIGS.
As shown in FIG. 9, among the grids from S0 to S8 (S0 is located at the center of 9 points), the grid having the smallest S0 is called a minimum grid. Calculation of the minimum dissimilarity coordinates using the dissimilarity of the minimum grid is an interpolation, and therefore the accuracy is further increased. In the second embodiment, the minimum grid is obtained, and the accuracy is improved by using the minimum grid.
The second embodiment includes a layer value determination module 81, a minimum grid difference calculation module 82, a minimum difference coordinate calculation module 83, and a quantization module 84.
As shown in FIG. 8, the layer value determining module 81 is connected to the layer minimum grid dissimilarity calculating module 82 and the quantizing module 84, and the layer value determining module 21 of the first embodiment is connected to the layer value determining module 81. It is the same.
As shown in FIG. 8, the minimum grid dissimilarity calculation module 82 is connected to a layer value determination module 81, a quantization module 84, and a minimum dissimilarity coordinate calculation module 83, and inputs two images. Then, the layer information is received from the layer value determination module 81, the minimum grid of the layer is determined based on the layer value and the image data, and the dissimilarity of the minimum grid is calculated. The calculated difference is passed to the minimum difference calculation module 83.

相違度最小座標算出モジュール83は、図8に示すように、レイヤの最小グリッドの相違度算出モジュール82、量子化モジュール84と接続されており、第1の実施の形態の相違度最小座標算出モジュール23と同様である。ただし、レイヤの最小グリッドの相違度算出モジュール82によって算出された最小グリッドの相違度に基づいて相違度最小座標を算出する。
量子化モジュール84は、図8に示すように、レイヤ値の決定モジュール81、レイヤの最小グリッドの相違度算出モジュール82、相違度最小座標算出モジュール83と接続されており、第1の実施の形態の量子化モジュール24と同様である。ただし、対象となるグリッドは最小グリッドである。量子化モジュール84による処理については、図11を用いて後述する。
As shown in FIG. 8, the minimum dissimilarity coordinate calculation module 83 is connected to the dissimilarity calculation module 82 and the quantization module 84 of the minimum grid of the layer, and the minimum dissimilarity coordinate calculation module of the first embodiment. 23. However, the minimum dissimilarity coordinate is calculated based on the dissimilarity of the minimum grid calculated by the minimum grid dissimilarity calculation module 82 of the layer.
As shown in FIG. 8, the quantization module 84 is connected to a layer value determination module 81, a minimum grid dissimilarity calculation module 82, and a minimum dissimilarity coordinate calculation module 83, which is the first embodiment. This is the same as the quantization module 24 in FIG. However, the target grid is the minimum grid. Processing performed by the quantization module 84 will be described later with reference to FIG.

図10に示すフローチャートを用いて、第2の実施の形態による処理、働き(動作)を説明する。
ステップS1002では、レイヤ値の決定モジュール81がレイヤ値(n)を決定する。つまり、変数nにレイヤ値を代入する。
ステップS1004では、レイヤの最小グリッドの相違度算出モジュール82が、ステップS1002又はステップS1010で決定されたレイヤ(n)のグリッドから最小グリッドを探索し決定する。最小グリッドの探索については、図12,図13を用いて後述する。
ステップS1006では、相違度最小座標算出モジュール83が、ステップS1004で決定されたレイヤ(n)の相違度最小座標を算出する。
The process and operation (operation) according to the second embodiment will be described with reference to the flowchart shown in FIG.
In step S1002, the layer value determination module 81 determines the layer value (n). That is, the layer value is substituted for the variable n.
In step S1004, the difference calculation module 82 of the minimum grid of the layer searches and determines the minimum grid from the grid of the layer (n) determined in step S1002 or step S1010. The search for the minimum grid will be described later with reference to FIGS.
In step S1006, the minimum dissimilarity coordinate calculation module 83 calculates the minimum dissimilarity coordinate of the layer (n) determined in step S1004.

ステップS1008では、量子化モジュール84が目標としているレイヤであるか否かを判断する。かかる判断において、目標レイヤとなっている場合はステップS1014の処理へ進み、目標レイヤとはなっていない場合はステップS1010の処理へ進み、ステップS1004、ステップS1006の処理を繰り返す。
ステップS1010では、量子化モジュール84が次のレイヤを決定する。つまり、現在のレイヤ(n)から推移値(m)を減算し、次のレイヤ(n)とする。より具体的には、変数nに現在のレイヤ(n)−推移値(m)を代入する。
ステップS1012では、量子化モジュール84がステップS1010で決定されたレイヤ(n)で、相違度最小座標を量子化する。そして、ステップS1004の処理へ戻る。
ステップS1014では、目標レイヤに達しているので、量子化モジュール84は相違度最小座標算出モジュール83によって算出された相違度最小座標を、画像を合成等する処理部へ送出する。
In step S1008, it is determined whether the quantization module 84 is the target layer. In this determination, if it is the target layer, the process proceeds to step S1014. If it is not the target layer, the process proceeds to step S1010, and the processes in steps S1004 and S1006 are repeated.
In step S1010, the quantization module 84 determines the next layer. That is, the transition value (m) is subtracted from the current layer (n) to obtain the next layer (n). More specifically, the current layer (n) −transition value (m) is substituted for the variable n.
In step S1012, the quantization module 84 quantizes the dissimilarity minimum coordinate in the layer (n) determined in step S1010. Then, the process returns to step S1004.
In step S1014, since the target layer has been reached, the quantization module 84 sends the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculation module 83 to a processing unit that synthesizes an image.

図11を用いて、量子化モジュール84等による相違度最小座標の量子化処理についてより詳細に説明する。
例えば、レイヤn=3において算出された相違度最小座標を、レイヤn=1で量子化する手順を以下に説明する。推移値m=2とする。
レイヤn=3で求められた最小グリッド(図11に示す白丸)の9点の相違度を用いて算出した相違度最小座標(図11に示す黒丸)に対して、最も近いレイヤn=1のグリッド(図11に示す黒三角)を算出し、これを量子化座標としてレイヤの最小グリッドの相違度算出モジュール82へ送出する。
その後、次の処理によって、量子化された相違度最小座標(図11に示す黒三角)を中心にレイヤn=1の9点のグリッド(図11に示す白三角)が最小グリッドかどうかの判定を行う。そして、相違度最小座標を算出する。
With reference to FIG. 11, the quantization processing of the minimum dissimilarity coordinates by the quantization module 84 and the like will be described in more detail.
For example, a procedure for quantizing the minimum dissimilarity coordinates calculated in layer n = 3 in layer n = 1 will be described below. The transition value m = 2.
With respect to the minimum dissimilarity coordinates (black circles shown in FIG. 11) calculated using the nine differences of the minimum grid (white circles shown in FIG. 11) obtained in layer n = 3, the closest layer n = 1 A grid (black triangle shown in FIG. 11) is calculated and sent to the difference calculation module 82 of the minimum grid of the layer as quantized coordinates.
After that, the following processing determines whether the nine-point grid (white triangle shown in FIG. 11) of layer n = 1 is the minimum grid around the quantized minimum difference coordinates (black triangle shown in FIG. 11). I do. Then, the minimum dissimilarity coordinates are calculated.

あるレイヤにおける相違度の最小グリッドの探索手順について、図12に示すフローチャート、図13を用いて、より詳細に説明する。
ステップS1202では、レイヤの最小グリッドの相違度算出モジュール82が、初期のグリッドについての相違度を算出する。
以下、注目する9点のグリッドが図13に示す3つのケースのいずれであるかによって処理を異ならせる。
ステップS1204では、注目する9点のグリッドがケース1であるか否かを判断する。ケース1である場合は終了し(ステップS1212)、ケース1でない場合はステップS1206の処理へ進む。つまり、注目する9点のグリッド(最初は初期のグリッド)の相違度のなかで最も小さい値が9点の中心だった場合(図13(A)に示すケース1の灰色の丸)は、この9点のグリッドが最小グリッドになるため、終了する。つまり、レイヤ値の画素分だけ離れた画素の相違度のなかで、中心の画素の相違度が最小となる場合に終了する。
The search procedure for the minimum difference grid in a certain layer will be described in more detail with reference to the flowchart shown in FIG. 12 and FIG.
In step S1202, the difference calculation module 82 of the minimum grid of the layer calculates the difference for the initial grid.
Hereinafter, the processing is varied depending on which of the three cases shown in FIG.
In step S1204, it is determined whether or not the grid of 9 points of interest is case 1. If it is case 1, the process ends (step S1212). If it is not case 1, the process proceeds to step S1206. In other words, when the smallest value of the differences between the nine grids of interest (initially the initial grid) is the center of the nine points (gray circle in case 1 shown in FIG. 13A), Since the 9-point grid is the smallest grid, the process is terminated. That is, the process ends when the difference between the pixels at the center is the smallest among the differences between the pixels separated by the pixel of the layer value.

ステップS1206では、注目する9点のグリッドがケース2であるか否かを判断する。ケース2である場合はステップS1210の処理へ進み、ケース2でない場合はステップS1208の処理へ進む。つまり、ケース1でない場合、9点のグリッドのなかで中心の4近傍(図13(B)に示すケース2の灰色の丸)のうちの1点のグリッドの相違度が最小(例えば、図13(B)に示すケース2の太線の灰色の丸)であるか否か(ケース2であるか否か)を判断する。
ステップS1210では、ステップS1206でケース2であると判断されたので、そのケース2の相違度最小座標の外側を探索する。相違度最小の座標を中心にレイヤ値の画素分だけ離れた画素の相違度で未算出の相違度を算出する。つまり、この相違度最小座標を中心にした9点の相違度のうち、ステップS1202では算出されていないグリッド(図13(B)に示すケース2の3つの黒丸)の相違度を算出する。そして、ステップS1204の処理へ戻る。
In step S1206, it is determined whether or not the grid of 9 points of interest is Case 2. If it is case 2, the process proceeds to step S1210. If it is not case 2, the process proceeds to step S1208. In other words, if it is not case 1, the dissimilarity of the grid at one point out of the four points near the center (gray circle of case 2 shown in FIG. 13B) in the nine-point grid is minimum (for example, FIG. 13). It is determined whether or not it is a thick gray circle in case 2 shown in (B) (whether it is case 2).
In step S1210, since it is determined in step S1206 that it is case 2, the outside of the minimum dissimilarity coordinate of case 2 is searched. An uncalculated dissimilarity is calculated based on the dissimilarity of pixels separated by a pixel corresponding to the layer value with the minimum dissimilarity coordinate as the center. That is, the dissimilarity of the grid (three black circles in case 2 shown in FIG. 13B) that is not calculated in step S1202 is calculated from the nine dissimilarities centered on the minimum dissimilarity coordinates. Then, the process returns to step S1204.

ステップS1208では(ケース1でも2でもない場合)、ケース3の相違度最小座標の外側を探索する。相違度最小の座標を中心にレイヤ値の画素分だけ離れた画素の相違度で未算出の相違度を算出する。つまり、9点のグリッドのなかで中心に対して斜めの位置(図13(C)に示すケース3の灰色の丸)の1つが相違度最小だった場合(例えば、図13(C)に示すケース3の太線の灰色の丸)は、この相違度最小座標を中心にした9点の相違度のうち、ステップS1202では算出されていないグリッド(図13(C)に示すケース3の5つの黒丸)の相違度を算出する。そして、ステップS1204の処理へ戻る。   In step S1208 (when neither case 1 nor 2), the outside of the minimum difference degree coordinate of case 3 is searched. An uncalculated dissimilarity is calculated based on the dissimilarity of pixels separated by a pixel corresponding to the layer value with the minimum dissimilarity as the center. That is, in the nine-point grid, one of the diagonal positions with respect to the center (the gray circle in case 3 shown in FIG. 13C) has the smallest difference (for example, as shown in FIG. 13C). Of the nine dissimilarities centered on the minimum dissimilarity coordinates, the grid that is not calculated in step S1202 (the five black circles of case 3 shown in FIG. 13C) is the bold gray circle in case 3). ) Is calculated. Then, the process returns to step S1204.

<第3の実施の形態>
図14〜図16を用いて、第3の実施の形態を説明する。
前述の実施の形態と異なるところは、次のレイヤで相違度最小座標の量子化を行わず、算出された相違度算出座標の位相で補間画像を生成して、その次のレイヤの相違度最小座標を求める点である。第3の実施の形態は、対象によるが他の実施の形態よりも処理負荷が少なくなる場合がある。
第3の実施の形態は、レイヤ値の決定モジュール141、レイヤのグリッドの相違度算出モジュール142、相違度最小座標算出モジュール143、補間画像作成モジュール144を有している。
レイヤ値の決定モジュール141は、図14に示すように、レイヤのグリッドの相違度算出モジュール142、補間画像作成モジュール144と接続されており、第1の実施の形態のレイヤ値の決定モジュール21と同様である。
レイヤのグリッドの相違度算出モジュール142は、図14に示すように、レイヤ値の決定モジュール141、補間画像作成モジュール144、相違度最小座標算出モジュール143と接続されており、第1の実施の形態のレイヤのグリッドの相違度算出モジュール22又は第2の実施の形態のレイヤの最小グリッドの相違度算出モジュール82と同様である。
<Third Embodiment>
A third embodiment will be described with reference to FIGS.
The difference from the above-described embodiment is that the minimum difference degree coordinates are not quantized in the next layer, the interpolation image is generated with the calculated phase of the difference degree calculation coordinates, and the difference level of the next layer is minimized. This is the point where the coordinates are obtained. Although the third embodiment depends on the target, the processing load may be smaller than in other embodiments.
The third embodiment includes a layer value determination module 141, a layer grid dissimilarity calculation module 142, a dissimilarity minimum coordinate calculation module 143, and an interpolated image creation module 144.
As shown in FIG. 14, the layer value determination module 141 is connected to the layer grid dissimilarity calculation module 142 and the interpolated image creation module 144. The layer value determination module 141 includes the layer value determination module 21 according to the first embodiment. It is the same.
As shown in FIG. 14, the layer grid dissimilarity calculation module 142 is connected to the layer value determination module 141, the interpolated image creation module 144, and the minimum dissimilarity coordinate calculation module 143, and is described in the first embodiment. This is the same as the difference calculation module 22 of the grid of the layer or the difference calculation module 82 of the minimum grid of the layer according to the second embodiment.

相違度最小座標算出モジュール143は、図14に示すように、レイヤのグリッドの相違度算出モジュール142、補間画像作成モジュール144と接続されており、第1の実施の形態の相違度最小座標算出モジュール23と同様である。
補間画像作成モジュール144は、図14に示すように、レイヤ値の決定モジュール141、レイヤのグリッドの相違度算出モジュール142、相違度最小座標算出モジュール143と接続されており、相違度最小座標算出モジュール143によって算出された相違度最小座標を受け取り、座標値及び補間画像をレイヤのグリッドの相違度算出モジュール142へ渡す。つまり、レイヤが目標レイヤ(例えば、レイヤ=1)でなければ、相違度最小座標算出モジュール143によって算出された相違度最小座標値の位相に基づいて補間画像を生成し、相違度最小座標及び補間画像に基づいてレイヤのグリッドの相違度を算出するレイヤのグリッドの相違度算出モジュール142へフォールバックする。目標レイヤで相違度最小座標値が算出されたら、その値を出力する。補間画像作成モジュール144による補間画像の生成処理については、図16を用いて後述する。
As shown in FIG. 14, the minimum dissimilarity coordinate calculation module 143 is connected to the dissimilarity calculation module 142 of the layer grid and the interpolated image creation module 144, and the minimum dissimilarity coordinate calculation module of the first embodiment. 23.
As shown in FIG. 14, the interpolated image creation module 144 is connected to a layer value determination module 141, a grid difference calculation module 142, and a minimum difference coordinate calculation module 143. The minimum dissimilarity coordinate calculated by 143 is received, and the coordinate value and the interpolated image are passed to the dissimilarity calculating module 142 of the layer grid. That is, if the layer is not a target layer (for example, layer = 1), an interpolated image is generated based on the phase of the minimum dissimilarity coordinate value calculated by the minimum dissimilarity coordinate calculation module 143, and the minimum dissimilarity coordinate and the interpolation are generated. The process returns to the layer grid difference calculation module 142 that calculates the layer grid difference based on the image. When the minimum dissimilarity coordinate value is calculated in the target layer, the value is output. Interpolation image generation processing by the interpolation image creation module 144 will be described later with reference to FIG.

図15に示すフローチャートを用いて、第3の実施の形態による処理、働き(動作)を説明する。
ステップS1502では、レイヤ値の決定モジュール141がレイヤ値(n)を決定する。つまり、変数nにレイヤ値を代入する。
ステップS1504では、レイヤのグリッドの相違度算出モジュール142が、ステップS1502又はステップS1510で決定されたレイヤ(n)のグリッドを決定する。
ステップS1506では、相違度最小座標算出モジュール143が、ステップS1504で決定されたレイヤ(n)の相違度最小座標を算出する。
The processing and operation (operation) according to the third embodiment will be described with reference to the flowchart shown in FIG.
In step S1502, the layer value determination module 141 determines the layer value (n). That is, the layer value is substituted for the variable n.
In step S1504, the difference calculation module 142 of the layer grid determines the grid of the layer (n) determined in step S1502 or step S1510.
In step S1506, the minimum dissimilarity coordinate calculation module 143 calculates the minimum dissimilarity coordinate of the layer (n) determined in step S1504.

ステップS1508では、補間画像作成モジュール144が目標としているレイヤであるか否かを判断する。かかる判断において、目標レイヤとなっている場合はステップS1514の処理へ進み、目標レイヤとはなっていない場合はステップS1510の処理へ進み、ステップS1504、ステップS1506の処理を繰り返す。
ステップS1510では、補間画像作成モジュール144が次のレイヤを決定する。つまり、現在のレイヤ(n)から推移値(m)を減算し、次のレイヤ(n)とする。より具体的には、変数nに現在のレイヤ(n)−推移値(m)を代入する。
ステップS1512では、補間画像作成モジュール144がステップS1510で決定されたレイヤ(n)で、相違度最小座標の位相で補間画像を生成する。そして、ステップS1504の処理へ戻る。
ステップS1514では、目標レイヤに達しているので、補間画像作成モジュール144は相違度最小座標算出モジュール143によって算出された相違度最小座標を、画像を合成等する処理部へ送出する。
In step S1508, it is determined whether or not the target layer is the interpolation image creation module 144. In this determination, if it is the target layer, the process proceeds to step S1514. If it is not the target layer, the process proceeds to step S1510, and the processes in steps S1504 and S1506 are repeated.
In step S1510, the interpolation image creation module 144 determines the next layer. That is, the transition value (m) is subtracted from the current layer (n) to obtain the next layer (n). More specifically, the current layer (n) −transition value (m) is substituted for the variable n.
In step S1512, the interpolated image creation module 144 generates an interpolated image with the phase of the minimum dissimilarity coordinate in the layer (n) determined in step S1510. Then, the process returns to step S1504.
In step S1514, since the target layer has been reached, the interpolation image creation module 144 sends the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculation module 143 to a processing unit that synthesizes images.

図16を用いて、相違度最小座標の位相による補間画像の生成処理について説明する。
例えば、レイヤn=3における相違度最小座標の位相から補間画像を生成し、レイヤn=1のグリッドの相違度を算出する手順を以下に説明する。推移値m=2とする。
レイヤn=3で求められたグリッド(図16に示す白丸)の9点の相違度を用いて算出した相違度最小座標(図16に示す黒丸)に対して、この座標値を位相とする補間画像を生成する(図16の細い点線による格子を参照)。
その後、次の処理によって、レイヤn=1のグリッド(図16に示す三角)を用いて、このグリッドの相違度を算出する。
An interpolation image generation process based on the phase of the minimum difference degree coordinate will be described with reference to FIG.
For example, a procedure for generating an interpolation image from the phase of the minimum difference degree coordinate in layer n = 3 and calculating the difference degree of the grid in layer n = 1 will be described below. The transition value m = 2.
Interpolation with this coordinate value as the phase for the minimum dissimilarity coordinates (black circles shown in FIG. 16) calculated using the 9 points of dissimilarity of the grid (white circles shown in FIG. 16) obtained in layer n = 3 An image is generated (see grid with thin dotted lines in FIG. 16).
Thereafter, the grid dissimilarity is calculated by using the grid of layer n = 1 (triangle shown in FIG. 16) by the following processing.

<実施の形態の具現>
以上の実施の形態によって、サブ画素単位の精度を維持したまま、高速に2画像間の位置合わせが可能となる。
例えば、512画素×512画素の2画像の位置合わせを行う場合、背景技術では2,353,156回の画素間の計算が必要だったが、例えばn=255、m=254(次のnを1、つまり2階層の例である)とすると画素間の計算は9点×2階層=18回となり、130,730倍の高速化が望めることになる。
実際は、nの初期値が大きいと次の階層の相違度最小座標の精度が落ち、最小グリッドの探索処理が増えることになる。このため、より精度を高めるために、n=4、m=3としても1階層目128×128点=16,384回(実際には探索処理が最小グリッドまで最短に到達するためもっと少ない)と、2階層目の9回との合計16,393回となり143倍以上の高速化となる。
また背景技術に示した階層化の方式と比較しても0.1画素の精度とすると、n=4から始めたとして、階層化方式は9回+6段階×8回=57回の算出及び3回の補間画像の生成が必要となり、特に補間画像の生成に処理時間がとられる。本実施の形態ではn=4,m=3として9回+9回=18回の算出のみで終わることになる。
また、前記のようにレイヤを制御することで、トレードオフとなる位置精度と処理時間のなかで最適な制御を行うことができるようになる。
また、以上の実施の形態において、画像の中心を初期のグリッドとして決定するようにしてもよい。また、画像内の最も画素値が多い画素の重心を初期のグリッドとして決定するようにしてもよい。このようにすることによって、階層を減らして、より早く収束させることができるようになる。
<Implementation of the embodiment>
According to the above embodiment, it is possible to align two images at high speed while maintaining the accuracy of the sub-pixel unit.
For example, in the case of performing alignment of two images of 512 pixels × 512 pixels, the background art requires calculation between 2,353 and 156 times, but for example, n = 255, m = 254 (the next n 1 is an example of 2 hierarchies), the calculation between pixels is 9 points × 2 hierarchies = 18 times, and 130,730 times higher speed can be expected.
Actually, if the initial value of n is large, the accuracy of the minimum coordinate of the dissimilarity of the next layer is lowered and the search processing of the minimum grid is increased. For this reason, in order to increase the accuracy, even if n = 4 and m = 3, the first layer is 128 × 128 points = 16,384 times (actually, the search process is less because the search reaches the shortest to the minimum grid). This is a total of 16,393 times with 9 times in the second layer, which is a speed increase of 143 times or more.
Further, assuming that the accuracy of 0.1 pixel is compared with the hierarchization method shown in the background art, the hierarchization method starts with n = 4, and the hierarchization method calculates 9 times + 6 steps × 8 times = 57 times and 3 It is necessary to generate the interpolated image twice, and in particular, the processing time is taken to generate the interpolated image. In this embodiment, n = 4 and m = 3, and the calculation ends only with 9 times + 9 times = 18 times.
Further, by controlling the layers as described above, optimal control can be performed within the trade-off position accuracy and processing time.
In the above embodiment, the center of the image may be determined as the initial grid. Further, the center of gravity of the pixel having the largest pixel value in the image may be determined as the initial grid. By doing so, it is possible to reduce the hierarchy and converge faster.

<ハードウェア構成例等>
図17を参照して、前述した実施の形態のハードウェア構成例について説明する。図17に示す構成は、例えばパーソナルコンピュータ(PC)などによって構成されるものであり、スキャナ等のデータ読み取り部1717と、プリンタなどのデータ出力部1718を備えたハードウェア構成例を示している。
<Hardware configuration example>
With reference to FIG. 17, a hardware configuration example of the above-described embodiment will be described. The configuration shown in FIG. 17 is configured by a personal computer (PC), for example, and shows a hardware configuration example including a data reading unit 1717 such as a scanner and a data output unit 1718 such as a printer.

CPU(Central Processing Unit)1701は、前述の実施の形態において説明した各種のモジュール、すなわち、レイヤのグリッドの相違度算出モジュール22、相違度最小座標算出モジュール23、量子化モジュール24等の各モジュールの実行シーケンスを記述したコンピュータ・プログラムにしたがって処理を実行する制御部である。   The CPU (Central Processing Unit) 1701 includes various modules described in the above-described embodiments, that is, the modules such as the layer grid dissimilarity calculation module 22, the dissimilarity minimum coordinate calculation module 23, and the quantization module 24. It is a control part which performs a process according to the computer program which described the execution sequence.

ROM(Read Only Memory)1702は、CPU1701が使用するプログラムや演算パラメータ等を格納する。RAM(Random Access Memory)1703は、CPU1701の実行において使用するプログラムや、その実行において適宜変化するパラメータ等を格納する。これらはCPUバスなどから構成されるホストバス1704により相互に接続されている。   A ROM (Read Only Memory) 1702 stores programs used by the CPU 1701, calculation parameters, and the like. A RAM (Random Access Memory) 1703 stores programs used in the execution of the CPU 1701, parameters that change as appropriate in the execution, and the like. These are connected to each other by a host bus 1704 including a CPU bus.

ホストバス1704は、ブリッジ1705を介して、PCI(Peripheral Component Interconnect/Interface)バスなどの外部バス1706に接続されている。   The host bus 1704 is connected to an external bus 1706 such as a PCI (Peripheral Component Interconnect / Interface) bus via a bridge 1705.

キーボード1708、マウス等のポインティングデバイス1709は、操作者により操作される入力デバイスである。ディスプレイ1710は、液晶表示装置又はCRT(Cathode Ray Tube)などからなり、各種情報をテキストやイメージ情報として表示する。   A keyboard 1708 and a pointing device 1709 such as a mouse are input devices operated by an operator. The display 1710 includes a liquid crystal display device or a CRT (Cathode Ray Tube), and displays various types of information as text or image information.

HDD(Hard Disk Drive)1711は、ハードディスクを内蔵し、ハードディスクを駆動し、CPU1701によって実行するプログラムや情報を記録又は再生させる。ハードディスクは、入力された画像や合成された画像などが格納される。さらに、その他の各種のデータ処理プログラム等、各種コンピュータ・プログラムが格納される。   An HDD (Hard Disk Drive) 1711 has a built-in hard disk, drives the hard disk, and records or reproduces a program executed by the CPU 1701 and information. The hard disk stores input images and synthesized images. Further, various computer programs such as various other data processing programs are stored.

ドライブ1712は、装着されている磁気ディスク、光ディスク、光磁気ディスク、又は半導体メモリ等のリムーバブル記録媒体1713に記録されているデータ又はプログラムを読み出して、そのデータ又はプログラムを、インタフェース1707、外部バス1706、ブリッジ1705、及びホストバス1704を介して接続されているRAM1703に供給する。リムーバブル記録媒体1713も、ハードディスクと同様のデータ記録領域として利用可能である。   The drive 1712 reads out data or a program recorded on a removable recording medium 1713 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, and the data or program is read out as an interface 1707 and an external bus 1706. , The bridge 1705, and the RAM 1703 connected via the host bus 1704. The removable recording medium 1713 can also be used as a data recording area similar to the hard disk.

接続ポート1714は、外部接続機器1715を接続するポートであり、USB、IEEE1394等の接続部を持つ。接続ポート1714は、インタフェース1707、及び外部バス1706、ブリッジ1705、ホストバス1704等を介してCPU1701等に接続されている。通信部1716は、ネットワークに接続され、外部とのデータ通信処理を実行する。データ読み取り部1717は、例えばスキャナであり、ドキュメントの読み取り処理を実行する。データ出力部1718は、例えばプリンタであり、ドキュメントデータの出力処理を実行する。   The connection port 1714 is a port for connecting the external connection device 1715 and has a connection unit such as USB or IEEE1394. The connection port 1714 is connected to the CPU 1701 and the like via an interface 1707, an external bus 1706, a bridge 1705, a host bus 1704, and the like. A communication unit 1716 is connected to the network and executes data communication processing with the outside. The data reading unit 1717 is a scanner, for example, and executes document reading processing. The data output unit 1718 is a printer, for example, and executes document data output processing.

なお、図17に示すハードウェア構成は、1つの構成例を示すものであり、本実施の形態は、図17に示す構成に限らず、本実施の形態において説明したモジュールを実行可能な構成であればよい。例えば、一部のモジュールを専用のハードウェア(例えば特定用途向け集積回路(Application Specific Integrated Circuit:ASIC)等)で構成してもよく、一部のモジュールは外部のシステム内にあり通信回線で接続しているような形態でもよく、さらに図17に示すシステムが複数互いに通信回線によって接続されていて互いに協調動作するようにしてもよい。また、複写機、ファックス、スキャナ、プリンタ、複合機(多機能複写機とも呼ばれ、スキャナ、プリンタ、複写機、ファックス等の機能を有している)などに組み込まれていてもよい。   Note that the hardware configuration illustrated in FIG. 17 illustrates one configuration example, and the present embodiment is not limited to the configuration illustrated in FIG. 17, and is a configuration capable of executing the modules described in the present embodiment. I just need it. For example, some modules may be configured with dedicated hardware (for example, Application Specific Integrated Circuit (ASIC), etc.), and some modules are in an external system and connected via a communication line Alternatively, a plurality of the systems shown in FIG. 17 may be connected to each other via communication lines so as to cooperate with each other. Further, it may be incorporated in a copying machine, a fax machine, a scanner, a printer, a multifunction machine (also called a multi-function copying machine, which has functions of a scanner, a printer, a copying machine, a fax machine, etc.).

なお、説明したプログラムについては、記録媒体に格納して提供してもよく、また、そのプログラムを通信手段によって提供してもよい。その場合、例えば、前記説明したプログラムについて、「プログラムを記録したコンピュータ読み取り可能な記録媒体」の発明として捉えてもよい。
「プログラムを記録したコンピュータ読み取り可能な記録媒体」とは、プログラムのインストール、実行、プログラムの流通などのために用いられる、プログラムが記録されたコンピュータで読み取り可能な記録媒体をいう。
なお、記録媒体としては、例えば、デジタル・バーサタイル・ディスク(DVD)であって、DVDフォーラムで策定された規格である「DVD−R、DVD−RW、DVD−RAM等」、DVD+RWで策定された規格である「DVD+R、DVD+RW等」、コンパクトディスク(CD)であって、読出し専用メモリ(CD−ROM)、CDレコーダブル(CD−R)、CDリライタブル(CD−RW)等、光磁気ディスク(MO)、フレキシブルディスク(FD)、磁気テープ、ハードディスク、読出し専用メモリ(ROM)、電気的消去及び書換可能な読出し専用メモリ(EEPROM)、フラッシュ・メモリ、ランダム・アクセス・メモリ(RAM)等が含まれる。
そして、前記のプログラム又はその一部は、前記記録媒体に記録して保存や流通等させてもよい。また、通信によって、例えば、ローカル・エリア・ネットワーク(LAN)、メトロポリタン・エリア・ネットワーク(MAN)、ワイド・エリア・ネットワーク(WAN)、インターネット、イントラネット、エクストラネット等に用いられる有線ネットワーク、あるいは無線通信ネットワーク、さらにこれらの組合せ等の伝送媒体を用いて伝送させてもよく、また、搬送波に乗せて搬送させてもよい。
さらに、前記のプログラムは、他のプログラムの一部分であってもよく、あるいは別個のプログラムと共に記録媒体に記録されていてもよい。また、複数の記録媒体に分割して
記録されていてもよい。また、圧縮や暗号化など、復元可能であればどのような態様で記録されていてもよい。
The program described above may be provided by being stored in a recording medium, or the program may be provided by communication means. In that case, for example, the above-described program may be regarded as an invention of a “computer-readable recording medium recording the program”.
The “computer-readable recording medium on which a program is recorded” refers to a computer-readable recording medium on which a program is recorded, which is used for program installation, execution, program distribution, and the like.
The recording medium is, for example, a digital versatile disc (DVD), which is a standard established by the DVD Forum, such as “DVD-R, DVD-RW, DVD-RAM,” and DVD + RW. Standards such as “DVD + R, DVD + RW, etc.”, compact discs (CDs), read-only memory (CD-ROM), CD recordable (CD-R), CD rewritable (CD-RW), etc. MO), flexible disk (FD), magnetic tape, hard disk, read only memory (ROM), electrically erasable and rewritable read only memory (EEPROM), flash memory, random access memory (RAM), etc. It is.
The program or a part of the program may be recorded on the recording medium for storage or distribution. Also, by communication, for example, a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a wired network used for the Internet, an intranet, an extranet, etc., or wireless communication It may be transmitted using a transmission medium such as a network or a combination of these, or may be carried on a carrier wave.
Furthermore, the program may be a part of another program, or may be recorded on a recording medium together with a separate program. Moreover, it may be divided and recorded on a plurality of recording media. Further, it may be recorded in any manner as long as it can be restored, such as compression or encryption.

本実施の形態の概念的な説明図である。It is a conceptual explanatory drawing of this Embodiment. 第1の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 1st Embodiment. 第1の実施の形態による処理例を示すフローチャートである。It is a flowchart which shows the process example by 1st Embodiment. 第1の実施の形態による相違度最小座標の量子化についての概念的な説明図である。It is a conceptual explanatory drawing about quantization of the minimum difference degree coordinate by 1st Embodiment. 相違度最小座標を算出する手法の1つを示す説明図である。It is explanatory drawing which shows one of the methods of calculating a dissimilarity minimum coordinate. 相違度最小座標を算出する手法の1つを示す説明図である。It is explanatory drawing which shows one of the methods of calculating a dissimilarity minimum coordinate. 相違度最小座標を算出する手法の1つを示す説明図である。It is explanatory drawing which shows one of the methods of calculating a dissimilarity minimum coordinate. 第2の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 2nd Embodiment. グリッドの一例を示す説明図である。It is explanatory drawing which shows an example of a grid. 第2の実施の形態による処理例を示すフローチャートである。It is a flowchart which shows the process example by 2nd Embodiment. 第2の実施の形態による相違度最小座標の量子化についての概念的な説明図である。It is a conceptual explanatory drawing about quantization of the minimum difference degree coordinate by 2nd Embodiment. 第2の実施の形態による最小グリッドを探索する処理例を示すフローチャートである。It is a flowchart which shows the process example which searches the minimum grid by 2nd Embodiment. 最小グリッドを探索する処理例の説明図である。It is explanatory drawing of the example of a process which searches for a minimum grid. 第3の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 3rd Embodiment. 第3の実施の形態による処理例を示すフローチャートである。It is a flowchart which shows the process example by 3rd Embodiment. 第3の実施の形態による相違度最小座標の量子化についての概念的な説明図である。It is a conceptual explanatory drawing about quantization of the minimum difference degree coordinate by 3rd Embodiment. 実施の形態を実現するコンピュータのハードウェア構成例を示すブロック図である。And FIG. 11 is a block diagram illustrating a hardware configuration example of a computer that implements an embodiment. 背景技術を示す説明図である。It is explanatory drawing which shows background art. 背景技術を示す説明図である。It is explanatory drawing which shows background art.

符号の説明Explanation of symbols

21…レイヤ値の決定モジュール
22…レイヤのグリッドの相違度算出モジュール
23…相違度最小座標算出モジュール
24…量子化モジュール
81…レイヤ値の決定モジュール
82…レイヤの最小グリッドの相違度算出モジュール
83…相違度最小座標算出モジュール
84…量子化モジュール
141…レイヤ値の決定モジュール
142…レイヤのグリッドの相違度算出モジュール
143…相違度最小座標算出モジュール
144…補間画像作成モジュール
DESCRIPTION OF SYMBOLS 21 ... Layer value determination module 22 ... Layer grid difference calculation module 23 ... Difference minimum coordinate calculation module 24 ... Quantization module 81 ... Layer value determination module 82 ... Layer minimum grid difference calculation module 83 ... Difference minimum coordinate calculation module 84 ... Quantization module 141 ... Layer value determination module 142 ... Layer grid difference calculation module 143 ... Difference difference minimum coordinate calculation module 144 ... Interpolated image creation module

Claims (11)

2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値であれば、前記相違度最小座標算出手段によって算出した相違度最小座標を出力させる制御手段
を具備することを特徴とする画像処理装置。
Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
An image processing apparatus comprising: control means for outputting the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculating means if the layer value is a desired layer value.
2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値でなければ、任意の数に減らしたレイヤ値のグリッドから相違度最小座標を前記相違度最小座標算出手段に算出させる制御手段
を具備することを特徴とする画像処理装置。
Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
If the layer value is not a desired layer value, the image processing apparatus comprises: a control unit that causes the minimum dissimilarity coordinate calculating unit to calculate a minimum dissimilarity coordinate from a grid of layer values reduced to an arbitrary number .
前記制御手段は、前記相違度最小座標算出手段によって算出された相違度最小座標を次の減少させたレイヤ値で量子化する
ことを特徴とする請求項1又は2に記載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the control unit quantizes the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculating unit with the next reduced layer value.
グリッドはレイヤ値の画素分だけ互いに離れた画素とする
ことを特徴とする請求項1、2又は3に記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the grid includes pixels separated from each other by a pixel corresponding to a layer value.
前記相違度最小座標算出手段は、グリッドの中心の相違度が最小となるグリッドにおいて相違度最小座標を算出する
ことを特徴とする請求項1、2、3又は4に記載の画像処理装置。
5. The image processing apparatus according to claim 1, wherein the dissimilarity minimum coordinate calculating unit calculates a dissimilarity minimum coordinate in a grid having a minimum dissimilarity at the center of the grid.
前記制御手段は、前記相違度最小座標算出手段によってグリッドの中心の相違度が最小となるグリッドを決定するためにレイヤ内で探索を行う
ことを特徴とする請求項5に記載の画像処理装置。
The image processing apparatus according to claim 5, wherein the control unit performs a search in a layer in order to determine a grid having a minimum difference in the center of the grid by the minimum difference coordinate calculation unit.
前記制御手段が行うレイヤ内でのグリッドの探索は、レイヤ値の画素分だけ離れた画素の相違度のなかで、中心の画素の相違度が最小となる場合に終了する
ことを特徴とする請求項6に記載の画像処理装置。
The search of the grid in the layer performed by the control means is terminated when the difference of the central pixel is the minimum among the differences of pixels separated by the pixel of the layer value. Item 7. The image processing apparatus according to Item 6.
前記制御手段が行うレイヤ内でのグリッドの探索は、レイヤ値の画素分だけ離れた画素の相違度のなかで、中心の画素の相違度が最小でない場合、相違度が最小の座標を中心にレイヤ値の画素分だけ離れた画素の相違度で未算出の相違度を算出する
ことを特徴とする請求項6に記載の画像処理装置。
The search of the grid in the layer performed by the control means is performed by focusing on the coordinates having the smallest difference when the difference of the central pixel is not the smallest among the differences of the pixels separated by the pixel of the layer value. The image processing apparatus according to claim 6, wherein an uncalculated difference is calculated based on a difference between pixels separated by a pixel corresponding to a layer value.
前記制御手段は、前記相違度最小座標算出手段によって算出された相違度最小座標の位相で補間画像を生成し、
前記相違度最小座標算出手段は、前記制御手段によって生成された該補間画像と相違度最小座標から次のレイヤでのグリッドの相違度を算出し、該レイヤの相違度最小座標を算出する
ことを特徴とする請求項1又は2に記載の画像処理装置。
The control means generates an interpolated image with the phase of the minimum dissimilarity coordinate calculated by the minimum dissimilarity coordinate calculating means,
The dissimilarity minimum coordinate calculation means calculates the dissimilarity of the grid in the next layer from the interpolated image generated by the control means and the minimum dissimilarity coordinates, and calculates the minimum dissimilarity coordinates of the layer. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
画像処理システムを、
2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値であれば、前記相違度最小座標算出手段によって算出した相違度最小座標を出力させる制御手段
として機能させることを特徴とする画像処理プログラム。
Image processing system
Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
If the layer value is a desired layer value, the image processing program is made to function as a control unit that outputs the minimum dissimilarity coordinates calculated by the minimum dissimilarity coordinate calculating unit.
画像処理システムを、
2枚の画像を入力する画像入力手段と、
前記画像入力手段によって入力された画像を対象として、レイヤ値に基づくグリッドの相違度から相違度最小座標を算出する相違度最小座標算出手段と、
レイヤ値が所望のレイヤ値でなければ、任意の数に減らしたレイヤ値のグリッドから相違度最小座標を前記相違度最小座標算出手段に算出させる制御手段
として機能させることを特徴とする画像処理プログラム。
Image processing system
Image input means for inputting two images;
For the image input by the image input means, a difference degree minimum coordinate calculation means for calculating a difference degree minimum coordinate from a grid difference degree based on a layer value;
If the layer value is not a desired layer value, the image processing program causes the minimum dissimilarity coordinate calculating unit to function as a control unit that calculates the minimum dissimilarity coordinate from a grid of layer values reduced to an arbitrary number. .
JP2007049310A 2007-02-28 2007-02-28 Image processing apparatus and image processing program Expired - Fee Related JP4821653B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007049310A JP4821653B2 (en) 2007-02-28 2007-02-28 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007049310A JP4821653B2 (en) 2007-02-28 2007-02-28 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2008217053A true JP2008217053A (en) 2008-09-18
JP4821653B2 JP4821653B2 (en) 2011-11-24

Family

ID=39837074

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007049310A Expired - Fee Related JP4821653B2 (en) 2007-02-28 2007-02-28 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP4821653B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013084183A (en) * 2011-10-12 2013-05-09 Nippon Telegr & Teleph Corp <Ntt> Similar image region detection method, device, and program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930261B (en) * 2016-01-16 2018-06-22 平安科技(深圳)有限公司 test method and test terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995004329A1 (en) * 1993-07-31 1995-02-09 Sony Corporation Device and method for detecting image matching
JP2006293602A (en) * 2005-04-08 2006-10-26 Konica Minolta Photo Imaging Inc Image processing method and image processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995004329A1 (en) * 1993-07-31 1995-02-09 Sony Corporation Device and method for detecting image matching
JP2006293602A (en) * 2005-04-08 2006-10-26 Konica Minolta Photo Imaging Inc Image processing method and image processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013084183A (en) * 2011-10-12 2013-05-09 Nippon Telegr & Teleph Corp <Ntt> Similar image region detection method, device, and program

Also Published As

Publication number Publication date
JP4821653B2 (en) 2011-11-24

Similar Documents

Publication Publication Date Title
US8384926B2 (en) Method for displaying state of processing data
US7519224B2 (en) Method and apparatus for compensating data image reproduced from holographic system
CN100477720C (en) Image processing apparatus and image processing method
JP2009213145A (en) Image processing apparatus, and image processing program
JP5321109B2 (en) Information processing apparatus and information processing program
JP4626775B2 (en) Information processing apparatus and information processing program
US7885486B2 (en) Image processing system, method for processing image and computer readable medium
JP6075294B2 (en) Image processing system and image processing method
JP2004215266A (en) Device for improving reproduction quality of video and its method
JP4821653B2 (en) Image processing apparatus and image processing program
JP4560023B2 (en) Image matching apparatus, image matching program, and image matching method
JP5316385B2 (en) Image processing apparatus and image processing program
US20080232717A1 (en) Image recognition device and image rotating method
JP2008263465A (en) Image processing system and image processing program
JP5742283B2 (en) Image processing apparatus and image processing program
JP5278243B2 (en) Image processing apparatus and image processing program
JP4867705B2 (en) Image processing apparatus and image processing program
JP4821580B2 (en) Image processing system and image processing program
JP2012209639A (en) Image processing apparatus and image processing program
JP2003150898A (en) Method for detecting patten position in image, device, program and recording medium recorded with program
WO2024048262A1 (en) Information processing device, information processing method, and program
JP2010211699A (en) Image processor and image processing program
JP4617825B2 (en) Data processing apparatus, data processing method, program, and recording medium
JP2011142565A (en) Information processing apparatus and program
JP2011170488A (en) Image processing device, image processing method, image processing program, and electronic apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110621

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110708

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: 20110809

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110822

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140916

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees