JPH06347420A - Image area cutting-out device - Google Patents

Image area cutting-out device

Info

Publication number
JPH06347420A
JPH06347420A JP5140612A JP14061293A JPH06347420A JP H06347420 A JPH06347420 A JP H06347420A JP 5140612 A JP5140612 A JP 5140612A JP 14061293 A JP14061293 A JP 14061293A JP H06347420 A JPH06347420 A JP H06347420A
Authority
JP
Japan
Prior art keywords
image
information
frame
significant
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.)
Withdrawn
Application number
JP5140612A
Other languages
Japanese (ja)
Inventor
Riyouichi Danki
亮一 段木
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.)
JFE Steel Corp
Original Assignee
Kawasaki Steel Corp
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 Kawasaki Steel Corp filed Critical Kawasaki Steel Corp
Priority to JP5140612A priority Critical patent/JPH06347420A/en
Publication of JPH06347420A publication Critical patent/JPH06347420A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate redundant processing, and maintain constant high speed processing regardless of dimensions of significant information by cutting out image information after it is enlarged or thinned out according to a condition of whether or not a rectangular image area containing a significant image enters the prescribed image frame. CONSTITUTION:Digital image information after A/D conversion 1 is sent to a significant information detector 1 and a buffer 3. Significant information is extracted from the image information by the detector 2, and control information is created to read out this significant information from the buffer 3. Through a multiplexer 5, the image information read out from the buffer 3 is inputted to a buffer 7 as it is according to its necessity or after a picture element value is converted by a lookup table 4, and is transmitted to an image processing device after D/A conversion 6 is carried out. That is, the image information corresponding to the image area is sliced out as it is or after it is enlarged or thinned out according to a condition of whether or not a rectangular image area containing a significant image enters the prescribed image frame by considering the prescribed image frame being a unit area for image processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は時系列的に順次入力され
る画像情報を二次元画像を表わす画像情報に変換し、そ
の二次元画像の中から有意な情報が含まれた画像領域を
切り出す画像情報切出し装置に関し、例えば鋼板表面疵
の検出のための画像処理、或は、画像認識に適した画像
情報切出し装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention converts image information sequentially input in time series into image information representing a two-dimensional image, and cuts out an image area containing significant information from the two-dimensional image. The present invention relates to an image information cutout device, for example, an image information cutout device suitable for image processing for detecting a steel plate surface flaw or image recognition.

【0002】[0002]

【従来の技術】従来より、例えば表面欠陥や表面疵を検
出するに用い得る画像処理装置として種々のものが提案
されている。種々提案されている画像処理装置のうち、
入力画像情報全体に対して、画像処理及び認識処理を施
すタイプのものがある。このタイプに属するものを以下
「グループ1」と称する。このグループ1に属する画像
処理装置には、例えばトランスピュータを複数(1CP
Uから256CPU)搭載した画像処理装置(新日本製
鉄(株))、専用処理プロセッサを複数搭載した画像処
理装置(富士通(株))、汎用プロセッサを複数搭載し
た画像処理装置(クボタ・コンピュータ(株))等があ
る。
2. Description of the Related Art Conventionally, various types of image processing apparatuses have been proposed which can be used for detecting surface defects and surface defects. Of the various image processing devices that have been proposed,
There is a type in which image processing and recognition processing are performed on the entire input image information. Those belonging to this type are hereinafter referred to as "group 1". For example, a plurality of transputers (1CP
U-256 CPU) installed image processing device (Nippon Steel Corporation), image processing device equipped with multiple dedicated processing processors (Fujitsu Ltd.), image processing device equipped with multiple general-purpose processors (Kubota Computer Co., Ltd.) )) Etc.

【0003】また、従来の画像処理装置のうち、入力画
像情報全体を均等に間引くことにより情報量を削減し、
高速な画像処理を実現しているものもある((株)東
芝)。このタイプに属するものを以下「グループ2」と
称する。さらに、従来の画像処理装置のうち、入力画像
情報全体を均等に複数の固定矩形部分に分割し、有意情
報部分を含む矩形領域のみを処理する方式を持つ画像装
置の例がある(〔米国〕Isys社)。以下、「グルー
プ3」と称する。
In the conventional image processing apparatus, the amount of information is reduced by evenly thinning out the entire input image information,
Some have achieved high-speed image processing (Toshiba Corporation). Those belonging to this type are hereinafter referred to as "group 2". Further, among conventional image processing apparatuses, there is an example of an image apparatus having a method of uniformly dividing the entire input image information into a plurality of fixed rectangular portions and processing only a rectangular area including a significant information portion ([US] Isys). Hereinafter, it is referred to as "group 3".

【0004】[0004]

【発明が解決しようとする課題】上述のように種々のタ
イプの画像処理装置が提案されているが、それらのう
ち、グループ1に属するタイプのものは、上述したよう
に、有意情報であるか否かにかかわらず入力画像情報全
体に対して、画像処理、及び、認識処理を施しているた
め処理速度が遅く、オンライン処理に対しては実用的な
手法とは成り得なかった。あるいは、処理速度の高速化
を図る事を目的に並列に処理化を試みる例もあるが、ハ
ードウェアの規模が大きくなり、画像処理装置のコスト
が高くやはり実用的でない。且つ、並列処理を実現する
ためのアルゴリズムの並列化作業が膨大である事から、
実際的な手法ではない。
As described above, various types of image processing apparatuses have been proposed, but among them, those of the type belonging to group 1 are significant information as described above. Regardless of whether or not the whole input image information is subjected to the image processing and the recognition processing, the processing speed is slow and it cannot be a practical method for the online processing. Alternatively, there is an example in which parallel processing is attempted for the purpose of increasing the processing speed, but the scale of the hardware is large and the cost of the image processing apparatus is high, which is also impractical. Moreover, since the parallelization work of the algorithm for realizing parallel processing is enormous,
Not a practical method.

【0005】また、グループ2に属するタイプのもの
は、上述したように、入力画像情報を均等に間引く事に
より情報量を削減しているため、有意情報が間引かれた
画素部分に存在する場合には、有意情報を抽出する事が
不可能となる。また、情報量が均等に1/N(Nは間引
く程度を表わす整数)に落ちる事は、即ち解像度が1/
Nに低下する事に相当する。従って高い解像度を有する
センサを用いたとしても実際に処理される画像処理装置
側の処理能力にまで間引かれた情報しか入力できないと
いう問題点がある。この問題点を解決するために、有意
情報を必ず含んで情報を間引く手法も考えられている
が、最終的に情報量を削減し、有意情報の有無に関わら
ず全体を処理しているため根本的な解決手段とはなって
いない。また、有意でない情報部分も処理する事から冗
長な処理を行っているという問題点もある。
Further, the type belonging to the group 2 reduces the amount of information by evenly thinning out the input image information as described above, so that when significant information exists in the thinned pixel portion. Therefore, it becomes impossible to extract significant information. In addition, the fact that the amount of information falls evenly to 1 / N (N is an integer representing the degree of thinning) means that the resolution is 1 / N.
It corresponds to the decrease to N. Therefore, even if a sensor having a high resolution is used, there is a problem that only the information thinned out to the processing capacity of the image processing apparatus side to be actually processed can be input. In order to solve this problem, a method is considered in which significant information is always included and information is thinned out, but the amount of information is ultimately reduced and the entire process is performed regardless of the presence or absence of significant information. It has not become an effective solution. There is also a problem in that redundant processing is performed because an insignificant information portion is also processed.

【0006】さらにグループ3に属するタイプのもの
は、有意情報が一つの矩形領域内にある場合には一つの
矩形領域を選択し、2つの矩形領域にまたがる場合には
2つの矩形領域を選択する必要があり、更に、複数の領
域にまたがる場合には、その対象領域全てを処理する必
要がある。従って、有意情報部分が、固定矩形部分の何
個分に相当するかで、処理速度が大きく異なってしま
い、オンライン処理を行う場合、処理しきれない場合が
発生するという問題点がある。
Further, the type belonging to the group 3 selects one rectangular area when the significant information is in one rectangular area, and selects two rectangular areas when it extends over two rectangular areas. It is necessary to further process all the target areas in the case of extending over a plurality of areas. Therefore, there is a problem that the processing speed greatly differs depending on how many fixed rectangular portions the significant information portion corresponds to, and when online processing is performed, the processing cannot be completed.

【0007】また任意の矩形部分を抽出した場合、どこ
の部分を抽出したかという位置情報が得られないと、周
期的な有意情報であるか否か等を判断できないと言う問
題点もある。本発明は、上記事情に鑑み、冗長な処理を
省くとともに、有意情報の大きさに拘らず一定の高速処
理を維持することのできる、画像領域切出し装置を提供
することを目的とする。
Further, when an arbitrary rectangular portion is extracted, there is a problem that it is not possible to judge whether or not it is periodic significant information unless position information indicating which portion is extracted is obtained. SUMMARY OF THE INVENTION In view of the above circumstances, an object of the present invention is to provide an image area clipping device capable of omitting redundant processing and maintaining constant high-speed processing regardless of the size of significant information.

【0008】[0008]

【課題を解決するための手段】上記目的を達成する本発
明の画像領域切出し装置は、 (1)順次入力される画像情報を記憶する記憶手段 (2)入力された画像情報の中から該画像情報の一部
を、所定の有意画像を表わす有意画像情報として切り出
す有意画像情報検出手段 (3)上記有意画像を含む矩形の画像領域が所定の画像
枠内に入るか否かに応じて、前記記憶手段に記憶された
画像情報の中から、前記矩形の画像領域に対応する画像
情報を、それぞれ、その矩形の画像領域が上記所定の画
像枠に入る場合はそのままあるいは拡大して切り出し、
あるいはその矩形の画像領域が上記所定の画像枠から食
み出す場合は間引いて切り出す画像領域切出し手段 を備えたことを特徴とするものである。
An image area clipping device of the present invention which achieves the above object is (1) storage means for storing sequentially input image information (2) the image from input image information Significant image information detecting means for cutting out a part of the information as significant image information representing a predetermined significant image (3) Depending on whether or not the rectangular image area including the significant image falls within a predetermined image frame, From the image information stored in the storage means, the image information corresponding to the rectangular image area is cut out as it is or when the rectangular image area falls within the predetermined image frame.
Alternatively, when the rectangular image area extends out of the predetermined image frame, an image area cutting-out means for thinning and cutting out the image area is provided.

【0009】ここで、上記画像領域切出し手段を、上記
記憶手段に記憶された画像情報により表わされる画像が
上記所定の画像枠の大きさに升目状に複数に分割された
うちの1つの分割領域内に1つの有意画像全体が含まれ
るか否かに応じて、上記記憶手段に記憶された画像情報
の中から、それぞれ、有意画像を含む1つの分割領域に
対応する画像情報をそのまま、あるいは有意情報を含む
複数の分割領域に対応する画像情報を上記所定の画像枠
の大きさにまで間引いて切り出すように構成してもよ
く、あるいは、上記画像領域切出し手段を、上記記憶手
段に記憶された画像情報により表わされる画像中に有意
画像を囲う切出し枠を適応的に設定し、その切出し枠が
上記所定の画像枠に入るか否かに応じて、上記記憶手段
に記憶された画像情報の中から、それぞれ、上記切出し
枠が上記所定の画像枠に入る場合には上記切出し枠を含
む上記所定の画像枠の大きさの画像領域に対応する画像
情報をそのまま、もしくは上記切出し枠を含む画像領域
を上記所定の画像枠の大きさの画像にまで拡大して切出
し、あるいは、上記切出し枠が上記所定の画像枠から食
み出す場合には上記切出し枠を含む画像領域に対応する
画像情報を上記所定の画像枠の大きさにまで間引いて切
り出すように構成してもよい。
Here, the image area cutout means is divided into a plurality of divided areas of the image represented by the image information stored in the storage means in the size of the predetermined image frame. Depending on whether or not one entire significant image is included in the image information, the image information corresponding to one divided area including the significant image is directly or significantly selected from the image information stored in the storage unit. The image information corresponding to a plurality of divided areas including information may be thinned out to the size of the predetermined image frame and cut out, or the image area cutout means may be stored in the storage means. A cutout frame surrounding a significant image is adaptively set in the image represented by the image information, and the image information stored in the storage means is determined according to whether or not the cutout frame falls within the predetermined image frame. From among the above, when the cutout frame falls within the predetermined image frame, the image information corresponding to the image area of the size of the predetermined image frame including the cutout frame as it is or including the cutout frame is included. The image area is enlarged to the image of the size of the predetermined image frame and cut out, or when the cutout frame extends out of the predetermined image frame, the image information corresponding to the image area including the cutout frame May be thinned out to the size of the predetermined image frame and cut out.

【0010】この場合において、上記画像領域切出し手
段を、上記有意画像を囲う最小の切出し枠を設定し、そ
の最小の切出し枠内の画像領域に対応する画像情報を、
その画像領域が上記画像枠いっぱいに入るように必要に
応じて画像拡大処理もしくは画像縮小処理を施して切り
出すように構成することが好ましい。また、本発明の画
像情報切り出し装置において、上記画像領域切出し手段
により切り出された画像情報により表わされる部分画像
の、上記記憶手段に記憶された画像情報により表される
画像中の位置をあらわす位置情報、あるいは、その位置
情報とともに、その部分画像の、その部分画像に対応す
る切出し前の画像領域に対応する倍率を表わす倍率情報
を求めて出力する情報出力手段を備えることも好ましい
態様である。尚、位置情報と倍率情報とは密接に関連し
ており、結果的に位置と倍率とを表わす情報であればよ
く、例えば位置情報から間接的に倍率を求め得るような
位置情報のみを出力するものであってもよい。
In this case, the image area cutout means sets a minimum cutout frame surrounding the significant image, and the image information corresponding to the image area in the minimum cutout frame is
It is preferable to perform an image enlarging process or an image reducing process as necessary so that the image region is filled with the image frame and cut out. Further, in the image information cutout device of the present invention, position information representing the position in the image represented by the image information stored in the storage means of the partial image represented by the image information cut out by the image area cutout means. Alternatively, it is also a preferable aspect to provide an information output unit for obtaining and outputting, together with the position information, magnification information representing a magnification of the partial image corresponding to the image area before clipping corresponding to the partial image. It should be noted that the position information and the magnification information are closely related to each other, and as long as the information represents the position and the magnification as a result, for example, only the position information for indirectly obtaining the magnification from the position information is output. It may be one.

【0011】[0011]

【作用】本発明の画像領域切出し装置は、画像処理の実
行のための単位領域である所定の画像枠を観念し、有意
画像を含む矩形の画像領域がその所定の画像枠に入るか
否かに応じて、それぞれ、その矩形の画像領域に対応す
る画像情報をそのままあるいは拡大し、あるいは間引い
て切り出すものであるため、グループ1に属する画像処
理装置のように画像全体を処理する場合、あるいは、グ
ループ2に属する画像処理装置のように画像全体を均等
に間引く場合と比べ、冗長な処理が防止される。
The image region clipping device of the present invention considers a predetermined image frame which is a unit region for executing image processing, and determines whether a rectangular image region including a significant image falls within the predetermined image frame. In accordance with the above, the image information corresponding to the rectangular image area is cut out as it is, or enlarged or thinned out. Therefore, when processing the entire image like an image processing apparatus belonging to Group 1, or Redundant processing is prevented as compared with the case where the entire image is thinned out evenly as in the image processing apparatus belonging to group 2.

【0012】但し、所定の画像枠に比べて有意画像が更
に小さい場合においてその有意画像を拡大せずにその所
定の画像枠分の情報を出力する場合、その有意画像から
はずれる不要部分も切出されることになるが、その不要
部分は、処理不要情報を別に規定することによりその部
分の処理を省くこともできる。また、本発明の画像領域
切出し装置は、有意画像が大きい場合に間引いて切り出
すものであるため、従来のグループ3の場合のように有
意画像が跨った複数の固定矩形領域を各固定矩形領域毎
に切り出す場合と比べ、有意画像全体の形状等が把握さ
れるとともに、有意画像の大きさが変化しても常に高速
な画像処理を行なうことができる。特に全面にわたり有
意である場合には、その全体画像を縮小することによ
り、画像認識処理の場合の認識率を大きく向上させるこ
とができる。
However, when the significant image is smaller than the predetermined image frame and the information for the predetermined image frame is output without enlarging the significant image, unnecessary portions that deviate from the significant image are also cut out. However, the unnecessary portion can be omitted by separately defining the unnecessary processing information. Further, since the image area cutout device of the present invention thins out and cuts out a significant image when the significant image is large, a plurality of fixed rectangular areas across which the significant images span each fixed rectangular area as in the case of the conventional group 3. Compared to the case of clipping, the shape of the entire significant image and the like can be grasped, and high-speed image processing can always be performed even if the size of the significant image changes. In particular, when it is significant over the entire surface, the recognition rate in the image recognition processing can be greatly improved by reducing the entire image.

【0013】また、本発明の画像領域切出し装置におい
て、上述した情報出力手段を備えると、有意画像の、全
体画像に対する位置や大きさが把握され、たとえば繰り
返し性の有無や有意画像の大きさ等により、その有意画
像の発生原因の把握等が容易となる。更に、その認識処
理を例えばニューロで行うことを想定した場合、ニュー
ロは相似形の認識を不得手としているため、間引き処理
等により全て同一の大きさに正規化することにより高精
度な認識を実現することができる。また所定の画像枠よ
り超かに小さい有意画像に対しても、そのまま切り出す
のではなく、その有意画像を囲う最小の切出し枠を設定
し、その切出し枠内の画像を所定の画像枠に納まる最大
値まで拡大することにより、正規化することが可能とな
る。
Further, in the image area clipping device of the present invention, if the above-mentioned information output means is provided, the position and size of the significant image with respect to the entire image can be grasped, and for example, the presence or absence of repeatability and the size of the significant image. This makes it easy to understand the cause of the occurrence of the significant image. Furthermore, assuming that the recognition process is performed by a neuro, for example, the neuro is not good at recognizing similar shapes. Therefore, it is possible to realize high-accuracy recognition by normalizing them all to the same size by decimation processing etc. can do. Also, for a significant image that is much smaller than a predetermined image frame, instead of cutting it out as it is, the minimum cutting frame that surrounds the significant image is set, and the image inside the cutting frame is set to the maximum size that fits in the predetermined image frame. It becomes possible to normalize by expanding to the value.

【0014】[0014]

【実施例】以下、本発明の実施例について説明する。図
1は、本発明の画像領域切出し装置の一実施例の構成を
表わすブロック図である。例えば、所定の方向に搬送さ
れる、図示しない鋼板の表面が、やはり図示しない一次
元CCDカメラによりその鋼板の幅方向に撮像されるこ
とによりアナログの画像情報が得られ、その画像情報
が、図1に示す画像領域切出し装置のA/D変換器1に
入力される。このA/D変換器は、入力された画像情報
を、CCDカメラ最高周波数の2倍の周波数(40MH
z)に対応するサンプリング周期で量子化してディジタ
ルの画像情報を生成し、その画像情報は、有意情報検出
器2と、バッファ3に送られる。
EXAMPLES Examples of the present invention will be described below. FIG. 1 is a block diagram showing the configuration of an embodiment of an image area cutout device of the present invention. For example, analog image information is obtained by imaging the surface of a steel plate (not shown) conveyed in a predetermined direction in the width direction of the steel plate by a one-dimensional CCD camera (not shown). 1 is input to the A / D converter 1 of the image area clipping device. This A / D converter converts the input image information into a frequency (40 MHz) that is twice the maximum frequency of the CCD camera.
It is quantized at a sampling period corresponding to z) to generate digital image information, and the image information is sent to the significant information detector 2 and the buffer 3.

【0015】有意情報検出器2では、入力された画像情
報に基づいて、この画像情報から有意情報を抽出し、こ
の有意情報をバッファ3から読み出すための制御情報を
生成する。また、この有意情報検出器2では、有意情報
を検出した場合にその有意情報が表わす部分画像(これ
を、ここでは「有意画像」と称する)が全体画像に対し
どの位置にあるかをあらわす位置情報と、後述するよう
にバッファ3から画像情報を読み出す際に有意画像の倍
率が変更されることがあるため、その倍率を表わす倍率
情報が生成されて出力される。
The significant information detector 2 extracts the significant information from the image information based on the input image information and generates control information for reading the significant information from the buffer 3. Further, in the significant information detector 2, when the significant information is detected, the position indicating the position of the partial image represented by the significant information (this is referred to as “significant image” here) with respect to the entire image is displayed. Since the information and the magnification of the significant image may be changed when the image information is read from the buffer 3 as described later, magnification information representing the magnification is generated and output.

【0016】バッファ3は、図示しない画像処理装置に
おける1回の画像処理に用いられる画像領域分の記憶容
量のものが複数備えられており、それらのバッファ3に
ディジタルの画像情報が順次記憶される。また、このバ
ッファ3からは、有意情報検出器2からの制御情報に応
じて画像情報が読み出されるが、このバッファ3からの
画像情報の読み出しの際は、画像情報をバッファ3に書
き込むためのクロックW_CLKの周波数(40MH
z)と同一の周波数のクロックR_CLKが用いられて
いる。バッファ3から出力される一部分切り出された画
像情報はバースト信号である事から、連続信号へ変換す
るため後述するバッファ7を用意する必要があり、一例
としてバッファ7への書き込み周波数の1/5の周波数
で読み出す事により連続した信号への変換が実現でき
る。
The buffer 3 is provided with a plurality of storage capacities for an image area used for one image processing in an image processing apparatus (not shown), and digital image information is sequentially stored in these buffers 3. . Further, the image information is read from the buffer 3 in accordance with the control information from the significant information detector 2. At the time of reading the image information from the buffer 3, a clock for writing the image information into the buffer 3 is used. Frequency of W_CLK (40 MH
The clock R_CLK having the same frequency as that of z) is used. Since the partially cut-out image information output from the buffer 3 is a burst signal, it is necessary to prepare a buffer 7 to be described later in order to convert it into a continuous signal. For example, 1/5 of the writing frequency to the buffer 7 is required. By reading out at the frequency, conversion into a continuous signal can be realized.

【0017】バッファ3から読み出された画像情報は、
必要に応じて、そのままあるいはルックアップテーブル
4により画素値の変換が行なわれた後、マルチプレクサ
5によりそれらのいずれか一方が選択されてバッファ7
に一旦入力される。バッファ7に入力された画像情報
は、バッファ7から例えば8MHzの周波数のクロック
で読み出されてD/A変換器6に入力される。D/A変
換器6では、画像情報がアナログ信号に変換されて図示
しない画像処理装置へ伝送される。
The image information read from the buffer 3 is
If necessary, after the pixel values are converted as they are or by the look-up table 4, one of them is selected by the multiplexer 5 and the buffer 7 is selected.
Is entered once. The image information input to the buffer 7 is read from the buffer 7 with a clock having a frequency of 8 MHz, for example, and is input to the D / A converter 6. In the D / A converter 6, the image information is converted into an analog signal and transmitted to an image processing device (not shown).

【0018】図2は、図1にブロックで示す有意情報検
出器2の概略構成を示すブロック図である。図1に示す
A/D変換器1から出力されたディジタルの時系列的な
画像情報は、シフトレジスタ2_1に入力されクロック
と同期して順次先送りされる。また、このシフトレジス
タ2_1に入力された画像情報の並列出力は、このシフ
トレジスタ2_1に入力される画像情報とともに比較器
2_2に入力される。またROM2_3には、画像情報
が有意情報であるか否かを判定するための参照パータン
情報が格納されており、その参照パターン情報がROM
から読み出されて比較器2_2に入力される。比較器2
_2では、シフトレジスタ2_1から入力された画像情
報とROMから読み出されて入力されたパターン情報と
を比較し有意情報の有無、全体画像に対するその有意情
報が表わす有意画像の位置、およびその有意画像の寸法
が検出されて出力される。これら検出された情報は、バ
ッファ3から画像情報を読み出す際に、画像全体のうち
のどの部分画像を、そのままもしくはどの程度に間引い
て読み出すかを制御する制御情報として用いられ、ま
た、バッファ3から読み出した画像情報が画像全体のど
の位置に対応するかを表わす位置情報、およびバッファ
3から画像情報をどの程度に引いて読み出したかを表わ
す倍率情報として、図示しない画像処理装置へ伝送され
る。
FIG. 2 is a block diagram showing a schematic configuration of the significant information detector 2 shown as a block in FIG. The digital time-series image information output from the A / D converter 1 shown in FIG. 1 is input to the shift register 2_1 and is sequentially advanced in synchronization with the clock. The parallel output of the image information input to the shift register 2_1 is input to the comparator 2_2 together with the image information input to the shift register 2_1. Further, ROM2_3 stores reference pattern information for determining whether the image information is significant information, and the reference pattern information is stored in the ROM2_3.
Read out from and input to the comparator 2_2. Comparator 2
In _2, the image information input from the shift register 2_1 and the pattern information read from the ROM and input are compared to determine whether there is significant information, the position of the significant image represented by the significant information with respect to the entire image, and the significant image. Is detected and output. The detected information is used as control information for controlling which partial image of the entire image is read as it is or how much is thinned out when reading the image information from the buffer 3. It is transmitted to an image processing apparatus (not shown) as position information indicating which position of the entire image the read image information corresponds to, and magnification information indicating how much the image information is subtracted from the buffer 3 and read.

【0019】図3は、図1に示すバッファ3に格納され
た画像情報と有意情報検出器2で検出された有意情報を
画像としてあらわした模式図である。この図は、左右方
向が被検査材である鋼板の幅方向に対応し、縦方向はそ
の鋼板の搬送方向に対応している。この図に示す各升目
1_1,2_1,…,5_1,1_2,2_2,…,5
_2,…,1_P,2_P,…,5_Pは各バッファを
あらわしている。すなわち、被検査材である鋼板は、そ
の幅方向に5分割され、その長手方向にP分割されて各
バッファに格納される。ただし、実際には、バッファ3
の、5×P個の大きさは、最大の有意画像を格納するこ
とのできる大きさとする必要がある。バッファ3への書
き込み用クロックW_CLKの周波数とバッファ7の読
出し用クロックの周波数との相違を考慮し、例えばバッ
ファを1個のみ備えた場合は、横に並ぶ5つの升目分の
画像情報が入力される間に1つの升目分の画像情報を抽
出する必要があり、バッファを2つ備えた場合は横に並
ぶ5つの升目2行分、即ち10個の升目分の画像情報が
入力される間に2つの升目分の画像情報を抽出すればよ
く、同様にしてバッファをP個備えた場合は5×P個の
升目分の画像情報の中からP個の升目分の画像情報を抽
出すればよく、バッファの数が多いほど画像情報抽出の
自由度があがり、また、有意情報がバッファ全体に及ぶ
場合に有効となり、被検査材としての鋼板の性質等を考
慮して適切な数のバッファが備えられる。
FIG. 3 is a schematic diagram showing the image information stored in the buffer 3 shown in FIG. 1 and the significant information detected by the significant information detector 2 as an image. In this figure, the left-right direction corresponds to the width direction of the steel sheet to be inspected, and the vertical direction corresponds to the conveying direction of the steel sheet. Each square 1_1, 2_1, ..., 5_1, 1_2, 2_2, ..., 5 shown in this figure
_2, ..., 1_P, 2_P, ..., 5_P represent each buffer. That is, the steel sheet that is the material to be inspected is divided into five in the width direction, and is divided into P in the longitudinal direction and stored in each buffer. However, in reality, buffer 3
The size of 5 × P must be large enough to store the largest significant image. Considering the difference between the frequency of the write clock W_CLK to the buffer 3 and the frequency of the read clock of the buffer 7, for example, when only one buffer is provided, image information for five squares arranged side by side is input. It is necessary to extract the image information for one square during this period. When two buffers are provided, two rows of five squares arranged horizontally, that is, while the image information for ten squares is input. Image information for two squares may be extracted. Similarly, when P buffers are provided, image information for P squares may be extracted from the image information for 5 × P squares. As the number of buffers increases, the degree of freedom in extracting image information increases, and it is effective when significant information extends to the entire buffer. An appropriate number of buffers is provided in consideration of the properties of the steel sheet as the material to be inspected. To be

【0020】ここで有意情報検出器2(図1参照)によ
り、図3に示すような有意情報(有意画像)10_1,
10_2が検出されたものとする。有意情報10_1
は、このままでは1つの画像枠(m×n)に入らないた
め、m×nの画像枠と相似形の、縦横それぞれ3つのバ
ッファに跨る部分領域11_1に格納された画像情報が
1/3に間引かれてm×nの大きさの画像として読み出
される。一方、有意情報10_1が跨る部分領域の縦横
比がm×nの画像枠と相似形でないときは、縦と横とで
間引き率を変えてもよい。
Here, by the significant information detector 2 (see FIG. 1), the significant information (significant image) 10_1 as shown in FIG. 3 is obtained.
It is assumed that 10_2 is detected. Significant information 10_1
Does not fit in one image frame (m × n) as it is, so the image information stored in the partial region 11_1, which is similar to the m × n image frame and spans three vertical and horizontal buffers, is ⅓. It is thinned out and read out as an image of size m × n. On the other hand, when the aspect ratio of the partial area spanned by the significant information 10_1 is not similar to the image frame of m × n, the thinning rate may be changed between the vertical and horizontal directions.

【0021】また、このときは、有意情報検出器2(図
1参照)では、倍率1/3を表わす倍率情報が生成され
て出力される。また、全体画像に対する部分領域11_
1の位置情報として、例えば、その部分領域11_1
の、図3の左上の座標が出力される。尚、倍率情報や位
置情報は、例えば、部分領域11_1の左上の座標と右
下の座標とを出力することにより位置情報および倍率情
報としてもよく、部分領域11_1の中心座標と倍率を
表わす情報としてもよく、種々に構成することができる
ことはいうまでもない。
Further, at this time, the significant information detector 2 (see FIG. 1) generates and outputs magnification information representing a magnification ⅓. In addition, the partial area 11_ for the entire image
As the position information of No. 1, for example, the partial area 11_1
The coordinates at the upper left of FIG. 3 are output. The magnification information and the position information may be the position information and the magnification information, for example, by outputting the upper left coordinates and the lower right coordinates of the partial area 11_1, and as the information indicating the center coordinates and the magnification of the partial area 11_1. Of course, it goes without saying that various configurations are possible.

【0022】ここで有意情報10_1は、部分領域11
_1に対応する9つのバッファ1_1,2_1,3_
1,1_2,2_2,3_2,1_3,2_3,3_3
の全てには跨っておらず、5つのバッファ1_1,2_
1,2_2,2_3,3_3にのみ跨っている。したが
って、これら5つのバッファ1_1,2_1,2_2,
2_3,3_3に格納された画像情報をそれぞれのまま
読み出して画像処理装置に送ることも考えられるが、そ
の場合、有意情報10_1が1つの連続した有意画像を
表わすかもしくは複数の有意画像をあらわすかの判別が
難しくなり、かつ、5つのバッファ領域についてそれぞ
れ画像処理を行なうことから1つのバッファ領域分の画
像処理と比べ5倍の処理時間がかかることとなる。これ
に比べ、ここでは、部分領域11_1を間引いて切り出
すようにしたため、有意情報10_1の大きさが大きく
ても処理の高速化が図られ、また1つの有意画像である
旨の判定が可能となる。なお、この場合有意情報10_
1が大きいため、間引くことにより分解能が低下しても
問題はない。むしろこのように間引くことにより、大き
さが一定となることから、画像認識を行う場合の認識率
の向上に寄与する効果もある。
Here, the significant information 10_1 is the partial area 11
Nine buffers 1_1, 2_1, 3_ corresponding to _1
1, 1_2, 2_2, 3_2, 1_3, 2_3, 3_3
5 buffers 1_1, 2_
It straddles only 1, 2_2, 2_3, 3_3. Therefore, these five buffers 1_1, 2_1, 2_2,
It is conceivable to read out the image information stored in 2_3 and 3_3 as they are and send them to the image processing device, but in that case, whether the significant information 10_1 represents one continuous significant image or represents a plurality of significant images. Is difficult to perform, and since image processing is performed for each of the five buffer areas, processing time is five times that of image processing for one buffer area. On the other hand, here, since the partial area 11_1 is thinned out and cut out, even if the size of the significant information 10_1 is large, the processing speed is increased, and it is possible to determine that the image is one significant image. . In this case, significant information 10_
Since 1 is large, there is no problem even if the resolution is reduced by thinning. Rather, by thinning out in this manner, the size becomes constant, which also contributes to an improvement in the recognition rate when performing image recognition.

【0023】一方、有意情報10_2は、1つのバッフ
ァ4_4にあるため、そのバッファ4_4に格納された
部分領域10_2が間引きなしにそのまま切り出され、
かつその部分領域10_2の左上の位置座標と倍率1/
1と表わす情報が出力される。図4は、有意画像を含む
部分領域を切り出す他の手法を示した、図3と同様な図
である。
On the other hand, since the significant information 10_2 is in one buffer 4_4, the partial area 10_2 stored in the buffer 4_4 is cut out as it is without thinning out,
And the upper left position coordinate of the partial area 10_2 and the magnification 1 /
Information represented by 1 is output. FIG. 4 is a view similar to FIG. 3, showing another method of cutting out a partial area including a significant image.

【0024】先ず有意情報10_1,10_2のそれぞ
れを最も小さく囲うように切出し枠12_1,12_2
が設定される。次にm×nの大きさの画像枠で全体画像
が走査され、切出し枠12_1,12_2がその画像枠
内に入るか否か判定される。この例では、切出し枠12
_1はそのm×nの画像枠内には入りきらないが、切出
し枠12_2はそのm×nの画像枠に入るため、このm
×nの画像枠と同じ寸法の画像領域13_2がそのまま
間引きなしに切り出される。或いは、切出し枠12_2
が、m×nの画像枠いっぱいにまで拡大されて出力され
る。その際その拡大率も倍率情報として出力される。こ
れにより有意情報の大きさが規格化され、上述と同様
に、認識率の向上につながる。
First, the cutout frames 12_1 and 12_2 are arranged so as to enclose each of the significant information 10_1 and 10_2 in the smallest size.
Is set. Next, the entire image is scanned with an image frame of size m × n, and it is determined whether or not the cutout frames 12_1 and 12_2 fall within the image frame. In this example, the cutout frame 12
_1 does not fit in the m × n image frame, but the cutout frame 12_2 fits in the m × n image frame.
The image area 13_2 having the same size as the × n image frame is cut out as it is without thinning. Alternatively, the cutout frame 12_2
Is enlarged and output up to the m × n image frame. At that time, the enlargement ratio is also output as magnification information. As a result, the size of the significant information is standardized, which leads to an improvement in the recognition rate as described above.

【0025】次に縦横ともその2倍の2m×2nの寸法
の画像枠で全体画像が走査され、切出し枠12_2がそ
の2m×2nの寸法の画像枠に入るか否か判定される。
切出し枠12_1は2m×nの寸法の画像枠に入り、し
たがって図示のように切出し枠12_1が含まれるよう
に2m×2nの画像領域13_1が設定され、この画像
領域13_1が1/2に間引かれて切り出される。或い
は、切り出し枠12_1をm×nの画像枠いっぱいにま
で縮小して出力してもよい。以下、同様にして、2m×
2nの画像枠にも入りきらない切出し枠が存在するとき
は、3m×3nの画像枠等、一番小さいm×nの画像枠
と相似形の大きな画像枠が設定され、全体画像が走査さ
れる。このように、切り出すべき画像領域を、各バッフ
ァの枠とは別に適応的に設定してもよい。
Next, the entire image is scanned in an image frame having a size of 2m × 2n which is twice the size in the vertical and horizontal directions, and it is determined whether or not the cutout frame 12_2 falls within the image frame having a size of 2m × 2n.
The cut-out frame 12_1 fits in an image frame having a size of 2m × n, and thus the 2m × 2n image area 13_1 is set so as to include the cut-out frame 12_1, and the image area 13_1 is thinned to 1/2. It is cut and cut out. Alternatively, the clipping frame 12_1 may be reduced to the m × n image frame and output. Similarly, 2m x
When there is a clipping frame that does not fit in the 2n image frame, a large image frame similar to the smallest m × n image frame such as a 3m × 3n image frame is set, and the entire image is scanned. It In this way, the image area to be cut out may be adaptively set separately from the frame of each buffer.

【0026】[0026]

【発明の効果】以上説明したように、本発明の画像領域
切出し装置は、有意画像を含む矩形の画像領域がその所
定の画像枠に入るか否かに応じて、それぞれ、その矩形
の画像領域に対応する画像情報をそのまま、あるいは間
引いて切り出すものであるため、冗長な処理が防止され
るとともに有意画像の大きさが変化しても常に高速な画
像処理を行なうことができる。また有意画像を適応的に
拡大,縮小し、一定の大きさにすることから、後段に認
識処理機能部を備えた場合に、その認識処理機能部の構
成を簡単にし、かつ高精度の画像認識を実現することが
できる。
As described above, according to the image area clipping device of the present invention, a rectangular image area including a significant image is extracted depending on whether or not the rectangular image area is included in the predetermined image frame. Since the image information corresponding to is cut out or cut out by thinning out, redundant processing is prevented, and high-speed image processing can always be performed even if the size of the significant image changes. Further, since the significant image is adaptively enlarged and reduced to have a constant size, when the recognition processing function unit is provided in the subsequent stage, the configuration of the recognition processing function unit is simplified and highly accurate image recognition is performed. Can be realized.

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

【図1】本発明の画像領域切出し装置の一実施例の構成
を表わすブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of an image area cutout device of the present invention.

【図2】図1にブロックで示す有意情報検出器の概略構
成を示すブロック図である。
FIG. 2 is a block diagram showing a schematic configuration of a significant information detector shown by a block in FIG.

【図3】図1に示すバッファに格納された画像情報と有
意情報検出器で検出された有意情報を画像としてあらわ
した模式図である。
FIG. 3 is a schematic diagram showing, as an image, image information stored in the buffer shown in FIG. 1 and significant information detected by a significant information detector.

【図4】有意画像を含む部分領域を切り出す他の手法を
示した、図3と同様な図である。
FIG. 4 is a view similar to FIG. 3, showing another method of cutting out a partial area including a significant image.

【符号の説明】 1 A/D変換器 2 有意情報検出器 2_1 シフトレジスタ 2_2 比較器 2_3 ROM 3 バッファ 4 ルックアップテーブル 5 マルチプレクサ 6 D/A変換器 10_1,10_2 有意情報 11_1,11_2 部分領域 12_1,12_2 切出し枠 13−1,13−2 画像領域[Description of Reference Signs] 1 A / D converter 2 Significant information detector 2_1 Shift register 2_2 Comparator 2_3 ROM 3 Buffer 4 Lookup table 5 Multiplexer 6 D / A converter 10_1, 10_2 Significant information 11_1, 11_2 Partial area 12_1 12_2 clipping frame 13-1, 13-2 image area

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 順次入力される画像情報を記憶する記憶
手段と、 入力された画像情報の中から該画像情報の一部を、所定
の有意画像を表わす有意画像情報として切り出す有意画
像情報検出手段と、 前記有意画像を含む矩形の画像領域が所定の画像枠内に
入るか否かに応じて、前記記憶手段に記憶された画像情
報の中から、前記矩形の画像領域に対応する画像情報
を、それぞれ、前記矩形の画像領域が前記所定の画像枠
に入る場合はそのままあるいは拡大して切り出し、ある
いは前記矩形の画像領域が前記所定の画像枠から食み出
す場合は間引いて切り出す画像領域切出し手段とを備え
たことを特徴とする画像領域切出し装置。
1. A storage means for storing sequentially input image information, and a significant image information detecting means for cutting out a part of the image information from the input image information as significant image information representing a predetermined significant image. According to whether or not the rectangular image area including the significant image falls within a predetermined image frame, the image information corresponding to the rectangular image area is selected from the image information stored in the storage unit. When the rectangular image area falls within the predetermined image frame, the image area cutting means is cut out as it is or enlarged, or when the rectangular image area extends out of the predetermined image frame, is thinned out and cut out. An image area clipping device comprising:
【請求項2】 前記画像領域切出し手段が、前記記憶手
段に記憶された画像情報により表わされる画像が前記所
定の画像枠の大きさに升目状に複数に分割されたうちの
1つの分割領域内に1つの前記有意画像全体が含まれる
か否かに応じて、前記記憶手段に記憶された画像情報の
中から、それぞれ、前記有意画像を含む1つの前記分割
領域に対応する画像情報をそのまま、あるいは前記有意
情報を含む複数の前記分割領域に対応する画像情報を前
記所定の画像枠の大きさにまで間引いて切り出すもので
あることを特徴とする請求項1記載の画像領域切出し装
置。
2. The image area cutout means is provided in one of divided areas in which the image represented by the image information stored in the storage means is divided into a plurality of grids in the size of the predetermined image frame. Depending on whether or not the entire one significant image is included in the image information stored in the storage unit, the image information corresponding to one of the divided areas including the significant image is directly stored, Alternatively, the image area cutout device according to claim 1, wherein the image information corresponding to the plurality of divided areas including the significant information is thinned out to the size of the predetermined image frame and cut out.
【請求項3】 前記画像領域切出し手段が、前記記憶手
段に記憶された画像情報により表わされる画像中に前記
有意画像を囲う切出し枠を適応的に設定し、該切出し枠
が前記所定の画像枠に入るか否かに応じて、前記記憶手
段に記憶された画像情報の中から、それぞれ、前記切出
し枠が前記所定の画像枠に入る場合に前記切出し枠を含
む前記所定の画像枠の大きさの画像領域に対応する画像
情報をそのまま、もしくは前記切出し枠を含む画像領域
を前記所定の画像枠の大きさの画像にまで拡大して切出
し、あるいは、前記切出し枠が前記所定の画像枠からは
み出す場合に前記切出し枠を含む画像領域に対応する画
像情報を前記所定の画像枠の大きさにまで間引いて切り
出すものであることを特徴とする請求項1記載の画像領
域切出し装置。
3. The image area cutout means adaptively sets a cutout frame surrounding the significant image in an image represented by image information stored in the storage means, and the cutout frame is the predetermined image frame. The size of the predetermined image frame including the cutout frame when the cutout frame falls within the predetermined image frame from among the image information stored in the storage unit according to whether or not Of the image information corresponding to the image area as it is, or the image area including the cutout frame is enlarged and cut out to an image of the size of the predetermined image frame, or the cutout frame is protruded from the predetermined image frame. The image area cropping device according to claim 1, wherein in this case, the image information corresponding to the image area including the cropping frame is thinned out to the size of the predetermined image frame and cropped.
【請求項4】 前記画像領域切出し手段が、前記有意画
像を囲う最小の切出し枠を設定し、該切出し枠内の画像
領域に対応する画像情報を、該画像領域が前記画像枠い
っぱいに入るように必要に応じて画像拡大処理もしくは
画像縮小処理を施して切り出すものであることを特徴と
する請求項3記載の画像領域切出し装置。
4. The image area cutout unit sets a minimum cutout frame surrounding the significant image, and sets image information corresponding to an image area in the cutout frame so that the image area fills the image frame. The image area cutting device according to claim 3, wherein the image area cutting processing is performed by performing image enlargement processing or image reduction processing as necessary.
【請求項5】 前記画像領域切出し手段により切り出さ
れた画像情報により表わされる部分画像の、前記記憶手
段に記憶された画像情報により表される画像中の位置を
あらわす位置情報、或いは該位置情報と該部分画像の、
該部分画像に対応する切出し前の画像領域に対する倍率
を表わす倍率情報を求めて出力する情報出力手段を備え
たことを特徴とする請求項1記載の画像領域切出し装
置。
5. Position information indicating the position in the image represented by the image information stored in the storage unit of the partial image represented by the image information clipped by the image area clipping unit, or the position information. Of the partial image,
2. The image area clipping device according to claim 1, further comprising information output means for obtaining and outputting magnification information representing a magnification with respect to an image area before clipping corresponding to the partial image.
JP5140612A 1993-06-11 1993-06-11 Image area cutting-out device Withdrawn JPH06347420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5140612A JPH06347420A (en) 1993-06-11 1993-06-11 Image area cutting-out device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5140612A JPH06347420A (en) 1993-06-11 1993-06-11 Image area cutting-out device

Publications (1)

Publication Number Publication Date
JPH06347420A true JPH06347420A (en) 1994-12-22

Family

ID=15272761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5140612A Withdrawn JPH06347420A (en) 1993-06-11 1993-06-11 Image area cutting-out device

Country Status (1)

Country Link
JP (1) JPH06347420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10178542A (en) * 1996-12-18 1998-06-30 Fuji Xerox Co Ltd Image reduction processing unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10178542A (en) * 1996-12-18 1998-06-30 Fuji Xerox Co Ltd Image reduction processing unit

Similar Documents

Publication Publication Date Title
JP2986383B2 (en) Method and apparatus for correcting skew for line scan images
US5892854A (en) Automatic image registration using binary moments
JPH11331609A (en) Method for detecting pixel where alias in raster-converted image data is removed
JP3733161B2 (en) Image processing apparatus and method
EP0382293A1 (en) Method of and apparatus for converting the resolution of an image represented by a pattern of bivalent pixels
JPH11306793A (en) Method and apparatus for analysis of defect
JP5049922B2 (en) Image processing apparatus and image processing method
JPH10513284A (en) Automatic determination of blank pages and character frames for binary images
JP2007026285A (en) Image processor and image processing program
JPH06347420A (en) Image area cutting-out device
JP3310744B2 (en) Resolution converter
JP3711735B2 (en) Document image processing apparatus and recording medium
JP4390732B2 (en) Semiconductor wafer appearance inspection system
JPH10327315A (en) Image processing unit
JP3297145B2 (en) Pattern defect inspection equipment
JP3716528B2 (en) Image processing device
JPH11185036A (en) Image processor
JPH07152906A (en) Recognition processor for two-dimensional symbol image
JPH05189570A (en) Method and device for gradation image pattern matching, defect detector, character recognition device, and positioning device
JP2839578B2 (en) Image data input processing device
JPH11308438A (en) Image processor
JPH05284335A (en) Picture information reduction method
JP3112693B2 (en) Figure number calculation device and figure number calculation method
JPS6195482A (en) Plural line character recognition device
JPH10143607A (en) Image processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000905