JPH03201077A - Image processor - Google Patents

Image processor

Info

Publication number
JPH03201077A
JPH03201077A JP1343417A JP34341789A JPH03201077A JP H03201077 A JPH03201077 A JP H03201077A JP 1343417 A JP1343417 A JP 1343417A JP 34341789 A JP34341789 A JP 34341789A JP H03201077 A JPH03201077 A JP H03201077A
Authority
JP
Japan
Prior art keywords
image data
label
display
binary
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
JP1343417A
Other languages
Japanese (ja)
Inventor
Hiroshi Nakamoto
浩 中本
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP1343417A priority Critical patent/JPH03201077A/en
Publication of JPH03201077A publication Critical patent/JPH03201077A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To display a desired image pickup subject at a high speed by storing the binary image data on each image pickup subject after setting the different labels to each image data and selecting and displaying the label image data corresponding to one or plural labels. CONSTITUTION:The different labels are allocated to each binary image data corresponding to each image pickup subject and stored in a binary image data storage means 14. These binary image data are stored in a label image data storage means 17. Then a label image data selection means 18 selects the label image data corresponding to one or plural labels based on the memory contents of the means 17. The selected label image data is displayed on a display means 21. Thus it is possible to display only the label image data corresponding to the desired label without rewriting the image data into a memory prepared separately. Then the processing speed is increased for an image processor.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、画像データを2値化処理して表示する画像処
理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to an image processing device that binarizes and displays image data.

〈従来の技術〉 たとえば自動化された工場の検査ラインなどでは、ワー
クをCCDカメラなどの撮像装置で撮像し、得られた画
像データを2値化した上でワークの画像部分につき面積
や周囲長さなどを計測して認識を111′っている。こ
のときワークを搬送するベルト表面の汚れなども撮像さ
れる結果、画像にノイズが発生してワーク以外のものも
2値化されてしまう。そこでワークの画像部分のみを計
測対象となすために、2値画像データにラベリングを行
い、ワークに相当するラベルの画像部分のみを抽出して
計測対象となしている。
<Conventional technology> For example, in an automated factory inspection line, a workpiece is imaged with an imaging device such as a CCD camera, the obtained image data is binarized, and the area and circumference of the imaged part of the workpiece are calculated. 111' is recognized by measuring such things. At this time, dirt on the surface of the belt that conveys the workpiece is also imaged, and as a result, noise occurs in the image, and things other than the workpiece are also binarized. Therefore, in order to target only the image portion of the workpiece, labeling is performed on the binary image data, and only the image portion of the label corresponding to the workpiece is extracted and set as the measurement target.

第11図は、従来のこの種画像処理装置1の構成を示し
ており、撮像装置2と、撮像装置2からの画像信号を2
値化処理する2値化回路3と、この2値化回路3で得た
2値画像データを記憶させる2値画像メモリ4とを備え
ている。
FIG. 11 shows the configuration of a conventional image processing device 1 of this kind, which includes an imaging device 2 and an image signal from the imaging device 2.
It includes a binarization circuit 3 that performs digitization processing, and a binary image memory 4 that stores the binary image data obtained by the binarization circuit 3.

この2値画像メモリ4の記憶内容は表示回路8に与えら
れて表示装置9で表示される。
The stored contents of the binary image memory 4 are provided to a display circuit 8 and displayed on a display device 9.

また2値画像データはパスライン5で接続されたCPU
6に取り込まれ、CPU6は2値百像データにラベリン
グを行ってラベル画像データをラベルリング画像メモリ
7に格納する。
In addition, the binary image data is processed by the CPU connected via path line 5.
6, the CPU 6 labels the binary image data and stores the label image data in the labeling image memory 7.

〈発明が解決しようとする問題点〉 この従来例のように、表示装置9に2値画像を表示する
と、その2値画像に画像ノイズが存在するため、画面が
見ずらいだけでなく、ワークの画像部分が計測対象とな
っているのか、ワーク以外の画像部分が計測対象となっ
ているのかを画面上に確認できないという問題がある。
<Problems to be Solved by the Invention> When a binary image is displayed on the display device 9 as in this conventional example, image noise exists in the binary image, which not only makes it difficult to see the screen but also makes it difficult to work with the workpiece. There is a problem in that it is not possible to check on the screen whether the image part of the object is the object of measurement or whether the image area other than the workpiece is the object of measurement.

そこでワークに相当するラベルが付された画像部分をC
PU6で抽出して2値画像メモリ4の内容を書き換え、
その2値画像メモリ4の内容を表示装置9で表示するこ
とも可能であるが、これでは書換処理が必要となり、こ
の書換時間のため処理速度が大幅に遅くなるという問題
がある。
Therefore, the image part with the label corresponding to the workpiece is
Extract with PU6 and rewrite the contents of binary image memory 4,
Although it is possible to display the contents of the binary image memory 4 on the display device 9, this requires a rewriting process, and this rewriting time significantly slows down the processing speed.

この発明は、上記問題を解消するためになされたもので
、所望の撮像対象のみを表示でき、しかもこれを高速処
理で行うこと・ができる画像処理装置を提供することを
目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide an image processing device that can display only a desired imaging target and can perform this at high speed processing.

く問題点を解決するための手段〉 この発明の画像処理装置は、撮像されて2値化された画
像データを記憶する2値画像データ記憶手段と、2値画
像データ記憶手段の記憶内容につき各撮像対象に対応す
る2値画像データ毎に異なるラベルをそれぞれ割り当て
て記憶するラベル画像データ記憶手段と、1または複数
のラベルに対応するラベル画像データを選択するラベル
画像データ選択手段と、選択されたラベルに対応する画
像を表示する表示手段とを備えて戒る。
Means for Solving the Problems> The image processing apparatus of the present invention includes a binary image data storage means for storing captured and binarized image data, and a storage content of the binary image data storage means. label image data storage means for allocating and storing different labels for each binary image data corresponding to the imaging target; label image data selection means for selecting label image data corresponding to one or more labels; and a display means for displaying an image corresponding to the label.

く作用〉 2値画像データ記憶手段に記憶された2値画像データは
、各撮像対象に対応する画像データ毎に異なるラベルが
割り当てられてラベル画像データ記憶手段に記憶される
。その記憶内容につき、ラベル画像データ選択手段によ
りlまたは複数のラベルに対応するラベル画像データが
選択され、その選択されたラベルの画像データが表示手
段に表示される。
Effect> The binary image data stored in the binary image data storage means is stored in the label image data storage means with a different label assigned to each image data corresponding to each imaging object. Regarding the stored contents, label image data corresponding to one or more labels is selected by the label image data selection means, and the image data of the selected label is displayed on the display means.

これにより、所望のラベルに対応するラベル画像データ
のみを、別途準備されたメモリに書き替えることなく表
示でき、処理が高速化される。
Thereby, only the label image data corresponding to the desired label can be displayed without being rewritten in a separately prepared memory, and the processing speed is increased.

〈実施例〉 第1図は、本発明の一実施例にかかる画像処理装置11
の構成を示すもので、CODカメラなどの撮像装置12
と、撮像装置12からの画像信号を2値化処理する2値
化回路13と、2値化された2値画像データを記憶する
2値画像メモリ14とを備えている。2値画像メモリ1
4の2値画像データは、パスライン15で接続されてい
るCPU (中央処理装置F)16の制御で、撮像対象
毎に相互に異なるラベルが割り当てられて、ラベリング
画像メモリ17に記憶される。
<Embodiment> FIG. 1 shows an image processing device 11 according to an embodiment of the present invention.
This shows the configuration of an imaging device 12 such as a COD camera.
, a binarization circuit 13 that binarizes the image signal from the imaging device 12, and a binary image memory 14 that stores the binarized binary image data. Binary image memory 1
The binary image data of No. 4 is assigned a different label to each imaging object under the control of a CPU (central processing unit F) 16 connected via a pass line 15, and is stored in a labeling image memory 17.

このラベリング画像メモリ17の記憶内容はラベル選択
回路1日を介して、表示選択回路19に入力される0表
示選択回路19は、CPU16の制御で2値画像メモリ
14とラベル選択回路18とのいずれかを選択し、選択
された側の画像データを表示回路20を介して表示装置
21に出力する。またラベリング画像メモリ17には、
アドレスデー°・夕を出力するラスク走査用のアドレス
発生回路22が接続される。
The storage contents of the labeling image memory 17 are inputted to the display selection circuit 19 via the label selection circuit 1. The 0 display selection circuit 19 selects between the binary image memory 14 and the label selection circuit 18 under the control of the CPU 16. The image data of the selected side is output to the display device 21 via the display circuit 20. Also, in the labeling image memory 17,
An address generation circuit 22 for rask scanning that outputs address data is connected.

第2図は、ラベル選択回路18の具体例を示す、このラ
ベル選択回路18は、ラベリング画像メモリ17からの
ラベル画像データとCPU16のアドレスバスからのア
ドレスデータとのいずれか一方を選択するマルチプレク
サ23を備え、その出力はラベル選択用メモリ24のア
ドレス入力として与えられる。CPUI 9からアドレ
スデータが与えられるとき、ラベル選択用メモリ24の
データ入力として、CPU16のデータバスから後述す
るデータがバッファ25を介して与えられ、これにより
第9図や第10図のメモリ内容が形成される。
FIG. 2 shows a specific example of the label selection circuit 18. This label selection circuit 18 includes a multiplexer 23 that selects either label image data from the labeling image memory 17 or address data from the address bus of the CPU 16. The output is given as an address input to the label selection memory 24. When address data is given from the CPU 9, data to be described later is given from the data bus of the CPU 16 via the buffer 25 as data input to the label selection memory 24, and thereby the memory contents shown in FIGS. 9 and 10 are It is formed.

第3図は、表示選択回路19の具体例を示す。FIG. 3 shows a specific example of the display selection circuit 19.

この表示選択回路19は、2値画像メモリ14からの画
像データが与えられるAND回路26と、ラベル選択回
路18からの画像データが与えられるAND回路27と
を含んで構成される。
The display selection circuit 19 includes an AND circuit 26 to which image data from the binary image memory 14 is applied, and an AND circuit 27 to which image data from the label selection circuit 18 is applied.

一方AND回路27には、CPU16からの表示選択信
号Sが、他方のAND回路26には表示選択信号Sを反
転回路28で反転させた信号が、それぞれ与えられる。
One AND circuit 27 is supplied with a display selection signal S from the CPU 16, and the other AND circuit 26 is supplied with a signal obtained by inverting the display selection signal S by an inverting circuit 28.

各AND回路26゜27の出力はOR回路29を介して
表示回路20へ出力される。
The outputs of the AND circuits 26 and 27 are output to the display circuit 20 via the OR circuit 29.

第4図は、本実施例における記憶処理の手順を示し、第
5図および第6図は2値画像メモリ14とラベリング画
像メモリ17との記憶内容を示している。第4図のステ
ップl(図中、rSTIJで示す)で撮像装置12によ
り撮像された画像信号は、ステップ2で2値化回路13
により2値化され、第5図に示すように2値画像メモリ
14に記憶される。第5図の各斜線領域30がたとえば
論理「1」に対応し、それ以外の背景領域31が論理「
0」に対応する。
FIG. 4 shows the procedure of storage processing in this embodiment, and FIGS. 5 and 6 show the storage contents of the binary image memory 14 and the labeling image memory 17. The image signal captured by the imaging device 12 in step l (indicated by rSTIJ in the figure) of FIG. 4 is transferred to the binarization circuit 13 in step 2.
The image is binarized and stored in the binary image memory 14 as shown in FIG. Each diagonal area 30 in FIG. 5 corresponds to a logic "1", and the other background areas 31 correspond to a logic "1".
0”.

第4図のステップ3でCPU16はたとえば各斜線領域
30の面積を計算し、ステップ4で計算値が大きいもの
から順にラベル−「1」。
In step 3 of FIG. 4, the CPU 16 calculates, for example, the area of each diagonal area 30, and in step 4, the area with the largest calculated value is labeled - "1".

’2J、r3」、  ・・・・を割り当て、背景領域3
1にはラベル「0」を与える。このようにしてラベリン
グ画像メ°゛モリ17には、第6図に示すように背景領
域32と撮像対象領域33とからなるラベル画像データ
が得られる。
'2J, r3', ... is assigned, background area 3
1 is given the label "0". In this way, label image data consisting of the background area 32 and the imaging target area 33 is obtained in the labeling image memory 17, as shown in FIG.

第7図は、ラベル画像データの出力処理を示すフローチ
ャートであり、第8図は表示装置21の表示例を示して
いる。なお本実施例では最大面積を有する撮像対象領域
(ラベル「1」で示す領域)が本来撮像すべきワークで
あると判断する。
FIG. 7 is a flowchart showing the output processing of label image data, and FIG. 8 shows an example of display on the display device 21. Note that in this embodiment, it is determined that the imaging target area (the area indicated by the label "1") having the largest area is the workpiece that should be imaged.

まず第7図のステップ1ではラベリング画像メモリ17
がラスター走査されてその記憶内容が読み出され、マル
チプレクサ23を介してラベル選択用メモリ24にアド
レスデータとして与えられる。このラベル選択用メモリ
24には、CPU16からの所望のデータが第9図また
は第10図に示すように記憶されている。第9図は第6
図においてラベル「1」のラベル画像データのみを表示
する場合の記憶例であり、第10図は第6図においてラ
ベルr2J、r4」に対応するラベル画像データを表示
する場合の記憶例である。
First, in step 1 of FIG. 7, the labeling image memory 17
is raster-scanned, its stored contents are read out, and provided as address data to the label selection memory 24 via the multiplexer 23. Desired data from the CPU 16 is stored in the label selection memory 24 as shown in FIG. 9 or FIG. 10. Figure 9 is the 6th
This is a storage example when only label image data of label "1" is displayed in the figure, and FIG. 10 is a storage example when label image data corresponding to labels "r2J, r4" in FIG. 6 is displayed.

すなわち第7図のステップ2では、ラベリング画像メモ
リ17からのラベル画像データ「0」rl」、r2」、
r3」が所定のラベルに一致するかどうかの判断を、そ
のラベル画像データをアドレスとしたときの出力がデー
タrQJであるか、データ「l」であるかによって行う
ことになる。ステップ3.4の出力処理は、出力がデー
タ「1」またはデータr□、である場合にそれぞれ相当
するもので、ステップ5ではこのような画像データが表
示選択回路19に入力され、CPU16からの表示選択
信号Sに基づいて表示装置21に第8図に示されるよう
に出力表示される。
That is, in step 2 of FIG. 7, the label image data "0"rl",r2" from the labeling image memory 17 are
A determination as to whether "r3" matches a predetermined label is made based on whether the output when the label image data is used as an address is data rQJ or data "l". The output processing in step 3.4 corresponds to the case where the output is data "1" or data r□, respectively. In step 5, such image data is input to the display selection circuit 19 and output from the CPU 16. Based on the display selection signal S, the output is displayed on the display device 21 as shown in FIG.

〈発明の効果〉 本発明は上記の如く、各撮像対象に対応する2値画像デ
ータ毎に異なるラベルをそれぞれ割り当てて記憶させた
後、1または複数のラベルに対応するラベル画像データ
を選択して、選択されたラベルに対応する画像を表示す
るようにしたから、所望の・ラベルに対応する画像デー
タのみを書き換えることなく所望の撮像対象を表示でき
、処理を高速化し得るという効果を奏する。
<Effects of the Invention> As described above, the present invention assigns and stores different labels to each binary image data corresponding to each imaging target, and then selects label image data corresponding to one or more labels. Since the image corresponding to the selected label is displayed, the desired imaged object can be displayed without rewriting only the image data corresponding to the desired label, and the processing speed can be increased.

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

第1図は本発明の一実施例にかかる画像処理装置の構成
を示すブロック図、第2図はラベル選択回路の構成例を
示すブロック図、第3図は表示選択回路の構成例を示す
ブロック図、第4図は記憶処理の手順を示すフローチャ
ート、第5図は2値画像メモリの記憶内容を示す説明図
、第6図はラベリング画像メモリの記憶内容を示す説明
図、第7図は表示手順を示すフローチャート、第8図は
表示装置の表示例を示す説明図、第9図および第10図
はラベル選択用メモリの記憶内容を示す説明図、第11
図は従来例の画像処理装置を示すブロックである。 11・・・・画像処理装置 12・・・・撮像装置13
・・・・2値化回路  14・・・・2値画像メモリ1
6・・・・CPU 17・・・・ラベリング画像メモリ 18・・・・ラベル選択回路 19・・・・表示選択回路 24・・・・ラベル選択用メモリ
FIG. 1 is a block diagram showing the configuration of an image processing device according to an embodiment of the present invention, FIG. 2 is a block diagram showing an example configuration of a label selection circuit, and FIG. 3 is a block diagram showing an example configuration of a display selection circuit. Figure 4 is a flowchart showing the storage processing procedure, Figure 5 is an explanatory diagram showing the storage contents of the binary image memory, Figure 6 is an explanatory diagram showing the storage contents of the labeling image memory, and Figure 7 is the display. Flowchart showing the procedure; FIG. 8 is an explanatory diagram showing a display example of the display device; FIGS. 9 and 10 are explanatory diagrams showing the storage contents of the label selection memory;
The figure shows a block diagram of a conventional image processing device. 11... Image processing device 12... Imaging device 13
... Binarization circuit 14 ... Binary image memory 1
6...CPU 17...Labeling image memory 18...Label selection circuit 19...Display selection circuit 24...Label selection memory

Claims (1)

【特許請求の範囲】 撮像されて2値化された画像データを記憶する2値画像
データ記憶手段と、 2値画像データ記憶手段の記憶内容につき各撮像対象に
対応する2値画像データ毎に異なるラベルをそれぞれ割
り当てて記憶するラベル画像データ記憶手段と、 1または複数のラベルに対応するラベル画像データを選
択するラベル画像データ選択手段と、選択されたラベル
に対応する画像を表示する表示手段とを備えて成る画像
処理装置。
[Claims] Binary image data storage means for storing captured and binarized image data; and storage contents of the binary image data storage means are different for each binary image data corresponding to each imaged object. Label image data storage means for assigning and storing labels, label image data selection means for selecting label image data corresponding to one or more labels, and display means for displaying an image corresponding to the selected label. An image processing device comprising:
JP1343417A 1989-12-27 1989-12-27 Image processor Pending JPH03201077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1343417A JPH03201077A (en) 1989-12-27 1989-12-27 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1343417A JPH03201077A (en) 1989-12-27 1989-12-27 Image processor

Publications (1)

Publication Number Publication Date
JPH03201077A true JPH03201077A (en) 1991-09-02

Family

ID=18361356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1343417A Pending JPH03201077A (en) 1989-12-27 1989-12-27 Image processor

Country Status (1)

Country Link
JP (1) JPH03201077A (en)

Similar Documents

Publication Publication Date Title
CN114283124A (en) Smudginess detection method, device, equipment and storage medium
JPH0591411A (en) Image processor
JPH03201077A (en) Image processor
JP2710527B2 (en) Inspection equipment for periodic patterns
US10445854B2 (en) Image processing device, image processing method, and non-transitory recording medium
JPH0310107A (en) Inspecting method utilizing gradation pattern matching
JPH0129643Y2 (en)
JPS6051382A (en) Window processing system of picture
JP3120469B2 (en) Image display method and apparatus
JP3575551B2 (en) Residue inspection method
JPH0723875B2 (en) Image display method in glass bottle inspection device
JP3009230B2 (en) Correlation processing device, correlation processing method, and image processing device
JP2843389B2 (en) Bonding ball inspection device
JP2002259971A (en) Method for detecting uneven image density and inspection device therefor
JPS60124783A (en) Picture processing unit
KR0173246B1 (en) Apparatus for processing binary image projection
JPS6218919B2 (en)
JPH0749937A (en) Image processor
JPS62108381A (en) Density histogram detecting system
JPS6326784A (en) Image connection processor
JPH07121701A (en) Method and device for displaying/setting spratial filter and method for displaying/setting image processing environment
JP2000011175A (en) Device for inspecting defect and method therefor
JPH10206113A (en) Edge location detecting method and image measuring device
JPH1196355A (en) Method and device for labeling image
JPS60256878A (en) Picture processor