JP2010134564A - Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program - Google Patents
Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program Download PDFInfo
- Publication number
- JP2010134564A JP2010134564A JP2008308018A JP2008308018A JP2010134564A JP 2010134564 A JP2010134564 A JP 2010134564A JP 2008308018 A JP2008308018 A JP 2008308018A JP 2008308018 A JP2008308018 A JP 2008308018A JP 2010134564 A JP2010134564 A JP 2010134564A
- Authority
- JP
- Japan
- Prior art keywords
- gradient
- image
- circle
- estimated
- calculating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Analysis (AREA)
Abstract
Description
本発明は、円形状有無判定を行うことを可能にする画像処理装置、画像処理システム、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録した記録媒体に関する。 The present invention relates to an image processing apparatus, an image processing system, an image processing method, an image processing program, and a recording medium on which an image processing program is recorded, which makes it possible to determine whether or not a circular shape is present.
印鑑は、私文書および公文書の正当性の証明、手続者の身分証明等の役割のために広く使用されている。ところで、印鑑の押された書類の正当性を判断するためには、その書類作成に用いられた印鑑が予め登録されている印鑑と同一のものであるか否かを判定する必要がある。そしてこの判定は、実際にはその書類中の印影と予め登録されている印影とを照合し、両印影が一致しているか否かを判定することで行なっている。この照合作業のすべてを人間が行うのは非常に能率が悪いため、照合作業を補助支援するための装置が各種開発されている。 Seals are widely used for roles such as proof of legitimacy of private documents and official documents, and identification of procedures. By the way, in order to determine the legitimacy of a document whose stamp has been pressed, it is necessary to determine whether or not the seal stamp used for creating the document is the same as that registered in advance. This determination is actually performed by comparing the imprint in the document with a pre-registered imprint and determining whether or not the two imprints match. Since it is very inefficient for humans to perform all of this collation work, various devices for assisting and supporting collation work have been developed.
特許文献1には、特定印影を含む画像の複写を防ぐために、特定印影の一部のパターンを記憶して、入力画像中にそのパターンが存在するか否かを判定する装置が記載されている。
しかしながら、特許文献1に記載の装置では、印影の一部のパターンのみを記憶して判定を行うので、印影すべてを記憶して判定を行う場合と比べて判定精度は落ちてしまい、特定印影以外の画像を誤判定してしまう。
However, in the apparatus described in
このような誤判定を防ぐために、特定印影中の円周部分が存在するか否かを先に判定し、その後、円周部分が存在すると判定された場合には、特定印影を用いて精密な判定を行う方法が考えられる。このような方法であれば、判定処理を高速化しつつ、精度良く判定を行うことができる。しかしながら、円周部分の判定においても、円周全体の画像情報を記憶していては、記憶容量が膨大になってしまうという問題があり、また、円周の一部の画像情報のみで判定を行うと十分な精度が得られないという問題がある。 In order to prevent such a misjudgment, it is first determined whether or not there is a circumferential portion in the specific imprint, and if it is determined that there is a circumferential portion thereafter, a precise imprint using the specific imprint is performed. A method for performing the determination is conceivable. With such a method, determination can be performed with high accuracy while speeding up the determination process. However, even in the determination of the circumference portion, there is a problem that the storage capacity becomes enormous if the image information of the entire circumference is stored, and the determination is made only with a part of the image information of the circumference. However, there is a problem that sufficient accuracy cannot be obtained.
本発明は上記課題を解決するためになされたものであって、画像処理装置の記憶容量が少なくても、円周画像が存在するか否かの判定を精度良く行うことを可能にする画像処理装置、画像処理システム、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録した記録媒体を提供することを目的とする。 The present invention has been made to solve the above-described problem, and enables image processing to accurately determine whether or not a circumferential image exists even when the storage capacity of the image processing apparatus is small. An object is to provide an apparatus, an image processing system, an image processing method, an image processing program, and a recording medium on which the image processing program is recorded.
本発明は、テンプレート画像の情報を記憶するテンプレート情報記憶手段と、
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段とを備えることを特徴とする画像処理装置である。
The present invention comprises a template information storage means for storing information of a template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing apparatus comprising: a circular shape presence / absence determining unit that determines whether or not a circumferential image is included in the input image based on the gradient comparison result.
また本発明は、前記推定円中心を中心とする円周状の領域であって、前記円存在可能性領域内の領域である推定円周領域を算出する推定円周算出手段を備え、
前記理想勾配算出手段は、前記推定円中心と前記推定円周領域内の注目座標とから、前記推定円中心を円の中心とし、当該注目座標を通る円周の接線の勾配である理想勾配を算出し、
前記近似勾配算出手段は、前記推定円周領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出することを特徴とする。
Further, the present invention comprises an estimated circumference calculating means for calculating an estimated circumference area that is a circumference area centered on the estimated circle center and that is an area within the circle existence possibility area,
The ideal gradient calculating means calculates an ideal gradient that is a gradient of a tangent of a circle passing through the target coordinate from the estimated circle center and the coordinate of interest in the estimated circumferential region, with the estimated circle center as the center of the circle. Calculate
The approximate gradient calculating means approximates the specific image at the target coordinate from the target coordinate in the specific image within the estimated circumferential area and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient that is a gradient of a typical tangent is calculated.
また本発明は、前記近似勾配算出手段は、前記円存在可能性領域内の特定のエッジ画素である特定エッジ画素を抽出する特定エッジ抽出手段と、前記特定エッジ画素の座標を記憶する特定エッジ記憶手段と、前記特定エッジ画素同士の座標差分を算出する第1差分算出手段とを含み、
前記特定画像は前記特定エッジ画素からなる画像であり、近似勾配の算出に用いられる注目座標は、前記特定エッジ画素から選ばれることを特徴とする。
According to the present invention, the approximate gradient calculating unit includes a specific edge extracting unit that extracts a specific edge pixel that is a specific edge pixel in the circle existence possibility region, and a specific edge storage that stores coordinates of the specific edge pixel. Means, and first difference calculation means for calculating a coordinate difference between the specific edge pixels,
The specific image is an image including the specific edge pixels, and a target coordinate used for calculating an approximate gradient is selected from the specific edge pixels.
また本発明は、前記理想勾配算出手段は、円存在可能性領域内の座標と推定円中心との座標差分を算出する第2差分算出手段と、当該座標差分を変換して、前記推定円中心を円の中心とし、円存在可能性領域内の座標を通る円周の接ベクトルを算出する理想接線ベクトル算出手段とを含むことを特徴とする。 Further, according to the present invention, the ideal gradient calculation means is a second difference calculation means for calculating a coordinate difference between the coordinates in the circle existence possibility area and the estimated circle center, and converts the coordinate difference to obtain the estimated circle center. And an ideal tangent vector calculation means for calculating a tangent vector of the circumference passing through the coordinates in the circle existence possibility region.
また本発明は、前記円形状有無判定手段は、前記勾配比較結果を記憶する勾配比較結果記憶手段と、前記勾配比較結果と円周判定閾値とに基づいて、円周画像が前記入力画像に含まれているか否かを判定する円周判定手段とを含むことを特徴とする。 Further, according to the present invention, the circular shape presence / absence determining means includes a gradient comparison result storage means for storing the gradient comparison result, and a circumferential image is included in the input image based on the gradient comparison result and a circumference determination threshold value. And a circumference determination means for determining whether or not the
また本発明は、前記円周判定閾値を変更する円周判定閾値変更手段を備えることを特徴とする。 The present invention is further characterized by comprising a circumference determination threshold value changing means for changing the circumference determination threshold value.
また本発明は、前記入力画像から特定色の画像を抽出するフィルタ手段を含み、
前記フィルタ手段によって抽出された特定色の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする。
The present invention also includes filter means for extracting an image of a specific color from the input image,
An image of a specific color extracted by the filter means is used as an input image, and it is configured to be able to determine whether or not a circumferential image is included in the input image.
また本発明は、前記特定色の画像の情報と前記特定色以外の画像の情報とを用いて2値化処理を行う2値化処理手段を含み、
前記2値化処理手段による2値化処理後の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする。
The present invention also includes binarization processing means for performing binarization processing using information on the image of the specific color and information on the image other than the specific color,
An image after binarization processing by the binarization processing means is used as an input image, and it is configured to be able to determine whether or not a circumferential image is included in the input image. .
また本発明は、前記画像処理装置と、当該画像処理装置による判定の結果を、音および光の少なくとも1つを用いてユーザに通知する通知装置とを備えることを特徴とする画像処理システムである。 According to another aspect of the present invention, there is provided an image processing system comprising: the image processing device; and a notification device that notifies a user of a result of determination by the image processing device using at least one of sound and light. .
また本発明は、入力画像において円の中心が存在すると推定される座標である推定円中心を、テンプレート画像の情報を用いて算出する推定円中心算出ステップと、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出ステップと、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出ステップと、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出ステップと、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較ステップと、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定ステップとを含むことを特徴とする画像処理方法である。
The present invention also includes an estimated circle center calculation step of calculating an estimated circle center, which is a coordinate estimated to have a circle center in the input image, using information of the template image;
A circle existence possibility area calculating step for calculating a circle existence possibility area that is an area in which the circle may exist in the input image using the information;
An ideal gradient calculation step of calculating an ideal gradient that is a gradient of a tangent of a circle passing through the coordinate of interest, with the estimated circle center being the center of the circle from the estimated circle center and the coordinate of interest in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating step for calculating an approximate gradient;
A gradient comparison step of comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
And a circular shape presence / absence determining step for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.
また本発明は、コンピュータを、
テンプレート画像の情報を記憶するテンプレート情報記憶手段と、
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段として機能させることを特徴とする画像処理プログラムである。
The present invention also provides a computer,
Template information storage means for storing information of the template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing program that functions as circular shape presence / absence determining means for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.
また本発明は、前記プログラムを記録したことを特徴とするコンピュータ読取可能な記録媒体である。 The present invention also provides a computer-readable recording medium on which the program is recorded.
本発明によれば、テンプレート画像の情報を用いて推定円中心および円存在可能性領域を算出することができ、算出された推定円中心および円存在可能性領域を用いて、理想勾配および近似勾配を算出することができ、算出された理想勾配と近似勾配との比較によって、円周画像が入力画像に含まれているか否かを判定することができる。テンプレート画像は円周全体を含む画像である必要はなく、円周の一部を含む画像であれば、推定円中心および円存在可能性領域の算出は可能である。したがって、円周画像全体の情報を記憶することなく判定を行うことができるので、テンプレート情報記憶手段が小容量の記憶手段であっても、判定を行うことができる。また、テンプレート画像の情報および理想勾配と近似勾配との比較によって判定を行うので、テンプレート画像の情報のみを用いて判定を行う装置に比べて精度良く判定を行うことができる。 According to the present invention, it is possible to calculate the estimated circle center and the circle existence possibility region using the information of the template image, and using the calculated estimated circle center and the circle existence possibility region, the ideal gradient and the approximate gradient are calculated. It is possible to calculate whether or not a circumferential image is included in the input image by comparing the calculated ideal gradient with the approximate gradient. The template image does not need to be an image including the entire circumference, and the estimated circle center and the circle existence possibility region can be calculated as long as the image includes a part of the circumference. Therefore, since the determination can be performed without storing the information on the entire circumferential image, the determination can be performed even if the template information storage unit is a small-capacity storage unit. Further, since the determination is performed by comparing the template image information and the ideal gradient with the approximate gradient, it is possible to perform the determination with higher accuracy than the apparatus that performs the determination using only the template image information.
また本発明によれば、推定円周領域を算出することができ、推定円中心と推定円周領域内の注目座標とから理想勾配を算出することができ、推定円周領域内の特定画像中の注目座標と、特定画像中の座標であって当該注目座標の近傍の座標とから近似勾配を算出することができる。したがって、理想勾配と近似勾配との比較が、推定円周領域内の注目座標に対する勾配に限られるので、画像処理装置の処理を高速化することができる。 Further, according to the present invention, an estimated circumferential area can be calculated, an ideal gradient can be calculated from the estimated circle center and a target coordinate in the estimated circumferential area, and a specific image in the estimated circumferential area can be calculated. The approximate gradient can be calculated from the target coordinates and the coordinates in the specific image and in the vicinity of the target coordinates. Therefore, since the comparison between the ideal gradient and the approximate gradient is limited to the gradient with respect to the target coordinate in the estimated circumferential region, the processing of the image processing apparatus can be speeded up.
また本発明によれば、円存在可能性領域内の特定エッジ画素を抽出し、抽出された特定エッジ画素と注目座標との座標差分から近似勾配を算出することができる。 Further, according to the present invention, it is possible to extract specific edge pixels in a circle existence possibility region and calculate an approximate gradient from the coordinate difference between the extracted specific edge pixels and the target coordinate.
また本発明によれば、推定円中心と円存在可能性領域内の座標とから座標差分を算出し、算出された座標差分から推定円中心を円の中心とし、円存在可能性領域内の座標を通る円周の接ベクトルを算出することができ、算出された接ベクトルから理想勾配を算出することができる。 Further, according to the present invention, a coordinate difference is calculated from the estimated circle center and the coordinates in the circle existence possibility region, the estimated circle center is set as the center of the circle from the calculated coordinate difference, and the coordinates in the circle existence possibility region are calculated. The tangent vector of the circumference passing through can be calculated, and the ideal gradient can be calculated from the calculated tangent vector.
また本発明によれば、勾配比較結果と円周判定閾値とに基づいて、円周画像が前記入力画像に含まれているか否かを判定することができる。 Further, according to the present invention, it is possible to determine whether or not a circumferential image is included in the input image based on the gradient comparison result and the circumferential determination threshold value.
また本発明によれば、円周判定閾値を変更することができる。したがって、たとえば、画像読取装置の経年劣化などによって入力画像の特性が変化していても、特性の変化に応じて円周判定閾値を変更することで、円形状有無の判定を一定の精度以上に保つことができる。 Further, according to the present invention, the circumference determination threshold can be changed. Therefore, for example, even if the characteristics of the input image change due to aging degradation of the image reading device, the determination of the presence or absence of a circular shape can be made more than a certain accuracy by changing the circumference determination threshold according to the change in characteristics. Can keep.
また本発明によれば、入力画像から特定色の画像を抽出し、抽出された特定色の画像を入力画像として円形状有無の判定を行うことができる。したがって、判定対象の円形状の色分布が予めわかっている場合、フィルタ手段によって、判定対象と異なる色の画像をカットすることができ、判定精度を向上することができる。また、入力画像がカラー画像であっても、精度良く判定を行うことができる。さらに、新たな入力画像は情報が少ないので、画像処理装置がより小さな構成であっても判定を行うことができる。 Further, according to the present invention, it is possible to extract an image of a specific color from an input image, and determine the presence or absence of a circular shape using the extracted image of the specific color as an input image. Therefore, when the circular color distribution of the determination target is known in advance, an image having a color different from that of the determination target can be cut by the filter unit, and the determination accuracy can be improved. Even if the input image is a color image, the determination can be made with high accuracy. Furthermore, since the new input image has less information, the determination can be made even if the image processing apparatus has a smaller configuration.
また本発明によれば、2値化処理手段によって、たとえば特定色の画像に「1」を、特定色以外の画像に「0」を対応させるような2値化処理を行うことができ、2値化処理後の画像を入力画像として円形状有無の判定を行うことができる。したがって、新たな入力画像は情報が少ないので、画像処理装置がより小さな構成であっても判定を行うことができる。 Further, according to the present invention, the binarization processing means can perform binarization processing such that, for example, “1” corresponds to an image of a specific color and “0” corresponds to an image other than the specific color. The presence / absence of a circular shape can be determined using the image after the value processing as an input image. Therefore, since the new input image has little information, the determination can be made even if the image processing apparatus has a smaller configuration.
また本発明によれば、画像処理装置による判定結果を、通知装置によって、音および光の少なくとも1つを用いてユーザに通知することができる。 Further, according to the present invention, the determination result by the image processing device can be notified to the user using at least one of sound and light by the notification device.
また本発明によれば、テンプレート画像の情報を用いて推定円中心および円存在可能性領域を算出し、算出された推定円中心および円存在可能性領域を用いて、理想勾配および近似勾配を算出することができ、算出された理想勾配と近似勾配との比較によって、円周画像が入力画像に含まれているか否かを判定することができる。テンプレート画像は円周全体を含む画像である必要はなく、円周の一部を含む画像であれば、推定円中心および円存在可能性領域の算出は可能である。したがって、円周画像全体の情報を記憶することなく判定を行うことができる。また、テンプレート画像の情報および理想勾配と近似勾配との比較によって判定を行うので、テンプレート画像の情報のみを用いて判定を行う装置に比べて精度良く判定を行うことができる。 According to the present invention, the estimated circle center and the circle existence possibility region are calculated using the template image information, and the ideal gradient and the approximate gradient are calculated using the calculated estimated circle center and the circle existence possibility region. It is possible to determine whether or not a circumferential image is included in the input image by comparing the calculated ideal gradient with the approximate gradient. The template image does not need to be an image including the entire circumference, and the estimated circle center and the circle existence possibility region can be calculated as long as the image includes a part of the circumference. Therefore, the determination can be performed without storing information on the entire circumferential image. Further, since the determination is performed by comparing the template image information and the ideal gradient with the approximate gradient, it is possible to perform the determination with higher accuracy than the apparatus that performs the determination using only the template image information.
また本発明によれば、前述した各手段の機能をコンピュータによって実現させることができ、前述した画像処理装置と同様の効果を達成することができる。 In addition, according to the present invention, the function of each unit described above can be realized by a computer, and the same effect as the above-described image processing apparatus can be achieved.
また本発明によれば、コンピュータに読取らせることによって、コンピュータに前述した各手段の機能を実現させることができる。 Further, according to the present invention, the function of each unit described above can be realized in the computer by causing the computer to read it.
本発明の第1実施形態である画像処理装置101について説明する。画像処理装置101は、原稿中に円周画像が存在するか否かを判定する装置である。たとえば画像処理装置101は、図6(a)に示す特定印影画像31中の円周画像32が原稿に存在するか否かを判定できる。また画像処理装置101は、図6(a)に示すような真円形状の円周画像32が存在するか否かの判定(以下、「真円形状有無判定」と称する)だけではなく、楕円形状の円周画像が存在するか否かの判定(以下、「楕円形状有無判定」と称する)を行うことも可能である。最初に、真円形状有無判定を行う処理(以下、「真円形状有無判定処理」と称する)に沿って、画像処理装置101について説明する。
An
図1は、画像処理装置101の構成を機能的に示すブロック図である。また図2は、画像処理装置101中の推定値算出部4の構成を機能的に示すブロック図である。また図3は、画像処理装置101中の理想勾配算出部5の構成を機能的に示すブロック図である。また図4は、画像処理装置101中の近似勾配算出部6の構成を機能的に示すブロック図である。また図5は、画像処理装置101中の円形状有無判定部8の構成を機能的に示すブロック図である。画像処理装置101は、前処理部1と、印影記憶部2と、テンプレート情報記憶手段であるテンプレート特徴記憶部3と、推定円中心算出手段および円存在可能性領域算出手段である推定値算出部4と、理想勾配算出手段である理想勾配算出部5と、近似勾配算出手段である近似勾配算出部6と、勾配比較手段である勾配比較部7と、円形状有無判定手段である円形状有無判定部8とを備えており、画像読取装置9と電気的に接続されている。上記の機能的とは、各部材のそれぞれが必ずしも独立しているわけではなく、画像処理装置101が各部材に対応する機能を発揮することができるような、記憶手段、演算手段、および制御手段が備えられているということである。以下に、各部材の機能を詳細に説明する。
FIG. 1 is a block diagram functionally showing the configuration of the
画像読取装置9はCCD(Charge Coupled Device)等の画像読取装置であり、原稿画像からの反射光像をRGB(Red Green Blue)のアナログ信号として読取り、読取ったアナログRGB信号を入力画像として前処理部1へ出力する。
The
前処理部1は、入力画像に対してA/D(アナログ/デジタル)変換を行い、アナログRGB信号をデジタルRGB信号に変換する。また、従来公知の様々な前処理を行うことができる。たとえば、デジタルRGB信号に対して、画像読取装置9の照明系、結像系および撮像系で生じる各種の歪みを取り除くシェーディング補正処理、画像読取装置9の機械的特性および光学的特性によって発生するノイズを除去するノイズ除去処理、デジタルRGB信号の各値がある一定の値以上の領域を下地領域として分離する下地除去処理、およびデジタルRGB信号に基づいて、入力画像を文字領域、面積階調画像領域、および写真領域のいずれかに分離する領域分離処理を行うことができる。また、前処理部1は入力画像の記憶手段としての機能も兼ねており、様々な処理を施した後の入力画像を記憶しておくこともできる。たとえば、画像読取装置9によって読取られた原稿がA4サイズの原稿である場合にはA4サイズの入力画像が記憶される。
The
印影記憶部2は、HDD(ハードディスクドライブ)等の記憶手段で構成され、図6(a)に示す特定印影画像31の画像情報を記憶する。また印影記憶部2は、後述する真円判定用テンプレートの画像情報および真円判定用テンプレートの特徴を記憶していてもよく、画像処理装置101外の記憶装置であってもよい。
The
テンプレート特徴記憶部3は、真円判定用テンプレートの特徴を記憶する。真円判定用テンプレートの特徴は、印影記憶部2から読み出された真円判定用テンプレートの画像情報に基づいて算出されたものであってもよいし、印影記憶部2に記憶されている真円判定用テンプレートの特徴をそのまま記憶したものであってもよい。
The template
図6は、真円判定用テンプレートの特徴について説明するための図である。図6では、輝度(または明度等)に所定の上限値および下限値を設け、輝度(または明度等)が上限値より大きい、または下限値より小さい画素を白く、輝度(または明度等)が上限値より小さく、下限値より大きい画素を黒く描いている。図6(a),(b)に示すように、真円判定用テンプレート33は、特定印影画像31の一部34に含まれ、真円形状の円周画像32の一部を含む、斜線部分の領域の画像である。また図6(b)に示すように、真円判定用テンプレート33は各小領域(以下、「テンプレート小領域」と称する)に分割されている。
FIG. 6 is a diagram for explaining the characteristics of the perfect circle determination template. In FIG. 6, a predetermined upper limit value and lower limit value are set for luminance (or lightness, etc.), pixels whose luminance (or lightness, etc.) is greater than or lower than the upper limit value are white, and luminance (or lightness, etc.) is upper limit. Pixels smaller than the value and larger than the lower limit value are drawn in black. As shown in FIGS. 6A and 6B, the perfect
図6(b)の目盛は、真円判定用テンプレート33内での1つの小領域の位置を表すテンプレート小領域座標を示す目盛であり、図6(c)の目盛は、真円判定用テンプレート33内での1つの画素の位置を表すテンプレート画素座標を示す目盛である。図6(c)は、20画素×10画素の領域の画像で構成された1つのテンプレート小領域35(テンプレート小領域座標が(v,f)のテンプレート小領域)を示している。また、テンプレート小領域は20画素×10画素以外の、他のサイズの画像で構成されていてもよい。
The scale in FIG. 6B is a scale indicating template small area coordinates representing the position of one small area in the perfect
テンプレート小領域において、輝度(または明度等)が所定の上限値より小さく、所定の下限値より大きい画素(以下、「所定画素」と称する)の数(図6(c)において黒く描かれた画素の画素数)を、そのテンプレート小領域の特徴量と呼ぶ。図6(c)からテンプレート小領域35の特徴量は100である。
In the small template region, the number of pixels (hereinafter referred to as “predetermined pixels”) whose luminance (or brightness, etc.) is smaller than a predetermined upper limit value and larger than a predetermined lower limit value (pixels drawn in black in FIG. 6C) Is referred to as the feature amount of the template small region. As shown in FIG. 6C, the feature amount of the template
また、図6(b)のようにすべてのテンプレート小領域が同じ形状の矩形である場合には、そのテンプレート小領域の始点となるテンプレート画素座標(以下、「テンプレート小領域始点」と称する)によって、各テンプレート小領域座標を代表して表すことができる。また、1つの真円判定用テンプレート33から、すべてのテンプレート小領域に対して、テンプレート小領域始点と特徴量との組合せを算出することができる。そのようなテンプレート小領域始点と特徴量との組合せからなる群を、真円判定用テンプレート33の特徴と呼ぶ。後述するように、真円判定用テンプレート33の特徴は、入力画像中の推定円中心および円存在可能性領域を算出するために用いられるので、真円判定用テンプレート33は真円形状の円周画像32すべてを含む画像である必要がなく、推定円中心および円存在可能性領域を算出できる最小限の画像でよい。推定円中心および円存在可能性領域の算出の精度を考慮すると、円周画像の4分の1程度を含む画像からなる真円判定用テンプレートであれば充分である。
In addition, when all the template small areas are rectangles having the same shape as shown in FIG. 6B, the template pixel coordinates (hereinafter referred to as “template small area start point”) serving as the start point of the template small area are used. Each template small region coordinate can be represented as a representative. Further, a combination of the template small region start point and the feature amount can be calculated for all template small regions from one perfect
またテンプレート特徴記憶部3は、後述する推定円中心算出および円存在可能性領域算出のために、真円判定用テンプレート33中の1つの画素のテンプレート画素座標と、その1つの画素から真円の中心までの主走査方向差分および副走査方向差分、ならびにその真円を含む最小限の領域を示す主走査方向範囲および副走査方向範囲を記憶する。
Further, the template
推定値算出部4は、特徴量算出部10、テンプレート比較履歴記憶部11、特徴量比較部12、特徴量比較結果記憶部13、一致判定部14、推定円中心算出部15、および円存在可能性領域算出部16を含む。
The estimated
特徴量算出部10は、図7A(a)に示す、真円形状および真円形状に類似の画像を含むような入力画像中から比較領域を決定し、テンプレート特徴記憶部3から読み出した真円判定用テンプレート33の特徴を用いて比較領域の特徴を算出する。図7A,7B,7Cは特徴量算出部10による特徴量の算出を説明するための図である。図7A,7B,7Cでは図6と同様に、所定画素を黒く、所定画素以外の画素を白く描いている。比較領域36,37は、入力画像38の一部の画像39,40に含まれる画像であって、真円判定用テンプレート33と同一の形状の小領域に分割され、同一に小領域が配置された、斜線部分の画像である。比較領域36,37中の小領域を比較小領域と呼ぶ。
The feature
図7B(b1),7C(b2)はそれぞれ、比較領域36,37の周辺画像41,42を示している。また、図7B(d1),7C(d2)はそれぞれ、図7B(c1),7C(c2)に示される比較領域36,37中の1つの比較小領域43,44を示している。図7B(c1),7C(c2)の目盛はそれぞれ、比較領域36,37内での1つの小領域の位置を表す比較小領域座標を示す目盛であり、図7B(d1),7C(d2)の目盛はそれぞれ、比較領域36,37内での1つの画素の位置を表すローカル画素座標を示す目盛である。ローカル画素座標に対して、入力画像38内での1つの画素の位置を表す座標をグローバル画素座標と呼ぶ。
7B (b1) and 7C (b2) show the
また、図6(b)のようにすべてのテンプレート小領域が同じ形状の矩形である場合には、テンプレート小領域に対応する比較小領域もすべて同じ形状の矩形であるので、比較小領域の始点となるローカル画素座標(以下、「比較小領域始点」と称する)によって、各比較小領域座標を代表して表すことができる。したがって、比較領域は、すべての比較小領域座標がテンプレート小領域座標と一致し、すべての比較小領域始点がテンプレート小領域始点と一致する領域である。 In addition, when all the template small areas are rectangles having the same shape as shown in FIG. 6B, all the comparison small areas corresponding to the template small areas are also rectangles having the same shape. The local pixel coordinates (hereinafter referred to as “comparison small area start point”) can be representatively represented by the comparative small area coordinates. Therefore, the comparison area is an area where all the comparison small area coordinates coincide with the template small area coordinates, and all the comparison small area start points coincide with the template small area start point.
比較小領域における所定画素数(図7B(d1),7C(d2)において黒く描かれた画素数)を、その比較小領域の特徴量と呼ぶ。図7B(d1),7C(d2)から比較小領域43,44の特徴量はそれぞれ、100,96である。また、比較領域から、すべての比較小領域に対して、比較小領域始点と特徴量との組合せを算出することができる。そのような比較小領域始点と特徴量との組合せからなる群を、比較領域の特徴と呼ぶ。特徴量算出部10は、算出された比較領域の特徴を特徴量比較部12に対して出力する。
The predetermined number of pixels in the comparative small area (the number of pixels drawn in black in FIGS. 7B (d1) and 7C (d2)) is referred to as the feature amount of the comparative small area. From FIG. 7B (d1) and 7C (d2), the characteristic amounts of the comparative
また、特徴量算出部10は、特徴を算出した比較領域における1つの画素の、ローカル画素座標とグローバル画素座標との組合せをテンプレート比較履歴記憶部11に対して出力する。ローカル画素座標とグローバル画素座標との組合せが異なれば、入力画像38中の異なる領域を比較領域としていることになる。後述するように、一致判定部14から真円判定用テンプレートと比較領域とが一致していないという判定が出力されると、特徴量算出部10は、異なる比較領域の特徴の算出を行う。特徴量算出部10は、テンプレート比較履歴記憶部11から読み出したローカル画素座標とグローバル画素座標との組合せから、同一の比較領域に対して二度目の特徴の算出を行わないように設定される。
Further, the feature
テンプレート比較履歴記憶部11は、上述したように、特徴量算出部10から出力された、ローカル画素座標とグローバル画素座標との組合せを記憶する。
As described above, the template comparison
特徴量比較部12は、テンプレート特徴記憶部3から読み出されたテンプレート小領域始点と特徴量との組合せ、および特徴量算出部10から出力された比較小領域始点と特徴量との組合せを用いて、テンプレート小領域と比較小領域とが一致しているか否かの判定を行う。この判定は、テンプレート小領域始点と比較小領域始点とが一致するテンプレート小領域の特徴量および比較小領域の特徴量を比較することで行われる。たとえば、図6(c)のテンプレート小領域35のテンプレート小領域始点は(421,51)であり、図7B(d1)の比較小領域43および図7C(d2)の比較小領域44の比較小領域始点は(421,51)であるので、テンプレート小領域35の特徴量と比較小領域44,45の特徴量とが比較される。
The feature
特徴量比較部12は、比較小領域の特徴量が、テンプレート小領域の特徴量±10%以内である場合には小領域同士は一致していると判定し、テンプレート小領域の特徴量±10%以内でない場合には小領域同士は一致していないと判定する。たとえば、テンプレート小領域35の特徴量は100であり、比較小領域43の場合における比較小領域の特徴量は100であるので、比較小領域の特徴量はテンプレート小領域の特徴量±0%となって、テンプレート小領域35と比較小領域43とは一致していると判定される。また、比較小領域44の場合における比較小領域の特徴量は96であるので、比較小領域の特徴量はテンプレート小領域の特徴量−4%となって、テンプレート小領域35と比較小領域44とは一致していると判定される。これらの判定結果は、特徴量比較結果記憶部13に対して出力される。
The feature
特徴量比較結果記憶部13は、特徴量比較部12から出力された判定結果から、一致していると判定された数(以下、「一致判定数」と称する)と一致していないと判定された数(以下、「不一致判定数」と称する)とを記憶する。一致判定数と不一致判定数との和はテンプレート小領域(比較小領域)の数であり、全判定数である。
The feature quantity comparison
一致判定部14は、特徴量比較結果記憶部13に記憶された判定結果を読み出し、真円判定用テンプレートと比較領域とが一致しているか否かの判定を行う。この判定は、一致判定数および不一致判定数を用いて行われる。一致判定部14は、たとえば、全判定数に対する一致判定数の割合である一致判定数/全判定数×100(%)が10%以上であれば、真円判定用テンプレートと比較領域とが一致していると判定をする。判定結果は、特徴量算出部10、推定円中心算出部15、および円存在可能性領域算出部16に対して出力される。
The
推定円中心算出部15は、一致判定部14から真円判定用テンプレートと比較領域とが一致しているという判定が出力されると、推定円中心の算出を行う。推定円中心とは、比較領域中の画像が円周画像の一部であれば、その円の中心があると推定されるグローバル画素座標である。推定円中心算出部15は、テンプレート特徴記憶部3から読み出された、真円判定用テンプレート中の1つの画素のテンプレート画素座標と、その1つの画素からの真円の中心までの主走査方向差分および副走査方向差分とを用いて、推定円中心を算出する。図8は、推定円中心算出および円存在可能性領域算出を説明するための図である。図8(a1),(a2)に示すように、推定円中心算出部15は、テンプレート画素座標と一致するローカル画素座標を有する画素45,46のグローバル画素座標に、前記主走査方向差分47,48および前記副走査方向差分49,50をそれぞれ加算して、推定円中心51,52を算出する。算出された推定円中心は理想勾配算出部5の差分ベクトル算出部17に対して出力される。
When the determination that the true circle determination template matches the comparison area is output from the
円存在可能性領域算出部16は、一致判定部14から真円判定用テンプレートと比較領域とが一致しているという判定が出力されると、円存在可能性領域の算出を行う。円存在可能性領域とは、比較領域中の画像が円周画像の一部であれば、その円周画像を含む最小限の領域であると推定される領域である。円存在可能性領域算出部16は、テンプレート特徴記憶部3から読み出された、真円判定用テンプレート中の1つの画素のテンプレート画素座標と、真円を含む最小限の領域を示す主走査方向範囲および副走査方向範囲を用いて、円存在可能性領域を算出する。図8(b1),(b2)に示すように、円存在可能性領域算出部16は、テンプレート画素座標と一致するローカル画素座標を有する画素45,46のグローバル画素座標と、前記主走査方向範囲53,54および前記副走査方向範囲55,56とを用いて、円存在可能性領域57,58を算出する。算出された円存在可能性領域は理想勾配算出部5の差分ベクトル算出部17、および近似勾配算出部6の特定エッジ抽出部20に対して出力される。
When the determination that the true circle determination template matches the comparison region is output from the
理想勾配算出部5は、第2差分算出手段である差分ベクトル算出部17、理想接線ベクトル算出手段である理想接線ベクトル算出部18、および勾配算出部19を含む。
The ideal
差分ベクトル算出部17は、推定円中心算出部15から出力された推定円中心、および円存在可能性領域算出部16から出力された円存在可能性領域から、注目画素のグローバル座標(以下、「注目座標」と称する)と推定円中心との差分ベクトルを算出する。この場合の注目画素とは、円存在可能性領域内の1つの画素であって、差分ベクトル算出部17によって選ばれる。差分ベクトル算出部17は、たとえば、推定円中心が(Ox,Oy)、注目座標が(X,Y)である場合、差分ベクトルである(X−Ox,Y−Oy)を算出する。算出された差分ベクトルは、注目座標とともに理想接線ベクトル算出部18に対して出力される。
The difference
理想接線ベクトル算出部18は、差分ベクトル算出部17から出力された差分ベクトルから理想接線ベクトルを算出する。理想接線ベクトルとは、注目画素が、推定円中心を中心とする円周上にあると仮定した場合の接ベクトルである。差分ベクトルを直交変換することで理想接線ベクトルは、(ΔX,ΔY)=(Y−Oy,−X+Ox)と算出される。算出された理想接線ベクトルは、注目座標とともに勾配算出部19に対して出力される。
The ideal tangent
勾配算出部19は、理想接線ベクトル算出部18から出力された理想接線ベクトルから、理想接線ベクトルの勾配である理想勾配ΔY/ΔX=(−X+Ox)/(Y−Oy)を算出する。算出された理想勾配は、注目座標とともに勾配比較部7に対して出力される。ΔX=Y−Oy=0の場合は理想勾配の算出がされないので、数字の代わりに「∞」等の記号が出力される。
The
近似勾配算出部6は、特定エッジ抽出手段である特定エッジ抽出部20、特定エッジ記憶手段である特定エッジ記憶部21、第1差分算出手段である差分ベクトル算出部22、および勾配算出部23を含む。
The approximate
特定エッジ抽出部20は、円存在可能性領域算出部16から出力された円存在可能性領域に基づいて、円存在可能性領域中の特定エッジ画素のグローバル画素座標をすべて抽出する。特定エッジ画素とは、従来公知の方法によって抽出されるエッジ画素のうち、他のエッジ画素によって形成される閉じた領域内に含まれないエッジ画素である。図9は、特定エッジ抽出部20による特定エッジ画素の抽出を説明するための図である。特定エッジ抽出部20は、図9(a1),(a2)に示される円存在可能性領域内の画像に対して、従来公知の方法によってエッジ画素の抽出を行い、図9(b1),(b2)に示される複数のエッジ画素59〜65を抽出する。特定エッジ抽出部20は、さらに、複数のエッジ画素59〜65の中から他のエッジ画素によって形成される閉じた領域内に含まれていない、特定エッジ画素59,60を抽出する。抽出された特定エッジ画素のグローバル画素座標は、特定エッジ記憶部21に対して出力される。
The specific
特定エッジ記憶部21は、上記のようにして抽出された、円存在可能性領域中の特定エッジ画素のグローバル画素座標をすべて記憶する。
The specific
差分ベクトル算出部22は、特定エッジ記憶部21が記憶する特定エッジ画素のグローバル画素座標を読み出し、注目座標と、注目画素との主走査方向差分が3以上の特定エッジ画素であって注目画素と最も距離の近い画素のグローバル画素座標との差分ベクトルを算出する。この場合の注目画素とは、特定エッジ画素のうちの1つの画素であって、差分ベクトル算出部22によって選ばれる。図10は、差分ベクトル算出部22による差分ベクトルの算出を説明するための図である。差分ベクトル算出部22は、たとえば、図10(a)に示すように、注目画素61の座標(X,Y)=(2005,2011)である場合、注目画素61との主走査方向差分が3以上の特定エッジ画素であって注目画素と最も距離の近い画素62のグローバル画素座標(A,B)=(2008,2007)を読み出し、差分ベクトル63である(ΔX’,ΔY’)=((A−X),(B−Y))=(3,−4)を算出する。また、図10(b)に示すように、注目画素64の座標が(X,Y)=(1008,1009)である場合、注目画素64との主走査方向差分が3以上の特定エッジ画素であって注目画素と最も距離の近い画素65のグローバル画素座標(A,B)=(1008,1005)を読み出し、差分ベクトル66である(ΔX’,ΔY’)=((A−X),(B−Y))=(0,−4)を算出する。算出された差分ベクトルは、注目座標とともに勾配算出部23に対して出力される。
The difference
勾配算出部23は、差分ベクトル算出部22から出力された差分ベクトルから、差分ベクトルの勾配である近似勾配ΔY’/ΔX’=(B−Y)/(A−X)を算出する。算出された近似勾配は、注目座標とともに勾配比較部7に対して出力される。ΔX’=A−X=0の場合は近似勾配の算出がされないので、数字の代わりに「∞」等の記号が出力される。
The
勾配比較部7は、勾配算出部19から出力された注目座標および理想勾配、ならびに勾配算出部23から出力された注目座標および近似勾配を用いて、理想勾配と近似勾配とが一致しているか否かの判定を行う。この判定は、注目座標が一致する理想勾配および近似勾配を比較することで行われる。図11は、勾配比較部7による理想勾配と近似勾配との比較を模式的に表す図である。図11(a)に示すように、勾配比較部7は、注目座標67を通る仮想的な円周69上の接線の勾配である理想勾配71と、近似的に算出された、特定エッジ画素上の接線の勾配である近似勾配73とを比較する。また図11(b)に示すように、勾配比較部7は、注目座標68を通る仮想的な円周70上の接線の勾配である理想勾配72と、近似的に算出された、特定エッジ画素上の接線の勾配である近似勾配74とを比較する。勾配比較部7はたとえば、近似勾配が、理想勾配±10%以内である場合には勾配同士は一致していると判定し、理想勾配±10%以内でない場合には勾配同士は一致していないと判定する。判定結果は、円形状有無判定部8の勾配比較結果記憶部24に対して出力される。
The
円形状有無判定部8は、勾配比較結果記憶手段である勾配比較結果記憶部24および円周判定手段である円周判定部25を含む。
The circular shape presence /
勾配比較結果記憶部24は、勾配比較部7から出力された判定結果から、一致していると判定された数(以下、「勾配一致判定数」と称する)と一致していないと判定された数(以下、「勾配不一致判定数」と称する)とを記憶する。
The gradient comparison
円周判定部25は、勾配比較結果記憶部24に記憶された判定結果を読み出し、円存在可能性領域内に円周画像が存在しているか否かの判定を行う。この判定は、勾配一致判定数および勾配不一致判定数を用いて行われる。円周判定部25は、たとえば、勾配一致判定数と勾配不一致判定数との和からなる勾配全判定数に対する勾配一致判定数の割合である勾配一致判定数/勾配全判定数×100(%)が、10%等の円周判定閾値以上であれば、円存在可能性領域内に円周画像が存在していると判定し、円周存在判定、推定円中心および円存在可能性領域を、画像処理装置101内の他の部材または画像処理装置101外の他の装置に対して出力する。また円周判定部25は、勾配一致判定数/勾配全判定数×100(%)が円周判定閾値以上である円存在可能性領域が入力画像中に存在しなければ、入力画像中に円周画像が存在していないと判定し、円周不存在判定を画像処理装置101内の他の部材または画像処理装置101外の他の装置に対して出力する。
The
上記の各部材を備える画像処理装置101の真円形状有無判定処理について説明する。図12は、真円形状有無判定処理を表すフローチャートである。
The true circle shape presence / absence determination process of the
画像処理装置101は、図示しない制御手段によって、原稿画像を画像読取装置9に読取らせる(ステップS1)。原稿の読取りによって得られた入力画像は、前処理部1によって前処理が施される。画像処理装置101は、前処理後の入力画像中に未だ比較領域となっていない領域が存在するか否かを判定し(ステップS2)、存在すればステップS3へ、存在しなければステップS11へと処理を進める。特徴量算出部10によって比較領域が決定され、比較領域の特徴が算出されると、特徴量比較部12によって、真円判定用テンプレートの特徴と比較領域の特徴とが比較される(ステップS3)。この比較の結果に基づき、一致判定部14によって、真円判定用テンプレートと比較領域とが一致するか否かの判定が行われる(ステップS4)。一致すればステップS5へ、一致しなければステップS2へと処理を進める。
The
たとえば、図7B(c1)の比較領域36の特徴も、図7C(c2)の比較領域37の特徴も、図6(b)の真円判定用テンプレート33の特徴と類似しているので、画像処理装置は真円判定用テンプレート33と比較領域36,37とが一致していると判定し、処理をステップS5へ進める。
For example, the characteristics of the
画像処理装置101は、推定円中心算出部15によって推定円中心を算出し(ステップS5)、円存在可能性領域算出部16によって円存在可能性領域を算出する(ステップS6)。画像処理装置101は、算出された推定円中心および円存在可能性領域に基づき、理想勾配算出部5によって理想勾配を算出する(ステップS7)。画像処理装置101は、算出された円存在可能性領域に基づき、近似勾配算出部6によって近似勾配を算出する(ステップS8)。
The
理想勾配および近似勾配が算出されると、勾配比較部7によって、算出された理想勾配と近似勾配とが比較され(ステップS9)、その比較によって得られた勾配一致判定数および勾配不一致判定数に基づいて、円形状有無判定部8によって、算出された円存在可能性領域内に円周画像が存在しているか否かの判定が行われる(ステップS10)。
When the ideal gradient and the approximate gradient are calculated, the
たとえば、図11(a)に示すように、理想勾配71と近似勾配73とが一致しており、特定エッジ画素すべてにおいて、同様に理想勾配と近似勾配とが一致するような場合には、算出された円存在可能性領域内に円周画像が存在しているという判定がなされる。また、図11(b)に示すように、理想勾配72と近似勾配74とが一致しておらず、他の多数の特定エッジ画素においても、同様に理想勾配と近似勾配とが一致しない場合には、算出された円存在可能性領域内に円周画像は存在していないという判定がなされる。算出された円存在可能性領域内に円周画像が存在するか否かの判定結果ならびに円周画像が存在する場合には推定円中心および円存在可能性領域が、図示しない記憶手段に記憶される。
For example, as shown in FIG. 11 (a), when the
画像処理装置101は、入力画像中に未だ比較領域となっていない領域が存在するか否かを判定し(ステップS11)、存在すればステップS3へ、存在しなければステップS12へと処理を進める。画像処理装置101は、図示しない記憶手段に記憶された、円存在可能性領域内に円周画像が存在するか否かの判定結果を用いて、円周画像が存在すればステップS13へ、存在しなければステップS14へと処理を進める(ステップS12)。
The
ステップS13において、画像処理装置101は、円周画像が入力画像中に存在するという情報である円周存在判定、推定円中心および円存在可能性領域を出力する。入力画像中に複数の円周画像が存在する場合には、複数の円周存在判定が出力される。ステップS14において、画像処理装置101は、円周画像が入力画像中に存在しないという情報である円周不存在判定を出力する。
In step S <b> 13, the
画像処理装置101は、円周存在判定または円周不存在判定を出力すると、真円形状有無判定処理を終了する。
When the
画像処理装置101によって生じる効果を説明する。上述したように、画像処理装置101は、真円判定用テンプレートおよび比較領域の比較と、理想勾配および近似勾配の比較とを用いて、真円形状有無判定を行っている。真円判定用テンプレートが円周画像のすべてを含む画像であれば、理想勾配および近似勾配の比較を行わなくとも、ある程度の精度で真円形状有無判定を行うことは可能である。しかしながら、真円判定用テンプレートが円周画像のすべてを含む画像である場合、真円判定用テンプレートの特徴の情報量は膨大となるので、テンプレート特徴記憶部3は大容量の記憶手段である必要がある。すなわち、本発明の画像処理装置101は、テンプレート特徴記憶部3の記憶容量が小さくとも真円形状有無判定を行うことができる。
The effects produced by the
また画像処理装置101は、真円判定用テンプレートおよび比較領域の比較と、理想勾配および近似勾配の比較とを用いて、真円形状有無判定を行うので、真円判定用テンプレートおよび比較領域の比較のみによって判定を行う画像処理装置に比べて判定精度が向上する。図13は、画像処理装置101における判定精度向上の効果を説明するための図である。図13(a1)は画像処理装置101によって円周存在判定が出力される比較領域中の画像75を示しており、図13(a2)は画像処理装置101によって円周不存在判定が出力される比較領域中の画像76を示している。また、図13(b1)は画像75中の比較小領域77を示しており、図13(b2)は画像76中の比較小領域78を示している。
In addition, the
図13(a1),(a2),(b1),(b2)に示しているように、画像75と画像76との間には、比較小領域77,78において円周画像に欠けが存在するか否かの差しかない。また、図13(b1),(b2)に示しているように、比較小領域77,78は所定画素が等しい、すなわち、特徴量が等しいので、画像75を含む比較領域および画像76を含む比較領域の特徴は同一である。したがって、真円判定用テンプレートおよび比較領域の比較のみによって判定を行う画像処理装置では、円周画像である画像75だけではなく、円周画像に欠けが存在する画像76も円周画像であると判定される。
As shown in FIGS. 13 (a1), (a2), (b1), and (b2), there is a lack in the circumferential image in the comparative
本発明の画像処理装置101は、画像76を円周画像であるとする誤判定を行わない。画像処理装置101は、真円判定用テンプレートおよび比較領域の比較後、円存在可能性領域を算出し、特定エッジ画素を抽出する。図13(c1),(c2)は、比較小領域77,78中の特定エッジ画素を示す図である。図13(c1),(c2)に示すように、円周画像である画像75の特定エッジ画素は円周画像の外側の画素だけであるのに対し、円周画像に欠けが存在する画像76の特定エッジ画素は、円周画像の外側および内側の画素となる。したがって画像76においては勾配一致判定数が少なくなるので、画像処理装置101は画像76を円周画像であると判定しない。このように、本発明の画像処理装置101は、精度よく真円形状有無判定を行うことができる。
The
次に、画像処理装置101における楕円形状有無判定を行う処理(以下、「楕円形状有無判定処理」と称する)について説明する。真円形状有無判定処理と同様に、原稿の読取りによって得られた入力画像は、前処理部1によって前処理が施される。画像処理装置101は、推定値算出部4によって、前処理後の入力画像中の比較領域における推定円中心および円存在可能性領域の算出を行う。算出の際に用いられる判定用テンプレートは、楕円判定用テンプレートである。図14は楕円判定用テンプレートを示す図であり、図14では、輝度(または明度等)に所定の上限値および下限値を設け、輝度(または明度等)が上限値より大きい、または下限値より小さい画素を白く、輝度(または明度等)が上限値より小さく、下限値より大きい画素を黒く描いている。図14(a1),(b1),(a2),(b2)に示すように、楕円判定用テンプレート83,84は、特定印影画像79,80の一部81,82に含まれ、楕円形状の円周画像85,86の一部を含む、斜線部分の領域の画像である。また図14(b1),(b2)に示すように、楕円判定用テンプレート83,84はテンプレート小領域に分割されている。真円形状有無判定処理と同様に、テンプレート小領域の特徴量とテンプレート小領域始点との組合せからなる群である、楕円判定用テンプレート83,84の特徴が、テンプレート特徴記憶部3に記憶されている。
Next, a process for determining the presence / absence of an elliptical shape in the image processing apparatus 101 (hereinafter referred to as an “elliptical shape determination process”) will be described. Similar to the perfect circle shape determination process, the input image obtained by reading the document is preprocessed by the
推定値算出部4は、この楕円判定用テンプレートの特徴を読み出し、楕円判定用テンプレートの特徴と比較領域の特徴とを比較し、両者が一致しているか否かを判定する。推定値算出部4は、その判定の結果に基づき、推定円中心および円存在可能性領域が算出する。画像処理装置101は、算出された推定円中心および円存在可能性領域に基づき、理想勾配算出部5によって理想勾配を、近似勾配算出部6によって近似勾配を、それぞれ算出する。
The estimated
理想勾配の算出における、理想接線ベクトル算出部18による理想接線ベクトルの算出法は、真円形状有無判定処理と楕円形状有無判定処理とでは異なる。すなわち、推定円中心を(Ox,Oy)、注目座標を(X,Y)として、差分ベクトル算出部17によって算出された差分ベクトルが(X−Ox,Y−Oy)=(A’,B’)であり、予め定められた楕円を表す式がx2/C2+y2/D2=1((x,y)は楕円円周上の任意の点、C,Dは定数)であるとき、理想接線ベクトル(ΔX,ΔY)は、(ΔX,ΔY)=(B’/D2,−A’/C2)と算出される。また、図14(a2)に示すように、楕円の傾き角がαのとき、理想接線ベクトル(ΔX,ΔY)は、下記式のように算出される。理想勾配算出部5は、このような理想接線ベクトルを用いて理想勾配の算出を行う。近似勾配算出部6による近似勾配の算出は、真円形状有無判定処理と同様である。
The method for calculating the ideal tangent vector by the ideal tangent
理想勾配および近似勾配が算出されると、勾配比較部7によって、算出された理想勾配と近似勾配とが比較され、その比較によって得られた勾配一致判定数および勾配不一致判定数に基づいて、円形状有無判定部8によって楕円形状の円周画像が存在しているか否かの判定が行われ、真円形状有無判定処理と同様に、判定結果が出力される。以上が楕円形状有無判定処理である。画像処理装置101は、真円形状有無判定処理および楕円形状有無判定処理によって、入力画像中に任意の印影画像が任意の角度で存在していても、その印影画像中の円周画像部分の判定を行うことができる。
When the ideal gradient and the approximate gradient are calculated, the
次に、本発明の第2実施形態である画像処理装置102について説明する。図15は画像処理装置102の構成を機能的に示すブロック図である。図15に示すように、画像処理装置102は、推定円周算出手段である推定円周算出部26を備えていること以外は、画像処理装置101と同一の構成である。したがって、推定円周算出部26およびその周辺の部材の機能についてのみ説明する。画像処理装置101の部材と共通する各部材は共通の機能を備えている。
Next, an
推定円周算出部26は、円周半径下限値および円周半径上限値を記憶しており、それらの値と、推定円中心算出部15から出力された推定円中心と、円存在可能性領域算出部16から出力された円存在可能性領域とから、推定円周領域を算出する。図16は、推定円周領域を説明するための図である。推定円周算出部26は、図16(a)に示すように、推定円中心87を中心として円周半径上限値88を半径とする円周と、推定円中心87を中心として円周半径下限値89を半径とする円周とに挟まれる領域であって、円存在可能性領域90に含まれる領域である、斜線部で示される推定円周領域91を算出する。算出された推定円周領域は差分ベクトル算出部17および特定エッジ抽出部20に対して出力される。
The estimated
差分ベクトル算出部17は、推定円中心算出部15から出力された推定円中心、および推定円周算出部26から出力された推定円周領域から、注目座標と推定円中心との差分ベクトルを算出する。この場合の注目画素とは、推定円周領域内の1つの画素であって、差分ベクトル算出部17によって選ばれる。算出された差分ベクトルは、注目座標とともに理想接線ベクトル算出部18に対して出力される。差分ベクトルの算出後は、画像処理装置101と同様に、理想勾配が算出され、勾配比較部7に対して出力される。
The difference
特定エッジ抽出部20は、推定円周算出部26から出力された推定円周領域に基づいて、推定円周領域中の特定エッジ画素のグローバル画素座標をすべて抽出する。図16(b),(c)は、特定エッジ抽出部20によって、推定円周領域から抽出された特定エッジ画素を示している。図16(b)に示すように、特定エッジ画素が推定円周領域内にすべて存在する場合には、円存在可能性領域内の全特定エッジ画素92が抽出される。また、図16(c)に示すように、推定円周領域内の特定エッジ画素93と、円存在可能性領域内であるけれども推定円周領域外である特定エッジ画素94とが存在する場合は、図16(c)において実線で示す特定エッジ画素93のみが抽出される。特定エッジ画素の抽出後は、画像処理装置101と同様に、近似勾配が算出され、勾配比較部7に対して出力される。その後、出力された理想勾配および近似勾配から、画像処理装置101と同様に判定が行われる。
The specific
このように、画像処理装置102は、推定円周領域内の注目画素に対する勾配同士の比較を行うことができるので、判定の精度を保ったまま、判定処理速度の高速化を図ることができる。また画像処理装置102は、楕円形状有無判定処理の場合にも、楕円形状の推定円周領域を指定するパラメータ、たとえば、長径上限値および下限値、短径上限値および下限値、ならびに楕円の傾き角を、推定円周算出部26に記憶させておくことで、真円形状有無判定処理と同様に、推定円周領域内の注目座標に対する勾配同士の比較のみを行うことができる。
As described above, the
次に、本発明の第3実施形態について説明する。図17は、本実施形態の画像処理装置における円形状有無判定部8周辺の部材を機能的に示すブロック図である。図17に示すように、本実施形態は、円周判定閾値変更手段である円周判定閾値変更部27を備えること以外は、画像処理装置101と同一の構成であり、共通する各部材は、共通する機能を有している。
Next, a third embodiment of the present invention will be described. FIG. 17 is a block diagram functionally illustrating members around the circular shape presence /
円周判定閾値変更部27は、円周判定閾値を変更する。円周判定閾値の変更は、図示しない入力手段を用いたユーザからの指示によって行うことができる。また、ユーザの指示によらず、所定の条件下で、円周判定閾値を変更するように構成されていてもよい。たとえば、画像処理装置に接続される画像読取装置の読取解像度に応じて判定閾値を変更するような構成である。本実施形態は、このように、円周判定閾値を変更することが可能な円周判定閾値変更部27を備えることによって、画像読取装置が経年劣化しても、一定の精度以上で判定を行うことができる。
The circumference determination threshold
次に、本発明の第4実施形態である画像処理装置103について説明する。図18は、画像処理装置103の構成を機能的に示すブロック図である。図18に示すように、画像処理装置103は、フィルタ手段であるフィルタ部28を備えること以外は、画像処理装置101と同一の構成であり、共通する各部材は、共通する機能を有している。
Next, an
フィルタ部28は、Rフィルタ部28Rと、Gフィルタ部28Gと、Bフィルタ部28Bとを含む。
The
Rフィルタ部28Rは、前処理部1によって前処理が施された入力画像のRGB信号値のうち、R信号値を読み出し、フィルタリングを行う。Rフィルタ部28Rは、たとえば、256階調において、R信号値が200〜220の画素のみを抽出する。抽出された画素の情報はフィルタ部28の図示しない処理手段に対して出力される。Gフィルタ部28Gは、前処理部1によって前処理が施された入力画像のRGB信号値のうち、G信号値を読み出し、フィルタリングを行う。Gフィルタ部28Gは、たとえば、256階調において、R信号値が30〜40の画素のみを抽出する。抽出された画素の情報はフィルタ部28の処理手段に対して出力される。Bフィルタ部28Bは、前処理部1によって前処理が施された入力画像のRGB信号値のうち、B信号値を読み出し、フィルタリングを行う。Bフィルタ部28Bは、たとえば、256階調において、B信号値が10〜20の画素のみを抽出する。抽出された画素の情報はフィルタ部28の処理手段に対して出力される。
The
フィルタ部28内の処理手段は、Rフィルタ部28R、Gフィルタ部28G、Bフィルタ部28Bから出力された画素の情報を用いて、特定色の画素を抽出する。たとえば、上記の例では、特定色は、RGB信号値が(200〜220,30〜40,10〜20)となる色であり、この特定色の画素が抽出される。抽出されない特定色以外の画素は、RGB信号値が(0,0,0)の画素となる。特定色の抽出後の画像は、前処理部1に対して出力され、前処理部1に記憶される。その後、画像処理装置103は、特定色の抽出後の画像を入力画像として、画像処理装置101と同様に円形状有無判定処理を行う。
The processing means in the
このように、画像処理装置103は、抽出された特定色の画像を入力画像として円形状有無の判定を行うことができるので、判定対象の円形状の色分布が予めわかっている場合、たとえば印影が朱色である場合などに、フィルタ部28によって、朱色以外の色の画像をカットすることができ、判定精度を向上することができる。また、画像処理装置103は、入力画像がカラー画像であっても、無彩化処理を行わずに、カラー画像のまま判定を行うことができるので、精度良く判定を行うことができる。さらに、特定色抽出後の画像は、元の画像と比べて情報が少ないので、画像処理装置103の記憶手段をより小容量化することができる。
As described above, the
次に、本発明の第5実施形態である画像処理装置104について説明する。図19は、画像処理装置104の構成を機能的に示すブロック図である。図19に示すように画像処理装置104は、2値化処理手段である2値化処理部29を備えること以外は、画像処理装置103と同一の構成であり、共通する各部材は、共通する機能を有している。
Next, an
2値化処理部29は、特定色抽出後の画像に対し、2値化処理を行う。たとえば、特定色の画素を「1」として、RGB信号値をすべて(255,255,255)とする。特定色以外の画素は、「0」として、RGB信号値をすべて(0,0,0)とする。2値化処理後の画像は、前処理部1に対して出力され、前処理部1に記憶される。その後、画像処理装置104は、特定色の抽出後の画像を入力画像として、画像処理装置101と同様に円形状有無判定処理を行う。
The
このように、画像処理装置104は、2値化処理後の画像を入力画像として円形状有無の判定を行うことができる。2値化処理後の画像は、元の画像と比べて情報が少ないので、画像処理装置104の記憶手段をより小容量化することができる。
As described above, the
次に、本発明の画像処理システムの実施形態である画像処理システム200について説明する。図20は画像処理システム200の構成を機能的に示すブロック図である。図20に示すように、画像処理システム200は、画像読取装置9と、画像処理装置101と、通知装置30とを含む。画像読取装置9および画像処理装置101は、それぞれ上記の読取装置および処理装置であるので、詳細は省略する。
Next, an
画像読取装置9によって原稿画像から読取られた画像は、画像処理装置101に対して出力され、画像処理装置101は、その画像を入力画像として、入力画像に対して円形状有無判定を行う。入力画像中に円周画像が存在すると判定された場合、画像処理装置101は、円周存在判定、推定円中心および円存在可能性領域を通知装置30に対して出力する。入力画像中に円周画像が存在していないと判定された場合、画像処理装置101は、円周不存在判定を通知装置30に対して出力する。
An image read from the document image by the
通知装置30は、画像処理装置101から出力された情報に基づいて、ユーザに対し通知を行う。通知は、図示しないスピーカからの音声であってもよいし、図示しない表示部に判定結果を示す文章を表示してもよい。たとえば、通知装置30は、画像処理装置101から円周存在判定、推定円中心および円存在可能性領域が出力されると、「円周画像が検出されました」というアナウンスとともに、表示部に入力画像および円存在可能性領域を表示させてもよい。また、たとえば、通知装置30は、画像処理装置101から円周不存在判定が出力されると、「円周画像は検出されませんでした」というアナウンスを行なってもよい。このように画像処理システム200は、音および光の少なくとも1つを用いてユーザに対して判定結果を通知することができる。
The
また本発明の画像処理方法は、上記の画像処理装置の第1〜5実施形態および上記の画像処理システムの実施形態に、円形状有無判定処理を実行させることによって実現される。また、プログラムに係る本発明の実施形態として、コンピュータに実行させるためのプログラムを記録したコンピュータ読取可能な記録媒体に、円形状有無判定処理を行う画像処理プログラムを記録するものとすることもできる。 The image processing method of the present invention is realized by causing the first to fifth embodiments of the image processing apparatus and the embodiment of the image processing system to execute a circular presence / absence determination process. As an embodiment of the present invention relating to a program, an image processing program for performing circular shape presence / absence determination processing may be recorded on a computer-readable recording medium in which a program to be executed by a computer is recorded.
そのような画像処理プログラムを記録媒体に記録する結果、円形状有無判定処理を実行するプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録した記録媒体を持ち運び自在に提供することができる。 As a result of recording such an image processing program on a recording medium, a recording medium on which a program code (execution format program, intermediate code program, source program) for executing circular shape presence / absence determination processing is recorded can be provided in a portable manner. .
上記記録媒体は、デジタルカラー画像形成装置またはコンピュータシステムに備えられるプログラム読取装置により読取られることで上記の画像処理方法が実行される。 The recording medium is read by a digital color image forming apparatus or a program reading apparatus provided in a computer system, thereby executing the image processing method.
コンピュータシステムは、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラなどの画像入力装置、所定のプログラムコードがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ、液晶ディスプレイなどの画像表示装置およびコンピュータの処理結果を紙などに出力するプリンタより構成される。さらにコンピュータシステムには、ネットワークを介してサーバなどに接続するための通信手段としてのネットワークカードやモデムなどが備えられる。 The computer system includes an image input device such as a flatbed scanner, a film scanner, and a digital camera, a computer that performs various processes such as the image processing method by loading a predetermined program code, and a CRT that displays the processing results of the computer. An image display device such as a display and a liquid crystal display, and a printer that outputs the processing results of the computer to paper or the like. Further, the computer system is provided with a network card, a modem, and the like as communication means for connecting to a server or the like via a network.
なお、本実施形態では、この記録媒体として、マイクロコンピュータで処理が行われるために図示しないメモリ、たとえばROM(Read Only Memory)そのものがプログラムメディアであっても良いし、また、図示しない外部記憶装置としてプログラム読取装置が設けられ、そこに記録媒体を挿入することで読取可能なプログラムメディアであっても良い。 In the present embodiment, as the recording medium, a memory (not shown) such as a ROM (Read Only Memory) itself may be a program medium because processing is performed by a microcomputer, or an external storage device (not shown). As a program medium that can be read by inserting a recording medium therein.
いずれの場合においても、格納されているプログラムはマイクロプロセッサがアクセスして実行させる構成であっても良いし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示しないプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。 In any case, the stored program may be configured to be accessed and executed by the microprocessor, or in any case, the program code is read and the read program code is stored in the microcomputer. It may be downloaded to a program storage area (not shown) and the program may be executed. It is assumed that this download program is stored in the main device in advance.
ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープ、カセットテープ等のテープ系、フレキシブルディスク、ハードディスク等の磁気ディスク、CD−ROM(Compact Disc Read Only Memory)/MO(Magneto Optical
disc)/MD(Mini Disc)/DVD(Digital Versatile Disc)等の光ディスクのディスク系、IC(Integrated Circuit)カード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムコードを担持する媒体であっても良い。
Here, the program medium is a recording medium configured to be separable from the main body, and includes a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a flexible disk and a hard disk, and a CD-ROM (Compact Disc Read Only Memory). / MO (Magneto Optical
disc) / MD (Mini Disc) / DVD (Digital Versatile Disc) optical discs, IC (Integrated Circuit) cards (including memory cards) / optical cards, etc., mask ROM, EPROM (Erasable Programmable) It may be a medium that carries a fixed program code including a read only memory (EEPROM), an electrically erasable programmable read only memory (EEPROM), and a semiconductor memory such as a flash ROM.
また、インターネットを含む通信ネットワークを接続可能なシステム構成であれば、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であっても良い。なお、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであっても良い。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。 In addition, as long as the system configuration can connect to a communication network including the Internet, a medium that fluidly carries the program code so as to download the program code from the communication network may be used. When the program is downloaded from the communication network in this way, the download program may be stored in the main device in advance or may be installed from another recording medium. 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.
1 前処理部
2 印影記憶部
3 テンプレート特徴記憶部
4 推定値算出部
5 理想勾配算出部
6 近似勾配算出部
7 勾配比較部
8 円形状有無判定部
9 画像読取装置
10 特徴量算出部
11 テンプレート比較履歴記憶部
12 特徴量比較部
13 特徴量比較結果記憶部
14 一致判定部
15 推定円中心算出部
16 円存在可能性領域算出部
17 差分ベクトル算出部
18 理想接線ベクトル算出部
19 勾配算出部
20 特定エッジ抽出部
21 特定エッジ記憶部
22 差分ベクトル算出部
23 勾配算出部
24 勾配比較結果記憶部
25 円周判定部
101〜104 画像処理装置
200 画像処理システム
DESCRIPTION OF
Claims (12)
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段とを備えることを特徴とする画像処理装置。 Template information storage means for storing information of the template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing apparatus comprising: a circular shape presence / absence determining unit that determines whether or not a circumferential image is included in the input image based on the gradient comparison result.
前記理想勾配算出手段は、前記推定円中心と前記推定円周領域内の注目座標とから、前記推定円中心を円の中心とし、当該注目座標を通る円周の接線の勾配である理想勾配を算出し、
前記近似勾配算出手段は、前記推定円周領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出することを特徴とする請求項1に記載の画像処理装置。 An estimated circumference calculating means for calculating an estimated circumference area that is a circumference area around the estimated circle center and that is an area within the circle existence possibility area;
The ideal gradient calculating means calculates an ideal gradient that is a gradient of a tangent of a circle passing through the target coordinate from the estimated circle center and the coordinate of interest in the estimated circumferential region, with the estimated circle center as the center of the circle. Calculate
The approximate gradient calculating means approximates the specific image at the target coordinate from the target coordinate in the specific image within the estimated circumferential area and the coordinate in the specific image and in the vicinity of the target coordinate. The image processing apparatus according to claim 1, wherein an approximate gradient that is a gradient of a typical tangent is calculated.
前記特定画像は前記特定エッジ画素からなる画像であり、近似勾配の算出に用いられる注目座標は、前記特定エッジ画素から選ばれることを特徴とする請求項1または2に記載の画像処理装置。 The approximate gradient calculating unit includes a specific edge extracting unit that extracts a specific edge pixel that is a specific edge pixel in the circle existence possibility region, a specific edge storage unit that stores the coordinates of the specific edge pixel, and the specific unit First difference calculation means for calculating a coordinate difference between edge pixels,
The image processing apparatus according to claim 1, wherein the specific image is an image including the specific edge pixels, and a target coordinate used for calculating an approximate gradient is selected from the specific edge pixels.
前記フィルタ手段によって抽出された特定色の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする請求項1〜6のいずれか1つに記載の画像処理装置。 Filter means for extracting an image of a specific color from the input image;
2. An image having a specific color extracted by the filter means as an input image, and configured to be able to determine whether or not a circumferential image is included in the input image. The image processing apparatus as described in any one of -6.
前記2値化処理手段による2値化処理後の画像を入力画像として、円周画像が当該入力画像に含まれているか否かを判定することが可能なように構成されることを特徴とする請求項7に記載の画像処理装置。 Binarization processing means for performing binarization processing using information on the image of the specific color and information on the image other than the specific color;
An image after binarization processing by the binarization processing means is used as an input image, and it is configured to be able to determine whether or not a circumferential image is included in the input image. The image processing apparatus according to claim 7.
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出ステップと、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出ステップと、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出ステップと、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較ステップと、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定ステップとを含むことを特徴とする画像処理方法。 An estimated circle center calculation step of calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information of the template image;
A circle existence possibility area calculating step for calculating a circle existence possibility area that is an area in which the circle may exist in the input image using the information;
An ideal gradient calculation step of calculating an ideal gradient that is a gradient of a tangent of a circle passing through the coordinate of interest, with the estimated circle center being the center of the circle from the estimated circle center and the coordinate of interest in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating step for calculating an approximate gradient;
A gradient comparison step of comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
And a circular shape presence / absence determination step for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.
テンプレート画像の情報を記憶するテンプレート情報記憶手段と、
入力画像において円の中心が存在すると推定される座標である推定円中心を、前記情報を用いて算出する推定円中心算出手段と、
前記入力画像において前記円が存在する可能性のある領域である円存在可能性領域を、前記情報を用いて算出する円存在可能性領域算出手段と、
前記推定円中心と前記円存在可能性領域内の注目座標とから、前記推定円中心を円の中心とし、前記注目座標を通る円周の接線の勾配である理想勾配を算出する理想勾配算出手段と、
前記円存在可能性領域内の特定画像中の注目座標と、前記特定画像中の座標であって当該注目座標の近傍の座標とから、前記特定画像の当該注目座標における近似的な接線の勾配である近似勾配を算出する近似勾配算出手段と、
勾配の算出に用いる注目座標を同じくする前記理想勾配および前記近似勾配を比較して、勾配比較結果を出力する勾配比較手段と、
前記勾配比較結果に基づいて、円周画像が前記入力画像に含まれているか否かを判定する円形状有無判定手段として機能させることを特徴とする画像処理プログラム。 Computer
Template information storage means for storing information of the template image;
Estimated circle center calculation means for calculating an estimated circle center, which is a coordinate estimated that the center of the circle exists in the input image, using the information;
A circle existence possibility area calculating means for calculating, using the information, a circle existence possibility area that is an area in which the circle may exist in the input image;
An ideal gradient calculating means for calculating an ideal gradient, which is a gradient of a tangent of a circle passing through the target coordinate, with the estimated circular center as the center of the circle from the estimated circle center and the target coordinate in the circle existence possibility region When,
An approximate tangent gradient at the target coordinate of the specific image is calculated from the target coordinate in the specific image in the circle existence possibility region and the coordinate in the specific image and in the vicinity of the target coordinate. An approximate gradient calculating means for calculating an approximate gradient;
A gradient comparison means for comparing the ideal gradient and the approximate gradient having the same target coordinates used for calculating the gradient and outputting a gradient comparison result;
An image processing program that functions as circular shape presence / absence determining means for determining whether or not a circumferential image is included in the input image based on the gradient comparison result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008308018A JP2010134564A (en) | 2008-12-02 | 2008-12-02 | Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008308018A JP2010134564A (en) | 2008-12-02 | 2008-12-02 | Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010134564A true JP2010134564A (en) | 2010-06-17 |
Family
ID=42345826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008308018A Pending JP2010134564A (en) | 2008-12-02 | 2008-12-02 | Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010134564A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2394719A1 (en) | 2010-06-11 | 2011-12-14 | Nintendo Co., Ltd. | Portable information terminal, computer-readable storage medium having stored thereon portable information terminal control program, portable information system, and portable information terminal control method |
JP2015041190A (en) * | 2013-08-21 | 2015-03-02 | 富士通フロンテック株式会社 | Overlapped seal detection apparatus, overlapped seal detection method, and program |
-
2008
- 2008-12-02 JP JP2008308018A patent/JP2010134564A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2394719A1 (en) | 2010-06-11 | 2011-12-14 | Nintendo Co., Ltd. | Portable information terminal, computer-readable storage medium having stored thereon portable information terminal control program, portable information system, and portable information terminal control method |
JP2015041190A (en) * | 2013-08-21 | 2015-03-02 | 富士通フロンテック株式会社 | Overlapped seal detection apparatus, overlapped seal detection method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105303156B (en) | Character detection device, method, and program | |
JP6354589B2 (en) | Object identification device, method and program | |
US7813553B2 (en) | Image region detection method, recording medium, and device therefor | |
US8351707B2 (en) | Image processing apparatus, image forming apparatus, image processing system, and image processing method | |
JP5547243B2 (en) | Image processing apparatus, program, and recording medium | |
JP4694613B2 (en) | Document orientation determination apparatus, document orientation determination method, program, and recording medium therefor | |
KR101597739B1 (en) | Image processing apparatus, image processing method, and computer readable medium | |
JP5934174B2 (en) | Method and program for authenticating a printed document | |
US20080031549A1 (en) | Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, and recording medium | |
JP2000149018A (en) | Image processing method, and device and recording medium thereof | |
JP6426815B2 (en) | Image processing apparatus and image processing method | |
US20090103814A1 (en) | Information Processing Apparatus, Information Processing Method, and Program | |
KR20120132314A (en) | Image processing apparatus, image processing method, and computer readable medium | |
JP2000148980A (en) | Image processing method, image processor and recording medium | |
CN111950355A (en) | Seal identification method and device and electronic equipment | |
US20190191078A1 (en) | Information processing apparatus, a non-transitory computer readable storage medium and information processing method | |
JP2009123206A (en) | Method and apparatus for extracting text from image | |
JP4588771B2 (en) | Image processing method, image processing apparatus, image forming apparatus, program, and storage medium | |
EP3151159A1 (en) | Information processing apparatus, information processing method and program | |
JP2010134564A (en) | Image processor, image processing system, image processing method, image processing program and recording medium recording the image processing program | |
JPH08190690A (en) | Method for determining number plate | |
JP2008154216A (en) | Image processing method and device, image forming device, document reading device, computer program, and recording medium | |
WO2022056875A1 (en) | Method and apparatus for segmenting nameplate image, and computer-readable storage medium | |
JP2015176252A (en) | Image processor and image processing method | |
JP2004096435A (en) | Image analyzing device, image analysis method, and image analysis program |