JPH04220778A - Gradation image processor - Google Patents
Gradation image processorInfo
- Publication number
- JPH04220778A JPH04220778A JP2413488A JP41348890A JPH04220778A JP H04220778 A JPH04220778 A JP H04220778A JP 2413488 A JP2413488 A JP 2413488A JP 41348890 A JP41348890 A JP 41348890A JP H04220778 A JPH04220778 A JP H04220778A
- Authority
- JP
- Japan
- Prior art keywords
- image
- expanded
- processing
- measurement
- feature amount
- 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.)
- Granted
Links
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】この発明は、対象物の形状や位置
などを計測するに際し、対象物を撮像して得た濃淡画像
を処理して、重心位置などの特徴量を計測する濃淡画像
処理装置に関する。[Industrial Application Field] This invention relates to gradation image processing that processes a gradation image obtained by capturing an image of an object to measure characteristic quantities such as the position of its center of gravity when measuring the shape and position of an object. Regarding equipment.
【0002】0002
【従来の技術】従来、対象物の形状や位置などを計測す
るには、対象物を撮像して得た濃淡画像を2値化処理し
て2値画像を生成し、その2値画像における対象物の画
像部分について重心位置などの特徴量を計測している。
また2値画像中に複数の対象物の画像部分が含まれると
き、その2値画像にラベリング処理を施した後、特徴量
の計測処理を行っている。[Background Art] Conventionally, in order to measure the shape and position of an object, a grayscale image obtained by imaging the object is binarized to generate a binary image, and the object in the binary image is Features such as the position of the center of gravity are measured for the image part of the object. Furthermore, when a binary image includes image portions of a plurality of objects, the binary image is subjected to a labeling process and then a feature value measurement process is performed.
【0003】0003
【発明が解決しようとする課題】しかしながら2値画像
から特徴量の計測処理を行う場合、対象物の画像部分と
背景の画像部分との境界付近について量子化誤差が生じ
、特徴量を高精度に計測することが困難である。そこで
濃淡画像から特徴量を計測することが提案されているが
、この方法だと、濃淡画像の全体を処理の対象としてい
るため、計測処理に時間がかかり、しかも背景の画像部
分の影響を受けるという問題がある。[Problem to be Solved by the Invention] However, when performing feature measurement processing from a binary image, quantization errors occur near the boundary between the image part of the object and the image part of the background, making it difficult to measure the feature quantities with high precision. Difficult to measure. Therefore, it has been proposed to measure the feature values from the gray scale image, but with this method, the entire gray scale image is subject to processing, so the measurement process takes time and is influenced by the background image part. There is a problem.
【0004】この発明は、上記問題に着目してなされた
もので、重心位置などの特徴量を高精度かつ短時間で計
測でき、しかも背景の画像部分の影響を受けずに特徴量
の計測が可能な濃淡画像処理装置を提案することを目的
とする。[0004] This invention was made with attention to the above problem, and it is possible to measure feature quantities such as the position of the center of gravity with high precision and in a short time, and moreover, it is possible to measure the feature quantities without being affected by the background image part. The purpose of this paper is to propose a possible gray scale image processing device.
【0005】[0005]
【課題を解決するための手段】この発明は、対象物を撮
像して得た濃淡画像を処理して特徴量を計測するための
濃淡画像処理装置であって、前記濃淡画像を2値化処理
して2値画像を生成する手段と、前記2値画像における
対象物の画像部分を所定の画素幅だけ膨張処理して膨張
画像を生成する手段と、前記膨張画像における対象物の
画像領域に対し濃淡画像を処理して特徴量を計測する手
段とを具備させている。[Means for Solving the Problems] The present invention is a grayscale image processing device for measuring a feature amount by processing a grayscale image obtained by imaging an object, wherein the grayscale image is subjected to binarization processing. means for generating a binary image, means for generating an expanded image by expanding an image portion of the object in the binary image by a predetermined pixel width; The apparatus is equipped with means for processing the gray scale image and measuring feature amounts.
【0006】[0006]
【作用】2値画像を膨張処理して得た膨張画像から濃淡
画像の計測対象領域を設定して特徴量を計測するので、
対象物の画像部分と背景部分との境界付近が計測対象領
域に組み入れられ、高精度の計測が可能となる。しかも
濃淡画像の全体が処理の対象でないので、計測処理の時
間が短縮され、また背景の画像部分の影響を受けること
もない。[Operation] Since the measurement target area of the grayscale image is set from the dilated image obtained by dilating the binary image and the feature amount is measured,
The vicinity of the boundary between the image portion of the object and the background portion is included in the measurement target area, allowing highly accurate measurement. Furthermore, since the entire grayscale image is not subject to processing, the time required for measurement processing is shortened, and there is no influence from the background image portion.
【0007】[0007]
【実施例】図1は、この発明の一実施例にかかる濃淡画
像処理装置の外観を示している。図示例の装置は、カメ
ラ1と画像処理装置2とから成り、画像処理装置2には
ビデオモニタ3が接続されている。カメラ1は下方に向
けて配置され、その観測視野内には3個の対象物4,5
,6が位置している。カメラ1はこれら対象物4,5,
6を撮像して濃淡画像の画像信号を画像処理装置2へ出
力する。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the appearance of a gray scale image processing apparatus according to an embodiment of the present invention. The illustrated apparatus includes a camera 1 and an image processing device 2, and a video monitor 3 is connected to the image processing device 2. The camera 1 is placed facing downward, and there are three objects 4 and 5 within its observation field.
, 6 are located. Camera 1 detects these objects 4, 5,
6 and outputs an image signal of a grayscale image to the image processing device 2.
【0008】図2は、前記画像処理装置10の回路構成
例を示す。画像入力部11は図3に示す如く、2個のA
/D変換器22,24と2値化回路23と膨張処理部2
4とを含み、各A/D変換器22,24はアナログ量の
画像信号を256諧調のディジタル量の画像信号に変換
する。FIG. 2 shows an example of the circuit configuration of the image processing apparatus 10. As shown in FIG. 3, the image input section 11 has two A
/D converters 22, 24, binarization circuit 23, and expansion processing section 2
4, and each A/D converter 22, 24 converts an analog image signal into a digital image signal with 256 tones.
【0009】2値化回路23は、A/D変換器22から
の画像信号を入力して2値化処理し、その2値画像を膨
張処理部24へ出力する。この膨張処理部24は、前記
2値画像に対してフィルタリング処理を行い、2値画像
を1〜数画素(この実施例では1画素)分膨張させた膨
張画像を生成する。The binarization circuit 23 inputs the image signal from the A/D converter 22, performs binarization processing, and outputs the binary image to the expansion processing section 24. The expansion processing unit 24 performs filtering processing on the binary image, and generates an expanded image in which the binary image is expanded by one to several pixels (one pixel in this embodiment).
【0010】図4は、前記2値画像および膨張画像の概
念を示すもので、図中、斜線部分が黒画素、それ以外が
白画素である。また4A,5A,6Aは2値画像におけ
る各対象物4,5,6の画像部分を、4B,5B,6B
は膨張画像における各対象物4,5,6の画像部分を、
それぞれ示す。なお7は2値画像および膨張画像におけ
る背景部分である。FIG. 4 shows the concept of the binary image and the expanded image. In the figure, the shaded areas are black pixels, and the other areas are white pixels. In addition, 4A, 5A, and 6A represent the image parts of each object 4, 5, and 6 in the binary image, and 4B, 5B, and 6B
is the image part of each object 4, 5, 6 in the dilated image,
Each is shown below. Note that 7 is the background portion in the binary image and the expanded image.
【0011】図2に戻って、一方の画像メモリ12aは
前記膨張処理部24より入力した膨張画像の画像データ
を、また他方の画像メモリ12bは前記A/D変換器2
5より入力した濃淡画像の画像データを、それぞれ1画
素単位で格納する。文字メモリ16はビデオモニタ14
に表示する文字についてのフォントデータを格納する。
画像出力部13は画像メモリ12a,12bおよび文字
メモリ16から出力された画像データをアナログ量の信
号に変換し、1画面分の画像信号をビデオモニタ14へ
送出する。ビデオモニタ14は画像出力部13からの画
像信号により入力画像や演算結果などを表示する。Returning to FIG. 2, one image memory 12a stores the image data of the expanded image input from the expansion processing section 24, and the other image memory 12b stores the image data of the expanded image input from the A/D converter 2.
The image data of the gray scale image input from 5 is stored in units of one pixel. Character memory 16 is connected to video monitor 14
Stores font data for characters to be displayed. The image output section 13 converts the image data outputted from the image memories 12a, 12b and the character memory 16 into analog signals, and sends one screen worth of image signals to the video monitor 14. The video monitor 14 displays input images, calculation results, etc. using image signals from the image output section 13.
【0012】画像メモリ12a,12bおよび文字メモ
リ16はアドレス/データバス17に接続され、またこ
のアドレス/データバス17にはCPU18,ROM1
9,RAM20,I/Oポート21が接続されてマイク
ロコンピュータが構成されている。このマイクロコンピ
ュータは、CPU18がROM19に格納されたプログ
ラムを解読実行し、RAM20に対するデータの読み書
きを行いつつ、ラベリング処理や特徴量の演算処理など
、各種の画像処理を実行する。タイミング制御部15は
、CPU18と連動して、画像入力部11,画像メモリ
12a,12b,画像出力部13,文字メモリ16にお
けるデータの入出力を制御するためのタイミング信号を
出力する。The image memories 12a, 12b and the character memory 16 are connected to an address/data bus 17, and the address/data bus 17 is connected to a CPU 18, a ROM 1
9, RAM 20, and I/O port 21 are connected to form a microcomputer. In this microcomputer, a CPU 18 decodes and executes a program stored in a ROM 19, reads and writes data to and from a RAM 20, and performs various image processing such as labeling processing and feature quantity calculation processing. The timing control section 15 works in conjunction with the CPU 18 to output timing signals for controlling input and output of data in the image input section 11, image memories 12a and 12b, image output section 13, and character memory 16.
【0013】図5は、前記膨張画像に対してラベリング
処理が施されたラベリング画像の概念を示す。図中、4
Cはラベル「1」が割り当てられた対象物4の画像部分
を、5Cはラベル「2」が割り当てられた対象物5の画
像部分を、6Cはラベル「3」が割り当てられた対象物
6の画像部分を、それぞれ示す。なお7Cはラベル「0
」が付与された背景7の画像部分である。FIG. 5 shows the concept of a labeled image obtained by performing labeling processing on the expanded image. In the diagram, 4
C is the image portion of object 4 to which the label "1" has been assigned, 5C is the image portion of object 5 to which the label "2" has been assigned, and 6C is the image portion of object 6 to which the label "3" has been assigned. The image parts are shown respectively. Note that 7C is labeled “0
” is an image portion of the background 7.
【0014】つぎに上記構成の濃淡画像処理装置の動作
を説明する。いまカメラ1で対象物4,5,6を撮像す
ると、その濃淡画像の画像信号は画像入力部11へ出力
される。濃淡画像のアナログ画像信号はA/D変換器2
2,25でディジタル量の画像信号に変換され、一方の
画像信号は2値化回路23で2値化された後、膨張処理
部24でフィルタリング処理が施されて、膨張画像が一
方の画像メモリ12aに格納される。A/D変換器25
からの濃淡画像の画像信号はそのまま他方の画像メモリ
12bに格納される。Next, the operation of the gray scale image processing apparatus having the above configuration will be explained. When the objects 4, 5, and 6 are now imaged by the camera 1, the image signals of the grayscale images are output to the image input section 11. The analog image signal of the grayscale image is sent to the A/D converter 2.
2 and 25, one of the image signals is binarized by a binarization circuit 23, and then filtered by an expansion processing section 24, and the expanded image is stored in one image memory. 12a. A/D converter 25
The image signal of the grayscale image from is stored as is in the other image memory 12b.
【0015】つぎにCPU18は、画像メモリ12aに
格納された膨張画像につきラベリング処理を施し、その
ラベリング画像にかかる画像データをRAM20に格納
した後、このラベリング画像における各対象物の画像部
分4C,5C,6Cを計測対象領域として濃淡画像を次
式で処理することにより濃淡画像における各対象物4,
5,6の画像部分の重心位置(XG1,YG1)(XG
2,YG2)(XG3,YG3)を算出する。Next, the CPU 18 performs a labeling process on the expanded image stored in the image memory 12a, stores the image data related to the labeled image in the RAM 20, and then displays the image portions 4C and 5C of each object in the labeled image. , 6C as the measurement target area, each object 4, in the grayscale image is processed by the following formula.
Center of gravity position of image parts 5 and 6 (XG1, YG1) (XG
2, YG2) (XG3, YG3).
【0016】[0016]
【数1】[Math 1]
【0017】[0017]
【数2】[Math 2]
【0018】[0018]
【数3】[Math 3]
【0019】[0019]
【数4】[Math 4]
【0020】[0020]
【数5】[Math 5]
【0021】[0021]
【数6】[Math 6]
【0022】なお上式中、X,Yは画像上の座標位置を
、nx,nyはX軸方向およびY軸方向の画素数を、f
(X,Y)は座標(X,Y)で示された画素の濃淡画像
データを、それぞれ示す。またf1(X,Y)は座標(
X,Y)で示された画素にラベル「1」が割り当てられ
ているときは「1」、それ以外のラベルが割り当てられ
ているときは「0」の値をとる関数である。同様にf2
(X,Y)は座標(X,Y)で示された画素にラベル「
2」が割り当てられているときは「1」、それ以外のラ
ベルが割り当てられているときは「0」の値をとる関数
であり、f3(X,Y)は座標(X,Y)で示された画
素にラベル「3」が割り当てられているときは「1」、
それ以外のラベルが割り当てられているときは「0」の
値をとる関数である。In the above formula, X, Y are the coordinate positions on the image, nx, ny are the number of pixels in the X-axis direction and Y-axis direction, and f
(X, Y) respectively indicate the gray scale image data of the pixel indicated by the coordinates (X, Y). Also, f1 (X, Y) is the coordinate (
This function takes a value of "1" when the label "1" is assigned to the pixel indicated by (X, Y), and takes a value of "0" when any other label is assigned. Similarly f2
(X, Y) is a label for the pixel indicated by the coordinates (X, Y).
It is a function that takes the value "1" when "2" is assigned, and "0" when any other label is assigned, and f3 (X, Y) is indicated by the coordinates (X, Y). "1" when the label "3" is assigned to the pixel,
This is a function that takes a value of "0" when any other label is assigned.
【0023】[0023]
【発明の効果】この発明は上記の如く、対象物を撮像し
て得た濃淡画像を処理して特徴量を計測するのに、前記
濃淡画像を2値化処理して2値画像を生成し、その2値
画像における対象物の画像部分を所定の画素幅だけ膨張
処理して膨張画像を生成した後、前記膨張画像における
対象物の画像領域に対し濃淡画像を処理して特徴量を計
測するようにしたから、対象物の画像部分と背景部分と
の境界付近が計測対象領域に組み入れられ、高精度の計
測が可能となる。しかも濃淡画像の全体が処理の対象で
はないから、計測処理の時間が短縮され、また背景の画
像部分の影響を受けることもないなど、発明目的を達成
した顕著な効果を奏する。[Effects of the Invention] As described above, in order to process a grayscale image obtained by imaging an object and measure a feature quantity, the grayscale image is binarized to generate a binary image. , generate an expanded image by expanding the image portion of the object in the binary image by a predetermined pixel width, and then process a gray scale image for the image area of the object in the expanded image to measure the feature amount. By doing so, the vicinity of the boundary between the image portion of the object and the background portion is included in the measurement target area, and highly accurate measurement becomes possible. Moreover, since the entire grayscale image is not subject to processing, the time required for measurement processing is shortened, and there is no influence from background image portions, achieving the remarkable effects of achieving the purpose of the invention.
【図1】この発明の一実施例にかかる濃淡画像処理装置
の外観を示す説明図である。FIG. 1 is an explanatory diagram showing the appearance of a gray scale image processing device according to an embodiment of the present invention.
【図2】画像処理装置の回路構成を示すブロック図であ
る。FIG. 2 is a block diagram showing a circuit configuration of an image processing device.
【図3】画像入力部の回路構成を示すブロック図である
。FIG. 3 is a block diagram showing a circuit configuration of an image input section.
【図4】2値画像と膨張画像の概念を示す説明図である
。FIG. 4 is an explanatory diagram showing the concept of a binary image and an expanded image.
【図5】ラベリング画像の概念を示す説明図である。FIG. 5 is an explanatory diagram showing the concept of a labeling image.
1 カメラ 2 画像処理装置 11 画像入力部 18 CPU 23 2値化回路 24 膨張処理部 1. Camera 2 Image processing device 11 Image input section 18 CPU 23 Binarization circuit 24 Expansion processing section
Claims (1)
して特徴量を計測するための濃淡画像処理装置であって
、前記濃淡画像を2値化処理して2値画像を生成する手
段と、前記2値画像における対象物の画像部分を所定の
画素幅だけ膨張処理して膨張画像を生成する手段と、前
記膨張画像における対象物の画像領域に対し濃淡画像を
処理して特徴量を計測する手段とを備えて成る濃淡画像
処理装置。1. A grayscale image processing device for measuring a feature amount by processing a grayscale image obtained by imaging an object, the grayscale image being binarized to generate a binary image. means for generating an expanded image by expanding an image portion of the object in the binary image by a predetermined pixel width; and generating a feature amount by processing a gray scale image for the image region of the object in the expanded image A gradation image processing device comprising: means for measuring .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2413488A JP2853343B2 (en) | 1990-12-20 | 1990-12-20 | Image processing method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2413488A JP2853343B2 (en) | 1990-12-20 | 1990-12-20 | Image processing method and apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04220778A true JPH04220778A (en) | 1992-08-11 |
| JP2853343B2 JP2853343B2 (en) | 1999-02-03 |
Family
ID=18522119
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2413488A Expired - Fee Related JP2853343B2 (en) | 1990-12-20 | 1990-12-20 | Image processing method and apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2853343B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5853876A (en) * | 1993-07-28 | 1998-12-29 | Lintec Corporation | Biodegradable adhesive tape and biodegradable adhesive label |
-
1990
- 1990-12-20 JP JP2413488A patent/JP2853343B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5853876A (en) * | 1993-07-28 | 1998-12-29 | Lintec Corporation | Biodegradable adhesive tape and biodegradable adhesive label |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2853343B2 (en) | 1999-02-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR950703189A (en) | IMAGE PROCESSING DEVICE AND METHOD THEREFOR, AND ELECTRONIC DEVICE HAVING IMAGE PROCESSING DEVICE | |
| JPH04220778A (en) | Gradation image processor | |
| JPH08125844A (en) | Image processing method and image processing system using the method | |
| JPH0310107A (en) | Inspecting method utilizing gradation pattern matching | |
| JPH11142118A (en) | Distance measuring method and apparatus and recording medium recording this method | |
| JP3120469B2 (en) | Image display method and apparatus | |
| JPH0795345B2 (en) | Image processing method | |
| JP3100143B2 (en) | Image processing method and image processing apparatus | |
| KR960011228B1 (en) | Video histogram | |
| JP3175946B2 (en) | Object position measuring method and device | |
| JP2843389B2 (en) | Bonding ball inspection device | |
| JP3100140B2 (en) | Image processing method and image processing apparatus | |
| KR0158405B1 (en) | Color purity measuring device | |
| JP3100141B2 (en) | Image processing method and image processing apparatus | |
| JPS62117080A (en) | Picture processing device | |
| JP3100144B2 (en) | Image processing method and image processing apparatus | |
| JPH04216179A (en) | Picture processor | |
| JP2002216139A (en) | Horizontal line detection method by image processing | |
| JPH0916766A (en) | Image position identification device | |
| JPS62259187A (en) | Pattern measuring instrument | |
| JPH04239982A (en) | Gradation picture processor | |
| JP2017020953A (en) | Measuring device | |
| JPH05314256A (en) | Image data processor | |
| JPH01281574A (en) | Method and device for image processing | |
| JPH01137375A (en) | Picture processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |