JP2009020867A - Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium - Google Patents

Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium Download PDF

Info

Publication number
JP2009020867A
JP2009020867A JP2008127532A JP2008127532A JP2009020867A JP 2009020867 A JP2009020867 A JP 2009020867A JP 2008127532 A JP2008127532 A JP 2008127532A JP 2008127532 A JP2008127532 A JP 2008127532A JP 2009020867 A JP2009020867 A JP 2009020867A
Authority
JP
Japan
Prior art keywords
feature points
feature
threshold
computer
pixels
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
JP2008127532A
Other languages
Japanese (ja)
Other versions
JP4340711B2 (en
Inventor
Daiki Yoshino
大樹 芳野
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2008127532A priority Critical patent/JP4340711B2/en
Priority to CN2008101259338A priority patent/CN101324928B/en
Priority to US12/138,268 priority patent/US8121414B2/en
Publication of JP2009020867A publication Critical patent/JP2009020867A/en
Application granted granted Critical
Publication of JP4340711B2 publication Critical patent/JP4340711B2/en
Priority to US13/354,937 priority patent/US8798371B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method capable of stably performing an image similarity determination without degeading determination accuracy by a processing apparatus reduced in cost and scale, and to provide an image processing apparatus, an image forming apparatus, a computer program, and a recording medium. <P>SOLUTION: A cnt value is read as an address so as to determine whether an lbnum[cnt], which is the number of counted pixels of an object label, is lower than a first threshold value (S201). When the lbnum[cnt] is determined to be lower than the first threshold (YES in S201), data including the ibnum[cnt] is abandoned (S202). Then, the first threshold is changed. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像の類似を判定する画像処理方法、該方法を実行する画像処理装置、画像形成装置、前記方法を前記画像処理装置に実行させるためのコンピュータプログラム及び当該コンピュータプログラムを記録した記録媒体において、特に特徴点の少ない画像の類似判定の精度を向上させることができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体に関する。   The present invention relates to an image processing method for determining similarity between images, an image processing apparatus for executing the method, an image forming apparatus, a computer program for causing the image processing apparatus to execute the method, and a recording medium on which the computer program is recorded. In particular, the present invention relates to an image processing method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium that can improve the accuracy of similarity determination of an image with few feature points.

従来、スキャナで原稿画像を読み取って得られた入力画像データと事前に登録されている登録画像とを比較して両者の類似度を判定し、判定結果に基づいて入力画像データに対する処理(例えば複写、送信、編集等)を制御する技術が用いられている。   Conventionally, input image data obtained by reading a document image with a scanner is compared with a registered image registered in advance to determine the degree of similarity between the two, and processing on the input image data (for example, copying) , Transmission, editing, etc.) are used.

類似度の判定方法としては、例えば、OCR(Optical Character Reader)などで画像からキーワードを抽出してキーワードによるマッチングを行う方法や、対象画像を罫線のある帳票画像に限定し、罫線の特徴によるマッチングを行う方法が知られている(例えば、特許文献1)。   As a method for determining the similarity, for example, a keyword is extracted from an image using an OCR (Optical Character Reader) or the like and matching is performed based on the keyword, or the target image is limited to a form image having a ruled line, and matching is performed based on the characteristic of the ruled line. The method of performing is known (for example, patent document 1).

また、特許文献2には、デジタル画像から複数の特徴点を抽出し、抽出した各特徴点に対して局所的な特徴点の集合を決定し、決定した各集合から特徴点の部分集合を選択し、選択した各部分集合を特徴付ける量として、部分集合中の特徴点の複数の組み合わせに基づいて、幾何学的変換に対する不変量をそれぞれ求め、求めた各不変量を組み合わせて特徴量を計算し、計算した特徴量に基づいてデータベース中の文書・画像に投票することにより、上記デジタル画像に対応する文書・画像を検索する技術が開示されている(例えば、特許文献2)。
特開平8−255236号公報 国際公開第2006/092957号パンフレット
In Patent Document 2, a plurality of feature points are extracted from a digital image, a set of local feature points is determined for each extracted feature point, and a subset of feature points is selected from each determined set Then, as an amount to characterize each selected subset, invariants for geometric transformation are obtained based on a plurality of combinations of feature points in the subset, and feature amounts are calculated by combining the obtained invariants. A technique for searching for a document / image corresponding to the digital image by voting to a document / image in a database based on the calculated feature amount is disclosed (for example, Patent Document 2).
JP-A-8-255236 International Publication No. 2006/092957 Pamphlet

図24は連結成分の重心を示す説明図、図25は重心を特徴点とする例を示す説明図である。連結成分の重心はノイズの影響を受け難く対象画像が回転又は平行移動したときでもその位置が変化しないため、重心を特徴点として特徴量を算出し、算出した特徴量に基づいて画像の類似判定を行う前記画像処理方法は、外乱に強く高精度な画像の類似判定を実現できるとされている(図24参照)。   FIG. 24 is an explanatory diagram showing the center of gravity of the connected component, and FIG. 25 is an explanatory diagram showing an example using the center of gravity as a feature point. The centroid of the connected component is not easily affected by noise, and its position does not change even when the target image rotates or translates. It is said that the image processing method for performing image similarity can realize a high-accuracy image similarity determination (see FIG. 24).

しかし、当該方法では、入力される原稿によって算出される重心数が少なくなるため、特徴点数が少なくなる場合がある。また、少ない特徴点を用いて特徴量を算出すると、算出に必要となる特徴点が十分確保できないため、算出された特徴量自体の精度が低下するという問題がある。   However, in this method, since the number of centroids calculated based on the input document is reduced, the number of feature points may be reduced. In addition, if the feature amount is calculated using a small number of feature points, the feature points necessary for the calculation cannot be secured sufficiently, and there is a problem that the accuracy of the calculated feature amount itself is lowered.

本発明はかかる事情に鑑みてなされたものであり、その目的とするところは、画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の個数が第1の閾値以上である場合、特定した画素領域から抽出した特徴点に基づいて算出した特徴量を用いて画像同士の類似判定を行う際に、抽出した特徴点の点数が第2の閾値以下である場合に前記第1の閾値を変更することにより、画像の類似判定を判定精度を低下させることなく安定して処理を行うことができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to specify a plurality of pixel regions adjacent to each other that are determined to have the same pixel value, and to determine the number of pixels in the specified pixel region. Is equal to or greater than the first threshold value, when performing similarity determination between images using the feature amount calculated based on the feature points extracted from the specified pixel region, the score of the extracted feature points is the second threshold value. An image processing method, an image processing apparatus, an image forming apparatus, and a computer capable of stably processing image similarity determination without reducing the determination accuracy by changing the first threshold when To provide a program and a recording medium.

また、本発明の他の目的は、画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれの第1の閾値以上であるか否かを判断し、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数し、計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて算出した特徴量で画像同士の類似判定を行うことにより、画像の類似判定を判定精度を低下させることなく安定して処理を行うことができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   Another object of the present invention is to specify a plurality of adjacent pixel regions that are determined to have the same pixel value, and whether or not the number of pixels in the specified pixel region is equal to or greater than a first threshold value. When determining a plurality of different first threshold values, determining whether or not each of the first threshold values is equal to or greater than the first threshold value, and determining that the threshold value is equal to or greater than the first threshold value, In addition to calculating points, the number of feature points is counted for each of a plurality of different first thresholds, and the images are calculated using feature amounts calculated based on the feature points extracted from the pixel area where the number of counted feature points is the largest. An image processing method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium capable of stably processing image similarity determination without reducing determination accuracy by performing similarity determination of It is in.

また、本発明の他の目的は、原稿画像を分割し、その分割した領域に対して各々で連結領域の画素数に対する下限値、即ち、第1の閾値を設定する構成とすることにより、原稿画像の上下左右端領域のノイズを重心として算出されないような閾値の設定が可能となるだけでなく、原稿画像の重要な領域(例えば、中央の領域など)においても、より小さな連結領域に対して重心算出をするような閾値設定が可能となり、精度の高い重心を十分数確保できる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   Another object of the present invention is to divide a document image and to set a lower limit for the number of pixels in the connected region, that is, a first threshold value for each of the divided regions. Not only is it possible to set a threshold value so that the noise in the upper, lower, left and right edge areas of the image is not calculated as the center of gravity, but also in the important areas (for example, the central area) of the original image, An object of the present invention is to provide an image processing method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium that can set a threshold value for calculating the center of gravity and can secure a sufficient number of high-precision center of gravity.

また、本発明の他の目的は、特徴点を選択する領域を生成し、生成した領域内に位置する特徴点に基づいて算出した特徴量を用いて画像同士の類似判定を行うと共に、抽出した特徴点の点数が第2の閾値以下である場合に前記特徴点を選択する領域を変更することにより、画像の類似判定を判定精度を低下させることなく安定して処理を行うことができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   Another object of the present invention is to generate a region for selecting feature points, perform similarity determination between images using feature amounts calculated based on feature points located in the generated region, and extract them. Image processing capable of stably performing image similarity determination without reducing determination accuracy by changing the region for selecting the feature point when the number of feature points is equal to or less than a second threshold value A method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium are provided.

また、本発明の他の目的は、特徴点を抽出する際、所定の範囲(画素ブロックライン)で特徴点の点数を計数しておくことにより、注目特徴点の処理毎に特徴点を読み出すことなく、マスクサイズまたは参照ブロック数を変更することができるため、近傍特徴点の抽出を何度も行う必要がなくなり、処理の容易化・高速化を図ることができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   Another object of the present invention is to read out feature points for each processing of feature points of interest by counting the number of feature points within a predetermined range (pixel block line) when extracting feature points. Since the mask size or the number of reference blocks can be changed, there is no need to repeatedly extract neighboring feature points, and the image processing method, the image processing apparatus, and the like, which can facilitate and speed up the processing, To provide an image forming apparatus, a computer program, and a recording medium.

また、本発明の他の目的は、画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の個数が第1の閾値以上である場合、特定した画素領域から抽出した特徴点のうち、設定した領域内に位置するものに基づいて算出した特徴量を用いて画像同士の類似判定を行う際に、抽出した特徴点の点数が第2の閾値以下である場合に前記第1の閾値、または前記第1の閾値並びに前記設定した領域の範囲を変更することにより、画像の類似判定を判定精度を低下させることなく安定して処理を行うことができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   Another object of the present invention is to specify a plurality of adjacent pixel regions that are determined to have the same pixel value, and specify when the number of pixels in the specified pixel region is equal to or greater than a first threshold value. When performing similarity determination between images using a feature amount calculated based on a feature point extracted from a pixel area extracted from the extracted pixel area, the number of extracted feature points is a second threshold value. By changing the first threshold value or the first threshold value and the range of the set area when the following is true, it is possible to stably perform the image similarity determination without reducing the determination accuracy. An image processing method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium are provided.

また、本発明の他の目的は、画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれの第1の閾値以上であるか否かを判断し、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数し、計数した特徴点の数が最多となる画素領域から抽出した特徴点のうち、設定した領域の範囲内に位置する最多点数の特徴点に基づいて算出した特徴量で画像同士の類似判定を行うことにより、画像の類似判定を判定精度を低下させることなく安定して処理を行うことができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   Another object of the present invention is to specify a plurality of adjacent pixel regions that are determined to have the same pixel value, and whether or not the number of pixels in the specified pixel region is equal to or greater than a first threshold value. When determining a plurality of different first threshold values, determining whether or not each of the first threshold values is equal to or greater than the first threshold value, and determining that the threshold value is equal to or greater than the first threshold value, While calculating points, the number of feature points is counted for each of a plurality of different first threshold values, and the feature points extracted from the pixel region having the largest number of feature points are within the set region range. An image processing method capable of stably processing image similarity determination without reducing determination accuracy by performing similarity determination between images with feature amounts calculated based on the feature points of the largest number of positions, Image processing apparatus, image forming apparatus, computer And to provide a program and a recording medium.

また、本発明の他の目的は、特徴点を抽出する領域を一又は複数の画素で構成する画素ブロックで定めることにより、当該画素ブロックのサイズ又はブロック数を変更することで前記特徴点を抽出する領域を変更することができる画像処理方法、画像処理装置及び画像形成装置を提供することにある。   Another object of the present invention is to extract a feature point by changing a size or the number of blocks of the pixel block by defining a region from which the feature point is extracted by a pixel block composed of one or a plurality of pixels. An object of the present invention is to provide an image processing method, an image processing apparatus, and an image forming apparatus that can change a region to be processed.

上記課題を解決するために本発明に係る画像処理方法は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、特定した画素領域の画素の個数を計数し、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断し、特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数し、計数した特徴点の数が第2の閾値以下であるか否かを判定し、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更することを特徴とする。   In order to solve the above-described problem, an image processing method according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and coordinates of the pixels of the specified pixel region. In an image processing method for extracting feature points of a pixel area based on a value, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount , Counting the number of pixels in the specified pixel region, determining whether the number of pixels in the specified pixel region is equal to or greater than a first threshold, and determining the number of pixels in the specified pixel region to be the first threshold When it is determined as above, the feature points of the pixel region are calculated, the number of feature points is counted, it is determined whether or not the counted number of feature points is equal to or less than a second threshold, and the counted features When it is determined that the number of points exceeds the second threshold The feature amount is calculated based on the feature points extracted from the pixel region, and the first threshold value is changed when it is determined that the number of counted feature points is equal to or less than a second threshold value. .

また、本発明に係る画像処理方法は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、特定した画素領域の画素の個数を計数し、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断し、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数し、計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出することを特徴とする。   In addition, the image processing method according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In an image processing method for extracting feature points of a pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount, the specified pixel region When determining whether or not the number of pixels in the specified pixel region is greater than or equal to the first threshold, a plurality of different first thresholds are set, each of which is greater than or equal to the first threshold. If it is determined whether or not it is greater than or equal to the first threshold, the feature points of the pixel area are calculated, and the number of feature points is counted for each of a plurality of different first thresholds. Extracted from the pixel region that has the largest number of feature points. And calculating a feature quantity based on the feature points.

また、本発明に係る画像処理方法は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、原稿画像の領域を複数に分割し、分割された各々の領域に対して第1の閾値を設定し、分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数し、分割された領域において特定した画素領域の画素の個数が、分割された領域における第1の閾値以上であるか否かを判断し、分割された領域において特定した画素領域の画素の個数が前記分割された領域における第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数し、計数した特徴点の数が第2の閾値以下であるか否かを判定し、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更することを特徴とする。   In addition, the image processing method according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In an image processing method for extracting feature points of a pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount, a region of an original image The first threshold value is set for each divided area, the number of pixels in the specified pixel area is counted in each divided area, and specified in the divided area. It is determined whether the number of pixels in the pixel area is equal to or greater than a first threshold in the divided area, and the number of pixels in the pixel area specified in the divided area is the first in the divided area. Above threshold If it is determined, the feature points of the pixel region are calculated, the number of feature points is counted, it is determined whether or not the counted number of feature points is equal to or less than a second threshold, and the number of feature points counted Is calculated based on the feature points extracted from the pixel region, and the number of counted feature points is determined to be less than or equal to the second threshold The first threshold value is changed.

また、本発明に係る画像処理方法は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定し、決定した近傍の特徴点の点数を計数し、計数した特徴点の点数が第2の閾値以下であるか否かを判定し、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更することを特徴とする。   In addition, the image processing method according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. Extracted feature points in an image processing method that extracts feature points of a pixel area, calculates feature amounts indicating image features based on the extracted feature points, and performs similarity determination between images based on the calculated feature amounts The feature point of the neighborhood located in the peripheral region of is determined, the number of feature points of the decided neighborhood is counted, it is determined whether or not the score of the feature point is less than or equal to the second threshold value, and counted When it is determined that the number of feature points exceeds the second threshold, the feature amount is calculated based on the neighboring feature points, and when it is determined that the counted number is equal to or less than the second threshold, the peripheral region The range is changed.

また、本発明に係る画像処理方法は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、特徴点を抽出する際、所定の範囲内で特徴点の点数を計数し、計数した特徴点から、処理対象となる領域に含まれる特徴点を抽出し、抽出した特徴点の点数が第3の閾値より小さいか否かを判定し、抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて前記特徴量を算出し、抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更することを特徴とする。   In addition, the image processing method according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. Extract feature points in an image processing method that extracts feature points of a pixel area, calculates feature amounts indicating image features based on the extracted feature points, and determines similarity between images based on the calculated feature amounts In this case, the number of feature points within a predetermined range is counted, and feature points included in the region to be processed are extracted from the counted feature points, and whether the score of the extracted feature points is smaller than the third threshold value If the number of extracted feature points is determined to be greater than or equal to the third threshold value, the feature amount is calculated based on neighboring feature points located in the peripheral region of the extracted feature points. , It is determined that the extracted score is smaller than the third threshold value. If and changes the range of the peripheral region.

また、本発明に係る画像処理方法は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、特定した画素領域の画素の個数を計数し、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断し、特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出し、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定し、決定した近傍の特徴点の点数を計数し、計数した特徴点の点数が第2の閾値以下であるか否かを判定し、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または、前記第1の閾値並びに前記周辺領域の範囲を変更することを特徴とする。   In addition, the image processing method according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In an image processing method for extracting feature points of a pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount, the specified pixel region The number of pixels in the specified pixel region is counted to determine whether or not the number of pixels in the specified pixel region is equal to or greater than the first threshold, and the number of pixels in the specified pixel region is determined to be equal to or greater than the first threshold. In this case, the feature points of the pixel region are extracted, neighboring feature points located in the surrounding region of the extracted feature points are determined, the number of feature points in the determined neighborhood is counted, and the score of the counted feature points is Determine whether it is below the second threshold and count When it is determined that the number of feature points exceeds the second threshold, the feature amount is calculated based on the neighboring feature points, and it is determined that the counted number of feature points is equal to or less than the second threshold Changes the first threshold value, or the first threshold value and the range of the peripheral region.

また、本発明に係る画像処理方法は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、特定した画素領域の画素の個数を計数し、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断し、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数し、計数した特徴点の数が最多となる画素領域の特徴点を抽出し、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定し、決定した近傍の特徴点の点数を計数し、計数した特徴点の点数が第2の閾値以下であるか否かを判定し、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更することを特徴とする。   In addition, the image processing method according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In an image processing method for extracting feature points of a pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount, the specified pixel region When determining whether or not the number of pixels in the specified pixel region is greater than or equal to the first threshold, a plurality of different first thresholds are set, each of which is greater than or equal to the first threshold. If it is determined whether or not it is greater than or equal to the first threshold, the feature points of the pixel area are calculated, and the number of feature points is counted for each of a plurality of different first thresholds. The feature points of the pixel area that has the largest number of feature points The feature points in the vicinity of the extracted feature points are determined, and the number of feature points in the determined neighborhood is counted, and whether or not the scored feature points are equal to or less than the second threshold If the number of feature points counted is determined to exceed a second threshold, the feature amount is calculated based on the neighboring feature points, and the number of counted feature points is less than or equal to a second threshold. If it is determined that there is, the range of the surrounding area is changed.

また、本発明に係る画像処理方法は、前記周辺領域は、2値の画像の一又は複数の画素からなる画素ブロックで構成され、前記周辺領域の範囲の変更は、前記画素ブロックのサイズ又はブロック数を変更することにより行うことを特徴とする。   Further, in the image processing method according to the present invention, the peripheral area is configured by a pixel block including one or a plurality of pixels of a binary image, and the change of the range of the peripheral area is the size or block of the pixel block. It is characterized by being performed by changing the number.

また、本発明に係る画像処理装置は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、特定した画素領域の画素の個数を計数する手段と、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する手段と、特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数する手段と、計数した特徴点の数が第2の閾値以下であるか否かを判定する手段とを備え、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更するようにしてあることを特徴とする。   In addition, the image processing apparatus according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region, In the image processing apparatus that extracts feature points of the pixel area, calculates a feature amount indicating the feature of the image based on the extracted feature point, and performs similarity determination between the images based on the calculated feature amount, the specified pixel region Means for counting the number of pixels, means for determining whether the number of pixels in the specified pixel area is equal to or greater than a first threshold, and the number of pixels in the identified pixel area is greater than or equal to the first threshold A means for calculating the feature points of the pixel region and counting the number of feature points, and a means for determining whether or not the counted number of feature points is equal to or less than a second threshold. And the number of feature points counted has a second threshold value. If it is determined that the number of feature points is less than or equal to a second threshold value, the first threshold value is changed. It is made to do so.

また、本発明に係る画像処理装置は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、特定した画素領域の画素の個数を計数する手段と、特定した画素領域の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断する判断手段と、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数する手段とを備え、計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出するようにしてあることを特徴とする。   In addition, the image processing apparatus according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region, In the image processing apparatus that extracts feature points of the pixel area, calculates a feature amount indicating the feature of the image based on the extracted feature point, and performs similarity determination between the images based on the calculated feature amount, the specified pixel region When determining whether or not the number of pixels is equal to or more than the first threshold value, a plurality of different first threshold values are set, each of which is greater than or equal to the first threshold value. A determination means for determining whether or not there is, and when it is determined that the value is equal to or greater than the first threshold value, the feature points of the pixel region are calculated and the number of feature points is counted for each of a plurality of different first threshold values The number of feature points counted is Characterized in that are to calculate the characteristic amount based on the feature points extracted from the pixel region to be a multi.

また、本発明に係る画像処理装置は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、原稿画像の領域を複数に分割する手段と、分割した各々の領域に対して第1の閾値を設定する手段と、分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数する手段と、分割された領域において特定した画素領域の画素の個数が、分割された領域における第1の閾値以上であるか否かを判断する手段と、分割された領域において特定した画素領域の画素の個数が前記分割された領域における第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数する手段と、計数した特徴点の数が第2の閾値以下であるか否かを判定する手段とを備え、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更するようにしてあることを特徴とする。   In addition, the image processing apparatus according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region, In an image processing apparatus that extracts feature points of a pixel area, calculates a feature amount indicating an image feature based on the extracted feature point, and performs similarity determination between images based on the calculated feature amount, a region of an original image Divided into a plurality of areas, means for setting a first threshold for each divided area, means for counting the number of pixels in the specified pixel area in each divided area, and Means for determining whether the number of pixels in the pixel area specified in the divided area is equal to or greater than a first threshold value in the divided area; and the number of pixels in the pixel area specified in the divided area Was Means for calculating the feature points of the pixel region and counting the number of feature points, and whether the counted number of feature points is less than or equal to the second threshold value Means for determining whether or not the number of feature points counted exceeds a second threshold value, the feature amount is calculated based on the feature points extracted from the pixel region, and When it is determined that the number is equal to or smaller than the second threshold value, the first threshold value is changed.

また、本発明に係る画像処理装置は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定する手段と、決定した近傍の特徴点の点数を計数する手段と、計数した特徴点の点数が第2の閾値以下であるか否かを判定する手段とを備え、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更するようにしてあることを特徴とする。   In addition, the image processing apparatus according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region, Extracted feature points in an image processing apparatus that extracts feature points of a pixel area, calculates feature amounts indicating image features based on the extracted feature points, and performs similarity determination between images based on the calculated feature amounts Means for determining neighboring feature points located in the peripheral region of the image, means for counting the number of feature points in the vicinity, and determining whether the score of the counted feature points is equal to or less than a second threshold value And calculating the feature amount based on the neighboring feature points, and the score of the counted feature points is the second threshold value when the number of feature points counted is determined to exceed the second threshold value. If it is determined that: Characterized in that a are to be changed.

また、本発明に係る画像処理装置は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、特徴点を抽出する際、所定の範囲内で特徴点数を計数する手段と、計数した特徴点から、処理対象となる領域に含まれる特徴点を抽出する手段と、抽出した特徴点の点数が第3の閾値より小さいか否かを判定する手段とを備え、抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて前記特徴量を算出し、抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更するようにしてあることを特徴とする。   In addition, the image processing apparatus according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region, Extracting feature points in a pixel area, calculating feature amounts indicating image features based on the extracted feature points, and extracting feature points in an image processing apparatus that determines similarity between images based on the calculated feature amounts In this case, the means for counting the number of feature points within a predetermined range, the means for extracting the feature points included in the region to be processed from the counted feature points, and the score of the extracted feature points from the third threshold Means for determining whether or not the number of extracted feature points is greater than or equal to a third threshold value, based on neighboring feature points located in the peripheral region of the extracted feature points The feature amount is calculated, and the number of points extracted is Characterized in that when it is determined that less than the threshold value of are so as to change the range of the peripheral region.

また、本発明に係る画像処理装置は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、特定した画素領域の画素の個数を計数する手段と、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する手段と、特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出する手段と、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定する手段と、決定した近傍の特徴点の点数を計数する手段と、計数した特徴点の点数が第2の閾値以下であるか否かを判定する手段とを備え、計数した特徴点の点数が前記第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または前記第1の閾値並びに前記周辺領域の範囲を変更するようにしてあることを特徴とする。   In addition, the image processing apparatus according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region, In the image processing apparatus that extracts feature points of the pixel area, calculates a feature amount indicating the feature of the image based on the extracted feature point, and performs similarity determination between the images based on the calculated feature amount, the specified pixel region Means for counting the number of pixels, means for determining whether the number of pixels in the specified pixel area is equal to or greater than a first threshold, and the number of pixels in the identified pixel area is greater than or equal to the first threshold. When it is determined that there is a means for extracting feature points of the pixel area, a means for determining neighboring feature points located in a peripheral area of the extracted feature points, and counting the number of feature points in the determined neighborhood Means and the number of feature points counted Means for determining whether or not the number of feature points counted is greater than the second threshold, the feature amount is calculated based on the neighboring feature points, The first threshold value, or the first threshold value and the range of the surrounding area are changed when it is determined that the number of feature points counted is equal to or less than the second threshold value. .

また、本発明に係る画像処理装置は、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、特定した画素領域の画素の個数を計数する手段と、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断する判断手段と、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値に特徴点の数を計数する手段と、計数した特徴点の数が最多となる画素領域の特徴点を抽出する手段と、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定する手段と、決定した近傍の特徴点の点数を計数する手段と、計数した特徴点の点数が第2の閾値以下であるか否かを判定する手段とを備え、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更するようにしてあることを特徴とする。   In addition, the image processing apparatus according to the present invention specifies a plurality of pixel regions adjacent to pixels that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region, In the image processing apparatus that extracts feature points of the pixel area, calculates a feature amount indicating the feature of the image based on the extracted feature point, and performs similarity determination between the images based on the calculated feature amount, the specified pixel region The means for counting the number of pixels and a plurality of different first threshold values are set when determining whether or not the number of pixels in the specified pixel region is equal to or greater than the first threshold value. When it is determined that it is equal to or greater than the first threshold value, the feature point of the pixel region is calculated and the number of feature points is set to a plurality of different first threshold values. The counting means and the number of feature points counted are Means for extracting the feature points of the pixel area to be, means for determining neighboring feature points located in the peripheral area of the extracted feature points, means for counting the number of feature points in the determined neighborhood, and counting Means for determining whether or not the number of feature points is equal to or less than a second threshold, and when it is determined that the counted number of feature points exceeds the second threshold, based on the nearby feature points The feature amount is calculated, and when it is determined that the number of counted feature points is equal to or smaller than the second threshold value, the range of the peripheral region is changed.

また、本発明に係る画像処理装置は、前記周辺領域は、2値の画像の一又は複数の画素からなる画素ブロックで構成され、前記周辺領域の範囲の変更は、前記画素ブロックのサイズ又はブロック数を変更することにより行うようにしてあることを特徴とする。   In the image processing apparatus according to the present invention, the peripheral area is configured by a pixel block including one or a plurality of pixels of a binary image, and the change of the range of the peripheral area is the size or block of the pixel block. It is characterized by being performed by changing the number.

また、本発明に係る画像形成装置は、本発明に係る画像処理装置と、該画像処理装置で処理された画像の形成を行う画像形成手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes the image processing apparatus according to the present invention and an image forming unit that forms an image processed by the image processing apparatus.

また、本発明に係るコンピュータプログラムは、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、コンピュータに、特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップとを実行させることを特徴とする。   In addition, the computer program according to the present invention causes a computer to specify a plurality of adjacent pixel regions that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In a computer program for extracting feature points of the pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount. A step of counting the number of pixels in the specified pixel region; a step of causing the computer to determine whether the number of pixels in the specified pixel region is equal to or greater than a first threshold; and When it is determined that the number of pixels is equal to or greater than the first threshold, the feature points of the pixel region are calculated and the number of feature points is counted. And causing the computer to determine whether or not the counted number of feature points is less than or equal to a second threshold, and if the computer determines that the number of counted feature points exceeds the second threshold Calculating the feature amount based on the feature points extracted from the pixel area, and changing the first threshold value when the computer determines that the number of feature points counted is equal to or less than a second threshold value. And executing the step.

また、本発明に係るコンピュータプログラムは、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出させるステップとを実行させることを特徴とする。   In addition, the computer program according to the present invention causes a computer to specify a plurality of adjacent pixel regions that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In a computer program for extracting feature points of the pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount. A step of counting the number of pixels in the specified pixel region, and when the computer determines whether or not the number of pixels in the specified pixel region is equal to or greater than the first threshold, a plurality of different first threshold values are set. A step of setting and determining whether or not each is greater than or equal to a first threshold, and if the computer determines that the threshold is greater than or equal to the first threshold, Calculating a feature point and counting the number of feature points for each of a plurality of different first threshold values, and causing the computer to perform a feature based on the feature point extracted from the pixel region having the largest number of counted feature points And a step of calculating a quantity.

また、本発明に係るコンピュータプログラムは、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、コンピュータに、原稿画像の領域を複数に分割させるステップと、コンピュータに、分割された各々の領域に対して第1の閾値を設定させるステップと、コンピュータに、分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が、分割された領域における第1の閾値以上であるか否かを判断させるステップと、コンピュータに、分割された領域において特定した画素領域の画素の個数が前記設定された第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップとを実行させることを特徴とする。   In addition, the computer program according to the present invention causes a computer to specify a plurality of adjacent pixel regions that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In a computer program for extracting feature points of the pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount. A step of dividing the region of the original image into a plurality of steps, a step of causing the computer to set a first threshold value for each of the divided regions, and a pixel region identified by the computer in each of the divided regions A step of counting the number of pixels in the divided area, and causing the computer to calculate the number of pixels in the divided area. And determining whether the number of pixels in the pixel area specified in the divided area is equal to or greater than the set first threshold value. Calculating feature points and counting the number of feature points, causing the computer to determine whether or not the counted number of feature points is equal to or less than a second threshold, and causing the computer to count the feature points The number of feature points is calculated based on the feature points extracted from the pixel area when the number of feature points exceeds the second threshold, and the computer counts the number of feature points below the second threshold. If it is determined that there is, the step of changing the first threshold value is executed.

また、本発明に係るコンピュータプログラムは、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップとを実行させることを特徴とする。   In addition, the computer program according to the present invention causes a computer to specify a plurality of adjacent pixel regions that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In a computer program for extracting feature points of the pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount. A step of determining neighboring feature points located in the peripheral region of the extracted feature points, a step of causing a computer to count the number of feature points in the determined neighborhood, and a step of causing the computer to determine the number of feature points counted. A step for determining whether or not the threshold value is equal to or less than a threshold value of 2, and a case where the computer determines that the number of feature points counted exceeds a second threshold value Calculating the feature amount based on the nearby feature points, and causing the computer to change the range of the surrounding area when it is determined that the number of counted feature points is equal to or less than a second threshold value. It is made to perform.

また、本発明に係るコンピュータプログラムは、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、コンピュータに、特徴点を抽出する際、所定の範囲内で特徴点数を計数させるステップと、コンピュータに、抽出した特徴点の点数が第3の閾値より小さいか否かを判定させるステップと、コンピュータに、抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて、前記特徴量を算出させるステップと、コンピュータに、抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更するステップとを実行させることを特徴とする。   In addition, the computer program according to the present invention causes a computer to specify a plurality of adjacent pixel regions that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In a computer program for extracting feature points of the pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount. When extracting feature points, the step of counting the number of feature points within a predetermined range, the step of causing the computer to determine whether the number of feature points extracted is smaller than a third threshold, and the computer extracting If it is determined that the number of feature points obtained is greater than or equal to the third threshold value, the feature points are determined based on the feature points in the vicinity located in the peripheral region of the extracted feature points. A step of calculating the amount, the computer, the extracted number is when it is determined to be smaller than the third threshold value, characterized in that and a step of changing the range of the peripheral region.

また、本発明に係るコンピュータプログラムは、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出させるステップと、コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の点数が前記第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または前記第1の閾値並びに前記周辺領域の範囲を変更させるステップとを実行させることを特徴とする。   In addition, the computer program according to the present invention causes a computer to specify a plurality of adjacent pixel regions that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In a computer program for extracting feature points of the pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount. A step of counting the number of pixels in the specified pixel region; a step of causing the computer to determine whether the number of pixels in the specified pixel region is equal to or greater than a first threshold; and If the number of pixels is determined to be greater than or equal to the first threshold, a feature point of the pixel region is extracted, and the computer extracts A step of determining neighboring feature points located in the peripheral area of the feature point; a step of causing the computer to count the number of points of the determined neighboring feature point; A step of determining whether or not the number of feature points counted is greater than the second threshold, and causing the computer to calculate the feature amount based on the nearby feature points when determined that the number of feature points exceeds the second threshold; And causing the computer to execute the step of changing the first threshold value or the first threshold value and the range of the surrounding area when it is determined that the number of feature points counted is equal to or less than the second threshold value. It is characterized by that.

また、本発明に係るコンピュータプログラムは、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が最多となる画素領域の特徴点を抽出させるステップと、コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、コンピュータに、決定した近傍の特徴点の点数させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップとを実行させることを特徴とする。   In addition, the computer program according to the present invention causes a computer to specify a plurality of adjacent pixel regions that are determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel region. In a computer program for extracting feature points of the pixel area, calculating a feature amount indicating an image feature based on the extracted feature point, and determining similarity between images based on the calculated feature amount. A step of counting the number of pixels in the specified pixel region, and when the computer determines whether or not the number of pixels in the specified pixel region is equal to or greater than the first threshold, a plurality of different first threshold values are set. A step of setting and determining whether or not each is greater than or equal to a first threshold, and if the computer determines that the threshold is greater than or equal to the first threshold, Calculating feature points, counting the number of feature points for each of a plurality of different first thresholds, and causing the computer to extract feature points of a pixel region having the largest number of feature points counted; A step of causing a computer to determine neighboring feature points located within the peripheral region of the extracted feature points; a step of causing the computer to score the number of feature points in the neighborhood; and A step of determining whether or not the threshold value is equal to or less than a threshold value of 2, and causing the computer to calculate the feature amount based on the neighboring feature points when it is determined that the number of counted feature points exceeds the second threshold value And a step of causing the computer to change the range of the peripheral area when it is determined that the counted number of feature points is equal to or less than the second threshold value. It is characterized in.

また、本発明に係る記録媒体は、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、コンピュータに、特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップとを実行させるコンピュータプログラムを記録してあることを特徴とする。   Further, the recording medium according to the present invention causes a computer to specify a plurality of pixel areas adjacent to pixels determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel area. A computer program for extracting feature points of the pixel region, calculating a feature amount indicating the feature of the image based on the extracted feature point, and determining similarity between the images based on the calculated feature amount; In a recording medium readable by a computer, a step of causing the computer to count the number of pixels in the specified pixel region, and whether the number of pixels in the specified pixel region is equal to or greater than a first threshold value And when the computer determines that the number of pixels in the specified pixel area is equal to or greater than the first threshold, the feature point of the pixel area is determined. And counting the number of feature points, causing the computer to determine whether the counted number of feature points is less than or equal to a second threshold, and causing the computer to determine the number of feature points If it is determined that the threshold value of 2 is exceeded, the step of calculating the feature amount based on the feature points extracted from the pixel region and the computer determines that the number of feature points counted is equal to or less than the second threshold value. In this case, a computer program for executing the step of changing the first threshold value is recorded.

また、本発明に係る記録媒体は、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出させるステップとを実行させるコンピュータプログラムを記録してあることを特徴とする。   Further, the recording medium according to the present invention causes a computer to specify a plurality of pixel areas adjacent to pixels determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel area. A computer program for extracting feature points of the pixel region, calculating a feature amount indicating the feature of the image based on the extracted feature point, and determining similarity between the images based on the calculated feature amount; In a recording medium readable by a computer, a step of causing the computer to count the number of pixels in the specified pixel region, and whether the number of pixels in the specified pixel region is equal to or greater than a first threshold value When determining whether to set a plurality of different first threshold values, and determining whether or not each of the first threshold values is equal to or greater than the first threshold value, If it is determined that the number of feature points of the pixel region is calculated, a step of counting the number of feature points for each of a plurality of different first threshold values, and a computer having the largest number of feature points counted. The computer program which performs the step which calculates a feature-value based on the feature point extracted from the said pixel area is recorded.

また、本発明に係る記録媒体は、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、コンピュータに、原稿画像の領域を複数に分割させるステップと、コンピュータに、分割された各々の領域に対して第1の閾値を設定させるステップと、コンピュータに、分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、分割された領域において特定した画素領域の画素の個数が、前記分割された領域における第1の閾値以上であるか否かを判断させるステップと、コンピュータに、分割された領域において特定した画素領域の画素の個数が前記分割された領域における第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップとを実行させるコンピュータプログラムを記録してあることを特徴とする。   Further, the recording medium according to the present invention causes a computer to specify a plurality of pixel areas adjacent to pixels determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel area. A computer program for extracting feature points of the pixel region, calculating a feature amount indicating the feature of the image based on the extracted feature point, and determining similarity between the images based on the calculated feature amount; In a recording medium readable by a computer, the step of causing the computer to divide the region of the original image into a plurality of steps, the step of causing the computer to set a first threshold value for each of the divided regions, and the computer Further, in each divided area, a step of counting the number of pixels in the specified pixel area, and a computer Determining whether the number of pixels in the specified pixel area is equal to or greater than a first threshold value in the divided area; and causing the computer to determine the number of pixels in the specified pixel area in the divided area. A step of calculating feature points of the pixel region and counting the number of feature points when determining that the number of feature points is equal to or greater than a first threshold in the divided region; And determining whether or not the number of feature points counted exceeds a second threshold value, the feature amount is calculated based on the feature points extracted from the pixel region. And causing the computer to execute a step of changing the first threshold value when it is determined that the counted number of feature points is equal to or less than the second threshold value. Characterized in that are recording the computer program.

また、本発明に係る記録媒体は、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップとを実行させるコンピュータプログラムを記録してあることを特徴とする。   Further, the recording medium according to the present invention causes a computer to specify a plurality of pixel areas adjacent to pixels determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel area. A computer program for extracting feature points of the pixel region, calculating a feature amount indicating the feature of the image based on the extracted feature point, and determining similarity between the images based on the calculated feature amount; In a recording medium that can be read by a computer, the computer causes the computer to determine neighboring feature points located in the peripheral region of the extracted feature points, and causes the computer to count the number of the feature points in the determined neighborhood. A step, causing the computer to determine whether the score of the counted feature points is equal to or less than a second threshold; and causing the computer to count the feature points If it is determined that the score exceeds the second threshold, the step of calculating the feature amount based on the neighboring feature points and the computer determines that the score of the counted feature points is equal to or less than the second threshold In this case, a computer program for executing the step of changing the range of the peripheral area is recorded.

また、本発明に係る記録媒体は、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、コンピュータに、特徴点を抽出する際、所定の範囲内で特徴点数を計数させるステップと、コンピュータに、計数した特徴点数から、処理対象となる領域に含まれる特徴点を抽出させるステップと、コンピュータに、抽出した特徴点の点数が第3の閾値より小さいか否かを判定させるステップと、コンピュータに、抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて、前記特徴量を算出させるステップと、コンピュータに、抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更させるステップとを実行させるコンピュータプログラムを記録してあることを特徴とする。   Further, the recording medium according to the present invention causes a computer to specify a plurality of pixel areas adjacent to pixels determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel area. A computer program for extracting feature points of the pixel region, calculating a feature amount indicating the feature of the image based on the extracted feature point, and determining similarity between the images based on the calculated feature amount; In a recording medium that can be read by a computer, when extracting feature points, the computer counts the number of feature points within a predetermined range, and the computer counts the number of feature points into an area to be processed. A step of extracting feature points included, a step of causing a computer to determine whether or not the number of extracted feature points is smaller than a third threshold, If the data determines that the number of extracted feature points is equal to or greater than a third threshold, the step of calculating the feature amount based on neighboring feature points located in the peripheral region of the extracted feature points And a computer program for executing the step of changing the range of the peripheral area when it is determined that the extracted score is smaller than the third threshold.

また、本発明に係る記録媒体は、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出させるステップと、コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の点数が前記第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または前記第1の閾値並びに前記周辺領域の範囲を変更させるステップとを実行させるコンピュータプログラムを記録してあることを特徴とする。   Further, the recording medium according to the present invention causes a computer to specify a plurality of pixel areas adjacent to pixels determined to have the same pixel value from a binary image, and based on the coordinate values of the pixels in the specified pixel area. A computer program for extracting feature points of the pixel region, calculating a feature amount indicating the feature of the image based on the extracted feature point, and determining similarity between the images based on the calculated feature amount; In a recording medium readable by a computer, a step of causing the computer to count the number of pixels in the specified pixel region, and whether the number of pixels in the specified pixel region is equal to or greater than a first threshold value Determining whether the number of pixels in the specified pixel area is greater than or equal to the first threshold, and extracting feature points of the pixel area A step of causing the computer to determine neighboring feature points located within the peripheral region of the extracted feature points, a step of causing the computer to count the number of feature points of the determined neighborhood, and A step of determining whether or not the number of feature points is equal to or less than a second threshold; and if the computer determines that the counted number of feature points exceeds the second threshold, based on the neighboring feature points Calculating the feature amount, and if the computer determines that the number of feature points counted is less than or equal to the second threshold value, the first threshold value, or the first threshold value and the surrounding region A computer program for executing the step of changing the range is recorded.

更にまた、本発明に係る記録媒体は、コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、コンピュータに、特定した画素領域の画素の個数を計数させるステップと、コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、コンピュータに、計数した特徴点の数が最多となる画素領域の特徴点を抽出させるステップと、コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップとを実行させるコンピュータプログラムを記録してあることを特徴とする。   Furthermore, the recording medium according to the present invention allows a computer to specify a plurality of adjacent pixel areas that are determined to have the same pixel value from a binary image, and to determine the coordinate value of the pixel of the specified pixel area. A computer program for extracting feature points of the pixel area based on the extracted feature points, calculating a feature amount indicating the feature of the image based on the extracted feature point, and determining similarity between the images based on the calculated feature amount; And having the computer count the number of pixels in the specified pixel area and whether the number of pixels in the specified pixel area is equal to or greater than a first threshold. When determining whether or not, a step of setting a plurality of different first threshold values and determining whether or not each of the first threshold values is equal to or greater than the first threshold value; and If it is determined that the threshold value is equal to or greater than the threshold value, the feature points of the pixel region are calculated and the number of feature points is counted for each of a plurality of different first threshold values. Extracting the feature points of the pixel area to be used, causing the computer to determine neighboring feature points located in the peripheral area of the extracted feature points, and causing the computer to count the number of feature points in the determined neighborhood A step of causing the computer to determine whether the score of the counted feature points is less than or equal to a second threshold; and a case of determining that the score of the counted feature points exceeds the second threshold Is a step of calculating the feature amount based on the nearby feature points, and if the computer determines that the number of feature points counted is equal to or less than a second threshold value. Characterized in that are recorded thereon a computer program for executing the steps of changing the range of the serial peripheral region.

本発明にあっては、特徴点の点数が第2の閾値以下の場合、第1の閾値を変更して画素領域から抽出する特徴点を増やすことにより、特徴量を算出するための特徴点の点数が極端に少なくならないように調整し、類似判定の精度を低下させることなく安定させることができる。   In the present invention, when the number of feature points is equal to or less than the second threshold, the feature points for calculating the feature amount are increased by changing the first threshold and increasing the number of feature points to be extracted from the pixel region. Adjustment can be made so that the score does not become extremely small, and the accuracy of similarity determination can be stabilized without deteriorating.

また、本発明にあっては、複数の異なる第1の閾値に基づいて限定した画素領域から特徴点を抽出し、抽出した特徴点のうち最多点数のものに基づいて特徴量を算出するので、特徴点の点数が極端に少なくならないように調整し、類似判定の精度を低下させることなく安定させることができる。   Further, in the present invention, since feature points are extracted from pixel regions limited based on a plurality of different first threshold values, and feature quantities are calculated based on the largest number of extracted feature points, Adjustment can be made so that the number of feature points does not become extremely small, and it can be stabilized without reducing the accuracy of similarity determination.

また、本発明にあっては、原稿画像を分割し、その分割した領域に対して各々で連結領域の画素数に対する下限値、即ち、第1の閾値を設定する構成とすることにより、原稿画像の上下左右端領域のノイズを重心として算出されないような閾値の設定が可能となるだけでなく、原稿画像の重要な領域(例えば、中央の領域など)においても、より小さな連結領域に対して重心算出をするような閾値設定が可能となり、精度の高い重心を十分数確保できる。   In the present invention, the document image is divided, and a lower limit value for the number of pixels in the connected region, that is, a first threshold value is set for each of the divided regions. It is possible not only to set a threshold value so that the noise in the upper, lower, left and right edge areas of the image is not calculated as the center of gravity, but also in the important area of the document image (for example, the center area) with respect to a smaller connected area. It is possible to set a threshold value for calculation, and a sufficient number of high-precision centroids can be secured.

また、本発明にあっては、特徴点を抽出する際、所定の範囲(画素ブロックライン)で特徴点の点数を計数しておくことにより、注目特徴点の処理毎に特徴点を読み出すことなく、マスクサイズまたは参照ブロック数を変更することができるため、近傍特徴点の抽出を何度も行う必要がなくなり、処理の容易化・高速化を図ることができる。   In the present invention, when extracting feature points, by counting the number of feature points in a predetermined range (pixel block line), the feature points are not read out every processing of the feature point of interest. Since the mask size or the number of reference blocks can be changed, it is not necessary to repeatedly extract neighboring feature points, and the processing can be facilitated and speeded up.

更にまた、本発明にあっては、これらを組み合わせることにより、複数の作用が生じさせることができる。   Furthermore, in the present invention, a plurality of actions can be generated by combining these.

本発明にあっては、外乱に強い画像の類似判定方法である画像内の画素領域の重心を利用した画像処理方法を、類似判定の精度を低下させることなく安定して実行させることができる。尚、当該処理は、画像を登録する処理並びに入力された画像と登録されている画像との照合処理を行う際に行われる。画像を登録する際は、例えば、デジタル複写機(または、複合機)の操作パネルより登録モードを選択して行えば良い。ソフトウェアとして実現する場合は、例えば、ディスプレイにスキャナの動作を設定する画面を表示させ、マウスやキーボードを用いて登録モードを選択するようにすれば良い。   In the present invention, it is possible to stably execute an image processing method that uses the center of gravity of a pixel region in an image, which is a similarity determination method for an image that is resistant to disturbances, without reducing the accuracy of similarity determination. This process is performed when performing a process for registering an image and a collation process between the input image and the registered image. When registering an image, for example, a registration mode may be selected from an operation panel of a digital copying machine (or a multifunction machine). When implemented as software, for example, a screen for setting the operation of the scanner may be displayed on the display, and the registration mode may be selected using a mouse or a keyboard.

以下、本発明に係る画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体について、実施の形態を示す図面に基づいて説明する。図1は本発明に係る画像処理装置2を備える画像形成装置の全体構成を示す模式図である。以下、主となる実施の形態を説明しつつ、説明の各箇所において従属する実施例を適宜説明する。   Hereinafter, an image processing method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium according to the present invention will be described with reference to the drawings illustrating embodiments. FIG. 1 is a schematic diagram showing an overall configuration of an image forming apparatus including an image processing apparatus 2 according to the present invention. Hereinafter, while substituting the main embodiment, the subordinate examples in each part of the description will be described as appropriate.

図中の画像形成装置は、例えば、デジタル複写機、複合機(マルチファンクションプリンタ:MFP)などであり、画像入力装置1、画像処理装置2、画像出力装置3及び操作パネル4で構成されている。画像入力装置1は、例えば、CCD(Charged Coupled Device)を備えたスキャナであり、原稿からの反射光をRGBのアナログ信号として受け付け、画像処理装置2へ出力する。画像処理装置2は、受け付けたRGBのアナログ信号に後述の処理を施し、CMYKのデジタルカラー信号として画像出力装置3へ出力する。画像出力装置3は、例えば、電子写真方式又はインクジェット方式を用いたカラー画像出力装置であり、画像処理装置2から出力されたCMYKのデジタルカラー信号を受け付け、受け付けたデジタルカラー信号に基づいて紙などの記録媒体の面にカラー画像を出力する。   The image forming apparatus in the figure is, for example, a digital copying machine, a multi-function printer (multifunction printer: MFP), and the like, and includes an image input device 1, an image processing device 2, an image output device 3, and an operation panel 4. . The image input device 1 is, for example, a scanner provided with a CCD (Charged Coupled Device). The image input device 1 receives reflected light from an original as an RGB analog signal and outputs the RGB analog signal to the image processing device 2. The image processing apparatus 2 performs processing described later on the received RGB analog signals and outputs the processed signals to the image output apparatus 3 as CMYK digital color signals. The image output device 3 is, for example, a color image output device using an electrophotographic method or an inkjet method, accepts CMYK digital color signals output from the image processing device 2, and uses paper or the like based on the received digital color signals A color image is output on the surface of the recording medium.

画像処理装置2は、A/D変換部20、シェーディング補正部21、画像照合処理部22、入力階調補正部23、領域分離処理部24、色補正部25、黒生成下色除去部26、空間フィルタ処理部27、出力階調補正部28及び階調再現処理部29を備える。   The image processing apparatus 2 includes an A / D conversion unit 20, a shading correction unit 21, an image matching processing unit 22, an input tone correction unit 23, a region separation processing unit 24, a color correction unit 25, a black generation and under color removal unit 26, A spatial filter processing unit 27, an output tone correction unit 28, and a tone reproduction processing unit 29 are provided.

A/D変換部20は、画像入力装置1から受け付けたRGBのアナログ信号をデジタル信号に変換し、変換したデジタル信号をシェーディング補正部21へ出力する。   The A / D converter 20 converts the RGB analog signal received from the image input device 1 into a digital signal, and outputs the converted digital signal to the shading correction unit 21.

シェーディング補正部21は、A/D変換部20から出力されたデジタル信号を受け付け、受け付けたデジタル信号に画像入力装置1の照明系、結像系及び撮像系で生じる各種の歪みを除去する処理を行う。また、シェーディング補正部21は、画像処理装置2での処理が最適な信号に変換すると共に、カラーバランスを整える処理を行い、処理済みのデジタル信号を画像照合処理部22へ出力する。   The shading correction unit 21 receives the digital signal output from the A / D conversion unit 20, and performs processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system of the image input device 1 from the received digital signal. Do. In addition, the shading correction unit 21 converts the signal into an optimum signal for processing in the image processing apparatus 2, performs processing for adjusting the color balance, and outputs the processed digital signal to the image matching processing unit 22.

画像照合処理部22は、本発明に係る画像処理装置に該当し、受け付けた画像のデジタル信号に基づいて画像を2値化し、2値画像から同値の画素が連続する画素領域(連結成分)を特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行い、類似判定の結果を示す判定結果を後述するメモリ225へ出力する。CPU又はMPUである後述する制御部226は、判定結果に応じて所定の処理を行う。例えば、制御部226は、画像が類似する旨を示す判定結果を受け付けた場合、画像の出力を放棄するか、画像の複写を禁止するか、又は、画像を所定のフォルダに記憶する処理(ファイリング)を行う。尚、本実施の形態において、画像同士とは、今回判定すべく画像入力装置1を介して受け付けた画像と、予め画像入力装置1を介して受け付け後述するハッシュテーブルに登録してある他方の原稿の画像データとを示すがこれに限定しない。また、画像照合処理部22は、前記処理を行うと共に、シェーディング補正部21から受け付けたデジタル信号を修正することなく入力階調補正部23へ出力する。   The image collation processing unit 22 corresponds to the image processing apparatus according to the present invention, binarizes an image based on a digital signal of the received image, and generates a pixel region (connected component) in which pixels of the same value continue from the binary image. Based on the coordinate value of the pixel of the specified pixel region, the feature point of the pixel region is extracted, the feature amount indicating the feature of the image is calculated based on the extracted feature point, and based on the calculated feature amount The similarity determination between the images is performed, and a determination result indicating the result of the similarity determination is output to the memory 225 described later. A control unit 226, which will be described later, which is a CPU or MPU, performs predetermined processing according to the determination result. For example, when receiving a determination result indicating that the images are similar, the control unit 226 abandons output of the image, prohibits copying of the image, or stores the image in a predetermined folder (filing) )I do. In the present embodiment, the images are the images received via the image input device 1 to be determined this time, and the other document previously received via the image input device 1 and registered in a hash table described later. However, the present invention is not limited to this. The image matching processing unit 22 performs the above processing and outputs the digital signal received from the shading correction unit 21 to the input tone correction unit 23 without being modified.

入力階調補正部23は、画像照合処理部22から出力されたデジタル信号を受け付け、受け付けたデジタル信号に下地濃度の除去又はコンストラストなどの画質階調処理を施し、処理済みのデジタル信号を領域分離処理部24へ出力する。   The input tone correction unit 23 receives the digital signal output from the image matching processing unit 22, performs image quality tone processing such as background density removal or contrast on the received digital signal, and processes the processed digital signal as a region. The data is output to the separation processing unit 24.

領域分離処理部24は、入力階調補正部23から出力されたデジタル信号を受け付け、受け付けたデジタル信号に基づいて画像を文字領域、網点領域及び写真領域の何れかに振り分ける。領域分離処理部24は、振り分け結果に基づいて文字領域、網点領域及び写真領域のいずれに属しているかを示す領域識別信号を生成し、生成した領域識別信号を黒生成下色除去部26、空間フィルタ処理部27、出力階調補正部28及び階調再現処理部29へ出力すると共に、入力階調補正部23から受け付けたデジタル信号を色補正部25へ出力する。   The region separation processing unit 24 receives the digital signal output from the input tone correction unit 23, and distributes the image to any of a character region, a halftone region, and a photo region based on the received digital signal. The region separation processing unit 24 generates a region identification signal indicating whether the region belongs to a character region, a halftone dot region, or a photo region based on the sorting result, and the generated region identification signal is converted into a black generation and under color removal unit 26, In addition to outputting to the spatial filter processing unit 27, the output tone correction unit 28, and the tone reproduction processing unit 29, the digital signal received from the input tone correction unit 23 is output to the color correction unit 25.

色補正部25は、領域分離処理部24から出力されたデジタル信号を受け付け、受け付けたデジタル信号に不要吸収成分を含むCMY色材の分光特性による色濁りを除去する処理を施し、処理済みのデジタル信号を黒生成下色除去部26へ出力する。   The color correction unit 25 receives the digital signal output from the region separation processing unit 24, performs a process of removing color turbidity due to the spectral characteristics of the CMY color material including unnecessary absorption components on the received digital signal, and has processed the digital signal. The signal is output to the black generation and under color removal unit 26.

黒生成下色除去部26は、色補正部25から出力されたデジタル信号(CMY)を受け付け、受け付けたデジタル信号から黒信号(K)を生成し、生成した黒信号を前記デジタル信号から差し引いた新たなデジタル信号(CMY)を生成し、生成した新デジタル信号(CMY)及び黒信号(K)を空間フィルタ処理部27へ夫々出力する。   The black generation and under color removal unit 26 receives the digital signal (CMY) output from the color correction unit 25, generates a black signal (K) from the received digital signal, and subtracts the generated black signal from the digital signal. A new digital signal (CMY) is generated, and the generated new digital signal (CMY) and black signal (K) are output to the spatial filter processing unit 27, respectively.

空間フィルタ処理部27は、黒生成下色除去部26から出力されたデジタル信号(CMYK)を受け付け、受け付けたデジタル信号に領域分離処理部24から受け付けた領域識別信号に基づく空間フィルタ処理を施して空間周波数特性を補正し、処理済みのデジタル信号を出力階調補正部28へ出力する。かかる処理により、出力すべき画像のぼやけ又は粒状性劣化を軽減することができる。   The spatial filter processing unit 27 receives the digital signal (CMYK) output from the black generation and under color removal unit 26 and performs a spatial filter process based on the region identification signal received from the region separation processing unit 24 on the received digital signal. The spatial frequency characteristic is corrected, and the processed digital signal is output to the output tone correction unit 28. Such processing can reduce blurring or graininess deterioration of an image to be output.

階調再現処理部29は、空間フィルタ処理部27から出力されたデジタル信号を受け付け、受け付けたデジタル信号に以下の処理を施し、処理済みのデジタル信号(CMYK)を記憶装置(図示せず)に記憶し、所定のタイミングで読み出して画像出力装置3へ出力する。また、階調再現処理部29は、領域分離処理部24から受け付けた領域識別信号に基づいて画像から文字領域を選択し、選択した文字領域の高周波成分をデジタルフィルタにより強調する。かかる処理により文字の再現性を高めることができる。また、階調再現処理部29は、高周波成分の再現に最適な高解像度スクリーンにより画像の2値化又は多値化処理を行う。また、階調再現処理部29は、前記領域識別信号に基づいて画像から網点領域を選択し、ローパスフィルタを用いて、選択した網点領域から入力網点成分を除去する。また、階調再現処理部29は、前記領域識別信号に基づいて画像から写真領域を選択し、選択した写真領域に階調再現性を重視したスクリーンにより2値化又は多値化処理を施す。   The gradation reproduction processing unit 29 receives the digital signal output from the spatial filter processing unit 27, performs the following processing on the received digital signal, and stores the processed digital signal (CMYK) in a storage device (not shown). The image is stored, read at a predetermined timing, and output to the image output device 3. The gradation reproduction processing unit 29 selects a character region from the image based on the region identification signal received from the region separation processing unit 24, and emphasizes the high-frequency component of the selected character region using a digital filter. Such processing can improve the reproducibility of characters. Further, the gradation reproduction processing unit 29 performs binarization or multi-value processing of an image using a high-resolution screen that is optimal for reproducing high-frequency components. The gradation reproduction processing unit 29 selects a halftone dot region from the image based on the region identification signal, and removes an input halftone dot component from the selected halftone dot region using a low-pass filter. The gradation reproduction processing unit 29 selects a photographic region from the image based on the region identification signal, and performs binarization or multi-value processing on the selected photographic region with a screen that emphasizes gradation reproducibility.

次に、画像照合処理部22について説明する。図2は画像照合処理部22の全体構成を示す模式図である。画像照合処理部22は、特徴点算出部221、特徴量算出部222、投票処理部223、類似判定処理部224、メモリ225、制御部226及び登録処理部227を備える。   Next, the image matching processing unit 22 will be described. FIG. 2 is a schematic diagram showing the overall configuration of the image matching processing unit 22. The image matching processing unit 22 includes a feature point calculation unit 221, a feature amount calculation unit 222, a voting processing unit 223, a similarity determination processing unit 224, a memory 225, a control unit 226, and a registration processing unit 227.

特徴点算出部221は、受け付けた2値の画像データから同値の画素が連続する連結成分を複数特定し、特定した連結成分の画素の座標値に基づいて連結成分の特徴点を抽出し、抽出した特徴点を特徴量算出部222へ出力する。尚、特徴点算出部221の構成及び処理手順は後述する。   The feature point calculation unit 221 specifies a plurality of connected components in which pixels having the same value continue from the received binary image data, extracts feature points of the connected components based on the coordinate values of the pixels of the specified connected components, and extracts them The obtained feature points are output to the feature amount calculation unit 222. The configuration and processing procedure of the feature point calculation unit 221 will be described later.

特徴量算出部222は、特徴点算出部221が算出した特徴点に基づいて画像の特徴を示す特徴量を算出する。尚、特徴量算出部222の構成及び処理手順は後述する。   The feature amount calculation unit 222 calculates a feature amount indicating the feature of the image based on the feature points calculated by the feature point calculation unit 221. The configuration and processing procedure of the feature amount calculation unit 222 will be described later.

投票処理部223は、特徴量算出部222が算出した特徴量(ハッシュ値)に基づいてメモリ225に記憶してあるハッシュテーブルを検索し、ハッシュテーブルに登録してあるインデックスの画像に対して投票を行い、当該投票を累積加算した結果を類似判定処理部224へ出力する。   The voting processing unit 223 searches the hash table stored in the memory 225 based on the feature amount (hash value) calculated by the feature amount calculation unit 222, and vote for the index image registered in the hash table. And the result of cumulative addition of the votes is output to the similarity determination processing unit 224.

類似判定処理部224は、投票処理部223から出力された結果を受け付け、受け付けた結果に基づいて画像の類似を判定し、当該判定の判定結果を登録処理部227を経て出力する。この時、登録処理部227での処理はスルー(処理を行わない)となる。尚、具体的な処理手順は後述する。   The similarity determination processing unit 224 receives the result output from the voting processing unit 223, determines image similarity based on the received result, and outputs the determination result of the determination via the registration processing unit 227. At this time, the processing in the registration processing unit 227 is through (no processing is performed). A specific processing procedure will be described later.

メモリ225には、画像照合処理部22が実行する処理で発生したデータ、後述のハッシュテーブルなどが記憶されている。   The memory 225 stores data generated by processing executed by the image matching processing unit 22, a hash table described later, and the like.

制御部226は、画像照合処理部22が備えるハードウェア夫々が一連の処理を成すように制御する。   The control unit 226 controls the hardware included in the image collation processing unit 22 to perform a series of processes.

登録処理部227は、特徴量算出部222が算出した特徴量(ハッシュ値)と、原稿(登録画像)を表すインデックス(原稿ID)とをメモリ225に記憶してあるハッシュテーブルに順次登録していく(図23(a)参照)。ハッシュ値がすでに登録されている場合は当該ハッシュ値に対応付けて原稿IDを登録する。   The registration processing unit 227 sequentially registers the feature amount (hash value) calculated by the feature amount calculation unit 222 and the index (document ID) representing the document (registered image) in the hash table stored in the memory 225. (See FIG. 23 (a)). If the hash value is already registered, the document ID is registered in association with the hash value.

次に、画像照合処理部22の特徴点算出部221について説明する。図3は特徴点算出部221の構成を示す模式図である。特徴点算出部221は、無彩化処理部2210、解像度変換部2211、MTF補正処理部2212、2値化処理部2213及び重心算出部2214を備える。   Next, the feature point calculation unit 221 of the image matching processing unit 22 will be described. FIG. 3 is a schematic diagram illustrating the configuration of the feature point calculation unit 221. The feature point calculation unit 221 includes an achromatic processing unit 2210, a resolution conversion unit 2211, an MTF correction processing unit 2212, a binarization processing unit 2213, and a centroid calculation unit 2214.

無彩化処理部2210は、受け付けた画像データがカラー画像である場合に当該画像データを無彩化して明度又は輝度信号に変換する処理を行う。例えば、無彩化処理部2210は、Yj =0.30Rj +0.59Gj +0.11Bj を演算し、当該演算結果を用いて無彩化を行う。但し、Yj :各画素の輝度値、Rj j j :各画素の色成分である。尚、RGB信号は、CIE1976L*a*b*信号に変換しても良い。但し、CIE:Commission International de l’Eclairage、L*:明度、a*b*:色度である。 When the received image data is a color image, the achromatic processing unit 2210 performs processing for achromatizing the image data and converting it to a brightness or luminance signal. For example, the achromatic processing unit 2210 calculates Y j = 0.30R j + 0.59G j + 0.11B j and performs achromatic processing using the calculation result. Where Y j is the luminance value of each pixel, and R j G j B j is the color component of each pixel. The RGB signal may be converted into a CIE 1976 L * a * b * signal. However, CIE: Commission International de l'Eclairage, L *: lightness, a * b *: chromaticity.

解像度変換部2211は、受け付けた画像データが画像入力装置1で光学的に変倍されている場合に所定の解像度になるように再度変倍する処理を行う。尚、前記画像データが光学的に変倍されていない場合、解像度変換部2211は、画像データを低解像度に変換して処理すべき容量を抑制して処理を軽くするようにできる。   The resolution conversion unit 2211 performs a process of scaling again so as to obtain a predetermined resolution when the received image data is optically scaled by the image input apparatus 1. When the image data is not optically scaled, the resolution conversion unit 2211 can reduce the capacity to be processed by converting the image data to a low resolution so as to reduce the processing.

MTF補正処理部2212は、機種毎に空間周波数特性が異なる画像入力装置1から受け付けた画像データに適切なフィルタ処理を施すことにより、当該画像データの空間周波数特性に基づいて劣化して発生するぼやけを修復する。また、MTF補正処理部2212は、不要な高周波成分を抑制すべく、混合フィルタを用いて強調及び平滑化の処理を行う。   The MTF correction processing unit 2212 performs an appropriate filter process on the image data received from the image input device 1 having different spatial frequency characteristics for each model, thereby degrading the image data based on the spatial frequency characteristics of the image data. To repair. In addition, the MTF correction processing unit 2212 performs enhancement and smoothing processing using a mixing filter in order to suppress unnecessary high-frequency components.

2値化処理部2213は、受け付けた画像データが無彩のもの又は無彩化処理部2210で無彩化された画像データについて、後述する重心の算出に適した2値画像データへ変換する処理を行う。例えば、2値化処理部2213は、画像の画素値の平均値を算出し、算出した平均値を閾値として当該画像の各画素を2値化する処理を行う。   The binarization processing unit 2213 converts the received image data that is achromatic or the image data achromatic by the achromatization processing unit 2210 into binary image data suitable for calculating the center of gravity described later. I do. For example, the binarization processing unit 2213 calculates an average value of the pixel values of the image, and performs a process of binarizing each pixel of the image using the calculated average value as a threshold value.

重心算出部2214は、後述の処理により、2値化処理部2213で2値化した2値画像データから同値の画素が連続する連結成分の重心を求め、当該重心を特徴点としてメモリ225へ出力する。図4は重心算出部2214の構成を示す模式図である。重心算出部2214は、ラベリング処理部2214a、連結成分閾値処理部2214b、重心計算処理部2214c、重心格納バッファ2214d及び制御部2214eを備える。   The center-of-gravity calculation unit 2214 obtains the center of gravity of a connected component in which pixels having the same value continue from the binary image data binarized by the binarization processing unit 2213 by processing described later, and outputs the center of gravity to the memory 225 as the feature point. To do. FIG. 4 is a schematic diagram showing the configuration of the center-of-gravity calculation unit 2214. The centroid calculation unit 2214 includes a labeling processing unit 2214a, a connected component threshold processing unit 2214b, a centroid calculation processing unit 2214c, a centroid storage buffer 2214d, and a control unit 2214e.

ラベリング処理部2214aは、画像から連結成分を特定し、特定した連結成分の画素に順次ラベル付けを行う。   The labeling processing unit 2214a identifies the connected component from the image and sequentially labels the pixels of the identified connected component.

制御部2214eは、ラベル付けされた画素の座標値を累積加算し、加算結果を重心格納バッファ2214dに格納する。   The control unit 2214e cumulatively adds the coordinate values of the labeled pixels, and stores the addition result in the centroid storage buffer 2214d.

重心格納バッファ2214dは、x座標の加算結果、y座標の加算結果、各ラベルに加算した回数(即ちラベリングされた画素数)及び判定に使用するフラグを格納している。   The center-of-gravity storage buffer 2214d stores an x coordinate addition result, a y coordinate addition result, the number of times of addition to each label (that is, the number of labeled pixels), and a flag used for determination.

制御部2214eは、画像の1ラインについての累積加算が終了した後に対象外のラベルが存在した場合、即ち、次ラインの画素と連続していない場合、累積加算の処理を終了する。また、制御部2214eは、第1の閾値を変更する。   The control unit 2214e ends the cumulative addition process when there is a non-target label after the cumulative addition for one line of the image is completed, that is, when it is not continuous with the pixel of the next line. In addition, the control unit 2214e changes the first threshold value.

連結成分閾値処理部2214bは、重心格納バッファ2214dに格納してある加算結果に基づいて後述の重心算出判定を行う。   The connected component threshold processing unit 2214b performs a centroid calculation determination described later based on the addition result stored in the centroid storage buffer 2214d.

連結成分閾値処理部2214bで重心算出判定をした場合、重心計算処理部2214cは、重心格納バッファ2214dに格納してある加算結果に基づいて重心計算を行い、算出した重心を特徴点としてメモリ225へ出力する。   When the connected component threshold processing unit 2214b makes a centroid calculation determination, the centroid calculation processing unit 2214c performs centroid calculation based on the addition result stored in the centroid storage buffer 2214d, and uses the calculated centroid as a feature point to the memory 225. Output.

次に、特徴点算出部221の重心算出部2214が行う重心算出処理の手順を説明する。図5は重心算出部2214の重心算出処理の手順を示すフローチャートである。尚、図中で示す変数は、夫々、前記x座標の加算結果、y座標の加算結果、各ラベルに加算した回数(即ちラベリングされた画素数)及び判定に使用するフラグに該当する。   Next, the procedure of the centroid calculation process performed by the centroid calculation unit 2214 of the feature point calculation unit 221 will be described. FIG. 5 is a flowchart showing the procedure of the centroid calculation process of the centroid calculation unit 2214. Note that the variables shown in the drawing correspond to the addition result of the x coordinate, the addition result of the y coordinate, the number of times of addition to each label (that is, the number of labeled pixels), and a flag used for determination.

cntは、連結成分に対するラベル付与の最大値を示す内部カウンタであり、例えば、最大2047のラベルを付与する場合、cntを11bit(0〜2047)で表す。即ち、cnt=11の場合、少なくとも特定された連結成分の数が11であることを示している。   cnt is an internal counter indicating the maximum value of label assignment for the connected component. For example, when a maximum of 2047 labels is given, cnt is represented by 11 bits (0 to 2047). That is, when cnt = 11, it is indicated that at least the number of identified connected components is 11.

また、renew_flgは、該当ラベルを更新したか否かを示す2bit信号のフラグであり、該当ラベルの情報が空のときは「00b」と表し、該当ラベルの情報の更新がないときは「01b」と表し、該当ラベルの情報の更新があるときは「10b」と表す。例えば、renew_flg[cnt]は、cnt値をアドレスとしたデータを重心格納バッファ2214dから読み出したときの更新フラグであり、renew_flg[5]は、アドレス5に格納するデータの更新フラグを表す。   Further, renew_flg is a 2-bit signal flag indicating whether or not the corresponding label has been updated, and is represented as “00b” when the corresponding label information is empty, and “01b” when the corresponding label information is not updated. When the information of the corresponding label is updated, it is expressed as “10b”. For example, renew_flg [cnt] is an update flag when data having a cnt value as an address is read from the centroid storage buffer 2214d, and renew_flg [5] represents an update flag of data stored at address 5.

また、lbnumは、該当ラベルの画素数を示すものであり、ラベル付けの都度該当ラベルのlbnum値に1をインクリメントする。例えば、lbnum[cnt]は、cnt値をアドレスとしたデータを重心格納バッファ2214dから読み出したときのラベルの画素数を表す。これにより、連結成分の画素の個数を計数することができる。   Further, lbnum indicates the number of pixels of the corresponding label, and 1 is incremented to the lbnum value of the corresponding label every time labeling is performed. For example, lbnum [cnt] represents the number of pixels of the label when data having the cnt value as an address is read from the centroid storage buffer 2214d. As a result, the number of connected component pixels can be counted.

また、sumxは、該当ラベルの画素のx座標を加算した総和を示すものであり、ラベル付けの都度該当ラベルのsumx値に現在の注目画素のx座標を加算する。例えば、sumx[cnt]は、cnt値をアドレスとしたデータを重心格納バッファ2214dから読み出したときのx座標和を表す。   Also, sumx indicates the sum obtained by adding the x-coordinates of the pixels of the corresponding label, and the x-coordinate of the current target pixel is added to the sumx value of the corresponding label every time labeling is performed. For example, sumx [cnt] represents the x coordinate sum when data having the cnt value as an address is read from the centroid storage buffer 2214d.

また、sumyは、該当ラベルの画素のy座標を加算した総和を示すものであり、ラベル付けの都度該当ラベルのsumy値に現在の注目画素のy座標を加算する。例えば、sumy[cnt]は、cnt値をアドレスとしたデータを重心格納バッファ2214dから読み出したときのy座標和を表す。   Further, sumy indicates the sum obtained by adding the y-coordinates of the pixels of the corresponding label, and the y-coordinate of the current target pixel is added to the sumy value of the corresponding label every time labeling is performed. For example, sumy [cnt] represents the y-coordinate sum when data having the cnt value as an address is read from the centroid storage buffer 2214d.

また、lbtblは、ラベルテーブルを読み出したときのラベル情報を示すものであり、lbtbl[cnt]は、cnt値をアドレスとしたラベルテーブルを重心格納バッファ2214dから読み出したときのラベル情報を表す。   Further, lbtbl indicates label information when the label table is read, and lbtbl [cnt] indicates label information when the label table with the cnt value as an address is read from the centroid storage buffer 2214d.

重心算出部2214は、処理を開始したとき、ラベリング処理部2214aでcntを初期化し(S101)、現時点のcntが0であるか否かを判定し(S102)、cntが0の場合(S102でYES)、処理を終了する。尚、初期値は、特定された連結成分の数と等しく、ラベルの最大数又はcntの最大値である2047の何れかになる。   When the process is started, the center-of-gravity calculation unit 2214 initializes cnt by the labeling processing unit 2214a (S101), determines whether or not the current cnt is 0 (S102), and if cnt is 0 (S102) YES), the process ends. The initial value is equal to the specified number of connected components, and is either 2047 which is the maximum number of labels or the maximum value of cnt.

一方、重心算出部2214は、ラベリング処理部2214aでcntが0でないと判定した場合(S102でNO)、現時点のcnt値をアドレスとするデータを重心格納バッファ2214dから読み出し(S103)、読み出したデータが含むrenew_flg[cnt]が00bであるか否かを判定する(S104)。即ち、重心算出部2214は、該当ラベルの情報が空であるか否かを判定する。その結果、重心算出部2214は、ラベリング処理部2214aでrenew_flg[cnt]が00bであると判定した場合(S104でYES)、該当ラベルが空になったことを示す空きフラグを更新し(S105)、現時点のcntをデクリメントし(S106)、ステップS102の判定に戻る。   On the other hand, when the labeling processing unit 2214a determines that cnt is not 0 (NO in S102), the center-of-gravity calculation unit 2214 reads data having the current cnt value as an address from the center-of-gravity storage buffer 2214d (S103). It is determined whether or not renew_flg [cnt] included in is 00b (S104). That is, the center-of-gravity calculation unit 2214 determines whether or not the information on the corresponding label is empty. As a result, if the labeling processing unit 2214a determines that renew_flg [cnt] is 00b (YES in S104), the center-of-gravity calculation unit 2214 updates an empty flag indicating that the corresponding label is empty (S105). The current cnt is decremented (S106), and the process returns to the determination in step S102.

一方、重心算出部2214は、ラベリング処理部2214aでrenew_flg[cnt]が00bでないと判定した場合(S104でNO)、更にlbtbl[cnt]が現時点のcnt値と等しいか否かを判定し(S107)、lbtbl[cnt]が現時点のcnt値と等しくないと判定した場合(S107でNO)、lbtbl[cnt]値をアドレスとしたデータを重心格納バッファ2214dから読み出す(S108)。   On the other hand, if the labeling processing unit 2214a determines that renew_flg [cnt] is not 00b (NO in S104), the center-of-gravity calculation unit 2214 further determines whether or not lbtbl [cnt] is equal to the current cnt value (S107). ), When it is determined that lbtbl [cnt] is not equal to the current cnt value (NO in S107), data having the lbtbl [cnt] value as an address is read from the centroid storage buffer 2214d (S108).

重心算出部2214は、ラベリング処理部2214aで読み出したデータに後述する加算処理を施し(S109)、前記lbtbl[cnt]値をアドレスとしたデータを加算処理の結果で更新する(S110)。   The center-of-gravity calculation unit 2214 performs addition processing, which will be described later, on the data read by the labeling processing unit 2214a (S109), and updates the data with the lbtbl [cnt] value as an address as a result of the addition processing (S110).

重心算出部2214は、ラベリング処理部2214aでcnt値をアドレスとして読み出したデータを初期化し(S111)、現時点のcntをデクリメントし(S106)、ステップS102の判定に戻る。   The center-of-gravity calculation unit 2214 initializes the data read by the labeling processing unit 2214a using the cnt value as an address (S111), decrements the current cnt (S106), and returns to the determination in step S102.

一方、重心算出部2214は、ラベリング処理部2214aでlbtbl[cnt]が現時点のcnt値と等しいと判定した場合(S107でYES)、更にrenew_flg[cnt]が01bであるか否か判定する(S112)。即ち、該当ラベルの情報の更新がないか否かを判定する。その結果、重心算出部2214は、ラベリング処理部2214aでrenew_flg[cnt]が01bであると判定した場合(S112でYES)、後述する閾値判定の処理を実行し(S113)、cnt値をアドレスとして読み出したデータを初期化し(S114)、該当ラベルが空になったことを示す空きフラグを更新し(S115)、現時点のcntをデクリメントし(S106)、ステップS102の判定に戻る。   On the other hand, if the labeling processing unit 2214a determines that lbtbl [cnt] is equal to the current cnt value (YES in S107), the center-of-gravity calculation unit 2214 further determines whether or not renew_flg [cnt] is 01b (S112). ). That is, it is determined whether or not the information on the corresponding label has been updated. As a result, if the labeling processing unit 2214a determines that renew_flg [cnt] is 01b (YES in S112), the center-of-gravity calculation unit 2214 executes threshold determination processing described later (S113), and uses the cnt value as an address. The read data is initialized (S114), the empty flag indicating that the corresponding label is empty is updated (S115), the current cnt is decremented (S106), and the process returns to the determination in step S102.

一方、重心算出部2214は、ラベリング処理部2214aでrenew_flg[cnt]が01bでないと判定した場合(S112でNO)、renew_flg[cnt]を01bに更新し(S116)、即ち、該当ラベルの情報が更新なしにリセットされた旨を示し、現時点のcntをデクリメントし(S106)、ステップS102の判定に戻る。   On the other hand, if the labeling processing unit 2214a determines that renew_flg [cnt] is not 01b (NO in S112), the center-of-gravity calculation unit 2214 updates renew_flg [cnt] to 01b (S116), that is, the information of the corresponding label is It shows that it was reset without updating, decrements the current cnt (S106), and returns to the determination in step S102.

次に、重心算出部2214が前記重心算出処理のステップS113で実行する閾値判定の手順について説明する。重心算出部2214は、対象ラベルの画素の個数lbnumを計数し、計数した対象ラベルの画素の個数lbnumが第1の閾値以上であるか否かを判定し、判定の結果に応じて重心計算処理部2214cで重心計算を行うか否かを決定する。図6は重心算出部2214の閾値判定の手順を示すフローチャートである。   Next, the threshold determination procedure executed by the gravity center calculation unit 2214 in step S113 of the gravity center calculation process will be described. The center-of-gravity calculation unit 2214 counts the number of pixels lbnum of the target label, determines whether or not the counted number of pixels lbnum of the target label is equal to or greater than a first threshold value, and performs center-of-gravity calculation processing according to the determination result It is determined whether or not to calculate the center of gravity in the part 2214c. FIG. 6 is a flowchart showing the threshold determination procedure of the center-of-gravity calculation unit 2214.

重心算出部2214は、連結成分閾値処理部2214bでcnt値をアドレスとして読み出し、計数した対象ラベルの画素の個数であるlbnum[cnt]が第1の閾値未満であるか否かを判定し(S201)、lbnum[cnt]が第1の閾値未満であると判定した場合(S201でYES)、lbnum[cnt]を含むデータを破棄し(S202)、後述するように第1の閾値の変更を行い、閾値判定を終了する。   The center-of-gravity calculation unit 2214 reads the cnt value as an address by the connected component threshold processing unit 2214b, and determines whether or not lbnum [cnt], which is the number of pixels of the target label counted, is less than the first threshold (S201). ), If it is determined that lbnum [cnt] is less than the first threshold (YES in S201), the data including lbnum [cnt] is discarded (S202), and the first threshold is changed as described later. Then, the threshold determination is finished.

一方、重心算出部2214は、連結成分閾値処理部2214bでlbnum[cnt]が第1の閾値以上であると判定した場合(S201でNO)、読み出したデータが含むsumx、sumy及びlbnumを重心計算処理部2214cへ出力し(S203)、閾値判定を終了する。   On the other hand, if the connected component threshold processing unit 2214b determines that lbnum [cnt] is equal to or greater than the first threshold (NO in S201), the center-of-gravity calculation unit 2214 calculates sumx, sumy, and lbnum included in the read data. The data is output to the processing unit 2214c (S203), and the threshold determination ends.

ここで、前記閾値判定の具体例を示しておく。図8は閾値判定の一例を示す説明図、図9は特徴点が少ない原稿の一例を示す説明図である。例えば、第1の閾値を100と設定した場合、図8中の文字「い」のラベルの連結成分は、その左側連結成分の画素の個数が109であるから重心算出の対象となるが、その右側連結成分の画素の個数が38であるから重心算出の対象にならず、得られた結果が破棄される。従って、図8の文字「い」を含む原稿が罫線枠及び少数の文字で構成されている場合(図9参照)、連結成分の画素数が少なく、重心算出の対象が少なくなり、特徴点の点数を必要数確保できず、判定精度が低下することになる。そこで、重心算出部2214は、例えば、第1の閾値を30に変更する。その結果、前記右側連結成分は重心対象となり、特徴点の点数が増えるため、判定精度の低下を回避することができる。   Here, a specific example of the threshold determination will be shown. FIG. 8 is an explanatory diagram showing an example of threshold determination, and FIG. 9 is an explanatory diagram showing an example of a document with few feature points. For example, when the first threshold value is set to 100, the connected component of the label “I” in FIG. 8 is the center of gravity calculation target because the number of pixels of the left connected component is 109. Since the number of pixels of the right connected component is 38, the center of gravity calculation is not performed and the obtained result is discarded. Therefore, when the document including the character “I” in FIG. 8 is composed of a ruled line frame and a small number of characters (see FIG. 9), the number of pixels of the connected component is small, the center of gravity calculation is reduced, and the feature points The required number of points cannot be secured, and the determination accuracy is lowered. Therefore, the center-of-gravity calculation unit 2214 changes the first threshold value to 30, for example. As a result, the right connected component becomes an object of the center of gravity, and the number of feature points increases, so that it is possible to avoid a decrease in determination accuracy.

次に、重心算出部2214が前記重心算出処理のステップS109で実行する加算処理の手順について説明する。重心算出部2214は、ラベルの連結成分の画素の座標値を累積加算し、累積加算に用いた画素数を計数し、これらの結果を重心計算処理部2214cへ出力する。図7は重心算出部2214の加算処理の手順を示すフローチャートである。   Next, the procedure of the addition process executed by the gravity center calculation unit 2214 in step S109 of the gravity center calculation process will be described. The center-of-gravity calculation unit 2214 cumulatively adds the coordinate values of the pixels of the connected component of the label, counts the number of pixels used for the cumulative addition, and outputs these results to the center-of-gravity calculation processing unit 2214c. FIG. 7 is a flowchart showing the procedure of the addition process of the centroid calculating unit 2214.

重心算出部2214は、制御部2214eで重心格納バッファ2214dからcnt値をアドレスとして読み出したデータが含むsumxを同バッファからlbtbl[cnt]値をアドレスとして読み出したデータが含むsumxに加算し(S301)、同バッファからcnt値をアドレスとして読み出したデータが含むsumyを、同バッファからlbtbl[cnt]値をアドレスとして読み出したデータが含むsumyに加算する(S302)。重心算出部2214は、制御部2214eで同バッファからcnt値をアドレスとして読み出したデータが含むlbnumを同バッファからlbtbl[cnt]値をアドレスとして読み出したデータが含むlbnumに加算し(S303)、加算後のlbnumが最大値であるFFFhを超えるか否かを判定する(S304)。その結果、重心算出部2214は、制御部2214eで加算後のlbnumがFFFhを超えると判定した場合(S304でYES)、FFFhを選択し(S305)、選択したFFFhをクリップする。   The center-of-gravity calculation unit 2214 adds sumx included in the data read out from the center-of-gravity storage buffer 2214d as the address by the control unit 2214e to sumx included in the data read out from the buffer as the lbtbl [cnt] value (S301). Then, the sumy included in the data read out from the buffer using the cnt value as an address is added to the sumy included in the data read out from the buffer using the lbtbl [cnt] value as an address (S302). The center-of-gravity calculation unit 2214 adds the lbnum included in the data read from the buffer with the cnt value as the address by the control unit 2214e to the lbnum included in the data read out from the buffer as the lbbtbl [cnt] value (S303). It is determined whether or not the subsequent lbnum exceeds the maximum value FFFh (S304). As a result, when the control unit 2214e determines that the added lbnum exceeds FFFh (YES in S304), the center-of-gravity calculation unit 2214 selects FFFh (S305) and clips the selected FFFh.

一方、重心算出部2214は、制御部2214eで加算後のlbnumがFFFhを超えないと判定した場合(S304でNO)、加算後のlbnumを選択し(S306)、選択した加算後のlbnumをクリップする。   On the other hand, when the control unit 2214e determines that the added lbnum does not exceed FFFh (NO in S304), the center-of-gravity calculation unit 2214 selects the added lbnum (S306) and clips the selected added lbnum. To do.

そして、重心算出部2214は、制御部2214eでrenew_flg[cnt]が10bであるか否かを判定し(S307)、renew_flg[cnt]が10bであると判定した場合(S307でYES)、重心格納バッファ2214dからlbtbl[cnt]値をアドレスとして読み出したデータが含むrenew_flg[lbtbl[cnt]]を10bに更新し(S309)、加算処理を終了する。   Then, the center-of-gravity calculation unit 2214 determines whether or not renew_flg [cnt] is 10b in the control unit 2214e (S307), and determines that renew_flg [cnt] is 10b (YES in S307). Renew_flg [lbtbl [cnt]] included in the data read out from the buffer 2214d using the lbtbl [cnt] value as an address is updated to 10b (S309), and the addition process is terminated.

一方、重心算出部2214は、制御部2214eでrenew_flg[cnt]が10bでないと判定した場合(S307でNO)、renew_flg[lbtbl[cnt]]を更新しないで(S308)、加算処理を終了する。   On the other hand, if the control unit 2214e determines that renew_flg [cnt] is not 10b (NO in S307), the center-of-gravity calculation unit 2214 does not update renew_flg [lbtbl [cnt]] (S308) and ends the addition process.

当該加算処理の終了後、重心算出部2214は、制御部2214eでlbtbl[cnt]値をアドレスとして読み出したデータを加算後のsumx、sumy及びクリップした加算後のlbnum又はFFFhに更新する(ステップS110参照)。   After the addition process is completed, the center-of-gravity calculation unit 2214 updates the data read by the control unit 2214e using the lbbtbl [cnt] value as an address to sumx and sumy after addition and lbnum or FFFh after addition (step S110). reference).

尚、本実施の形態において、重心算出部2214は、一つの第1の閾値に基づいて閾値判定を行うが、これに限らず、複数の異なる第1の閾値に基づいて閾値判定を並行的に行い、判定の結果、連結成分の数が最多になる第1の閾値を決定し、決定した第1の閾値に基づいて前記重心算出処理、閾値判定及び加算処理を実行するようにしてもよい。以下、実施例1として説明する。   In the present embodiment, the center-of-gravity calculation unit 2214 performs threshold determination based on one first threshold. However, the present invention is not limited to this, and threshold determination is performed in parallel based on a plurality of different first thresholds. As a result of the determination, a first threshold value that maximizes the number of connected components may be determined, and the center-of-gravity calculation process, threshold value determination, and addition process may be executed based on the determined first threshold value. This will be described as Example 1.

実施例1.
図10は実施例1に係る重心算出部2214の構成を示す模式図である。実施例1において、連結成分閾値処理部2214bは第1連結成分閾値処理部2214b1 及び第2連結成分閾値処理部2214b2 とし、重心計算処理部2214cは第1重心計算処理部2214c1 及び第2重心計算処理部2214c2 とし、重心格納バッファ2214dは第1重心格納バッファ2214d1 及び第2重心格納バッファ2214d2 とする。他の実施例に係る重心算出部2214は、第1連結成分閾値及び第2連結成分閾値の異なる第1の閾値(例えば、30,100)に基づいて閾値判定し、判定結果に基づいて重心算出を夫々行い、選択部2215fにて重心(特徴点)が最多になる結果を選択し、選択した特徴点をメモリ225へ出力する。以上、実施例1を説明した。
Example 1.
FIG. 10 is a schematic diagram illustrating a configuration of the gravity center calculation unit 2214 according to the first embodiment. In Example 1, connected component threshold processing section 2214b includes a first connected component threshold processing section 2214b 1 and the second connected component threshold processing section 2214b 2, centroid calculation processing section 2214C first centroid calculation processing section 2214C 1 and the second The center-of-gravity calculation processing unit 2214c 2 is used, and the center-of-gravity storage buffer 2214d is a first center-of-gravity storage buffer 2214d 1 and a second center-of-gravity storage buffer 2214d 2 . The center-of-gravity calculation unit 2214 according to another embodiment determines a threshold based on a first threshold (for example, 30, 100) that is different from the first connected component threshold and the second connected component threshold, and calculates the center of gravity based on the determination result. The selection unit 2215f selects the result of the largest center of gravity (feature point), and outputs the selected feature point to the memory 225. The first embodiment has been described above.

また、本実施の形態において、原稿画像を分割することなく下限値、即ち第1の閾値を変更する一例を説明したが、これに限らず、原稿画像を分割し、その分割した領域に対して各々で第1の閾値を変更するようにしてもよい。以下、実施例2として説明する。   In the present embodiment, an example in which the lower limit value, that is, the first threshold value is changed without dividing the document image has been described. However, the present invention is not limited to this, and the document image is divided and the divided area is divided. You may make it change a 1st threshold value in each. Hereinafter, the second embodiment will be described.

実施例2.
図28は入力される原稿画像の一例を示す説明図である。一般的に入力される原稿のフォーマットは、多種多様であるが、原稿全体に亘り、一様に文字が存在するような場合は少なく、原稿の上下左右端領域には文字が存在しない場合が多い。例えば、図28に示すとおり、閾値判定の下限が一様に100と設定されている場合、ノイズが閾値判定の範囲内となるため、重心算出の対象となってしまう。また、原稿画像の中央領域に存在する文字の連結成分の画素数が100以下である場合(たとえばiの点の画素数)、重心算出の対象とならない。以上のことから、算出される重心の精度が落ちる可能性がある。
Example 2
FIG. 28 is an explanatory diagram showing an example of an input document image. There are a wide variety of document formats that are generally input, but there are few cases where characters exist uniformly throughout the entire document, and there are many cases where characters do not exist in the upper, lower, left, and right areas of the document. . For example, as shown in FIG. 28, when the lower limit of threshold determination is uniformly set to 100, noise falls within the threshold determination range, and thus becomes a target of gravity center calculation. Further, when the number of pixels of the connected component of the character existing in the central area of the document image is 100 or less (for example, the number of pixels at the point i), the center of gravity is not calculated. From the above, the accuracy of the calculated center of gravity may be reduced.

そこで、実施例2では、原稿画像を分割し、その分割した領域に対して、各々で下限値を設定するような構成とすることにより、上下左右端領域のノイズを重心として算出されないような閾値が設定可能となるだけでなく、原稿画像の重要な領域(例えば、中央の領域など)においても、より小さな連結領域に対して重心算出をするような閾値設定が可能となるため、総合的に精度向上を狙った柔軟な閾値設定が可能となる。即ち、ノイズの除去と共に、文字部分の小さな連結成分に対しても重心を算出できるため、精度の高い重心を十分数確保できる。   Therefore, in the second embodiment, a threshold value is set so that noise in the upper, lower, left, and right end regions is not calculated as the center of gravity by dividing the document image and setting a lower limit value for each of the divided regions. In addition, it is possible to set a threshold value for calculating the center of gravity for a smaller connected area even in an important area (for example, the central area) of the document image. Flexible threshold setting aiming at accuracy improvement is possible. That is, since the centroid can be calculated for the connected component with a small character portion as well as the noise is removed, a sufficient number of centroids with high accuracy can be secured.

図29は原稿画像を均等に4分割した一例を示す説明図、図30は実施例2に係る重心算出部2214の構成を示す模式図、図31及び図32は閾値テーブルの構造を示す説明図、図33は原稿画像を分割した一例を示す説明図である。   FIG. 29 is an explanatory diagram illustrating an example in which the document image is equally divided into four parts, FIG. 30 is a schematic diagram illustrating a configuration of the centroid calculating unit 2214 according to the second embodiment, and FIGS. 31 and 32 are explanatory diagrams illustrating the structure of the threshold value table. FIG. 33 is an explanatory diagram showing an example of dividing a document image.

図29では、上端の領域から順に、領域1、領域2、領域3、および領域4と定義している。そして、実施例2では、領域1の下限閾値を200、領域2の下限閾値を30、領域3の下限閾値を30、領域4の下限閾値を200と設定している。このように構成とすることにより、領域1では、画素数400の文字「A」のみが重心算出対象となり、ノイズは対象とならない。領域2、および領域3では、iの点など画素数の少ない文字連結成分も重心算出対象となる。領域4では、ノイズのみしか存在しないが、このノイズは重心算出対象とならない。   In FIG. 29, areas 1, 2, 3, and 4 are defined in order from the upper end area. In the second embodiment, the lower limit threshold of the region 1 is set to 200, the lower limit threshold of the region 2 is set to 30, the lower limit threshold of the region 3 is set to 30, and the lower limit threshold of the region 4 is set to 200. With this configuration, in the region 1, only the character “A” having 400 pixels is a centroid calculation target, and noise is not a target. In the region 2 and the region 3, a character connected component having a small number of pixels such as a point i is also a centroid calculation target. In the region 4, only noise is present, but this noise is not a centroid calculation target.

以上のことから、実施例2の方法では、重心算出を精度よく行うことができる。また、この方法によると、並行して閾値判定を行い、判定の結果から範囲の決定を行うといった手順を取る必要がないため、処理を容易にし、高速に行うことができる。   From the above, the center of gravity can be calculated with high accuracy by the method of the second embodiment. Further, according to this method, it is not necessary to take a procedure of performing threshold determination in parallel and determining a range from the result of the determination, so that the processing can be facilitated and performed at high speed.

重心算出部2214は、閾値テーブルを備える(図30参照)。閾値テーブルは、図31に示すように、アドレスと領域番号を対応付けて下限閾値を格納しておいても良く、図32に示すように、アドレスと原稿画像の領域の分割数を対応付けて各々の下限閾値を格納しておく構成でもよい。尚、重心算出部2214が備えるその他の構成は、図4で示す重心算出部2214の構成と同様であるので、同一符号を付してその説明を省略する。   The center-of-gravity calculation unit 2214 includes a threshold value table (see FIG. 30). As shown in FIG. 31, the threshold value table may store the lower limit threshold value by associating the address with the area number, and as shown in FIG. 32, the address is associated with the division number of the area of the document image. A configuration in which each lower limit threshold value is stored may be employed. The other configuration of the centroid calculating unit 2214 is the same as the configuration of the centroid calculating unit 2214 shown in FIG.

原稿画像の分割数に関しては、さまざまな原稿画像から統計を取って分割数を決めればよい。他の方法としては、原稿画像の種別、あるいはレイアウト認識の結果を用いて分割数を決めてもよい。   Regarding the number of divisions of the document image, the number of divisions may be determined by taking statistics from various document images. As another method, the number of divisions may be determined using the type of document image or the result of layout recognition.

原稿画像の分割に関しては、図29に示すように、分割数に応じて均一に区切る必要はなく、領域ごとにライン数を設定してもよいし、設定された重みづけから自動的に算出する、例えば、重み係数を設定し算出するような構成でもよい。また、主走査方向、副走査方向のいずれか一方のみに分割するのではなく、図33に示すように、主走査方向、および副走査方向のオフセット(HOFT、VOFT)、画素数(HMAX、VMAX)を設定することにより、原稿画像の左右上下端領域と、中央領域とに分割し、それぞれ異なる下限閾値を設定するような構成であってもよい。尚、図33の例では、分割数は2となる。   As shown in FIG. 29, regarding the division of the document image, it is not necessary to uniformly divide the image according to the number of divisions, and the number of lines may be set for each region, or automatically calculated from the set weights. For example, a configuration in which a weighting factor is set and calculated may be used. Further, as shown in FIG. 33, the main scanning direction and sub-scanning direction offset (HOFT, VOFT) and the number of pixels (HMAX, VMAX) are not divided into only one of the main scanning direction and the sub-scanning direction. ), The document image may be divided into upper and lower left and right regions and a central region, and different lower threshold values may be set. In the example of FIG. 33, the number of divisions is 2.

尚、上記説明した原稿画像を分割し、分割されたそれぞれ領域において連結領域の下限値を設定して算出された特徴点の数が第2の閾値以下である場合、特徴量を求める周辺領域の範囲(マスクサイズ、参照ブロックの数)を変更するようにしても良い。以上、実施例2を説明した。   When the number of feature points calculated by dividing the document image described above and setting the lower limit value of the connected region in each divided region is equal to or smaller than the second threshold value, The range (mask size, number of reference blocks) may be changed. The second embodiment has been described above.

次に画像照合処理部22の特徴量算出部222について説明する。図11は特徴量算出部222の構成を示す模式図、図12は注目特徴点の周辺領域を示す説明図である。特徴量算出部222は、画素ブロック設定部2220、近傍点抽出部2221及び特徴量抽出部2222を備える。   Next, the feature amount calculation unit 222 of the image matching processing unit 22 will be described. FIG. 11 is a schematic diagram illustrating a configuration of the feature amount calculation unit 222, and FIG. 12 is an explanatory diagram illustrating a peripheral region of the feature point of interest. The feature amount calculation unit 222 includes a pixel block setting unit 2220, a neighboring point extraction unit 2221, and a feature amount extraction unit 2222.

画素ブロック設定部2220は、抽出した特徴点の何れか一つを注目特徴点とし、該注目特徴点の周辺領域を示すべく、画像の一又は複数の画素からなる画素ブロックを設定し、周辺領域を変更すべく、設定した画素ブロックのマスクサイズ又は参照ブロック数を変更する処理を行う。   The pixel block setting unit 2220 sets any one of the extracted feature points as a target feature point, sets a pixel block including one or a plurality of pixels of the image to indicate the peripheral region of the target feature point, and sets the peripheral region To change the mask size of the set pixel block or the number of reference blocks.

近傍点抽出部2221は、抽出した特徴点のうち、前記周辺領域内に位置する近傍の特徴点を決定し、決定した近傍の特徴点の点数を計数し、計数した点数が第2の閾値以下であるか否かを判定する処理を行う。判定の結果、計数した点数が第2の閾値を超えると判定した場合、特徴量抽出部2222が特徴量算出処理を行う。尚、前記周辺領域内に位置する近傍の特徴点が多数存在する場合は、注目特徴点から最短距離にある4つの特徴点を近傍の特徴点として決定するようにしてもよい(図12参照)。   The neighboring point extraction unit 2221 determines, among the extracted feature points, neighboring feature points located in the peripheral region, counts the number of neighboring feature points determined, and the counted number is equal to or less than a second threshold value. The process which determines whether it is is is performed. As a result of the determination, when it is determined that the counted score exceeds the second threshold, the feature amount extraction unit 2222 performs a feature amount calculation process. If there are many feature points in the vicinity located in the peripheral region, four feature points that are at the shortest distance from the feature point of interest may be determined as neighboring feature points (see FIG. 12). .

特徴量抽出部2222は、注目特徴点及び/又は決定した近傍の特徴点に基づいて画像の特徴を示す特徴量を算出する処理を行い、算出した特徴量をメモリ225へ出力する。尚、特徴量の算出方法は後述する。   The feature amount extraction unit 2222 performs a process of calculating a feature amount indicating the feature of the image based on the target feature point and / or the determined nearby feature point, and outputs the calculated feature amount to the memory 225. A method for calculating the feature amount will be described later.

次に、注目特徴点の周辺領域内に位置する近傍の特徴点の点数と該周辺領域の変更との関係について説明する。図13は周辺領域のマスクサイズと該周辺領域内に位置する近傍の特徴点との関係を示す説明図である。   Next, the relationship between the number of neighboring feature points located in the peripheral area of the feature point of interest and the change of the peripheral area will be described. FIG. 13 is an explanatory diagram showing the relationship between the mask size of the peripheral area and the neighboring feature points located in the peripheral area.

例えば、特徴量算出部222は、画素ブロック設定部2220で抽出した特徴点の何れか一つを注目特徴点としたとき、1個当たり256画素×256画素のマスクサイズになるように画素ブロックを設定し、前記注目特徴点を含む画素ブロックを中心とする近傍8画素ブロックを「周辺領域」として設定する。このとき、特徴量算出部222は、近傍点抽出部2221で該周辺領域内に位置する近傍の特徴点を3個抽出することができる(図13(a)参照)。そこで、特徴量算出部222は、画素ブロック設定部2220で画素ブロックのマスクサイズを1個当たり512画素×512画素になるように変更する。特徴量算出部222は、近傍点抽出部2221で該周辺領域内に位置する近傍の特徴点を4個抽出することができる(図13(b)参照)。即ち、特徴点の点数を増やして判定精度の低下を回避することができる。   For example, when one of the feature points extracted by the pixel block setting unit 2220 is set as the feature point of interest, the feature amount calculation unit 222 selects the pixel block so that the mask size is 256 pixels × 256 pixels per one. Then, a neighboring 8 pixel block centered on the pixel block including the feature point of interest is set as a “peripheral region”. At this time, the feature quantity calculation unit 222 can extract three neighboring feature points located in the peripheral region by the neighboring point extraction unit 2221 (see FIG. 13A). Therefore, the feature amount calculation unit 222 changes the pixel block mask size so that the pixel block setting unit 2220 has 512 pixels × 512 pixels per pixel. The feature amount calculation unit 222 can extract four feature points in the vicinity located in the peripheral region by the vicinity point extraction unit 2221 (see FIG. 13B). In other words, it is possible to avoid a decrease in determination accuracy by increasing the number of feature points.

ここで、特徴量算出部222の周辺領域の設定処理、近傍の特徴点の決定処理及び特徴量算出処理について説明する。図14は特徴量算出部222の処理の手順を示すフローチャートである。   Here, the surrounding area setting process, the neighboring feature point determining process, and the feature quantity calculating process of the feature quantity calculating unit 222 will be described. FIG. 14 is a flowchart illustrating a processing procedure of the feature amount calculation unit 222.

特徴量算出部222は、画素ブロック設定部2220で画像の一又は複数の画素からなる画素ブロックを設定し、設定した画素ブロックのマスクサイズを設定する(S401)。特徴量算出部222は、画素ブロック設定部2220で抽出した特徴点の何れか一つを注目特徴点とし、当該注目特徴点を含む画素ブロックを中心とする近傍8画素ブロックを「周辺領域」として設定し、設定した画素ブロック、マスクサイズ及び周辺領域を含むデータを近傍点抽出部2221へ出力する。   The feature amount calculation unit 222 sets a pixel block including one or a plurality of pixels of the image in the pixel block setting unit 2220, and sets the mask size of the set pixel block (S401). The feature quantity calculation unit 222 sets any one of the feature points extracted by the pixel block setting unit 2220 as a target feature point, and sets the neighboring eight pixel blocks centered on the pixel block including the target feature point as a “peripheral region”. The data including the set pixel block, mask size, and peripheral region is output to the neighborhood point extraction unit 2221.

特徴量算出部222は、近傍点抽出部2221で画素ブロック設定部2220から出力されたデータを受け付け、受け付けたデータに基づいて周辺領域内に位置する近傍の特徴点を抽出する(S402)。特徴量算出部222は、近傍点抽出部2221で抽出した近傍の特徴点の点数を計数し(S403)、計数した点数が予め設定した第2の閾値以下であるか否かを判定する(S404)。その結果、特徴量算出部222は、近傍点抽出部2221で計数した点数が第2の閾値以下であると判定した場合(S404でYES)、その旨を示す信号を画素ブロック設定部2220へ出力する。特徴量算出部222は、当該信号を受け付けた画素ブロック設定部2220で画素ブロックのマスクサイズを変更し(S405)、変更したマスクサイズを含むデータを近傍点抽出部2221へ出力する。特徴量算出部222は、近傍点抽出部2221でステップS402を繰り返す。   The feature quantity calculation unit 222 receives the data output from the pixel block setting unit 2220 by the neighboring point extraction unit 2221 and extracts neighboring feature points located in the peripheral area based on the received data (S402). The feature quantity calculation unit 222 counts the number of neighboring feature points extracted by the neighboring point extraction unit 2221 (S403), and determines whether the counted number is equal to or less than a preset second threshold value (S404). ). As a result, when it is determined that the score counted by the neighboring point extraction unit 2221 is equal to or less than the second threshold (YES in S404), the feature amount calculation unit 222 outputs a signal indicating that to the pixel block setting unit 2220. To do. The feature amount calculation unit 222 changes the mask size of the pixel block by the pixel block setting unit 2220 that has received the signal (S405), and outputs data including the changed mask size to the neighborhood point extraction unit 2221. The feature amount calculation unit 222 repeats Step S402 in the neighborhood point extraction unit 2221.

一方、特徴量算出部222は、近傍点抽出部2221で計数した点数が第2の閾値を超えると判定した場合(S404でNO)、抽出した近傍の特徴点に関するデータを特徴量抽出部2222へ出力する。特徴量算出部222は、特徴量抽出部2222で近傍点抽出部2221から出力されたデータを受け付け、受け付けたデータに基づいて特徴量を算出する(S406)。特徴量算出部222は、特徴量抽出部2222で算出した特徴量をメモリ225へ出力し、処理を終了する。   On the other hand, when it is determined that the number of points counted by the neighboring point extraction unit 2221 exceeds the second threshold (NO in S404), the feature amount calculation unit 222 sends the data related to the extracted neighboring feature points to the feature amount extraction unit 2222. Output. The feature amount calculation unit 222 receives the data output from the neighboring point extraction unit 2221 by the feature amount extraction unit 2222, and calculates the feature amount based on the received data (S406). The feature amount calculation unit 222 outputs the feature amount calculated by the feature amount extraction unit 2222 to the memory 225, and ends the process.

尚、本実施の形態において、特徴量算出部222は、一定の条件を満たす場合に特徴量抽出部2222で特徴量算出を実行するが(ステップS404、406参照)、これに限らず、特徴量算出部222は、特徴量抽出部2222で特徴量算出を実行した後に一定条件の判定を行うようにしてもよい。以下、実施例3として説明する。   In the present embodiment, the feature quantity calculation unit 222 performs the feature quantity calculation by the feature quantity extraction unit 2222 when certain conditions are satisfied (see steps S404 and S406). The calculation unit 222 may determine a certain condition after the feature amount extraction unit 2222 executes the feature amount calculation. Hereinafter, the third embodiment will be described.

実施例3.
図15は実施例3に係る特徴量算出部222の処理の手順を示すフローチャートである。実施例3に係る特徴量算出部222は、画素ブロック設定部2220で画像の一又は複数の画素からなる画素ブロックを設定し、設定した画素ブロックのマスクサイズを設定する(S501)。特徴量算出部222は、画素ブロック設定部2220で抽出した特徴点の何れか一つを注目特徴点とし、当該注目特徴点を含む画素ブロックを中心とする近傍8画素ブロックを「周辺領域」として設定し、設定した画素ブロック、マスクサイズ及び周辺領域を含むデータを近傍点抽出部2221へ出力する。
Example 3 FIG.
FIG. 15 is a flowchart illustrating a processing procedure of the feature amount calculation unit 222 according to the third embodiment. The feature amount calculation unit 222 according to the third embodiment sets a pixel block including one or a plurality of pixels in the image by the pixel block setting unit 2220, and sets a mask size of the set pixel block (S501). The feature quantity calculation unit 222 sets any one of the feature points extracted by the pixel block setting unit 2220 as a target feature point, and sets the neighboring eight pixel blocks centered on the pixel block including the target feature point as a “peripheral region”. The data including the set pixel block, mask size, and peripheral region is output to the neighborhood point extraction unit 2221.

特徴量算出部222は、近傍点抽出部2221で画素ブロック設定部2220から出力されたデータを受け付け、受け付けたデータに基づいて周辺領域内に位置する近傍の特徴点を抽出する(S502)。特徴量算出部222は、近傍点抽出部2221で抽出した近傍の特徴点に関するデータを特徴量抽出部2222へ出力する。特徴量算出部222は、特徴量抽出部2222で近傍点抽出部2221から出力されたデータを受け付け、受け付けたデータに基づいて特徴量の算出を行い(S503)、算出した特徴量が有効であるか否かを判定する(S504)。その結果、特徴量算出部222は、特徴量抽出部2222で算出した特徴量が有効でないと判定した場合(S504でNO)、その旨を示す信号を画素ブロック設定部2220へ出力する。特徴量算出部222は、当該信号を受け付けた画素ブロック設定部2220で画素ブロックのマスクサイズを変更し(S505)、変更したマスクサイズを含むデータを近傍点抽出部2221へ出力する。特徴量算出部222は、近傍点抽出部2221でステップS502の処理を実行する。   The feature amount calculation unit 222 receives the data output from the pixel block setting unit 2220 by the neighboring point extraction unit 2221 and extracts neighboring feature points located in the peripheral region based on the received data (S502). The feature amount calculation unit 222 outputs data related to the nearby feature points extracted by the neighborhood point extraction unit 2221 to the feature amount extraction unit 2222. The feature amount calculation unit 222 receives the data output from the neighboring point extraction unit 2221 by the feature amount extraction unit 2222, calculates the feature amount based on the received data (S503), and the calculated feature amount is valid. It is determined whether or not (S504). As a result, when the feature amount calculation unit 222 determines that the feature amount calculated by the feature amount extraction unit 2222 is not valid (NO in S504), the feature amount calculation unit 222 outputs a signal indicating that to the pixel block setting unit 2220. The feature amount calculation unit 222 changes the mask size of the pixel block by the pixel block setting unit 2220 that has received the signal (S505), and outputs data including the changed mask size to the neighborhood point extraction unit 2221. The feature amount calculation unit 222 performs the process of step S502 at the neighboring point extraction unit 2221.

一方、特徴量算出部222は、特徴量抽出部2222で算出した特徴量が有効であると判定した場合(S504でYES)、算出した特徴量をメモリ225へ出力し、処理を終了する。   On the other hand, if the feature amount calculation unit 222 determines that the feature amount calculated by the feature amount extraction unit 2222 is valid (YES in S504), the feature amount calculation unit 222 outputs the calculated feature amount to the memory 225 and ends the process.

ここで、算出した特徴量が有効であるか否かの判定は、例えば、ステップS503で抽出すべき特徴点の点数が4であるところ2つしか確保できず当該2つの特徴点に基づいて特徴量の算出を行う場合(S503)、確保できなかった2点に対して初期値として座標の最大値を与えることにより、マスクサイズの対角線距離以上の距離が算出されるか否かで判定する。以上、実施例3を説明した。   Here, the determination of whether or not the calculated feature amount is valid is, for example, that only two points can be secured when the number of feature points to be extracted in step S503 is 4, and the feature is based on the two feature points. When the amount is calculated (S503), the maximum coordinate value is given as an initial value to the two points that could not be secured, and it is determined whether or not a distance equal to or larger than the diagonal distance of the mask size is calculated. The example 3 has been described above.

また、本実施の形態において、画素ブロックライン単位で重心をカウントすることなく、マスクサイズを変更する一例を説明したが、これに限らず、画素ブロックライン単位で重心をカウントしておき、その結果に応じてマスクサイズを変更するようにしてもよい。以下、実施例4として説明する。   Further, in this embodiment, an example of changing the mask size without counting the centroid in units of pixel block lines has been described. However, the present invention is not limited to this, and the centroid is counted in units of pixel block lines. The mask size may be changed according to the above. Hereinafter, this will be described as a fourth embodiment.

実施例4.
図34は画素ブロックライン単位にて重心をカウントするための重心算出部2214の構成を示す模式図である。重心算出部2214は、重心カウントバッファ2214fを備える。重心カウントバッファ2214fは、画素ブロックライン単位でカウントした重心数を格納しており、重心を格納する際に、対応する画素ブロックに対応するカウンタに1を加算する構成となっている。尚、重心算出部2214が備えるその他の構成は、図4で示す重心算出部2214の構成と同様であるので、同一符号を付してその説明を省略する。
Example 4
FIG. 34 is a schematic diagram showing the configuration of the centroid calculating unit 2214 for counting the centroid in units of pixel block lines. The center of gravity calculation unit 2214 includes a center of gravity count buffer 2214f. The centroid count buffer 2214f stores the number of centroids counted in units of pixel block lines, and is configured to add 1 to the counter corresponding to the corresponding pixel block when storing the centroid. The other configuration of the centroid calculating unit 2214 is the same as the configuration of the centroid calculating unit 2214 shown in FIG.

図35は重心カウントバッファ2214fによるカウントの例を示す説明図である。図35は、画素ブロックライン1のカウント結果が14、画素ブロックライン2のカウント結果が12、以降画素ブロックライン32までのカウント結果を示している。これらのカウント結果が重心カウントバッファ2214fに格納されている。   FIG. 35 is an explanatory diagram showing an example of counting by the centroid count buffer 2214f. FIG. 35 shows the count result of the pixel block line 1 having a count result of 14, the pixel block line 2 having a count result of 12, and thereafter the pixel block line 32. These count results are stored in the center-of-gravity count buffer 2214f.

図36は実施例4に係る特徴量算出部222の処理の手順を示すフローチャートである。特徴量算出部222は、最初に、重心カウントバッファ2214fに格納した画素ブロックに対応するマスクサイズを設定する(S801)。   FIG. 36 is a flowchart illustrating a processing procedure of the feature amount calculation unit 222 according to the fourth embodiment. The feature amount calculation unit 222 first sets a mask size corresponding to the pixel block stored in the centroid count buffer 2214f (S801).

特徴量算出部222は、注目点を含む画素ブロック、およびその周辺のブロックを含む処理を行う画素ブロックラインに対応する重心カウント結果を重心カウントバッファ2214fから読み出し(S802)、読み出した画素ブロックライン分、即ち、近傍マスクラインの重心カウント結果を加算する(S803)。   The feature amount calculation unit 222 reads out the centroid count result corresponding to the pixel block line to be processed including the pixel block including the target point and the surrounding blocks from the centroid count buffer 2214f (S802), That is, the barycentric count results of neighboring mask lines are added (S803).

特徴量算出部222は、加算結果が第3の閾値より小さいか否かを判定する(S804)。ここで、近傍4点の特徴点を抽出する場合、注目特徴点と周辺に4点以上の特徴点がなければ、精度良く特徴量を算出できないため、マスクサイズを変更する必要がある。   The feature amount calculation unit 222 determines whether or not the addition result is smaller than the third threshold value (S804). Here, when extracting feature points of four neighboring points, it is necessary to change the mask size because the feature amount cannot be accurately calculated unless there are four or more feature points around the target feature point.

特徴量算出部222は、加算結果が第3の閾値より小さいと判定した場合(S804でYES)、特徴点を算出するために必要な近傍特徴点が存在しないため、より大きなマスクサイズへ変更し(S805)、ステップS802へ戻り、重心カウントバッファ2214fからのデータ読み出しを行う。   When it is determined that the addition result is smaller than the third threshold value (YES in S804), the feature amount calculation unit 222 changes the mask size to a larger mask size because there is no neighboring feature point necessary for calculating the feature point. (S805), the process returns to step S802, and data is read from the centroid count buffer 2214f.

一方、特徴量算出部222は、加算結果が第3の閾値以上であると判定した場合(S804でNO)、近傍の特徴点を抽出し(S806)、特徴量抽出部2222へ出力する。特徴量抽出部2222は、受け付けたデータに基づいて特徴量を算出する(S807)。特徴量算出部222は、処理を終了する。   On the other hand, when it is determined that the addition result is equal to or greater than the third threshold value (NO in S804), the feature amount calculation unit 222 extracts nearby feature points (S806) and outputs the feature points to the feature amount extraction unit 2222. The feature amount extraction unit 2222 calculates a feature amount based on the received data (S807). The feature amount calculation unit 222 ends the process.

図37は閾値判定およびマスクサイズ変更を説明する模式図である。図37では、マスクサイズ設定が256画素×256画素に設定されている。この場合、注目特徴点を含む画素ブロックラインのカウント数BCCNT3=1,周辺のブロックを含む画素ブロックラインのカウント数はそれぞれBCCNT2=1、BCCNT4=2であるため、加算結果は4となる。また、第3の閾値(TH_SPREAD)は、近傍特徴点4個+注目特徴点1個=5となる。仍って、特徴量算出部222は、加算結果が第3の閾値より小さいと判定し(S804でYESを参照)、最初に設定したマスクサイズ256画素×256画素を512画素×512画素へ変更する。これにより、近傍特徴点を4個確保することができる。   FIG. 37 is a schematic diagram for explaining threshold determination and mask size change. In FIG. 37, the mask size setting is set to 256 pixels × 256 pixels. In this case, the count number of the pixel block line including the feature point of interest BCCNT3 = 1, and the count numbers of the pixel block lines including the peripheral blocks are BCCNT2 = 1 and BCCNT4 = 2, respectively, so that the addition result is 4. The third threshold value (TH_SPREAD) is 4 neighboring feature points + one feature point of interest = 5. Accordingly, the feature amount calculation unit 222 determines that the addition result is smaller than the third threshold value (refer to YES in S804), and changes the initially set mask size of 256 pixels × 256 pixels to 512 pixels × 512 pixels. To do. Thereby, four neighborhood feature points can be secured.

尚、上記説明した原稿画像を分割し、分割されたそれぞれ領域において連結領域の下限値を設定し、分割されたそれぞれの領域において、注目点を含む画素ブロック、およびその周辺のブロックを含む処理を行う画素ブロックラインに対応する重心カウント結果を、重心カウントバッファ2214fから読み出して加算し、加算結果が第2の閾値以下のとき、マスクサイズを変更するようにしても良い。   Note that the document image described above is divided, a lower limit value of a connected area is set in each divided area, and a process including a pixel block including a point of interest and its surrounding blocks is set in each divided area. The centroid count result corresponding to the pixel block line to be performed may be read from the centroid count buffer 2214f and added, and the mask size may be changed when the addition result is equal to or smaller than the second threshold value.

また、注目点を含む画素ブロック、およびその周辺のブロックを含む処理を行う画素ブロックラインに対応する重心カウント結果を、重心カウントバッファ2214fから読み出して加算し、加算結果が第3の閾値より小さいとき、特徴点を求める連結領域を抽出する画素数の下限値、あるいは、特徴点を求める連結領域を抽出する画素数の下限値とマスクサイズを変更するようにしても良い。   When the centroid count result corresponding to the pixel block including the target point and the pixel block line that performs processing including the surrounding blocks is read from the centroid count buffer 2214f and added, and the addition result is smaller than the third threshold value The lower limit value of the number of pixels from which a connected area for obtaining a feature point is extracted or the lower limit value of the number of pixels from which a connected area for obtaining a feature point is extracted and the mask size may be changed.

更にまた、特徴点を求める連結領域を抽出する画素数の下限値を複数設定し、計数された最多の特徴点が第3の閾値より小さいとき、マスクサイズを変更するようにしても良い。以上、実施例4を説明した。   Furthermore, a plurality of lower limit values of the number of pixels for extracting a connected region for obtaining a feature point may be set, and the mask size may be changed when the most counted feature points are smaller than the third threshold value. In the above, Example 4 was demonstrated.

次に、注目特徴点の周辺領域内に位置する近傍の特徴点の点数と該周辺領域の変更との関係について、実施例3に基づいて説明する。図16は周辺領域の画素ブロック数と該周辺領域内に位置する近傍の特徴点との関係を示す説明図である。   Next, the relationship between the number of feature points in the vicinity located in the peripheral region of the feature point of interest and the change of the peripheral region will be described based on the third embodiment. FIG. 16 is an explanatory diagram showing the relationship between the number of pixel blocks in the peripheral area and the nearby feature points located in the peripheral area.

例えば、特徴量算出部222は、画素ブロック設定部2220で抽出した特徴点の何れか一つを注目特徴点としたとき、1個当たり3×3の参照ブロック数になるように画素ブロックを設定し、前記注目特徴点を含む画素ブロックを中心とする近傍の画素ブロックを「周辺領域」として設定する。このとき、特徴量算出部222は、近傍点抽出部2221で該周辺領域内に位置する近傍の特徴点を3個抽出することができる(図13(a)参照)。そこで、特徴量算出部222は、画素ブロック設定部2220で画素ブロックの参照ブロック数を5×5になるように変更する。その結果、特徴量算出部222は、近傍点抽出部2221で該周辺領域内に位置する近傍の特徴点を4個抽出することができ(図16参照)、特徴点の点数が増えるため、判定精度の低下を回避することができる。   For example, the feature amount calculation unit 222 sets the pixel blocks so that the number of reference blocks is 3 × 3 per one when any one of the feature points extracted by the pixel block setting unit 2220 is the target feature point. Then, a neighboring pixel block centering on the pixel block including the feature point of interest is set as a “peripheral region”. At this time, the feature quantity calculation unit 222 can extract three neighboring feature points located in the peripheral region by the neighboring point extraction unit 2221 (see FIG. 13A). Therefore, the feature amount calculation unit 222 changes the number of reference blocks of the pixel block at the pixel block setting unit 2220 so as to be 5 × 5. As a result, the feature amount calculation unit 222 can extract four feature points in the vicinity located in the peripheral region by the neighboring point extraction unit 2221 (see FIG. 16), and the number of feature points increases. A decrease in accuracy can be avoided.

ここで、特徴量算出部222の周辺領域の設定処理、近傍の特徴点の決定処理及び特徴量算出処理について説明する。図17は実施例3に係る特徴量算出部222の処理の手順を示すフローチャートである。   Here, the surrounding area setting process, the neighboring feature point determining process, and the feature quantity calculating process of the feature quantity calculating unit 222 will be described. FIG. 17 is a flowchart illustrating a processing procedure of the feature amount calculation unit 222 according to the third embodiment.

特徴量算出部222は、画素ブロック設定部2220で画像の一又は複数の画素からなる画素ブロックを設定し、設定した画素ブロックの参照ブロック数を設定する(S601)。特徴量算出部222は、画素ブロック設定部2220で抽出した特徴点の何れか一つを注目特徴点として該注目特徴点を含む画素ブロックを中心とする近傍の画素ブロックを「周辺領域」として設定し、設定した画素ブロック、参照ブロック数及び周辺領域を含むデータを近傍点抽出部2221へ出力する。   The feature amount calculation unit 222 sets a pixel block including one or a plurality of pixels in the image by the pixel block setting unit 2220, and sets the reference block number of the set pixel block (S601). The feature amount calculation unit 222 sets any one of the feature points extracted by the pixel block setting unit 2220 as a target feature point, and sets a neighboring pixel block centered on the pixel block including the target feature point as a “peripheral region”. Then, the data including the set pixel block, the number of reference blocks, and the peripheral region is output to the neighborhood point extraction unit 2221.

特徴量算出部222は、近傍点抽出部2221で画素ブロック設定部2220から出力されたデータを受け付け、受け付けたデータに基づいて周辺領域内に位置する近傍の特徴点を抽出し(S602)、抽出した近傍の特徴点の点数を計数し(S603)、計数した点数が予め設定した第2の閾値以下であるか否かを判定する(S604)。その結果、特徴量算出部222は、近傍点抽出部2221で計数した点数が第2の閾値以下であると判定した場合(S604でYES)、その旨を示す信号を画素ブロック設定部2220へ出力する。特徴量算出部222は、当該信号を受け付けた画素ブロック設定部2220で画素ブロックの参照ブロック数を変更し(S605)、変更した参照ブロック数を含むデータを近傍抽出部2220へ出力する。特徴量算出部222は、近傍点抽出部2221でステップS602を行う。   The feature amount calculation unit 222 receives the data output from the pixel block setting unit 2220 by the neighboring point extraction unit 2221, extracts neighboring feature points located in the surrounding area based on the received data (S602), and extracts them. The number of feature points in the vicinity is counted (S603), and it is determined whether or not the counted number is equal to or less than a preset second threshold value (S604). As a result, when it is determined that the score counted by the neighboring point extraction unit 2221 is equal to or less than the second threshold (YES in S604), the feature amount calculation unit 222 outputs a signal indicating that to the pixel block setting unit 2220. To do. The feature amount calculation unit 222 changes the reference block number of the pixel block by the pixel block setting unit 2220 that has received the signal (S605), and outputs data including the changed reference block number to the neighborhood extraction unit 2220. The feature amount calculation unit 222 performs step S602 in the neighborhood point extraction unit 2221.

一方、特徴量算出部222は、近傍点抽出部2221で計数した点数が第2の閾値を超えると判定した場合(S604でNO)、抽出した近傍の特徴点に関するデータを特徴量抽出部2222へ出力する。特徴量算出部222は、特徴量抽出部2222で近傍点抽出部2221から出力されたデータを受け付け、受け付けたデータに基づいて特徴量を算出し(S606)、算出した特徴量をメモリ225へ出力し、処理を終了する。以上、実施例3に基づいて説明した。   On the other hand, if it is determined that the number of points counted by the neighborhood point extraction unit 2221 exceeds the second threshold (NO in S604), the feature amount calculation unit 222 sends the data related to the extracted nearby feature points to the feature amount extraction unit 2222. Output. The feature amount calculation unit 222 receives the data output from the neighboring point extraction unit 2221 by the feature amount extraction unit 2222, calculates the feature amount based on the received data (S606), and outputs the calculated feature amount to the memory 225. Then, the process ends. In the above, it demonstrated based on Example 3. FIG.

尚、実施例3に基づく説明において、特徴量算出部222は、一定条件を満たす場合に特徴量抽出部2222で特徴量算出を実行する一例を示したが(ステップS604、S606参照)、これに限らず、特徴量抽出部2222が特徴量算出を実行した後、特徴量算出部222は、一定の条件の判定を行うようにしてもよい。以下、実施例5として説明する。   In the description based on the third embodiment, the feature amount calculation unit 222 has shown an example in which the feature amount extraction unit 2222 executes the feature amount calculation when a certain condition is satisfied (see steps S604 and S606). Not limited to this, after the feature amount extraction unit 2222 executes the feature amount calculation, the feature amount calculation unit 222 may determine certain conditions. Hereinafter, this will be described as a fifth embodiment.

実施例5.
図18は実施例5に係る特徴量算出部222の処理の手順を示すフローチャートである。特徴量算出部222は、画素ブロック設定部2220で画像の一又は複数の画素からなる画素ブロックを設定し、設定した画素ブロックの参照ブロック数を設定する(S701)。特徴量算出部222は、画素ブロック設定部2220で抽出した特徴点の何れか一つを注目特徴点とし、該注目特徴点を含む画素ブロックを中心とする近傍の画素ブロックを「周辺領域」として設定し、設定した画素ブロック、参照ブロック数及び周辺領域を含むデータを近傍点抽出部2221へ出力する。
Example 5 FIG.
FIG. 18 is a flowchart illustrating a processing procedure of the feature amount calculation unit 222 according to the fifth embodiment. The feature amount calculation unit 222 sets a pixel block including one or a plurality of pixels in the image by the pixel block setting unit 2220, and sets the reference block number of the set pixel block (S701). The feature quantity calculation unit 222 uses any one of the feature points extracted by the pixel block setting unit 2220 as a target feature point, and sets a neighboring pixel block centered on the pixel block including the target feature point as a “peripheral region”. The data including the set pixel block, the number of reference blocks, and the surrounding area is output to the neighborhood point extraction unit 2221.

特徴量算出部222は、近傍点抽出部2221で画素ブロック設定部2220から出力されたデータを受け付け、受け付けたデータに基づいて、周辺領域内に位置する近傍の特徴点を抽出する(S702)。特徴量算出部222は、近傍点抽出部2221で抽出した近傍の特徴点に関するデータを特徴量抽出部2222へ出力する。特徴量算出部222は、特徴量抽出部2222で近傍点抽出部2221から出力されたデータを受け付け、受け付けたデータに基づいて特徴量を算出し(S703)、算出した特徴量が有効であるか否かを判定する(S704)。その結果、特徴量算出部222は、特徴量抽出部2222で算出した特徴量が有効でないと判定した場合(S704でNO)、その旨を示す信号を画素ブロック設定部2220へ出力する。特徴量算出部222は、当該信号を受け付けた画素ブロック設定部2220で画素ブロックの参照ブロック数を変更し(S705)、変更した参照ブロック数を含むデータを近傍点抽出部2221へ出力する。特徴量算出部222は、近傍点抽出部2221でステップS702を行う。   The feature amount calculation unit 222 receives the data output from the pixel block setting unit 2220 by the neighboring point extraction unit 2221 and extracts neighboring feature points located in the peripheral region based on the received data (S702). The feature amount calculation unit 222 outputs data related to the nearby feature points extracted by the neighborhood point extraction unit 2221 to the feature amount extraction unit 2222. The feature amount calculation unit 222 receives the data output from the neighboring point extraction unit 2221 in the feature amount extraction unit 2222, calculates the feature amount based on the received data (S703), and whether the calculated feature amount is valid. It is determined whether or not (S704). As a result, when it is determined that the feature amount calculated by the feature amount extraction unit 2222 is not valid (NO in S704), the feature amount calculation unit 222 outputs a signal indicating that to the pixel block setting unit 2220. The feature amount calculation unit 222 changes the reference block number of the pixel block by the pixel block setting unit 2220 that has received the signal (S705), and outputs data including the changed reference block number to the neighboring point extraction unit 2221. The feature amount calculation unit 222 performs step S702 in the neighborhood point extraction unit 2221.

一方、特徴量算出部222は、特徴量抽出部2222で算出した特徴量が有効であると判定した場合(S704でYES)、算出した特徴量をメモリ225へ出力し、処理を終了する。以上、実施例5を説明した。   On the other hand, if the feature amount calculation unit 222 determines that the feature amount calculated by the feature amount extraction unit 2222 is valid (YES in S704), the feature amount calculation unit 222 outputs the calculated feature amount to the memory 225, and ends the process. The fifth embodiment has been described above.

尚、本実施の形態において、特徴量算出部222は、周辺領域の設定処理、近傍の特徴点抽出処理及び特徴量算出処理について直列的に行う一例を説明したが、これに限らず、複数の異なるマスクサイズ又は参照ブロック数に基づいて一連の処理を行い、近傍の特徴点の点数が最多になる処理を選択し、選択した処理によるデータに基づいて特徴量を算出するようにしてもよい。以下、実施例6として説明する。   In the present embodiment, the feature amount calculation unit 222 has been described as an example in which the peripheral region setting process, the neighboring feature point extraction process, and the feature amount calculation process are performed in series. A series of processes may be performed based on different mask sizes or reference block numbers, a process having the largest number of neighboring feature points may be selected, and a feature amount may be calculated based on data by the selected process. This will be described below as Example 6.

実施例6.
図19は実施例6に係る特徴量算出部222の構成を示す模式図である。実施例6において、画素ブロック設定部2220は第1画素ブロック設定部2220a及び第2画素ブロック設定部2220bとし、近傍点抽出部2221は第1近傍点抽出部2221a及び第2近傍点抽出部2221bとし、更に、分配部2223及び選択部2224を備える。分配部2223は、メモリ225に格納されている特徴点のデータを受け付け、受け付けたデータを第1画素ブロック設定部2220a及び第2画素ブロック設定部2220bへ割り振る。第1画素ブロック設定部2220a(及び第2画素ブロック設定部2220b)は、夫々、画像の一又は複数の画素からなる画素ブロックを設定し、設定した画素ブロックのマスクサイズ又は参照ブロック数を設定し、抽出した特徴点の何れか一つを注目特徴点として該注目特徴点を含む画素ブロックを中心とする近傍の画素ブロックを「周辺領域」として設定し、設定した画素ブロック、マスクサイズ又は参照ブロック数並びに周辺領域を含むデータを第1近傍点抽出部2221a(及び第2近傍点抽出部2221b)へ出力する。第1近傍点抽出部2221a(及び第2近傍点抽出部2221b)は、夫々、第1画素ブロック設定部2220a(及び第2画素ブロック設定部2220b)から出力されたデータを受け付け、受け付けたデータに基づいて周辺領域内に位置する近傍の特徴点を抽出し、抽出した近傍の特徴点の点数を計数し、計数した点数が第2の閾値以下であるか否かを判定し、判定結果を選択部2224へ出力する。選択部2224は、第1近傍点抽出部2221a(及び第2近傍点抽出部2221b)から出力された判定結果を受け付け、受け付けた判定結果のうち、計数した点数が第2の閾値を超えると判定した方(両者とも第2の閾値を超えている場合はその点数が多い方)を選択し、選択した判定結果を導出した近傍点抽出部から特徴量抽出部2222へ近傍の特徴点に関するデータを出力させる。特徴量抽出部2222は、近傍点抽出部から出力されたデータを受け付け、受け付けたデータに基づいて特徴量を算出し、算出した特徴量をメモリ225へ出力する。以上、実施例6を説明した。
Example 6
FIG. 19 is a schematic diagram illustrating a configuration of the feature amount calculation unit 222 according to the sixth embodiment. In the sixth embodiment, the pixel block setting unit 2220 is a first pixel block setting unit 2220a and a second pixel block setting unit 2220b, and the neighboring point extracting unit 2221 is a first neighboring point extracting unit 2221a and a second neighboring point extracting unit 2221b. Further, a distribution unit 2223 and a selection unit 2224 are provided. The distribution unit 2223 receives the feature point data stored in the memory 225, and allocates the received data to the first pixel block setting unit 2220a and the second pixel block setting unit 2220b. Each of the first pixel block setting unit 2220a (and the second pixel block setting unit 2220b) sets a pixel block composed of one or a plurality of pixels of the image, and sets the mask size or the number of reference blocks of the set pixel block. , One of the extracted feature points as a target feature point, a neighboring pixel block centered on the pixel block including the target feature point is set as a “peripheral region”, and the set pixel block, mask size or reference block The data including the number and the surrounding area is output to the first neighboring point extracting unit 2221a (and the second neighboring point extracting unit 2221b). The first neighboring point extraction unit 2221a (and the second neighboring point extraction unit 2221b) receives the data output from the first pixel block setting unit 2220a (and the second pixel block setting unit 2220b), respectively, and sets the received data Based on this, the feature points in the vicinity located in the surrounding area are extracted, the number of the feature points in the extracted neighborhood is counted, whether the counted number is equal to or less than the second threshold value, and the determination result is selected. Output to the unit 2224. The selection unit 2224 receives the determination result output from the first neighboring point extraction unit 2221a (and the second neighboring point extraction unit 2221b), and determines that the counted number exceeds the second threshold value among the received determination results. (If both exceed the second threshold value, the one with the higher score) is selected, and the data on the neighboring feature points is transferred from the neighboring point extraction unit that derived the selected determination result to the feature amount extraction unit 2222. Output. The feature amount extraction unit 2222 receives the data output from the neighborhood point extraction unit, calculates the feature amount based on the received data, and outputs the calculated feature amount to the memory 225. The sixth embodiment has been described above.

また、本実施の形態において、画素ブロックライン単位で重心をカウントすることなく、参照ブロック数を変更する一例を説明したが、これに限らず、画素ブロックライン単位で重心をカウントしておき、その結果に応じて参照ブロック数を変更するようにしてもよい。以下、実施例7として説明する。   Further, in the present embodiment, an example in which the number of reference blocks is changed without counting the center of gravity in units of pixel block lines has been described, but not limited thereto, the center of gravity is counted in units of pixel block lines, The number of reference blocks may be changed according to the result. This will be described below as Example 7.

実施例7.
実施例7において、画素ブロックライン単位にて重心をカウントするための重心算出部2214の構成は、図34と同じであるので、同一の符号を付してその説明を省略する。
Example 7
In the seventh embodiment, since the configuration of the centroid calculating unit 2214 for counting the centroid in units of pixel block lines is the same as that in FIG. 34, the same reference numerals are given and the description thereof is omitted.

図38は実施例7に係る特徴量算出部222の処理の手順を示すフローチャートである。特徴量算出部222は、最初に、重心カウントバッファ2214fに格納した画素ブロック単位で、参照するブロック数を設定する(S901)。   FIG. 38 is a flowchart illustrating a processing procedure of the feature amount calculation unit 222 according to the seventh embodiment. The feature amount calculation unit 222 first sets the number of blocks to be referred to in units of pixel blocks stored in the centroid count buffer 2214f (S901).

特徴量算出部222は、注目特徴点を含む画素ブロック、および参照するブロックがそれぞれ存在する処理を行う画素ブロックラインに対応する重心カウント結果を、重心カウントバッファ2214fから読み出し(S902)、読み出した画素ブロックライン分、即ち、参照ブロックラインの重心カウント結果を加算する(S903)。   The feature amount calculation unit 222 reads out the centroid count result corresponding to the pixel block line that performs the processing in which the pixel block including the target feature point and the block to be referenced exist, from the centroid count buffer 2214f (S902), and the read pixel The centroid count result of the block line, that is, the reference block line is added (S903).

特徴量算出部222は、加算結果が第3の閾値より小さいか否かを判定する(S904)。ここで、近傍4点の特徴点を抽出する場合、注目特徴点と周辺に4点以上の特徴点がなければ、精度良く特徴量を算出できないため、参照ブロック数を変更する必要がある。   The feature amount calculation unit 222 determines whether or not the addition result is smaller than the third threshold (S904). Here, when four feature points in the vicinity are extracted, the feature quantity cannot be accurately calculated unless there are four or more feature points around the target feature point. Therefore, it is necessary to change the number of reference blocks.

特徴量算出部222は、加算結果が第3の閾値より小さいと判定した場合(S904でYES)、特徴点を算出するために必要な近傍特徴点が存在しないため、より大きな参照ブロック数へ変更し(S905)、ステップS902へ戻り、重心カウントバッファ2214fからのデータ読み出しを行う。   If the feature amount calculation unit 222 determines that the addition result is smaller than the third threshold value (YES in S904), the feature point calculation unit 222 changes to a larger reference block number because there is no neighboring feature point necessary for calculating the feature point. In step S905, the process returns to step S902 to read data from the centroid count buffer 2214f.

一方、特徴量算出部222は、加算結果が第3の閾値以上であると判定した場合(S904でNO)、近傍の特徴点を抽出し(S906)、特徴量抽出部2222へ出力する。特徴量抽出部2222は、受け付けたデータに基づいて特徴量を算出する(S907)。特徴量算出部222は、処理を終了する。   On the other hand, when it is determined that the addition result is equal to or greater than the third threshold (NO in S904), the feature amount calculation unit 222 extracts nearby feature points (S906) and outputs the feature points to the feature amount extraction unit 2222. The feature amount extraction unit 2222 calculates a feature amount based on the received data (S907). The feature amount calculation unit 222 ends the process.

図39は閾値判定および参照ブロック数の変更を説明する模式図である。図39では、参照ブロック数設定は9(3×3マスク)に設定されている。この場合、注目特徴点を含む画素ブロックラインのカウント数BCCNT3=1、参照ブロックの画素ブロックラインのカウント数はそれぞれBCCNT2=1、BCCNT4=2であるため、加算結果は4となる。また、第3の閾値(TH_SPREAD)は、近傍特徴点4個+注目特徴点1個=5となる。仍って、特徴量算出部222は、加算結果が第3の閾値より小さいと判定し(S904でYESを参照)、最初に設定した参照ブロック数9(3×3マスク)を25(5×5マスク)へ変更する。これにより、近傍特徴点を4個確保することができる。   FIG. 39 is a schematic diagram for explaining threshold determination and changing the number of reference blocks. In FIG. 39, the reference block number setting is set to 9 (3 × 3 mask). In this case, since the count number BCCNT3 = 1 of the pixel block line including the feature point of interest and the count numbers of the pixel block lines of the reference block are BCCNT2 = 1 and BCCNT4 = 2, respectively, the addition result is 4. The third threshold value (TH_SPREAD) is 4 neighboring feature points + one feature point of interest = 5. Accordingly, the feature amount calculation unit 222 determines that the addition result is smaller than the third threshold (refer to YES in S904), and sets the reference block number 9 (3 × 3 mask) initially set to 25 (5 × 5 mask). Thereby, four neighborhood feature points can be secured.

尚、上記説明した原稿画像を分割し、分割されたそれぞれ領域において連結領域の下限値を設定し、分割されたそれぞれの領域において、注目点を含む画素ブロック、およびその周辺のブロックを含む処理を行う画素ブロックラインに対応する重心カウント結果を、重心カウントバッファ2214fから読み出して加算し、加算結果が第2の閾値以下のとき、参照ブロック数を変更するようにしても良い。   Note that the document image described above is divided, a lower limit value of a connected area is set in each divided area, and a process including a pixel block including a point of interest and its surrounding blocks is set in each divided area. The centroid count result corresponding to the pixel block line to be performed may be read from the centroid count buffer 2214f and added, and when the addition result is equal to or smaller than the second threshold, the number of reference blocks may be changed.

また、注目点を含む画素ブロック、およびその周辺のブロックを含む処理を行う画素ブロックラインに対応する重心カウント結果を、重心カウントバッファ2214fから読み出して加算し、加算結果が第3の閾値より小さいとき、特徴点を求める連結領域を抽出する画素数の下限値、あるいは、特徴点を求める連結領域を抽出する画素数の下限値と参照ブロック数を変更するようにしても良い。   When the centroid count result corresponding to the pixel block including the target point and the pixel block line that performs processing including the surrounding blocks is read from the centroid count buffer 2214f and added, and the addition result is smaller than the third threshold value Alternatively, the lower limit value of the number of pixels for extracting a connected area for obtaining a feature point or the lower limit value of the number of pixels for extracting a connected area for obtaining a feature point and the number of reference blocks may be changed.

更にまた、特徴点を求める連結領域を抽出する画素数の下限値を複数設定し、計数された最多の特徴点が第3の閾値より小さいとき、参照ブロック数を変更するようにしても良い。以上、実施例7を説明した。   Furthermore, a plurality of lower limit values of the number of pixels for extracting a connected region for obtaining a feature point may be set, and the reference block number may be changed when the counted most feature points are smaller than the third threshold value. The seventh embodiment has been described above.

次に特徴量算出部222がステップS406等で実行する特徴量算出処理について説明する。図20は注目特徴点と近傍の特徴点との関係を示す説明図、図21及び図22は注目特徴点による不変量の算出例を示す説明図、図23はハッシュテーブルの構造を示す説明図である。   Next, the feature amount calculation process executed by the feature amount calculation unit 222 in step S406 and the like will be described. FIG. 20 is an explanatory diagram showing the relationship between the feature point of interest and neighboring feature points, FIGS. 21 and 22 are explanatory diagrams showing examples of invariant calculation using the feature point of interest, and FIG. 23 is an explanatory diagram showing the structure of the hash table. It is.

特徴量算出部222は、特徴量抽出部2222でメモリ225から受け付けたデータに基づいて例えば、注目特徴点P1に対して、例えば、周辺領域S1内に位置する4個の特徴点を、注目特徴点P1からの距離が近い順に抽出する(注目特徴点P2を近傍の特徴点とする)。また、注目特徴点P2に対して、周辺領域S2内に位置する4個の特徴点を上記と同様に注目特徴点P2からの距離が近い順に抽出する(注目特徴点P1は近傍の特徴点とする)。   Based on the data received from the memory 225 by the feature amount extraction unit 2222, the feature amount calculation unit 222, for example, sets four feature points located in the peripheral area S 1, for example, as the attention feature. Extraction is performed in order of increasing distance from the point P1 (the feature point of interest P2 is a nearby feature point). Also, with respect to the feature point P2, four feature points located in the peripheral region S2 are extracted in order of increasing distance from the feature point P2 as described above (the feature point P1 is defined as a nearby feature point). To do).

特徴量算出部222は、特徴量抽出部2222で抽出した4個の特徴点の中から3個の特徴点を選択して後述の方法で不変量を算出する。尚、選択する特徴点は3個に限るものではなく、4個、5個の特徴点を選択するようにしてもよい。   The feature amount calculation unit 222 selects three feature points from the four feature points extracted by the feature amount extraction unit 2222 and calculates an invariant by a method described later. Note that the number of feature points to be selected is not limited to three, and four or five feature points may be selected.

注目特徴点P1の周辺領域内に位置する4個の近傍の特徴点から3個の近傍の特徴点を選択し、3通りの不変量夫々をH1j(j=1、2、3)とする。不変量H1jは、H1j=A1j/B1jの式を用いて不変量H11、H12及びH13を求める(図21参照)。尚、A1j、B1jは特徴点間の距離を示しており、特徴点間の距離は、各周辺特徴点の座標値に基づいて算出される。これにより、画像が回転、移動、傾いた場合でも、不変量H11等は一定であるから当該不変量を用いる画像の類似判定の精度を安定させることができる。   Three neighboring feature points are selected from the four neighboring feature points located in the peripheral region of the target feature point P1, and each of the three invariants is set to H1j (j = 1, 2, 3). For the invariant H1j, the invariants H11, H12, and H13 are obtained using the formula of H1j = A1j / B1j (see FIG. 21). A1j and B1j indicate distances between feature points, and the distances between feature points are calculated based on the coordinate values of each peripheral feature point. Thereby, even when the image is rotated, moved, or tilted, the invariant H11 and the like are constant, so that the accuracy of similarity determination of images using the invariant can be stabilized.

また、注目特徴点P2の周辺領域内に位置する4個の近傍の特徴点から3個の近傍の特徴点を選択し、3通りの不変量夫々をH2j(j=1、2、3)とする。不変量H2jは、H2j=A2j/B2jの式を用いて不変量H21、H22、H23を求める(図22参照)。尚、A2j、B2jは特徴点間の距離を示しており、上記と同様に特徴点間の距離は、各周辺特徴点の座標値に基づいて算出される。これにより、画像が回転、移動、傾いた場合でも、不変量H11等は一定であるから当該不変量を用いる画像の類似判定の精度を安定させることができる。   Also, three neighboring feature points are selected from the four neighboring feature points located in the peripheral region of the target feature point P2, and each of the three invariants is represented as H2j (j = 1, 2, 3). To do. For the invariant H2j, the invariants H21, H22, and H23 are obtained using the formula H2j = A2j / B2j (see FIG. 22). A2j and B2j indicate the distances between the feature points, and the distances between the feature points are calculated based on the coordinate values of the peripheral feature points in the same manner as described above. Thereby, even when the image is rotated, moved, or tilted, the invariant H11 and the like are constant, so that the accuracy of similarity determination of images using the invariant can be stabilized.

また、特徴量算出部222は、特徴量抽出部2222で前記不変量に基づいてハッシュ値(特徴量)Hijを算出する。ハッシュ値Hijは、Hij=(Hi1×102 +Hi
2×101 +Hi3×100 )/Eにより求める。但し、iは自然数であり特徴点の数を表しており、Eは余りをどの程度設定するかにより決定される定数である。例えば、E=10とした場合、余りは1乃至9となり、これが算出するハッシュ値の範囲となる。
In addition, the feature amount calculation unit 222 calculates a hash value (feature amount) Hij based on the invariant by the feature amount extraction unit 2222. The hash value Hij is Hij = (Hi1 × 10 2 + Hi
2 × 10 1 + Hi3 × 10 0 ) / E. However, i is a natural number and represents the number of feature points, and E is a constant determined by how much remainder is set. For example, when E = 10, the remainder is 1 to 9, which is the hash value range to be calculated.

図26及び図27は注目特徴点による不変量の算出例を示す説明図である。注目特徴点による不変量を算出する方法としては、例えば、図26に示すように、注目特徴点P3の周辺特徴点P1,P2,P4,P5の4点より4通りの組み合わせを選択し、不変量H3j(j=1,2,3,4)を前述の場合と同様に、H3j=A3j/B3jにより算出しても良い。また、注目特徴点をP4としたときも同様に、注目特徴点P4の周辺特徴点P2,P3,P5,P6の4点より4通りの組み合わせを選択し(図27参照)、不変量H4j(j=1,2,3,4)をH4j=A4j/B4jにより算出しても良い。この場合、ハッシュ値Hiは、Hi=(Hi1×103 +Hi2×102 +Hi3×101 +Hi4×100 )/Eで算出される。
尚、特徴量としての前記のハッシュ値は一例であり、他のハッシュ関数を用いることができる。また、前記例では、3個の近傍の特徴点に基づいてハッシュ値を算出するが、これに限らず、4個、5個の近傍の特徴点に基づいてハッシュ値を算出するようにしてもよい。
FIG. 26 and FIG. 27 are explanatory diagrams showing an example of calculating invariants based on the feature point of interest. As a method for calculating the invariant based on the feature point of interest, for example, as shown in FIG. 26, four combinations are selected from the four feature points P1, P2, P4, and P5 around the feature point of interest P3. The variable H3j (j = 1, 2, 3, 4) may be calculated by H3j = A3j / B3j in the same manner as described above. Similarly, when the target feature point is set to P4, four combinations are selected from the four peripheral feature points P2, P3, P5, and P6 of the target feature point P4 (see FIG. 27), and the invariant H4j ( j = 1, 2, 3, 4) may be calculated by H4j = A4j / B4j. In this case, the hash value Hi is calculated as Hi = (Hi1 × 10 3 + Hi2 × 10 2 + Hi3 × 10 1 + Hi4 × 10 0 ) / E.
Note that the hash value as the feature amount is an example, and other hash functions can be used. In the above example, the hash value is calculated based on three neighboring feature points. However, the present invention is not limited to this, and the hash value may be calculated based on four or five neighboring feature points. Good.

算出したハッシュ値は、インデックスが対応付けられてハッシュテーブルに格納される(図23(a)参照)。ハッシュテーブルには、照合すべき他方の原稿の画像データが予め登録され、該原稿を表すインデックスに対応付けてハッシュ値が登録されている。ハッシュテーブルは、メモリ225に記憶されている。尚、ハッシュ値が同一である場合(例えば、H11及びH22)、該当する2つのエントリを一つに纏めてもよい(図23(b)参照)。また、照合すべき他方の原稿の画像データは、予め画像入力装置1を介して受け付けておき、ハッシュテーブルに登録しておく。   The calculated hash value is stored in a hash table in association with an index (see FIG. 23A). In the hash table, image data of the other document to be collated is registered in advance, and a hash value is registered in association with an index representing the document. The hash table is stored in the memory 225. When the hash values are the same (for example, H11 and H22), the corresponding two entries may be combined into one (see FIG. 23B). The image data of the other document to be collated is received in advance via the image input device 1 and registered in the hash table.

次に、投票処理部223及び類似判定処理部224が実行する類似判定処理について説明する。   Next, the similarity determination process executed by the voting processing unit 223 and the similarity determination processing unit 224 will be described.

投票処理部223は、特徴量算出部222から出力された特徴量(ハッシュ値)を受け付け、受け付けた特徴量に基づいてメモリ225に記憶しているハッシュテーブルを検索し、該特徴量に対応するインデックスの原稿について投票し、投票を累積加算した投票数を類似判定処理部224へ出力する。   The voting processing unit 223 receives the feature amount (hash value) output from the feature amount calculation unit 222, searches the hash table stored in the memory 225 based on the received feature amount, and corresponds to the feature amount. The index document is voted, and the number of votes obtained by accumulating the votes is output to the similarity determination processing unit 224.

類似判定処理部224は、投票処理部223から出力された投票数を受け付け、受け付けた投票数が設定する閾値以上であるか否かを判定し、投票数が閾値以上であると判定した場合、今回判定すべき画像がハッシュテーブルに登録している他方の原稿の画像に類似する旨を示す判定結果をメモリ225へ出力する。また、類似判定処理部224は、投票数が閾値に比し極めて大きい場合、今回判定すべき画像がハッシュテーブルに登録している他方の原稿の画像と一致する旨を示す判定結果をメモリ225へ出力する。一方、類似判定処理部224は、投票数が閾値未満であると判定した場合、今回判定すべき画像はハッシュテーブルに登録している他方の原稿の画像と類似していない旨の判定結果を出力する。制御部は、判定結果に応じて、例えば、画像出力禁止、複写禁止、所定のフォルダへの記憶などの所定の処理を実行する。   The similarity determination processing unit 224 receives the number of votes output from the voting processing unit 223, determines whether or not the received number of votes is equal to or greater than a set threshold, and determines that the number of votes is equal to or greater than the threshold. A determination result indicating that the image to be determined this time is similar to the image of the other document registered in the hash table is output to the memory 225. In addition, when the number of votes is extremely larger than the threshold value, the similarity determination processing unit 224 transmits a determination result indicating that the image to be determined this time matches the image of the other document registered in the hash table to the memory 225. Output. On the other hand, when the similarity determination processing unit 224 determines that the number of votes is less than the threshold, the determination result that the image to be determined this time is not similar to the image of the other document registered in the hash table is output. To do. The control unit executes predetermined processing such as image output prohibition, copy prohibition, and storage in a predetermined folder according to the determination result.

尚、類似判定処理部224の類似判定処理は一例であり、例えば、得票数を原稿毎の最大投票数で除算して正規化し、その結果に基づいて、類似判定を行うようにしてもよい。   Note that the similarity determination processing of the similarity determination processing unit 224 is an example. For example, the number of votes obtained may be divided and normalized by the maximum number of votes for each document, and the similarity determination may be performed based on the result.

また、上述した実施の形態では、特徴点算出部221は、重心算出部2214で閾値判定をして算出すべき重心(特徴点)の点数を調整し、更に画素ブロックのマスクサイズ又は参照ブロック数を変更して参照すべき特徴点の点数を調整している例を説明したが(図6、図14等参照)、これに限らず、特徴点の点数の調整は、特徴点算出部221の重心算出部2214が閾値判定をして算出すべき重心(特徴点)の点数を調整するだけであってもよい。   In the above-described embodiment, the feature point calculation unit 221 adjusts the number of centroids (feature points) to be calculated by performing threshold determination in the centroid calculation unit 2214, and further, the mask size of the pixel block or the number of reference blocks In the example described above, the number of feature points to be referred to is adjusted (see FIGS. 6, 14, etc.), but not limited to this, the adjustment of the number of feature points is performed by the feature point calculation unit 221. The center-of-gravity calculation unit 2214 may simply adjust the number of centers of gravity (feature points) to be calculated by performing threshold determination.

上述した実施の形態では、登録画像、ハッシュテーブルを予めメモリ225に記憶しておく構成であるが、これに限定されるものではなく、画像形成装置と通信回線(ネットワーク)を通じて接続されたサーバ装置の記憶部に登録画像を記憶しておき、ハッシュテーブルはメモリ225に分散して記憶させてもよい。   In the embodiment described above, the registered image and the hash table are stored in the memory 225 in advance. However, the present invention is not limited to this, and the server device connected to the image forming apparatus through a communication line (network). The registered image may be stored in the storage unit, and the hash table may be distributed and stored in the memory 225.

画像形成装置が備える画像照合処理部22及び制御部226を構成する各部(各ブロック)は、CPU等のプロセッサを用いてソフトウェアによって実現される。   Each unit (each block) constituting the image matching processing unit 22 and the control unit 226 provided in the image forming apparatus is realized by software using a processor such as a CPU.

すなわち、画像形成装置は、各機能を実現する制御プログラムの命令を実行するCPU(central processing unit)、制御プログラムを格納したROM(read only memory)
、制御プログラムを展開するRAM(random access memory)、制御プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備える(図示せず)。
That is, the image forming apparatus includes a central processing unit (CPU) that executes a command of a control program that realizes each function, and a read only memory (ROM) that stores the control program.
A random access memory (RAM) for developing the control program, a storage device (recording medium) such as a memory for storing the control program and various data, and the like (not shown) are provided.

本発明の目的は、上述した機能を実現するソフトウェアである複合機の制御プログラムのプログラムコードが含むステップ(実行形式プログラム、中間コードプログラム、ソースプログラム)を実行することによって達成される。また、当該制御プログラムを記録したコンピュータで読み取り可能な記録媒体を画像形成装置に挿入し、そのコンピュータ(又はCPU若しくはMPU)が当該記録媒体に記録されているプログラムコードを読み出し、実行することによって達成される。   The object of the present invention is achieved by executing the steps (execution format program, intermediate code program, source program) included in the program code of the control program of the multifunction machine, which is software that implements the above-described functions. In addition, a computer-readable recording medium in which the control program is recorded is inserted into the image forming apparatus, and the computer (or CPU or MPU) reads and executes the program code recorded in the recording medium. Is done.

記録媒体として、例えば、磁気テープ又はカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスク又はCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、並びにマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などが該当する。   As a recording medium, for example, a tape system such as a magnetic tape or a cassette tape, a disk system including a magnetic disk such as a floppy (registered trademark) disk / hard disk or an optical disk such as a CD-ROM / MO / MD / DVD / CD-R, This includes card systems such as IC cards (including memory cards) / optical cards, and semiconductor memory systems such as mask ROM / EPROM / EEPROM / flash ROM.

また、画像形成装置を通信ネットワークと接続させ、通信ネットワークを介して前記プログラムを供給してもよい。当該通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛
星通信網等が該当する。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線が該当する。なお、本発明は、プログラムのコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。
Further, the image forming apparatus may be connected to a communication network, and the program may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication. This applies to the net. Also, the transmission medium constituting the communication network is not particularly limited. For example, IEEE1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared such as IrDA or remote control, Bluetooth (registration) Trademark), 802.11 radio, HDR, mobile phone network, satellite line, terrestrial digital network, and the like are applicable. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave, in which the program code is embodied by electronic transmission.

また、画像形成装置の各ブロックは、ソフトウェアを用いて実現されるものに限らず、ハードウェアロジックによって構成されるものであってもよく、処理の一部を行うハードウェアと当該ハードウェアの制御や残余の処理を行うソフトウェアを実行する演算手段とを組み合わせたものであってもよい。   In addition, each block of the image forming apparatus is not limited to being realized using software, and may be configured by hardware logic. Hardware that performs a part of processing and control of the hardware Or a calculation unit that executes software for performing the remaining processing.

また、本発明のコンピュータシステムは、フラットベッドスキャナ・フィルムスキャナ・デジタルカメラなどの画像入力装置、所定のプログラムがロードされることにより上記類似度算出処理や類似性判定処理など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ・液晶ディスプレイなどの画像表示装置、およびコンピュータの処理結果を紙などに出力するプリンタ等の画像形成訴追により構成されてもよい。さらには、ネットワークを介してサーバなどに接続するための通信手段としてのネットワークカードやモデムなどが備えられていてもよい。   The computer system according to the present invention performs various processes such as an image input device such as a flatbed scanner, a film scanner, and a digital camera, and a similarity calculation process and a similarity determination process by loading a predetermined program. You may comprise by image formation prosecution, such as a computer, image display apparatuses, such as a CRT display and a liquid crystal display which display the processing result of a computer, and a printer which outputs the processing result of a computer on paper. Furthermore, a network card, a modem, or the like as communication means for connecting to a server or the like via a network may be provided.

本発明に係る画像処理装置を備える画像形成装置の全体構成を示す模式図である。1 is a schematic diagram illustrating an overall configuration of an image forming apparatus including an image processing apparatus according to the present invention. 画像照合処理部の全体構成を示す模式図である。It is a schematic diagram which shows the whole structure of an image collation process part. 特徴点算出部の構成を示す模式図である。It is a schematic diagram which shows the structure of a feature point calculation part. 重心算出部の構成を示す模式図である。It is a schematic diagram which shows the structure of a gravity center calculation part. 重心算出部の重心算出処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the gravity center calculation process of a gravity center calculation part. 重心算出部の閾値判定の手順を示すフローチャートである。It is a flowchart which shows the procedure of the threshold value determination of a gravity center calculation part. 重心算出部の加算処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the addition process of a gravity center calculation part. 閾値判定の一例を示す説明図である。It is explanatory drawing which shows an example of threshold value determination. 特徴点が少ない原稿の一例を示す説明図である。FIG. 5 is an explanatory diagram illustrating an example of a document with few feature points. 実施例1に係る重心算出部の構成を示す模式図である。3 is a schematic diagram illustrating a configuration of a centroid calculating unit according to Embodiment 1. FIG. 特徴量算出部の構成を示す模式図である。It is a schematic diagram which shows the structure of a feature-value calculation part. 注目特徴点の周辺領域を示す説明図である。It is explanatory drawing which shows the peripheral region of an attention feature point. 周辺領域のマスクサイズと該周辺領域内に位置する近傍の特徴点との関係を示す説明図である。It is explanatory drawing which shows the relationship between the mask size of a peripheral region, and the nearby feature point located in this peripheral region. 特徴量算出部の処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process of a feature-value calculation part. 実施例3に係る特徴量算出部の処理の手順を示すフローチャートである。12 is a flowchart illustrating a processing procedure of a feature amount calculation unit according to the third embodiment. 周辺領域の画素ブロック数と該周辺領域内に位置する近傍の特徴点との関係を示す説明図である。It is explanatory drawing which shows the relationship between the pixel block number of a peripheral region, and the nearby feature point located in this peripheral region. 実施例3に係る特徴量算出部の処理の手順を示すフローチャートである。12 is a flowchart illustrating a processing procedure of a feature amount calculation unit according to the third embodiment. 実施例5に係る特徴量算出部の処理の手順を示すフローチャートである。16 is a flowchart illustrating a processing procedure of a feature amount calculation unit according to the fifth embodiment. 実施例6に係る特徴量算出部の構成を示す模式図である。FIG. 10 is a schematic diagram illustrating a configuration of a feature amount calculation unit according to a sixth embodiment. 注目特徴点と近傍の特徴点との関係を示す説明図である。It is explanatory drawing which shows the relationship between an attention feature point and the nearby feature point. 注目特徴点による不変量の算出例を示す説明図である。It is explanatory drawing which shows the example of calculation of the invariant by an attention feature point. 注目特徴点による不変量の算出例を示す説明図である。It is explanatory drawing which shows the example of calculation of the invariant by an attention feature point. ハッシュテーブルの構造を示す説明図である。It is explanatory drawing which shows the structure of a hash table. 連結成分の重心を示す説明図である。It is explanatory drawing which shows the gravity center of a connection component. 重心を特徴点とする例を示す説明図である。It is explanatory drawing which shows the example which makes a gravity center a feature point. 注目特徴点による不変量の算出例を示す説明図である。It is explanatory drawing which shows the example of calculation of the invariant by an attention feature point. 注目特徴点による不変量の算出例を示す説明図である。It is explanatory drawing which shows the example of calculation of the invariant by an attention feature point. 入力される原稿画像の一例を示す説明図である。It is explanatory drawing which shows an example of the original document image input. 原稿画像を均等に4分割した一例を示す説明図である。It is explanatory drawing which shows an example which equally divided the original image into 4 parts. 実施例2に係る重心算出部の構成を示す模式図である。FIG. 10 is a schematic diagram illustrating a configuration of a gravity center calculation unit according to a second embodiment. 閾値テーブルの構造を示す説明図である。It is explanatory drawing which shows the structure of a threshold value table. 閾値テーブルの構造を示す説明図である。It is explanatory drawing which shows the structure of a threshold value table. 原稿画像を分割した一例を示す説明図である。It is explanatory drawing which shows an example which divided | segmented the original image. 画素ブロックライン単位にて重心をカウントするための重心算出部の構成を示す模式図である。It is a schematic diagram which shows the structure of the gravity center calculation part for counting a gravity center in a pixel block line unit. 重心カウントバッファによるカウントの例を示す説明図である。It is explanatory drawing which shows the example of the count by a gravity center count buffer. 実施例4に係る特徴量算出部の処理の手順を示すフローチャートである。14 is a flowchart illustrating a processing procedure of a feature amount calculation unit according to the fourth embodiment. 閾値判定およびマスクサイズ変更を説明する模式図である。It is a schematic diagram explaining threshold value determination and mask size change. 実施例7に係る特徴量算出部の処理の手順を示すフローチャートである。18 is a flowchart illustrating a processing procedure of a feature amount calculation unit according to the seventh embodiment. 閾値判定および参照ブロック数の変更を説明する模式図である。It is a schematic diagram explaining threshold value determination and the change of the number of reference blocks.

符号の説明Explanation of symbols

2 画像処理装置
22 画像照合処理部
221 特徴点算出部
2213 2値化処理部
2214 重心算出部
2214a ラベリング処理部
2214b 連結成分閾値処理部
2214c 重心計算処理部
2214d 重心格納バッファ
2214e 制御部
2214f 重心カウントバッファ
222 特徴量算出部
2220 画素ブロック設定部
2221 近傍点抽出部
2222 特徴量抽出部
224 類似判定処理部
225 メモリ
226 制御部
2 image processing apparatus 22 image collation processing unit 221 feature point calculation unit 2213 binarization processing unit 2214 centroid calculation unit 2214a labeling processing unit 2214b connected component threshold processing unit 2214c centroid calculation processing unit 2214d centroid storage buffer 2214e control unit 2214f centroid count buffer 222 feature amount calculation unit 2220 pixel block setting unit 2221 neighborhood point extraction unit 2222 feature amount extraction unit 224 similarity determination processing unit 225 memory 226 control unit

Claims (31)

2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、
特定した画素領域の画素の個数を計数し、
特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断し、
特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数し、
計数した特徴点の数が第2の閾値以下であるか否かを判定し、
計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、
計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更することを特徴とする画像処理方法。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing method for calculating a feature amount indicating a feature of an image based on a feature point, and performing similarity determination between images based on the calculated feature amount,
Count the number of pixels in the specified pixel area,
Determining whether the number of pixels in the identified pixel region is greater than or equal to a first threshold;
When it is determined that the number of pixels in the identified pixel area is equal to or greater than the first threshold, the feature points of the pixel area are calculated and the number of feature points is counted,
Determine whether the number of feature points counted is less than or equal to a second threshold;
When it is determined that the number of counted feature points exceeds the second threshold, the feature amount is calculated based on the feature points extracted from the pixel region,
An image processing method comprising: changing the first threshold value when it is determined that the number of counted feature points is equal to or less than a second threshold value.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、
特定した画素領域の画素の個数を計数し、
特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、
それぞれ第1の閾値以上であるか否かを判断し、
前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数し、
計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出することを特徴とする画像処理方法。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing method for calculating a feature amount indicating a feature of an image based on a feature point, and performing similarity determination between images based on the calculated feature amount,
Count the number of pixels in the specified pixel area,
When determining whether or not the number of pixels in the identified pixel region is equal to or greater than the first threshold, a plurality of different first thresholds are set,
Determine whether each is greater than or equal to the first threshold,
If it is determined that it is equal to or greater than the first threshold, the feature points of the pixel region are calculated, and the number of feature points is counted for each of a plurality of different first thresholds,
An image processing method, wherein a feature amount is calculated based on a feature point extracted from a pixel region having the largest number of counted feature points.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、
原稿画像の領域を複数に分割し、
分割された各々の領域に対して第1の閾値を設定し、
分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数し、
分割された領域において特定した画素領域の画素の個数が、分割された領域における第1の閾値以上であるか否かを判断し、
分割された領域において特定した画素領域の画素の個数が前記分割された領域における第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数し、
計数した特徴点の数が第2の閾値以下であるか否かを判定し、
計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、
計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更することを特徴とする画像処理方法。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing method for calculating a feature amount indicating a feature of an image based on a feature point, and performing similarity determination between images based on the calculated feature amount,
Divide the original image area into multiple areas,
Set a first threshold for each divided region,
In each divided area, count the number of pixels in the specified pixel area,
Determining whether the number of pixels in the pixel area identified in the divided area is equal to or greater than a first threshold in the divided area;
When it is determined that the number of pixels in the pixel area specified in the divided area is equal to or greater than a first threshold in the divided area, the feature points of the pixel area are calculated and the number of feature points is counted,
Determine whether the number of feature points counted is less than or equal to a second threshold;
When it is determined that the number of counted feature points exceeds the second threshold, the feature amount is calculated based on the feature points extracted from the pixel region,
An image processing method comprising: changing the first threshold value when it is determined that the number of counted feature points is equal to or less than a second threshold value.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、
抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定し、
決定した近傍の特徴点の点数を計数し、
計数した特徴点の点数が第2の閾値以下であるか否かを判定し、
計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、
計数した点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更することを特徴とする画像処理方法。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing method for calculating a feature amount indicating a feature of an image based on a feature point, and performing similarity determination between images based on the calculated feature amount,
Determine nearby feature points located within the surrounding area of the extracted feature points,
Count the number of feature points in the neighborhood
Determine whether the number of feature points counted is less than or equal to the second threshold;
When it is determined that the counted number of feature points exceeds the second threshold, the feature amount is calculated based on the neighboring feature points;
An image processing method comprising: changing the range of the peripheral area when it is determined that the counted number is equal to or less than a second threshold value.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、
特徴点を抽出する際、所定の範囲内で特徴点の点数を計数し、
計数した特徴点から、処理対象となる領域に含まれる特徴点を抽出し、
抽出した特徴点の点数が第3の閾値より小さいか否かを判定し、
抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて前記特徴量を算出し、
抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更することを特徴とする画像処理方法。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing method for calculating a feature amount indicating a feature of an image based on a feature point, and performing similarity determination between images based on the calculated feature amount,
When extracting feature points, count the number of feature points within a predetermined range,
Extract the feature points included in the area to be processed from the counted feature points,
Determine whether the number of extracted feature points is smaller than the third threshold;
If it is determined that the number of extracted feature points is greater than or equal to the third threshold, the feature amount is calculated based on nearby feature points located in the peripheral region of the extracted feature points;
An image processing method characterized by changing the range of the peripheral area when it is determined that the extracted score is smaller than a third threshold.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、
特定した画素領域の画素の個数を計数し、
特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断し、
特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出し、
抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定し、
決定した近傍の特徴点の点数を計数し、
計数した特徴点の点数が第2の閾値以下であるか否かを判定し、
計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、
計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または、前記第1の閾値並びに前記周辺領域の範囲を変更することを特徴とする画像処理方法。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing method for calculating a feature amount indicating a feature of an image based on a feature point, and performing similarity determination between images based on the calculated feature amount,
Count the number of pixels in the specified pixel area,
Determining whether the number of pixels in the identified pixel region is greater than or equal to a first threshold;
If it is determined that the number of pixels in the identified pixel area is equal to or greater than the first threshold, the feature points of the pixel area are extracted,
Determine nearby feature points located within the surrounding area of the extracted feature points,
Count the number of feature points in the neighborhood
Determine whether the number of feature points counted is less than or equal to the second threshold;
When it is determined that the counted number of feature points exceeds the second threshold, the feature amount is calculated based on the neighboring feature points;
An image processing method characterized by changing the first threshold value or the first threshold value and the range of the surrounding area when it is determined that the number of counted feature points is equal to or less than the second threshold value. .
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理方法において、
特定した画素領域の画素の個数を計数し、
特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、
それぞれ第1の閾値以上であるか否かを判断し、
前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数し、
計数した特徴点の数が最多となる画素領域の特徴点を抽出し、
抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定し、
決定した近傍の特徴点の点数を計数し、
計数した特徴点の点数が第2の閾値以下であるか否かを判定し、
計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、
計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更することを特徴とする画像処理方法。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing method for calculating a feature amount indicating a feature of an image based on a feature point, and performing similarity determination between images based on the calculated feature amount,
Count the number of pixels in the specified pixel area,
When determining whether or not the number of pixels in the identified pixel region is equal to or greater than the first threshold, a plurality of different first thresholds are set,
Determine whether each is greater than or equal to the first threshold,
If it is determined that it is equal to or greater than the first threshold, the feature points of the pixel region are calculated, and the number of feature points is counted for each of a plurality of different first thresholds,
Extract the feature points of the pixel area where the number of counted feature points is the largest,
Determine nearby feature points located within the surrounding area of the extracted feature points,
Count the number of feature points in the neighborhood
Determine whether the number of feature points counted is less than or equal to the second threshold;
When it is determined that the counted number of feature points exceeds the second threshold, the feature amount is calculated based on the neighboring feature points;
An image processing method, comprising: changing a range of the surrounding area when it is determined that the number of counted feature points is equal to or less than a second threshold value.
前記周辺領域は、2値の画像の一又は複数の画素からなる画素ブロックで構成され、前記周辺領域の範囲の変更は、前記画素ブロックのサイズ又はブロック数を変更することにより行うことを特徴とする請求項4から7の何れかに一つに記載の画像処理方法。   The peripheral area is composed of pixel blocks including one or a plurality of pixels of a binary image, and the range of the peripheral area is changed by changing the size or the number of blocks of the pixel block. The image processing method according to any one of claims 4 to 7. 2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、
特定した画素領域の画素の個数を計数する手段と、
特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する手段と、
特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数する手段と、
計数した特徴点の数が第2の閾値以下であるか否かを判定する手段と
を備え、
計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更するようにしてあることを特徴とする画像処理装置。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing apparatus that calculates a feature amount indicating an image feature based on a feature point and performs similarity determination between images based on the calculated feature amount.
Means for counting the number of pixels in the identified pixel region;
Means for determining whether or not the number of pixels in the identified pixel region is equal to or greater than a first threshold;
Means for calculating the feature points of the pixel region and counting the number of feature points when it is determined that the number of pixels in the identified pixel region is equal to or greater than the first threshold;
Means for determining whether or not the counted number of feature points is equal to or less than a second threshold;
When it is determined that the counted number of feature points exceeds the second threshold value, the feature amount is calculated based on the feature points extracted from the pixel area, and the counted number of feature points is equal to or less than the second threshold value. If it is determined that the first threshold value is changed, the image processing apparatus is characterized in that the first threshold value is changed.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、
特定した画素領域の画素の個数を計数する手段と、
特定した画素領域の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断する判断手段と、
前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数する手段と
を備え、
計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出するようにしてあることを特徴とする画像処理装置。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing apparatus that calculates a feature amount indicating an image feature based on a feature point and performs similarity determination between images based on the calculated feature amount.
Means for counting the number of pixels in the identified pixel region;
Determining means for determining whether or not the number of specified pixel regions is equal to or greater than a first threshold, and setting a plurality of different first thresholds and determining whether or not each is greater than or equal to the first threshold; ,
Means for calculating the feature points of the pixel region when it is determined that the threshold value is greater than or equal to the first threshold, and counting the number of feature points for each of a plurality of different first thresholds;
An image processing apparatus characterized in that a feature amount is calculated based on a feature point extracted from a pixel region where the number of counted feature points is the largest.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、
原稿画像の領域を複数に分割する手段と、
分割した各々の領域に対して第1の閾値を設定する手段と、
分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数する手段と、
分割された領域において特定した画素領域の画素の個数が、分割された領域における第1の閾値以上であるか否かを判断する手段と、
分割された領域において特定した画素領域の画素の個数が前記分割された領域における第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数する手段と、
計数した特徴点の数が第2の閾値以下であるか否かを判定する手段と
を備え、
計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出し、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更するようにしてあることを特徴とする画像処理装置。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing apparatus that calculates a feature amount indicating an image feature based on a feature point and performs similarity determination between images based on the calculated feature amount.
Means for dividing a document image area into a plurality of areas;
Means for setting a first threshold for each of the divided areas;
Means for counting the number of pixels in the specified pixel area in each of the divided areas;
Means for determining whether or not the number of pixels in the pixel area specified in the divided area is equal to or greater than a first threshold in the divided area;
Means for calculating the feature points of the pixel region and counting the number of feature points when it is determined that the number of pixels in the pixel region specified in the divided region is equal to or greater than a first threshold value in the divided region; When,
Means for determining whether or not the counted number of feature points is equal to or less than a second threshold;
When it is determined that the counted number of feature points exceeds the second threshold value, the feature amount is calculated based on the feature points extracted from the pixel area, and the counted number of feature points is equal to or less than the second threshold value. If it is determined that the first threshold value is changed, the image processing apparatus is characterized in that the first threshold value is changed.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、
抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定する手段と、
決定した近傍の特徴点の点数を計数する手段と、
計数した特徴点の点数が第2の閾値以下であるか否かを判定する手段と
を備え、
計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更するようにしてあることを特徴とする画像処理装置。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing apparatus that calculates a feature amount indicating an image feature based on a feature point and performs similarity determination between images based on the calculated feature amount.
Means for determining neighboring feature points located within the peripheral region of the extracted feature points;
Means for counting the number of feature points in the determined neighborhood;
Means for determining whether or not the number of counted feature points is equal to or less than a second threshold value,
When it is determined that the number of feature points counted exceeds the second threshold, the feature amount is calculated based on the neighboring feature points, and it is determined that the score of the counted feature points is equal to or less than the second threshold. In some cases, the range of the peripheral region is changed.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、
特徴点を抽出する際、所定の範囲内で特徴点数を計数する手段と、
計数した特徴点から、処理対象となる領域に含まれる特徴点を抽出する手段と、
抽出した特徴点の点数が第3の閾値より小さいか否かを判定する手段と
を備え、
抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて前記特徴量を算出し、抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更するようにしてあることを特徴とする画像処理装置。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing apparatus that calculates a feature amount indicating an image feature based on a feature point and performs similarity determination between images based on the calculated feature amount.
Means for counting the number of feature points within a predetermined range when extracting feature points;
Means for extracting feature points included in the region to be processed from the counted feature points;
Means for determining whether or not the number of extracted feature points is smaller than a third threshold;
If it is determined that the number of extracted feature points is greater than or equal to the third threshold, the feature amount is calculated based on neighboring feature points located in the peripheral region of the extracted feature points, and the extracted number of points is An image processing apparatus, wherein when it is determined that the threshold value is smaller than 3, the range of the peripheral area is changed.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、
特定した画素領域の画素の個数を計数する手段と、
特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する手段と、
特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出する手段と、
抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定する手段と、
決定した近傍の特徴点の点数を計数する手段と、
計数した特徴点の点数が第2の閾値以下であるか否かを判定する手段と
を備え、
計数した特徴点の点数が前記第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または前記第1の閾値並びに前記周辺領域の範囲を変更するようにしてあることを特徴とする画像処理装置。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing apparatus that calculates a feature amount indicating an image feature based on a feature point and performs similarity determination between images based on the calculated feature amount.
Means for counting the number of pixels in the identified pixel region;
Means for determining whether or not the number of pixels in the identified pixel region is equal to or greater than a first threshold;
Means for extracting a feature point of the pixel area when it is determined that the number of pixels in the identified pixel area is equal to or greater than a first threshold;
Means for determining neighboring feature points located within the peripheral region of the extracted feature points;
Means for counting the number of feature points in the determined neighborhood;
Means for determining whether or not the number of counted feature points is equal to or less than a second threshold value,
When it is determined that the score of the counted feature points exceeds the second threshold, the feature amount is calculated based on the neighboring feature points, and the score of the counted feature points is equal to or less than the second threshold. The image processing apparatus according to claim 1, wherein the first threshold value or the first threshold value and the range of the peripheral region are changed when the determination is made.
2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定し、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出し、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出し、算出した特徴量に基づいて画像同士の類似判定を行う画像処理装置において、
特定した画素領域の画素の個数を計数する手段と、
特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断する判断手段と、
前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値に特徴点の数を計数する手段と、
計数した特徴点の数が最多となる画素領域の特徴点を抽出する手段と、
抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定する手段と、
決定した近傍の特徴点の点数を計数する手段と、
計数した特徴点の点数が第2の閾値以下であるか否かを判定する手段と
を備え、
計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出し、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更するようにしてあることを特徴とする画像処理装置。
A plurality of pixel regions adjacent to pixels determined to have the same pixel value from a binary image are identified, and feature points of the pixel region are extracted based on the coordinate values of the pixels of the identified pixel region and extracted. In an image processing apparatus that calculates a feature amount indicating an image feature based on a feature point and performs similarity determination between images based on the calculated feature amount.
Means for counting the number of pixels in the identified pixel region;
When determining whether or not the number of pixels in the specified pixel area is equal to or greater than the first threshold, a plurality of different first thresholds are set, and determination is performed to determine whether or not each is greater than or equal to the first threshold Means,
Means for calculating the feature points of the pixel region when it is determined to be greater than or equal to the first threshold, and counting the number of feature points to a plurality of different first thresholds;
Means for extracting feature points of the pixel region where the number of counted feature points is the largest;
Means for determining neighboring feature points located within the peripheral region of the extracted feature points;
Means for counting the number of feature points in the determined neighborhood;
Means for determining whether or not the number of counted feature points is equal to or less than a second threshold value,
When it is determined that the number of feature points counted exceeds the second threshold, the feature amount is calculated based on the neighboring feature points, and it is determined that the score of the counted feature points is equal to or less than the second threshold. In some cases, the range of the peripheral region is changed.
前記周辺領域は、2値の画像の一又は複数の画素からなる画素ブロックで構成され、前記周辺領域の範囲の変更は、前記画素ブロックのサイズ又はブロック数を変更することにより行うようにしてあることを特徴とする請求項12から15の何れか一つに記載の画像処理装置。   The peripheral area is composed of pixel blocks composed of one or a plurality of pixels of a binary image, and the range of the peripheral area is changed by changing the size or the number of blocks of the pixel block. The image processing apparatus according to claim 12, wherein the image processing apparatus is an image processing apparatus. 請求項9から16のいずれか一つに記載の画像処理装置と、
該画像処理装置で処理された画像の形成を行う画像形成手段と
を備えることを特徴とする画像形成装置。
An image processing apparatus according to any one of claims 9 to 16,
An image forming apparatus comprising: an image forming unit that forms an image processed by the image processing apparatus.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップと
を実行させることを特徴とするコンピュータプログラム。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region In a computer program for calculating a feature amount indicating the feature of an image based on the extracted feature point, and determining similarity between images based on the calculated feature amount,
Causing the computer to count the number of pixels in the identified pixel area;
Causing the computer to determine whether the number of pixels in the identified pixel region is greater than or equal to a first threshold;
When the computer determines that the number of pixels in the specified pixel region is equal to or greater than the first threshold, calculating the feature points of the pixel region and counting the number of feature points;
Causing the computer to determine whether the number of feature points counted is less than or equal to a second threshold;
Causing the computer to calculate the feature amount based on the feature points extracted from the pixel area when it is determined that the number of counted feature points exceeds a second threshold;
A computer program for causing a computer to execute a step of changing the first threshold value when it is determined that the number of counted feature points is equal to or less than a second threshold value.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出させるステップと
を実行させることを特徴とするコンピュータプログラム。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region In a computer program for calculating a feature amount indicating the feature of an image based on the extracted feature point, and determining similarity between images based on the calculated feature amount,
Causing the computer to count the number of pixels in the identified pixel area;
When determining whether or not the number of pixels in the specified pixel region is greater than or equal to the first threshold, the computer sets a plurality of different first thresholds and determines whether or not each is greater than or equal to the first threshold. A step to make a decision;
A step of causing the computer to calculate the feature points of the pixel region and to count the number of feature points for each of a plurality of different first threshold values when it is determined that the value is equal to or greater than the first threshold value;
A computer program for causing a computer to calculate a feature amount based on a feature point extracted from a pixel region having the largest number of counted feature points.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、
コンピュータに、原稿画像の領域を複数に分割させるステップと、
コンピュータに、分割された各々の領域に対して第1の閾値を設定させるステップと、
コンピュータに、分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が、分割された領域における第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、分割された領域において特定した画素領域の画素の個数が前記設定された第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップと
を実行させることを特徴とするコンピュータプログラム。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region In a computer program for calculating a feature amount indicating the feature of an image based on the extracted feature point, and determining similarity between images based on the calculated feature amount,
Causing the computer to divide the document image area into a plurality of areas;
Causing the computer to set a first threshold for each divided region;
Causing the computer to count the number of pixels in the specified pixel area in each divided area;
Causing the computer to determine whether or not the number of pixels in the identified pixel area is equal to or greater than a first threshold in the divided area;
When the computer determines that the number of pixels in the specified pixel area in the divided areas is equal to or greater than the set first threshold, the computer calculates feature points of the pixel area and counts the number of feature points Steps,
Causing the computer to determine whether the number of feature points counted is less than or equal to a second threshold;
Causing the computer to calculate the feature amount based on the feature points extracted from the pixel area when it is determined that the number of counted feature points exceeds a second threshold;
A computer program for causing a computer to execute a step of changing the first threshold value when it is determined that the number of counted feature points is equal to or less than a second threshold value.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、
コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、
コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップと
を実行させることを特徴とするコンピュータプログラム。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region In a computer program for calculating a feature amount indicating the feature of an image based on the extracted feature point, and determining similarity between images based on the calculated feature amount,
Causing a computer to determine nearby feature points located within a peripheral region of the extracted feature points;
Causing the computer to count the number of nearby feature points determined;
Causing the computer to determine whether the counted number of feature points is equal to or less than a second threshold;
If the computer determines that the counted number of feature points exceeds a second threshold, calculating the feature amount based on the nearby feature points;
A computer program for causing a computer to execute a step of changing a range of the peripheral area when it is determined that the number of counted feature points is equal to or less than a second threshold value.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、
コンピュータに、特徴点を抽出する際、所定の範囲内で特徴点数を計数させるステップと、
コンピュータに、抽出した特徴点の点数が第3の閾値より小さいか否かを判定させるステップと、
コンピュータに、抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて、前記特徴量を算出させるステップと、
コンピュータに、抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更するステップと
を実行させることを特徴とするコンピュータプログラム。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region In a computer program for calculating a feature amount indicating the feature of an image based on the extracted feature point, and determining similarity between images based on the calculated feature amount,
Causing the computer to count feature points within a predetermined range when extracting feature points; and
Allowing the computer to determine whether the number of extracted feature points is less than a third threshold;
When the computer determines that the number of extracted feature points is equal to or greater than a third threshold, calculating the feature amount based on neighboring feature points located in a peripheral region of the extracted feature points; ,
A computer program for causing a computer to execute a step of changing a range of the peripheral area when it is determined that the extracted score is smaller than a third threshold value.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出させるステップと、
コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、
コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の点数が前記第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または前記第1の閾値並びに前記周辺領域の範囲を変更させるステップと
を実行させることを特徴とするコンピュータプログラム。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region In a computer program for calculating a feature amount indicating the feature of an image based on the extracted feature point, and determining similarity between images based on the calculated feature amount,
Causing the computer to count the number of pixels in the identified pixel area;
Causing the computer to determine whether the number of pixels in the identified pixel region is greater than or equal to a first threshold;
If the computer determines that the number of pixels in the specified pixel area is equal to or greater than the first threshold, extracting a feature point of the pixel area;
Causing a computer to determine nearby feature points located within a peripheral region of the extracted feature points;
Causing the computer to count the number of nearby feature points determined;
Causing the computer to determine whether the counted number of feature points is equal to or less than a second threshold;
Causing the computer to calculate the feature amount based on the neighboring feature points when it is determined that the score of the counted feature points exceeds the second threshold;
Causing the computer to change the first threshold value or the first threshold value and the range of the surrounding area when it is determined that the number of feature points counted is less than or equal to the second threshold value. A computer program characterized by the above.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムにおいて、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が最多となる画素領域の特徴点を抽出させるステップと、
コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、
コンピュータに、決定した近傍の特徴点の点数させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップと
を実行させることを特徴とするコンピュータプログラム。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region In a computer program for calculating a feature amount indicating the feature of an image based on the extracted feature point, and determining similarity between images based on the calculated feature amount,
Causing the computer to count the number of pixels in the identified pixel area;
When determining whether or not the number of pixels in the specified pixel region is greater than or equal to the first threshold, the computer sets a plurality of different first thresholds and determines whether or not each is greater than or equal to the first threshold. A step for judging,
A step of causing the computer to calculate the feature points of the pixel region and to count the number of feature points for each of a plurality of different first threshold values when it is determined that the value is equal to or greater than the first threshold value;
Causing the computer to extract the feature points of the pixel region having the largest number of feature points counted;
Causing a computer to determine nearby feature points located within a peripheral region of the extracted feature points;
Letting the computer score points of the determined nearby feature points;
Causing the computer to determine whether the counted number of feature points is equal to or less than a second threshold;
If the computer determines that the counted number of feature points exceeds a second threshold, calculating the feature amount based on the nearby feature points;
A computer program for causing a computer to execute a step of changing a range of the peripheral area when it is determined that the number of counted feature points is equal to or less than a second threshold value.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、特定した画素領域の画素の個数が前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップと
を実行させるコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region , A computer-readable recording medium in which a computer program for calculating a feature amount indicating an image feature based on the extracted feature point and determining similarity between images based on the calculated feature amount is recorded In
Causing the computer to count the number of pixels in the identified pixel area;
Causing the computer to determine whether the number of pixels in the identified pixel region is greater than or equal to a first threshold;
When the computer determines that the number of pixels in the specified pixel region is equal to or greater than the first threshold, calculating the feature points of the pixel region and counting the number of feature points;
Causing the computer to determine whether the number of feature points counted is less than or equal to a second threshold;
Causing the computer to calculate the feature amount based on the feature points extracted from the pixel area when it is determined that the number of counted feature points exceeds a second threshold;
And a computer program for executing the step of changing the first threshold when it is determined that the counted number of feature points is equal to or less than the second threshold. A readable recording medium.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が最多となる画素領域から抽出した特徴点に基づいて特徴量を算出させるステップと
を実行させるコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region , A computer-readable recording medium in which a computer program for calculating a feature amount indicating an image feature based on the extracted feature point and determining similarity between images based on the calculated feature amount is recorded In
Causing the computer to count the number of pixels in the identified pixel area;
When determining whether or not the number of pixels in the specified pixel region is greater than or equal to the first threshold, the computer sets a plurality of different first thresholds and determines whether or not each is greater than or equal to the first threshold. A step for judging,
A step of causing the computer to calculate the feature points of the pixel region and to count the number of feature points for each of a plurality of different first threshold values when it is determined that the value is equal to or greater than the first threshold value;
A computer program for executing a step of calculating a feature amount based on a feature point extracted from a pixel region having the largest number of feature points counted is recorded on the computer. Possible recording media.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、
コンピュータに、原稿画像の領域を複数に分割させるステップと、
コンピュータに、分割された各々の領域に対して第1の閾値を設定させるステップと、
コンピュータに、分割されたそれぞれの領域において、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、分割された領域において特定した画素領域の画素の個数が、前記分割された領域における第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、分割された領域において特定した画素領域の画素の個数が前記分割された領域における第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値を超えると判定した場合は前記画素領域から抽出した特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の数が第2の閾値以下であると判定した場合は前記第1の閾値を変更させるステップと
を実行させるコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region , A computer-readable recording medium in which a computer program for calculating a feature amount indicating an image feature based on the extracted feature point and determining similarity between images based on the calculated feature amount is recorded In
Causing the computer to divide the document image area into a plurality of areas;
Causing the computer to set a first threshold for each divided region;
Causing the computer to count the number of pixels in the specified pixel area in each divided area;
Causing the computer to determine whether or not the number of pixels in the pixel area identified in the divided area is equal to or greater than a first threshold in the divided area;
When the computer determines that the number of pixels in the pixel area specified in the divided area is equal to or greater than the first threshold in the divided area, the feature point of the pixel area is calculated and the number of feature points is calculated. A step of counting;
Causing the computer to determine whether the number of feature points counted is less than or equal to a second threshold;
Causing the computer to calculate the feature amount based on the feature points extracted from the pixel area when it is determined that the number of counted feature points exceeds a second threshold;
And a computer program for executing the step of changing the first threshold when it is determined that the counted number of feature points is equal to or less than the second threshold. A readable recording medium.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、
コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、
コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップと
を実行させるコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region , A computer-readable recording medium in which a computer program for calculating a feature amount indicating an image feature based on the extracted feature point and determining similarity between images based on the calculated feature amount is recorded In
Causing a computer to determine nearby feature points located within a peripheral region of the extracted feature points;
Causing the computer to count the number of nearby feature points determined;
Causing the computer to determine whether the counted number of feature points is equal to or less than a second threshold;
If the computer determines that the counted number of feature points exceeds a second threshold, calculating the feature amount based on the nearby feature points;
And a computer program for executing the step of changing the range of the peripheral area when it is determined that the score of the counted feature points is equal to or less than a second threshold value. A readable recording medium.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、
コンピュータに、特徴点を抽出する際、所定の範囲内で特徴点数を計数させるステップと、
コンピュータに、計数した特徴点数から、処理対象となる領域に含まれる特徴点を抽出させるステップと、
コンピュータに、抽出した特徴点の点数が第3の閾値より小さいか否かを判定させるステップと、
コンピュータに、抽出した特徴点の点数が第3の閾値以上であると判定した場合は、抽出した特徴点の周辺領域内に位置する近傍の特徴点に基づいて、前記特徴量を算出させるステップと、
コンピュータに、抽出した点数が第3の閾値より小さいと判定した場合は前記周辺領域の範囲を変更させるステップと
を実行させるコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region , A computer-readable recording medium in which a computer program for calculating a feature amount indicating an image feature based on the extracted feature point and determining similarity between images based on the calculated feature amount is recorded In
Causing the computer to count feature points within a predetermined range when extracting feature points; and
Causing the computer to extract feature points included in the region to be processed from the counted feature points;
Allowing the computer to determine whether the number of extracted feature points is less than a third threshold;
When the computer determines that the number of extracted feature points is equal to or greater than a third threshold, calculating the feature amount based on neighboring feature points located in a peripheral region of the extracted feature points; ,
A computer program for executing a step of changing the range of the peripheral area when it is determined that the extracted score is smaller than a third threshold value is recorded on the computer. recoding media.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であると判断した場合、前記画素領域の特徴点を抽出させるステップと、
コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、
コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の点数が前記第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の点数が前記第2の閾値以下であると判定した場合は前記第1の閾値、または前記第1の閾値並びに前記周辺領域の範囲を変更させるステップと
を実行させるコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region , A computer-readable recording medium in which a computer program for calculating a feature amount indicating an image feature based on the extracted feature point and determining similarity between images based on the calculated feature amount is recorded In
Causing the computer to count the number of pixels in the identified pixel area;
Causing the computer to determine whether the number of pixels in the identified pixel region is greater than or equal to a first threshold;
If the computer determines that the number of pixels in the specified pixel area is equal to or greater than the first threshold, extracting a feature point of the pixel area;
Causing a computer to determine nearby feature points located within a peripheral region of the extracted feature points;
Causing the computer to count the number of nearby feature points determined;
Causing the computer to determine whether the counted number of feature points is equal to or less than a second threshold;
Causing the computer to calculate the feature amount based on the neighboring feature points when it is determined that the score of the counted feature points exceeds the second threshold;
A computer for causing the computer to execute the step of changing the first threshold value or the first threshold value and the range of the surrounding area when it is determined that the number of feature points counted is equal to or less than the second threshold value. A computer-readable recording medium having a program recorded thereon.
コンピュータに、2値の画像から画素値が同じであると判断される画素が隣り合う画素領域を複数特定させ、特定した画素領域の画素の座標値に基づいて該画素領域の特徴点を抽出させ、抽出した特徴点に基づいて画像の特徴を示す特徴量を算出させ、算出した特徴量に基づいて画像同士の類似の判定をさせるコンピュータプログラムを記録してあるコンピュータでの読み取りが可能な記録媒体において、
コンピュータに、特定した画素領域の画素の個数を計数させるステップと、
コンピュータに、特定した画素領域の画素の個数が第1の閾値以上であるか否かを判断する際、複数の異なる第1の閾値を設定し、それぞれ第1の閾値以上であるか否かを判断させるステップと、
コンピュータに、前記第1の閾値以上であると判断した場合、前記画素領域の特徴点を算出するとともに、複数の異なる第1の閾値毎に特徴点の数を計数させるステップと、
コンピュータに、計数した特徴点の数が最多となる画素領域の特徴点を抽出させるステップと、
コンピュータに、抽出した特徴点の周辺領域内に位置する近傍の特徴点を決定させるステップと、
コンピュータに、決定した近傍の特徴点の点数を計数させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であるか否かを判定させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値を超えると判定した場合は前記近傍の特徴点に基づいて前記特徴量を算出させるステップと、
コンピュータに、計数した特徴点の点数が第2の閾値以下であると判定した場合は前記周辺領域の範囲を変更させるステップと
を実行させるコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
Let a computer specify a plurality of adjacent pixel regions that are judged to have the same pixel value from a binary image, and extract feature points of the pixel region based on the coordinate values of the pixels of the specified pixel region , A computer-readable recording medium in which a computer program for calculating a feature amount indicating an image feature based on the extracted feature point and determining similarity between images based on the calculated feature amount is recorded In
Causing the computer to count the number of pixels in the identified pixel area;
When determining whether or not the number of pixels in the specified pixel region is greater than or equal to the first threshold, the computer sets a plurality of different first thresholds and determines whether or not each is greater than or equal to the first threshold. A step for judging,
A step of causing the computer to calculate the feature points of the pixel region and to count the number of feature points for each of a plurality of different first threshold values when it is determined that the value is equal to or greater than the first threshold value;
Causing the computer to extract the feature points of the pixel region having the largest number of feature points counted;
Causing a computer to determine nearby feature points located within a peripheral region of the extracted feature points;
Causing the computer to count the number of nearby feature points determined;
Causing the computer to determine whether the counted number of feature points is equal to or less than a second threshold;
If the computer determines that the counted number of feature points exceeds a second threshold, calculating the feature amount based on the nearby feature points;
And a computer program for executing the step of changing the range of the peripheral area when it is determined that the score of the counted feature points is equal to or less than a second threshold value. A readable recording medium.
JP2008127532A 2007-06-13 2008-05-14 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium Active JP4340711B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2008127532A JP4340711B2 (en) 2007-06-13 2008-05-14 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
CN2008101259338A CN101324928B (en) 2007-06-13 2008-06-11 Image processing method, image processing apparatus, and image forming apparatus
US12/138,268 US8121414B2 (en) 2007-06-13 2008-06-12 Image processing method, image processing apparatus, and image forming apparatus
US13/354,937 US8798371B2 (en) 2007-06-13 2012-01-20 Image processing method, image processing apparatus, and image forming apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2007156719 2007-06-13
JP2008127532A JP4340711B2 (en) 2007-06-13 2008-05-14 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Publications (2)

Publication Number Publication Date
JP2009020867A true JP2009020867A (en) 2009-01-29
JP4340711B2 JP4340711B2 (en) 2009-10-07

Family

ID=40188463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008127532A Active JP4340711B2 (en) 2007-06-13 2008-05-14 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Country Status (2)

Country Link
JP (1) JP4340711B2 (en)
CN (1) CN101324928B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440622A (en) * 2013-07-31 2013-12-11 北京中科金财科技股份有限公司 Image data optimization method and device
EP3173975A1 (en) * 2015-11-30 2017-05-31 Delphi Technologies, Inc. Method for identification of candidate points as possible characteristic points of a calibration pattern within an image of the calibration pattern
CN107437258B (en) * 2016-05-27 2020-11-06 株式会社理光 Feature extraction method, motion state estimation method, and motion state estimation device
CN107784256B (en) * 2016-08-30 2021-02-05 合肥君正科技有限公司 Multi-window image feature point statistical method and device
US10504733B2 (en) 2017-01-19 2019-12-10 Texas Instruments Incorporated Etching platinum-containing thin film using protective cap layer
CN108596197B (en) * 2018-05-15 2020-08-25 汉王科技股份有限公司 Seal matching method and device
CN109640065A (en) * 2018-10-26 2019-04-16 深圳市华星光电技术有限公司 A method of for picture data processing
CN111613162B (en) * 2020-05-20 2023-12-05 利亚德光电股份有限公司 Fault detection method and device, LED display and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4118886B2 (en) * 2005-01-21 2008-07-16 シャープ株式会社 Image processing apparatus, image forming apparatus, image reading processing apparatus, image processing method, image processing program, and computer-readable recording medium

Also Published As

Publication number Publication date
JP4340711B2 (en) 2009-10-07
CN101324928B (en) 2011-05-11
CN101324928A (en) 2008-12-17

Similar Documents

Publication Publication Date Title
US8320683B2 (en) Image processing method, image processing apparatus, image reading apparatus, and image forming apparatus
JP4340711B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
US8798371B2 (en) Image processing method, image processing apparatus, and image forming apparatus
US8144994B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, and recording medium
JP4538507B2 (en) Image collation method, image collation apparatus, image data output processing apparatus, program, and storage medium
JP4362528B2 (en) Image collation apparatus, image collation method, image data output processing apparatus, program, and recording medium
US8107734B2 (en) Image processing apparatus, and method for performing document matching using extracted feature points of connected image components
JP4469885B2 (en) Image collation apparatus, image collation method, image data output processing apparatus, program, and recording medium
JP4324628B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, computer program, and recording medium
JP4913094B2 (en) Image collation method, image collation apparatus, image data output processing apparatus, program, and storage medium
US8300944B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, image processing system, and storage medium
JP4362538B2 (en) Image processing apparatus, image forming apparatus, image transmitting apparatus, image reading apparatus, image processing system, image processing method, image processing program, and recording medium thereof
US8107738B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus and memory product
JP2009232085A (en) Image processing method, image processor, image forming apparatus, program, and storage medium
JP4362537B2 (en) Image processing apparatus, image forming apparatus, image transmitting apparatus, image reading apparatus, image processing system, image processing method, image processing program, and recording medium thereof
JP4361946B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium storing the program
JP2009206658A (en) Image processing method, image processor, image forming apparatus, program, and storage medium
JP4393556B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, computer program, and computer-readable recording medium
JP2008245147A (en) Image processor, image reader, image forming apparatus, image processing method, computer program and recording medium
JP2009048618A (en) Document extracting method, document extracting apparatus, computer program, and recording medium
JP2008123456A (en) Image processing method, image processing device, image forming device, computer program, and recording medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090317

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090427

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4340711

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120710

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120710

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130710

Year of fee payment: 4