JPH0289187A - Picture signal correcting device - Google Patents

Picture signal correcting device

Info

Publication number
JPH0289187A
JPH0289187A JP63240053A JP24005388A JPH0289187A JP H0289187 A JPH0289187 A JP H0289187A JP 63240053 A JP63240053 A JP 63240053A JP 24005388 A JP24005388 A JP 24005388A JP H0289187 A JPH0289187 A JP H0289187A
Authority
JP
Japan
Prior art keywords
pixel data
pixel
ratio
picture element
sampling area
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
JP63240053A
Other languages
Japanese (ja)
Inventor
Hiroshi Saito
浩 斎藤
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP63240053A priority Critical patent/JPH0289187A/en
Publication of JPH0289187A publication Critical patent/JPH0289187A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the deformation of the shape of the boundary part of a picture by setting two threshold value, and outputting the binary data of the picture element of a sampling area as it is when the density o;f the sampling area is between these threshold value. CONSTITUTION:For every picture element of the binary picture signal stored in a memory 101, a sampling area setting means 102 sets the sampling area whose center is approximately said picture element, and a ratio calculating means 103 reads picture element data corresponding to the set sampling area from the memory, and counts the picture element data to show '1' and '0' contained in it, and calculates the ratio of the picture element data '1' in the area. When the ratio of the number of the picture element data to show '1' in the sampling area exceeds a set range, outputting means 104 to 106 make a corresponding center picture element into '1', and when the ratio is below the set range, they make the center picture element into '0', and when the ratio is within the set range, they output the data as it is. Thus, the shape of the boundary part of the figure can be kept correct even after correction.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、自動車のボディ外板等の物体の表面検査等
のため被写体を走査・撮像して得られた2値化画像信号
中に含まれているノイズを削除する画像信号補正装置に
関する。
Detailed Description of the Invention (Industrial Field of Application) The present invention is directed to the use of a binary image signal obtained by scanning and imaging an object for surface inspection of an object such as an automobile body outer panel. The present invention relates to an image signal correction device for removing noise that is present in images.

(従来の技術) 従来、この種の画像信号補正装置として特開昭59−1
78872号公報に示されるものが知られている。これ
は第7〜9図に示すように、人力画像信号中において補
正対象の画素Pを中心とした画素数mxn個の小領域を
設定する0次いでメモリに格納されている入力画像信号
中から、この小領域に該当する画像信号を読出し、その
中に含まれる画素データ″l”を計数する。その個数が
第8図に示すように閾値Th以上であれば、画素Pを“
l”に、未満であれば、画素Pを“0”に決定して出力
する。その結果、第9図aに示す補正以前の画像は、図
すのように画像上に発生している微小な斑点で示される
ノイズ図形が削除される。
(Prior art) Conventionally, as this type of image signal correction device, Japanese Patent Application Laid-Open No. 59-1
The one shown in Japanese Patent No. 78872 is known. As shown in FIGS. 7 to 9, this is done by setting a small area of mxn pixels centered around the pixel P to be corrected in the human input image signal. The image signal corresponding to this small area is read out, and the pixel data "l" contained therein is counted. As shown in FIG. 8, if the number is greater than or equal to the threshold Th, the pixel P is
l”, the pixel P is determined to be “0” and output. As a result, the image before correction shown in FIG. Noise figures indicated by speckles are deleted.

(発明が解決しようとする問題点) しかしながら、このような従来の画像信号補正装置にあ
っては、ノイズの除去については良好におこなわれるも
のの、第9図すでも明らかなように画像の境界部の形状
が変化してしまう、そのため人力した画像信号をもとに
、物品の形状検査等をおこなおうとする場合は、肝心の
画像の周縁部が変形されるので、この画像信号補正装置
を用いることができないという問題がある。
(Problems to be Solved by the Invention) However, although such a conventional image signal correction device removes noise well, as is clear from FIG. Therefore, when attempting to inspect the shape of an article based on manually generated image signals, this image signal correction device is used because the critical periphery of the image is deformed. The problem is that I can't.

(発明の目的) この発明はこのような従来の問題点を解消するためにな
されたもので、その目的とするところは、補正した後も
、画像の境界部形状が変化されることの少ない画像信号
補正装置を提供することにある。
(Object of the Invention) This invention was made to solve the problems of the conventional art, and its purpose is to create an image in which the shape of the boundary of the image is less likely to change even after correction. An object of the present invention is to provide a signal correction device.

(問題点を解決するための手段) この発明は上記目的を達成するために、第1図に示され
るように構成されている。
(Means for Solving the Problems) In order to achieve the above object, the present invention is constructed as shown in FIG. 1.

メモリ101は、ビデオ信号を所定のレベルと比較弁別
して得られた2値化画像信号が入力されるとそれを格納
する。
The memory 101 stores a binarized image signal obtained by comparing and discriminating a video signal with a predetermined level when input thereto.

サンプリングエリア設定手段102は、メモリ102に
格納されている2値化画像信号の画素ごとに、その画素
をほぼ中心としたサンプリングエリアを設定する。
The sampling area setting means 102 sets, for each pixel of the binary image signal stored in the memory 102, a sampling area approximately centered on that pixel.

比率算出手段103は、設定されたサンプリングエリア
に該当する画素データをメモリから読出し、その中に含
まれる“loおよび“0”を示す画素データを計数して
、エリア内における画素データ“1”の比率を算出する
The ratio calculation means 103 reads out pixel data corresponding to the set sampling area from the memory, counts the pixel data indicating "lo" and "0" contained therein, and calculates the pixel data "1" in the area. Calculate the ratio.

出力手段104は、算出された画素データ“l”の比率
が予め設定された範囲内である場合は、中心画素に該当
する画素データをメモリ101より読出してそのまま出
力して中心画素に該当する画素データとする。
If the ratio of the calculated pixel data "l" is within a preset range, the output means 104 reads out the pixel data corresponding to the center pixel from the memory 101 and outputs it as is, so that the pixel data corresponding to the center pixel Data.

出力手段105は、算出された画素データ“l”の比率
が予め設定された範囲を越えた場合は、中心画素に該当
する画素データとして“l”を出力する。
If the ratio of the calculated pixel data "l" exceeds a preset range, the output means 105 outputs "l" as pixel data corresponding to the center pixel.

出力手段106は、算出された画素データ11@の比率
が予め設定された範囲に満たない場合は、中心画素に該
当する画素データとして“0“を出力する。
If the ratio of the calculated pixel data 11@ is less than a preset range, the output means 106 outputs "0" as pixel data corresponding to the center pixel.

(作 用) この発明では、サンプリングエリア内の“1″を示す画
素データ数の比率が設定範囲を越えると、該当する中心
画素を“l”とし、設定範囲に満たないと、“0”とし
、設定範囲内であれば人力されたデータをそのままにし
て出力するようにしたことにより、図形の境界部の形状
が補正後も正確に保持される。
(Function) In this invention, when the ratio of the number of pixel data indicating "1" in the sampling area exceeds the set range, the corresponding center pixel is set as "l", and when it is less than the set range, it is set as "0". By outputting manually entered data as is if it is within a set range, the shape of the boundary of a figure can be accurately maintained even after correction.

(実施例) 第2図は、この発明にかかる画像信号補正装置を物体表
面すなわち自動車のボディ外板等のパネルのうねりやゆ
がみを評価する装置に通用した実施例の構成を示すブロ
ック図である。
(Embodiment) FIG. 2 is a block diagram showing the configuration of an embodiment in which the image signal correction device according to the present invention is applied to a device for evaluating waviness and distortion of an object surface, that is, a panel such as an automobile body outer panel. .

図において、プロジェクタlから投射された縞模様は、
拡散板2を透して被検査体3に照射される。被検査体3
の表面上に投影された縞模様は、撮像装置4に走査・撮
像され、画像の明暗に応じたアナログ信号■として出力
される。
In the figure, the striped pattern projected from projector l is
The light passes through the diffusion plate 2 and is irradiated onto the object 3 to be inspected. Tested object 3
The striped pattern projected onto the surface of is scanned and imaged by the imaging device 4, and outputted as an analog signal (2) corresponding to the brightness of the image.

このアナログ信号Vは、へ/Dコンバータ5でデジタル
信号へに変換された後、画像メモリAに格納される。
This analog signal V is stored in the image memory A after being converted into a digital signal by the to/D converter 5.

画像メモリ八に格納されたデジタル信号Aは、2値化処
理部7に送られ、画素単位で所定のレベルと比較・弁別
されて、“1“または“O゛からなる2値化画像信号B
に変換された後、画像メモリBに格納される。
The digital signal A stored in the image memory 8 is sent to the binarization processing unit 7, where it is compared and discriminated with a predetermined level in pixel units, and is converted into a binarized image signal B consisting of "1" or "O".
After being converted into , it is stored in image memory B.

画像メモリBに格納された2値化画像信号Bは、2値画
像補正部9に送られ、画素単位で後述する補正処理によ
り補正画像信号Cに変換された後、画像メモリCに格納
される。
The binarized image signal B stored in the image memory B is sent to the binary image correction unit 9, and is converted into a corrected image signal C by a correction process described below on a pixel basis, and then stored in the image memory C. .

画像メモリCに格納された補正画像信号Cは、評価パラ
メータ算出部11に送られ、物体表面の平滑性を評価す
る評価パラメータが算出されて、プリンタ、フロッピー
デスク、CRT等からなる出力部12へ送られて出力さ
れる。
The corrected image signal C stored in the image memory C is sent to the evaluation parameter calculation unit 11, where evaluation parameters for evaluating the smoothness of the object surface are calculated, and sent to the output unit 12, which includes a printer, floppy desk, CRT, etc. sent and output.

なお、評価パラメータ算出部11での平滑度の評価は、
本出願人より出願された特願昭63−304号等に記載
の方法により、スリット画像の縁線データを抽出してお
こなわれる。すなわち、抽出された縁線の始点PMTと
終点PtH間の距1[11Dsと、縁線自体の道のりD
Lとの比DS/DLをパラメータとして算出し、このパ
ラメータの値が1に近い程、平滑であると判別される。
Note that the evaluation of the smoothness by the evaluation parameter calculation unit 11 is as follows:
This is done by extracting the edge line data of the slit image by the method described in Japanese Patent Application No. 1983-304 filed by the present applicant. That is, the distance 1[11Ds between the starting point PMT and the ending point PtH of the extracted edge line, and the distance D of the edge line itself.
The ratio DS/DL to L is calculated as a parameter, and the closer the value of this parameter is to 1, the smoother it is determined.

第3図は、2値画像補正部9で処理される2値化画像信
号Bの処理対象範囲を示す図である。
FIG. 3 is a diagram showing a processing target range of the binary image signal B processed by the binary image correction unit 9.

同図に示されるように、x、y座標で表した2値化画像
信号B(x、y)は、始点(a、b)と終点(c、d)
とで決定される矩形からなる補正領域について補正処理
される。
As shown in the figure, the binarized image signal B (x, y) expressed in x, y coordinates has a starting point (a, b) and an ending point (c, d).
Correction processing is performed on a correction area consisting of a rectangle determined by.

第4図は、2値画像補正部9の処理を示すフローチャー
トである。
FIG. 4 is a flowchart showing the processing of the binary image correction section 9.

同図に示されるように、補正処理は、補正領域の始点(
a、b)から終点(c、d)までの各画素について、そ
の画素を中心とするX方向21画素、y方向5雨素の総
計10505画素なる微小領域(サンプリングエリア)
について、その中に含まれる画素データ“1”を計数し
ておこなわれる。
As shown in the figure, the correction process starts at the starting point of the correction area (
For each pixel from a, b) to the end point (c, d), a micro area (sampling area) of 21 pixels in the X direction and 5 pixels in the y direction, a total of 10,505 pixels, centered on that pixel.
This is done by counting the pixel data "1" contained therein.

計数された値が第5図に示されるように高い閾(a65
、すなわち総計10505画素ち65画素を越えた場合
は、補正画像信号Cを“loにする。
The counted value is set to a high threshold (a65) as shown in FIG.
That is, if the total number of pixels exceeds 65 out of 10,505 pixels, the corrected image signal C is set to "lo".

計数値が低い閾値40、すなわち総計10505画素ち
40画素に満たない場合は、補正画像信号Cを“0”に
する、計数値が低い闇値40以上で高い闇値65以下の
場合は、2(a化画像信号Bの該当画素データをそのま
ま補正画像信号Cとする。
When the count value is less than the low threshold 40, that is, 40 pixels out of a total of 10505 pixels, the corrected image signal C is set to "0". When the count value is the low dark value 40 or more and the high dark value 65 or less, the corrected image signal C is set to 2. (The corresponding pixel data of the a-ized image signal B is used as the corrected image signal C.

ここで設定されている闇値は、被検査体3から得られる
画像データの状態や、後工程の評価パラメータ算出部1
1の要求に応じて最適な値が設定される。
The darkness value set here is based on the state of image data obtained from the inspected object 3 and the evaluation parameter calculation unit 1 in the post-process.
The optimum value is set according to the request of No. 1.

第6図は、実施例により得られた処理例を示す説明図で
あり、図aは補正前の2値化画像信号Bを表した画面、
図すは補正後の補正画像信号Cを表した画面である0図
では、画像上に発生していた微小な斑点で示されるノイ
ズ図形が削除されると同時に、画像中の図形周縁部形状
が変化することなくそのままに保たれていることが示さ
れている。
FIG. 6 is an explanatory diagram showing an example of processing obtained in the example, in which figure a is a screen showing the binarized image signal B before correction;
In Figure 0, which is a screen showing the corrected image signal C after correction, the noise figure represented by minute spots that had occurred on the image is deleted, and at the same time, the shape of the periphery of the figure in the image is changed. It is shown that it remains the same without any change.

このように実施例の補正装置によれば、平滑の評価をす
る前処理としてノイズ除去処理が、従来と同様に短時間
で処理できる。また、その際の画像の周縁形状がほとん
ど変化することなく、以後の評価パラメータ算出部11
での平滑度の評価に対する影響も解消され精度の良い評
価結果を得ることができる。
As described above, according to the correction device of the embodiment, noise removal processing can be performed in a short time as in the conventional method as a pre-processing for smoothing evaluation. In addition, the peripheral shape of the image at that time hardly changes, and the evaluation parameter calculation unit 11
The influence on smoothness evaluation is also eliminated, making it possible to obtain highly accurate evaluation results.

なお実施例の2値画像補正部9では、画素データ“1”
の比率を算出したが、この比率は画素データ“0”の比
率と補数の関係であるから、何れの比率であっても同義
であることはもちろんである。
Note that in the binary image correction unit 9 of the embodiment, pixel data “1”
However, since this ratio is the complement of the ratio of pixel data "0", it goes without saying that any ratio has the same meaning.

(発明の効果) この発明は、上記のように2値画像信号に含まれるノイ
ズを除去補正する際に、異なる2つの閤(aを設定し、
サンプリングエリアの濃度がこれらの闇値の間である場
合、該当画素の2値データをそのままにして出力するよ
うにしたことにより、画像の境界部形状が変化されるこ
とのないほぼ正値な画像信号を得ることができる効果が
得られる。
(Effects of the Invention) The present invention sets two different values (a) when correcting to remove noise contained in a binary image signal as described above.
When the density of the sampling area is between these dark values, the binary data of the corresponding pixel is output as is, resulting in an image with almost positive values without changing the shape of the image boundary. The effect of being able to obtain a signal is obtained.

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

第1図はクレーム対応図、第2図はこの発明にかかる実
施例の構成を示すブロック図、第3図は2値化画像信号
Bの処理対象範囲を示す図、第4図は2値画像補正部9
の処理を示すフローチャート、第5図は計数値とrkl
埴と出力の関係を示す図、第6図は処理前後の画像の変
化を示す説明図、第7.8.9図は従来の処理例を示す
図である。 101・・・・メモリ 102・・・・サンプリングエリア設定手段103・・
・・比率算出手段 104・・・・出力手段 lO5・・・・出力手段 106・・・・出力手段 !・・・・プロジェクタ 2・・・・拡散板 3・・・・被検査体 4・・・・撮像装置 5・・・・A/Dコンバータ 6・・・・画像メモリA 7・・・・2値化処理部 8・・・・画像メモリB 9・・・・2値画像補正部 IO・・・・画像メモリC 11・・・・評価パラメータ算出部 12・・・・出力部 特 代 許 出 理 願 人 日産自動車株式会社 人弁理士 和田成則
FIG. 1 is a complaint correspondence diagram, FIG. 2 is a block diagram showing the configuration of an embodiment according to the present invention, FIG. 3 is a diagram showing the processing target range of the binary image signal B, and FIG. 4 is a binary image Correction section 9
A flowchart showing the processing of
FIG. 6 is an explanatory diagram showing the change in the image before and after processing, and FIG. 7.8.9 is a diagram showing an example of conventional processing. 101...Memory 102...Sampling area setting means 103...
... Ratio calculation means 104 ... Output means lO5 ... Output means 106 ... Output means! ...Projector 2...Diffusion plate 3...Object to be inspected 4...Imaging device 5...A/D converter 6...Image memory A 7...2 Value conversion processing section 8... Image memory B 9... Binary image correction section IO... Image memory C 11... Evaluation parameter calculation section 12... Output section patent patent Counsel: Nissan Motor Co., Ltd. Patent Attorney Shigenori Wada

Claims (1)

【特許請求の範囲】[Claims] 1.ビデオ信号を所定のレベルと比較弁別して得られた
2値化画像信号を画素データとして格納するメモリと、 このメモリに格納された画素データの画素ごとに、その
画素をほぼ中心としたサンプリングエリアを設定する設
定手段と、 設定されたサンプリングエリアに該当する画素データを
メモリから読出し、その中に含まれる“1”および“0
”を示す画素データを計数して、エリア内における画素
データ“1”の比率を算出する算出手段と、 算出された画素データ“1”の比率が予め設定された範
囲内である場合は、中心画素に該当する画素データの内
容を中心画素に該当する画素データとしてそのまま出力
する出力手段と、 算出された画素データ“1”の比率が予め設定された範
囲を越えた場合は、中心画素に該当する画素データとし
て“1”を出力する出力手段と、算出された画素データ
“1”の比率が予め設定された範囲に満たない場合は、
中心画素に該当する画素データとして“0”を出力する
出力手段と、を備えたことを特徴とする画像信号補正装
置。
1. A memory that stores the binarized image signal obtained by comparing and discriminating the video signal with a predetermined level as pixel data, and a sampling area approximately centered on that pixel for each pixel of the pixel data stored in this memory. A setting means for setting and reading pixel data corresponding to the set sampling area from the memory and
a calculation means that counts pixel data indicating ``1'' and calculates the ratio of pixel data ``1'' within the area; An output means that outputs the content of pixel data corresponding to a pixel as it is as pixel data corresponding to a center pixel, and if the ratio of calculated pixel data "1" exceeds a preset range, it is output as pixel data corresponding to a center pixel. If the ratio between the output means that outputs "1" as pixel data and the calculated pixel data "1" is less than a preset range,
An image signal correction device comprising: output means for outputting "0" as pixel data corresponding to a center pixel.
JP63240053A 1988-09-26 1988-09-26 Picture signal correcting device Pending JPH0289187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63240053A JPH0289187A (en) 1988-09-26 1988-09-26 Picture signal correcting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63240053A JPH0289187A (en) 1988-09-26 1988-09-26 Picture signal correcting device

Publications (1)

Publication Number Publication Date
JPH0289187A true JPH0289187A (en) 1990-03-29

Family

ID=17053777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63240053A Pending JPH0289187A (en) 1988-09-26 1988-09-26 Picture signal correcting device

Country Status (1)

Country Link
JP (1) JPH0289187A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100416496B1 (en) * 1997-04-24 2004-04-14 삼성전자주식회사 Binarization method using multi-threshold value

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100416496B1 (en) * 1997-04-24 2004-04-14 삼성전자주식회사 Binarization method using multi-threshold value

Similar Documents

Publication Publication Date Title
US5305391A (en) Method of and apparatus for inspecting bottle or the like
JPH0766977A (en) Picture processing unit
JPH041866A (en) Method and device for image processing
CN108182400B (en) Dynamic display identification method and system for nixie tube
US4240107A (en) Apparatus and method for pattern information processing
JPH0289187A (en) Picture signal correcting device
EP0540018A2 (en) A cylindrical container inner surface tester based on an image processing technology
EP0599335A2 (en) Cylindrical container inner surface tester
JP2001235319A (en) Shading correcting apparatus and shading correcting method, and surface inspection apparatus
JP3433333B2 (en) Defect inspection method
JP2715897B2 (en) IC foreign matter inspection apparatus and method
JPH0319990B2 (en)
JP2625429B2 (en) Image processing method
JPH0645845Y2 (en) Automatic surface smoothness inspection device
JPH0687264B2 (en) Image binarization method
JPS6310277A (en) Picture quality inspection device
JP2723900B2 (en) Lens inspection method
JPH0129643Y2 (en)
JP2527481B2 (en) Image binarization processing device
JPS6179375A (en) Binarization system
JP2762724B2 (en) Appearance inspection device
JPS62115973A (en) Picture processing method and its device
JPH04367173A (en) Automatic discriminator for camera focus
JPS619765A (en) Picture image processor
JPS58160853A (en) Inspecting device