JPH03280172A - Picture processing area setting method - Google Patents

Picture processing area setting method

Info

Publication number
JPH03280172A
JPH03280172A JP7900290A JP7900290A JPH03280172A JP H03280172 A JPH03280172 A JP H03280172A JP 7900290 A JP7900290 A JP 7900290A JP 7900290 A JP7900290 A JP 7900290A JP H03280172 A JPH03280172 A JP H03280172A
Authority
JP
Japan
Prior art keywords
processing area
coordinate
horizontal line
setting
processing
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
JP7900290A
Other languages
Japanese (ja)
Inventor
Masahiko Fukao
深尾 正彦
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.)
Takaoka Toko Co Ltd
Original Assignee
Takaoka Electric Mfg 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 Takaoka Electric Mfg Co Ltd filed Critical Takaoka Electric Mfg Co Ltd
Priority to JP7900290A priority Critical patent/JPH03280172A/en
Publication of JPH03280172A publication Critical patent/JPH03280172A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To set plural partial areas of optional shapes as processing areas, and to shorten time required for setting as well by making data necessitated for setting the picture processing area into a pair of a left edge coordinate and a right edge coordinate to define the processing area of a horizontal line for every horizontal line. CONSTITUTION:A coordinate generating part 18 outputs Y-coordinate to a processing area memory 13 and X-coordinate to a coordinate coincidence detecting part respectively. At that time, the processing area memory 13 in which the processing area of the horizontal line is set by a pair of the left edge coordinate and the right edge coordinate for every horizontal line outputs the first left edge coordinate of the Y-th horizontal line to a coordinate coincidence detecting part 20. The coordinate coincidence detecting part 20 compares X-coordinate from the coordinate generating part 18 with the left edge coordinate from the processing area memory 13, and in the case of coincidence, it outputs the coordinate subsequent to this coordinate to a picture processing part 21 to execute the processing as the processing area. Thus, the time required for setting is shortened, and the shape of the processing area is set optionally.

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は、画像処理における画像処理領域の設定方法に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a method for setting an image processing area in image processing.

「従来の技術」 画像処理では、画像入力装置から入力されたあるいは、
入力されて蓄積されている画像データの中から必要とす
る部分領域のみを選択して処理したい場合が多い。
"Prior art" In image processing, input from an image input device or
In many cases, it is desired to select and process only a necessary partial area from input and stored image data.

従来の画像処理領域の設定方法を第3図、第4図に示す
A conventional method of setting an image processing area is shown in FIGS. 3 and 4.

第3図において、画像データ1〕に対する処理領域12
はラスタースキャン方式の画像処理実行時、最初に読み
出される画素P1のX座標、Y座標(Xmin、 Ym
in)と最後に読み出される画素P2のX座標、Y座標
(Xmax、 Ymax)で定義される単一の矩形領域
である。Xm1n、 Ymin、 XmaX、 Yma
Xを処理領域メモリ13に設定を行うことによって処理
領域12の設定を行う。
In FIG. 3, processing area 12 for image data 1]
are the X and Y coordinates (Xmin, Ym
in) and the X and Y coordinates (Xmax, Ymax) of the pixel P2 to be read out last. Xm1n, Ymin, XmaX, Yma
The processing area 12 is set by setting X in the processing area memory 13.

第4図は、画像データ11と同一の画像サイズを持つマ
スクパターンデータバッファメモリ14に1画素単位に
処理の実行/不実行を示すマスクパターン15を設定す
ることによって処理領域12の設定を行う。
In FIG. 4, the processing area 12 is set by setting a mask pattern 15 indicating execution/non-execution of processing on a pixel basis in a mask pattern data buffer memory 14 having the same image size as the image data 11.

「発明が解決しようとする課題J 第3図に示す方法は、4座標の設定なので、設定に要す
る時間は小さいが、処理領域が単一の矩形領域に限定さ
れるという問題点かあり、第4図に示す方法は、1画素
単位の設定を行うため、任意の形状及び複数の部分領域
を処理領域とすることができるが、設定に要する時間が
大きいという問題点があった。
"Problem to be Solved by the Invention J The method shown in Figure 3 uses four coordinates, so the time required for setting is small, but there is a problem that the processing area is limited to a single rectangular area. The method shown in FIG. 4 performs setting on a pixel-by-pixel basis, so that an arbitrary shape and a plurality of partial areas can be used as processing areas, but there is a problem in that the setting takes a long time.

「課題を解決するための手段」 これらの問題点を解決するなめに本発明は、画像処理領
域の設定に必要なデータを水平ライン毎に水平ラインの
処理領域を定義する左エツジ座標と右エツジ座標の組と
している。
``Means for Solving the Problems'' In order to solve these problems, the present invention provides data necessary for setting the image processing area for each horizontal line, including left edge coordinates and right edge coordinates that define the processing area of the horizontal line. It is a set of coordinates.

「作用」 つまり、画像処理領域の設定データをエツジ座標のみに
圧縮しているため、設定に要する時間も少なく任意の形
状及び複数の部分領域を処理領域とすることができる。
"Operation" That is, since the setting data of the image processing area is compressed to only the edge coordinates, the time required for setting is short and any shape and a plurality of partial areas can be used as the processing area.

「実施例」 第1図に本発明による画像処理領域の設定方法を示す。"Example" FIG. 1 shows a method for setting an image processing area according to the present invention.

水平方向にm画素、垂直方向にn画素を有する画像デー
タ11に対する処理領域12の設定を行う時、水平ライ
ン毎にに組の左エツジ座標と右エツジ座標の組をn94
7分格納する処理領域メモリ13に対して以下の設定を
行う。
When setting the processing area 12 for image data 11 having m pixels in the horizontal direction and n pixels in the vertical direction, a set of left edge coordinates and right edge coordinates is set for each horizontal line by n94.
The following settings are made for the processing area memory 13 that stores 7 minutes.

画像データ11に対してラスタースキャン方式の画像処
理を行う時、(Xio、Yjo)である画素が最初に処
理される。このXioを処理領域メモリ13のjライン
の最初のメモリに第1左エツジ座標として設定する。
When performing raster scan image processing on the image data 11, the pixel (Xio, Yjo) is processed first. This Xio is set in the first memory of the j line of the processing area memory 13 as the first left edge coordinate.

本座標以降、(Xi2−1.Yjo)の画素までが処理
領域として定義され、スキャンが同一ラインの(×2、
YJO)の画素に達した時、非処理領域となる。このX
i2をjラインの2番目のメモリに設定する。
After this coordinate, the area up to the (Xi2-1.Yjo) pixel is defined as the processing area, and the scan is performed on the same line (x2, Yjo).
When the pixel YJO) is reached, it becomes a non-processing area. This X
Set i2 to the second memory of the j line.

同様にjラインの処理領域メモリの3番目には×7.4
番目にはXi8を設定する。これより以降、同一ライン
上で処理領域かない場合は、スキャンするX座標と一致
しないX座標、例えばmより大きな座標を設定する。
Similarly, the third processing area memory for the j line has ×7.4
Set Xi8 as the second. From this point on, if there is no processing area on the same line, set an X coordinate that does not match the scanned X coordinate, for example, a coordinate larger than m.

以降、処理領域を含むすべての水平ラインに対して同様
の設定を行うことによって処理領域を定義する。
Thereafter, the processing area is defined by performing similar settings for all horizontal lines including the processing area.

処理領域の変更をする場合、該当する水平ラインのエツ
ジ座標単位で書き換えを行う。
When changing the processing area, rewriting is performed in units of edge coordinates of the corresponding horizontal line.

第2図は、本発明による画像処理領域の設定を具体的に
実施するための一楕成例を示すものである。
FIG. 2 shows an example of an ellipse for concretely implementing the setting of an image processing area according to the present invention.

画像入力装置16あるいは、座標生成部18によって画
像メモリ17から入力された画像データに対して、必要
とする処理領域のラスタースキャン方式の画像処理を行
う時、座標生成部18は、処理領域メモリ13に対して
Y座標、座標一致検出部に対してX座標を出力する。
When image data input from the image memory 17 by the image input device 16 or the coordinate generation unit 18 is subjected to raster scan image processing of a required processing area, the coordinate generation unit 18 uses the processing area memory 13 The Y coordinate is output to the coordinate matching detection unit, and the X coordinate is output to the coordinate matching detection unit.

水平ライン毎に水平ラインの処理領域を左エツジ座標及
び右エツジ座標の組によって設定されている処理領域メ
モリ13は、この時、Y番目の水平ラインの最初の左エ
ツジ座標を座標一致検出部20に出力する。座標一致検
出部20は、座標生成部18からのX座標と処理領域メ
モリ13からの左エツジ座標との比較を行い、一致した
場合、本座標以降を処理領域として処理の実行を画像処
理部21に出力する。
At this time, the processing area memory 13, in which the horizontal line processing area is set for each horizontal line by a set of left edge coordinates and right edge coordinates, determines the first left edge coordinate of the Y-th horizontal line by the coordinate matching detection unit 20. Output to. The coordinate coincidence detection unit 20 compares the X coordinate from the coordinate generation unit 18 with the left edge coordinate from the processing area memory 13, and if they match, the image processing unit 21 determines that the coordinates after the coordinates are the processing area and executes the process. Output to.

左エツジ座標と一致後、処理領域メモリ13は処理領域
メモリアドレス生成部19によって1アドレス、インク
リメントされて、右エツジ座標を座標一致検出部20に
出力する。座標一致検出部20において、この右エツジ
座標と座標生成部18から入力されるX座標との比較を
行い、一致した場合は、本画素以降を非処理領域として
本画像処理部21に処理の不実行を出力する。
After matching the left edge coordinates, the processing area memory 13 is incremented by one address by the processing area memory address generation section 19 and outputs the right edge coordinates to the coordinate matching detection section 20. The coordinate match detection unit 20 compares this right edge coordinate with the X coordinate input from the coordinate generation unit 18, and if they match, the main image processing unit 21 determines that the area after this pixel is a non-processing area. Output execution.

以降、水平ラインのスキャンが終了するまで繰り返し、
1水平ラインの終了後、処理領域メモリアドレス生成部
19は、クリアされて次のラインの最初の左エツジ座標
のメモリアドレスを出力する。このように、必要とする
処理領域を包含するラスタースキャンを行うことによっ
て所要の処理領域の画像処理を実現する。
From then on, repeat until the horizontal line scan is completed.
After one horizontal line ends, the processing area memory address generation unit 19 is cleared and outputs the memory address of the first left edge coordinate of the next line. In this way, image processing of the required processing area is realized by performing raster scanning that includes the required processing area.

「発明の効果」 本発明によれば、設定データが、処理領域を定義するの
に最低限必要とされる水平ライン毎の左右側エツジ座標
なので、設定に要する時間も少なく、処理領域の形状か
任意に設定できる。そのため、画像毎に処理領域が異な
る画像処理が必要とされ、処理領域が複数の部分領域よ
り成り立っていたり、各々の部分領域が任意の形状をな
している場合、従来の方式に比較して短時間に処理領域
を設定できる。
"Effects of the Invention" According to the present invention, the setting data is the left and right edge coordinates for each horizontal line, which are the minimum required to define the processing area, so the time required for setting is short and the shape of the processing area is Can be set arbitrarily. Therefore, when image processing is required with different processing areas for each image, and when the processing area is made up of multiple partial areas or each partial area has an arbitrary shape, it is shorter than the conventional method. You can set the processing area according to time.

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

第1図は、本発明による画像処理領域の設定方法 第2図は、本発明の実施例 第3図は、従来の画像処理領域の設定方法(その1) 第4図は、従来の画像処理領域の設定方法(その2) 11・・・・・・・・・画像データ 12・・・・・・・・・処理領域 13・・・・・・・・処理領域メモリ 14・・・・・・・・・マスクパターンデータバッファ
メモ15・・・・・・・・・マスクパターン16・・・
・・・・・・画像入力装置 17・・・・・・・・・画像メモリ 18・・・・・・・・・座標生成部 19・・・・・・・・・処理領域メモリアドレス生成部
20・・・・・・・・・座標一致検出部21・・・・・
・・・・画像処理部 ワ
FIG. 1 shows a method for setting an image processing area according to the present invention. FIG. 2 shows an embodiment of the present invention. FIG. 3 shows a conventional method for setting an image processing area (part 1). Area setting method (Part 2) 11... Image data 12... Processing area 13... Processing area memory 14... ...Mask pattern data buffer memo 15...Mask pattern 16...
. . . Image input device 17 . . . Image memory 18 . . . Coordinate generation section 19 . . . Processing area memory address generation section 20...Coordinate coincidence detection unit 21...
...Image processing section

Claims (1)

【特許請求の範囲】[Claims]  画像処理領域の設定において、水平ライン毎の処理領
域のエッジ座標を左より奇数番目の画素の場合は左エッ
ジ座標、偶数番目の画素の場合は、右エッジ座標として
メモリに格納しておいた後、画像処理がラスタースキャ
ン方式で行われる時、前記メモリよりスキャンしている
水平ラインのエッジ座標を読みだし、このエッジ座標と
スキャンしている水平ラインの水平座標とを比較し、左
エッジ座標と一致した場合は、本画素以降を処理領域と
し、右エッジ座標と一致した場合は、本画素より一つ前
の画素までを処理領域とする処理領域の水平ラインのエ
ッジ座標入力による1水平ライン1画素単位での処理領
域の設定を特徴とする画像処理領域設定方法。
When setting the image processing area, store the edge coordinates of the processing area for each horizontal line in memory as left edge coordinates for odd-numbered pixels from the left, and right edge coordinates for even-numbered pixels. When image processing is performed using the raster scan method, the edge coordinates of the horizontal line being scanned are read from the memory, the edge coordinates are compared with the horizontal coordinates of the horizontal line being scanned, and the left edge coordinates and the left edge coordinates are compared. If they match, the processing area is from this pixel onwards, and if it matches the right edge coordinates, the processing area is from the current pixel to the previous pixel. 1 horizontal line 1 by inputting the edge coordinates of the horizontal line of the processing area An image processing area setting method characterized by setting a processing area in pixel units.
JP7900290A 1990-03-29 1990-03-29 Picture processing area setting method Pending JPH03280172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7900290A JPH03280172A (en) 1990-03-29 1990-03-29 Picture processing area setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7900290A JPH03280172A (en) 1990-03-29 1990-03-29 Picture processing area setting method

Publications (1)

Publication Number Publication Date
JPH03280172A true JPH03280172A (en) 1991-12-11

Family

ID=13677746

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7900290A Pending JPH03280172A (en) 1990-03-29 1990-03-29 Picture processing area setting method

Country Status (1)

Country Link
JP (1) JPH03280172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06130644A (en) * 1992-10-14 1994-05-13 Dainippon Screen Mfg Co Ltd Pattern collection plate output processor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0413749A (en) * 1990-05-02 1992-01-17 Sumitomo Dow Ltd Flame-retarding resin composition

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0413749A (en) * 1990-05-02 1992-01-17 Sumitomo Dow Ltd Flame-retarding resin composition

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06130644A (en) * 1992-10-14 1994-05-13 Dainippon Screen Mfg Co Ltd Pattern collection plate output processor

Similar Documents

Publication Publication Date Title
JP2591984B2 (en) Pattern recognition device
JPH06325162A (en) Image processor
JPH03280172A (en) Picture processing area setting method
JPS58163078A (en) Line thinning processing system
JPH05151350A (en) Method for correcting position distortion of image data
JP2705052B2 (en) Pattern inspection equipment
JP2938217B2 (en) Image processing device
JPS62210596A (en) Split pattern matching method
JPH0762795B2 (en) Image extractor
JPH01213768A (en) Character array detecting device
JP2785269B2 (en) Noise removal device
JPH01245366A (en) Labeling processing system
JPS60162379A (en) Control method for picture memory access
JPH06105155A (en) Binarization device for luminance signal
JPH04168577A (en) Image processing device
JPS6255779A (en) Smoothing circuit
JPH0550031B2 (en)
JPS6093572A (en) Graphic selective image processor
JPH03150675A (en) Labeling of connection zone and circumscribed rectangle calculation device
JPH03269773A (en) Picture element/vector converter and converting method
JPS61193267A (en) Shape extraction method
JPS63206878A (en) Image processor
JPH04360287A (en) Binary image processor
JPH03241474A (en) Image processor
JPH03206573A (en) Image labeling processor