JPH0145103B2 - - Google Patents
Info
- Publication number
- JPH0145103B2 JPH0145103B2 JP59074313A JP7431384A JPH0145103B2 JP H0145103 B2 JPH0145103 B2 JP H0145103B2 JP 59074313 A JP59074313 A JP 59074313A JP 7431384 A JP7431384 A JP 7431384A JP H0145103 B2 JPH0145103 B2 JP H0145103B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- projection
- angle
- memory
- images
- 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.)
- Expired
Links
Landscapes
- Collating Specific Patterns (AREA)
- Image Input (AREA)
- Image Analysis (AREA)
Description
【発明の詳細な説明】
(a) 発明の技術分野
本発明は画像処理装置に係り、同一平面上にあ
つて合同または類似する二つの画像に対し、各々
の画像の画素毎の画素値の変化方向の角度に関す
る角度ヒストグラムから求められた両画像間の回
転角度差が正しいか否かを検証する画像間回転角
度差検証装置に関する。[Detailed Description of the Invention] (a) Technical Field of the Invention The present invention relates to an image processing device, which processes two congruent or similar images on the same plane and processes changes in pixel values for each pixel of each image. The present invention relates to an image-to-image rotation angle difference verification device that verifies whether or not a rotation angle difference between both images determined from an angle histogram regarding directional angles is correct.
(b) 技術の背景
画像処理の一応用分野である印鑑照合装置にお
いては、通常、照合の対象とする被照合印影すな
わち被照合画像とあらかじめ辞書等に記憶する登
録印影すなち基準画像とを、同一平面上でパター
ンマツチング等の技法を用いて照合し類似度を求
めるという処理がよく用いられるが、被照合印影
と登録印影のとき向き(姿勢)が違う、すなわち
被照合印影と登録印影との間に回転角度差がある
場合には、このままでは照合が困難である。(b) Background of the technology In a seal matching device, which is an applied field of image processing, usually the seal impression to be compared, that is, the image to be matched, and the registered seal impression, that is, a reference image, stored in advance in a dictionary, etc. are used. , a process of matching on the same plane using a technique such as pattern matching to find the degree of similarity is often used, but the direction (orientation) of the matched seal impression and the registered seal impression are different, that is, the matched seal impression and the registered seal impression. If there is a difference in rotation angle between the
したがつて、このような場合には照合に先立つ
前処理において前記の回転角度差を除くための処
理をおこなうなど、その他画像処理あるいは画像
認識等の分野においては、合同あるいは類似する
二つの画像間の回転角度差を求めるという処理が
よくおこなわれている。 Therefore, in such cases, in the field of image processing or image recognition, it is necessary to perform processing to remove the rotation angle difference mentioned above in the preprocessing prior to matching, and to remove the difference between two congruent or similar images. The process of determining the rotation angle difference between the two is often performed.
(c) 従来技術と問題点
同一平面上にあつて合同あるいは類似する複数
の画像の間の回転角度差を求めるため、従来、画
像をメツシユ状に配列される画素に分割し各画素
の画素値が大から小または小から大に変化する方
向の角度を画素毎に求め、その角度毎の画素の数
を計数することによつて角度ヒストグラムを生成
する角度ヒストグラム生成部を備え、この角度ヒ
ストグラム生成部によつて得られる角度ヒストグ
ラムを比較することによつて二つの画像の間の回
転角度差を求めるものが用いられていた。(c) Prior art and problems In order to find the rotation angle difference between multiple images that are congruent or similar on the same plane, conventionally the image is divided into pixels arranged in a mesh pattern and the pixel value of each pixel is calculated. An angle histogram generation unit that generates an angle histogram by calculating the angle in the direction in which the angle changes from large to small or from small to large for each pixel and counting the number of pixels for each angle. The difference in rotation angle between two images is determined by comparing the angle histograms obtained by different parts of the image.
ところが、文字あるいは線図形等は一般にほぼ
平行な線によつて構成されているため、たとえば
第1図aに例示するような線図形では、各画素に
おける濃度値が変化する方向はそれぞれ矢印によ
つて示される方向であり、したがつてbに示すよ
うな角度ヒストグラムが得られる。 However, since characters or line figures are generally composed of nearly parallel lines, for example, in a line figure such as the one shown in Figure 1a, the direction in which the density value changes at each pixel is indicated by the arrow. Therefore, an angle histogram as shown in b is obtained.
同様にcのようにaの図形を180度回転させた
ような図形に対してはbと非常に類似した角度ヒ
ストグラムdが得られ、このように二つの画像間
の回転角度差を角度ヒストグラムによつて求める
場合には、90度の誤差を生じ易いので検出結果を
検証しなければならないという問題があつた。ま
た文字を構成する線は直交する成分が多いので、
文字によつては90度あるいは270度の誤差を生じ
易いという問題があつた。 Similarly, for a figure such as c, which is the figure in a rotated by 180 degrees, an angle histogram d that is very similar to b is obtained, and in this way, the rotation angle difference between the two images can be expressed as an angle histogram. When calculating the angle, a 90 degree error is likely to occur, so there was a problem in that the detection results had to be verified. Also, since the lines that make up characters often have orthogonal components,
There was a problem that depending on the characters, errors of 90 degrees or 270 degrees were likely to occur.
第2図においてaの画像を45度回転した画像が
cであり、bはaの画像に対する角度ヒストグラ
ム、またdはcの画像に対する角度ヒストグラム
である。そしてbによつて示される角度ヒストグ
ラムとdによつて示される角度ヒストグラムとを
角度軸方向に相対的に移動させながら比較するこ
とによつて、aによつて示される画像とcによつ
て示される画像との間の回転角度差は−45度・45
度・135度あるいは225度ではないかということが
判る。 In FIG. 2, the image c is obtained by rotating the image a by 45 degrees, b is the angle histogram for the image a, and d is the angle histogram for the image c. By comparing the angle histogram shown by b and the angle histogram shown by d while moving them relatively in the angular axis direction, the image shown by a and the image shown by c are compared. The rotation angle difference between the image and the displayed image is -45 degrees/45
It turns out that it is 135 degrees or 225 degrees.
これを検証するためには、cの画像に対し45度
の回転を施して得られる画像と、−45度の回転を
施して得られる画像と、−135度の回転を施して得
られる画像と135度の回転を施した画像とを、そ
れぞれaの画像と照合して類似度(距離)を調べ
て類似度の高い方を選べばよいのであるが、画像
の回転には長時間を要するものであり、このよう
に4回も回転しなければならないという問題があ
つた。 To verify this, we need to create an image obtained by rotating the image c by 45 degrees, an image obtained by rotating it by -45 degrees, and an image obtained by rotating it by -135 degrees. All you have to do is compare the image rotated by 135 degrees with the image a, check the degree of similarity (distance), and select the one with the highest degree of similarity, but image rotation takes a long time. The problem was that it had to be rotated four times in this way.
(d) 発明の目的
本発明の目的は、同一平面上にあつて合同また
は類似する二つの画像に対し各々の画像の画素毎
の画素値の変化方向の角度に関する角度ヒストグ
ラムから求められた両画像間の回転角度、正しい
か否かを短時間に検証することのできる手段を提
供することにある。(d) Object of the Invention The object of the invention is to obtain two images that are congruent or similar on the same plane and that are obtained from an angular histogram regarding the angle in the direction of change in pixel value for each pixel of each image. The object of the present invention is to provide a means for quickly verifying whether the rotation angle between the two is correct or not.
(e) 発明の構成
すなわち本発明になる画像間回転角度検証装置
は、画像をメツシユ状に配列される画素に分割し
各画素の画素値が大から小または小から大に変化
する方向の角度を画素毎に求めその角度毎の画素
の数を計数して角度ヒストグラムを生成する角度
ヒストグラム生成部と二つの画像に対し前記角度
ヒストグラム生成部によつて得られる二つの角度
ヒストグラムを比較する比較部とを備え前記二つ
の画像の間の回転角度差を検出する画像間回転角
度差検証装置に用いられ、前記検出された回転角
度差に基づいて前記二つの画像の少なくとも何れ
かを回転する画像回転部と、前記画像回転部によ
つて回転角度差を除かれた二つの画像の各々から
相互に交わる2軸に対する投影を抽出する投影抽
出部と、前記投影抽出部によつて抽出された二つ
の画像の投影の間の距離を算出する距離算出部と
を備え、前記検出された回転角度差を前記投影抽
出部によつて得られる投影によつて検証すること
を特徴とするものである。(e) Structure of the Invention In other words, the inter-image rotation angle verification device of the present invention divides an image into pixels arranged in a mesh pattern and calculates the angle in the direction in which the pixel value of each pixel changes from large to small or from small to large. an angle histogram generation unit that calculates the number of pixels for each pixel and counts the number of pixels for each angle to generate an angle histogram; and a comparison unit that compares two angle histograms obtained by the angle histogram generation unit for two images. and an image rotation used in an inter-image rotation angle difference verification device that detects a rotation angle difference between the two images, and that rotates at least one of the two images based on the detected rotation angle difference. a projection extraction unit that extracts projections on two mutually intersecting axes from each of the two images from which the rotation angle difference has been removed by the image rotation unit; and a distance calculation section that calculates a distance between projections of images, and the detected rotation angle difference is verified by the projection obtained by the projection extraction section.
(f) 発明の実施例
次に本発明の要旨を実施例によつて具体的に説
明する。(f) Examples of the Invention Next, the gist of the present invention will be specifically explained using examples.
第3図と第4図は本発明の原理を説明する図で
あり、第3図a・b・cおよびdは、第2図bに
よつて示される画像に対し、それぞれ−45度・45
度・135度および−135度の回転を施して得られる
画像、また第4図a・b・cおよびdは、それぞ
れ第3図a・b・cおよびdによつて表される画
像のx座標軸(横軸)およびy座標軸(縦軸)に
対する投影を示したものである。 Figures 3 and 4 are diagrams for explaining the principle of the present invention.
The images obtained by applying rotations of 135 degrees and -135 degrees, and Figure 4 a, b, c and d are x of the images represented by Figure 3 a, b, c and d, respectively. It shows the projection onto the coordinate axis (horizontal axis) and the y-coordinate axis (vertical axis).
そして、第4図の各投影を比較すると、aのx
座標軸投影とbのy座標軸投影と、cのx座標軸
投影をx座標軸方向に反転したものと、dのy座
標軸投影をy座標軸方向に反転したものとは等し
く、またaのy座標軸投影と、bのx座標軸投影
をx座標軸方向に反転したものと、cのy座標軸
投影をy座標軸方向に反転したものと、dのx座
標軸投影とは等しいことが判る。 Comparing each projection in Fig. 4, we find that x of a
The coordinate axis projection, the y-coordinate axis projection of b, the inversion of the x-coordinate axis projection of c in the x-coordinate axis direction, and the inversion of the y-coordinate axis projection of d in the y-coordinate axis direction are equal, and the y-coordinate axis projection of a, It can be seen that the x-coordinate axis projection of b is inverted in the x-coordinate axis direction, the y-coordinate axis projection of c is inverted in the y-coordinate axis direction, and the x-coordinate axis projection of d is equal.
つまり、第3図a・b・cおよびdのように90
度ずつの回転角度差のある画像に対しては、角度
ヒストグラムによつて回転角度差を検証すること
は困難であるが、それぞれx軸およびy軸に対す
る投影を用いることによつて容易に検証できるこ
と、また、ある画像の直交する2軸に対する投影
が得られれば、その画像を90度・180度および270
度回転した画像の各2軸に対する投影は極めて容
易に得られることが判る。 In other words, as shown in Figure 3 a, b, c and d, 90
For images with rotation angle differences of degrees, it is difficult to verify the rotation angle difference using an angle histogram, but it can be easily verified by using projections on the x and y axes, respectively. , and if the projection of an image to two orthogonal axes is obtained, the image can be projected at 90 degrees, 180 degrees, and 270 degrees.
It can be seen that projections of the rotated image on each of the two axes can be obtained very easily.
本発明は以上のような原理に基づいてなされた
ものであり、第5図はその一実施例を示すブロツ
ク図である。 The present invention has been made based on the above principle, and FIG. 5 is a block diagram showing one embodiment thereof.
第5図において、1は登録印影の画像をメツシ
ユ状に配列される画素に分割し各画素の画素値を
記憶する画像メモリ、2は被照合印影の画像をメ
ツシユ状に配列される画素に分割し各画素の画素
値を記憶する画像メモリ、3は画像メモリ1およ
び画像メモリ2に記憶する各画像の画素の画素値
が大から小に変化する方向の角度を画素毎に求め
その角度毎の画素の数を計数して角度ヒストグラ
ムを生成する角度ヒストグラム生成部と前記二つ
の画像に対し前記角度ヒストグラム生成部によつ
て得られる二つの角度ヒストグラムを比較する比
較部とを備え前記二つの画像の間の回転角度差を
検出する角度差検出装置、4は画像メモリ2に記
憶する画像を角度差検出装置3によつて検出され
た回転角度差に基づいて回転する画像回転部、5
は画像回転部4によつて回転された画像を記憶す
る画像メモリ、6xは画像メモリ1に記憶する画
像のx座標軸投影を抽出する投影抽出部、6yは
画像メモリ1に記憶する画像のy座標軸投影を抽
出する投影抽出部、7xは画像メモリ5に記憶す
る画像のx座標軸投影を抽出する投影抽出部、7
yは画像メモリ5に記憶する画像のy座標軸投影
を抽出する投影抽出部、8xは投影抽出部6xに
よつて抽出された投影を記憶するメモリ、8yは
投影抽出部6yによつて抽出された投影を記憶す
るメモリ、9xは投影抽出部7xによつて抽出さ
れた投影を記憶するメモリ、9yは投影抽出部7
yによつて抽出された投影を記憶するメモリ、1
0はメモリ8x・メモリ8y・メモリ9xおよび
メモリ9yに記憶する投影ならびにこれらの投影
を各座標軸方向に反転することによつて得られる
投影の間の距離を算出し比較する距離算出部であ
る。 In Fig. 5, 1 is an image memory that divides the image of the registered seal imprint into pixels arranged in a mesh pattern and stores the pixel value of each pixel, and 2 divides the image of the seal impression to be verified into pixels arranged in a mesh pattern. The image memory 3 stores the pixel value of each pixel, and 3 calculates the angle in the direction in which the pixel value of each pixel of each image stored in the image memory 1 and the image memory 2 changes from large to small for each pixel. An angle histogram generation unit that counts the number of pixels to generate an angle histogram; and a comparison unit that compares two angle histograms obtained by the angle histogram generation unit for the two images. An angular difference detection device 4 detects a rotation angle difference between the images;
6x is a projection extraction unit that extracts the x-coordinate axis projection of the image stored in the image memory 1; and 6y is the y-coordinate axis of the image stored in the image memory 1. A projection extraction unit 7x extracts a projection, and 7x is a projection extraction unit 7 that extracts an x-coordinate axis projection of an image stored in the image memory 5.
y is a projection extraction unit that extracts the y-coordinate axis projection of the image stored in the image memory 5, 8x is a memory that stores the projection extracted by the projection extraction unit 6x, and 8y is the projection extracted by the projection extraction unit 6y. A memory for storing projections; 9x is a memory for storing projections extracted by the projection extraction unit 7x; 9y is a projection extraction unit 7;
a memory storing the projection extracted by y, 1
0 is a distance calculation unit that calculates and compares the distances between the projections stored in the memory 8x, the memory 8y, the memory 9x, and the memory 9y, and the projections obtained by inverting these projections in each coordinate axis direction.
第6図は角度差検出装置3の詳細構成例を示す
ブロツク図であり、第5図と共通の符号は同一対
象を指すほか、2aは画像メモリ1の内容を読み
取つて2行分の画素の画素値と次の行の中の3画
素の画素値とを順次格納するパイプライン処理用
のバツフア、3aと4aと5aと6aは画像メモ
リ1に記憶する画像の画素の画素値が大から小に
変化する方向の角度を画素毎に求めその角度毎の
画素の数を計数して角度ヒストグラムを生成する
角度ヒストグラム生成部3Aを構成し、3aはバ
ツフア2aのうちハツチングによつて示す3×3
の画素の各々の画素値を読み取つて行方向(x方
向)の差分dxを計算する差分計算回路、4aは
バツフア2aのうちハツチングによつて示す3×
3の画素の各々の画素値を読み取つて列方向(y
方向)の差分dyを計算する差分計算回路、5a
は差分計算回路4aによつて得られた差分dyと
差分計算回路3aによつて得られた差分dxとか
ら画素値が大から小に変化する方向の角度
arctan(dy/dx)
を画素毎に計算する角度計算回路、6aは角度計
算回路5aの出力のヒストグラムを格納するメモ
リ、2bは画像メモリ2の内容を読み取つて2行
分の画素の画素値と次の行の中の3画素の画素値
とを順次格納するパイプライン処理用のバツフ
ア、3bと4bと5bと6bは画像メモリ2に記
憶する画像の画素の画素値が大から小に変化する
方向の角度を画素毎に求めその角度毎に画素の数
を計数して角度ヒストグラムを生成する角度ヒス
トグラム生成部3Bを構成し、3bはバツフア2
bのうちハツチングによつて示す3×3の画素の
各々の画素値を読み取つて行方向(x方向)の差
分dxを計算する差分計算回路、4bはバツフア
2bのうちハツチングによつて示す3×3の画素
の各々の画素値を読み取つて列方向(y方向)の
差分dyを計算する差分計算回路5bは差分計算
回路4bによつて得られた差分dyと差分計算回
路3bによつて得られた差分dxとから画素値が
大から小に変化する方向の角度
arctan(dy/dx)
を画素毎に計算する角度計算回路、6bは角度計
算回路5bの出力ヒストグラムを格納するメモ
リ、11はメモリ6aとメモリ6bに格納される
角度ヒストグラムを各々の角度軸方向に相対的に
シフトしながら比較する比較部である。 FIG. 6 is a block diagram showing a detailed configuration example of the angular difference detection device 3, in which the same reference numerals as in FIG. 5 refer to the same objects. Buffers for pipeline processing that sequentially store a pixel value and the pixel values of three pixels in the next row, 3a, 4a, 5a, and 6a are used to store the pixel values of the image pixels stored in the image memory 1 from large to small. An angle histogram generation unit 3A is constructed which calculates the angle in the direction of change for each pixel and counts the number of pixels for each angle to generate an angle histogram.
4a is a difference calculation circuit that reads the pixel value of each pixel and calculates the difference dx in the row direction (x direction);
Read the pixel value of each pixel of 3 and move it in the column direction (y
Difference calculation circuit for calculating the difference dy in direction), 5a
is the angle arctan(dy/dx) in the direction in which the pixel value changes from large to small from the difference dy obtained by the difference calculation circuit 4a and the difference dx obtained by the difference calculation circuit 3a for each pixel. An angle calculation circuit 6a stores the histogram of the output of the angle calculation circuit 5a. 2b reads the contents of the image memory 2 and calculates the pixel values of the pixels in two rows and the three pixels in the next row. Buffers 3b, 4b, 5b, and 6b for pipeline processing that sequentially store values and values calculate the angle in the direction in which the pixel value of the pixel of the image stored in the image memory 2 changes from large to small for each pixel. An angle histogram generation unit 3B that counts the number of pixels at each time and generates an angle histogram is configured, and 3b is a buffer 2.
4b is a difference calculation circuit that reads the pixel value of each 3×3 pixel shown by hatching and calculates the difference dx in the row direction (x direction); A difference calculation circuit 5b reads the pixel value of each pixel of 3 and calculates the difference dy in the column direction (y direction). 6b is a memory for storing the output histogram of the angle calculation circuit 5b; 11 is a memory This is a comparison section that compares the angular histograms stored in the angular histogram 6a and the memory 6b while shifting them relatively in the respective angular axis directions.
第2図aおよびcに例示するような画像が、そ
れぞれ画像メモリ1および画像メモリ2に格納さ
れる場合について説明すると、まず角度ヒストグ
ラム生成部3Aおよび角度ヒストグラム生成部3
Bによつて、それぞれ第2図bおよびdのような
角度ヒストグラムが得られ、それぞれメモリ6a
およびメモリ6bに格納され、比較部11は回転
角度差として45度を出力する。 To explain the case where images such as those illustrated in FIGS.
2, the angular histograms as shown in FIG.
and is stored in the memory 6b, and the comparator 11 outputs 45 degrees as the rotation angle difference.
画像回転部4は画像メモリ2に格納されている
画像を右回りに45度回転し、その結果、画像メモ
リ5にはaのような図形が格納される。 The image rotation unit 4 rotates the image stored in the image memory 2 by 45 degrees clockwise, and as a result, a figure like a is stored in the image memory 5.
投影抽出部6xは画像メモリ1に格納される画
像を構成する画素のうち画素値が所定の閾値以上
の画素の画素列毎の数を計数することによつてx
座標軸投影を抽出し、投影抽出部6yは画像メモ
リ1に格納される画像を構成する画素のうち画素
値が所定の閾値以上の画素の画素行毎の数を計数
することによつてy座標軸投影を抽出し、抽出さ
れた投影はそれぞれメモリ8xおよびメモリ8y
に格納される。 The projection extraction unit 6x calculates x by counting the number of pixels in each pixel column whose pixel value is equal to or higher than a predetermined threshold among the pixels constituting the image stored in the image memory 1.
The projection extraction unit 6y extracts the coordinate axis projection, and the projection extraction unit 6y calculates the y coordinate axis projection by counting the number of pixels in each pixel row whose pixel value is greater than or equal to a predetermined threshold among the pixels constituting the image stored in the image memory 1. The extracted projections are stored in memory 8x and memory 8y, respectively.
is stored in
同様にして、投影抽出部7xは画像メモリ5に
格納される画像を構成する画素のうち画素値が所
定の閾値以上の画素の画素列毎の数を計数するこ
とによつてx座標軸投影を抽出し、投影抽出部7
yは画像メモリ5格納される画像を構成する画素
のうち画素値が所定の閾値以上の画素の画素行毎
の数を計数することによつてy座標軸投影を抽出
し、抽出された投影はそれぞれメモリ9xおよび
メモリ9yに格納される。 Similarly, the projection extraction unit 7x extracts the x-coordinate axis projection by counting the number of pixels in each pixel column whose pixel value is equal to or higher than a predetermined threshold among the pixels constituting the image stored in the image memory 5. Then, the projection extractor 7
y is the y-coordinate axis projection extracted by counting the number of pixels in each pixel row whose pixel value is greater than or equal to a predetermined threshold among the pixels constituting the image stored in the image memory 5, and each extracted projection is It is stored in memory 9x and memory 9y.
距離算出部10は、まず第1回目に、メモリ8
xに格納された投影とメモリ9xに格納された投
影との間の距離と、メモリ8yに格納された投影
とメモリ9yに格納された投影との間の距離との
和D1を求める。 The distance calculation unit 10 first reads the memory 8 for the first time.
The sum D1 of the distance between the projection stored in x and the projection stored in the memory 9x and the distance between the projection stored in the memory 8y and the projection stored in the memory 9y is determined.
次に第2回目には、メモリ8xに格納された投
影とメモリ9yに格納された投影をy座標軸方向
に反転して得られる投影との間の距離と、メモリ
8yに格納された投影とメモリ9xに、格納され
た投影との間の距離との和D2を求める。 Next, for the second time, the distance between the projection stored in the memory 8x and the projection obtained by reversing the projection stored in the memory 9y in the y-coordinate axis direction, and the distance between the projection stored in the memory 8y and the projection stored in the memory 9y are calculated. The sum D2 of the distance between 9x and the stored projection is calculated.
続いて第3回目には、メモリ8xに格納された
投影とメモリ9xに格納された投影をx座標軸方
向に反転して得られる投影との間の距離と、メモ
リ8yに格納された投影とメモリ9yに格納され
た投影をy座標軸方向に反転して得られる投影と
の間の距離との和D3を求める。 Subsequently, in the third time, the distance between the projection stored in the memory 8x and the projection obtained by reversing the projection stored in the memory 9x in the x coordinate axis direction, and the projection stored in the memory 8y and the memory are calculated. The sum D3 of the distance between the projection stored in 9y and the projection obtained by inverting it in the y-coordinate axis direction is calculated.
最後に、メモリ8xに格納された投影とメモリ
9yに、格納された投影との間の距離と、メモリ
8yに格納された投影とメモリ9xに格納された
投影をy座標軸方向に反転して得られる投影との
間の距離との和D4を求める。 Finally, the distance between the projection stored in the memory 8x and the projection stored in the memory 9y is obtained by reversing the projection stored in the memory 8y and the projection stored in the memory 9x in the y-coordinate axis direction. The sum D4 of the distance between the two projections is calculated.
すなわち、第1回目には第2図eの画像から抽
出された投影と第3図aの画像から抽出された投
影との間の距離D1が得られ、第2回目には第2
図aの画像から抽出された投影と第3図bの画像
から抽出される筈の投影との間の距離D2が得ら
れ、第3回目には第2図aの画像から抽出された
投影と第3図cの画像から抽出される筈の投影と
の間の距離D3が得られ、また第4回目には第2
図aの画像から抽出された投影と第3図dの画像
から抽出される筈の投影との間の距離D4が得ら
れる。 That is, in the first time, the distance D1 between the projection extracted from the image in FIG. 2e and the projection extracted from the image in FIG.
The distance D2 between the projection extracted from the image in figure a and the projection that would have been extracted from the image in figure 3 b is obtained, and in the third time the projection extracted from the image in figure 2 a and The distance D3 between the projection and the one that should be extracted from the image in Figure 3c is obtained, and the second
The distance D4 between the projection extracted from the image of figure a and the projection to be extracted from the image of figure 3d is obtained.
すなわちD1とD2とD3とD4を比較するこ
とによつて、画像メモリ1に格納した画像と画像
メモリ2に格納した画像との間の回転角度差は、
D1が最小であれば角度差検出装置3によつて検
出された値であり、D2が最小であれば、角度差
検出装置3によつて検出された値に90度を加えた
値であり、D3が最小であれば角度差検出装置3
によつて検出された値に180度を加えた値であり、
また、D4が最小でれば角度差検出装置3によつ
て検出された値に270度を加えた値であるとして
検証することができる。 That is, by comparing D1, D2, D3, and D4, the rotation angle difference between the image stored in image memory 1 and the image stored in image memory 2 is determined as follows.
If D1 is the minimum, it is the value detected by the angular difference detection device 3, and if D2 is the minimum, it is the value detected by the angular difference detection device 3 plus 90 degrees, If D3 is the minimum, the angle difference detection device 3
is the value found by adding 180 degrees,
Furthermore, if D4 is the minimum, it can be verified that it is a value obtained by adding 270 degrees to the value detected by the angular difference detection device 3.
上記実施例によれば、画像回転部4は画像メモ
リ2に格納した被照合印影の画像に対し1回の回
転をおこなうだけでよい。 According to the above embodiment, the image rotation unit 4 only needs to rotate the image of the seal imprint to be verified stored in the image memory 2 once.
また距離算出部10では、画像メモリ5に格納
した一つの画像たとえば第3図aに対し、、第4
図aのようなx座標軸投影とy座標軸投影とが得
られれば、第3図b・cおよびdのように第3図
aの画像に対しそれぞれ90度・180度および270度
の回転を施して得られる画像に対するx座標軸投
影とy座標軸投影は、それぞれ、メモリ9xある
いはメモリ9yからデータを読み取る順序を変え
るだけで極めて容易に得られる。 Further, in the distance calculating section 10, for one image stored in the image memory 5, for example, FIG.
Once the x-coordinate axis projection and y-coordinate axis projection as shown in figure a are obtained, the image in figure 3 a can be rotated by 90 degrees, 180 degrees and 270 degrees as shown in figures b, c and d, respectively. The x-coordinate axis projection and y-coordinate axis projection for the image obtained can be obtained extremely easily by simply changing the order in which data is read from the memory 9x or the memory 9y, respectively.
したがつて画像回転部3によつて得られる回転
角度差を短時間に且つ容易に検証することができ
る。 Therefore, the rotation angle difference obtained by the image rotation section 3 can be verified easily in a short time.
(g) 発明の効果
以上説明したように、本発明によれば同一平面
上にあつて合同または類似する二つの画像に対し
各々の画像の画素毎の画素値の変化方向の角度に
関する角度ヒストグラムから求められた両画像間
の回転角度が正しいか否かを短時間に検証するこ
とができる。(g) Effects of the Invention As explained above, according to the present invention, for two congruent or similar images on the same plane, it is possible to calculate the angle histogram of the change direction of the pixel value of each pixel of each image. It is possible to verify in a short time whether the obtained rotation angle between both images is correct.
第1図と第2図は従来例の問題点の説明図、第
3図と第4図は本発明の原理の説明図、第5図は
本発明一実施例の構成図、第6図は角度差検出装
置の詳細構成図を示す。
図中、3は角度差検出装置、4は画像回転部、
6x・6y・7xおよび7yは投影抽出部、10
は距離算出部、3a・4a・4bおよび3bは差
分計算回路、5aおよび5bは角度計算回路、1
1は比較部である。
1 and 2 are explanatory diagrams of problems in the conventional example, FIGS. 3 and 4 are explanatory diagrams of the principle of the present invention, FIG. 5 is a configuration diagram of an embodiment of the present invention, and FIG. A detailed configuration diagram of the angular difference detection device is shown. In the figure, 3 is an angle difference detection device, 4 is an image rotation unit,
6x, 6y, 7x and 7y are projection extractors, 10
3a, 4a, 4b and 3b are difference calculation circuits; 5a and 5b are angle calculation circuits; 1
1 is a comparison section.
Claims (1)
各画素の画素値が大から小または小から大に変化
する方向の角度を画素毎に求めその角度毎の画素
の数を計数して角度ヒストグラムを生成する角度
ヒストグラム生成部と二つの画像に対し前記角度
ヒストグラム生成部によつて得られる二つの角度
ヒストグラムを比較する比較部とを備え前記二つ
の画像の間の回転角度差を検出する回転角度差検
出装置に用いられ、前記検出された回転角度差に
基づいて前記二つの画像の少なくとも何れかを回
転する画像回転部と、前記画像回転部によつて回
転角度差を除かれた二つの画像の各々から相互に
交わる2軸に対する投影を抽出する投影抽出部
と、前記投影抽出部によつて抽出された二つの画
像の投影の間の距離を算出する距離算出部とを備
え、前記検出された回転角度差を前記投影抽出部
によつて得られる投影によつて検証することを特
徴とする画像間回転角度差検証装置。1 Divide the image into pixels arranged in a mesh pattern, find the angle in the direction in which the pixel value of each pixel changes from large to small or from small to large for each pixel, count the number of pixels for each angle, and create an angle histogram. and a comparison unit that compares two angle histograms obtained by the angle histogram generation unit for two images, and a rotation angle that detects a rotation angle difference between the two images. an image rotation unit that is used in a difference detection device and rotates at least one of the two images based on the detected rotation angle difference; and two images from which the rotation angle difference has been removed by the image rotation unit. a projection extraction unit that extracts projections from each of the two axes that intersect with each other, and a distance calculation unit that calculates a distance between the projections of the two images extracted by the projection extraction unit, An image-to-image rotation angle difference verification apparatus, characterized in that the rotation angle difference between images is verified using a projection obtained by the projection extraction section.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59074313A JPS60218176A (en) | 1984-04-13 | 1984-04-13 | Device for verifying turning angle difference between pictures |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59074313A JPS60218176A (en) | 1984-04-13 | 1984-04-13 | Device for verifying turning angle difference between pictures |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60218176A JPS60218176A (en) | 1985-10-31 |
| JPH0145103B2 true JPH0145103B2 (en) | 1989-10-02 |
Family
ID=13543504
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59074313A Granted JPS60218176A (en) | 1984-04-13 | 1984-04-13 | Device for verifying turning angle difference between pictures |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60218176A (en) |
-
1984
- 1984-04-13 JP JP59074313A patent/JPS60218176A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60218176A (en) | 1985-10-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110490916B (en) | Three-dimensional object modeling method and equipment, image processing device and medium | |
| JPH03294976A (en) | Reference mark pattern detecting device | |
| CN108122256A (en) | It is a kind of to approach under state the method for rotating object pose measurement | |
| Lin et al. | Cylindrical panoramic image stitching method based on multi-cameras | |
| KR102223754B1 (en) | Method and Apparatus for Enhancing Face Image | |
| US20040131281A1 (en) | System and method for determining an image decimation range for use in a machine vision system | |
| Lim et al. | Estimating relative camera motion from the antipodal-epipolar constraint | |
| JP2001101419A (en) | Image feature tracking processing method, image feature tracking processing device, three-dimensional data creation method | |
| KR100944293B1 (en) | Efficient Omnidirectional 3D Model Reconstruction from Single Axis Rotated Images | |
| CN115937003A (en) | Image processing method, image processing device, terminal equipment and readable storage medium | |
| CN115601336A (en) | Method and device for determining target projection and electronic equipment | |
| CN115239612B (en) | Circuit board positioning method, device, equipment and storage medium | |
| JPH0145103B2 (en) | ||
| Asthana | Enhanced camera calibration for machine vision using opencv | |
| CN117253022A (en) | An object recognition method, device and inspection equipment | |
| JP2005309782A (en) | Image processing device | |
| JP3452188B2 (en) | Tracking method of feature points in 2D video | |
| CN116030450A (en) | Checkerboard corner recognition method, device, equipment and medium | |
| CN113870190A (en) | Vertical line detection method, device, equipment and storage medium | |
| JPH0154751B2 (en) | ||
| CN118072191B (en) | A real-time satellite pose estimation method based on perspective N-point geometry algorithm | |
| JPS6228882A (en) | Method for correcting angular deviation of image | |
| Kawakami et al. | A robust method for detecting planar regions based on random sampling using distributions of feature points | |
| JP2620094B2 (en) | How to measure figure patterns | |
| US10395378B2 (en) | Detecting periodic patterns and aperture problems for motion estimation |