JPH01100679A - Contour extracting method - Google Patents

Contour extracting method

Info

Publication number
JPH01100679A
JPH01100679A JP62257142A JP25714287A JPH01100679A JP H01100679 A JPH01100679 A JP H01100679A JP 62257142 A JP62257142 A JP 62257142A JP 25714287 A JP25714287 A JP 25714287A JP H01100679 A JPH01100679 A JP H01100679A
Authority
JP
Japan
Prior art keywords
cell
pixel
contour
buffer
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62257142A
Other languages
Japanese (ja)
Inventor
Susumu Tsuhara
津原 進
Masao Yamamoto
雅夫 山本
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 JP62257142A priority Critical patent/JPH01100679A/en
Publication of JPH01100679A publication Critical patent/JPH01100679A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To process at high speed by taking out three horizontal picture elements consisting of a noticed picture element and both the side adjacent picture elements as a bit train and similarly converting three vertical picture elements to a horizontal successive bit train and taking out the train. CONSTITUTION:When an original cell input part 20 is activated by a control part 10, a cell divided into grid forms in a transfer origin part image 120 is transferred to an original cell buffer 140. Then, an original cell rotating part 30 is activated to rotate the original cell held by the buffer 140 by 90 deg. rightward and transfer to a cell buffer 150 after the rotation. Then, an original cell control part extraction contour part 40 is activated to output the horizontal and the vertical three picture elements as the bit train from the buffers 140, 150, refer to a table memory 180, obtain an target contour picture element value and output to a contour cell buffer 200. Then, a counter cell output part 50 is activated to transfer the contents of a buffer 200 to a prescribed contour cell position in a transfer destination memory 210. Thereby, a bit train access for taking out plural bits once can be attained to process at high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、スキャナなどで読み取られ、計算機。[Detailed description of the invention] [Industrial application field] The present invention can be read by a scanner or the like and can be read by a computer.

メモリに保持されるイメージデータ(文書中に見。Image data held in memory (seen in a document).

られるイラスト、印影9手書き文字、写真など)。illustrations, stamps, 9 handwritten letters, photographs, etc.).

の輪郭を抽出する方法に関する。       15〔
従来の技術〕 従来の装置は、時開BE 60−” 1osos1号公
報に記。
Concerning a method for extracting the contours of. 15 [
Prior Art] A conventional device is described in Jikai BE 60-” 1osos No. 1.

載のように、原イメージの各画素の濃度を画素と。As shown above, the density of each pixel in the original image is called a pixel.

とに求めるものでア夛、この種の従来装置は、メモリの
ビット・アクセスを必要とする。    2゜〔発明が
解決しようとする問題点〕 上記従来技術は、ビット・アクセスの高速化に。
Additionally, prior art devices of this type require bit accesses of the memory. 2゜ [Problems to be solved by the invention] The above-mentioned conventional technology is aimed at speeding up bit access.

ついて配慮がされておらず、多大の処理時間を要・する
という問題があった。
There was a problem that no consideration was given to this, and that a large amount of processing time was required.

本発明の目的は、上記ビット・アクセスでなく5゜ビッ
ト列アクセスによシ、高速な輪郭抽出方法を。
The object of the present invention is to provide a high-speed contour extraction method that uses 5° bit string access instead of the bit access described above.

提供することにある。It is about providing.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、原イメージを格子状に分割して得。 The above purpose is obtained by dividing the original image into a grid.

られる小矩形であるセルを保持する原セル・バラ1,1
フアと、セルを90@回転したセルを保持する回転後。
Original cell rose 1, 1 that holds a cell that is a small rectangle
After rotation, holding the cell rotated by 90 @.

セル・バッファと、上記原セル・バッファの内容。cell buffer and the contents of the original cell buffer above.

を90″回転して1回転後セル・バッファに転送する、
セル回転手段と、原セル・バッファ内の特定のビ。
Rotate 90″ and transfer it to the cell buffer after one rotation,
Cell rotation means and specific bits within the original cell buffer.

ット列を一度に連続して取)出す第一のビット列+5 取り出し手段と1回転後セル・バッファ内の特定。1st bit string to extract consecutive bit strings at once + 5 Retrieval means and identification within the cell buffer after one revolution.

のビット列を一度に連続して取り出す第二のビット列数
シ出し手段とを設けることによシ達成される。
This is achieved by providing a second bit string number extraction means for successively extracting the bit strings at once.

〔作用〕[Effect]

輪郭抽出には、水平三画素(注目画素の左隣接・画素、
注目画素、注目画素の右隣接画素)と垂直三画素(注目
画素の下隣接画素、注目画素、注目・画素の上隣接画素
)へのアクセスが必要であるが、。
For contour extraction, three horizontal pixels (the left adjacent pixel of the pixel of interest,
It is necessary to access the pixel of interest, the pixel adjacent to the right of the pixel of interest) and the three vertical pixels (the pixel adjacent to the bottom of the pixel of interest, the pixel of interest, and the pixel adjacent to the top of the pixel of interest).

上記水平三画素は、上記第一のビット列数シ出し5手段
によシ、−度に取り出すことができる。また、。
The three horizontal pixels can be extracted at a time by the first bit string number extraction means. Also,.

上記セル回転手段は、垂直方向に連続するビット。The cell rotation means includes bits that are continuous in the vertical direction.

列を水平方向に連続するビット列に変換するので、。Since it converts a column into a horizontally continuous bit string.

上記垂直二画素は、上記第二のビット列数〕出し。The above two vertical pixels are the second bit string number].

手段によ〕、−度に取り出すことができる。従う、。[by means], it can be taken out at once. follow,.

て、ビット列アクセスができ、処理が高速化され。This allows bit string access and speeds up processing.

る。Ru.

〔実施例〕〔Example〕

以下1本発明の一実施例を第1図により説明す。 An embodiment of the present invention will be described below with reference to FIG.

る。第1図は本発明による一実施例の全体構成を、5示
すブロック図である。
Ru. FIG. 1 is a block diagram showing the overall configuration of an embodiment according to the present invention.

第1図において、転送先メモリ110には、イメ。In FIG. 1, the transfer destination memory 110 contains images.

−ジ・データが保持されている。上記転送先メモ。- The data is retained. Transfer destination memo above.

す110内の一部分のイメージ・データ120の輪郭を
抽出して、転送先メモリ210内の一部分へ転送2゜、
3 。
extracting the outline of a portion of the image data 120 in the memory 210 and transferring it to a portion of the destination memory 210;
3.

するのであるが、この時、下記パラメータを指定・する
必要がある。
However, at this time, it is necessary to specify the following parameters.

■ sadτ:転送先部分イメージ先頭アドレス 。■ sadτ: Transfer destination partial image start address.

■ zw  :         、   横軸(バイ
ト単位、)■ zskpl :転速先アドレス・スキッ
プ長(パイ5ト単位) ■ #A =転送先部分イメージ高さ(ラスタ単。
■ zw: Horizontal axis (in bytes) ■ zskpl: Transfer destination address/skip length (in 5 totes) ■ #A = Transfer destination partial image height (raster unit).

位) ■ dadr :部分イメージ(抽出した輪郭)転送。position) ■ dadr: Partial image (extracted contour) transfer.

先先頭アドレス         1゜■ dzkpl
 :転送先アドレス・スキップ長(パイ。
Starting address 1゜■ dzkpl
: Transfer destination address/skip length (pi.

ト単位) 第2図(6)、 (A) K 、上記各パラメータの説
明図を。
Figure 2 (6) (A) K is an explanatory diagram of each of the above parameters.

示す。show.

部分イメージ120の輪郭抽出は、これを横10ド、。The outline of the partial image 120 is extracted by 10 degrees horizontally.

ブト。縦10ラスタの正方形領域(これを原セル′と呼
ぶ)に分割し、上記原セル単位に行なう。すなわち、第
2図において、原セルCJ1の輪郭を抽出し、これを輪
郭セルCd1へ転送し9次ICCs2の輪郭を抽出し、
これを輪郭セルCd2へ転送する。以.4 。
Buto. It is divided into square areas of 10 vertical rasters (this is called an original cell'), and the process is performed for each original cell. That is, in FIG. 2, the contour of the original cell CJ1 is extracted, this is transferred to the contour cell Cd1, the contour of the 9th order ICCs2 is extracted,
This is transferred to the contour cell Cd2. Henceforth. 4.

下、C8→Cds、Cza→CtLa 、と処理する(
原理・ル2輪郭セルは、左から右、上から下へと移動す
る)。
Below, process C8 → Cds, Cza → CtLa (
Principle 2 Contour cells move from left to right and top to bottom).

さて、ここで1輪郭抽出の原理を説明する。不メージは
白黒二値とし、黒画素の中から輪郭画素を選ぶこととす
る。また1選ばれた輪郭画素の色は黒1輪郭画素でない
画素の色は白とするものと。
Now, the principle of one contour extraction will be explained here. The image is assumed to be black and white binary, and the contour pixels are selected from among the black pixels. Further, the color of one selected contour pixel is black, and the color of pixels other than one contour pixel is white.

する。第3図(α)は輪郭抽出すべき原イメージの例。do. Figure 3 (α) is an example of the original image from which contours should be extracted.

同図(b)は、抽出した輪郭を示す。第3図から・分る
Figure (b) shows the extracted contour. It can be seen from Figure 3.

ように、10 (1)原イメージのうちの白画素は1輪郭画素と。Like, 10 (1) A white pixel in the original image is one contour pixel.

しない。do not.

(2)原イメージのうちの黒画素のうち、その上下、左
右の4つの隣接画素がすべて黒画素で。
(2) Among the black pixels in the original image, all four adjacent pixels on the top, bottom, left and right sides are black pixels.

ある時、その黒画素は1輪郭画素としない。、5(3)
原イメージのうちの黒画素のうち、その上。
In some cases, the black pixel is not treated as one contour pixel. , 5(3)
Among the black pixels in the original image, on top.

下、左右の4つの隣接画素のいずれか一画一でも白画素
があれば、その黒画素は1輪郭磯素とする。
If there is a white pixel in any one of the four adjacent pixels on the bottom, left and right sides, that black pixel is treated as one contour pixel.

以上が0輪郭抽出の原理の説明である。第1■0におい
て、テーブル・メモリ180には、上記ルー・ルがテー
ブルとして格納されている。第4図にテ・−プル・メモ
リ180の構成例を示す。同図(a)は、・注目画素と
その隣接4画素を表わしたものであシ・。
The above is an explanation of the principle of zero contour extraction. In the first part 0, the table memory 180 stores the above rules as a table. FIG. 4 shows an example of the configuration of the table memory 180. Figure (a) shows the pixel of interest and its four adjacent pixels.

blまたはb5が注目画素、 hlは左隣接画素、 b
5は右二隣接画累、 b4は上隣接画素、 h6は上隣
接画素であ・る。同図(h)は、テーブル・メモリ18
0の構成例で・あル、8バイト(=64ビット)で構成
される。メ。
bl or b5 is the pixel of interest, hl is the left adjacent pixel, b
5 is the two adjacent pixels on the right, b4 is the upper adjacent pixel, and h6 is the upper adjacent pixel. In the same figure (h), the table memory 18
In the configuration example of 0, it is composed of 8 bytes (=64 bits). Me.

そりの内容は。What's in the sled?

である。なお、ハツチングを施した部分は参照し。It is. Please refer to the hatched parts.

ないので任意でよい。本テーブル・メモリ180の。There isn't, so it's optional. of the book table memory 180.

参照方法は、まず、bl、 bl、 hsの5ビツトの
ピッ。
The reference method is to first use 5 bits of bl, bl, and hs.

ト値の組み合わせで表現される数値bytadr (0
<、。
The numerical value bytadr (0
<,.

hytadr≦7)で、テープA/−メモリ180のバ
イ′ト。
hytadr≦7), bytes of tape A/-memory 180.

−7ドL/ 、K bytadrを求め1次に、44.
 As、 A6の3゜ビットのビット値の組み合わせで
表現される数値。
-7 deL/, K bytadr is calculated and the first order is 44.
A numerical value expressed by a combination of 3° bit values of As and A6.

bitadr (Q≦hitadr ≦7 )で、バイ
ト内ノヒット・アドレスhitadτを求める。さらに
、上記bytαdr2゜hitadrに位置するテーブ
ル・メモリ180内のピッ・トを取り出す。今、hl、
 bl、 bs=1. 1. 1. ha−。
The in-byte no-hit address hitadτ is determined by bitadr (Q≦hitadr≦7). Furthermore, the pit in the table memory 180 located at the above bytαdr2°hitadr is taken out. Now, hl,
bl, bs=1. 1. 1. ha-.

As、 A6: 0. 1 、 0.であったとすると
、 bytadr。
As, A6: 0. 1, 0. If so, bytadr.

=7.  bitadr=2.であシ、第4図(A)に
大枠で示・したビットb(ビット値=1)が取)出され
るこ5とになる。
=7. bitadr=2. Then, bit b (bit value=1) shown in outline in FIG. 4(A) will be extracted.

第1図において、テーブル・メモリ1ao icは、。In FIG. 1, the table memory 1aoic is.

第4図(A)に示した値が設定されている。原セル・・
バッファ140は、転送先部分イメージのうちの原。
The values shown in FIG. 4(A) are set. Original cell...
Buffer 140 is the original of the destination partial image.

セル−個分を一時的に保持するためのセル・ノ(ツ1゜
ファでs、b、回転後セル・バッファ150は、原セ。
The cell buffer 150 for temporarily holding cells is the original cell buffer 150.

ル・バッファ140に保持されている原セルを、右。The original cell held in the file buffer 140 is shown on the right.

90@回転したセルを一時的に保持するためのセル・。90@Cell for temporarily holding rotated cells.

バッファである。また1輪郭セル・バッファ200゜は
、抽出した輪郭を一時的に保持するための七へ。
It is a buffer. Also, one contour cell buffer 200 degrees is used to temporarily hold the extracted contours.

・バッファである。- It is a buffer.

制御部10は、転送先部分イメージ全体120の輪。The control unit 10 controls the entire transfer destination partial image 120.

郭抽出を制御する部分である。制御部10が些動さ。This is the part that controls the extraction. The control unit 10 moves slightly.

れると10は、原セル入力部20.原セル回転部60.
10 is the original cell input section 20. Original cell rotating section 60.
.

原セル輪郭抽出制御部401輪郭セル出力部50を”2
0、7 。
Original cell contour extraction control section 401 contour cell output section 50 is set to "2"
0,7.

この順序で起動する処理を転送先部分イメージ120内
のセル150の数だけ繰シ返す。第5図に処理)・ロー
を示す。
The processes activated in this order are repeated for the number of cells 150 in the transfer destination partial image 120. Figure 5 shows processing) and low.

原セル入力部20が起動されると、20は、転送先・部
分イメージ内120の該当セルを原セル・バッフ5ア1
40へ転送する。第6図(α)に転送先メモリ120・
内の原セルを、同図Ch)に原セル入力部20によシ転
When the original cell input unit 20 is activated, the corresponding cell in the transfer destination/partial image 120 is transferred to the original cell buffer 5a1.
Transfer to 40. FIG. 6 (α) shows the transfer destination memory 120.
The original cell inside is transferred to the original cell input section 20 in Ch) of the same figure.

送済の原セルを示す。1バイト=8ビツトである・から
、各セルは、こ九に合わせて横方向、縦方向。
Indicates the original cell that has been sent. Since 1 byte = 8 bits, each cell is arranged horizontally and vertically according to this number.

とも同じ8ビツトのピッチで、10ビツト、10ラス、
Both have the same 8-bit pitch, 10 bits, 10 las,
.

りずつ入力する。従って、同一画素を複数回、原9セル
・バッファ14OK入力するような画素が部分。
Input one by one. Therefore, there are some pixels that input the same pixel multiple times to the original 9-cell buffer 14 OK.

イメージ内に存在する。第6図(α)にハツチングを。exists within the image. Hatching is shown in Figure 6 (α).

施した画素がこれである。またセルの横幅は10ビ。This is the pixel that was applied. Also, the width of the cell is 10 bits.

ットであるから、原セル・バッファ140の容量層。Since it is a capacitive layer of the original cell buffer 140.

原セル1ラスタ当)2バイトを割)当て、10ラス。Allocate 2 bytes per 1 raster of the original cell, 10 rasters.

り分、すなわち20バイトを確保する。1ラスタ2、バ
イト(=16ビツト)のうちの残り6ビツトは使用しな
い。第7図に原セル入力部20の処理フローを示す。ブ
ロック2010で、原セル内の1ラスク。。
20 bytes. The remaining 6 bits of 1 raster 2 byte (=16 bits) are not used. FIG. 7 shows a processing flow of the original cell input section 20. At block 2010, one rusk in the original cell. .

φ 8 ・ (=2バイト)を転送先から転送先へ連続転送し・。φ8・ (=2 bytes) are transferred continuously from one transfer destination to another.

ブロック2020で、転送先先頭アドレスcsadrを
At block 2020, the transfer destination start address csadr is determined.

次式によ)スキップする。(according to the following formula).

csadr = czadr −)−zzkpl + 
(3W−2) −−−−・・(1)   。
csadr = czadr −)−zzkpl +
(3W-2) -----...(1).

さらにブロック2050で、原セル内の全ラスタ(=5
10ラスタ)を転送したか否かを判定し、全ラスタ。
Further, in block 2050, all rasters (=5
10 rasters) has been transferred, and all rasters.

未転送の場合、再びブロック2010へ進み、全う。If it has not been transferred, the process returns to block 2010 and is completed.

スタ転送済の場合、原セル入力処理を終了する。。If the cell has already been transferred, the original cell input process ends. .

原セル回転部30が起動されると、50は、原セル。When the original cell rotation unit 30 is activated, 50 is the original cell.

バッファ140に保持されている原セルを、右に90一
回転して0回転後セル・バッファ150に転送する。
The original cell held in the buffer 140 is rotated 90 times to the right and transferred to the cell buffer 150 after 0 rotations.

第8図(α)に、原セル・バッファ140に保持されて
In FIG. 8(α), the original cell is held in the buffer 140.

いる原セルの各ビットの配置を、また同図Cb)に、。The arrangement of each bit of the original cell is shown in Cb) of the same figure.

回転後セル・バッファ150に保持される回転後セ。The rotated cells are held in the rotated cell buffer 150.

ルの各ビットの配置を示す。本回転部50は、公知、。This shows the arrangement of each bit in the file. This rotating section 50 is known.

の方法(たとえば、特開昭60−146367号公報)
で実現できるので、ここでは、処理フローは特に記載し
ない。
method (for example, Japanese Patent Application Laid-Open No. 146367/1983)
The processing flow is not particularly described here.

原セル輪郭抽出制御部40が起動されると、40は。When the original cell contour extraction control unit 40 is activated, the process starts.

原セルの上下1ラスタおよび左右1ドツトを除いた部分
(第8図(α)に大枠で示した部分)の輪郭面。
The contour surface of the part of the original cell excluding one raster on the top and bottom and one dot on the left and right (the part shown in the outline in FIG. 8 (α)).

素(横8ドツト=1バイト、縦8ラスタ)を輪郭。Outline the element (8 dots horizontally = 1 byte, 8 rasters vertically).

セル・バッファ200に出力するように、水平5画。5 horizontal pixels to output to cell buffer 200.

素出力部60.垂直3画素出力部709輪郭画累出力。Elementary output section 60. Vertical 3-pixel output unit 709 outputs a contour image.

部80.シフト・レジスタ902輪郭バイト出力部10
(1,、。
Part 80. Shift register 902 contour byte output section 10
(1,,.

の動作を制御する。その処理フローを第9図に示。control the behavior of The processing flow is shown in FIG.

す。輪郭セルは横8ビツト×縦8ラスタ(計64ビ。vinegar. The contour cell is 8 bits horizontally x 8 rasters vertically (64 bits in total).

ット)で構成されるが、その各々のビット値を、。), each of which has a bit value.

ビット毎に求める。走査は左→右、上→下の順に。Find each bit. Scan from left to right, top to bottom.

進める。第8図(α)の例では、ビット12→13→・
・:・・・1゜→19→22→23→・・・・・・の順
に、ビット12からビット。
Proceed. In the example of FIG. 8 (α), bit 12→13→・
・:・・・1゜→19→22→23→・・・・・・ Bits from bit 12.

89までの各輪郭画素のビット値を求める。今、注。Find the bit value of each contour pixel up to 89. Now, note.

目している画素がビット12だとすると、第9図の。If the pixel we are looking at is bit 12, then the image shown in FIG.

ブロック4010で、注目画素の左隣接画素から3゜画
素分(ビット11.12.1g)を原セル・バッファ1
40からbytαctrレジスタ160に出力する。ブ
ロック4020では、注目画素の下隣接画素から3画素
分(ビット22.12.2 )を回転後セル・バッファ
150からhi t adrレジスタ170に出力する
。この時。
In block 4010, 3° pixels (bits 11.12.1g) from the left adjacent pixel of the pixel of interest are transferred to the original cell buffer 1.
40 to the bytαctr register 160. In block 4020, three pixels (bits 22.12.2) from the lower adjacent pixel of the pixel of interest are output from the rotated cell buffer 150 to the hit adr register 170. At this time.

上記3画素は回転後セル・バッファから出力し。The above three pixels are output from the cell buffer after rotation.

原セル・バッファから出力しない。その理由は、・原セ
ル・バッファから出力する場合には、ビット・・アクセ
スが3画素分(3回)必要であるのに対。
Do not output from the original cell buffer. The reason is that when outputting from the original cell buffer, bit access is required for three pixels (three times).

して1回転後セル・バッファから出力する場合に。When outputting from the cell buffer after one rotation.

は、目的の3画素が水平に連続して配置されてお5カ(
第8図(h>)3画素分まとめて1回で出力でき。
The target three pixels are arranged consecutively horizontally, and the five pixels (
Figure 8 (h>) Three pixels can be output at once.

るためである。ブロック4060では、出力された。This is for the purpose of At block 4060, the output has occurred.

上記hytadr 、 hitadr 、によシ、テー
プルーフ+−T−1J。
The above hytadr, hitadr, yoshi, tape roof +-T-1J.

180を参照して、目的の輪郭画素値1ビツトを得。180, the target contour pixel value of 1 bit is obtained.

る。ブロック4040では、この輪郭画素値1ピツ1゜
トをシフト・レジスタ90に取り込む。ブロック。
Ru. In block 4040, this contour pixel value of 1 pixel is taken into the shift register 90. block.

4050では、シフト・レジスタ90に輪郭画素値が。At 4050, the contour pixel values are stored in the shift register 90.

8ビツト(=1バイト)分形成されたか否かを判。Determine whether 8 bits (=1 byte) have been formed.

定し、8ビツトに満たない場合は、注目画素を右。If it is less than 8 bits, move the pixel of interest to the right.

に−画累分進め(今注目している画素がビット121゜
だとすればビット13に進め)、再びブロック4010
に進む。輪郭画素値が8ビツト分形成されたら。
- Advance by a cumulative number of pixels (if the pixel you are currently paying attention to is bit 121°, advance to bit 13), and go to block 4010 again.
Proceed to. When 8 bits of contour pixel values are formed.

ブロック4060へ進み、シフトレジスタ90の内容(
1バイト)を1輪郭セル・バッファ200へ転送する。
Proceeding to block 4060, the contents of shift register 90 (
1 byte) to one contour cell buffer 200.

さらにブロック4070で1輪郭セル8ラス、11 。Further, in block 4070, 1 contour cell 8 ras, 11.

りをすべて転送したか否かを判定し、転送済ラス・り数
が8ラスタに満たない場合は、注目画素を右・に1画素
分進め(今、注目している画素がビット・19だとすれ
ば、ピッ)22に進め)、再びブロック・4010へ進
む。転送済うスク数が8ラスタとなつ5たら処理を終了
する。
If the number of transferred rasters is less than 8 rasters, move the target pixel one pixel to the right (the current pixel is bit 19). If so, proceed to block 22) and proceed to block 4010 again. When the number of transferred rasters reaches 8 rasters, the process ends.

輪郭セル出力部50が起動されると、50は2輪郭。When the contour cell output unit 50 is activated, 50 is two contours.

セル・バッファ200の内容を、転送先メモリ210゜
内の所定の輪郭セル位置へ転送する。第10図に輪。
The contents of cell buffer 200 are transferred to a predetermined contour cell location in destination memory 210°. Figure 10 shows the ring.

郭セル出力部50の処理フローを示す。ブロック1.。5 shows a processing flow of the cell output unit 50. Block 1. .

5010で輪郭セル・バッファ200内の1ラヌタ(1
゜バイト)を転送先から転送先へ転送し、ブロック。
At 5010, 1 lanuta (1
゜bytes) are transferred from destination to destination and blocked.

5020で転送先先頭アドレスctiad、rを次式に
よシ。
At 5020, the transfer destination start address ctiad, r is determined by the following formula.

スキップする。skip.

cd、atLr = cdadr + dzkpl  
  −−・−・−−−・” (2)   1゜さらにブ
ロック5050で輪郭セル・バッファ 200゜内の全
テスク(8ラスタ)を転送したか否かを判。
cd, atLr = cdadr + dzkpl
--・-・----・” (2) 1° Furthermore, in block 5050, it is determined whether all the tasks (8 rasters) within the contour cell buffer 200° have been transferred.

余し、全ラスタ未転送の場合、再びブロック5010゜
へ進み、全ラスク転送済の場合1輪郭セル出力処6理を
終了する。
If all rasters have not yet been transferred, the process returns to block 5010°, and if all rasters have been transferred, the one contour cell output process 6 is completed.

・ 12・ 以上が実施例の説明である。なお1本実施例で・は1輪
郭抽出について説明したが、抽出した輪郭・画素の画素
値をすべて白とし1輪郭画素以外の画・素値は、原イメ
ージの画素値をそのまま転送する・ようKすれば、原イ
メージの細め処理ができる。5また。原イメージを白黒
反転し、上記細め処理を・適用すれば、原イメージの太
め処理も可能である・。
・12・ The above is the explanation of the embodiment. In addition, in this embodiment, one outline extraction was explained, but the pixel values of the extracted outline and pixels are all white, and the pixel values other than the one outline pixel are transferred as they are from the original image. If you use K, you can narrow down the original image. 5 again. It is also possible to thicken the original image by inverting the black and white of the original image and applying the thinning process described above.

これらは、いずれも、テーブル・メモリ180の内・容
を変更するだけで実現できることはいうまでも・ない。
Needless to say, all of these can be realized simply by changing the contents of the table memory 180.

                    1゜〔発明
の効果〕 以上説明した如く1本発明によれば1画素ごと。
1゜[Effects of the Invention] As explained above, according to the present invention, each pixel.

のビット・アクセスでなく、−度に複数ビットを。- multiple bits at a time instead of bit accesses.

取り出すビット列アクセスが可能で1L処理を。It is possible to access the bit string to be extracted and perform 1L processing.

高速化できるという効果がある。       1゜This has the effect of increasing speed.      1゜

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

第1図は本発明の一実施例の全体構成を示すブ。 ロック図、第2図は部分イメージの輪郭抽出時の。 指定パラメータの説明図、第3図は輪郭抽出の原。 理の説明図、第4図はテーブル・メモリの構成のつ。 説明図、第5図は制御部10の処理フロー図、第6・図
は原セル入力部20による原セルの入力範囲と、。 原セル入力後、原セル・バッファ140に保持され。 る原セルの説明図、#Iz図は原セル入力部20の処。 理フロー図、第8図は原セルと右90°回転後のセル5
のビット配置の説明図、第9図は原セル輪郭抽出。 制御部40の処理フロー図、第10図は輪郭セル出力。 部50の処理フロー図である。 10・・・制御部、20・・・原セル入力部、30・・
・原セル回。 転部、40・・・原セル輪郭抽出制御部、50・・・輪
郭セル、。 出力部、60・・・水平3画素出力部、70・・・垂直
6画素。 出力部、80・・・輪郭画素出力部、90・・・シフト
・レジ。 スタ、100・・・輪郭バイト出力部、110・・・転
送先メ。 モIJ、120・・・転送先部分イメージ、130・・
・原セル、。 140・・・原セル・バッファ、150・・・回転後セ
ル・ハ、5ッファ、180・・・テーブル・メモリ、1
90・・・キャリーフラグ、200・・・輪郭セル・バ
ッファ、210・・・転送先メモリ、220・・・輪郭
部分イメージ、250・・・輪、15 。 第 2 第 3 13θ (b) 図 (b) H十同平例+← 第 6 ((IL) (b) 「 1+u 第 7 図 第8図 (b) 第 q 聞 1F)  to  図
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention. The lock diagram, Figure 2, is when extracting the outline of a partial image. An explanatory diagram of the specified parameters, Figure 3 is the source of contour extraction. Figure 4 is an explanatory diagram of the structure of the table memory. An explanatory diagram, FIG. 5 is a processing flow diagram of the control unit 10, and FIG. 6 is an input range of the original cell by the original cell input unit 20. After the original cell is input, it is held in the original cell buffer 140. An explanatory diagram of the original cell, #Iz diagram is the part of the original cell input section 20. Process flow diagram, Figure 8 shows the original cell and cell 5 after being rotated 90 degrees to the right.
An explanatory diagram of the bit arrangement, and Fig. 9 is an illustration of the original cell contour extraction. A processing flow diagram of the control unit 40, FIG. 10 shows outline cell output. 5 is a processing flow diagram of the unit 50. FIG. 10... Control unit, 20... Original cell input unit, 30...
・Original cell episode. conversion section, 40... Original cell contour extraction control section, 50... Contour cell. Output section, 60...Horizontal 3 pixels Output section, 70...Vertical 6 pixels. Output section, 80... Contour pixel output section, 90... Shift register. 100: Outline byte output section, 110: Transfer destination. MoIJ, 120...Transfer destination partial image, 130...
・Original cell. 140...Original cell buffer, 150...Cell after rotation, 5 buffer, 180...Table memory, 1
90... Carry flag, 200... Contour cell buffer, 210... Transfer destination memory, 220... Outline partial image, 250... Ring, 15. 2nd 3rd 13θ (b) Fig. (b) H tenth flat example + ← 6th ((IL) (b) " 1 + u Fig. 7 Fig. 8 (b) q 1F) to Fig.

Claims (1)

【特許請求の範囲】[Claims] 1、白黒二値イメージの輪郭を、注目画素の上下左右四
つの隣接画素の画素値を参照することにより求める四画
素参照による輪郭抽出方法において、原イメージを格子
状に分割して得られる小矩形であるセルを保持する原セ
ル・バッファと、セルを90°回転したセルを保持する
回転後セル・バッファと、セルの輪郭を保持する輪郭セ
ル・バッファと、セルを原セル・バッファに取り込むセ
ル入力手段と、原セル・バッファ内のセルを90°回転
して回転後セル・バッファに転送するセルの90°回転
手段と、注目画素の左隣接画素、注目画素、注目画素の
右隣接画素、の水平三画素の各画素値は、原セル・バッ
ファから一度に水平に取り込み、注目画素の下隣接画素
、注日画素、注目画素の上隣接画素、の垂直三画素の各
画素値は、上記回転後セル・バッファから一度に水平に
取り込み、上記水平および垂直三画素の各画素値から、
注目画素の画素値を求め、これを輪郭セル・バッファに
出力する輪郭抽出手段と、上記輪郭セル・バッファの内
容を出力する輪郭セル出力手段とを設け、上記垂直三画
素を、上記回転後セル・バッファより一度に水平に取り
込み、かつ原イメージ全体の輪郭抽出を、セルごとの輪
郭抽出を繰り返すことによって行なうことを特徴とする
輪郭抽出方法。
1. In the contour extraction method using four-pixel reference, in which the contour of a black-and-white binary image is obtained by referring to the pixel values of four adjacent pixels on the top, bottom, left, and right of the pixel of interest, a small rectangle obtained by dividing the original image into a grid pattern is used. An original cell buffer that holds cells that are rotated by 90 degrees, a rotated cell buffer that holds cells that have been rotated by 90 degrees, a contour cell buffer that holds cell outlines, and a cell that imports cells into the original cell buffer. an input means, a 90° cell rotation means for rotating a cell in the original cell buffer by 90° and transferring the rotated cell to the cell buffer; a pixel adjacent to the left of the pixel of interest, a pixel of interest, a pixel adjacent to the right of the pixel of interest; The pixel values of the three horizontal pixels are taken in at once from the original cell buffer horizontally, and the pixel values of the three vertical pixels of the pixel adjacent below the pixel of interest, the pixel of interest, and the pixel adjacent above the pixel of interest are After rotation, take in horizontally from the cell buffer at once, and from each pixel value of the above three horizontal and vertical pixels,
Contour extraction means for determining the pixel value of the pixel of interest and outputting it to the contour cell buffer, and contour cell output means for outputting the contents of the contour cell buffer, are provided, and the three vertical pixels are extracted from the rotated cell. - A contour extraction method characterized by capturing horizontally from a buffer at once and extracting contours of the entire original image by repeating contour extraction for each cell.
JP62257142A 1987-10-14 1987-10-14 Contour extracting method Pending JPH01100679A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62257142A JPH01100679A (en) 1987-10-14 1987-10-14 Contour extracting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62257142A JPH01100679A (en) 1987-10-14 1987-10-14 Contour extracting method

Publications (1)

Publication Number Publication Date
JPH01100679A true JPH01100679A (en) 1989-04-18

Family

ID=17302298

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62257142A Pending JPH01100679A (en) 1987-10-14 1987-10-14 Contour extracting method

Country Status (1)

Country Link
JP (1) JPH01100679A (en)

Similar Documents

Publication Publication Date Title
EP0431961B1 (en) Image reduction/enlargement technique
JP2560133B2 (en) Image integrated processing device
JP2011134102A (en) Information processing apparatus and information processing method
JPS5839345B2 (en) Arithmetic mask device
CN113506305A (en) Image enhancement method, semantic segmentation method and device for three-dimensional point cloud data
JPH01100679A (en) Contour extracting method
US11281911B2 (en) 2-D graphical symbols for representing semantic meaning of a video clip
JPS60163080A (en) Image reduction display processing system
JPH061493B2 (en) Image filling device
JP2753349B2 (en) Arbitrary angle rotation image data input / output method, input / output circuit thereof, and electronic file device using the same
JPS60114926A (en) Converter of two-dimension coordinate data
JPH0520450A (en) Picture processor
Bose et al. Mapping Image Transformations Onto Pixel Processor Arrays
JP3917489B2 (en) Image rotation apparatus and image rotation method
JPS61100792A (en) Continuous display switching control system
JPS58181359A (en) Picture data processor
JPS63239542A (en) Image memory device and image processing device
JPS5822473A (en) Picture processor
JPS5979673A (en) Expanding and contracting method of picture
JPS6195478A (en) Coordinate conversion processing device of picture
JPS61134792A (en) Binary image trimming apparatus
JPS61267457A (en) Picture processor
JPH07118006B2 (en) Image processing device
JPS63104184A (en) Animation display
JPS63195696A (en) Fast lithography