JPS62113288A - Edge detecting circuit for binary image - Google Patents

Edge detecting circuit for binary image

Info

Publication number
JPS62113288A
JPS62113288A JP60253179A JP25317985A JPS62113288A JP S62113288 A JPS62113288 A JP S62113288A JP 60253179 A JP60253179 A JP 60253179A JP 25317985 A JP25317985 A JP 25317985A JP S62113288 A JPS62113288 A JP S62113288A
Authority
JP
Japan
Prior art keywords
memory
change point
data
level
binary image
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
JP60253179A
Other languages
Japanese (ja)
Inventor
Toshinobu Ooyama
大山 利延
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.)
Shinko Electric Co Ltd
Original Assignee
Shinko Electric Co 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 Shinko Electric Co Ltd filed Critical Shinko Electric Co Ltd
Priority to JP60253179A priority Critical patent/JPS62113288A/en
Publication of JPS62113288A publication Critical patent/JPS62113288A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the capacity of a memory and to shorten a processing time by providing data supply means which supply position data on the position of a change point to the data input terminal of a memory and writing means which write the position data on the memory when the change point is detected. CONSTITUTION:Change point detecting means 11 and 12 which detect the change point of a binary image, data supply means 6 and 7 which supply position data on the position of the change point to the data input terminal of the memory 5a, and means 13-15 which write the position data on the memory when the change point is detected are provided. The memory is stored with the change point of image data, i.e. only an edge and the number of bits required to store one change point increases, but the number of picture elements of the change point is much less than the total number of picture elements, so the number of bits required to store all change points is less than the number of bits required to store all picture elements. Consequently, data which are processed by a computer decreases in number greatly and the processing time of the computer is shortened greatly and the capacity of the memory is decreased.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、ベルトコンベア上の物品の形状や姿勢の認
識、あるいは前記物品の検査等に使用して好適な、2値
画像のエツジ検出回路に関する。
Detailed Description of the Invention [Industrial Application Field] The present invention provides a binary image edge detection circuit suitable for use in recognizing the shape and posture of an article on a belt conveyor, or inspecting the article. Regarding.

[従来の技術] 画像処理の応用分野には、高速処理を要求されるものが
多い。例えば、ベルトコンベア上に置かれている製品を
検査ケる場合などには、画像処理をリアルタイムで行っ
て、制御信号を出力しなければならない。
[Prior Art] Many applied fields of image processing require high-speed processing. For example, when inspecting products placed on a belt conveyor, image processing must be performed in real time and control signals must be output.

第3図は、この種の画像処理に使用される2値画像のエ
ツジ検出回路の従来構成を示すブロック図である。図に
おいて、1は同期分離回路である。
FIG. 3 is a block diagram showing the conventional configuration of a binary image edge detection circuit used in this type of image processing. In the figure, 1 is a synchronous separation circuit.

同期分離回路Iの入力端には、図示U゛ぬビデオカメラ
から、ビデオ信号が供給されている。同期分離回路1は
、このビデオ信号から、垂直同期信号VD、水平同期信
号11 Dおよび映像信号Vsを分離、抽出する。そし
て、映像信号Vsは、2値化回路2によって2値画像に
変換され、2値の画像データvbとして出力される。
A video signal is supplied to the input terminal of the synchronization separation circuit I from a video camera (not shown). The synchronization separation circuit 1 separates and extracts a vertical synchronization signal VD, a horizontal synchronization signal 11D, and a video signal Vs from this video signal. The video signal Vs is then converted into a binary image by the binarization circuit 2 and output as binary image data vb.

上記各信号HD、VD、Vbはメモリ人力コントロール
回路3に供給されろ。このメモリ人力コントロール回路
3は、発信器4から供給されるクロックパルスSCに同
期して、画像データvbを1ヒツトずつフレームメモリ
5に占き込むしのである。
The above signals HD, VD, and Vb are supplied to the memory manual control circuit 3. This memory manual control circuit 3 loads the image data vb one hit at a time into the frame memory 5 in synchronization with the clock pulse SC supplied from the transmitter 4.

第4図は、上記メモリ入力コントロール回路3の構成を
示すブロック図である。図において、6はフレームメモ
リ5の行アドレスを指定するア1ζレスツノウンタ、7
はフレームメモリ5の列アドレスを指定ずろアドレスカ
ウンタ(以下、単にカウンタという)である。」二足カ
ウンタ6は、水平同期信号1−[Dによってクリアされ
、クロックパルスSCをカウントする。また、カウンタ
7は、垂直同期信号VDによってクリアされ、水平同期
信号HDをカウントする。従って、行アドレスは!水平
線の各ドツト(画素)に対応し、列アドレスは各水平線
に対応する。また、クロックパルスSCはライトイネー
ブル端Wにも供給され、画像データvbはフレームメモ
リ5のデータ入力端に供給されている。
FIG. 4 is a block diagram showing the configuration of the memory input control circuit 3. As shown in FIG. In the figure, 6 is an address counter that specifies the row address of the frame memory 5;
is an offset address counter (hereinafter simply referred to as a counter) that specifies the column address of the frame memory 5. '' The two-legged counter 6 is cleared by the horizontal synchronization signal 1-[D and counts clock pulses SC. Further, the counter 7 is cleared by the vertical synchronization signal VD and counts the horizontal synchronization signal HD. Therefore, the line address is! Each dot (pixel) of a horizontal line corresponds to a column address, and a column address corresponds to each horizontal line. Further, the clock pulse SC is also supplied to the write enable terminal W, and the image data vb is supplied to the data input terminal of the frame memory 5.

第3図に戻り、8は、フレームメモリ5に書き込まれた
画像データvbを読み出して、コンピュータ9に供給す
るメモリ出力コントロール回路である。
Returning to FIG. 3, 8 is a memory output control circuit which reads out the image data vb written in the frame memory 5 and supplies it to the computer 9.

このような構成において、第5図に示すように、クロッ
クパルスSCが立ち上がる度に、行アドレスが更新され
、クロックパルスSCの立ち下がり時点で、2rti画
像データvbがフレームメモリ5に順次書き込まれてい
く。そして、2値画像データの変化点(エツジ)、ナな
イっち、I−【”レベルから”L“レベルに変化する点
、あるいは、“L”レベルから“1(“レベルに変化す
る点が、コンピュータ9によって判定される。
In such a configuration, as shown in FIG. 5, the row address is updated every time the clock pulse SC rises, and the 2rti image data vb are sequentially written into the frame memory 5 at the fall of the clock pulse SC. go. Then, the change point (edge) of the binary image data, the point where it changes from the I-[" level to the "L" level, or the point where it changes from the "L" level to the "1(" level. is determined by the computer 9.

[発明が解決しようとする問題点] ところで、上述した従来のエツジ検出回路においては、
クロックパルスSCが立ち下がる毎に、画像データvb
をフレームメモリ5に書き込んでいるため、フレームメ
モリ5の容量が大きくなり、てしまうという不都合があ
った。
[Problems to be solved by the invention] By the way, in the conventional edge detection circuit described above,
Every time the clock pulse SC falls, the image data vb
Since the data is written to the frame memory 5, there is an inconvenience that the capacity of the frame memory 5 becomes large.

例えば、256x256画素のデータを格納するために
は、64にビットらのメモリか必要になる。これにとも
なって、コンピュータ9ら毎回64にビットの画像デー
タを扱うために、処理時間が長くなるという問題もあっ
た。
For example, to store data of 256x256 pixels, 64 bits of memory are required. Along with this, there is a problem in that the computer 9 handles 64 bits of image data each time, which increases the processing time.

この発明は、このような背景の下になされたもので、メ
モリの容量減と、処理時間の短縮とを図った、2値画像
のエツジ検出回路を提供することを目的とする。
The present invention was made against this background, and it is an object of the present invention to provide an edge detection circuit for binary images, which is capable of reducing memory capacity and processing time.

[問題点を解決するための手段] 上記問題点を解決するためにこの発明は、2値画像の変
化点を検出する変化点検出手段と、この変化点の位置を
示す位置データをメモリのデータ入力端に供給するデー
タ供給手段と、前記変化点検出時に前記位置データを前
記メモリに書き込む書き込み手段とを具備ずろことを特
徴とする。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides a change point detection means for detecting a change point in a binary image, and a change point detection means for detecting a change point in a binary image, and position data indicating the position of the change point as data in a memory. The apparatus is characterized in that it includes data supply means for supplying data to an input end, and writing means for writing the position data into the memory when detecting the change point.

[作用 ] 上記構成によれば、メモリには画像データの変化点すな
わちエツジのみが記憶される。この場合、1つの変化点
を記憶するのに必要なピント数は多くなるが、変化点の
画素数は全画素数のごく一部であるから、全変化点を記
憶するのに必要なビット数は、全画素を記tαするのに
必要なビット数よりら少なくて済む。また、コンピュー
タは変化点をメモリから直接読み取ることができるので
、処理時間の短縮を図ることができる。
[Operation] According to the above configuration, only changing points of image data, that is, edges are stored in the memory. In this case, the number of focus points required to memorize one change point increases, but since the number of pixels at a change point is a small fraction of the total number of pixels, the number of bits required to memorize all change points is is smaller than the number of bits required to write all pixels tα. Furthermore, since the computer can directly read the change points from the memory, processing time can be shortened.

[実施例] 以下、図面を参照して、本発明の詳細な説明第1図は、
この発明の一実施例によるエツジ検出回路の構成を示す
ブロック図である。図において、11は、画像データv
bの変化点(エツジ)を検出ずろための2ビツトのシフ
トレジスタである。
[Example] Hereinafter, with reference to the drawings, a detailed explanation of the present invention will be given.
1 is a block diagram showing the configuration of an edge detection circuit according to an embodiment of the present invention. FIG. In the figure, 11 is image data v
This is a 2-bit shift register for detecting and shifting the change point (edge) of b.

シフトレジスタ11の入力端SAには、画像データvb
か供給される一方、シフトレジスタIIの各ビットの出
力QA、QBはイクスクルーシーブオアゲート12の各
入力端に供給されている。このため、イクスクルーシー
ブオアゲートI2の出力端Aは、エツジが検出されたと
きだけ”I−1”レベルとなる。なぜならば、シフトレ
ジスタ11にr I−1、LJあるいはrL、I(Jの
いずれかが入ったときにのみ、イクスクルーシーブオア
ゲート12の出力端が“夏1”レベルになるからである
Image data vb is input to the input terminal SA of the shift register 11.
On the other hand, the outputs QA and QB of each bit of the shift register II are supplied to each input terminal of the exclusive OR gate 12. Therefore, the output terminal A of the exclusive OR gate I2 becomes the "I-1" level only when an edge is detected. This is because the output terminal of the exclusive OR gate 12 becomes the "Summer 1" level only when either rI-1, LJ or rL, I(J) enters the shift register 11.

イクスクルーシーブオアゲート12の出力はナントゲー
ト13の第2入力端に供給され、インバータ14を介し
てその第1入力端に供給されろクロックパルスSCの反
転信号とのナンド信号か形成される。ずなイつち、クロ
ックパルスSCが“L”出力が“I−1”レベルのとき
に、ナントゲート13から“L“レベルの信号が出力さ
れ、これがメモリ5aのライトイネーブル端Wとカウン
タ!5の入力端とに供給される。
The output of the exclusive-OR gate 12 is applied to a second input of a NAND gate 13, which forms a NAND signal with the inverted signal of the clock pulse SC, which is applied via an inverter 14 to its first input. First, when the clock pulse SC is at the "L" level and the output is at the "I-1" level, a signal at the "L" level is output from the Nant gate 13, which is connected to the write enable terminal W of the memory 5a and the counter! 5 input terminal.

上記メモリ5aは、第3図のフレームメモリ5よりも容
量の小さいもので、そのアドレス端には、カウンタ15
の出力が供給され、データ入力端には、カウンタ6.7
の出力がXデータ、Yデータとして供給されている。
The memory 5a has a smaller capacity than the frame memory 5 shown in FIG. 3, and has a counter 15 at its address end.
The output of counter 6.7 is supplied to the data input terminal.
The output of is supplied as X data and Y data.

このような構成において、カウンタ6は、水平同期信号
1−I Dによってクリアされ、クロックパルスSCを
アップカウントする。また、カウンタ7は、垂直同期信
号VDによってクリアされ、水平同期信号1−I Dを
アップカウントする。このため、メモリ5aのデータ入
力端には、画素のアドレスが常時供給される。
In such a configuration, the counter 6 is cleared by the horizontal synchronizing signal 1-ID and counts up the clock pulse SC. Further, the counter 7 is cleared by the vertical synchronizing signal VD, and counts up the horizontal synchronizing signal 1-ID. Therefore, the pixel address is always supplied to the data input terminal of the memory 5a.

このような状態で、第2図の時刻1+に画像データvb
が“L″レベルら“H”レベルに変化すると、時刻t2
に、クロックパルスSCの立ち上がりによってシフトレ
ジスタ11に画像データvbが取り込まれ、シフトレジ
スタI I (1) 第1 出力QAが“■”レベルに
変化する。このとき、シフトレジスタIfの第2出力端
QBは“L”レベルであるから、イクスクルーシーブオ
アゲート12の出力端Aは“Iゼレベルとなる。次の時
刻t3に、クロックパルスSCが“L”レベルになると
、ナントゲート13への2人力かともに“1(”レベル
となるから、その出力が“L”レベルとなり、ライトイ
ネーブル端Wに“L”レベルが供給され、このときのX
データ、Yデータがメモリ5aに書き込まれる。
In this state, the image data vb at time 1+ in FIG.
changes from “L” level to “H” level, time t2
Then, the image data vb is taken into the shift register 11 by the rising edge of the clock pulse SC, and the shift register I I (1) first output QA changes to the "■" level. At this time, since the second output terminal QB of the shift register If is at the "L" level, the output terminal A of the exclusive OR gate 12 is at the "I" level. At the next time t3, the clock pulse SC is at the "L" level. ” level, both the input power to the Nant gate 13 becomes the “1 (” level), so its output becomes the “L” level, and the “L” level is supplied to the write enable terminal W.
data and Y data are written into the memory 5a.

一方、時刻t4に、クロックパルスscの立ち上がりに
よって、シフトレジスタ11の第2ピツトに“I−■”
レベルの信号か取り込jれると、出力端QBが“ト■”
レベルになり、イクスクルーンーブオアゲート12への
入力がともに“H”レベルとなるから、その出力端Aは
“し”レベルとなる。従って、ナントゲートI3の出力
、すなわち、ライトイネーブル端Wへの供給信号は“H
”レベルとなり、書き込みが禁止される。また、この時
刻t4に、ナントゲート13の出力によってカウンタI
5が1アツプカウントし、メモリ5aの指定アドレスが
1ずらされる。
On the other hand, at time t4, due to the rising edge of the clock pulse sc, "I-■" is applied to the second pit of the shift register 11.
When a level signal is taken in, the output terminal QB becomes “T”.
Since both the inputs to the exclusive loop or gate 12 become "H" level, the output terminal A thereof becomes "HI" level. Therefore, the output of the Nant gate I3, that is, the signal supplied to the write enable terminal W is “H”.
” level, and writing is prohibited. Also, at this time t4, the output of the Nant gate 13 causes the counter I
5 is counted up by 1, and the designated address of the memory 5a is shifted by 1.

次に、第2図の時刻t5に画像データvbが“H”レベ
ルから“L”レベルに変化ずろと、時刻L6’に、これ
かシフトレジスタ11に読み込まれ、イクスクルーンー
ブオアゲート12の出力が“11”レベルに変化する。
Next, when the image data vb changes from the "H" level to the "L" level at time t5 in FIG. changes to "11" level.

そして、次の時刻t7に、クロックパルスSCが“L”
レベルになると、ライトイネーブル端Wに”L”レベル
の信号が供給され、゛このときのXデータ、Yデータが
メモリ5aに読み込まれる。また、時刻t8に、イクス
クルーシーブオアゲ−1・■2の出力が“L”レベルに
なると、ライトイネーブル端Wが“I]”レベルに変化
し、メモリ5aへの書き込みが禁止される。また、カウ
ンタ15か1アツプカウントして、メモリ5aのアドレ
スかlずらされる。
Then, at the next time t7, the clock pulse SC goes “L”.
When the level is reached, an "L" level signal is supplied to the write enable terminal W, and the X data and Y data at this time are read into the memory 5a. Further, at time t8, when the outputs of the exclusive or games 1 and 2 go to the "L" level, the write enable terminal W changes to the "I" level, and writing to the memory 5a is prohibited. Further, the counter 15 counts up by 1, and the address of the memory 5a is shifted by 1.

こうして、画像データvbが変化したときのXデータ、
Yデータのみがメモリ5aに順次書き込まれていく。ず
なわち、メモリ5aには、エツジ納される。従って、コ
ンピュータ9は、メモリ5aからデータを読み出すだけ
でエツジの位置を知ることができる。
In this way, when the image data vb changes, the X data,
Only the Y data is sequentially written into the memory 5a. That is, the memory 5a is stored on an edge. Therefore, the computer 9 can know the edge position simply by reading data from the memory 5a.

[発明の効果コ 以上説明したように、この発明は、画像データの変化点
(エツジ)のみを抽出して、メモリに書き込むようにし
たから、コンピュータで処理するデータが従来に比べて
非常に少なくなる。この結果、コンピュータの処理時間
を大幅に短縮できる利点が得られる。また、メモリの容
量を減らすことができる。
[Effects of the invention] As explained above, this invention extracts only the changing points (edges) of image data and writes them into memory, so the amount of data to be processed by a computer is significantly less than in the past. Become. As a result, there is an advantage that the computer processing time can be significantly reduced. Additionally, memory capacity can be reduced.

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

第1図はこの発明の一実施例の要部の構成を示すブロッ
ク図、第2図は同実施例の動作を説明するための波形図
、第3図は2値画像のエツジ検出回路の従来例を示すブ
ロック図、第4図は同商路の要部の構成を示すブロック
図、第5図は同回路の動作を説明するための波形図であ
る。 ζ +、     J ヱ I+     1!   
 ?        、J+  −書 −−4+  /
 −=!     龜−11L  !−人手段)、11
・・ノットレジスタ、12・・イクスクルーシーブオア
ゲ−1・(以上、11,12は変化点検出手段)、I3
・・ナントゲート、I4・・インバータ、I5・・カウ
ンタ(以上、■3〜15は書き込み手段)。 第1図 第2図
FIG. 1 is a block diagram showing the configuration of essential parts of an embodiment of the present invention, FIG. 2 is a waveform diagram for explaining the operation of the embodiment, and FIG. 3 is a conventional edge detection circuit for binary images. FIG. 4 is a block diagram showing the configuration of the main part of the same commercial route, and FIG. 5 is a waveform diagram for explaining the operation of the same circuit. ζ +, J ヱ I+ 1!
? , J+ - book -4+ /
−=! Head-11L! - human means), 11
...Knot register, 12...Exclusive or game-1 (above, 11 and 12 are change point detection means), I3
. . . Nant gate, I 4 . . . Inverter, I 5 . . . Counter (in the above, 3 to 15 are writing means). Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] 2値画像の変化点を検出する変化点検出手段と、この変
化点の位置を示す位置データをメモリのデータ入力端に
供給するデータ供給手段と、前記変化点検出時に前記位
置データを前記メモリに書き込む書き込み手段とを具備
することを特徴とする2値画像のエッジ検出回路。
a change point detection means for detecting a change point of a binary image; a data supply means for supplying position data indicating the position of the change point to a data input terminal of a memory; and a data supply means for supplying the position data to the memory when detecting the change point. 1. An edge detection circuit for a binary image, comprising a writing means for writing.
JP60253179A 1985-11-12 1985-11-12 Edge detecting circuit for binary image Pending JPS62113288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60253179A JPS62113288A (en) 1985-11-12 1985-11-12 Edge detecting circuit for binary image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60253179A JPS62113288A (en) 1985-11-12 1985-11-12 Edge detecting circuit for binary image

Publications (1)

Publication Number Publication Date
JPS62113288A true JPS62113288A (en) 1987-05-25

Family

ID=17247637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60253179A Pending JPS62113288A (en) 1985-11-12 1985-11-12 Edge detecting circuit for binary image

Country Status (1)

Country Link
JP (1) JPS62113288A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5098245A (en) * 1973-12-26 1975-08-05
JPS59132075A (en) * 1983-01-18 1984-07-30 Seiko Instr & Electronics Ltd Picture processing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5098245A (en) * 1973-12-26 1975-08-05
JPS59132075A (en) * 1983-01-18 1984-07-30 Seiko Instr & Electronics Ltd Picture processing device

Similar Documents

Publication Publication Date Title
GB1456549A (en) System for detecting the position of a pattern
JPH08248919A (en) Plasma display device
US4866783A (en) System for detecting edge of image
JPS62113288A (en) Edge detecting circuit for binary image
US7034815B2 (en) Method and apparatus for synchronizing an analog video signal to an LCD monitor
RU1785017C (en) Device for image outline distinguishing
US4581610A (en) Method and apparatus for locally intensifying brightness in a video display device
JPS62279473A (en) Detecting circuit for edge of binary image
JP2861435B2 (en) Pipeline type arithmetic unit
JPH0129643Y2 (en)
JPS60156133A (en) Video display device
JPS62157981A (en) Character reader
JPS5961880A (en) Field memory reading control circuit
JPS59151186A (en) Character display
JPS62107582A (en) Video signal memory device
JPH04874A (en) Hand blur detection circuit
JPS61131084A (en) Picture processor
JPS6180365A (en) Storage circuit for maximum/minimum values of image
JPS61269784A (en) Pattern detecting device
JPH0668255A (en) Counter for histogram-counting
JPS6180473A (en) Data memory circuit of picture measuring
JPH03122776A (en) Projection circuit in each video rate density
JPS6175964A (en) Memory circuit for label data
JPS6348404A (en) Position recognizing device
JPH0750504B2 (en) Pattern recognition device