Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH024949B2 - - Google Patents
[go: Go Back, main page]

JPH024949B2 - - Google Patents

Info

Publication number
JPH024949B2
JPH024949B2 JP58027519A JP2751983A JPH024949B2 JP H024949 B2 JPH024949 B2 JP H024949B2 JP 58027519 A JP58027519 A JP 58027519A JP 2751983 A JP2751983 A JP 2751983A JP H024949 B2 JPH024949 B2 JP H024949B2
Authority
JP
Japan
Prior art keywords
pixel
contour
line segment
data
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP58027519A
Other languages
Japanese (ja)
Other versions
JPS59154578A (en
Inventor
Akira Myagawa
Seiji Hata
Yoshe Ema
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58027519A priority Critical patent/JPS59154578A/en
Priority to US06/582,555 priority patent/US4783829A/en
Publication of JPS59154578A publication Critical patent/JPS59154578A/en
Publication of JPH024949B2 publication Critical patent/JPH024949B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、デイジタル画像上において所定の接
続関係を有する輪郭画素列(輪郭点列)を線分で
近似する処理を高速で実行するための輪郭画素列
線分化装置に関するものである。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a contour processing method for rapidly performing a process of approximating a contour pixel sequence (contour point sequence) having a predetermined connection relationship on a digital image by a line segment. The present invention relates to a pixel column line segmentation device.

〔従来技術〕[Prior art]

一般に、点列を線分で近似する処理方式は、
種々のものが報告されており、その中には相当な
高速処理を意図したものもある。
Generally, the processing method for approximating a point sequence with a line segment is
Various methods have been reported, some of which are intended for considerably high-speed processing.

しかし、これらは、いずれも点列上の各点ごと
に近似誤差内に存在するかどうかを確認する処理
が不可欠であるので、最も演算量の少ないものを
採用しても、なお相当量の線分処似処理が必要で
ある。
However, all of these require processing to check whether each point on the point sequence exists within the approximation error, so even if the method with the least amount of calculation is adopted, there will still be a considerable amount of line Disposal-like treatment is required.

したがつて、ロボツトの視覚機能などのように
実時間処理が重要である視覚処理において、その
まま数百点、数千点の線分近似処理に適用する
と、処理の高速化が阻害され、ほとんど実用に供
しえないので、その高速化が強く要望されている
ものである。
Therefore, in visual processing where real-time processing is important, such as the visual function of robots, if it is applied directly to line segment approximation processing of hundreds or thousands of points, processing speed will be hindered, making it almost impractical. Therefore, there is a strong demand for speeding up the process.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上記した現状に鑑み、デイジ
タル画像において所定の接続関係を保つて連結す
る輪郭画素列について、その線分近似処理を高速
で行うことができる輪郭画素列線分化装置を提供
することにある。
In view of the above-mentioned current situation, an object of the present invention is to provide a contour pixel string line differentiation device that can perform line segment approximation processing at high speed for contour pixel strings connected while maintaining a predetermined connection relationship in a digital image. There is a particular thing.

〔発明の概要〕[Summary of the invention]

本発明に係る輪郭画素列線分化装置の構成は、
所望のデイジタル画像の輪郭画素列について線分
近似をするのに要する各種の点列パターンに関す
る所定の線分近似データを格納しておく線分近似
データメモリと、指定領域内の輪郭外周について
当該各輪郭画素ごとに順次に探索をしつつ、それ
らの各画素間の接続関係に基づいて上記線分近似
データを参照して線分化の各終点を判定して、輪
郭画素列の各線分近似を順次に行う探索・線分化
手段と、その線分化の各終点データを記憶してお
き、それらを線分近似の各頂点データとして出力
しうる頂点データメモリとからなるようにしたも
のである。
The configuration of the contour pixel column line differentiation device according to the present invention is as follows:
The desired data of the desired data is stored about the prescribed line -specific approximation data for various score patterns required to make a line approximation of the desired dialogue While sequentially searching for each contour pixel, each end point of line segmentation is determined by referring to the line segment approximation data based on the connection relationship between each pixel, and each line segment approximation of the contour pixel string is sequentially performed. The present invention comprises a search/line segmentation means for performing a search and line segmentation, and a vertex data memory that stores data on each end point of the line segmentation and outputs the data as each vertex data of line segment approximation.

なお、その原理を更に詳しく具体的に以下で説
明する。
The principle will be explained in more detail below.

まず、画素列を線分化するとは、その各画素の
中心点を代表点として、上記画素列に代るべき代
表点列を線分化することである。ここで、各画素
は、例えば、画像を細かく正方区画に分けた1つ
の領域を表わすもので、その中心点の配列は、上
下左右に等間隔に並んだものである。
First, dividing a pixel string into lines means dividing into lines a representative point string to replace the pixel string, using the center point of each pixel as a representative point. Here, each pixel represents, for example, one area in which the image is finely divided into square sections, and the center points thereof are arranged at equal intervals vertically and horizontally.

このような特殊な位置関係にある点群のうち、
第1図の指定画素に対する近傍画素関係図に示す
ように、同図a,bの4近傍、8近傍の接続関係
を保つた点列を線分近似することを考えると、線
分近似の対象となる点列の連結パターン数は、線
分の最大長の制限を設けるならば、有限数であ
る。
Among the points in such a special positional relationship,
As shown in the neighboring pixel relationship diagram for a specified pixel in Figure 1, if we consider line segment approximation of a point sequence that maintains the connection relationship of the 4 neighbors and 8 neighbors shown in a and b in the figure, the object of line segment approximation is The number of connected patterns of point sequences is a finite number if a limit is placed on the maximum length of a line segment.

したがつて、本発明は、起こりうる全点列パタ
ーンを前もつてデータテーブルに効率よく記憶し
ておくことにより、線分近似処理において、近似
誤差を1点ごとに計算する代りに、データテーブ
ルの検索処理に置き換え、同等の結果を高速で得
るようにしたものである。
Therefore, in the present invention, by efficiently storing all possible point sequence patterns in a data table in advance, in line segment approximation processing, the approximation error can be stored in the data table instead of calculating the approximation error for each point. This search process was replaced with the previous search process in order to obtain equivalent results at high speed.

このデータテーブルには、画像上の指定領域の
輪郭を探索するときに次の輪郭画素を最も早く見
つけることができるように、探索アドレス(相対
アドレス)データも記憶しておき、輪郭線分化処
理の高速化を図つている。
This data table also stores search address (relative address) data so that the next contour pixel can be found as quickly as possible when searching for the contour of a specified area on the image. We are trying to speed it up.

次に、第2図は、本発明に係る線分近似データ
の形式図であつて、4連結を基準にして輪郭を探
索する場合の例である。
Next, FIG. 2 is a format diagram of line segment approximation data according to the present invention, and is an example of a case where a contour is searched based on 4-connection.

線分近似データは、第2図a,bに示す形式の
第1,第2データから構成される。
The line segment approximation data is composed of first and second data in the format shown in FIG. 2a and b.

第1データについて説明する。線分近似処理に
おいて、第1番画素に対して第2番画素が存在す
る位置関係は、上、右横、下、左横の4パターン
であり、その4パターンに対するデータを順番に
配列する。その順番は、第1番画素の周囲を右回
りに第2番画素を探索することにしている。各パ
ターンのデータは、2項目ずつある。例えば、
IA1は第1番画素に対する第2番画素(真上に
位置するもの)の画像上での相対アドレスを示
し、IP1は第3番画素の線分近似処理に関する
データが格納されているエリアの先頭アドレスを
示す。すなわち、次に述べる第2データの先頭ア
ドレスを示す。
The first data will be explained. In the line segment approximation process, the positional relationship of the second pixel with respect to the first pixel is four patterns: top, right lateral, bottom, and left lateral, and data for these four patterns are arranged in order. The order is to search for the second pixel clockwise around the first pixel. There are two items of data for each pattern. for example,
IA1 indicates the relative address on the image of the second pixel (located directly above) with respect to the first pixel, and IP1 is the beginning of the area where data related to line segment approximation processing for the third pixel is stored. Indicates address. That is, it indicates the start address of second data to be described next.

第2データについて説明する。このデータは、
線分化における第3番目以後の輪郭画素に1つず
つ対応して作成される。例えば、線分化を行う第
L番目の輪郭画素に対するデータの場合について
説明する。SA1は画像上における第(L−1)
番目の輪郭画素に対する第L番目の輪郭画素の候
補画素の相対アドレスを示す。このアドレスに従
つて候補画素を調べ、もし輪郭画素でなければ、
続いてSA2,SA3,SA4と順次に同様な調査
をする。SA3のアドレスが示す画素が輪郭画素
と決定したら、SP3の値は、第L番目の輪郭画
素の線分化情報を示す。
The second data will be explained. This data is
Each contour pixel is created corresponding to the third and subsequent contour pixels in the line segmentation. For example, the case of data for the L-th contour pixel that undergoes line segmentation will be described. SA1 is the (L-1)th on the image
The relative address of the candidate pixel of the Lth contour pixel with respect to the contour pixel of the Lth contour is shown. Check the candidate pixel according to this address, and if it is not a contour pixel,
Next, conduct similar investigations in SA2, SA3, and SA4. When the pixel indicated by the address of SA3 is determined to be a contour pixel, the value of SP3 indicates line division information of the L-th contour pixel.

すなわち、SP3の値が第1データへのポイン
タを示す場合は、第L番目の画素を含んでいて
は、もはや線分化が不可能であることを表わし、
第(L−1)番目の画素までの線分化処理を行う
ように決定するための判定値となる。また、SP
3の値が再び第2データへのポインタを示す場合
は、現在の第L番目の画素を含んでも線分化が可
能であることを表わし、続いてポインタが指し示
すデータを用いて、第(L+1)番目の輪郭画素
を探索する処理を継続するための判定値となる。
In other words, when the value of SP3 indicates a pointer to the first data, it indicates that line segmentation is no longer possible if the Lth pixel is included.
This is a determination value for determining to perform line segmentation processing up to the (L-1)th pixel. Also, SP
If the value 3 indicates the pointer to the second data again, it means that line division is possible even if the current Lth pixel is included, and then using the data pointed to by the pointer, the (L+1)th pixel is This is the determination value for continuing the process of searching for the th contour pixel.

このように、第2データは、時計回りに一周の
探索ができるように、4つの方向に対する探索ア
ドレスデータ線分化判定値データ、および次の処
理データへのポインタを意味するデータの4組を
1単位として並べたものである。
In this way, the second data includes four sets of search address data, line division judgment value data, and data indicating a pointer to the next processing data in four directions so that one round of the search can be performed in a clockwise direction. They are arranged as units.

上記の2形式の第1,第2データを起りうる全
パターンについて網羅するようにデータフアイル
として構成する。なお、各データ単位における4
つの方向のデータの組の配列順序は、時計回りに
するという原則を保つたまま、最も検索数が少な
くなるようにするものである。
The above two types of first and second data are configured as a data file so as to cover all possible patterns. In addition, 4 in each data unit
The arrangement order of the data sets in the two directions is such that the number of searches is minimized while maintaining the clockwise principle.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図に基づいて説明す
る。
Embodiments of the present invention will be described below based on the drawings.

第3図は、本発明に係る輪郭画素列線分化装置
の一実施例のブロツク図、第4図は、その輪郭画
素探索部の一実施例のブロツク図、第5図は、同
線分近似処理部の一実施例のブロツク図である。
FIG. 3 is a block diagram of an embodiment of the contour pixel column line segmentation device according to the present invention, FIG. 4 is a block diagram of an embodiment of the contour pixel search section, and FIG. 5 is a block diagram of the same line segment approximation FIG. 3 is a block diagram of an embodiment of a processing section.

ここで、100は、下記の各部の処理の流れを
制御する制御部、200は、線分近似データメモ
リ、300は、画像メモリ、400は、探索・線
分化手段に係る輪郭画素探索部、40は、その画
素読取り回路、402は、同比較回路、403
は、同輪郭画素判定回路、404は、同判定値登
録回路、405は、同輪郭画素記録回路、406
は、同画素読出し用のアドレス生成回路、500
も、探索・線分化手段に係る線分近似処理部、5
01は、その輪郭探索用のアドレス読取り回路、
502は、同アドレス更新回路、503は、同線
分近似データの読出し回路、504は、同判別回
路、505は、同終点処理回路、600は、線分
化情報メモリ、700は、頂点データメモリであ
る。
Here, 100 is a control unit that controls the processing flow of each unit described below, 200 is a line segment approximation data memory, 300 is an image memory, 400 is a contour pixel search unit related to the search/line differentiation means, 40 is its pixel reading circuit, 402 is its comparison circuit, 403
is the same contour pixel determination circuit, 404 is the same judgment value registration circuit, 405 is the same contour pixel recording circuit, 406
is an address generation circuit for reading the same pixel, 500
Also, a line segment approximation processing unit related to the search/line segmentation means, 5
01 is an address reading circuit for contour searching;
502 is a same address update circuit, 503 is a same line segment approximate data reading circuit, 504 is a same discrimination circuit, 505 is a same end point processing circuit, 600 is a line division information memory, and 700 is a vertex data memory. be.

最初に、装置全体の処理・動作について第3図
に基づいて説明する。
First, the processing and operation of the entire apparatus will be explained based on FIG. 3.

入力INからのデイジタル画像は、まず画像メ
モリ300に記憶される。
The digital image from input IN is first stored in image memory 300.

また、前述の第2図の線分近似データは、前も
つて、線分近似データメモリ200に記憶させて
おく。
The line segment approximation data shown in FIG. 2 described above is previously stored in the line segment approximation data memory 200.

画像上のどの領域の輪郭を処理対象とするかを
指示する情報STが線分化情報メモリ600へ入
力されることにより、本装置の処理が開始され
る。この領域を指示する情報STは、例えば、画
像上を左上端からラスター方向に領域探索を行つ
たとき、最初に見つかる画素のアドレスを領域代
表位置として指示することも考えられる。この領
域代表点が輪郭追跡の始点となり、また領域の外
周を一周追跡して終点ともなる。さらに、その他
の情報として対象領域を他の領域と分ける閾値が
記録される。
The processing of this apparatus is started by inputting information ST indicating which region on the image is to be processed into the outline into the line segmentation information memory 600. The information ST indicating this area may indicate, for example, the address of the first pixel found when performing an area search in the raster direction from the upper left end of the image as the area representative position. This area representative point becomes the starting point of contour tracing, and also becomes the ending point after tracing around the outer periphery of the area. Furthermore, a threshold value that separates the target area from other areas is recorded as other information.

輪郭画素探索部400は、領域代表位置の画素
の値を画像メモリ300から読み込み、対象領域
内の各画素の値が閾値に対して大小いずれの側に
あるかを判定して、その結果を線分化情報メモリ
600に記録しておく。
The contour pixel search unit 400 reads the value of the pixel at the region representative position from the image memory 300, determines whether the value of each pixel in the target region is on the larger or smaller side with respect to the threshold value, and displays the result as a line. It is recorded in the differentiation information memory 600.

続いて、輪郭画素(代表位置の画素)の周囲
に、次の輪郭画素の候補画素を選択して、その画
素の値と閾値との比較を行つて対象領域の画素か
どうか判定する。この輪郭画素の候補の選択は、
例えば4連結(4近傍)を連結の基準とするとき
は上下左右の4画素が対象となる。8連結(8近
傍)のときは、周囲8画素が対象となる。
Next, a candidate pixel for the next contour pixel is selected around the contour pixel (pixel at the representative position), and the value of the selected pixel is compared with a threshold value to determine whether the pixel is in the target area. The selection of candidates for this contour pixel is
For example, when 4-connection (4-neighborhood) is used as the connection standard, 4 pixels on the upper, lower, left, and right sides are targeted. In the case of 8-connection (8-neighborhood), the surrounding 8 pixels are targeted.

これらを、順次に時計回りに、1つ前の輪郭画
素を始点として、その次の画素から候補として選
択する。選択した候補画素が領域内の画素でなけ
れば、次の候補を選択する。
These are sequentially selected as candidates in a clockwise direction, starting from the previous contour pixel and starting from the next pixel. If the selected candidate pixel is not within the region, the next candidate is selected.

この選択処理は、線分近似処理部500が線分
近似データメモリ200からの次の探索アドレス
(相対アドレス)を読み込み、これを輪郭画素探
索部400へ受け渡すことによつて行なわれる。
もし領域内の画素であると判定したら、これを次
の輪郭画素と決定する。決定した輪郭画素のアド
レスを探索時点のアドレスとして、線分化情報メ
モリ600へ記録する。このアドレスを中心とし
て次の輪郭画素を探す。
This selection process is performed by the line segment approximation processing unit 500 reading the next search address (relative address) from the line segment approximation data memory 200 and passing this to the contour pixel search unit 400.
If it is determined that the pixel is within the area, this is determined to be the next contour pixel. The address of the determined contour pixel is recorded in the line segmentation information memory 600 as the address at the time of the search. Search for the next contour pixel around this address.

輪郭画素のアドレスを記録するとともに、1つ
前の輪郭画素と新たに決定した現在の輪郭画素の
位置関係の情報(例えば上、下、左、右)すなわ
ち接続関係が線分近似処理部500へ渡される。
In addition to recording the address of the contour pixel, information on the positional relationship (for example, top, bottom, left, right) between the previous contour pixel and the newly determined current contour pixel, that is, the connection relationship, is sent to the line segment approximation processing unit 500. passed on.

線分近似処理部500は、次々と送られてくる
輪郭画素の点列を線分で近似して、その近似線分
の各端点について頂点列として出力する処理を行
う。
The line segment approximation processing unit 500 performs a process of approximating a series of points of contour pixels sent one after another with a line segment, and outputting each end point of the approximated line segment as a series of vertices.

この処理は、1本の線分化の始点と定めた輪郭
画素に続く第2,第3,……の輪郭画素列間の相
互の位置関係を、例えば、第2番目の画素は始点
の画素の右隣り、第3番目の画素は第2番目の画
素の上、というような表現形式にして、その情報
と線分近似データとを順次に照合して行われる。
This process determines the mutual positional relationship between the second, third, ... contour pixel rows following the contour pixel determined as the starting point of one line segmentation, for example, the second pixel is the starting point pixel. The third pixel on the right is expressed as above the second pixel, and this information is sequentially compared with the line segment approximation data.

線分近似データは、前述したように、例えば、
第1番目の画素から第N番目の画素までの画素列
(点列)を線分で近似することができた場合にお
いて、第(N+1)番目の画素が第N番目の画素
の右隣りか上に位置しているときは第1番目の画
素から第(N+1)番目の画素までの画素列は再
び同一線分で近似できるが、左隣か下に位置して
いるときは同一線分では近似できない、という情
報を起りうる全画素列パターン(Nは最大値M以
下とする)について線分近似データメモリ200
に前もつて格納(記憶)しておくデータである。
As mentioned above, the line segment approximation data is, for example,
When the pixel string (dot string) from the first pixel to the Nth pixel can be approximated by a line segment, the (N+1)th pixel is to the right of or above the Nth pixel. , the pixel row from the 1st pixel to the (N+1)th pixel can be approximated by the same line segment again, but if it is located to the left or below, the pixel row from the 1st pixel to the (N+1)th pixel can be approximated by the same line segment. The line segment approximation data memory 200 contains information that the information is not possible for all possible pixel column patterns (N is less than or equal to the maximum value M).
This is data that is stored (memorized) in advance.

線分近似処理部500は、1つの輪郭画素情報
が輪郭画素探索部400から入力されたとき、そ
の画素が何番目の画素であり、それまで入力され
て来た画素列のパターンに応じ、次には線分近似
データメモリ200上のどこのデータを見ればよ
いか、1つ前の画素処理の結果によつて判断す
る。
When one piece of contour pixel information is input from the contour pixel search unit 400, the line segment approximation processing unit 500 determines the next pixel according to the pixel number of that pixel and the pattern of the pixel strings input so far. In this case, it is determined which data in the line segment approximation data memory 200 should be looked at based on the result of the previous pixel processing.

例えば、N番目の輪郭画素が見つかり、その情
報が入力されると、線分近似処理部500は、す
でに第(N−1)番目の画素を処理したときに求
めて記憶しておいた線分近似データ探索アドレス
を線分化情報メモリ600から読み出し、そのア
ドレスをもとに線分近似データメモリ200上の
データを読み込む。
For example, when the Nth contour pixel is found and its information is input, the line segment approximation processing unit 500 processes the line segment that has already been obtained and stored when processing the (N-1)th pixel. The approximate data search address is read from the line segment information memory 600, and data on the line segment approximate data memory 200 is read based on the address.

このデータは、第N番目の輪郭画素を含んだ画
素列が線分で近似できるか否かを示すとともに、
もし線分で近似できる場合は、次に(N+1)番
目の輪郭画素の探索アドレスおよび線分化に関す
るデータが格納されているエリアの先頭アドレス
を示す。
This data indicates whether the pixel string including the Nth contour pixel can be approximated by a line segment, and
If it can be approximated by a line segment, then the search address of the (N+1)th contour pixel and the start address of the area where data related to line segmentation are stored are shown.

第N番目の輪郭画素までを含むと線分で近似で
きなくなる場合は、第(N−1)番目までの画素
列を線分で近似する。すなわち、第(N−1)番
画素のアドレスを線分の終点(頂点)座標として
頂点データメモリ700に記録する。次いで、第
(N−1)番画素を再び次の線分近似の始点(第
1画素)と決定し、最後に入力した第N番画素を
第2番画素として、次に入力される輪郭画素(第
3番画素)に関する探索アドレスおよび線分化デ
ータが格納してあるエリアの先頭アドレスを、線
分化情報メモリ600に記録する。
If approximation with a line segment is impossible if up to the Nth contour pixel is included, the pixel row up to the (N-1)th pixel is approximated with a line segment. That is, the address of the (N-1)th pixel is recorded in the vertex data memory 700 as the end point (apex) coordinates of the line segment. Next, the (N-1)th pixel is again determined as the starting point (first pixel) of the next line segment approximation, and the next inputted contour pixel is set as the last inputted Nth pixel as the second pixel. The search address regarding (the third pixel) and the start address of the area where the line segmentation data are stored are recorded in the line segmentation information memory 600.

第N番目の輪郭画素を含んでも線分化が可能で
ある場合は、次に入力する画素に関する探索アド
レスおよび線分化データが格納してあるエリアの
先頭アドレスを線分化情報メモリ600に記録す
る。
If line segmentation is possible even if the Nth contour pixel is included, the search address for the next input pixel and the start address of the area where line segmentation data is stored are recorded in the line segmentation information memory 600.

続いて、次の輪郭画素の探索アドレスを線分近
似データメモリ200から読み込み、輪郭画素探
索部400へ受け渡して、待機状態となる。線分
近似処理部500が処理を終了して待機状態にな
つたことを確認してから、輪郭画素探索部400
は、次の輪郭画素を探索する処理を開始する。
Subsequently, the search address of the next contour pixel is read from the line segment approximation data memory 200, is passed to the contour pixel search section 400, and enters a standby state. After confirming that the line segment approximation processing unit 500 has finished processing and entered the standby state, the contour pixel search unit 400
starts the process of searching for the next contour pixel.

以上のようにして画素上の指定領域の輪郭画素
を1つずつ探索しながら、同時に線分化データテ
ーブルを検索して、線分化頂点データを出力す
る。処理の終了は、連続して探索された2つの輪
郭画素(第S番輪郭画素、第(S+1)番輪郭画
素)が、輪郭探索処理開始画素と2番目の輪郭画
素に一致したことを、輪郭画素探索部400にお
いて確認した後に行われる。
As described above, while searching the outline pixels of the specified area on the pixel one by one, the line segmentation data table is searched at the same time, and line segmentation apex data is output. At the end of the process, it is confirmed that the two continuously searched contour pixels (the S-th contour pixel and the (S+1)-th contour pixel) match the contour search process start pixel and the second contour pixel. This is performed after confirmation in the pixel search unit 400.

次に、輪郭画素探索部400、線分近似処理部
500の動作・処理を更に詳細に説明する。
Next, the operations and processing of the contour pixel search section 400 and the line segment approximation processing section 500 will be explained in more detail.

第4図に基づいて輪郭画素探索部400の説明
をする。
The contour pixel search unit 400 will be explained based on FIG.

画素読出し用のアドレス生成回路406におい
て、1つ前の輪郭画素のアドレス418を読込
み、これに線分近似処理部500から送られてき
た探索アドレス(相対アドレス)416を加えて
画素読出しアドレス419を出力する。
The address generation circuit 406 for pixel readout reads the address 418 of the previous contour pixel, adds the search address (relative address) 416 sent from the line segment approximation processing unit 500 to this, and generates the pixel readout address 419. Output.

これを画素読取り回路40が入力して、画像メ
モリ300から対応画素値411を読込み、次の
比較回路402へ出力する。
The pixel reading circuit 40 inputs this, reads the corresponding pixel value 411 from the image memory 300, and outputs it to the next comparison circuit 402.

比較回路402は、画素値411と閾値412
とを比較して、2値化データ420を出力する。
輪郭画素判定回路403は、この2値化データ4
20と領域判定値413とを照合して、輪郭画素
判定フラグ417を線分近似処理部500へ出力
するとともに、輪郭画素と判定されたときは、ア
ドレス登録指示フラグ414をも出力する。輪郭
画素記録回路405は、このフラグ指示によつて
上記アドレス419を輪郭画素アドレス415に
書き換えて線分化情報メモリ600へ記録する。
The comparison circuit 402 compares the pixel value 411 and the threshold value 412.
and outputs binarized data 420.
The contour pixel determination circuit 403 uses this binary data 4
20 and the area determination value 413, and outputs a contour pixel determination flag 417 to the line segment approximation processing unit 500, and also outputs an address registration instruction flag 414 if it is determined to be a contour pixel. In response to this flag instruction, the contour pixel recording circuit 405 rewrites the address 419 to the contour pixel address 415 and records it in the line segmentation information memory 600.

領域画素判定値登録回路404は、領域の第1
番目の輪郭画素の2値化データ420を入力し
て、その領域判定値421を線分化情報メモリ6
00へ記憶する。
The area pixel judgment value registration circuit 404 registers the first pixel of the area.
The binarized data 420 of the th contour pixel is input, and the area determination value 421 is stored in the line segmentation information memory 6.
Store to 00.

第5図に基づいて線分近似処理部500の説明
をする。
The line segment approximation processing section 500 will be explained based on FIG.

輪郭探索用のアドレス読取り回路501は、線
分化情報メモリ600からデータ検索アドレス5
11が入力されると、これに従つて線分近似デー
タメモリ200から次の輪郭画素を探索するため
の探索アドレス(相対アドレス)512を読み込
み、これを輪郭画素探索部400へ同アドレス情
報516(第4図では416)として送るととも
に、アドレス更新フラグ513を出力する。
The address reading circuit 501 for contour search reads the data search address 5 from the line segmentation information memory 600.
11 is input, the search address (relative address) 512 for searching the next contour pixel is read from the line segment approximation data memory 200 in accordance with this, and this address information 516 ( In FIG. 4, it is sent as 416) and an address update flag 513 is output.

アドレス更新回路502は、このフラグを受取
つて先に受け取つたデータ検索アドレス511を
次のデータ検索アドレスに更新した更新アドレス
514を線分化情報メモリ600へ出力する。
The address update circuit 502 receives this flag and outputs an update address 514 that updates the previously received data search address 511 to the next data search address to the line segmentation information memory 600.

新しい輪郭画素が見つかつた旨の判定フラグ5
17(第4図では417)が輪郭画素探索部40
0から送られてくると、線分近似データの読出し
回路503は、データ検索アドレス515に従つ
て、線分近似データメモリ200から線分近似デ
ータ518を読み出す。
Determination flag 5 indicating that a new contour pixel has been found
17 (417 in FIG. 4) is the contour pixel search unit 40
0, the line segment approximation data reading circuit 503 reads line segment approximation data 518 from the line segment approximation data memory 200 in accordance with the data search address 515.

判別回路504は、このデータを判別し、線分
化終点の確認が得られると、終点処理指示フラグ
519を送出し、終点処理回路505は、終点ア
ドレス520を線分化情報メモリ600から読み
込み、1線分化の頂点データ52に変換して頂点
データメモリ700へ記録する。また、次の線分
化データ検索アドレス522を線分化情報メモリ
600へ記録する。判別回路504は、線分化終
点とならない場合は、次の輪郭画素探索アドレス
データが格納されているエリアのアドレス523
を出力する。
The discrimination circuit 504 discriminates this data, and when the line division end point is confirmed, it sends out the end point processing instruction flag 519, and the end point processing circuit 505 reads the end point address 520 from the line division information memory 600, It is converted into differentiation apex data 52 and recorded in the apex data memory 700. Further, the next line segmentation data search address 522 is recorded in the line segmentation information memory 600. If the line division end point is not reached, the determination circuit 504 determines the address 523 of the area where the next contour pixel search address data is stored.
Output.

以上のようにして、画像上の指定領域の輪郭を
線分で近似して多角形表現のデータを出力する
際、その都度、領域の追跡処理と線分近似計算と
を行なうのではなく、あらかじめパターン化した
線分近似データを記憶しておくことにより、効率
の良いデータ検索処理によつて高速に線分化処理
を行なうことができる。
As described above, when approximating the outline of a specified area on an image with line segments and outputting polygonal representation data, instead of performing area tracking processing and line segment approximation calculation each time, By storing patterned line segment approximation data, line segmentation processing can be performed at high speed through efficient data search processing.

〔発明の効果〕〔Effect of the invention〕

以上、詳細に説明したように、本発明によれ
ば、所定の接続関係を保つて連続する輪郭画素列
について、その線分化処理を高速で行う輪郭画素
列線分化装置を実現することができるので、ロボ
ツト等に視覚機能を追加し、自動作業工程の機能
向上、効率向上、信頼性向上に顕著な効果が得ら
れる。
As described above in detail, according to the present invention, it is possible to realize a contour pixel line line differentiation device that performs line separation processing at high speed for continuous contour pixel strings while maintaining a predetermined connection relationship. By adding visual functions to robots, robots, etc., significant effects can be obtained in improving the functionality, efficiency, and reliability of automated work processes.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は、指定画素に対する近傍画素関係図、
第2図は、本発明に係る線分近似データの形式
図、第3図は、同じく輪郭画素列線分化装置の一
実施例のブロツク図、第4図は、その輪郭画素探
索部の一実施例のブロツク図、第5図は、同線分
近似処理部の一実施例のブロツク図である。 100…制御部、200…線分近似データメモ
リ、300…画像メモリ、400…輪郭画素探索
部、500…線分近似処理部、600…線分化情
報メモリ、600…頂点データメモリ。
FIG. 1 is a diagram showing the relationship between neighboring pixels for a designated pixel;
FIG. 2 is a format diagram of line segment approximation data according to the present invention, FIG. 3 is a block diagram of an embodiment of the contour pixel string line differentiation device, and FIG. 4 is an implementation of the contour pixel search section. Example Block Diagram FIG. 5 is a block diagram of one embodiment of the same line segment approximation processing section. 100... Control unit, 200... Line segment approximation data memory, 300... Image memory, 400... Contour pixel search unit, 500... Line segment approximation processing unit, 600... Line segmentation information memory, 600... Vertex data memory.

Claims (1)

【特許請求の範囲】 1 デイジタル画像の輪郭画素列について線分近
似をする装置において、近似線分として認定され
る各種の点列パターンごに各点列パターンの1部
として次に連なるべき条件を満たした画素のパタ
ーンを予め記憶した線分近似データメモリと、デ
イジタル画像の或る輪郭外周について或る近似線
分の終点の画素ごとに該画素に連なる輪郭画素を
上記データメモリを参照して順次に決定して一連
の近似線分を得る手段と、該手段によつて得た複
数の近似線分の各終点を各近似線分の頂点データ
として記憶するデータメモリを有することを特徴
とする輪郭画素列線分化装置。 2 上記一連の近似線分を得る手段は、上記終点
の画素に連なる輪郭画素となるべき候補画素を上
記データメモリを参照して判定し、該候補画素か
ら所定の閾値により上記連なる輪郭画素を選定す
る手段であることを特徴とする第1項記載の輪郭
画素列線分化装置。 3 上記一連の近似線分を得る手段は、上記終点
の画素に連なつて該近似線分の一部となるべき輪
郭画素がなくなつたとき、該近似線分が完成した
ものとして該終点を上記頂点データメモリに登録
し、別の近似線分を探索する手段であることを特
徴とする第1項記載の輪郭画素列線分化装置。
[Claims] 1. In a device that performs line segment approximation for a contour pixel sequence of a digital image, for each type of point sequence pattern recognized as an approximate line segment, the following conditions are determined as part of each point sequence pattern. A line segment approximation data memory in which a pattern of satisfied pixels is stored in advance, and contour pixels connected to the pixel for each pixel at the end point of a certain approximation line segment on a certain contour outer periphery of a digital image are sequentially calculated by referring to the data memory. and a data memory for storing end points of each of the plurality of approximate line segments obtained by the means as apex data of each approximate line segment. Pixel column line differentiation device. 2. The means for obtaining the series of approximate line segments refers to the data memory to determine candidate pixels that should become contour pixels connected to the end point pixel, and selects the continuous contour pixels from the candidate pixels according to a predetermined threshold value. 2. The contour pixel column line segmentation device according to claim 1, wherein the device is a means for segmenting contour pixel columns and lines. 3. The means for obtaining the series of approximate line segments is such that when there are no contour pixels that are connected to the pixels at the end point and should become part of the approximate line segment, the approximate line segment is considered to be complete and the end point is determined. 2. The contour pixel column line segmentation device according to claim 1, characterized in that the device registers the vertex data in the vertex data memory and searches for another approximate line segment.
JP58027519A 1983-02-23 1983-02-23 Segmenting device of contour picture element train Granted JPS59154578A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58027519A JPS59154578A (en) 1983-02-23 1983-02-23 Segmenting device of contour picture element train
US06/582,555 US4783829A (en) 1983-02-23 1984-02-22 Pattern recognition apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58027519A JPS59154578A (en) 1983-02-23 1983-02-23 Segmenting device of contour picture element train

Publications (2)

Publication Number Publication Date
JPS59154578A JPS59154578A (en) 1984-09-03
JPH024949B2 true JPH024949B2 (en) 1990-01-31

Family

ID=12223370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58027519A Granted JPS59154578A (en) 1983-02-23 1983-02-23 Segmenting device of contour picture element train

Country Status (1)

Country Link
JP (1) JPS59154578A (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2279120A1 (en) * 1974-07-16 1976-02-13 Cables De Lyon Geoffroy Delore COATING FOR OPTICAL FIBERS

Also Published As

Publication number Publication date
JPS59154578A (en) 1984-09-03

Similar Documents

Publication Publication Date Title
JPH0134498B2 (en)
JPH023874A (en) Method of determining and storing important data for road network map stored in data memory
JPH024949B2 (en)
US4905144A (en) High speed path optimization co-processor
JP2878194B2 (en) Partial erasure and partial detection method of image data
CN115511690B (en) Image processing method and image processing chip
JPH0634233B2 (en) Hierarchical structural template matching method
JP2995650B2 (en) Ruled line removal method
JP3305395B2 (en) Figure division device
JPH05257989A (en) Moving image retrieval supporting system
JP2838556B2 (en) Image processing device
JP2661377B2 (en) Hierarchical structure display processing method
JPS6349985A (en) Tracking and processing method for contour point
JP2814593B2 (en) Production schedule creation device
JPH05334378A (en) Graphic processing apparatus and graphic element processing method
JP2001216468A (en) Character recognizing device
JPH07109627B2 (en) Closed area automatic recognition device
JPH0326876B2 (en)
JPH0312348B2 (en)
JPH0452145B2 (en)
JPH0512360A (en) Cad device
JPH0525329B2 (en)
JPH06119157A (en) Program conversion method
JPS63128484A (en) Image processing device
JPH06274617A (en) Median filter processing method