JP4753889B2 - Line extraction processing apparatus, line extraction processing program, recording medium storing line extraction processing program, and line extraction processing method - Google Patents

Line extraction processing apparatus, line extraction processing program, recording medium storing line extraction processing program, and line extraction processing method Download PDF

Info

Publication number
JP4753889B2
JP4753889B2 JP2007009297A JP2007009297A JP4753889B2 JP 4753889 B2 JP4753889 B2 JP 4753889B2 JP 2007009297 A JP2007009297 A JP 2007009297A JP 2007009297 A JP2007009297 A JP 2007009297A JP 4753889 B2 JP4753889 B2 JP 4753889B2
Authority
JP
Japan
Prior art keywords
feature
differential value
line
data
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2007009297A
Other languages
Japanese (ja)
Other versions
JP2008176558A5 (en
JP2008176558A (en
Inventor
謙作 蔭地
尚史 齋鹿
洋一郎 八幡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2007009297A priority Critical patent/JP4753889B2/en
Publication of JP2008176558A publication Critical patent/JP2008176558A/en
Publication of JP2008176558A5 publication Critical patent/JP2008176558A5/ja
Application granted granted Critical
Publication of JP4753889B2 publication Critical patent/JP4753889B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、多値画像データ内の文字などの線または線のエッジを抽出する技術に関する。   The present invention relates to a technique for extracting a line such as a character or an edge of a line in multi-value image data.

近年、デジタルカメラや、スキャナの普及により、多値画像データの画像圧縮技術、OCR(Optical Character Recognition)技術、および印刷のための前処理をはじめとする各種画像処理技術の利用が増している。   In recent years, with the widespread use of digital cameras and scanners, the use of various image processing technologies including image compression technology for multi-value image data, OCR (Optical Character Recognition) technology, and pre-processing for printing has increased.

これらの技術には、画像全域にわたり、単一に処理するのではなく、領域ごとの画像の特徴に合わせて、処理を使い分けることによって、処理性能を高めているものが多く見られる。   Many of these techniques improve processing performance by using different processes in accordance with the characteristics of the image for each area, instead of processing the entire image singly.

たとえば、OCRでは画像の中の文字領域を検出し、検出した文字領域に限定して認識処理を実行することにより、誤認識を防いでいる。また、画像圧縮では、可読性が要求される文字領域や劣化の目立ちやすい線領域などに他の領域より容量を優先的に割り当てる技術などがある。   For example, in the OCR, erroneous recognition is prevented by detecting a character area in an image and executing recognition processing only on the detected character area. In image compression, there is a technique for preferentially allocating capacity over other areas to a character area where readability is required or a line area where deterioration is conspicuous.

以上からも、画像の特徴を領域ごとに分析する技術が非常に重要な役割を担っている。その中でも、文字などの線画の抽出は、特に重要である。   From the above, technology for analyzing image features for each region plays a very important role. Among them, extraction of line drawings such as characters is particularly important.

一般的に、線画抽出にはソーベルフィルタがよく用いられている。しかしながら、ソーベルフィルタはエッジの強さは測れるものの、画素値が高まる方向に変化しているのか、逆に低まる方向に変化しているかが分からない。このため、線の周辺のエッジなのか、その他のエッジなのかを特定するのが困難であった。   In general, a Sobel filter is often used for line drawing extraction. However, although the Sobel filter can measure the edge strength, it does not know whether the pixel value is changing in the increasing direction or conversely decreasing. For this reason, it is difficult to specify whether the edge is around the line or the other edge.

特許文献1では、線画を判定する手法が提案されている。この方法では、入力画像を微分処理し、微分値が正で絶対値が閾値以上の画素に対して、+Pをマークし、微分値の負で絶対値が閾値以下の画素に対して、−Pをマークする。+Pと−Pとの位置が近ければ線画と判定することにより、線画の抽出を可能としている。
特開2000−163598号公報
Patent Document 1 proposes a method for determining a line drawing. In this method, an input image is differentiated, + P is marked for a pixel whose differential value is positive and whose absolute value is greater than or equal to a threshold value, and −P Mark If the positions of + P and -P are close to each other, it is determined that the line drawing is a line drawing, thereby enabling the line drawing to be extracted.
JP 2000-163598 A

しかしながら、特許文献1で開示されている技術は、画素値の変化が大きい箇所(たとえば、網点)で、見た目に線と認識しない短い線や細かな点も検出してしまう傾向にある。   However, the technique disclosed in Patent Document 1 tends to detect short lines and fine points that are not visually recognized as lines at locations where the pixel value changes greatly (for example, halftone dots).

また、特許文献1で開示されている技術は、エッジの強い線画の検出には比較的有効ではあるが、デジタルカメラでの撮影画像データや、印刷物のスキャン画像データ等の画像データにおける線抽出、または薄い文字などの弱いエッジの線を抽出しようとすると、閾値の数値を下げなければならない。このため、Pと−Pのマークが増えてしまう。   The technique disclosed in Patent Document 1 is relatively effective for detecting a line drawing having a strong edge. However, line extraction in image data such as image data captured by a digital camera or scanned image data of a printed material, Or if you want to extract lines with weak edges, such as thin letters, you must lower the threshold value. For this reason, the marks of P and -P increase.

このようなPと−Pのマークには、正負が逆という情報しかないため、この情報のみでは様々な濃度の線を抽出することはできない。このため、写真部分など不適切な箇所まで線と判断し、検出精度が落ちてしまう。また、特定のエッジの強さの線画を検出することができない場合がある。   Since such P and -P marks have only information that the sign is reversed, it is not possible to extract lines of various densities with this information alone. For this reason, even an inappropriate part such as a photograph is determined to be a line, and the detection accuracy falls. In some cases, a line drawing having a specific edge strength cannot be detected.

加えて、特許文献1で開示されている技術では、写真画像データや、印刷物のスキャン画像データなどの画像データに対しても、Pと−Pのマークが増えて、不適切な箇所まで線と判断し、検出精度が落ちてしまう。また、特定のエッジの強さの線画を検出することができない場合があった。   In addition, in the technique disclosed in Patent Document 1, P and −P marks are increased for image data such as photographic image data and scanned image data of a printed matter, and lines and lines to inappropriate places are displayed. Judgment and detection accuracy will drop. Also, there are cases where a line drawing having a specific edge strength cannot be detected.

さらに、特許文献1で開示されている技術では、一方向のみで線抽出の解析を行なっているため、線の長さは、全く考慮されておらず、網点の点や、点状のノイズを線とし抽出してしまう傾向にある。   Furthermore, since the technique disclosed in Patent Document 1 performs line extraction analysis in only one direction, the length of the line is not taken into consideration at all, and halftone dots and dot-like noise are not considered. Tends to be extracted as a line.

本発明は、上記のような問題を解決するためになされたものであって、その目的は、効率的に線抽出を行なう線抽出処理装置を提供することである。   The present invention has been made to solve the above-described problems, and an object thereof is to provide a line extraction processing apparatus that performs line extraction efficiently.

本発明の1つの局面に従うと、画像データに含まれる線に対応するデータを抽出する線抽出処理装置であって、画像データを入力するための画像入力手段と、画像データを第1の方向に微分して、第1方向微分値データを作成するための第1方向微分処理手段と、第1方向微分値データの一部を第1方向特徴微分値とする第1方向特徴微分値データを生成するための第1方向特徴微分値データ生成処理手段と、第1方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向に対して垂直な方向である第2の方向における、線のデータを表わす画素として抽出するための第1方向線抽出処理手段とを備える。 According to one aspect of the present invention, there is provided a line extraction processing unit which extracts data corresponding to a line included in the image picture data, an image input unit for inputting image data, a first direction image data First direction differential processing means for generating first direction differential value data and first direction characteristic differential value data having a part of the first direction differential value data as a first direction characteristic differential value. The first direction characteristic differential value data generation processing means for generating and the characteristic pixel satisfying a predetermined condition among the characteristic pixels taking the first direction characteristic differential value are in a direction perpendicular to the first direction. First direction line extraction processing means for extracting as pixels representing line data in the second direction.

好ましくは、第1方向特徴微分値データ生成処理部は、第1方向微分値データのうち、所定区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とする。   Preferably, the first direction characteristic differential value data generation processing unit sets, as the first direction characteristic differential value, a first direction differential value having a maximum absolute value in a predetermined section of the first direction differential value data.

好ましくは、第1方向線抽出処理手段は、第1の特徴画素の、第1の方向において第1の所定範囲内に存在する第2の特徴画素の第1方向特徴微分値が、第1の特徴画素の第1方向特徴微分値と正負が逆で、第1の特徴画素の第1方向特徴微分値の絶対値と第2の特徴画素の第1方向特徴微分値の絶対値との差が第1の所定の値以下であるとの判断に応じて、第1の特徴画素および第2の特徴画素を、第2の方向における線のエッジを構成する画素として抽出する。   Preferably, the first direction line extraction processing unit has a first direction feature differential value of the second feature pixel existing in the first predetermined range in the first direction of the first feature pixel as the first feature pixel. The difference between the absolute value of the first direction feature differential value of the first feature pixel and the absolute value of the first direction feature differential value of the second feature pixel is the opposite of the first direction feature differential value of the feature pixel. In response to the determination that the value is equal to or less than the first predetermined value, the first feature pixel and the second feature pixel are extracted as pixels constituting the edge of the line in the second direction.

好ましくは、第1方向線抽出処理手段は、第1の特徴画素の、第1の方向において第1の所定範囲内に存在する第2の特徴画素の第1方向特徴微分値が、第1の特徴画素の第1方向特徴微分値と正負が逆で、第1の特徴画素の第1方向特徴微分値の絶対値と第2の特徴画素の第1方向特徴微分値の絶対値との差が第1の所定の値以下であるとの判断に応じて、第1の特徴画素と、第2の特徴画素と、第1の方向において第1の特徴画素と第2の特徴画素との間に存在する画素とを、第2の方向における線を構成する画素として抽出する。   Preferably, the first direction line extraction processing unit has a first direction feature differential value of the second feature pixel existing in the first predetermined range in the first direction of the first feature pixel as the first feature pixel. The difference between the absolute value of the first direction feature differential value of the first feature pixel and the absolute value of the first direction feature differential value of the second feature pixel is the opposite of the first direction feature differential value of the feature pixel. In response to the determination that the value is less than or equal to the first predetermined value, the first feature pixel, the second feature pixel, and the first feature pixel and the second feature pixel in the first direction The existing pixels are extracted as pixels constituting a line in the second direction.

好ましくは、第1方向特徴微分値データからノイズを除去するための第1方向特徴微分値データノイズ除去処理手段をさらに備える。   Preferably, it further includes first direction feature differential value data noise removal processing means for removing noise from the first direction feature differential value data.

好ましくは、第1方向特徴微分値データノイズ除去処理手段は、第1の特徴画素の第1方向特徴微分値との差が第2の所定の値以下である、第1の特徴画素と第2の方向において隣接する第3の特徴画素を、第1の特徴画素と連結する特徴画素として、第1の特徴画素についての特徴画素の連結数を算出し、連結数が第3の所定の値以下であるとの判断に応じて、第1方向特徴微分値データから、第1の特徴画素および第1の特徴画素と連結した特徴画素の第1方向特徴微分値データをノイズとして除去する。   Preferably, the first direction characteristic differential value data noise removal processing means has a difference between the first characteristic pixel and the first characteristic pixel that is equal to or less than a second predetermined value. The number of connected feature pixels for the first feature pixel is calculated using the third feature pixel adjacent in the direction of the feature pixel as the feature pixel connected to the first feature pixel, and the number of connections is equal to or less than a third predetermined value. The first direction feature differential value data of the feature pixel connected to the first feature pixel and the first feature pixel is removed as noise from the first direction feature differential value data.

本発明の他の局面に従うと、画像データに含まれる線に対応するデータを抽出する線抽出処理装置であって、画像データを入力するための画像入力手段と、画像データを第1の方向に微分して、第1方向微分値データを作成するための第1方向微分処理手段と、第1方向微分値データの一部を第1方向特徴微分値とする第1方向特徴微分値データを生成するための第1方向特徴微分値データ生成処理手段と、第1方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向に対して垂直な方向である第2の方向における、線のデータを表わす画素として抽出するための第1方向線抽出処理手段と、画像データを第2の方向に微分して、第2方向微分値データを作成するための第2方向微分処理手段と、第2方向微分値データの一部を第2方向特徴微分値とする第2方向特徴微分値データを生成するための第2方向特徴微分値データ生成処理手段と、第2方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向における、線のデータを表わす画素として抽出するための第2方向線抽出処理手段と、第1方向線抽出処理手段および第2方向線抽出処理手段によって抽出された画素を合成することにより線データを作成するための各方向線データ合成手段とを備える。 According to another aspect of the present invention, there is provided a line extraction processing unit which extracts data corresponding to a line included in the image picture data, an image input unit for inputting image data, a first direction image data First direction differential processing means for generating first direction differential value data and first direction characteristic differential value data having a part of the first direction differential value data as a first direction characteristic differential value. The first direction characteristic differential value data generation processing means for generating and the characteristic pixel satisfying a predetermined condition among the characteristic pixels taking the first direction characteristic differential value are in a direction perpendicular to the first direction. First direction line extraction processing means for extracting pixels representing line data in the second direction, and first direction for differentiating the image data in the second direction to generate second direction differential value data. Two-direction differential processing means and second-direction differential value A second direction feature differential value data generation processing unit for generating second direction feature differential value data in which a part of the data is a second direction feature differential value, and a feature pixel that takes the second direction feature differential value , Second direction line extraction processing means, first direction line extraction processing means, and second direction line extraction processing for extracting feature pixels satisfying a predetermined condition as pixels representing line data in the first direction. Each direction line data synthesizing means for creating line data by synthesizing the pixels extracted by the means.

好ましくは、第1方向特徴微分値データと第2方向特徴微分値データとを合成して、合成特徴微分値データを生成するための各方向特徴微分値データ合成処理部をさらに備える。   Preferably, each direction feature differential value data synthesis processing unit for synthesizing the first direction feature differential value data and the second direction feature differential value data to generate synthesized feature differential value data is further provided.

好ましくは、第1方向特徴微分値データからノイズを除去するための第1方向特徴微分値データノイズ除去処理手段と、第2方向特徴微分値データからノイズを除去するための第2方向特徴微分値データノイズ除去処理手段のうち少なくとも1つを備える。   Preferably, first direction feature differential value data noise removal processing means for removing noise from the first direction feature differential value data, and second direction feature differential value for removing noise from the second direction feature differential value data. At least one of data noise removal processing means is provided.

好ましくは、第1方向特徴微分値データ生成処理部は、第1方向微分値データのうち、所定区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とし、第2方向特徴微分値データ生成処理部は、第2方向微分値データのうち、所定区間において絶対値が最大となる第2方向微分値を第2方向特徴微分値とする。   Preferably, the first direction characteristic differential value data generation processing unit sets, as the first direction characteristic differential value, the first direction differential value having the maximum absolute value in the predetermined section of the first direction differential value data, and the second direction The feature differential value data generation processing unit sets the second direction differential value having the maximum absolute value in the predetermined interval in the second direction differential value data as the second direction characteristic differential value.

好ましくは、第1方向線抽出処理手段は、第1の特徴画素の、第1の方向において第1の所定範囲内に存在する第2の特徴画素の第1方向特徴微分値が、第1の特徴画素の第1方向特徴微分値と正負が逆で、第1の特徴画素の第1方向特徴微分値の絶対値と第2の特徴画素の第1方向特徴微分値の絶対値との差が第1の所定の値以下であるとの判断に応じて、第1の特徴画素および第2の特徴画素を、第2の方向における線のエッジを構成する画素として抽出し、第2方向線抽出処理手段は、第1の特徴画素の、第2の方向において第2の所定範囲内に存在する第3の特徴画素の第2方向特徴微分値が、第1の特徴画素の第2方向特徴微分値と正負が逆で、第1の特徴画素の第2方向特徴微分値の絶対値と第3の特徴画素の第2方向特徴微分値の絶対値との差が第2の所定の値以下であるとの判断に応じて、第1の特徴画素および第3の特徴画素を、第1の方向における線のエッジを構成する画素として抽出する。   Preferably, the first direction line extraction processing unit has a first direction feature differential value of the second feature pixel existing in the first predetermined range in the first direction of the first feature pixel as the first feature pixel. The difference between the absolute value of the first direction feature differential value of the first feature pixel and the absolute value of the first direction feature differential value of the second feature pixel is the opposite of the first direction feature differential value of the feature pixel. In response to the determination that the value is equal to or less than the first predetermined value, the first feature pixel and the second feature pixel are extracted as pixels constituting the edge of the line in the second direction, and the second direction line extraction is performed. The processing means is configured such that the second direction feature differential value of the third feature pixel existing within the second predetermined range in the second direction of the first feature pixel is the second direction feature differential value of the first feature pixel. The value is opposite in sign and the absolute value of the second direction feature differential value of the first feature pixel and the second direction feature derivative of the third feature pixel The first feature pixel and the third feature pixel are extracted as the pixels constituting the edge of the line in the first direction in response to the determination that the difference from the absolute value of is not more than the second predetermined value. To do.

好ましくは、第1方向線抽出処理手段は、第1の特徴画素の、第1の方向において第1の所定範囲内に存在する第2の特徴画素の第1方向特徴微分値が、第1の特徴画素の第1方向特徴微分値と正負が逆で、第1の特徴画素の第1方向特徴微分値の絶対値と第2の特徴画素の第1方向特徴微分値の絶対値との差が第1の所定の値以下であるとの判断に応じて、第1の特徴画素と、第2の特徴画素と、第1の方向において第1の特徴画素と第2の特徴画素との間に存在する画素とを、第2の方向における線を構成する画素として抽出し、第2方向線抽出処理手段は、第1の特徴画素の、第2の方向において第2の所定範囲内に存在する第3の特徴画素の第2方向特徴微分値が、第1の特徴画素の第2方向特徴微分値と正負が逆で、第1の特徴画素の第2方向特徴微分値の絶対値と第3の特徴画素の第2方向特徴微分値の絶対値との差が第2の所定の値以下であるとの判断に応じて、第1の特徴画素と、第3の特徴画素と、第1の方向において第1の特徴画素と第3の特徴画素との間に存在する画素とを、第1の方向における線を構成する画素として抽出する。   Preferably, the first direction line extraction processing unit has a first direction feature differential value of the second feature pixel existing in the first predetermined range in the first direction of the first feature pixel as the first feature pixel. The difference between the absolute value of the first direction feature differential value of the first feature pixel and the absolute value of the first direction feature differential value of the second feature pixel is the opposite of the first direction feature differential value of the feature pixel. In response to the determination that the value is less than or equal to the first predetermined value, the first feature pixel, the second feature pixel, and the first feature pixel and the second feature pixel in the first direction The existing pixels are extracted as pixels constituting a line in the second direction, and the second direction line extraction processing means exists within the second predetermined range in the second direction of the first feature pixel. The second feature differential value of the third feature pixel is opposite in polarity to the second direction feature differential value of the first feature pixel. In response to the determination that the difference between the absolute value of the second direction feature differential value of the second feature differential value and the absolute value of the second direction feature differential value of the third feature pixel is equal to or less than the second predetermined value. The pixel, the third feature pixel, and the pixel existing between the first feature pixel and the third feature pixel in the first direction are extracted as pixels constituting a line in the first direction.

好ましくは、第1方向線抽出処理手段は、第1方向特徴微分値に代わって、合成特徴微分値をとる特徴画素から線のデータを表わす画素として抽出し、第2方向線抽出処理手段は、第2方向特徴微分値に代わって、合成特徴微分値をとる特徴画素から線のデータを表わす画素として抽出する。   Preferably, the first direction line extraction processing means extracts the pixel representing the line data from the feature pixels taking the combined feature differential value instead of the first direction feature differential value, and the second direction line extraction processing means includes: Instead of the second direction feature differential value, a pixel representing line data is extracted from the feature pixel taking the composite feature differential value.

好ましくは、第1方向特徴微分値データノイズ除去処理手段は、第1の特徴画素の第1方向特徴微分値との差が第3の所定の値以下である、第1の特徴画素と第2の方向において隣接する特徴画素を、第1の特徴画素と連結する特徴画素として、第1の特徴画素についての特徴画素の連結数を算出し、連結数が第4の所定の値以下であるとの判断に応じて、第1方向特徴微分値データから、第1の特徴画素および第1の特徴画素と第2の方向において連結した特徴画素の第1方向特徴微分値データをノイズとして除去して第1方向特徴微分値データとし、第2方向特徴微分値データノイズ除去処理手段は、第1の特徴画素の第2方向特徴微分値との差が第5の所定の値以下である、第1の特徴画素と第1の方向において隣接する特徴画素を、第1の特徴画素と連結する特徴画素として、第1の特徴画素についての特徴画素の連結数を算出し、連結数が第6の所定の値以下であるとの判断に応じて、第2方向特徴微分値データから、第1の特徴画素および第1の特徴画素と第1の方向において連結した特徴画素の第2方向特徴微分値を除去して第2方向特徴微分値データとする。   Preferably, the first direction feature differential value data noise removal processing means has a difference between the first feature pixel and the first feature pixel that is equal to or less than a third predetermined value. The number of connected feature pixels for the first feature pixel is calculated as a feature pixel connected to the first feature pixel as a feature pixel that is adjacent to the first feature pixel, and the number of connections is equal to or less than a fourth predetermined value. The first direction feature differential value data of the first feature pixel and the feature pixel connected to the first feature pixel in the second direction is removed as noise from the first direction feature differential value data. The first direction feature differential value data is used as the first direction feature differential value data noise removal processing means. The first direction feature differential value data noise removal processing means has a first difference between the first feature pixel and the second direction feature differential value equal to or less than a fifth predetermined value. A feature pixel adjacent to the feature pixel in the first direction, As a feature pixel to be connected to one feature pixel, the number of connected feature pixels for the first feature pixel is calculated, and the second direction feature is determined according to the determination that the number of connections is equal to or less than a sixth predetermined value. The second direction feature differential value data is removed from the differential value data by removing the first feature pixel and the second direction feature differential value of the feature pixel connected to the first feature pixel in the first direction.

本発明のさらに他の局面に従うと、演算部を有するコンピュータに、画像データに含まれる線に対応するデータを抽出する処理を実行させるプログラムであって、演算部が、画像データを入力するステップと、演算部が、画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、演算部が、第1方向微分値データの一部を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、演算部が、第1方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向に対して垂直な方向である第2の方向における、線のデータを表わす画素として抽出するステップとを備える。 Step According to yet another aspect of the present invention, the computer having an arithmetic unit, a program for executing a process of extracting data corresponding to a line included in the image picture data, the arithmetic unit inputs image data And a step of differentiating the image data in the first direction to generate first direction differential value data, and a calculation unit converting a part of the first direction differential value data to the first direction characteristic differential value. And generating a first direction feature differential value data, and among the feature pixels having the first direction feature differential value, the calculation unit selects a feature pixel satisfying a predetermined condition perpendicular to the first direction. And extracting as pixels representing line data in a second direction which is a direction.

本発明のさらに他の局面に従うと、上記線抽出プログラムを格納したコンピュータ読み取り可能な記録媒体を提供する。   According to still another aspect of the present invention, a computer-readable recording medium storing the line extraction program is provided.

本発明のさらに他の局面に従うと、演算部を有するコンピュータに、画像データに含まれる線に対応するデータを抽出する処理を実行させるプログラムであって、演算部が、画像データを入力するステップと、演算部が、画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、演算部が、第1方向微分値データの一部を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、演算部が、第1方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向に対して垂直な方向である第2の方向における、線のデータを表わす画素として抽出するステップと、演算部が、画像データを第2の方向に微分して、第2方向微分値データを作成するステップと、演算部が、第2方向微分値データの一部を第2方向特徴微分値とする第2方向特徴微分値データを生成するステップと、演算部が、第2方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向における、線のデータを表わす画素として抽出するステップと、演算部が、線のデータを表わす画素として抽出された、第1の方向および第2の方向における画素を合成することにより線データを作成するステップとを備える。 Step According to yet another aspect of the present invention, the computer having an arithmetic unit, a program for executing a process of extracting data corresponding to a line included in the image picture data, the arithmetic unit inputs image data And a step of differentiating the image data in the first direction to generate first direction differential value data, and a calculation unit converting a part of the first direction differential value data to the first direction characteristic differential value. And generating a first direction feature differential value data, and among the feature pixels having the first direction feature differential value, the calculation unit selects a feature pixel satisfying a predetermined condition perpendicular to the first direction. A step of extracting pixels representing line data in a second direction which is a direction, a step of differentiating the image data in the second direction to generate second direction differential value data, and a calculation Part is second A step of generating second direction characteristic differential value data in which a part of the differential value data is set as a second direction characteristic differential value, and a calculation unit satisfying a predetermined condition among characteristic pixels having the second direction characteristic differential value A step of extracting feature pixels as pixels representing line data in the first direction, and an arithmetic unit combining pixels in the first direction and the second direction extracted as pixels representing line data; To create line data.

本発明のさらに他の局面に従うと、上記線抽出プログラムを格納したコンピュータ読み取り可能な記録媒体を提供する。   According to still another aspect of the present invention, a computer-readable recording medium storing the line extraction program is provided.

本発明のさらに他の局面に従うと、画像データに含まれる線に対応するデータを抽出する方法であって、画像データを入力するステップと、画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、第1方向微分値データの一部を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、第1方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向に対して垂直な方向である第2の方向における、線のデータを表わす画素として抽出するステップとを備える。 According to yet another aspect of the present invention, there is provided a method of extracting data corresponding to a line included in the image picture data, comprising the steps of: inputting image data, by differentiating the image data in a first direction, the A step of creating one-direction differential value data, a step of generating first direction characteristic differential value data in which a part of the first direction differential value data is a first direction characteristic differential value, and a first direction characteristic differential value are taken. Extracting a feature pixel satisfying a predetermined condition from the feature pixels as a pixel representing line data in a second direction perpendicular to the first direction.

本発明のさらに他の局面に従うと、画像データに含まれる線に対応するデータを抽出する方法であって、画像データを入力するステップと、画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、第1方向微分値データの一部を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、第1方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向に対して垂直な方向である第2の方向における、線のデータを表わす画素として抽出するステップと、画像データを第2の方向に微分して、第2方向微分値データを作成するステップと、第2方向微分値データの一部を第2方向特徴微分値とする第2方向特徴微分値データを生成するステップと、第2方向特徴微分値をとる特徴画素のうち、所定の条件を満たす特徴画素を、第1の方向における、線のデータを表わす画素として抽出するステップと、線のデータを表わす画素として抽出された、第1の方向および第2の方向における画素を合成することにより線データを作成するステップとを備える。 According to yet another aspect of the present invention, there is provided a method of extracting data corresponding to a line included in the image picture data, comprising the steps of: inputting image data, by differentiating the image data in a first direction, the A step of creating one-direction differential value data, a step of generating first direction characteristic differential value data in which a part of the first direction differential value data is a first direction characteristic differential value, and a first direction characteristic differential value are taken. Extracting a feature pixel satisfying a predetermined condition from the feature pixels as a pixel representing line data in a second direction which is perpendicular to the first direction; Differentiating in the direction to generate second direction differential value data; generating second direction characteristic differential value data in which part of the second direction differential value data is the second direction characteristic differential value; Two-way characteristic differential value A feature pixel satisfying a predetermined condition is extracted as a pixel representing line data in the first direction, and the first direction and the first extracted as pixels representing line data are extracted. Creating line data by synthesizing pixels in two directions.

本発明によれば、効率的に線抽出を行なうことができる。   According to the present invention, line extraction can be performed efficiently.

以下、図面を参照しつつ本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがって、それらについては詳細な説明は繰り返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

[実施の形態1]
実施の形態1に係る線抽出処理装置は、ある方向の画素値(階調値)の並びを解析することにより、その方向と直交する方向の線成分を抽出する。
[Embodiment 1]
The line extraction processing apparatus according to the first embodiment extracts a line component in a direction orthogonal to the direction by analyzing the arrangement of pixel values (gradation values) in a certain direction.

以下では、X−Y座標系において、X方向の画素値の並びを解析し、Y方向の線成分を抽出する処理について説明する。なお、X方向を水平方向、Y方向を垂直方向として説明するが、X方向の取り方は任意の方向でよく、また、Y方向もX方向に直交するものであればよい。   In the following, a process for analyzing the arrangement of pixel values in the X direction and extracting a line component in the Y direction in the XY coordinate system will be described. The X direction is assumed to be the horizontal direction and the Y direction is assumed to be the vertical direction. However, the X direction may be any direction as long as the Y direction is orthogonal to the X direction.

図1は、本実施の形態に係る線抽出処理装置202を搭載するコンピュータ1のハードウェア構成の具体例を示す図であり、一般的なコンピュータのハードウェア構成の具体例を示すブロック図である。   FIG. 1 is a diagram illustrating a specific example of the hardware configuration of a computer 1 on which the line extraction processing device 202 according to the present embodiment is mounted, and is a block diagram illustrating a specific example of the hardware configuration of a general computer. .

図1を参照して、コンピュータ1は、装置全体を制御するCPU(Central Processing Unit)101と、ROM(Read Only Memory)103と、RAM(Random Access Memory)105と、ハードディスクドライブ(HDD:Hard Disk Drive)107と、フレキシブルディスクドライブ(FDD:Flexible Disk Drive)やCD−ROM(Compact Disk-Read Only Memory)ドライブなど記録媒体2から情報を読取る読取部109と、キーボードやマウスなどにより構成される入力部111と、外部と通信行なうための通信部113と、表示部115とを備える。   Referring to FIG. 1, a computer 1 includes a CPU (Central Processing Unit) 101, a ROM (Read Only Memory) 103, a RAM (Random Access Memory) 105, and a hard disk drive (HDD: Hard Disk) that control the entire apparatus. Drive 107, a reading unit 109 that reads information from the recording medium 2 such as a flexible disk drive (FDD: Flexible Disk Drive) or a CD-ROM (Compact Disk-Read Only Memory) drive, and an input constituted by a keyboard, a mouse, and the like Unit 111, communication unit 113 for communicating with the outside, and display unit 115.

本実施の形態に係る線抽出処理装置202は、コンピュータ1のハードウェア、およびROM103等の記憶部に記憶されCPU101により実行されるソフトウェアにより構成され、後述する線抽出処理を行なうための機能は、CPU101がROM103等の記憶部に記憶されるプログラムを読出して実行することによって、主にCPU101に形成される。または、上記機能の少なくとも一部は図1に示されたコンピュータ1のハードウェアによって構成されてもよい。   The line extraction processing apparatus 202 according to the present embodiment is configured by hardware of the computer 1 and software executed by the CPU 101 stored in a storage unit such as the ROM 103, and a function for performing line extraction processing described later is as follows. The CPU 101 is mainly formed in the CPU 101 by reading and executing a program stored in a storage unit such as the ROM 103. Or at least one part of the said function may be comprised by the hardware of the computer 1 shown by FIG.

図2は、本実施の形態に係るコンピュータ1において線抽出処理装置202として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。   FIG. 2 is a block diagram showing a specific example of a functional configuration for functioning as the line extraction processing device 202 in the computer 1 according to the present embodiment and performing line extraction processing.

図2を参照して、実施の形態1に係る線抽出処理装置202の機能構成について説明する。   With reference to FIG. 2, the functional configuration of the line extraction processing apparatus 202 according to the first embodiment will be described.

線抽出処理装置202の上記機能は、入力画像データバッファ204と、X方向微分処理部205と、X方向微分値データバッファ206と、X方向特徴微分値データ生成処理部207と、X方向特徴微分値データバッファ208と、Y方向線抽出処理部209と、Y方向線データバッファ210とから構成される。   The function of the line extraction processing device 202 includes an input image data buffer 204, an X-direction differentiation processing unit 205, an X-direction differential value data buffer 206, an X-direction feature differential value data generation processing unit 207, and an X-direction feature differentiation. A value data buffer 208, a Y-direction line extraction processing unit 209, and a Y-direction line data buffer 210 are included.

これらの構成要素は、主に線抽出処理装置の機能を実現する専用のLSI(Large-Scale Integration)とメモリとによって構成することが可能である。ただし、コンピュータ1のCPU101や他のハードウェアによって構成されてもよい。なお、このような専用LSIは、X方向微分処理部205、X方向特徴微分値データ生成処理部207、Y方向線抽出処理部209として機能する。   These components can be configured mainly by a dedicated LSI (Large-Scale Integration) that realizes the function of the line extraction processing device and a memory. However, it may be configured by the CPU 101 of the computer 1 or other hardware. Note that such a dedicated LSI functions as an X-direction differentiation processing unit 205, an X-direction feature differential value data generation processing unit 207, and a Y-direction line extraction processing unit 209.

また、入力画像データバッファ204、X方向微分値データバッファ206、X方向特徴微分値データバッファ208およびY方向線データバッファ210は、ROM103、RAM105またはHDD107等によって実現される。   The input image data buffer 204, the X-direction differential value data buffer 206, the X-direction characteristic differential value data buffer 208, and the Y-direction line data buffer 210 are realized by the ROM 103, the RAM 105, the HDD 107, or the like.

以下に、線抽出処理装置202の上記構成要素について説明する。
入力画像データバッファ204は、画像入力装置201から入力された、多値の画像データを格納する。
Below, the said component of the line extraction processing apparatus 202 is demonstrated.
The input image data buffer 204 stores multi-valued image data input from the image input device 201.

X方向微分処理部205は、入力画像データバッファ204から画像データを読み込む。そして、X方向に微分処理し、X方向の微分値データをX方向微分値データバッファ206に与える。なお、X方向微分処理部205が行なうX方向の微分処理は、X方向の画素が持つ画素値の傾き、変化の割合の度合いが分かる処理であれば何でもよい。   The X direction differentiation processing unit 205 reads image data from the input image data buffer 204. Then, differential processing is performed in the X direction, and the differential value data in the X direction is given to the X direction differential value data buffer 206. Note that the X-direction differentiation processing performed by the X-direction differentiation processing unit 205 may be anything as long as it is a process that can determine the inclination of the pixel value and the rate of change of the pixels in the X direction.

図3は、隣の画素との差分を計算するためのフィルタを示す図である。
図3(a)〜(d)に示すように、X方向微分処理部205は、単に隣の画素との差分を計算するフィルタを用いてよい。本実施の形態では、たとえば、図3(a)に示すフィルタを用いる。
FIG. 3 is a diagram illustrating a filter for calculating a difference from an adjacent pixel.
As illustrated in FIGS. 3A to 3D, the X-direction differentiation processing unit 205 may simply use a filter that calculates a difference from an adjacent pixel. In the present embodiment, for example, a filter shown in FIG.

図2に戻って、X方向微分値データバッファ206は、X方向微分処理部205から与えられたX方向の微分値データを格納する。   Returning to FIG. 2, the X-direction differential value data buffer 206 stores the X-direction differential value data given from the X-direction differential processing unit 205.

X方向特徴微分値データ生成処理部207は、X方向微分値データバッファ206から、X方向微分値データを読み込む。そして、X方向特徴微分値を抽出して作成したX方向特徴微分値データをX方向特徴微分値データバッファ208に与える。   The X direction characteristic differential value data generation processing unit 207 reads X direction differential value data from the X direction differential value data buffer 206. Then, the X-direction feature differential value data created by extracting the X-direction feature differential value is given to the X-direction feature differential value data buffer 208.

図4は、X方向特徴微分値を説明するための図である。図4(a)は入力された多値の画像データを示す図であり、図4(b)はX方向の破線401における画素値の並びを示す図であり、図4(c)は、図4(b)ので示される画素値の並びに対して、X方向の微分処理により生成されたX方向微分値データを示す図である。   FIG. 4 is a diagram for explaining the X-direction characteristic differential value. 4A is a diagram showing input multi-valued image data, FIG. 4B is a diagram showing an arrangement of pixel values along a broken line 401 in the X direction, and FIG. 4C is a diagram of FIG. It is a figure which shows the X direction differential value data produced | generated by the differential process of a X direction with respect to the arrangement | sequence of the pixel value shown by 4 (b).

図4を参照して、X方向特徴微分値データについて説明する。
ここで、「特徴微分値」とは、微分値データにおいて、微分値が正または負の連続する区間内で絶対値が最大の微分値のことをいう。たとえば、図4(c)において、点402〜405で示される微分値が特徴微分値である。
The X-direction characteristic differential value data will be described with reference to FIG.
Here, the “characteristic differential value” refers to a differential value having a maximum absolute value within a section in which the differential value is positive or negative in the differential value data. For example, in FIG. 4C, differential values indicated by points 402 to 405 are characteristic differential values.

また、「特徴画素」とは、特徴微分値をとる画素のことをいう。
「特徴微分値データ」とは、微分値データから抽出した特徴微分値を含むデータである。特徴微分値データでは、微分値データのうち特徴微分値以外の微分値は、特徴微分値と区別することができる値で表現される。たとえば、特徴微分値以外の微分値を所定の数値で表現したり、特徴微分値以外の微分値をとる所定区間を特徴微分値とは異なる数値で表現したりする。このような値は、特徴微分値と区別できれば自由に設定することができる。また、特徴微分値データとして、各微分値が特徴微分値であるか否かを示す情報を保持するようにしてもよい。本実施の形態では、たとえば、特徴微分値以外の微分値を、特徴微分値とはなりえない微分値であるゼロで表現する
図5は、図4(c)で示される微分値データに基づき作成した特徴微分値データを示す図である。なお、図5において、x軸方向は画素の位置、y軸方向は微分値を示す。
Further, “feature pixel” refers to a pixel that takes a characteristic differential value.
The “characteristic differential value data” is data including a characteristic differential value extracted from the differential value data. In the characteristic differential value data, the differential value other than the characteristic differential value in the differential value data is expressed by a value that can be distinguished from the characteristic differential value. For example, a differential value other than the characteristic differential value is expressed by a predetermined numerical value, or a predetermined interval in which the differential value other than the characteristic differential value is obtained is expressed by a numerical value different from the characteristic differential value. Such a value can be freely set as long as it can be distinguished from the characteristic differential value. Moreover, you may make it hold | maintain the information which shows whether each differential value is a characteristic differential value as characteristic differential value data. In the present embodiment, for example, a differential value other than the characteristic differential value is expressed by zero, which is a differential value that cannot be the characteristic differential value. FIG. 5 is based on the differential value data shown in FIG. It is a figure which shows the produced characteristic differential value data. In FIG. 5, the x-axis direction indicates the pixel position, and the y-axis direction indicates the differential value.

図5に示す柱状グラフのように、特徴微分値データは、特徴微分値(点402〜405に対応)と、特徴微分値以外の微分値(ゼロ)で表現される。   Like the columnar graph shown in FIG. 5, the characteristic differential value data is expressed by a characteristic differential value (corresponding to points 402 to 405) and a differential value (zero) other than the characteristic differential value.

図6は、微分値データと特徴微分値データの別の例を示す図である。図6(a)は微分値データを示しており、図6(b)は図6(a)で示される微分値データに基づき作成した特徴微分値データである。なお、図6において、x軸方向は画素の位置、y軸方向は微分値を示す。   FIG. 6 is a diagram illustrating another example of differential value data and characteristic differential value data. FIG. 6A shows differential value data, and FIG. 6B is characteristic differential value data created based on the differential value data shown in FIG. In FIG. 6, the x-axis direction indicates the pixel position, and the y-axis direction indicates the differential value.

図6(a)に示すように、微分値データは、正または負の連続する区間70,72,74,76に分けられる。それぞれの区間において、点71,73,75,77で示される、絶対値が最大の微分値が特徴微分値である。   As shown in FIG. 6A, the differential value data is divided into positive or negative continuous sections 70, 72, 74, and 76. In each section, the differential value having the maximum absolute value indicated by points 71, 73, 75, 77 is the characteristic differential value.

図6(b)に示す柱状グラフのように、特徴微分値データは、図6(a)における特徴微分値(点71,73,75,77)と、特徴微分値以外の微分値(ゼロ)で表現される。   Like the columnar graph shown in FIG. 6B, the characteristic differential value data includes the characteristic differential values (points 71, 73, 75, 77) in FIG. 6A and differential values other than the characteristic differential values (zero). It is expressed by

このように、本実施の形態では、微分値データを特徴微分値と特徴微分値以外の微分値に分離し、特徴微分値以外の微分値をゼロにする。   Thus, in this embodiment, the differential value data is separated into the characteristic differential value and the differential value other than the characteristic differential value, and the differential value other than the characteristic differential value is set to zero.

写真画像データやスキャナでスキャニングした画像データのX方向微分値データは、1つのエッジが、多くの異なる微分値で表現されている。一般的に、多くの異なる微分値で表現される1つのエッジでは、絶対値が最大となる微分値が見た目のエッジの強さを決定付ける。このため、上記のような処理を行なうことにより、後述するY方向線抽出処理での抽出精度を高めるとともに、処理の高速化を実現することができる。   In the X direction differential value data of photographic image data or image data scanned by a scanner, one edge is expressed by many different differential values. Generally, in one edge expressed by many different differential values, the differential value having the maximum absolute value determines the strength of the apparent edge. For this reason, by performing the processing as described above, it is possible to improve the extraction accuracy in the Y-direction line extraction processing described later and to increase the processing speed.

なお、正または負の連続する区間の長さが大きくなると、それだけメモリ量が必要になる。しかし、区間長の最大の大きさを規定し、区間長が最大の大きさを超える区間については、区間長が最大の大きさとなる1つ以上の区間と、残りの区間とに分けることにより、メモリ量に制約のあるシステムでも近似的な処理を実現することが可能である。   In addition, if the length of the positive or negative continuous section is increased, the amount of memory is required. However, by defining the maximum size of the section length and dividing the section length exceeding the maximum size into one or more sections with the maximum section length and the remaining sections, Approximate processing can be realized even in a system with a limited amount of memory.

また、所定範囲のエッジの強さの線を抽出したい場合は、特徴微分値の取りうる値域に制約を設け、その値域から外れた特徴微分値は、特徴微分値から外すようにすればよい。   In addition, when it is desired to extract a line of edge strength within a predetermined range, a restriction may be placed on a value range that can be taken by the characteristic differential value, and a characteristic differential value that deviates from the value range may be excluded from the characteristic differential value.

たとえば、d_min_x以上d_max_x以下の値をとる特徴微分値は、特徴微分値として微分値データから抽出しないようにすればよい。   For example, a feature differential value that takes a value of d_min_x or more and d_max_x or less may not be extracted from the differential value data as a feature differential value.

d_min_xおよびd_max_xは、自由に設定できる。たとえば、d_min_xを30、d_max_xを50などに設定する。   d_min_x and d_max_x can be freely set. For example, d_min_x is set to 30, d_max_x is set to 50, and the like.

後の処理からも明らかなように線の判定は特徴微分値の値と位置によって決められるため、特徴微分値ではない箇所は線の判定に影響を与えない。   As will be apparent from the subsequent processing, the line determination is determined by the value and position of the characteristic differential value, and therefore the portion that is not the characteristic differential value does not affect the line determination.

図2に戻って、X方向特徴微分値データバッファ208は、X方向特徴微分値データ生成処理部207から与えられたX方向特徴微分値データを格納する。   Returning to FIG. 2, the X-direction feature differential value data buffer 208 stores the X-direction feature differential value data provided from the X-direction feature differential value data generation processing unit 207.

Y方向線抽出処理部209は、X方向特徴微分値データバッファ208からX方向特徴微分値データを読み込み、Y方向線データを出力する。   The Y-direction line extraction processing unit 209 reads the X-direction feature differential value data from the X-direction feature differential value data buffer 208 and outputs Y-direction line data.

ここで、Y方向線データについて説明する。
Y方向線抽出処理部209は、X方向特徴微分値データのX方向の並びを解析する。そして、0以外の特徴微分値Aをとる特徴画素aの+X方向または−X方向に閾値thick_max_x画素以内に存在する特徴画素bについて、特徴画素bの特徴微分値Bが特徴微分値Aと正負が逆で、かつ特徴微分値Aの絶対値|A|と特徴微分値Bの絶対値|B|との差が閾値value_max_x以内である場合、特徴画素aおよびbを線のエッジと判定する。そして、Y方向線データとして、特徴画素aおよびbが線の情報であることを示す値に設定する。なお、線の情報であることを示す値は任意でよいが、ここでは1を用いることとする。
Here, the Y direction line data will be described.
The Y direction line extraction processing unit 209 analyzes the arrangement of the X direction characteristic differential value data in the X direction. Then, for the feature pixel b existing within the threshold thick_max_x pixels in the + X direction or the −X direction of the feature pixel a taking a feature derivative value A other than 0, the feature differential value B of the feature pixel b is positive or negative. On the other hand, if the difference between the absolute value | A | of the characteristic differential value A and the absolute value | B | of the characteristic differential value B is within the threshold value_max_x, the characteristic pixels a and b are determined as the edges of the line. Then, the Y direction line data is set to a value indicating that the feature pixels a and b are line information. The value indicating the line information may be arbitrary, but 1 is used here.

このような処理を行なうのは、線の両側には2つのエッジが対になって存在し、また、その2つのエッジは、傾きの正負の符号が逆であることと、また、線として認識するには、その2つのエッジの傾き度合いの大きさの絶対値は近い値である必要があるからである。   This process is performed because two edges exist in pairs on both sides of the line, and the two edges are recognized as having a reverse sign of the slope and are recognized as a line. This is because the absolute value of the magnitude of the inclination degree of the two edges needs to be close.

つまり、閾値thick_max_xは、線の太さに関する閾値である。
閾値thick_max_xを大きく設定すると、線としてみなす太さも大きくなる。
That is, the threshold thick_max_x is a threshold related to the thickness of the line.
When the threshold value thick_max_x is set large, the thickness regarded as a line also increases.

閾値thick_max_xは、検出対象とするX方向の線の幅の最大値を意味する。閾値thick_max_xは、検出したい線の太さに応じて自由に設定すればよい。   The threshold value thick_max_x means the maximum value of the line width in the X direction to be detected. The threshold thick_max_x may be freely set according to the thickness of the line to be detected.

本実施例では、thick_max_x=5、value_max_x=10、に設定することとする。   In the present embodiment, thick_max_x = 5 and value_max_x = 10 are set.

ここで、線の太さを限定して抽出したい場合は、「X方向特徴微分値データのX方向の並びを解析し、特徴微分値A(本実施の形態では0以外の値)をとる特徴画素aの+X方向または−X方向に閾値thick_min_x以上thick_max_x画素以下の範囲に存在する特徴画素bについて、特徴微分値Bが特徴微分値Aと正負が逆で、かつ絶対値|A|と絶対値|B|との差が閾値value_max_x以内である場合、特徴画素aおよびbを線のエッジと判定し、Y方向線データとして、特徴画素aおよびbを線の情報であることを示す値に設定する。」とすればよい。   Here, when it is desired to extract the line with a limited thickness, “a feature that analyzes the arrangement of the X-direction characteristic differential value data in the X direction and takes the characteristic differential value A (a value other than 0 in the present embodiment). For a feature pixel b that exists in a range between the threshold thick_min_x and the thickness_max_x pixels in the + X direction or the −X direction of the pixel a, the feature differential value B is opposite to the feature differential value A and positive and negative, and an absolute value | A | When the difference from | B | is within the threshold value_max_x, the characteristic pixels a and b are determined to be line edges, and the characteristic pixels a and b are set as values indicating the line information as Y-direction line data. You can do that.

もちろん、「X方向特徴微分値データのX方向の並びを解析し、特徴微分値A(本実施の形態では0以外の値)をとる特徴画素aの+X方向または−X方向に閾値thick_min_x画素以上に存在する特徴画素bのうち、特徴微分値Bが特徴微分値Aと正負が逆で、かつ絶対値|A|と絶対値|B|との差が閾値value_max_x以内である場合、特徴画素aおよびbを線のエッジと判定し、Y方向線データとして、特徴画素aおよびbを線の情報であることを示す値に設定する。」とすれば、太さの上限はなく、下限のみが設定可能である。   Of course, “by analyzing the arrangement of the X direction characteristic differential value data in the X direction, the characteristic pixel A taking a characteristic differential value A (a value other than 0 in this embodiment) is greater than or equal to the threshold thick_min_x pixel in the + X direction or the −X direction of the characteristic pixel a. If the characteristic differential value B is opposite to the characteristic differential value A, and the difference between the absolute value | A | and the absolute value | B | is within the threshold value_max_x, the characteristic pixel a And b are determined as line edges, and the characteristic pixels a and b are set as values indicating the line information as Y-direction line data. " It can be set.

Y方向線データバッファ210は、Y方向線抽出処理部209から与えられたY方向線データを格納する。   The Y direction line data buffer 210 stores the Y direction line data given from the Y direction line extraction processing unit 209.

線抽出処理装置202は、Y方向線データバッファ210に格納されたY方向線データを線データ出力装置203に出力する。   The line extraction processing device 202 outputs the Y direction line data stored in the Y direction line data buffer 210 to the line data output device 203.

図7は、線抽出処理装置202が行なう処理の流れを示したフローチャートである。
図7を参照して、上述した線抽出処理装置202が行なう処理の流れについて説明する。なお、図7のフローチャートに示される処理は、図2において図示しない制御部として機能するCPU101が記憶装置に記憶されるプログラムを読出して実行し、図2に示された各部を制御することによって実現される。なお、図7のフローチャートで示す処理は、線抽出処理の一具体例に過ぎず、たとえば、各ステップの順番を入れ替えて実行してもよい。
FIG. 7 is a flowchart showing the flow of processing performed by the line extraction processing device 202.
With reference to FIG. 7, the flow of processing performed by the above-described line extraction processing device 202 will be described. The processing shown in the flowchart of FIG. 7 is realized by the CPU 101 functioning as a control unit (not shown in FIG. 2) reading out and executing a program stored in the storage device, and controlling each unit shown in FIG. Is done. Note that the process shown in the flowchart of FIG. 7 is merely a specific example of the line extraction process, and may be executed by changing the order of the steps, for example.

ステップS302において、制御部からの処理開始指示に従い、入力画像データバッファ204は、画像入力装置201から入力された画像データを格納する。   In step S <b> 302, the input image data buffer 204 stores the image data input from the image input device 201 in accordance with a processing start instruction from the control unit.

次いで、ステップS303において、X方向微分処理部205は、入力画像データバッファ204から入力された画像データを読み込む。そして、X方向に微分処理し、X方向微分値データバッファ206にX方向微分値データを与える。   Next, in step S <b> 303, the X-direction differentiation processing unit 205 reads the image data input from the input image data buffer 204. Then, differential processing is performed in the X direction, and X direction differential value data is given to the X direction differential value data buffer 206.

続いて、ステップS304において、X方向微分値データバッファ206は、X方向微分処理部205から与えられたX方向微分値データを格納する。   Subsequently, in step S304, the X-direction differential value data buffer 206 stores the X-direction differential value data provided from the X-direction differential processing unit 205.

そして、ステップS305において、X方向特徴微分値データ生成処理部207は、X方向微分値データバッファ206からX方向微分値データを読み込む。そして、X方向特徴微分値データを作成し、X方向特徴微分値データバッファ208に対し、X方向特徴微分値データを与える。   In step S 305, the X-direction feature differential value data generation processing unit 207 reads X-direction differential value data from the X-direction differential value data buffer 206. Then, X direction characteristic differential value data is created, and X direction characteristic differential value data is given to the X direction characteristic differential value data buffer 208.

次いで、ステップS306において、X方向特徴微分値データバッファ208は、X方向特徴微分値データ生成処理部207から与えられたX方向特徴微分値データを格納する。   Next, in step S306, the X-direction feature differential value data buffer 208 stores the X-direction feature differential value data supplied from the X-direction feature differential value data generation processing unit 207.

続いて、ステップS307において、Y方向線抽出処理部209は、X方向特徴微分値データバッファ208からX方向特徴微分値データを読み込む。そして、Y方向線データを作成し、Y方向線データバッファ210に対し、Y方向線データを与える。   Subsequently, in step S307, the Y-direction line extraction processing unit 209 reads X-direction feature differential value data from the X-direction feature differential value data buffer 208. Then, Y direction line data is created, and Y direction line data is given to the Y direction line data buffer 210.

最後に、ステップS308において、Y方向線データバッファ210は、Y方向線抽出処理部209から与えられたY方向線データを格納する。   Finally, in step S308, the Y-direction line data buffer 210 stores the Y-direction line data given from the Y-direction line extraction processing unit 209.

以上のようにして、線抽出処理装置202は、X方向の画素値の並びを解析し、X方向と直交するY方向の線成分を抽出する。   As described above, the line extraction processing device 202 analyzes the arrangement of pixel values in the X direction, and extracts a line component in the Y direction orthogonal to the X direction.

図8は、線抽出処理装置202が行なう処理の具体例を示す図である。
図8を参照して、線抽出処理装置202が行なう処理を、例を用いて説明する。
FIG. 8 is a diagram illustrating a specific example of processing performed by the line extraction processing device 202.
With reference to FIG. 8, processing performed by the line extraction processing device 202 will be described using an example.

まず、線抽出処理装置202は、P701に示すような画像データに対し、X方向微分処理およびX方向特徴微分値データ生成処理を行ない、X方向特徴微分値データを得る(図7のステップS303〜306に相当)。なお、P702は、X方向特徴微分値データに基づき、正の特徴微分値をとる特徴画素を実線で、負の特徴微分値をとる特徴画素を破線で示した図である。   First, the line extraction processing device 202 performs X-direction differential processing and X-direction characteristic differential value data generation processing on image data as shown in P701 to obtain X-direction characteristic differential value data (steps S303 to S303 in FIG. 7). Equivalent to 306). P702 is a diagram showing, based on X-direction feature differential value data, feature pixels that take positive feature differential values with solid lines and feature pixels that take negative feature differential values with broken lines.

そして、X方向特徴微分値データのX方向の並びを解析し、0以外の特徴微分値Aをとる特徴画素aの所定の範囲内に存在する特徴画素bについて、特徴微分値Bが特徴微分値Aと正負が逆で、かつ絶対値|A|と絶対値|B|との差が所定の値以内である場合、特徴画素aおよびbを線のエッジと判定する(図7のステップS307に相当)。なお、P703は、線のエッジと判定された特徴画素を示している。この図のように、線のエッジは特徴微分値の正負のデータが対になっていることが分かる。   Then, the arrangement in the X direction of the X direction characteristic differential value data is analyzed, and the characteristic differential value B is the characteristic differential value for the characteristic pixel b existing within a predetermined range of the characteristic pixel a taking the characteristic differential value A other than 0. When A is positive and negative and the difference between the absolute value | A | and the absolute value | B | is within a predetermined value, the feature pixels a and b are determined as line edges (in step S307 in FIG. 7). Equivalent). Note that P703 indicates a feature pixel determined to be an edge of a line. As shown in this figure, it can be seen that the edge of the line is paired with the positive and negative data of the characteristic differential value.

そして、P704に示すY方向線データをY方向線データバッファ210に格納する(図7のステップS308に相当)。なお、線のエッジではなく、線全体を抽出したい場合は、正負の特徴微分値の対となる特徴画素の間の画素を線領域として設定すればよい。このように線領域を設定すれば、P705に示すY方向線データが得られる。   Then, the Y direction line data shown in P704 is stored in the Y direction line data buffer 210 (corresponding to step S308 in FIG. 7). When it is desired to extract the entire line instead of the line edge, the pixels between the feature pixels that form a pair of positive and negative feature differential values may be set as a line region. If the line area is set in this way, Y-direction line data shown in P705 is obtained.

上述したように、本実施の形態に係る線抽出処理装置は、ある方向の画素値の並びを解析し、微分値データを特徴微分値と特徴微分値以外の微分値に分離する。そして、特徴微分値データに基づき、ある方向と直交する方向の線成分を抽出する。多くの異なる微分値で表現される1つのエッジでは、絶対値が最大値となる微分値が見た目のエッジの強さを決定付けるため、本実施の形態に係る処理を行なうことにより、写真画像データなどにおいても、線抽出処理の精度を高め、また処理を高速化することができる。   As described above, the line extraction processing device according to the present embodiment analyzes the arrangement of pixel values in a certain direction, and separates differential value data into a characteristic differential value and a differential value other than the characteristic differential value. Then, a line component in a direction orthogonal to a certain direction is extracted based on the characteristic differential value data. In one edge represented by many different differential values, the differential value having the maximum absolute value determines the strength of the apparent edge, so that the photographic image data is obtained by performing the processing according to this embodiment. For example, the accuracy of the line extraction processing can be improved and the processing speed can be increased.

また、本実施の形態に係る線抽出処理装置は、微分値の絶対値の大きさを評価に入れることにより、エッジの強い線から、弱い線まで安定した検出が可能である。   Moreover, the line extraction processing apparatus according to the present embodiment can stably detect a line from a strong edge to a weak line by taking into account the magnitude of the absolute value of the differential value.

[実施の形態2]
実施の形態2に係る線抽出処理装置は、2方向の線をそれぞれ抽出処理し、その2方向の線抽出結果を合成することにより、線データを作成する。
[Embodiment 2]
The line extraction processing apparatus according to Embodiment 2 extracts line data in two directions, and creates line data by synthesizing the line extraction results in the two directions.

図9は、本実施の形態に係るコンピュータ1において線抽出処理装置802として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。   FIG. 9 is a block diagram illustrating a specific example of a functional configuration for functioning as the line extraction processing device 802 in the computer 1 according to the present embodiment and performing line extraction processing.

図9を参照して、実施の形態2に係る線抽出処理装置802の機能構成について説明する。   With reference to FIG. 9, the functional configuration of the line extraction processing apparatus 802 according to the second embodiment will be described.

線抽出処理装置802の上記機能は、線抽出処理装置202の構成に加え、Y方向微分処理部811と、Y方向微分値データバッファ812と、Y方向特徴微分値データ生成処理部813と、Y方向特徴微分値データバッファ814と、X方向線抽出処理部815と、X方向線データバッファ816と、各方向線データ合成処理部817と線データバッファ818とから構成される。その他の構成は、線抽出処理装置202と同じである。   In addition to the configuration of the line extraction processing device 202, the above function of the line extraction processing device 802 includes a Y-direction differential processing unit 811, a Y-direction differential value data buffer 812, a Y-direction feature differential value data generation processing unit 813, A direction feature differential value data buffer 814, an X direction line extraction processing unit 815, an X direction line data buffer 816, each direction line data composition processing unit 817, and a line data buffer 818 are configured. Other configurations are the same as those of the line extraction processing device 202.

これらの構成要素は、主に線抽出処理装置の機能を実現する専用のLSIとメモリとによって構成することが可能である。ただし、コンピュータ1のCPU101や他のハードウェアによって構成されてもよい。なお、このような専用LSIは、Y方向微分処理部811、Y方向特徴微分値データ生成処理部813、X方向線抽出処理部815として機能する。   These components can be configured by a dedicated LSI and a memory that mainly realize the function of the line extraction processing device. However, it may be configured by the CPU 101 of the computer 1 or other hardware. Note that such a dedicated LSI functions as a Y-direction differentiation processing unit 811, a Y-direction feature differential value data generation processing unit 813, and an X-direction line extraction processing unit 815.

また、Y方向微分値データバッファ812、Y方向特徴微分値データバッファ814およびX方向線データバッファ816は、ROM103、RAM105またはHDD107等によって実現される。   The Y direction differential value data buffer 812, the Y direction characteristic differential value data buffer 814, and the X direction line data buffer 816 are realized by the ROM 103, the RAM 105, the HDD 107, or the like.

以下に、線抽出処理装置802の上記構成要素について説明する。なお、線抽出処理装置202と同じ構成要素については説明を省略する。   Below, the said component of the line extraction processing apparatus 802 is demonstrated. Note that description of the same components as those of the line extraction processing device 202 is omitted.

Y方向微分処理部811は、入力画像データバッファ204から画像データを読み込む。そして、Y方向に微分処理し、Y方向の微分値データをY方向微分値データバッファ812に与える。なお、Y方向微分処理部811が行なうY方向の微分処理は、Y方向の画素値の傾き、変化の割合の度合いが分かる処理であれば何でもよい。本実施の形態では、たとえば、図3(b)に示すフィルタを用いる。   The Y-direction differential processing unit 811 reads image data from the input image data buffer 204. Then, differential processing is performed in the Y direction, and the differential value data in the Y direction is supplied to the Y direction differential value data buffer 812. Note that the Y-direction differentiation processing performed by the Y-direction differentiation processing unit 811 may be any process as long as the degree of the inclination of the pixel value in the Y direction and the rate of change can be understood. In the present embodiment, for example, a filter shown in FIG.

図9に戻って、Y方向微分値データバッファ812は、Y方向微分処理部811から与えられたY方向の微分値データを格納する。   Returning to FIG. 9, the Y-direction differential value data buffer 812 stores the Y-direction differential value data provided from the Y-direction differential processing unit 811.

Y方向特徴微分値データ生成処理部813は、Y方向微分値データバッファ812から、Y方向微分値データを読み込む。そして、Y方向特徴微分値を抽出して作成したY方向特徴微分値データをY方向特徴微分値データバッファ814に与える。Y方向特徴微分値データもX方向特徴微分値データと同様にして作成することができる。   The Y direction characteristic differential value data generation processing unit 813 reads Y direction differential value data from the Y direction differential value data buffer 812. Then, Y-direction feature differential value data created by extracting the Y-direction feature differential value is provided to the Y-direction feature differential value data buffer 814. The Y-direction characteristic differential value data can also be created in the same manner as the X-direction characteristic differential value data.

Y方向特徴微分値データバッファ814は、Y方向特徴微分値データ生成処理部813から与えられたY方向特徴微分値データを格納する。   The Y-direction feature differential value data buffer 814 stores the Y-direction feature differential value data given from the Y-direction feature differential value data generation processing unit 813.

X方向線抽出処理部815は、Y方向特徴微分値データバッファ814からY方向特徴微分値データを読み込み、X方向線データをX方向線データバッファ816に与える。   The X direction line extraction processing unit 815 reads the Y direction characteristic differential value data from the Y direction characteristic differential value data buffer 814 and supplies the X direction line data to the X direction line data buffer 816.

ここで、X方向線データについて説明する。
X方向線抽出処理部815は、Y方向特徴微分値データのY方向の並びを解析する。そして、0以外の特徴微分値Aをとる特徴画素aの+Y方向または−Y方向に閾値len_th_y画素以内に存在する特徴画素bについて、特徴画素bの特徴微分値Bが特徴微分値Aと正負が逆で、かつ特徴微分値Aの絶対値|A|と特徴微分値Bの絶対値|B|との差が閾値value_th_y以内である場合、特徴画素aおよびbを線のエッジと判定し、X方向線データとして、特徴画素aおよびbについて線の情報であることを示す値(たとえば、1)に設定する。なお、線の情報であることを示す値は、任意に設定可能である。
Here, the X direction line data will be described.
The X-direction line extraction processing unit 815 analyzes the arrangement in the Y direction of the Y-direction feature differential value data. For the feature pixel b existing within the threshold len_th_y pixel in the + Y direction or the −Y direction of the feature pixel a having a feature derivative value A other than 0, the feature differential value B of the feature pixel b is positive or negative. Conversely, if the difference between the absolute value | A | of the feature differential value A and the absolute value | B | of the feature differential value B is within the threshold value_th_y, the feature pixels a and b are determined as line edges, and X The direction line data is set to a value (for example, 1) indicating that the feature pixels a and b are line information. A value indicating line information can be arbitrarily set.

X方向線データバッファ816は、X方向線抽出処理部815から与えられたX方向線データを格納する。   The X-direction line data buffer 816 stores the X-direction line data given from the X-direction line extraction processing unit 815.

各方向線データ合成処理部817は、Y方向線データバッファ210からY方向線データを、X方向線データバッファ816からX方向線データを読み込む。そして、X方向線データとY方向線データの少なくとも一方でも線の領域である領域は線の領域とした線データを線データバッファ818に与える。   Each direction line data composition processing unit 817 reads Y direction line data from the Y direction line data buffer 210 and X direction line data from the X direction line data buffer 816. Then, at least one of the X-direction line data and the Y-direction line data is a line area, and the line data set as a line area is supplied to the line data buffer 818.

線データバッファ818は、各方向線データ合成処理部817から与えられた線データを格納する。   The line data buffer 818 stores the line data given from each direction line data composition processing unit 817.

線抽出処理装置802は、線データバッファ818に格納された線データを線データ出力装置203に出力する。   The line extraction processing device 802 outputs the line data stored in the line data buffer 818 to the line data output device 203.

図10は、線抽出処理装置802が行なう処理の流れを示したフローチャートである。
図10を参照して、上述した線抽出処理装置802が行なう処理の流れについて説明する。なお、図10のフローチャートに示される処理は、図9において図示しない制御部として機能するCPU101が記憶装置に記憶されるプログラムを読出して実行し、図9に示された各部を制御することによって実現される。なお、図10のフローチャートで示す処理は、線抽出処理の一具体例に過ぎず、たとえば、各ステップの順番を入れ替えて実行してもよい。
FIG. 10 is a flowchart showing the flow of processing performed by the line extraction processing device 802.
With reference to FIG. 10, the flow of processing performed by the above-described line extraction processing device 802 will be described. The processing shown in the flowchart of FIG. 10 is realized by the CPU 101 functioning as a control unit (not shown in FIG. 9) reading out and executing a program stored in the storage device and controlling each unit shown in FIG. Is done. Note that the process shown in the flowchart of FIG. 10 is merely a specific example of the line extraction process, and may be executed by changing the order of the steps, for example.

また、ステップS902〜908の処理は、図7のステップS302〜308の処理と同じであるため説明は省略する。   Moreover, since the process of step S902-908 is the same as the process of step S302-308 of FIG. 7, description is abbreviate | omitted.

ステップS909において、Y方向微分処理部811は、入力画像データバッファ204から入力された画像データを読み込む。そして、Y方向に微分処理し、Y方向微分値データバッファ812にY方向微分値データを与える。   In step S909, the Y-direction differentiation processing unit 811 reads image data input from the input image data buffer 204. Then, differential processing is performed in the Y direction, and Y direction differential value data is given to the Y direction differential value data buffer 812.

続いて、ステップS910において、Y方向微分値データバッファ812は、Y方向微分処理部811から与えられたY方向微分値データを格納する。   Subsequently, in step S910, the Y-direction differential value data buffer 812 stores the Y-direction differential value data provided from the Y-direction differential processing unit 811.

そして、ステップS911において、Y方向特徴微分値データ生成処理部813は、Y方向微分値データバッファ812からY方向微分値データを読み込む。そして、Y方向特徴微分値データを作成し、Y方向特徴微分値データバッファ814に対し、Y方向特徴微分値データを与える。   In step S911, the Y-direction characteristic differential value data generation processing unit 813 reads the Y-direction differential value data from the Y-direction differential value data buffer 812. Then, Y-direction feature differential value data is created, and Y-direction feature differential value data is given to the Y-direction feature differential value data buffer 814.

次いで、ステップS912において、Y方向特徴微分値データバッファ814は、Y方向特徴微分値データ生成処理部813から与えられたY方向特徴微分値データを格納する。   Next, in step S912, the Y-direction feature differential value data buffer 814 stores the Y-direction feature differential value data provided from the Y-direction feature differential value data generation processing unit 813.

続いて、ステップS913において、X方向線抽出処理部815は、Y方向特徴微分値データバッファ814からY方向特徴微分値データを読み込む。そして、X方向線データを作成し、X方向線データバッファ816に対し、X方向線データを与える。   Subsequently, in step S <b> 913, the X-direction line extraction processing unit 815 reads Y-direction feature differential value data from the Y-direction feature differential value data buffer 814. Then, X direction line data is created, and X direction line data is given to the X direction line data buffer 816.

そして、ステップS914において、X方向線データバッファ816は、X方向線抽出処理部815から与えられたX方向線データを格納する。   In step S914, the X-direction line data buffer 816 stores the X-direction line data given from the X-direction line extraction processing unit 815.

次いで、ステップS915において、各方向線データ合成処理部817は、Y方向線データバッファ210からY方向線データを、X方向線データバッファ816からX方向線データを読み込む。そして、X方向線データとY方向線データの少なくとも一方でも線の領域である領域は線の領域とした線データを線データバッファ818に与える。   Next, in step S <b> 915, each direction line data composition processing unit 817 reads Y direction line data from the Y direction line data buffer 210 and X direction line data from the X direction line data buffer 816. Then, at least one of the X-direction line data and the Y-direction line data is a line area, and the line data set as a line area is supplied to the line data buffer 818.

最後に、ステップS916において、線データバッファ818は、各方向線データ合成処理部817から与えられた線データを格納する。   Finally, in step S916, the line data buffer 818 stores the line data provided from each direction line data composition processing unit 817.

以上のようにして、線抽出処理装置802は、2方向の線をそれぞれ抽出処理し、その2方向の線抽出結果を合成する。   As described above, the line extraction processing device 802 extracts lines in two directions, and synthesizes the line extraction results in the two directions.

図11は、線抽出処理装置802が行なう処理の具体例を示す図である。
図11を参照して、図10のステップS909〜914において線抽出処理装置802が行なう処理を、例を用いて説明する。
FIG. 11 is a diagram illustrating a specific example of processing performed by the line extraction processing device 802.
Referring to FIG. 11, the process performed by line extraction processing device 802 in steps S909 to 914 in FIG. 10 will be described using an example.

線抽出処理装置802は、P701に示すような画像データに対し、Y方向微分処理およびY方向特徴微分値データ生成処理によって、Y方向特徴微分値データを得る(図10のステップS909〜912に相当)。なお、P1002は、Y方向特徴微分値データに基づき、正の特徴微分値をとる特徴画素を実線で、負の特徴微分値をとる特徴画素を破線で示した図である。   The line extraction processing device 802 obtains Y-direction characteristic differential value data by performing Y-direction differential processing and Y-direction characteristic differential value data generation processing on the image data as shown in P701 (corresponding to steps S909 to 912 in FIG. 10). ). P1002 is a diagram showing, based on Y-direction feature differential value data, feature pixels that take positive feature differential values with solid lines, and feature pixels that take negative feature differential values with broken lines.

そして、Y方向特徴微分値データのY方向の並びを解析し、0以外の特徴微分値Aをとる特徴画素aの所定の範囲内に存在する特徴画素bについて、特徴微分値Bが特徴微分値Aと正負が逆で、かつ絶対値|A|と絶対値|B|との差が所定の値以内である場合、特徴画素aおよびbを線のエッジと判定する(図10のステップS913に相当)。なお、P1003は、線のエッジと判定された特徴画素を示している。この図のように、線のエッジは特徴微分値の正負のデータが対になっていることが分かる。   Then, the Y-direction characteristic differential value data is analyzed in the Y direction, and the characteristic differential value B is the characteristic differential value for the characteristic pixel b existing within the predetermined range of the characteristic pixel a taking the characteristic differential value A other than 0. If A is positive and negative and the difference between the absolute value | A | and the absolute value | B | is within a predetermined value, the feature pixels a and b are determined to be line edges (in step S913 in FIG. 10). Equivalent). Note that P1003 indicates a feature pixel determined to be an edge of a line. As shown in this figure, it can be seen that the edge of the line is paired with the positive and negative data of the characteristic differential value.

そして、P1004に示すX方向線データをX方向線データバッファ816に格納する(図10のステップS914に相当)。なお、線のエッジではなく、線全体を抽出したい場合は、正負の特徴微分値の対となる特徴画素の間の画素を線領域として設定すればよい。このように線領域を設定すれば、P1005に示すX方向線データが得られる。   Then, the X direction line data indicated by P1004 is stored in the X direction line data buffer 816 (corresponding to step S914 in FIG. 10). When it is desired to extract the entire line instead of the line edge, the pixels between the feature pixels that form a pair of positive and negative feature differential values may be set as a line region. If the line area is set in this way, the X-direction line data shown in P1005 is obtained.

図12は、線抽出処理装置802が行なう処理(線のエッジを抽出)の具体例を示す図である。   FIG. 12 is a diagram illustrating a specific example of processing (extracting line edges) performed by the line extraction processing device 802.

図12を参照して、図10のステップS915および916において線抽出処理装置802が線のエッジを抽出する処理について、例を用いて説明する。   With reference to FIG. 12, the process of extracting line edges by the line extraction processing device 802 in steps S915 and 916 of FIG. 10 will be described using an example.

各方向線データ合成処理部817は、Y方向線データバッファ210からP704に示すY方向線データを、X方向線データバッファ816からP1004に示すX方向線データを読み込む。そして、X方向線データとY方向線データの少なくとも一方でも線の領域である領域は線の領域とした、P1103に示す線データを作成し(図10のステップS915に相当)、線データバッファ818に格納する(図10のステップS916に相当)。   Each direction line data composition processing unit 817 reads Y direction line data indicated by P704 from the Y direction line data buffer 210 and X direction line data indicated by P1004 from the X direction line data buffer 816. Then, the line data shown in P1103 is created in which at least one of the X-direction line data and the Y-direction line data is a line area (corresponding to step S915 in FIG. 10), and the line data buffer 818 is created. (Corresponding to step S916 in FIG. 10).

図13は、線抽出処理装置802が行なう処理(線全体を抽出)の具体例を示す図である。   FIG. 13 is a diagram illustrating a specific example of the process (extracting the entire line) performed by the line extraction processing device 802.

図13において、上述したように、線全体を抽出したい場合は、特徴微分値の正負のデータの対の間を線領域に設定することで、P705に示すY方向線データおよびP1005に示すX方向線データが得られる。   In FIG. 13, as described above, when it is desired to extract the entire line, the Y direction line data indicated by P705 and the X direction indicated by P1005 are set by setting a line area between the positive / negative data of the characteristic differential value. Line data is obtained.

各方向線データ合成処理部817は、X方向線データとY方向線データの少なくとも一方でも線の領域である領域は線の領域とした、P1203に示す線データを作成し(図10のステップS915に相当)、線データバッファ818に格納する(図10のステップS916に相当)。   Each direction line data composition processing unit 817 creates line data shown in P1203 in which at least one of the X direction line data and the Y direction line data is a line area (step S915 in FIG. 10). Stored in the line data buffer 818 (corresponding to step S916 in FIG. 10).

上述したように、本実施の形態に係る線抽出処理装置は、ある方向の画素値の並びを解析し、微分値データを特徴微分値と特徴微分値以外の微分値に分離する。そして、特徴微分値データに基づき、ある方向と直交する方向の線成分を抽出する。このような処理を2方向について行ない、その2方向の線抽出結果を合成することにより線データを作成する。これにより、実施の形態1の効果に加え、2方向での線抽出処理の精度を高め、また処理を高速化することができる。   As described above, the line extraction processing device according to the present embodiment analyzes the arrangement of pixel values in a certain direction, and separates differential value data into a characteristic differential value and a differential value other than the characteristic differential value. Then, a line component in a direction orthogonal to a certain direction is extracted based on the characteristic differential value data. Such processing is performed in two directions, and line data is created by combining the line extraction results in the two directions. Thereby, in addition to the effects of the first embodiment, the accuracy of line extraction processing in two directions can be improved and the processing speed can be increased.

[実施の形態3]
実施の形態3に係る線抽出処理装置は、実施の形態1に係る線抽出処理装置の処理に加え、特徴微分値データの微分した方向と垂直の方向の解析を加えることにより、線抽出間違いを防止する。
[Embodiment 3]
In addition to the processing of the line extraction processing device according to the first embodiment, the line extraction processing device according to the third embodiment adds an analysis in the direction perpendicular to the direction in which the characteristic differential value data is differentiated. To prevent.

図14は、本実施の形態に係るコンピュータ1において線抽出処理装置1302として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。   FIG. 14 is a block diagram illustrating a specific example of a functional configuration that functions as the line extraction processing device 1302 in the computer 1 according to the present embodiment and performs line extraction processing.

図14を参照して、実施の形態2に係る線抽出処理装置1302の機能構成について説明する。   With reference to FIG. 14, the functional configuration of the line extraction processing apparatus 1302 according to the second embodiment will be described.

線抽出処理装置1302の上記機能は、線抽出処理装置202のX方向特徴微分値データバッファ208に代わって、X方向特徴微分値データ第1バッファ1308と、X方向特徴微分値データノイズ除去処理部1309と、X方向特徴微分値データ第2バッファ1310とを備えて構成される。その他の構成は、線抽出処理装置202と同じである。   The above-described functions of the line extraction processing device 1302 include an X-direction feature differential value data first buffer 1308 and an X-direction feature differential value data noise removal processing unit instead of the X-direction feature differential value data buffer 208 of the line extraction processing device 202. 1309 and an X-direction feature differential value data second buffer 1310. Other configurations are the same as those of the line extraction processing device 202.

これらの構成要素は、主に線抽出処理装置の機能を実現する専用のLSIとメモリとによって構成することが可能である。ただし、コンピュータ1のCPU101や他のハードウェアによって構成されてもよい。なお、このような専用LSIは、X方向特徴微分値データノイズ除去処理部1309として機能する。   These components can be configured by a dedicated LSI and a memory that mainly realize the function of the line extraction processing device. However, it may be configured by the CPU 101 of the computer 1 or other hardware. Such a dedicated LSI functions as the X-direction feature differential value data noise removal processing unit 1309.

また、X方向特徴微分値第1データバッファ1308およびX方向特徴微分値データ第2バッファ1310は、ROM103、RAM105またはHDD107等によって実現される。   The X-direction feature differential value first data buffer 1308 and the X-direction feature differential value data second buffer 1310 are realized by the ROM 103, the RAM 105, the HDD 107, or the like.

以下に、線抽出処理装置1302の上記構成要素について説明する。なお、線抽出処理装置202と同じ構成要素については説明を省略する。   The above components of the line extraction processing device 1302 will be described below. Note that description of the same components as those of the line extraction processing device 202 is omitted.

X方向特徴微分値データ第1バッファ1308は、X方向特徴微分値データ生成処理部207から与えられたX方向の特徴微分値データを格納する。   The X-direction feature differential value data first buffer 1308 stores the X-direction feature differential value data provided from the X-direction feature differential value data generation processing unit 207.

X方向特徴微分値データノイズ除去処理部1309は、X方向特徴微分値データ第1バッファ1308からX方向特徴微分値データを読み込む。そして、X方向特徴微分値データの不要なノイズを除去して、X方向特徴微分値データをX方向特徴微分値データ第2バッファ1310に与える。   The X-direction feature differential value data noise removal processing unit 1309 reads X-direction feature differential value data from the X-direction feature differential value data first buffer 1308. Then, unnecessary noise in the X-direction feature differential value data is removed, and the X-direction feature differential value data is supplied to the X-direction feature differential value data second buffer 1310.

ここで、X方向特徴微分値のノイズ除去処理について説明する。
X方向特徴微分値データノイズ除去処理部1309が行なうノイズ除去処理は、X方向特徴微分値データ第1バッファ1308に格納されているX方向特徴微分値データで、線としては除去したいような短い線や点のX方向特徴微分値を特徴微分値から外す(本実施の形態ではゼロにする)ことによって、検出精度を高めるものである。
Here, the noise removal processing of the X direction characteristic differential value will be described.
The noise removal processing performed by the X-direction feature differential value data noise removal processing unit 1309 is X-direction feature differential value data stored in the X-direction feature differential value data first buffer 1308, and is a short line that is desired to be removed as a line. The detection accuracy is improved by removing the X-direction characteristic differential value of the point and the point from the characteristic differential value (in this embodiment, zero).

具体的には、X方向特徴微分値のY方向のデータ列を解析する。Y方向に隣合う特徴画素の特徴微分値の差の絶対値が閾値CONT_VAL_TH_X以下である場合、そのY方向に隣合う特徴画素は線として連結しているという基準で、連結数をカウントする。そして、その連結数が閾値CONT_TH_X以下の連結されたX方向特徴微分値を特徴微分値から外す。   Specifically, the data string in the Y direction of the X direction characteristic differential value is analyzed. When the absolute value of the difference between the characteristic differential values of the feature pixels adjacent in the Y direction is equal to or smaller than the threshold value CONT_VAL_TH_X, the number of connections is counted on the basis that the feature pixels adjacent in the Y direction are connected as a line. Then, the connected X-direction feature differential values whose connection number is equal to or less than the threshold value CONT_TH_X are excluded from the feature differential values.

閾値CONT_VAL_TH_Xは、特徴微分値が連結しているか否かを判断するための値であり、値は任意の正の実数が設定可能である。本実施の形態では、CONT_VAL_TH_X=10として用いる。   The threshold value CONT_VAL_TH_X is a value for determining whether or not feature differential values are connected, and an arbitrary positive real number can be set as the value. In this embodiment, CONT_VAL_TH_X = 10.

また、CONT_TH_Xは、Y方向に抽出される線の太さの最小の大きさを示す。したがって、検出の目的に応じて適切に設定すればよく、任意の正の実数であればよい。なお、本実施の形態では、CONT_VAL_TH_X=5とした。   CONT_TH_X indicates the minimum size of the line thickness extracted in the Y direction. Therefore, it may be set appropriately according to the purpose of detection, and may be any positive real number. In the present embodiment, CONT_VAL_TH_X = 5.

これにより、線の短いものや点を線として抽出しないので、線抽出の精度が向上する。
X方向特徴微分値データ第2バッファ1310は、X方向特徴微分値データノイズ除去生成処理部1309から与えられた、ノイズ除去済みのX方向特徴微分値データを格納する。
Thereby, since the thing with a short line and a point are not extracted as a line, the precision of line extraction improves.
The X-direction feature differential value data second buffer 1310 stores the X-direction feature differential value data that has been subjected to noise removal, provided from the X-direction feature differential value data noise removal generation processing unit 1309.

Y方向線抽出処理部209は、X方向特徴微分値データ第2バッファ1310からX方向特徴微分値データを読み込む。そして、Y方向線データをY方向線データバッファ210に与える。   The Y direction line extraction processing unit 209 reads X direction characteristic differential value data from the X direction characteristic differential value data second buffer 1310. Then, the Y direction line data is supplied to the Y direction line data buffer 210.

図15は、線抽出処理装置1302が行なう処理の流れを示したフローチャートである。   FIG. 15 is a flowchart showing the flow of processing performed by the line extraction processing device 1302.

図15を参照して、上述した線抽出処理装置1302が行なう処理の流れについて説明する。なお、図15のフローチャートに示される処理は、図14において図示しない制御部として機能するCPU101が記憶装置に記憶されるプログラムを読出して実行し、図14に示された各部を制御することによって実現される。なお、図15のフローチャートで示す処理は、線抽出処理の一具体例に過ぎず、たとえば、各ステップの順番を入れ替えて実行してもよい。   With reference to FIG. 15, the flow of processing performed by the above-described line extraction processing device 1302 will be described. The process shown in the flowchart of FIG. 15 is realized by the CPU 101 functioning as a control unit (not shown in FIG. 14) reading out and executing a program stored in the storage device and controlling each unit shown in FIG. Is done. The process shown in the flowchart of FIG. 15 is only a specific example of the line extraction process, and may be executed by changing the order of each step, for example.

また、ステップS1402〜1405の処理は、図7のステップS302〜305の処理と同じであるため説明は省略する。   Further, the processing of steps S1402 to 1405 is the same as the processing of steps S302 to 305 in FIG.

ステップS1406において、X方向特徴微分値データ第1バッファ1308は、X方向特徴微分値データ生成処理部207から与えられたX方向特徴微分値データを格納する。   In step S1406, the X-direction feature differential value data first buffer 1308 stores the X-direction feature differential value data provided from the X-direction feature differential value data generation processing unit 207.

次いで、ステップS1407において、X方向特徴微分値データノイズ除去処理部1309は、X方向特徴微分値データ第1バッファ1308からX方向特徴微分値データを読み込む。そして、X方向特徴微分値データの不要なノイズを除去して、X方向特徴微分値データをX方向特徴微分値データ第2バッファ1310に与える。   In step S 1407, the X-direction feature differential value data noise removal processing unit 1309 reads X-direction feature differential value data from the X-direction feature differential value data first buffer 1308. Then, unnecessary noise in the X-direction feature differential value data is removed, and the X-direction feature differential value data is supplied to the X-direction feature differential value data second buffer 1310.

続いて、ステップS1408において、X方向特徴微分値データ第2バッファ1310はノイズ除去されたX方向特徴微分値データを格納する。   Subsequently, in step S1408, the X-direction feature differential value data second buffer 1310 stores the X-direction feature differential value data from which noise has been removed.

そして、ステップS1409において、Y方向線抽出処理部209は、X方向特徴微分値データ第2バッファ1310からX方向特徴微分値データを読み込む。そして、Y方向線データを作成し、Y方向線データバッファ210に与える。   In step S1409, the Y-direction line extraction processing unit 209 reads X-direction feature differential value data from the X-direction feature differential value data second buffer 1310. Then, Y direction line data is created and given to the Y direction line data buffer 210.

最後に、ステップS1410において、Y方向線データバッファ210は、Y方向線抽出処理部209から与えられた線データを格納する。   Finally, in step S1410, the Y-direction line data buffer 210 stores the line data provided from the Y-direction line extraction processing unit 209.

上述したように、本実施の形態に係る線抽出処理装置は、特徴微分値データの微分した方向と垂直の方向の解析を加える。これにより、実施の形態1で述べた線抽出処理装置よりも網点箇所の点や線と認識すべきでない非常に短い線を除去した形で検出を行なうことができる。従って、検出精度を高め、線抽出間違いを防止することができる。   As described above, the line extraction processing apparatus according to this embodiment adds analysis in the direction perpendicular to the differentiated direction of the characteristic differential value data. Thereby, it is possible to perform detection in a form in which a very short line that should not be recognized as a dot or line of halftone dots is removed from the line extraction processing apparatus described in the first embodiment. Therefore, detection accuracy can be improved and line extraction errors can be prevented.

[実施の形態4]
実施の形態4に係る線抽出処理装置は、実施の形態2に係る線抽出処理装置の処理に加え、2方向について実施の形態3で述べたようにノイズ除去処理を行なってそれぞれ線抽出し、その2方向の線抽出結果を合成することにより、線データを作成する。
[Embodiment 4]
In addition to the processing of the line extraction processing device according to the second embodiment, the line extraction processing device according to the fourth embodiment performs noise removal processing as described in the third embodiment in each of the two directions to extract lines, respectively. Line data is created by combining the line extraction results in the two directions.

図16および17は、本実施の形態に係るコンピュータ1において線抽出処理装置1502として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。なお、図16は、後述する線抽出処理装置2202の機能構成の一部でもある。   FIGS. 16 and 17 are block diagrams showing specific examples of a functional configuration for functioning as the line extraction processing device 1502 in the computer 1 according to the present embodiment and performing the line extraction processing. Note that FIG. 16 is also a part of a functional configuration of a line extraction processing device 2202 described later.

図16および17を参照して、実施の形態4に係る線抽出処理装置1502の機能構成について説明する。   With reference to FIGS. 16 and 17, the functional configuration of the line extraction processing apparatus 1502 according to Embodiment 4 will be described.

線抽出処理装置1502の上記機能は、線抽出処理装置802のX方向特徴微分値データバッファ208およびY方向特徴微分値データバッファ814に代わって、X方向特徴微分値データ第1バッファ1308と、X方向特徴微分値データノイズ除去処理部1309と、X方向特徴微分値データ第2バッファ1310と、Y方向特徴微分値データ第1バッファ1513と、Y方向特徴微分値データノイズ除去処理部1514と、Y方向特徴微分値データ第2バッファ1515とを備えて構成される。その他の構成は、線抽出処理装置802と同じである。なお、X方向特徴微分値データ第1バッファ1308、X方向特徴微分値データノイズ除去処理部1309および、X方向特徴微分値データ第2バッファ1310は実施の形態3に係る線抽出処理装置1302の構成要素と同じである。   The function of the line extraction processing device 1502 is to replace the X-direction feature differential value data buffer 208 and the Y-direction feature differential value data buffer 814 of the line extraction processing device 802 with an X-direction feature differential value data first buffer 1308, X Direction characteristic differential value data noise elimination processing unit 1309, X direction characteristic differential value data second buffer 1310, Y direction characteristic differential value data first buffer 1513, Y direction characteristic differential value data noise elimination processing unit 1514, Y A direction characteristic differential value data second buffer 1515 is provided. Other configurations are the same as those of the line extraction processing device 802. The X-direction feature differential value data first buffer 1308, the X-direction feature differential value data noise removal processing unit 1309, and the X-direction feature differential value data second buffer 1310 are configured in the line extraction processing device 1302 according to the third embodiment. Same as element.

これらの構成要素は、主に線抽出処理装置の機能を実現する専用のLSIとメモリとによって構成することが可能である。ただし、コンピュータ1のCPU101や他のハードウェアによって構成されてもよい。なお、このような専用LSIは、Y方向特徴微分値データノイズ除去処理部1514として機能する。   These components can be configured by a dedicated LSI and a memory that mainly realize the function of the line extraction processing device. However, it may be configured by the CPU 101 of the computer 1 or other hardware. Such a dedicated LSI functions as the Y-direction feature differential value data noise removal processing unit 1514.

また、Y方向特徴微分値第1データバッファ1513およびY方向特徴微分値データ第2バッファ1515は、ROM103、RAM105またはHDD107等によって実現される。   The Y-direction characteristic differential value first data buffer 1513 and the Y-direction characteristic differential value data second buffer 1515 are realized by the ROM 103, the RAM 105, the HDD 107, or the like.

以下に、線抽出処理装置1502の上記構成要素について説明する。なお、線抽出処理装置802、1302と同じ構成要素については説明を省略する。   The above components of the line extraction processing device 1502 will be described below. Note that description of the same components as those of the line extraction processing devices 802 and 1302 is omitted.

Y方向特徴微分値データ第1バッファ1513は、Y方向特徴微分値データ生成処理部813から与えられたY方向特徴微分値データを格納する。   The Y-direction feature differential value data first buffer 1513 stores the Y-direction feature differential value data given from the Y-direction feature differential value data generation processing unit 813.

Y方向特徴微分値データノイズ除去処理部1514は、Y方向特徴微分値データ第1バッファ1512からY方向特徴微分値データを読み込む。そして、Y方向特徴微分値データの不要なノイズを除去して、Y方向特徴微分値データをY方向特徴微分値データ第2バッファ1515に与える。   The Y-direction feature differential value data noise removal processing unit 1514 reads Y-direction feature differential value data from the Y-direction feature differential value data first buffer 1512. Then, unnecessary noise in the Y-direction characteristic differential value data is removed, and the Y-direction characteristic differential value data is supplied to the Y-direction characteristic differential value data second buffer 1515.

ここで、Y方向特徴微分値のノイズ除去処理について説明する。
Y方向特徴微分値データノイズ除去処理部1514が行なうノイズ除去処理は、Y方向特徴微分値データ第1バッファ1513に格納されているY方向特徴微分値データで、線としては除去したいような短い線や点のY方向特徴微分値を特徴微分値から外す(本実施の形態ではゼロにする)ことによって、検出精度を高めるものである。
Here, the noise removal processing of the Y-direction feature differential value will be described.
The noise removal processing performed by the Y-direction characteristic differential value data noise removal processing unit 1514 is Y-direction characteristic differential value data stored in the Y-direction characteristic differential value data first buffer 1513, and is a short line to be removed as a line. The detection accuracy is increased by removing the Y-direction characteristic differential value of the point and the point from the characteristic differential value (in this embodiment, zero).

具体的には、Y方向特徴微分値のX方向のデータ列を解析する。X方向に隣合う特徴がその特徴微分値の差の絶対値が閾値CONT_VAL_TH_Y以下である場合、そのX方向に隣合う特徴微分値は連結しているという基準で、連結数をカウントする。そして、その連結数が閾値CONT_TH_Y以下の連結されたY方向特徴微分値を特徴微分値から外す。   Specifically, the data string in the X direction of the Y direction characteristic differential value is analyzed. When the absolute value of the difference between the feature differential values of features adjacent in the X direction is equal to or less than the threshold value CONT_VAL_TH_Y, the number of connections is counted on the basis that the feature differential values adjacent in the X direction are connected. Then, the connected Y-direction feature differential value whose connection number is equal to or less than the threshold value CONT_TH_Y is excluded from the feature differential value.

閾値CONT_VAL_TH_Yは、特徴微分値が連結しているか否かを判断するための値であり、値は任意の正の実数が設定可能である。本実施の形態では、CONT_VAL_TH_Y=10として用いる。   The threshold value CONT_VAL_TH_Y is a value for determining whether or not feature differential values are connected, and an arbitrary positive real number can be set as the value. In this embodiment, CONT_VAL_TH_Y = 10.

また、CONT_TH_Yは、X方向に抽出される線の太さの最小の大きさを示す。したがって、検出の目的に応じて適切に設定すればよく、任意の正の実数であればよい。なお、本実施の形態では、CONT_VAL_TH_Y=5とした。   CONT_TH_Y indicates the minimum size of the line thickness extracted in the X direction. Therefore, it may be set appropriately according to the purpose of detection, and may be any positive real number. In the present embodiment, CONT_VAL_TH_Y = 5.

これにより、線の短いものや点を線として抽出しないので、線抽出の精度が向上する。
Y方向特徴微分値データ第2バッファ1515は、Y方向特徴微分値データノイズ除去生成処理部1514から与えられた、ノイズ除去済みのY方向特徴微分値データを格納する。
Thereby, since the thing with a short line and a point are not extracted as a line, the precision of line extraction improves.
The Y-direction feature differential value data second buffer 1515 stores Y-direction feature differential value data from the Y-direction feature differential value data noise removal generation processing unit 1514 that has been subjected to noise removal.

X方向線抽出処理部815は、Y方向特徴微分値データ第2バッファ1515からY方向特徴微分値データを読み込む。そして、X方向線データをX方向線データバッファ816に与える。   The X-direction line extraction processing unit 815 reads Y-direction feature differential value data from the Y-direction feature differential value data second buffer 1515. Then, the X direction line data is supplied to the X direction line data buffer 816.

図18は、線抽出処理装置1502が行なう処理の流れを示したフローチャートである。   FIG. 18 is a flowchart showing the flow of processing performed by the line extraction processing device 1502.

図18を参照して、上述した線抽出処理装置1502が行なう処理の流れについて説明する。なお、図18のフローチャートに示される処理は、図16および17において図示しない制御部として機能するCPU101が記憶装置に記憶されるプログラムを読出して実行し、図16および17に示された各部を制御することによって実現される。なお、図18のフローチャートで示す処理は、線抽出処理の一具体例に過ぎず、たとえば、各ステップの順番を入れ替えて実行してもよい。   With reference to FIG. 18, the flow of processing performed by the above-described line extraction processing device 1502 will be described. In the process shown in the flowchart of FIG. 18, the CPU 101 functioning as a control unit (not shown in FIGS. 16 and 17) reads and executes a program stored in the storage device, and controls each unit shown in FIGS. It is realized by doing. Note that the process shown in the flowchart of FIG. 18 is merely a specific example of the line extraction process, and may be executed by changing the order of the steps, for example.

また、ステップS1702〜1710の処理は図15のステップS1402〜1410の処理と同じであり、ステップS1711〜1713、1717〜1720の処理は図10のステップS909〜916の処理と同じであるため説明は省略する。   Further, the processing in steps S1702 to 1710 is the same as the processing in steps S1402 to 1410 in FIG. 15, and the processing in steps S1711 to 1713 and 1717 to 1720 is the same as the processing in steps S909 to 916 in FIG. Omitted.

ステップS1714において、Y方向特徴微分値データ第1バッファ1513は、Y方向特徴微分値データ生成処理部813から与えられたY方向特徴微分値データを格納する。   In step S1714, the Y-direction feature differential value data first buffer 1513 stores the Y-direction feature differential value data provided from the Y-direction feature differential value data generation processing unit 813.

次いで、ステップS1715において、Y方向特徴微分値データノイズ除去処理部1513は、Y方向特徴微分値データ第1バッファ1513からY方向特徴微分値データを読み込む。そして、Y方向特徴微分値データの不要なノイズを除去して、Y方向特徴微分値データをY方向特徴微分値データ第2バッファ1515に与える。   Next, in step S1715, the Y-direction feature differential value data noise removal processing unit 1513 reads Y-direction feature differential value data from the Y-direction feature differential value data first buffer 1513. Then, unnecessary noise in the Y-direction characteristic differential value data is removed, and the Y-direction characteristic differential value data is supplied to the Y-direction characteristic differential value data second buffer 1515.

続いて、ステップS1716において、Y方向特徴微分値データ第2バッファ1515はノイズ除去されたY方向特徴微分値データを格納する。   Subsequently, in step S1716, the Y-direction feature differential value data second buffer 1515 stores the Y-direction feature differential value data from which noise has been removed.

ステップS1717以降の処理は、上述したように線抽出処理装置802と同じであるため、説明は省略する。   Since the processing after step S1717 is the same as that of the line extraction processing device 802 as described above, the description thereof is omitted.

上述したように、本実施の形態に係る線抽出処理装置は、2方向について実施の形態3で述べたようにノイズ除去処理を行なってそれぞれ線抽出し、その2方向の線抽出結果を合成することにより、線データを作成する。これにより、実施の形態2で述べた線抽出処理装置よりも線の短いものや点を線として抽出しないので、線抽出の精度が向上する。   As described above, the line extraction processing apparatus according to the present embodiment performs noise removal processing in two directions as described in the third embodiment to extract lines, and synthesizes the line extraction results in the two directions. Thus, line data is created. As a result, the line extraction processing apparatus described in the second embodiment does not extract a short line or a point as a line, thereby improving the line extraction accuracy.

[実施の形態5]
実施の形態5に係る線抽出処理装置は、X方向特徴微分値データとY方向特徴微分値データとを合成したものを用いて、線抽出を行なう。これにより、実施の形態2に係る線抽出処理装置と比べ、X方向、Y方向以外の方向の線の検出精度を向上させることができる。
[Embodiment 5]
The line extraction processing apparatus according to the fifth embodiment performs line extraction using a combination of X direction characteristic differential value data and Y direction characteristic differential value data. Thereby, compared with the line extraction processing apparatus which concerns on Embodiment 2, the detection accuracy of the line of directions other than a X direction and a Y direction can be improved.

図19および20は、本実施の形態に係るコンピュータ1において線抽出処理装置1902として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。   19 and 20 are block diagrams showing specific examples of a functional configuration for functioning as the line extraction processing device 1902 in the computer 1 according to the present embodiment and performing line extraction processing.

図19および20を参照して、実施の形態5に係る線抽出処理装置1902の機能構成について説明する。   With reference to FIGS. 19 and 20, the functional configuration of the line extraction processing apparatus 1902 according to Embodiment 5 will be described.

線抽出処理装置1902の上記機能は、線抽出処理装置802の構成に加え、各方向特徴微分値データ合成処理部1913と、特徴微分値データバッファ1914とを備えて構成される。その他の構成は、線抽出処理装置802と同じである。   In addition to the configuration of the line extraction processing device 802, the above function of the line extraction processing device 1902 includes each direction feature differential value data synthesis processing unit 1913 and a feature differential value data buffer 1914. Other configurations are the same as those of the line extraction processing device 802.

これらの構成要素は、主に線抽出処理装置の機能を実現する専用のLSIとメモリとによって構成することが可能である。ただし、コンピュータ1のCPU101や他のハードウェアによって構成されてもよい。なお、このような専用LSIは、各方向特徴微分値データ合成処理部1913として機能する。   These components can be configured by a dedicated LSI and a memory that mainly realize the function of the line extraction processing device. However, it may be configured by the CPU 101 of the computer 1 or other hardware. Such a dedicated LSI functions as each direction feature differential value data synthesis processing unit 1913.

また、特徴微分値データバッファ1914は、ROM103、RAM105またはHDD107等によって実現される。   The feature differential value data buffer 1914 is realized by the ROM 103, the RAM 105, the HDD 107, or the like.

以下に、線抽出処理装置1902の上記構成要素について説明する。なお、線抽出処理装置802と同じ構成要素については説明を省略する。   The above components of the line extraction processing device 1902 will be described below. Note that description of the same components as those of the line extraction processing device 802 is omitted.

各方向特徴微分値データ合成処理部1913は、X方向特徴微分値データバッファ208からX方向特徴微分値データを、Y方向特徴微分値データバッファ814からY方向特徴微分値データをそれぞれ読み込む。そして、特徴微分値データバッファ1914に対し合成特徴微分値データを与える。   Each direction characteristic differential value data composition processing unit 1913 reads X direction characteristic differential value data from the X direction characteristic differential value data buffer 208 and Y direction characteristic differential value data from the Y direction characteristic differential value data buffer 814, respectively. Then, the combined characteristic differential value data is given to the characteristic differential value data buffer 1914.

ここで、各方向特徴微分値データ1913によって与えられる「合成特徴微分値データ」は、X方向特徴微分値データとY方向特徴微分値データの各方向の特徴微分値を足し合わせたものとする。   Here, the “composite feature differential value data” given by each direction feature differential value data 1913 is obtained by adding the feature differential values in each direction of the X direction feature differential value data and the Y direction feature differential value data.

実施の形態2に係る線抽出処理装置は、線を抽出する処理が各方向で独立して行なわれる。このため、各方向と異なる方向の線(たとえば、各方向が縦・横方向である場合は、斜め方向の線)は、各方向の特徴微分値に値が分散しているため、検出されにくい傾向があった。   In the line extraction processing apparatus according to Embodiment 2, the process of extracting lines is performed independently in each direction. For this reason, a line in a direction different from each direction (for example, a line in an oblique direction when each direction is a vertical or horizontal direction) is difficult to be detected because values are dispersed in characteristic differential values in each direction. There was a trend.

しかし、本実施の形態の線抽出処理装置では、各方向の特徴微分値を足し合わせることにより、X方向、Y方向以外の線の検出がより正確に行なわれる。   However, in the line extraction processing apparatus of the present embodiment, lines other than the X direction and the Y direction can be detected more accurately by adding the characteristic differential values in each direction.

また、意図的にX方向、Y方向の線をより重視したい場合は、特徴微分値データを、X方向特徴微分値データとY方向特徴微分値データの各方向の特徴微分値の大きい値としてもよい。   In addition, when intentionally placing importance on the X-direction and Y-direction lines, the characteristic differential value data may be a value having a large characteristic differential value in each direction of the X-direction characteristic differential value data and the Y-direction characteristic differential value data. Good.

合成特徴微分値データバッファ1914は、各方向特徴微分値データ合成処理部1913から与えられた合成特徴微分値データを格納する。   The composite feature differential value data buffer 1914 stores the composite feature differential value data given from each direction feature differential value data composition processing unit 1913.

図21は、線抽出処理装置1902が行なう処理の流れを示したフローチャートである。   FIG. 21 is a flowchart showing the flow of processing performed by the line extraction processing device 1902.

図21を参照して、上述した線抽出処理装置1902が行なう処理の流れについて説明する。なお、図21のフローチャートに示される処理は、図19および20において図示しない制御部として機能するCPU101が記憶装置に記憶されるプログラムを読出して実行し、図19および20に示された各部を制御することによって実現される。なお、図21のフローチャートで示す処理は、線抽出処理の一具体例に過ぎず、たとえば、各ステップの順番を入れ替えて実行してもよい。   With reference to FIG. 21, the flow of processing performed by the above-described line extraction processing device 1902 will be described. In the processing shown in the flowchart of FIG. 21, the CPU 101 functioning as a control unit (not shown in FIGS. 19 and 20) reads out and executes a program stored in the storage device, and controls each unit shown in FIGS. It is realized by doing. The process shown in the flowchart of FIG. 21 is only a specific example of the line extraction process, and may be executed by changing the order of the steps, for example.

また、ステップS2102〜2106、2107〜2110の処理は図10のステップS902〜906、909〜912の処理と同じであるため説明は省略する。   Moreover, since the process of step S2102-2106, 2107-2110 is the same as the process of step S902-906 of FIG. 10, and 909-912, description is abbreviate | omitted.

ステップS2111において、各方向特徴微分値データ合成処理部1913は、X方向特徴微分値データバッファ1908からX方向特徴微分値データを、Y方向特徴微分値データバッファ1912からY方向特徴微分値データを読み込む。そして、各方向の特徴微分値データを足し合わせた合成特徴微分値データを合成特徴微分値データバッファ1914に与える。   In step S <b> 2111, each directional feature differential value data composition processing unit 1913 reads X-direction feature differential value data from the X-direction feature differential value data buffer 1908 and Y-direction feature differential value data buffer 1912. . Then, the combined feature differential value data obtained by adding the feature differential value data in each direction is supplied to the combined feature differential value data buffer 1914.

次いで、ステップS2112において、合成特徴微分値データバッファ1914は、各方向特徴微分値データ合成処理部1913から与えられた合成特徴微分値データを格納する。   Next, in step S2112, the synthesized feature differential value data buffer 1914 stores the synthesized feature differential value data provided from each direction feature differential value data synthesis processing unit 1913.

ステップS2113以降の処理において、Y方向線抽出処理部209およびX方向線抽出処理部815が、合成特徴微分値データバッファ1914から合成特徴微分値データを読み込んで、Y方向、X方向の線データを各バッファに与える以外は、図10のステップS907〜908、913〜916の処理と同じであるため、説明は省略する。   In the processing after step S2113, the Y-direction line extraction processing unit 209 and the X-direction line extraction processing unit 815 read the combined feature differential value data from the combined feature differential value data buffer 1914, and convert the Y-direction and X-direction line data. Except for giving to each buffer, the processing is the same as the processing in steps S907 to 908 and 913 to 916 in FIG.

上述したように、本実施の形態に係る線抽出処理装置は、X方向特徴微分値データとY方向特徴微分値のデータとを合成したものを用いて、線抽出を行なう。これにより、X方向、Y方向以外の方向の線の検出精度を向上させることができる。   As described above, the line extraction processing apparatus according to the present embodiment performs line extraction using a combination of X-direction feature differential value data and Y-direction feature differential value data. Thereby, the detection accuracy of lines in directions other than the X direction and the Y direction can be improved.

[実施の形態6]
実施の形態6に係る線抽出処理装置は、ノイズ除去済みの、X方向特徴微分値データとY方向特徴微分値データとを合成したものを用いて、線抽出を行なう。これにより、実施の形態4に係る線抽出処理装置と比べ、X方向、Y方向以外の方向の線の検出精度を向上させることができる。
[Embodiment 6]
The line extraction processing apparatus according to the sixth embodiment performs line extraction using the synthesized noise-removed X-direction characteristic differential value data and Y-direction characteristic differential value data. Thereby, the detection accuracy of lines in directions other than the X direction and the Y direction can be improved as compared with the line extraction processing apparatus according to the fourth embodiment.

図22は、本実施の形態に係るコンピュータ1において線抽出処理装置2202として機能し、線抽出処理を行なうための機能構成の一部を具体的に示すブロック図である。   FIG. 22 is a block diagram specifically showing a part of a functional configuration for functioning as the line extraction processing device 2202 in the computer 1 according to the present embodiment and performing the line extraction processing.

図16および22を参照して、実施の形態6に係る線抽出処理装置2202の機能構成について説明する。   With reference to FIGS. 16 and 22, the functional configuration of the line extraction processing apparatus 2202 according to Embodiment 6 will be described.

線抽出処理装置2202の上記機能は、図16で示した構成要素と図22で示す構成要素とから構成される。   The above-described function of the line extraction processing device 2202 includes the components shown in FIG. 16 and the components shown in FIG.

各方向特徴微分値データ合成処理部1913は、X方向特徴微分値データ第2バッファ1310からノイズ除去済みのX方向特徴微分値データを、Y方向特徴微分値データ第2バッファ1515からノイズ除去済みのY方向特徴微分値データをそれぞれ読み込む。そして、合成特徴微分値データバッファ1914に対し、合成特徴微分値データを与える。   Each directional feature differential value data synthesis processing unit 1913 removes noise from the X-direction feature differential value data second buffer 1310 and removes noise from the Y-direction feature differential value data second buffer 1515. The Y direction characteristic differential value data is read. Then, the composite feature differential value data 1914 is given to the composite feature differential value data buffer 1914.

この合成特徴微分値データは、実施の形態5で述べたように、X方向特徴微分値データとY方向特徴微分値データの各方向特徴微分値を足し合わせたものとする。   As described in the fifth embodiment, the combined feature differential value data is obtained by adding the directional feature differential values of the X-direction feature differential value data and the Y-direction feature differential value data.

実施の形態4に係る線抽出処理装置は、ノイズ除去済みの線を抽出する処理が各方向で独立して行なわれる。このため、各方向と異なる方向の線(たとえば、各方向が縦・横方向である場合は、斜め方向の線)は、各方向の特徴微分値に値が分散しているため、検出されにくい傾向があった。   In the line extraction processing apparatus according to the fourth embodiment, the process of extracting the noise-removed line is performed independently in each direction. For this reason, a line in a direction different from each direction (for example, a line in an oblique direction when each direction is a vertical or horizontal direction) is difficult to be detected because values are dispersed in characteristic differential values in each direction. There was a trend.

しかし、本実施の形態の線抽出処理装置では、各方向の特徴微分値を足し合わせることにより、X方向、Y方向以外の線の検出がより正確に行なわれる。   However, in the line extraction processing apparatus of the present embodiment, lines other than the X direction and the Y direction can be detected more accurately by adding the characteristic differential values in each direction.

また、意図的にX方向、Y方向の線をより重視したい場合は、特徴微分値データを、X方向特徴微分値データとY方向特徴微分値データの各方向の特徴微分値の大きい値としてもよい。   In addition, when intentionally placing importance on the X-direction and Y-direction lines, the characteristic differential value data may be a value having a large characteristic differential value in each direction of the X-direction characteristic differential value data and the Y-direction characteristic differential value data. Good.

図23および24は、線抽出処理装置2202が行なう処理の流れを示したフローチャートである。   23 and 24 are flowcharts showing the flow of processing performed by the line extraction processing device 2202.

図23および24を参照して、上述した線抽出処理装置2202が行なう処理の流れについて説明する。なお、図22のフローチャートに示される処理は、図16および22において図示しない制御部として機能するCPU101が記憶装置に記憶されるプログラムを読出して実行し、図16および22に示された各部を制御することによって実現される。なお、図23のフローチャートで示す処理は、線抽出処理の一具体例に過ぎず、たとえば、各ステップの順番を入れ替えて実行してもよい。   With reference to FIGS. 23 and 24, the flow of processing performed by the above-described line extraction processing device 2202 will be described. In the process shown in the flowchart of FIG. 22, CPU 101 functioning as a control unit (not shown in FIGS. 16 and 22) reads and executes a program stored in the storage device, and controls each unit shown in FIGS. 16 and 22. It is realized by doing. The process shown in the flowchart of FIG. 23 is merely a specific example of the line extraction process, and may be executed by changing the order of the steps, for example.

また、ステップS2402〜2408、2409〜2414の処理は図18のステップS1702〜1708、1711〜1716の処理と同じであるため説明は省略する。   Moreover, since the process of step S2402-2408 and 2409-2414 is the same as the process of step S1702-1708 and 1711-1716 of FIG. 18, description is abbreviate | omitted.

ステップS2415において、各方向特徴微分値データ合成処理部1913は、X方向特徴微分値データ第2バッファ1310からノイズ除去済みのX方向特徴微分値データを、Y方向特徴微分値データ第2バッファ1515からノイズ除去済みのY方向特徴微分値データを読み込む。そして、各方向の特徴微分値データを足し合わせた合成特徴微分値データを合成特徴微分値データバッファ1914に与える。   In step S 2415, each directional feature differential value data composition processing unit 1913 receives the X-direction feature differential value data from which noise has been removed from the X-direction feature differential value data second buffer 1310 from the Y-direction feature differential value data second buffer 1515. Read Y-direction feature differential value data from which noise has been removed. Then, the combined feature differential value data obtained by adding the feature differential value data in each direction is supplied to the combined feature differential value data buffer 1914.

ステップS2416以降の処理は、図21のステップS2112〜2118の処理と同じであるため、説明は省略する。   Since the process after step S2416 is the same as the process of step S212-1218 of FIG. 21, description is abbreviate | omitted.

上述したように、本実施の形態に係る線抽出処理装置は、ノイズ除去済みのX方向特徴微分値データとY方向特徴微分値のデータとを合成したものを用いて、線抽出を行なう。これにより、実施の形態5で述べた線抽出処理装置よりもX方向、Y方向以外の方向の線の検出精度を向上させることができる。   As described above, the line extraction processing apparatus according to the present embodiment performs line extraction using a combination of noise-removed X-direction feature differential value data and Y-direction feature differential value data. Thereby, the detection accuracy of lines in directions other than the X direction and the Y direction can be improved as compared with the line extraction processing apparatus described in the fifth embodiment.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

本実施の形態に係る線抽出処理装置202を搭載するコンピュータ1のハードウェア構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of the hardware constitutions of the computer 1 which mounts the line extraction processing apparatus 202 which concerns on this Embodiment. 本実施の形態に係るコンピュータ1において線抽出処理装置202として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which functions as the line extraction processing apparatus 202 in the computer 1 which concerns on this Embodiment, and shows the specific example of a functional structure for performing a line extraction process. 隣の画素との差分を計算するためのフィルタを示す図である。It is a figure which shows the filter for calculating the difference with an adjacent pixel. X方向特徴微分値を説明するための図である。It is a figure for demonstrating a X direction characteristic differential value. 図4(c)で示される微分値データに基づき作成した特徴微分値データを示す図である。It is a figure which shows the characteristic differential value data produced based on the differential value data shown by FIG.4 (c). 微分値データと特徴微分値データの別の例を示す図である。It is a figure which shows another example of differential value data and characteristic differential value data. 線抽出処理装置202が行なう処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process which the line extraction processing apparatus 202 performs. 線抽出処理装置202が行なう処理の具体例を示す図である。It is a figure which shows the specific example of the process which the line extraction processing apparatus 202 performs. 本実施の形態に係るコンピュータ1において線抽出処理装置802として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of a function structure for functioning as the line extraction processing apparatus 802 in the computer 1 which concerns on this Embodiment, and performing a line extraction process. 線抽出処理装置802が行なう処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process which the line extraction processing apparatus 802 performs. 線抽出処理装置802が行なう処理の具体例を示す図である。It is a figure which shows the specific example of the process which the line extraction processing apparatus 802 performs. 線抽出処理装置802が行なう処理(線のエッジを抽出)の具体例を示す図である。It is a figure which shows the specific example of the process (The edge of a line is extracted) which the line extraction processing apparatus 802 performs. 線抽出処理装置802が行なう処理(線全体を抽出)の具体例を示す図である。It is a figure which shows the specific example of the process (The whole line is extracted) which the line extraction processing apparatus 802 performs. 本実施の形態に係るコンピュータ1において線抽出処理装置1302として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of a function structure for functioning as the line extraction processing apparatus 1302 in the computer 1 which concerns on this Embodiment, and performing a line extraction process. 線抽出処理装置1302が行なう処理の流れを示したフローチャートである。10 is a flowchart showing a flow of processing performed by the line extraction processing device 1302. 本実施の形態に係るコンピュータ1において線抽出処理装置1502として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of a function structure for functioning as the line extraction processing apparatus 1502 in the computer 1 which concerns on this Embodiment, and performing a line extraction process. 本実施の形態に係るコンピュータ1において線抽出処理装置1502として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of a function structure for functioning as the line extraction processing apparatus 1502 in the computer 1 which concerns on this Embodiment, and performing a line extraction process. 線抽出処理装置1502が行なう処理の流れを示したフローチャートである。6 is a flowchart showing a flow of processing performed by the line extraction processing device 1502. 本実施の形態に係るコンピュータ1において線抽出処理装置1902として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of a function structure for functioning as the line extraction processing apparatus 1902 in the computer 1 which concerns on this Embodiment, and performing a line extraction process. 本実施の形態に係るコンピュータ1において線抽出処理装置1902として機能し、線抽出処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of a function structure for functioning as the line extraction processing apparatus 1902 in the computer 1 which concerns on this Embodiment, and performing a line extraction process. 線抽出処理装置1902が行なう処理の流れを示したフローチャートである。5 is a flowchart showing a flow of processing performed by a line extraction processing device 1902; 本実施の形態に係るコンピュータ1において線抽出処理装置2202として機能し、線抽出処理を行なうための機能構成の一部を具体的に示すブロック図である。It is a block diagram which specifically shows a part of functional structure for functioning as the line extraction processing device 2202 in the computer 1 according to the present embodiment and performing line extraction processing. 線抽出処理装置2202が行なう処理の流れを示したフローチャートである。12 is a flowchart showing a flow of processing performed by the line extraction processing device 2202. 線抽出処理装置2202が行なう処理の流れを示したフローチャートである。12 is a flowchart showing a flow of processing performed by the line extraction processing device 2202.

符号の説明Explanation of symbols

1 コンピュータ、2 記録媒体、101 CPU、103 ROM、105 RAM、107 HDD、109 読取部、111 入力部、113 通信部、115 表示部、201 画像入力装置、202 線抽出処理装置、203 線データ出力装置、204 入力画像データバッファ、205 X方向微分処理部、206 X方向微分値データバッファ、207 X方向特徴微分値データ生成処理部、208 X方向特徴微分値データバッファ、209 Y方向線抽出処理部、210 Y方向線データバッファ、802 線抽出処理装置、811 Y方向微分処理部、812 Y方向微分値データバッファ、813 Y方向特徴微分値データ生成処理部、814 Y方向特徴微分値データバッファ、815 X方向線抽出処理部、816 X方向線データバッファ、817 各方向線データ合成処理部、818 線データバッファ、1302 線抽出処理装置、1308 X方向特徴微分値データ第1バッファ、1309 X方向特徴微分値データノイズ除去処理部、1310 X方向特徴微分値データ第2バッファ、1902 線抽出処理装置、1913 各方向特徴微分値データ合成処理部、1914 合成特徴微分値データバッファ、2202 線抽出処理装置。   1 computer, 2 recording medium, 101 CPU, 103 ROM, 105 RAM, 107 HDD, 109 reading unit, 111 input unit, 113 communication unit, 115 display unit, 201 image input device, 202 line extraction processing device, 203 line data output Device, 204 input image data buffer, 205 X direction differential processing unit, 206 X direction differential value data buffer, 207 X direction characteristic differential value data generation processing unit, 208 X direction characteristic differential value data buffer, 209 Y direction line extraction processing unit 210 Y-direction line data buffer, 802 Line extraction processing device, 811 Y-direction differential processing unit, 812 Y-direction differential value data buffer, 813 Y-direction characteristic differential value data generation processing unit, 814 Y-direction characteristic differential value data buffer, 815 X-direction line extraction processing unit, 816 X-direction line data Buffer, 817 Each direction line data composition processing unit, 818 line data buffer, 1302 line extraction processing device, 1308 X direction feature differential value data first buffer, 1309 X direction feature differential value data noise removal processing unit, 1310 X direction feature differentiation Value data second buffer, 1902 line extraction processing device, 1913 each direction feature differential value data synthesis processing unit, 1914 synthesis feature differential value data buffer, 2202 line extraction processing device.

Claims (13)

第1の方向に延びる座標軸と、当該軸に直交する第2の方向に延びる座標軸がなす座標平面に対応する画像データから、当該画像データに含まれる線に対応するデータを抽出する線抽出処理装置であって、
前記画像データを入力するための画像入力手段と、
前記画像データを第1の方向に微分して、第1方向微分値データを作成するための第1方向微分処理手段と、
前記第1方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とする第1方向特徴微分値データを生成するための第1方向特徴微分値データ生成処理手段と、
前記第2の方向に対応の線の情報を表す第2方向線データを出力するための第1方向線抽出処理手段とを備え、
前記第1方向微分値をとる特徴画素は、前記第1方向特徴微分値が0以外の第1の特徴画素を含み、
前記第1方向線抽出処理手段は、前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第2の特徴画素が、前記第2の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第2方向線データを出力する、線抽出処理装置。
A line extraction processing device that extracts data corresponding to a line included in image data from image data corresponding to a coordinate plane formed by a coordinate axis extending in the first direction and a coordinate axis extending in a second direction orthogonal to the axis Because
Image input means for inputting the image data;
First direction differentiation processing means for differentiating the image data in a first direction to generate first direction differential value data;
Generating first direction feature differential value data in which the first direction differential value having the maximum absolute value in a positive or negative continuous section of the first direction differential value data is used as the first direction feature differential value. First direction feature differential value data generation processing means for
And a first direction line extraction processing means for outputting the second direction line data representing information of said second direction to the corresponding line,
The feature pixel taking the first direction differential value includes a first feature pixel whose first direction feature differential value is other than 0,
The first direction line extraction processing means is a second feature that is the feature pixel that exists within a first predetermined range related to the thickness of the line from the position of the first feature pixel in the first direction. The first direction feature differential value of the pixel is opposite in polarity to the first direction feature differential value of the first feature pixel, and the absolute value of the first direction feature differential value of the first feature pixel And the absolute value of the first direction feature differential value of the second feature pixel is a first predetermined value for determining that both pixels correspond to two edges on both sides of the line. A value indicating that the first feature pixel and the second feature pixel are pixels constituting an edge of the line in the second direction is set according to the determination that the value is less than or equal to A line extraction processing apparatus for outputting the second direction line data .
前記第1方向線抽出処理手段は、前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素と、前記第2の特徴画素と、前記第1の方向において前記第1の特徴画素と前記第2の特徴画素との間に存在する画素と、前記第2の方向における前記線を構成する画素であることを示す値が設定された前記第2方向線データを出力する、請求項記載の線抽出処理装置。 The first direction line extraction processing unit, the position of the first feature pixel in the previous SL first direction, the characteristic pixel der Ru second present in the first predetermined range for the thickness of the wire in the first direction, wherein the differential value of the feature pixel in the first direction, wherein the differential value and polarity reverse of the first feature pixel, and, in the first direction, wherein the differential value of the first feature pixel A difference between the absolute value and the absolute value of the first direction feature differential value of the second feature pixel is a first for determining that both pixels correspond to two edges on both sides of the line . The first feature pixel, the second feature pixel, and the first feature pixel and the second feature pixel in the first direction. indicating that a pixel is present, a pixel constituting the line in the second direction between the There outputs the set the second direction line data, the line extracting apparatus according to claim 1, wherein. 前記第1方向特徴微分値データからノイズを除去するための第1方向特徴微分値データノイズ除去処理手段をさらに備え
前記第1方向特徴微分値データノイズ除去処理手段は、前記第1の特徴画素の前記第1方向特徴微分値との差が第2の所定の値以下である、前記第1の特徴画素と前記第2の方向において隣接する第3の特徴画素を、前記第1の特徴画素と連結する特徴画素として、前記第1の特徴画素についての特徴画素の連結数を算出し、前記連結数が第3の所定の値以下であるとの判断に応じて、前記第1方向特徴微分値データから、前記第1の特徴画素および前記第1の特徴画素と連結した特徴画素の前記第1方向特徴微分値データを前記ノイズとして除去し、
前記第2の所定の値は、前記第2の方向において隣接する特徴画素は線として連結するか否かを判定するための値を指し、
前記第3の所定の値は、前記第2の方向において抽出される前記線の太さの最小の大きさを指す、請求項1または2記載の線抽出処理装置。
A first direction feature differential value data noise removal processing means for removing noise from the first direction feature differential value data ;
The first direction feature differential value data noise removal processing means includes a difference between the first feature pixel and the first direction feature differential value equal to or less than a second predetermined value. The number of connected feature pixels for the first feature pixel is calculated using the third feature pixel adjacent in the second direction as the feature pixel connected to the first feature pixel. The first direction feature differential value of the feature pixel connected to the first feature pixel and the first feature pixel based on the first direction feature differential value data Remove the data as the noise,
The second predetermined value refers to a value for determining whether or not feature pixels adjacent in the second direction are connected as a line,
It said third predetermined value, the extracted in the second direction refers to the minimum size of the thickness of the line, the line extracting apparatus according to claim 1 or 2 wherein.
第1の方向に延びる座標軸と、当該軸に直交する第2の方向に延びる座標軸がなす座標平面に対応する画像データから、当該画像データに含まれる線に対応するデータを抽出する線抽出処理装置であって、
前記画像データを入力するための画像入力手段と、
前記画像データを第1の方向に微分して、第1方向微分値データを作成するための第1方向微分処理手段と、
前記第1方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とする第1方向特徴微分値データを生成するための第1方向特徴微分値データ生成処理手段と、
前記第2の方向に対応の線の情報を表す第2方向線データを出力するための第1方向線抽出処理手段と、
前記画像データを前記第2の方向に微分して、第2方向微分値データを作成するための第2方向微分処理手段と、
前記第2方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第2方向微分値を第2方向特徴微分値とする第2方向特徴微分値データを生成するための第2方向特徴微分値データ生成処理手段と、
前記第1の方向に対応の線の情報を表す第1方向線データを出力するための第2方向線抽出処理手段と、
前記第1方向線抽出処理手段および前記第2方向線抽出処理手段によって出力されたデータを合成することにより線データを作成するための各方向線データ合成手段とを備え、
前記第1方向微分値をとる特徴画素は、前記第1方向特徴微分値が0以外の第1の特徴画素を含み、
前記第1方向線抽出処理手段は、前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第2の特徴画素が、前記第2の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第2方向線データを出力し、
前記第2方向線抽出処理手段は、前記第2の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第3の特徴画素の前記第2方向特徴微分値が、前記第1の特徴画素の前記第2方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第2方向特徴微分値の絶対値と前記第3の特徴画素の前記第2方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第2の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第3の特徴画素が、前記第1の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第1方向線データを出力する、線抽出処理装置。
A line extraction processing device that extracts data corresponding to a line included in image data from image data corresponding to a coordinate plane formed by a coordinate axis extending in the first direction and a coordinate axis extending in a second direction orthogonal to the axis Because
Image input means for inputting the image data;
First direction differentiation processing means for differentiating the image data in a first direction to generate first direction differential value data;
Generating first direction feature differential value data in which the first direction differential value having the maximum absolute value in a positive or negative continuous section of the first direction differential value data is used as the first direction feature differential value. First direction feature differential value data generation processing means for
First direction line extraction processing means for outputting second direction line data representing information of a line corresponding to the second direction;
Second direction differentiation processing means for differentiating the image data in the second direction to create second direction differential value data;
Generating second direction characteristic differential value data in which the second direction differential value having the maximum absolute value in a positive or negative continuous section of the second direction differential value data is used as the second direction characteristic differential value. Second direction feature differential value data generation processing means for
Second direction line extraction processing means for outputting first direction line data representing information of a line corresponding to the first direction;
Each direction line data synthesizing means for creating line data by synthesizing the data output by the first direction line extraction processing means and the second direction line extraction processing means,
The feature pixel taking the first direction differential value includes a first feature pixel whose first direction feature differential value is other than 0,
The first direction line extraction processing means is a second feature that is the feature pixel that exists within a first predetermined range related to the thickness of the line from the position of the first feature pixel in the first direction. The first direction feature differential value of the pixel is opposite in polarity to the first direction feature differential value of the first feature pixel, and the absolute value of the first direction feature differential value of the first feature pixel And the absolute value of the first direction feature differential value of the second feature pixel is a first predetermined value for determining that both pixels correspond to two edges on both sides of the line. A value indicating that the first feature pixel and the second feature pixel are pixels constituting an edge of the line in the second direction is set according to the determination that the value is less than or equal to Output the second direction line data,
The second direction line extraction processing means is a third feature that is the feature pixel that exists within a first predetermined range related to the thickness of the line from the position of the first feature pixel in the second direction. The second direction feature differential value of the pixel is opposite in polarity to the second direction feature differential value of the first feature pixel, and the absolute value of the second direction feature differential value of the first feature pixel And the absolute value of the second direction characteristic differential value of the third feature pixel is a second predetermined value for determining that both pixels correspond to two edges on both sides of the line. A value indicating that the first feature pixel and the third feature pixel are pixels constituting an edge of the line in the first direction. were you output the first direction line data, the line extraction process unit.
前記第1方向特徴微分値データと前記第2方向特徴微分値データとを合成して、前記画像データに対応する前記座標平面における前記線の領域を指示する合成特徴微分値データを生成するための各方向特徴微分値データ合成処理部をさらに備える、請求項記載の線抽出処理装置。 For synthesizing the first direction characteristic differential value data and the second direction characteristic differential value data to generate combined characteristic differential value data indicating the region of the line in the coordinate plane corresponding to the image data The line extraction processing device according to claim 4 , further comprising a directional feature differential value data synthesis processing unit. 前記第1方向線抽出処理手段は、前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素と、前記第2の特徴画素と、前記第1の方向において前記第1の特徴画素と前記第2の特徴画素との間に存在する画素とが、前記第2の方向における前記線を構成する画素であることを示す値が設定された前記第2方向線データを出力し、
前記第2方向線抽出処理手段は、前記第2の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第3の特徴画素の前記第2方向特徴微分値が、前記第1の特徴画素の前記第2方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第2方向特徴微分値の絶対値と前記第3の特徴画素の前記第2方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第2の所定の値以下であるとの判断に応じて、前記第1の特徴画素と、前記第3の特徴画素と、前記第1の方向において前記第1の特徴画素と前記第3の特徴画素との間に存在する画素とが、前記第1の方向における前記線を構成する画素であることを示す値が設定された前記第1方向線データを出力する、請求項4または5に記載の線抽出処理装置。
The first direction line extraction processing means is a second feature that is the feature pixel that exists within a first predetermined range related to the thickness of the line from the position of the first feature pixel in the first direction. The first direction feature differential value of the pixel is opposite in polarity to the first direction feature differential value of the first feature pixel, and the absolute value of the first direction feature differential value of the first feature pixel And the absolute value of the first direction feature differential value of the second feature pixel is a first predetermined value for determining that both pixels correspond to two edges on both sides of the line. Between the first feature pixel, the second feature pixel, and the first feature pixel and the second feature pixel in the first direction. Indicates that the pixel that constitutes the line in the second direction is a pixel existing in There outputs set the second direction line data,
The second direction line extraction processing means is a third feature that is the feature pixel that exists within a first predetermined range related to the thickness of the line from the position of the first feature pixel in the second direction. The second direction feature differential value of the pixel is opposite in polarity to the second direction feature differential value of the first feature pixel, and the absolute value of the second direction feature differential value of the first feature pixel And the absolute value of the second direction characteristic differential value of the third feature pixel is a second predetermined value for determining that both pixels correspond to two edges on both sides of the line. Between the first feature pixel, the third feature pixel, and the first feature pixel and the third feature pixel in the first direction. Indicates that the pixels in the first direction constitute the line in the first direction. There outputs the set first direction line data, the line extracting apparatus according to claim 4 or 5.
前記第1方向特徴微分値データからノイズを除去するための第1方向特徴微分値データノイズ除去処理手段と、
前記第2方向特徴微分値データからノイズを除去するための第2方向特徴微分値データノイズ除去処理手段のうち少なくとも1つをさらに備え、
前記第1方向特徴微分値データノイズ除去処理手段は、前記第1の特徴画素の前記第1方向特徴微分値との差が第3の所定の値以下である、前記第1の特徴画素と前記第2の方向において隣接する特徴画素を、前記第1の特徴画素と連結する特徴画素として、前記第1の特徴画素についての特徴画素の連結数を算出し、前記連結数が第4の所定の値以下であるとの判断に応じて、前記第1方向特徴微分値データから、前記第1の特徴画素および前記第1の特徴画素と前記第2の方向において連結した特徴画素の前記第1方向特徴微分値データを前記ノイズとして除去して前記第1方向特徴微分値データとし、
前記第2方向特徴微分値データノイズ除去処理手段は、前記第1の特徴画素の前記第2方向特徴微分値との差が第5の所定の値以下である、前記第1の特徴画素と前記第1の方向において隣接する特徴画素を、前記第1の特徴画素と連結する特徴画素として、前記第1の特徴画素についての特徴画素の連結数を算出し、前記連結数が第6の所定の値以下であるとの判断に応じて、前記第2方向特徴微分値データから、前記第1の特徴画素および前記第1の特徴画素と前記第1の方向において連結した特徴画素の前記第2方向特徴微分値を除去して前記第2方向特徴微分値データとし、
前記第3の所定の値は、前記第2の方向において隣接する特徴画素は線として連結するか否かを判定するための値を指し、
前記第4の所定の値は、前記第2の方向に抽出される前記線の太さの最小の大きさを指し、
前記第5の所定の値は、前記第1の方向において隣接する特徴画素は線として連結するか否かを判定するための値を指し、
前記第6の所定の値は、前記第1の方向に抽出される前記線の太さの最小の大きさを指す、請求項4から6のいずれかに記載の線抽出処理装置。
First direction feature differential value data noise removal processing means for removing noise from the first direction feature differential value data;
At least one of second direction feature differential value data noise removal processing means for removing noise from the second direction feature differential value data;
The first direction feature differential value data noise removal processing means includes the first feature pixel and the first feature pixel whose difference from the first direction feature differential value of the first feature pixel is a third predetermined value or less. A feature pixel that is adjacent in the second direction is a feature pixel that is connected to the first feature pixel, and the number of connected feature pixels for the first feature pixel is calculated. The first direction of the feature pixel connected in the second direction to the first feature pixel and the first feature pixel from the first direction feature differential value data according to the determination that the value is less than or equal to the value Characteristic differential value data is removed as the noise to obtain the first direction characteristic differential value data,
The second direction feature differential value data noise removal processing means includes the first feature pixel and a difference between the first feature pixel and the second direction feature differential value not more than a fifth predetermined value. A feature pixel that is adjacent in the first direction is a feature pixel that is connected to the first feature pixel, and the number of connected feature pixels for the first feature pixel is calculated, and the number of connections is a sixth predetermined number of pixels. The second direction of the feature pixel connected to the first feature pixel and the first feature pixel in the first direction from the second direction feature differential value data in response to the determination that the value is less than or equal to the value. The characteristic differential value is removed to obtain the second direction characteristic differential value data ,
The third predetermined value refers to a value for determining whether or not feature pixels adjacent in the second direction are connected as a line,
The fourth predetermined value refers to a minimum size of the thickness of the line extracted in the second direction;
The fifth predetermined value refers to a value for determining whether or not feature pixels adjacent in the first direction are connected as a line;
The line extraction processing apparatus according to claim 4 , wherein the sixth predetermined value indicates a minimum size of a thickness of the line extracted in the first direction .
演算部を有するコンピュータに、画像データに含まれる線に対応するデータを抽出する処理を実行させるプログラムであって、
前記画像データは、第1の方向に延びる座標軸と、当該軸に直交する第2の方向に延びる座標軸がなす座標平面に対応する画像データであって、
前記演算部が、前記画像データを入力するステップと、
前記演算部が、前記画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、
前記演算部が、前記第1方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、
前記演算部が、前記第2の方向に対応の線の情報を表す第2方向線データを出力するステップと、を備え、
前記第1方向微分値をとる特徴画素は、前記第1方向特徴微分値が0以外の第1の特徴画素を含み、
前記第2方向線データを出力するステップでは、
前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第2の特徴画素が、前記第2の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第2方向線データを出力する、線抽出処理プログラム。
A program for causing a computer having a calculation unit to execute processing for extracting data corresponding to a line included in image data,
The image data is image data corresponding to a coordinate plane formed by a coordinate axis extending in a first direction and a coordinate axis extending in a second direction orthogonal to the axis,
The arithmetic unit inputting the image data;
The computing unit differentiating the image data in a first direction to create first direction differential value data;
A first direction feature having the first direction differential value having a maximum absolute value in a section where the differential value is positive or negative in the first direction differential value data as the first direction feature differential value. Generating differential value data; and
The arithmetic unit comprising: outputting second direction line data representing information of a line corresponding to the second direction;
The feature pixel taking the first direction differential value includes a first feature pixel whose first direction feature differential value is other than 0,
In the step of outputting the second direction line data,
The first direction feature differential value of the second feature pixel which is the feature pixel existing within the first predetermined range regarding the thickness of the line from the position of the first feature pixel in the first direction is , The first direction feature differential value of the first feature pixel is opposite in sign, and the absolute value of the first direction feature differential value of the first feature pixel and the second feature pixel of the second feature pixel are the same. According to determination that the difference between the absolute value of the one-way characteristic differential value is equal to or less than a first predetermined value for determining that both pixels are pixels corresponding to two edges on both sides of the line. And outputting the second direction line data in which a value indicating that the first feature pixel and the second feature pixel are pixels constituting an edge of the line in the second direction is set. , Line extraction processing program.
演算部を有するコンピュータに、画像データに含まれる線に対応するデータを抽出する処理を実行させるプログラムであって、
前記画像データは、第1の方向に延びる座標軸と、当該軸に直交する第2の方向に延びる座標軸がなす座標平面に対応する画像データであって、
前記演算部が、前記画像データを入力するステップと、
前記演算部が、前記画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、
前記演算部が、前記第1方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、
前記演算部が、前記第2の方向に対応の線の情報を表す第2方向線データを出力するステップと、
前記演算部が、前記画像データを前記第2の方向に微分して、第2方向微分値データを作成するステップと、
前記演算部が、前記第2方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第2方向微分値を第2方向特徴微分値とする第2方向特徴微分値データを生成するステップと、
前記演算部が、前記第1の方向に対応の線の情報を表す第1方向線データを出力するステップと、
前記演算部が、前記第1方向線データを出力するステップと前記第2方向線データを出力するステップとによって出力されたデータを合成することにより線データを作成するステップとを備え、
前記第1方向微分値をとる特徴画素は、前記第1方向特徴微分値が0以外の第1の特徴画素を含み、
前記第1方向線データを出力するステップでは、
前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第2の特徴画素が、前記第2の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第2方向線データを出力し
前記第2方向線データを出力するステップでは、
前記第2の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第3の特徴画素の前記第2方向特徴微分値が、前記第1の特徴画素の前記第2方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第2方向特徴微分値の絶対値と前記第3の特徴画素の前記第2方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第2の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第3の特徴画素が、前記第1の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第1方向線データを出力する、線抽出処理プログラム。
A program for causing a computer having a calculation unit to execute processing for extracting data corresponding to a line included in image data,
The image data is image data corresponding to a coordinate plane formed by a coordinate axis extending in a first direction and a coordinate axis extending in a second direction orthogonal to the axis,
The arithmetic unit inputting the image data;
The computing unit differentiating the image data in a first direction to create first direction differential value data;
A first direction feature having the first direction differential value having a maximum absolute value in a section where the differential value is positive or negative in the first direction differential value data as the first direction feature differential value. Generating differential value data; and
The operation unit outputting second direction line data representing information of a line corresponding to the second direction;
The computing unit differentiating the image data in the second direction to create second direction differential value data;
In the second direction feature, the computing unit sets the second direction differential value having the maximum absolute value in the positive or negative continuous section of the second direction differential value data as the second direction feature differential value. Generating differential value data; and
The computing unit outputting first direction line data representing information of a line corresponding to the first direction;
The arithmetic unit comprises the step of generating line data by combining the data output by the step of outputting the first direction line data and the step of outputting the second direction line data;
The feature pixel taking the first direction differential value includes a first feature pixel whose first direction feature differential value is other than 0,
In the step of outputting the first direction line data,
The first direction feature differential value of the second feature pixel which is the feature pixel existing within the first predetermined range regarding the thickness of the line from the position of the first feature pixel in the first direction is , The first direction feature differential value of the first feature pixel is opposite in sign, and the absolute value of the first direction feature differential value of the first feature pixel and the second feature pixel of the second feature pixel are the same. According to determination that the difference between the absolute value of the one-way characteristic differential value is equal to or less than a first predetermined value for determining that both pixels are pixels corresponding to two edges on both sides of the line. And outputting the second direction line data in which a value indicating that the first feature pixel and the second feature pixel are pixels constituting an edge of the line in the second direction is set. ,
In the step of outputting the second direction line data,
In the second direction, the second direction feature differential value of the third feature pixel that is the feature pixel existing within the first predetermined range related to the thickness of the line from the position of the first feature pixel is , The second direction feature differential value of the first feature pixel is opposite in sign, and the absolute value of the second direction feature differential value of the first feature pixel and the third feature pixel of the third feature pixel are the same. According to the determination that the difference between the absolute value of the two-way characteristic differential value is equal to or less than a second predetermined value for determining that both pixels are pixels corresponding to two edges on both sides of the line. And outputting the first direction line data in which a value indicating that the first feature pixel and the third feature pixel are pixels constituting an edge of the line in the first direction is set. , Line extraction processing program.
請求項8記載の線抽出プログラムを格納したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium storing the line extraction program according to claim 8. 請求項9記載の線抽出プログラムを格納したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium storing the line extraction program according to claim 9. 第1の方向に延びる座標軸と、当該軸に直交する第2の方向に延びる座標軸がなす座標平面に対応する画像データから、当該画像データに含まれる線に対応するデータを抽出する方法であって、
前記画像データを入力するステップと、
前記画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、
前記第1方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、
前記第2の方向に対応の線の情報を表す第2方向線データを出力するステップと、を備え、
前記第1方向微分値をとる特徴画素は、前記第1方向特徴微分値が0以外の第1の特徴画素を含み、
前記第2方向線データを出力するステップでは、
前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第2の特徴画素が、前記第2の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第2方向線データを出力する、線抽出処理方法。
A method of extracting data corresponding to a line included in image data from image data corresponding to a coordinate plane extending by a coordinate axis extending in a first direction and a coordinate axis extending in a second direction orthogonal to the axis. ,
Inputting the image data;
Differentiating the image data in a first direction to create first direction differential value data;
Generating first direction feature differential value data in which the first direction differential value having the maximum absolute value in a positive or negative continuous section of the first direction differential value data is used as the first direction feature differential value. And steps to
Outputting second direction line data representing information of a line corresponding to the second direction,
The feature pixel taking the first direction differential value includes a first feature pixel whose first direction feature differential value is other than 0,
In the step of outputting the second direction line data,
The first direction feature differential value of the second feature pixel which is the feature pixel existing within the first predetermined range regarding the thickness of the line from the position of the first feature pixel in the first direction is , The first direction feature differential value of the first feature pixel is opposite in sign, and the absolute value of the first direction feature differential value of the first feature pixel and the second feature pixel of the second feature pixel are the same. According to determination that the difference between the absolute value of the one-way characteristic differential value is equal to or less than a first predetermined value for determining that both pixels are pixels corresponding to two edges on both sides of the line. And outputting the second direction line data in which a value indicating that the first feature pixel and the second feature pixel are pixels constituting an edge of the line in the second direction is set. , Line extraction processing method.
第1の方向に延びる座標軸と、当該軸に直交する第2の方向に延びる座標軸がなす座標平面に対応する画像データから、当該画像データに含まれる線に対応するデータを抽出する方法であって、
前記画像データを入力するステップと、
前記画像データを第1の方向に微分して、第1方向微分値データを作成するステップと、
前記第1方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第1方向微分値を第1方向特徴微分値とする第1方向特徴微分値データを生成するステップと、
前記第2の方向に対応の線の情報を表す第2方向線データを出力するステップと、
前記画像データを前記第2の方向に微分して、第2方向微分値データを作成するステップと、
前記第2方向微分値データのうち、微分値が正または負の連続する区間において絶対値が最大となる第2方向微分値を第2方向特徴微分値とする第2方向特徴微分値データを生成するステップと、
前記第1の方向に対応の線の情報を表す第1方向線データを出力するステップと、
前記第1方向線データを出力するステップと前記第2方向線データを出力するステップとによって出力されたデータを合成することにより線データを作成するステップとを備え、
前記第1方向微分値をとる第1方向特徴微分値が0以外の第1の特徴画素を含み、
前記第1方向線データを出力するステップでは、
前記第1の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第2の特徴画素の前記第1方向特徴微分値が、前記第1の特徴画素の前記第1方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第1方向特徴微分値の絶対値と前記第2の特徴画素の前記第1方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第1の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第2の特徴画素が、前記第2の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第2方向線データを出力し、
前記第2方向線データを出力するステップでは、
前記第2の方向において前記第1の特徴画素の位置から、前記線の太さに関する第1の所定範囲内に存在する前記特徴画素である第3の特徴画素の前記第2方向特徴微分値が、前記第1の特徴画素の前記第2方向特徴微分値と正負が逆で、且つ、前記第1の特徴画素の前記第2方向特徴微分値の絶対値と前記第3の特徴画素の前記第2方向特徴微分値の絶対値との差が、両画素が前記線の両側の2つのエッジに該当する画素であることを判定するための第2の所定の値以下であるとの判断に応じて、前記第1の特徴画素および前記第3の特徴画素が、前記第1の方向における前記線のエッジを構成する画素であることを示す値が設定された前記第1方向線データを出力する、線抽出処理方法。
A method of extracting data corresponding to a line included in image data from image data corresponding to a coordinate plane extending by a coordinate axis extending in a first direction and a coordinate axis extending in a second direction orthogonal to the axis. ,
Inputting the image data;
Differentiating the image data in a first direction to create first direction differential value data;
Generating first direction feature differential value data in which the first direction differential value having the maximum absolute value in a positive or negative continuous section of the first direction differential value data is used as the first direction feature differential value. And steps to
Outputting second direction line data representing information of a line corresponding to the second direction;
Differentiating the image data in the second direction to generate second direction differential value data;
Generating second direction characteristic differential value data in which the second direction differential value having the maximum absolute value in a positive or negative continuous section of the second direction differential value data is used as the second direction characteristic differential value. And steps to
Outputting first direction line data representing information of a line corresponding to the first direction;
Creating line data by synthesizing the data output by the step of outputting the first direction line data and the step of outputting the second direction line data;
A first direction characteristic differential value that takes the first direction differential value includes a first characteristic pixel other than 0;
In the step of outputting the first direction line data,
The first direction feature differential value of the second feature pixel which is the feature pixel existing within the first predetermined range regarding the thickness of the line from the position of the first feature pixel in the first direction is , The first direction feature differential value of the first feature pixel is opposite in sign, and the absolute value of the first direction feature differential value of the first feature pixel and the second feature pixel of the second feature pixel are the same. According to determination that the difference between the absolute value of the one-way characteristic differential value is equal to or less than a first predetermined value for determining that both pixels are pixels corresponding to two edges on both sides of the line. And outputting the second direction line data in which a value indicating that the first feature pixel and the second feature pixel are pixels constituting an edge of the line in the second direction is set. ,
In the step of outputting the second direction line data,
In the second direction, the second direction feature differential value of the third feature pixel that is the feature pixel existing within the first predetermined range related to the thickness of the line from the position of the first feature pixel is , The second direction feature differential value of the first feature pixel is opposite in sign, and the absolute value of the second direction feature differential value of the first feature pixel and the third feature pixel of the third feature pixel are the same. According to the determination that the difference between the absolute value of the two-way characteristic differential value is equal to or less than a second predetermined value for determining that both pixels are pixels corresponding to two edges on both sides of the line. And outputting the first direction line data in which a value indicating that the first feature pixel and the third feature pixel are pixels constituting an edge of the line in the first direction is set. , Line extraction processing method.
JP2007009297A 2007-01-18 2007-01-18 Line extraction processing apparatus, line extraction processing program, recording medium storing line extraction processing program, and line extraction processing method Active JP4753889B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007009297A JP4753889B2 (en) 2007-01-18 2007-01-18 Line extraction processing apparatus, line extraction processing program, recording medium storing line extraction processing program, and line extraction processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007009297A JP4753889B2 (en) 2007-01-18 2007-01-18 Line extraction processing apparatus, line extraction processing program, recording medium storing line extraction processing program, and line extraction processing method

Publications (3)

Publication Number Publication Date
JP2008176558A JP2008176558A (en) 2008-07-31
JP2008176558A5 JP2008176558A5 (en) 2009-06-18
JP4753889B2 true JP4753889B2 (en) 2011-08-24

Family

ID=39703535

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007009297A Active JP4753889B2 (en) 2007-01-18 2007-01-18 Line extraction processing apparatus, line extraction processing program, recording medium storing line extraction processing program, and line extraction processing method

Country Status (1)

Country Link
JP (1) JP4753889B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102175397B1 (en) * 2019-01-16 2020-11-06 한국과학기술연구원 Method for extracting a line segment robust to various environment changes

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000163598A (en) * 1998-11-30 2000-06-16 Nippon Telegr & Teleph Corp <Ntt> Method for extracting line picture and recording medium for recording the same
JP2003016463A (en) * 2001-07-05 2003-01-17 Toshiba Corp Extracting method for outline of figure, method and device for pattern inspection, program, and computer- readable recording medium with the same stored therein

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0927100A (en) * 1995-07-12 1997-01-28 Yazaki Corp Method and device for recognizing proceding vehicel and read-end collision preventive device equipped there with for vehicle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000163598A (en) * 1998-11-30 2000-06-16 Nippon Telegr & Teleph Corp <Ntt> Method for extracting line picture and recording medium for recording the same
JP2003016463A (en) * 2001-07-05 2003-01-17 Toshiba Corp Extracting method for outline of figure, method and device for pattern inspection, program, and computer- readable recording medium with the same stored therein

Also Published As

Publication number Publication date
JP2008176558A (en) 2008-07-31

Similar Documents

Publication Publication Date Title
CN110610453B (en) Image processing method and device and computer readable storage medium
JP4310288B2 (en) Image processing apparatus and method, program, and storage medium
JP4738469B2 (en) Image processing apparatus, image processing program, and image processing method
JP2010262648A5 (en) Method for automatic alignment of document objects
US20150228045A1 (en) Methods for embedding and extracting a watermark in a text document and devices thereof
JP2008176521A (en) Pattern separation extraction program, pattern separation extraction apparatus and pattern separation extraction method
JP4565396B2 (en) Image processing apparatus and image processing program
CN111353069A (en) Character scene video generation method, system, device and storage medium
JP5067882B2 (en) Image processing apparatus, image processing method, and program
JP4753889B2 (en) Line extraction processing apparatus, line extraction processing program, recording medium storing line extraction processing program, and line extraction processing method
CN109948605B (en) Picture enhancement method and device for small target
WO2020121996A1 (en) Image processing device, method, and program
JP4873554B2 (en) Image distribution apparatus and image distribution method
JP4689570B2 (en) Image processing apparatus and image processing method
Ghosh et al. GSD-Net: compact network for pixel-level graphical symbol detection
JP2002232679A (en) Method and device for image processing, computer program, and storage medium
JP2012022413A (en) Image processing apparatus, image processing method and program
JP4164458B2 (en) Information processing apparatus and method, computer program, and computer-readable storage medium
JP2007156954A (en) Reliability table creation method, optical flow estimation method, reliability table creation device, optical flow estimation device, and program
JP4741363B2 (en) Image processing apparatus, image processing method, and image processing program
US20220277473A1 (en) Pose estimation apparatus, learning apparatus, pose estimation method, and non-transitory computer-readable recording medium
JP2009193145A (en) Handwritten data generation device, method, and program
JP7165970B2 (en) LEARNING DATA GENERATOR AND LEARNING DATA GENERATION METHOD
JP2007328652A (en) Image processing device and image processing program
JP2007299321A (en) Information processor, information processing method, information processing program and information storage medium

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090422

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090422

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110420

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

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

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

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4753889

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150