JPH11353482A - Image processing method and device - Google Patents
Image processing method and deviceInfo
- Publication number
- JPH11353482A JPH11353482A JP10156974A JP15697498A JPH11353482A JP H11353482 A JPH11353482 A JP H11353482A JP 10156974 A JP10156974 A JP 10156974A JP 15697498 A JP15697498 A JP 15697498A JP H11353482 A JPH11353482 A JP H11353482A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- affine
- line
- data
- digital 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
Links
- 238000003672 processing method Methods 0.000 title claims description 4
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 claims abstract description 30
- 238000002372 labelling Methods 0.000 claims abstract description 12
- 230000009466 transformation Effects 0.000 claims abstract description 10
- 238000000034 method Methods 0.000 claims description 8
- 230000005484 gravity Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 3
- 238000011156 evaluation Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、画像処理により対象物
体像を任意の複数の領域に分離する画像処理技術に関す
るものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing technique for separating an object image into a plurality of arbitrary areas by image processing.
【0002】[0002]
【従来の技術】対象物体像を複数の領域に分離すること
は、その後の必要な演算処理の高速化及び簡略化のため
にも重要な技術である。例えば、対象物体の大きさや形
状等を求める場合にも、対象物体像を任意の形状の領域
に予め分離した後、分離された各領域の外接座標を求め
る。また、対象物体像の重心線を求める場合にも、当該
画像を複数の領域に分離した後に、各種の処理を行うこ
とにより処理の高速化を図ることができる。2. Description of the Related Art Separating a target object image into a plurality of areas is an important technique for speeding up and simplifying subsequent necessary arithmetic processing. For example, when obtaining the size, shape, and the like of the target object, the target object image is separated into regions of an arbitrary shape in advance, and then the circumscribed coordinates of each separated region are obtained. Also, when obtaining the barycentric line of the target object image, the processing can be speeded up by performing various processing after separating the image into a plurality of regions.
【0003】[0003]
【発明が解決しようとする課題】一般に、様々な形状の
対象物の任意領域を評価する際には、各種の曲率半径を
もった扇状のデータと各種の矩形データとを合成した図
形データを用いて近似処理を行っていた。しかし、任意
領域の抽出及びその評価は、システム構成上、負荷が大
きくなってしまう。また、得られる近似値は実用に供す
るほどの精度を有していなかった。Generally, when evaluating arbitrary regions of an object having various shapes, graphic data obtained by combining fan-shaped data having various radii of curvature with various rectangular data is used. Approximation processing. However, the extraction of an arbitrary region and its evaluation increase the load due to the system configuration. Further, the obtained approximate value was not accurate enough to be put to practical use.
【0004】また、特開平9−114989には、対象
物体像を走査線に水平な領域に分離する画像処理装置が
開示されている。この装置によれば、対象物体像を高速
で複数の領域に分離でき、分離された領域毎のデータを
処理することにより、対象物体の重心線を高速で計測す
ることができる。しかしながら、対象物体像の形状や大
きさ等、計測すべき特徴量によっては、走査線に平行な
領域の分離のみでは不十分であった。[0004] Japanese Patent Application Laid-Open No. Hei 9-114989 discloses an image processing apparatus for separating a target object image into a region horizontal to a scanning line. According to this device, the target object image can be separated into a plurality of regions at a high speed, and by processing data for each of the separated regions, the center of gravity of the target object can be measured at a high speed. However, depending on the feature quantity to be measured, such as the shape and size of the target object image, it is not sufficient to separate only the area parallel to the scanning line.
【0005】従って、本発明の目的は、対象物体像を任
意の傾きを持つ領域に分離可能な画像処理方法を提供す
ることを第1の目的とする。Accordingly, it is a first object of the present invention to provide an image processing method capable of separating a target object image into a region having an arbitrary inclination.
【0006】本発明の第2の目的は、対象物体像を任意
の傾きを持つ領域に分離可能な画像処理装置を提供する
ことにある。A second object of the present invention is to provide an image processing apparatus capable of separating a target object image into a region having an arbitrary inclination.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に、本発明の第1の態様に係る画像処理方法において
は、対象アナログ画像データをデジタル画像データに変
換し;前記デジタル画像データを2値化し;アフィン変
換により前記2値化されたデジタル画像データをフレー
ム上で任意の角度に傾斜させ;前記傾斜した画像データ
を一定のライン置きに無効とすることにより、短冊状の
有効ラインデータを生成し;前記有効ラインデータで構
成される有効画像データをアフィン変換により元の位置
に戻すことにより、前記デジタル画像データを傾斜した
短冊状領域に分離する。In order to achieve the above object, in an image processing method according to a first aspect of the present invention, target analog image data is converted into digital image data; The digital image data binarized by the affine transformation is tilted at an arbitrary angle on the frame; and the slanted image data is invalidated at a fixed line interval, whereby strip-shaped effective line data is converted. Generating; returning the effective image data composed of the effective line data to the original position by affine transformation, thereby separating the digital image data into slanted strip regions.
【0008】また、本発明の第2の態様に係る画像処理
装置は、対象アナログ画像データをデジタル画像データ
に変換するA/D変換器と;前記デジタル画像データを
2値化する2値化処理器と;前記2値化された画像デー
タを記憶するフレームメモリと;前記フレームメモリに
記憶されたデジタル画像データをアフィン変換によりフ
レーム上で任意の角度に傾斜させる第1のアフィン変換
器と;前記傾斜した画像データを一定のライン置きに無
効とすることにより、短冊状の有効ラインデータを生成
するライン選択手段と;前記有効ラインデータで構成さ
れる有効画像データをアフィン変換により元の位置に戻
すことにより、前記デジタル画像データを傾斜した短冊
状領域に分離する第2のアフィン変換器とを備えてい
る。An image processing apparatus according to a second aspect of the present invention includes an A / D converter for converting target analog image data into digital image data; and a binarization process for binarizing the digital image data. A frame memory for storing the binarized image data; a first affine converter for inclining digital image data stored in the frame memory at an arbitrary angle on a frame by affine transformation; A line selecting means for generating strip-shaped effective line data by invalidating the inclined image data at every fixed line; and returning the effective image data composed of the effective line data to the original position by affine transformation A second affine converter for separating the digital image data into slanted strip regions.
【0009】以上のように、本発明においては、デジタ
ル画像データを任意の角度に傾斜させた後に、例えば、
走査線と水平な方向に当該画像を分離する。その後、分
離された画像データを元の位置に戻す。これにより、対
象物体像を走査線から任意角度傾斜した領域に分離する
ことができる。その結果、様々な形状の対象物の評価、
計測を容易且つ高速に行うことができる。As described above, according to the present invention, after the digital image data is inclined at an arbitrary angle, for example,
The image is separated in a direction parallel to the scanning line. Thereafter, the separated image data is returned to the original position. Thereby, the target object image can be separated into a region inclined at an arbitrary angle from the scanning line. As a result, evaluation of various shaped objects,
Measurement can be performed easily and at high speed.
【0010】[0010]
【発明の実施の形態】本発明の実施の形態について、以
下に示す実施例に基づいて詳細に説明する。なお、本実
施例は対象物体像の重心線の算出に本発明を適用したも
のである。DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described in detail with reference to the following examples. In this embodiment, the present invention is applied to the calculation of the barycentric line of the target object image.
【0011】[0011]
【実施例】図1は、本発明の実施例に係る画像処理シス
テム10の構成を示す。この画像処理システム10は、
対象となる物体画像を撮像するテレビカメラ12と、こ
のテレビカメラ12の出力端子に接続されたA/D変換
器14と、A/D変換器14の出力端子に接続された2
値化処理器16と、2値化処理器16の出力端子に接続
されたフレームメモリ18と、フレームメモリ18の出
力端子に接続された第1のアフィン変換器20と、第1
のアフィン変換器20の出力端子に接続されたライン選
択手段22と、ライン選択手段22の出力端子に接続さ
れた第2のアフィン変換器24と、第2のアフィン変換
器24の出力端子に接続されたラベリング処理器26
と、ラベリング処理器26の出力端子に接続された特徴
量抽出器28とを備えている。FIG. 1 shows the configuration of an image processing system 10 according to an embodiment of the present invention. This image processing system 10
A television camera 12 for capturing an object image to be processed, an A / D converter 14 connected to an output terminal of the television camera 12, and an A / D converter 14 connected to an output terminal of the A / D converter 14.
A binarization processor 16, a frame memory 18 connected to an output terminal of the binarization processor 16, a first affine converter 20 connected to an output terminal of the frame memory 18,
And a second affine converter 24 connected to the output terminal of the line selecting means 22 and an output terminal of the second affine converter 24 connected to the output terminal of the affine converter 20. Labeling processor 26
And a feature amount extractor 28 connected to the output terminal of the labeling processor 26.
【0012】物体画像を撮像する手段としては、テレビ
カメラ12以外の機器を使用することができる。A/D
変換器14は、テレビカメラ12で撮像されたアナログ
画像データをデジタル画像データに変換する。2値化処
理器16は、A/D変換器14から出力されるデジタル
画像データを2値化する。2値化処理器16から出力さ
れる2値化データはフレームメモリ18に記憶される。
フレームメモリ18に一時的に記憶された画像データ
は、第1のアフィン変換器20によって所定角度傾斜す
るように回転される。As a means for capturing an object image, a device other than the television camera 12 can be used. A / D
The converter 14 converts analog image data captured by the television camera 12 into digital image data. The binarization processor 16 binarizes the digital image data output from the A / D converter 14. The binarized data output from the binarization processor 16 is stored in the frame memory 18.
The image data temporarily stored in the frame memory 18 is rotated by the first affine converter 20 so as to be inclined by a predetermined angle.
【0013】ライン選択手段22においては、アフィン
変換器20から供給される画像データのうち、所定数の
ライン置きの1又は複数ラインが無効とされ、無効とさ
れたラインによって分離されたラインが有効とされる。
有効とされたラインによって有効画像データが形成され
る。第2のアフィン変換器24は、ライン選択手段22
から出力される有効画像データを元の位置まで回転させ
る。The line selecting means 22 invalidates one or more lines every predetermined number of lines of the image data supplied from the affine converter 20, and activates the lines separated by the invalidated lines. It is said.
The valid lines form valid image data. The second affine converter 24 is connected to the line selecting unit 22.
Is rotated to the original position.
【0014】ラベリング処理器26は、アフィン変換器
24から出力された画像データに対して各分離領域毎に
ラベルを付す。ラベリング処理された領域データは、特
徴量抽出器28に供給され、各領域毎に所定の特徴量が
抽出される。特徴量抽出器28は、例えば図2に示すよ
うに、外接長方形座標計測器28aと重心演算器28b
とで構成することができる。外接長方形座標計測器28
aは、ラベルが付された各領域データの外接長方形の4
点の座標を計測する。重心演算器28bは、各領域デー
タの座標(4点)に基づいて各領域の重心座標を算出す
る。The labeling processor 26 labels the image data output from the affine transformer 24 for each separation area. The area data subjected to the labeling process is supplied to the feature amount extractor 28, and a predetermined feature amount is extracted for each area. As shown in FIG. 2, for example, the feature quantity extractor 28 includes a circumscribed rectangular coordinate measuring device 28a and a centroid calculator 28b.
And can be composed of Bounding rectangular coordinate measuring instrument 28
a is the circumscribed rectangle 4 of each area data with a label
Measure the coordinates of the point. The center-of-gravity calculator 28b calculates the center-of-gravity coordinates of each area based on the coordinates (four points) of each area data.
【0015】次に、上記のように構成された画像処理シ
ステムによる重心線算出動作について、図3及び図4を
参照して説明する。まず、処理を開始するに先立ち、シ
ステム内の各部のデータを初期化する(S1)。次に、
テレビカメラ12によって撮像された対象物体像のアナ
ログ信号をA/D変換器14に供給し、デジタル信号に
変換する(S2)。Next, the operation of calculating the center of gravity of the image processing system configured as described above will be described with reference to FIGS. First, before starting the process, data of each unit in the system is initialized (S1). next,
The analog signal of the target object image captured by the television camera 12 is supplied to the A / D converter 14 and converted into a digital signal (S2).
【0016】デジタル信号に変換された画像データは、
2値化処理器16によって2値化される(S3)。当該
2値化データはフレームメモリ18に一時的に記憶され
る(S4)。フレームメモリ18に記憶された画像デー
タは、第1のアフィン変換器20によって所定角度傾斜
するように回転される(S5)(図4参照)。アフィン
変換された画像データは、ライン選択手段22に供給さ
れる。ライン選択手段22は、ラインデータを取り込み
(S6)、その画素が無効とされるべきラインであると
判定したときには、その画素の信号を無効信号に置き換
える(S7)。このような動作を最終ラインまで行い、
最終ラインの取り込みが終了した時点で、有効信号によ
って構成される有効画像データ(図4参照)を、第2の
アフィン変換器24によって元の位置まで回転する(S
8)(図4参照)。The image data converted into a digital signal is
The image is binarized by the binarization processor 16 (S3). The binarized data is temporarily stored in the frame memory 18 (S4). The image data stored in the frame memory 18 is rotated by the first affine converter 20 so as to be inclined by a predetermined angle (S5) (see FIG. 4). The affine-transformed image data is supplied to the line selection unit 22. The line selecting means 22 fetches the line data (S6), and when determining that the pixel is a line to be invalidated, replaces the signal of the pixel with an invalid signal (S7). Perform this operation until the last line,
At the point in time when the capture of the last line is completed, the effective image data (see FIG. 4) constituted by the effective signal is rotated to the original position by the second affine converter 24 (S
8) (see FIG. 4).
【0017】第2のアフィン変換器24の出力画像デー
タは、ラベリング処理器26によってラベリング処理さ
れる(S9)。これにより、対象物体像を構成する面が
分離されることになる。ラベリング処理器26によって
ラベルを付された画像データは、外接長方形座標計測器
28aによって、各領域毎に外接長方形の4点の座標を
求められる(S10)。これにより、対象物体像を構成
する面の位置が検出されることになる。The output image data of the second affine converter 24 is subjected to a labeling process by a labeling processor 26 (S9). As a result, the surfaces constituting the target object image are separated. With respect to the image data labeled by the labeling processor 26, the coordinates of four points of the circumscribed rectangle are obtained for each region by the circumscribed rectangle coordinate measuring device 28a (S10). Thus, the position of the surface forming the target object image is detected.
【0018】重心演算器28bは、上記のように検出さ
れた面の重心(外接長方形の中心)座標を演算によって
求め(S11)、出力する(S11)。上記の動作を1
フレーム分、パイプライン的に繰り返すことにより、上
述の動作で求めた重心が連なった対象物体像の重心線を
算出する。なお、本実施例においては、対象物体像が1
つの場合について述べたが、対象物体像が複数の場合で
も同様に処理を行うことができる。The center-of-gravity calculator 28b calculates the coordinates of the center of gravity (the center of the circumscribed rectangle) of the surface detected as described above (S11) and outputs it (S11). Perform the above operation 1
By repeating in a pipeline for the number of frames, the barycentric line of the target object image in which the barycenters obtained by the above-described operation are connected is calculated. In this embodiment, the target object image is 1
Although two cases have been described, the same processing can be performed even when there are a plurality of target object images.
【0019】[0019]
【発明の効果】以上説明したように本発明によれば、対
象物体像を任意角度傾斜した領域に分離し、当該画像の
各種の特徴量を容易かつ高速で計測できるという効果が
ある。As described above, according to the present invention, there is an effect that the target object image is divided into regions inclined at an arbitrary angle, and various feature amounts of the image can be measured easily and at high speed.
【図面の簡単な説明】[Brief description of the drawings]
【図1】本発明の実施例に係る画像処理システムの構成
を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an image processing system according to an embodiment of the present invention.
【図2】実施例の要部の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of a main part of the embodiment.
【図3】実施例の全体動作を示すフローチャートであ
る。FIG. 3 is a flowchart illustrating an overall operation of the embodiment.
【図4】実施例の動作を視覚的(イメージ的)に示す説
明図である。FIG. 4 is an explanatory diagram visually (imaging) the operation of the embodiment.
10 画像処理システム 12 テレビカメラ(撮像手段) 14 A/D変換器 16 2値化処理器 18 フレームメモリ 20 第1のアフィン変換器 22 ライン選択手段 24 第2のアフィン変換器 26 ラベリング処理器 28 特徴量抽出器 28a 外接長方形座標計測器 28b 重心演算器 DESCRIPTION OF SYMBOLS 10 Image processing system 12 Television camera (imaging means) 14 A / D converter 16 Binary processing unit 18 Frame memory 20 First affine converter 22 Line selecting means 24 Second affine converter 26 Labeling processor 28 Features Quantity extractor 28a circumscribed rectangular coordinate measuring instrument 28b center of gravity calculator
Claims (4)
ータに変換する工程と;前記デジタル画像データを2値
化する工程と;アフィン変換により前記2値化されたデ
ジタル画像データをフレーム上で任意の角度に傾斜させ
る工程と;前記傾斜した画像データを一定のライン置き
に無効とすることにより、短冊状の有効ラインデータを
生成する工程と;前記有効ラインデータで構成される有
効画像データをアフィン変換により元の位置に戻すこと
により、前記デジタル画像データを傾斜した短冊状領域
に分離する工程とを含むことを特徴とする画像処理方
法。A step of converting the target analog image data into digital image data; a step of binarizing the digital image data; and a step of converting the binarized digital image data by affine transformation into an arbitrary angle on a frame. Generating a strip-shaped effective line data by invalidating the skewed image data at regular intervals; and performing affine transformation on the effective image data composed of the effective line data. Separating the digital image data into slanted strip-shaped regions by returning to the original position.
て元の位置に戻した後に、前記分離された領域毎にラベ
リング処理を施す工程と;前記ラベルを付された各領域
毎にその重心を演算する工程と;各領域の重心位置から
前記対象画像データの重心線を算出する工程とを更に含
むことを特徴とする請求項1に記載の画像処理方法。2. A step of performing a labeling process on each of the separated areas after returning the effective image data to an original position by affine transformation; and calculating a center of gravity of each of the labeled areas. 2. The image processing method according to claim 1, further comprising: calculating a barycentric line of the target image data from a barycentric position of each region.
ータに変換するA/D変換器と;前記デジタル画像デー
タを2値化する2値化処理器と;前記2値化された画像
データを記憶するフレームメモリと;前記フレームメモ
リに記憶されたデジタル画像データをアフィン変換によ
りフレーム上で任意の角度に傾斜させる第1のアフィン
変換器と;前記傾斜した画像データを一定のライン置き
に無効とすることにより、短冊状の有効ラインデータを
生成するライン選択手段と;前記有効ラインデータで構
成される有効画像データをアフィン変換により元の位置
に戻すことにより、前記デジタル画像データを傾斜した
短冊状領域に分離する第2のアフィン変換器とを備えた
ことを特徴とする画像処理装置。3. An A / D converter for converting target analog image data into digital image data; a binarization processor for binarizing the digital image data; and storing the binarized image data. A frame memory; a first affine converter for tilting the digital image data stored in the frame memory at an arbitrary angle on the frame by affine transformation; and invalidating the tilted image data at regular intervals. A line selecting means for generating strip-shaped effective line data; and returning the effective image data composed of the effective line data to the original position by affine transformation, thereby converting the digital image data into an inclined strip region. An image processing apparatus, comprising: a second affine converter for separating.
変換器によって元の位置に戻した後に、前記分離された
領域毎にラベリング処理を施すラベリング処理器と;前
記ラベルを付された各領域毎にその重心を演算する重心
演算器とを更に備え、各領域の重心位置から前記対象画
像データの重心線を算出することを特徴とする請求項3
に記載の画像処理装置。4. A labeling processor for performing a labeling process for each of the separated areas after returning the effective image data to the original position by the second affine transformer; and each of the labeled areas. 4. A center-of-gravity calculator for calculating a center of gravity of each area, wherein a center-of-gravity line of the target image data is calculated from a center of gravity of each area.
An image processing apparatus according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10156974A JPH11353482A (en) | 1998-06-05 | 1998-06-05 | Image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10156974A JPH11353482A (en) | 1998-06-05 | 1998-06-05 | Image processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH11353482A true JPH11353482A (en) | 1999-12-24 |
Family
ID=15639409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10156974A Pending JPH11353482A (en) | 1998-06-05 | 1998-06-05 | Image processing method and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH11353482A (en) |
-
1998
- 1998-06-05 JP JP10156974A patent/JPH11353482A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5081689A (en) | Apparatus and method for extracting edges and lines | |
JP2006071471A (en) | Moving body height discrimination device | |
JPH0658716A (en) | Detecting method of edge on image | |
US6650362B1 (en) | Movement detecting apparatus with feature point extractor based on luminance gradient in current frame | |
KR100631082B1 (en) | Method for acquiring three-dimensional image information using single camera and video traffic monitoring method using the same | |
JPH11353482A (en) | Image processing method and device | |
JP3627249B2 (en) | Image processing device | |
JP2002042142A (en) | Distance measurement device and monitoring device using it | |
JP2961140B2 (en) | Image processing method | |
JPH08161508A (en) | Pattern detecting method | |
JP3016687B2 (en) | Image processing device | |
JP2000194861A (en) | Method and device for recognizing image | |
JP2776234B2 (en) | Indentation type hardness measuring device | |
JP3223385B2 (en) | Pattern matching device for grayscale images | |
JP3721681B2 (en) | Template matching method and apparatus | |
JPH0534117A (en) | Image processing method | |
JPH0312788A (en) | Traveling object detecting device | |
JPH09245166A (en) | Pattern matching device | |
JP3566016B2 (en) | Image processing device | |
JP2959017B2 (en) | Circular image discrimination method | |
JPH11259641A (en) | Method for observing body, body observing device using the same method, and vehicle observing device | |
JP3112693B2 (en) | Figure number calculation device and figure number calculation method | |
JPH1079035A (en) | Specific object extracting device | |
JPH10105677A (en) | Method and device for joining pictures | |
JP2003281538A (en) | Image processor, image inspecting method and printing failure detecting method |