JPS63181081A - Video processing system - Google Patents

Video processing system

Info

Publication number
JPS63181081A
JPS63181081A JP62013201A JP1320187A JPS63181081A JP S63181081 A JPS63181081 A JP S63181081A JP 62013201 A JP62013201 A JP 62013201A JP 1320187 A JP1320187 A JP 1320187A JP S63181081 A JPS63181081 A JP S63181081A
Authority
JP
Japan
Prior art keywords
data
speed memory
pixel
light
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP62013201A
Other languages
Japanese (ja)
Other versions
JP2628301B2 (en
Inventor
Ryohei Kumagai
熊谷 良平
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.)
IIZERU KK
Original Assignee
IIZERU KK
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 IIZERU KK filed Critical IIZERU KK
Priority to JP62013201A priority Critical patent/JP2628301B2/en
Priority to DE1988100020 priority patent/DE274376T1/en
Priority to EP19880100020 priority patent/EP0274376A3/en
Publication of JPS63181081A publication Critical patent/JPS63181081A/en
Priority to US07/532,121 priority patent/US5276778A/en
Application granted granted Critical
Publication of JP2628301B2 publication Critical patent/JP2628301B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To apply to a wide range of video processing by providing an arithmetic part provided with a state arithmetic part and a numerical arithmetic part, a high speed memory and a light arithmetic part and disposing a converting part in which the output of the light arithmetic part is inputted to the high speed memory. CONSTITUTION:The arithmetic part 1 and the converting part 2 are provided and the state arithmetic part 3 and the numerical arithmetic part 4 are included in the arithmetic part 1. The converting part 2 connects the light arithmetic part 6 to the branch of the output of the high speed memory 5 and returns the output of the light arithmetic part 6 to the input side of the high speed memory 5. Data via the light arithmetic part 6 is returned to the input side of the high speed memory 5, thereby, the same arithmetic processing can be repeatedly applied to one data or the same processing can be applied to series of data groups and sequentially stored in the high speed memory 5 and considerably various processings such as the integrating of the data, the dwindling of the data, the gradual comparison of the data can be attained.

Description

【発明の詳細な説明】 この発明はデジタル映像処理システムに係り、リアルタ
イムの映像処理・表示やリアルタイムの画像解析等に有
効な変換回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a digital video processing system, and more particularly to a conversion circuit effective for real-time video processing and display, real-time image analysis, and the like.

〔発明の背景とその問題点〕[Background of the invention and its problems]

映像処理の概念は広く、入力画像を明瞭なものにしたり
、あるいは特徴を抽出して画像を認識するようないわゆ
る画像処理の技術から、コンピュータグラフィックス技
術、さらには放送機器などにおいて用いられるクロマキ
ー、画面合成、画面分割その他の特殊効果の技術などが
含まれる.そして映像処理の処理系にはアナログ処理系
とデジタル処理系およびその複合系があり、処理された
結果の精巧さ、再現性、定量性および処理の多様さとい
う点でデジタル処理系の重要性が高まりつつある.この
デジタル処理系では、映像を画素の集合として取り扱う
必要があり、実用的な画素数、111i111に対する
映像処理においては、画素単位の演算、画素の相関関係
に間する演算は膨大なものとなる。
The concept of video processing is broad, from so-called image processing technology that makes input images clearer or extracts features to recognize images, to computer graphics technology, and even chromakey used in broadcasting equipment. This includes techniques for screen compositing, screen splitting, and other special effects. Video processing systems include analog processing systems, digital processing systems, and their combined systems, and digital processing systems are important in terms of sophistication, reproducibility, quantitative performance, and diversity of processing results. It is increasing. In this digital processing system, it is necessary to treat an image as a set of pixels, and in image processing for a practical number of pixels, 111x111, the calculations for each pixel and the calculations for the correlation between pixels are enormous.

例えば、512X512画素、RGB各8ビットの画素
について粒度分布の測定を行うためには、16ビット汎
用コンピユータに演算プロセッサを搭載したシステムを
用いたとして、1画面あたり20分程度の演算時間を要
した例がある.これを処理速度20M I PS程度の
超大型コンピュータを用いて計算したとしても数秒の処
理時間が必要である。
For example, to measure the particle size distribution of 512 x 512 pixels with 8 bits each for RGB, it would take about 20 minutes per screen to measure the particle size distribution using a system equipped with a 16-bit general-purpose computer and an arithmetic processor. There is an example. Even if this is calculated using a super-large computer with a processing speed of about 20M I PS, a processing time of several seconds is required.

そこで従来から画像処理のための専用rc、flえば図
形のアフィン変換や描画のためのCRTC。
Therefore, there has been a dedicated RC for image processing, and a CRTC for affine transformation and drawing of graphics.

特定ビット数のある種の画像解析をおこなうための専用
ICなど少数のICが提案されて、一部の映像処理の高
速化が図られている。しかしこれらの専用ICの機能は
映像処理技術のうちの掻く狭い領域のみに適用出来るも
のであり、これらのICを用いて映像処理システムを構
築した場合、用途が極めて限られてしまうため、一般に
コストパフォーマンスの低いものとなる。またこれらの
ICは他のICとの併用が考慮されていることはなく、
これらICを組み合わせて多機能の映像処理システムを
構築することも実用上不可能である。
A small number of ICs, such as dedicated ICs for performing certain types of image analysis with a specific number of bits, have been proposed to speed up some video processing. However, the functions of these dedicated ICs can only be applied to a narrow area of video processing technology, and when a video processing system is constructed using these ICs, the applications are extremely limited, and the cost is generally low. This results in poor performance. In addition, these ICs have not been considered for use with other ICs,
It is also practically impossible to construct a multifunctional video processing system by combining these ICs.

さらに、特定の生産ラインのために専用ハードウェアを
構成することもしばしば行われる。この場合用途が限定
されることはいうまでもないが、一般にその使用条件も
厳しく制限され、この条件から外れたときにはエラーが
aSに生じたり、全く測定不能になる。しかも日進月歩
のアルゴリズムの改良に即応することもできない。
Additionally, specialized hardware is often configured for a particular production line. In this case, it goes without saying that the applications are limited, but the conditions of use are also generally strictly limited, and when these conditions are deviated from, an error may occur in the aS or it may become impossible to measure at all. Furthermore, it is not possible to respond quickly to the ever-changing algorithm improvements.

〔発明の目的〕[Purpose of the invention]

この発明はこのような従来の問題点を解消すべく創案さ
れたもので、広範な映像処理に適用でき、汎用超大型コ
ンピュータより高速の処理が可能でなおかつコストパフ
ォーマンスの高い映像処理システムを提供することを目
的とする。
This invention was created to solve these conventional problems, and provides a video processing system that can be applied to a wide range of video processing, is capable of faster processing than a general-purpose ultra-large computer, and has high cost performance. The purpose is to

〔発明の概要〕[Summary of the invention]

この発明に係る映像処理システムは、映像処理の機能を
演算と変換に分けてとらえ、変換部においては、高速メ
モリの出力をその入力にフィードバックしてなり、その
フィードバック経路の中途に軽演算部を設け、必要に応
じて、出力の軽演算結果をフィードバックし、軽演算部
の設定の変更により、軽演算部でありながら極めて多様
な変換を実現し、また軽演算部であるため変換速度を併
せもつものとし、一方、演算部においては、処理内容を
状態演算と数値演算に分け、状態演算部では各画素に対
する判断、例えばそれが処理すべき画素であるか否かの
判断を行ってその判断結果を1ビットの情報とし、また
そのような1ビット情報をもとに近傍の状態情報を算出
している。一方散値演算部では各画素の画素値をパラメ
ータとする演算、例えば平均濃度を算出し、このように
判断を含む低ビット数の数値演算と高ビット数の演算を
分化したことにより、極めて高速かつ効率的に演算が実
行されるものである。
The video processing system according to the present invention separates the video processing function into calculation and conversion, and the conversion section feeds back the output of the high-speed memory to its input, and a light calculation section is installed in the middle of the feedback path. By setting the light calculation section and feeding back the output light calculation results as necessary, and changing the settings of the light calculation section, it is possible to realize extremely diverse conversions even though it is a light calculation section.Also, since it is a light calculation section, the conversion speed can be On the other hand, in the arithmetic unit, the processing content is divided into state computation and numerical computation, and the state computation unit makes a judgment on each pixel, for example, whether it is a pixel to be processed or not. The result is 1-bit information, and neighboring state information is calculated based on such 1-bit information. On the other hand, the scatter value calculation section performs calculations using the pixel value of each pixel as a parameter, such as calculating the average density, and by separating the low-bit number calculations that involve judgment and the high-bit number calculations, it is extremely fast. In addition, calculations can be executed efficiently.

〔発明の実施例〕[Embodiments of the invention]

次にこの発明に係る映像処理システムの第1実施例を画
面に基づいて説明する。
Next, a first embodiment of the video processing system according to the present invention will be described based on screens.

第1図において、映像処理システムは演算部1と変換部
2を有し、演算部1には状態演算部3と数値演算部4が
含まれている。演算部lには画素データPijが個々に
あるいは気合として入力され、状態演算部3は各画素デ
ータP1jについて何らかの判断を行う、この判断とは
、例えば、■その画素自体が処理対aii!素であるか
否か■8近傍に処理対象画素と異なる画素値の画素が存
在するか否か ■8近傍の各画素が処理対象画素と同一か否か ■その画素と隣接画素との関係がオイラー数を求めるた
めのT、F、D、 Eの各個数。
In FIG. 1, the video processing system has a calculation section 1 and a conversion section 2, and the calculation section 1 includes a state calculation section 3 and a numerical calculation section 4. Pixel data Pij are inputted individually or in batches to the calculation unit 1, and the state calculation unit 3 makes some kind of judgment regarding each pixel data P1j.This judgment may be, for example, ■The pixel itself is a processing pair aii! ■ Whether there is a pixel with a different pixel value from the pixel to be processed in the 8 neighborhood ■ Whether each pixel in the 8 neighborhood is the same as the pixel to be processed ■ The relationship between the pixel and adjacent pixels The numbers of T, F, D, and E to find Euler's number.

(ここに、T、F、D、Eの値は隣接画素の特定配列の
個数である。隣接画素がどのような配列にあるかを判定
するためには、ある画素と隣接画素の画素値が同じか否
かの判断が第1に行われる。) ■その他 一方数値演算部4においては、その濃度値をパラメータ
とする演り例えば、 ■濃度平均 ■1次微分 ■2次微分 ■フィルタ処理 ■その他 が行われる。
(Here, the values of T, F, D, and E are the number of specific arrays of adjacent pixels. In order to determine what kind of array the adjacent pixels are in, it is necessary to (The first step is to determine whether they are the same or not.) ■Otherwise, in the numerical calculation section 4, operations using the density values as parameters include: ■Density average ■First derivative ■Second derivative ■Filter processing■ Other things are done.

このように低ビット数の、但し判断を要する演算と、高
ビット数の数値演算とを別個の回路とすれば、処理の高
速化と効率化が図られる。
In this way, by using separate circuits for calculations with a low number of bits that require judgment and numerical calculations with a high number of bits, processing speed and efficiency can be increased.

変換部2は高速メモリ5の出力の分岐に軽演算部6を接
続し、この軽演算部6の出力を高速メモリ5の入力側に
戻している。演算部1の出力はセレクタ7.8を介して
高速メモリ5のデータ入力、アドレス人力Aに接続され
ている。軽演算部6の出力はセレクタ7の入力側に導か
れ、セレクタ7は演算部1の出力と軽演算部6の出力と
を選択的に高速メモリ5のデータ人力りに導く、セレク
タ8の入力側にはデータDoが入力され、セレクタ8は
演算部1の出力とデータDOとを選択的に高速メモリ5
のアドレス入力Aに導く、ここに高速メモリ5としては
、高速のスタティックRAMなどが使用可能である。軽
演算部6を経たデータを高速メモリ5の入力側に戻すこ
とにより、一つのデータに同一の演算処理を繰り返し施
したり、一連のデータ群に同一処理を施してから高速メ
モリ5内に順次格納したりすることも可能となり、また
データの積算、データの漸減、データの逐次比較など極
めて多様な処理が可能となる。高速メモリ5は演算部1
の出力またはデータDoによりアドレスAを指定し得る
ので、画素のx、y座標。
The converter 2 connects a light arithmetic unit 6 to a branch of the output of the high speed memory 5, and returns the output of the light arithmetic unit 6 to the input side of the high speed memory 5. The output of the arithmetic unit 1 is connected to the data input and address input A of the high speed memory 5 via a selector 7.8. The output of the light arithmetic unit 6 is guided to the input side of the selector 7, and the selector 7 selectively guides the output of the arithmetic unit 1 and the output of the light arithmetic unit 6 to the data input side of the high speed memory 5. Data Do is input to the side, and the selector 8 selectively transfers the output of the calculation unit 1 and the data DO to the high-speed memory 5.
A high-speed static RAM or the like can be used as the high-speed memory 5 leading to the address input A of . By returning the data that has passed through the light arithmetic unit 6 to the input side of the high-speed memory 5, it is possible to repeatedly perform the same arithmetic processing on a single piece of data, or to perform the same processing on a series of data groups and then sequentially store them in the high-speed memory 5. It also becomes possible to perform extremely diverse processing such as data integration, data gradual reduction, and data successive comparison. The high-speed memory 5 is the arithmetic unit 1
Since the address A can be specified by the output or data Do, the x, y coordinates of the pixel.

画素値あるいは他のデータに基づいて指定し、またはオ
ートカウンタでアドレスを順次インクリメントすること
も可能であり、用途は多彩である。
It is also possible to specify based on pixel values or other data, or to sequentially increment the address using an auto counter, which has a wide variety of uses.

そして当然、高速メモリ5にデータDOによりアドレス
を与えて、そのアドレスに格納されたデータを読みだす
テーブルとしての使用も可能である。
Of course, it is also possible to give an address to the high-speed memory 5 using data DO and use it as a table for reading data stored at that address.

高速メモリ5には、C3(チップセレクト)、WE(ラ
イトイネーブル)の信号Sが入力され、高速メモリ5の
リード、ライトの切換などの公知のコントロールを行っ
ている。この信号Sのコントロールは例えば特定の性格
をもつ画素データのみを高速メモリ5に書込む場合など
に極めて有効であり、画素値「0」の画素を無視してそ
の他の画素値の画素数を積算するような処理が容易にな
る。
C3 (chip select) and WE (write enable) signals S are inputted to the high speed memory 5, and known controls such as read and write switching of the high speed memory 5 are performed. Control of this signal S is extremely effective, for example, when writing only pixel data with a specific characteristic to the high-speed memory 5, and ignores pixels with a pixel value of "0" and integrates the number of pixels with other pixel values. This makes processing easier.

さらに軽演算部6には必要に応じてデータD3が入力さ
れ、軽演算部6において高速メモリ5の出力に作用させ
る演算の内容、例えば加算を行うときの出力に加えるべ
き数値はこのデータD3により与えられる。
Further, data D3 is inputted to the light arithmetic unit 6 as necessary, and the content of the operation to be applied to the output of the high speed memory 5 in the light arithmetic unit 6, for example, the numerical value to be added to the output when performing addition, is determined by this data D3. Given.

なおセレクタ7.8の入力数を増せば、当然変換部の拡
張性は高まる。
Note that if the number of inputs to the selectors 7 and 8 is increased, the expandability of the conversion section will naturally increase.

第2図は変換回路の第2実施例を示すものであり、第1
実施例の構成に加え、軽演算部6のデータ入力にもセレ
クタ9が接続され、データD3はこのセレクタ9に入力
されている。セレクタ9にはさらにデータD5が入力さ
れ、データD3.D5の切換が可能になっている。軽演
算部6への入力データをこのように選択可能とすれば、
変換部の拡張性は高まる。すなわち、単にデータの種類
を選択し得るようになるというだけでなく、第3図の実
施例に示すような変換部間のデータの転送とフィードバ
ックも可能になる。
FIG. 2 shows a second embodiment of the conversion circuit, and the first
In addition to the configuration of the embodiment, a selector 9 is also connected to the data input of the light calculation section 6, and data D3 is input to this selector 9. Data D5 is further input to the selector 9, and data D3. D5 switching is possible. If input data to the light arithmetic unit 6 can be selected in this way,
The expandability of the conversion section is improved. That is, it becomes possible not only to simply select the type of data, but also to transfer and feed back data between conversion units as shown in the embodiment of FIG.

第3図において、第2図の変換部と同様の変換部2A、
2B、2C,2D (セレクタ8は省略して示しである
。)が複数配列され、各変換部における高速メモリ5の
出力は全てセレクタ10に入力されている。セレクタ1
0の出力は分岐して各変換部のセレクタ9に入力され、
任意の1つの変換部の出力を他の任意の変換部の軽演算
部へ導くことができ、また、変換部の出力をそれ自身の
軽演算部にフィードバックし、あるいは他の変換部を経
由してフィードバックすることが可能である。
In FIG. 3, a converter 2A similar to the converter in FIG.
A plurality of converters 2B, 2C, and 2D (selector 8 is omitted in the illustration) are arranged, and the outputs of the high-speed memory 5 in each converter are all input to the selector 10. Selector 1
The output of 0 is branched and input to the selector 9 of each conversion section,
The output of any one transformer can be led to the light arithmetic part of any other transformer, and the output of a transformer can be fed back to its own light arithmetic part or passed through another transformer. It is possible to provide feedback.

これによって極めて複電な変換処理を実現できる。This makes it possible to realize extremely double-current conversion processing.

第4図〜第7図は軽演算部の具体例を示すものであり、
第1実施例についてのみ構成を図示している。
Figures 4 to 7 show specific examples of the light operation section,
The configuration of only the first embodiment is illustrated.

第4図は軽演算部として加算器11を採用したものであ
り、例えば2値画像やラベル付けされた画像において面
積を計算するとき、何ら演算を施すことなく画素値をそ
のままアドレスD1として指定し、高速メモリ5からそ
のアドレス内の格納データを出力し、加算器11でこの
データにD3(ここでは「1」に設定しておく、)を加
えた値をセレクタ7に戻して高速メモリ5の前記アドレ
スD1に再び格納する。これにより、画像中の各画素値
の画素数がカウントされ、各ラベル領域の面積が求めら
れる。
Figure 4 shows an example in which an adder 11 is used as a light arithmetic unit. For example, when calculating the area of a binary image or a labeled image, the pixel value can be directly specified as the address D1 without performing any calculations. , the data stored in that address is output from the high-speed memory 5, and the adder 11 adds D3 (here, set to "1") to this data and returns the value to the selector 7, and outputs the data stored in the high-speed memory 5. It is stored again at the address D1. As a result, the number of pixels of each pixel value in the image is counted, and the area of each label area is determined.

第5図は、軽演算部として減算器12を採用した変換部
を示すものであり、減算器12には高速メモリ5の出力
の他にデータD3が入力され、さらに高速メモリ5には
、C3(チップセレクト)、WE(ライトイネーブル)
の信号Sが入力されている。減算器12は、内部で補数
を求めるなどの方法で加算器を用いても実現でき、概念
として、第4図と等価なことも多いが、例えば同一濃度
の細分化のあるヒストグラムの平担化など、元の各デー
タ値で平担化後の分布を埋めていく場合、「埋める」こ
とに使用した各データの個数を漸減していく場合など、
Mili!iさせる値が多種ある場合などは、減算器は
重要になる。
FIG. 5 shows a converting section that employs a subtracter 12 as a light operation section.The subtracter 12 receives data D3 in addition to the output of the high-speed memory 5, and the high-speed memory 5 also receives data D3. (chip select), WE (write enable)
A signal S is input. The subtracter 12 can also be realized using an adder by internally calculating the complement, and is often equivalent in concept to that in FIG. For example, when filling the distribution after flattening with each original data value, when gradually decreasing the number of each data used for "filling", etc.
Mili! The subtractor becomes important when there are many different values for i.

第6図は、軽演算部として最大値抽出部13を採用した
変換部を示すものであり、第7図は、最小値抽出部14
を採用した変換部を示すものである。最大値抽出部13
は高速メモリに格納されているデータと新たに導入され
たデータとを比較してより大きなデータを高速メモリ内
にもどす、逆に最小値抽出部14は、より小さなデータ
を高速メモリにもどす、これら変換部は種々の用途が考
えられるが、第10図に示すように、Xカウンタ、Xカ
ウンタから出力された図形のX座標値Dx、Y座標値D
yの最大、最小をそれぞれ変換部によって求めておけば
、その最終結果をMPUなどで処理するだけでフィレ径
を容易に求め得る。
FIG. 6 shows a conversion unit that employs the maximum value extraction unit 13 as a light calculation unit, and FIG. 7 shows the minimum value extraction unit 14.
This figure shows a converter that employs the following. Maximum value extraction unit 13
compares the data stored in the high-speed memory with the newly introduced data and returns the larger data to the high-speed memory; conversely, the minimum value extraction unit 14 returns the smaller data to the high-speed memory; The conversion unit can be used for various purposes, but as shown in FIG.
If the maximum and minimum of y are determined by the converter, the fillet diameter can be easily determined by simply processing the final results with an MPU or the like.

第8図は図形の重心を求めるための変換部を示すもので
あり、第4図と同様の3組の変換部2A、2B、2Cを
並列に接続してなり、それぞれの加算器11A、IIB
、11CにはX座標値Dx、Y座標値Dy、「1」が入
力されている。「1」が入力された変換部2Cは、第4
図同様求積のための回路であり、変換部2A、2Bは、
画素データが「1」のときに、そのX座標、Y座標を積
算する回路である。X座標の積算値を面積で徐した値は
重心のxi標であり、Y座標の積算値を面積で徐した値
は重心のY座標である。この演算は、MPUで行っても
よいし、専用ハードウェアを設けてもよい、ただシステ
ムの汎用性とコンパクト性を考慮すれば、このような複
雑な演算はMPUで行うことが好ましい。
FIG. 8 shows a converting section for determining the center of gravity of a figure, and is made up of three sets of converting sections 2A, 2B, and 2C similar to those in FIG. 4 connected in parallel, and each adder 11A, IIB.
, 11C, an X coordinate value Dx, a Y coordinate value Dy, and "1" are input. The conversion unit 2C to which "1" is input is the fourth
As shown in the figure, it is a circuit for quadrature, and the converting units 2A and 2B are
This circuit integrates the X and Y coordinates when the pixel data is "1". The value obtained by dividing the integrated value of the X coordinate by the area is the xi mark of the center of gravity, and the value obtained by dividing the integrated value of the Y coordinate by the area is the Y coordinate of the center of gravity. This calculation may be performed by an MPU or dedicated hardware may be provided; however, considering the versatility and compactness of the system, it is preferable to perform such a complex calculation by an MPU.

またラベリングされた画像においては、画素データの画
素値によりアドレスを指定し、そのときのDX、Dyを
そのアドレスの格納データに加えていけば、複数のラベ
リング領域の重心を同時に算出しうる。
Furthermore, in a labeled image, by specifying an address using the pixel value of the pixel data and adding the DX and Dy at that time to the data stored at that address, it is possible to calculate the centroids of a plurality of labeling areas at the same time.

第9図はチェイン座標、チェインコードを求めるための
変換部を示すものであり、変換部2A、2Bを組合わせ
てなる。なおこの実施例では軽演算部6およびセレクタ
7を省略して示しである。
FIG. 9 shows a converter for determining chain coordinates and chain codes, and is made up of a combination of converters 2A and 2B. In this embodiment, the light calculation section 6 and the selector 7 are omitted.

変換部2Aのデータ入力にはX座標値Dxが入力され、
変換部2Bのデータ入力にはy座標値Dyが入力されて
おり、各変換部2A、2Bのアドレス入力およびC3,
WE大入力は演算部1の状態演算部3が接続されている
。演算部1には画像メモリ15.16が接続され、画像
メモリ15には各画素の画素値が記録されている。演算
部1は状態演算部3において各ラベリング領域の開始点
く例えばラスクスキャンのスキャンラインが最初にその
領域に入った点)あるいは終了点(例えばラスクスキャ
ンのスキャンラインがその領域から出る点)を判別して
信号Sとして出力し、そのX座標値Dxを変換部2Aの
高速メモリ5に、y座標値[)yを変換部2Bの高速メ
モリ5にそれぞれ登録する。このとき信号Sにより、開
始点または終了点のみの書き込みを指定する。そして演
算部1の状態演算部3は画像メモリ15内の画素値に基
づいて各画素の近傍情報P’ 1、P’ 2、P。
The X coordinate value Dx is input to the data input of the converter 2A,
The y coordinate value Dy is input to the data input of the conversion unit 2B, and the address input of each conversion unit 2A, 2B and C3,
The state calculation unit 3 of the calculation unit 1 is connected to the WE large input. Image memories 15 and 16 are connected to the calculation unit 1, and the image memory 15 records the pixel value of each pixel. The arithmetic unit 1 uses the state arithmetic unit 3 to determine the starting point (for example, the point at which a scan line of a rask scan first enters the area) or the end point (for example, the point at which a scan line of a rask scan exits the area) of each labeling area. It is determined and output as a signal S, and its X coordinate value Dx is registered in the high speed memory 5 of the converter 2A, and its y coordinate value [)y is registered in the high speed memory 5 of the converter 2B. At this time, the signal S specifies writing of only the start point or end point. The state calculation unit 3 of the calculation unit 1 calculates neighborhood information P′ 1 , P′ 2 , P for each pixel based on the pixel values in the image memory 15 .

3、P“4.P”5、P’6、P’7、P’8をも求め
、画像メモリ16に登録し、同時に、画像メモリ15か
ら入力された画素値すなわちラベリング番号を各高速メ
モリのアドレス入力に入力する。これによって各高速メ
モリにはラベリング番号のアドレスに開始点座標または
終了点座標が登録され、−左画像メモリ16には各画素
の近傍情報が登録される。これらの情報が抽出されれば
、例えばMPUにより直接開始点にアクセスし、続いて
チェイン座標、チェインコードを迅速に求めることがで
きる。
3. P"4.P"5, P'6, P'7, and P'8 are also determined and registered in the image memory 16, and at the same time, the pixel values input from the image memory 15, that is, the labeling numbers, are stored in each high-speed memory. address input. As a result, the start point coordinates or end point coordinates are registered in each high-speed memory at the address of the labeling number, and the neighborhood information of each pixel is registered in the left image memory 16. Once these pieces of information are extracted, the starting point can be accessed directly by, for example, the MPU, and then the chain coordinates and chain code can be quickly determined.

第11図は面積、周面長、内皮、複雑度を求めるための
変換部を示すものであり、第4図と同様の変換部2A、
2B(セレクタ7は省略して図示している。)に演算部
1の状態演算部3が接続されている。演算部1は各画素
の画素値に基づいて近傍情報信号を出力する。近傍情報
信号は、この例においては対象となる画素の4近傍にお
いて、その画素と異なる画素値の画素が存在するか否か
を示す1ビットの情報である。近傍情報信号は変換部2
Aの加算器11Aに入力され、その値が高速メモリ5の
出力に加算される。対象となる画素の画素値はそのまま
両高速メモリ5のアドレス入力に入力され、ラベリング
された各領域についてそれぞれアドレスが割当てられる
。各画素値によりアドレスが指定されるごとに加算器1
1Aには近傍情報信号が入力され、それはそのアドレス
の格納データに加算されて同じアドレスに戻される。
FIG. 11 shows a conversion section for determining area, circumferential length, endothelium, and complexity, and includes a conversion section 2A similar to that in FIG.
2B (the selector 7 is omitted in the illustration) is connected to the state calculation unit 3 of the calculation unit 1. The calculation unit 1 outputs a neighborhood information signal based on the pixel value of each pixel. In this example, the neighborhood information signal is 1-bit information indicating whether or not a pixel with a pixel value different from that of the target pixel exists in four neighborhoods of the target pixel. The neighborhood information signal is converted to the converter 2
The value is input to the adder 11A of A, and the value is added to the output of the high speed memory 5. The pixel value of the target pixel is input as is to the address inputs of both high-speed memories 5, and an address is assigned to each labeled area. Adder 1 is added each time an address is specified by each pixel value.
A neighborhood information signal is input to 1A, which is added to the data stored at that address and returned to the same address.

これによって各ラベリング領域ごとに境界画素数による
周囲長が求められる。−左置換部2Bでは、画素値が高
速メモリ5に与えられるごとに加算器11Bにおいて、
その画素値の格納データに「1」が加算される。これに
より各ラベリング領域内の画素数が積算され、面精が求
められる。この面積、周囲長をさらにMPUなどで処理
すれば回度、複雑度も算出し得る。なお前記近傍情報信
号を変換部2AのC8に入力し加算器11Aの入力部に
は加算器11Bと同じく「1」を入力しても同様に周囲
長を算出し得る。
As a result, the perimeter length based on the number of boundary pixels is determined for each labeling area. - In the left substitution unit 2B, each time a pixel value is given to the high-speed memory 5, the adder 11B performs
"1" is added to the stored data of that pixel value. As a result, the number of pixels in each labeling area is integrated, and the area quality is determined. If this area and perimeter are further processed by an MPU or the like, the frequency and complexity can also be calculated. Note that the perimeter can be similarly calculated by inputting the neighborhood information signal to C8 of the converting section 2A and inputting "1" to the input section of the adder 11A as in the adder 11B.

第12図は、2値化、多値化、擬似カラー化のための変
換部(軽演算部およびデータ入力のセレクタは省略して
図示しである。)を示すものであり、高速メモリ5のア
ドレス入力には演算部1の数値演算部4が接続されてい
る。演算部1には全ての画素の画素値を記録した画像メ
モリ15が接続され、高速メモリ5の出力には他の画像
メモリ16が接続されている。高速メモリ5にはあらか
じめカラーコード(アドレス)に対応した濃度値または
RGB値(データ)が格納されており、演算部1は画像
メモリ15内の画素値からカラーコードを算出する0例
えば2値化の処理では一定のスレッショルドレベルを境
に画素値を「0」または「1」のカラーコードに変換し
、多値化では複数のスレッショルドレベルにより多階調
のカラーコードを発生する。擬似カラー化を行う際には
、高速メモリ5には、1カラーコードに対しR,G。
FIG. 12 shows a conversion unit for binarization, multi-value conversion, and pseudo color conversion (the light operation unit and the data input selector are omitted from illustration). The numerical arithmetic unit 4 of the arithmetic unit 1 is connected to the address input. An image memory 15 in which pixel values of all pixels are recorded is connected to the calculation section 1, and another image memory 16 is connected to the output of the high speed memory 5. The high-speed memory 5 stores density values or RGB values (data) corresponding to the color code (address) in advance, and the calculation unit 1 calculates the color code from the pixel values in the image memory 15. In the above processing, pixel values are converted into color codes of "0" or "1" at a certain threshold level, and in multi-value conversion, multi-gradation color codes are generated using a plurality of threshold levels. When performing pseudo coloring, the high speed memory 5 stores R and G for one color code.

B各色についての値が発生する。このように高速メモリ
から出力された濃度値またはRGB値は画像メモリ16
に書込まれ、表示される。
B Values for each color are generated. The density values or RGB values output from the high-speed memory in this way are stored in the image memory 16.
written and displayed.

第13図は2値画像においてX軸回りの1次モーメント
を求めるための変換部を示すものであり、第4図と同様
の変換部2A、2Bを用いている。
FIG. 13 shows a converter for determining the first-order moment around the X-axis in a binary image, and uses converters 2A and 2B similar to those in FIG. 4.

但し変換部2Aではセレクタ7を省略し、変換部2Bで
はセレクタ7および軽濱箆部を省略して図示している。
However, in the converting section 2A, the selector 7 is omitted, and in the converting section 2B, the selector 7 and the light beam section are omitted.

変換部2Aの高速メモリ5には、C8,WF、の信−I
iLSと1.て 何A濱箆を施されることなく演算部1
から画素値が入力され、画素値が「1」のとき、高速メ
モリ5への書込みが行われる。変換部2Aの高速メモリ
5には、アドレス入力としてX座標値Dxが入力され、
変換部2Bの高速メモリ5にはアドレス入力としてy座
標値Dyが入力されている。変換部2Bの高速メモリ5
にはある値に対するn乗の値がテーブルとして格納され
ており、Dyの入力に対し、Dyのn乗の値が出力され
る6その出力は変換部2Aの加算器11に入力され1g
櫓部2Aの高速メモリ5に格納されている対応X座標値
Dxのデータに加算される。すなわちg検回路2Aにお
いては各Dxの値ごとにDyの値が積算されて格納され
る。この積算された値を全てのDxについて合計すれば
1次モーメントを求めることができる。
The high-speed memory 5 of the conversion unit 2A contains the signals of C8 and WF.
iLS and 1. Calculation part 1 without being subjected to any A
A pixel value is input from , and when the pixel value is "1", writing to the high speed memory 5 is performed. The X coordinate value Dx is input as an address input to the high speed memory 5 of the converter 2A,
The y-coordinate value Dy is input to the high-speed memory 5 of the converter 2B as an address input. High-speed memory 5 of converter 2B
The n-th power of a certain value is stored as a table, and in response to the input of Dy, the n-th power of Dy is output.6The output is input to the adder 11 of the converter 2A,
It is added to the data of the corresponding X coordinate value Dx stored in the high speed memory 5 of the tower section 2A. That is, in the g detection circuit 2A, the value of Dy is integrated and stored for each value of Dx. By summing this integrated value for all Dx, the first moment can be obtained.

第14図はオイラー数を求めるための変換部を示すもの
であり、第4図と同様の変換部2A、2B、2C,2D
を用い、それぞれの高速メモリ5のアドレス入力に演算
部1が接続しである。演算部1における状態演算部3は
各画素の画素値をDlとして各高速メモリ5に入力し、
かつ、各画素の近傍情報に基づいて、オイラー数を求め
るための指標T、F、D、Hの値を連続ビット列の情報
I (T、F、D、Flと1.て出力する、この情報1
 (T、F、D、E)liT抽出I]1Ni7、F抽出
回路18、D抽出回路19、E抽出回路20を介して各
変換回路2A、2B、2C12Dの加算器11に入力さ
れている。各抽出回路はT、F、D、Eそれぞれのビッ
ト位置を抽出して、T、F、D、Eの値を取出すもので
あり、取出された値は各変換回路でラベリング領域ごと
に積算されて、高速メモリ5に格納される。オイラー数
はG4(4近傍)、G8(8近傍)で表示され、各ラベ
リング領域の面積を■とすると G4=V−E+F G8=V  E  o+T F で与えられる。
FIG. 14 shows a converter for determining Euler's number, and the converters 2A, 2B, 2C, and 2D are similar to those in FIG.
The arithmetic unit 1 is connected to the address input of each high-speed memory 5. The state calculation unit 3 in the calculation unit 1 inputs the pixel value of each pixel as Dl to each high-speed memory 5,
Based on the neighborhood information of each pixel, the values of indices T, F, D, and H for determining the Euler number are output as continuous bit string information I (T, F, D, Fl, and 1. 1
(T, F, D, E)liT extraction I] It is input to the adder 11 of each conversion circuit 2A, 2B, 2C12D via 1Ni7, F extraction circuit 18, D extraction circuit 19, and E extraction circuit 20. Each extraction circuit extracts the respective bit positions of T, F, D, and E and extracts the values of T, F, D, and E, and the extracted values are integrated for each labeling area in each conversion circuit. and stored in the high-speed memory 5. The Euler number is expressed as G4 (4 neighborhood) and G8 (8 neighborhood), and if the area of each labeling region is ▪, then it is given by G4=VE+F G8=VE o+T F .

以上の実施例においては、変換部の軽演算の内容として
は、加減算、最大、最小値抽出を例示したが、この他に
、高速演算し得る範囲において、絶対値などの数値演算
や、比較、AND、0R1NAND、NOR,EX−O
R+EX−NORなどの論理演算を自由に選択、採用し
うる。
In the above embodiments, addition and subtraction, maximum and minimum value extraction were exemplified as the contents of light operations in the conversion unit, but in addition to these, numerical operations such as absolute values, comparisons, AND, 0R1NAND, NOR, EX-O
Logical operations such as R+EX-NOR can be freely selected and adopted.

そして、変換部は高速メモリを備えているので。And since the conversion part is equipped with high-speed memory.

いわゆるカラーコードからRGB値を参照するようなデ
ータ参照のための一般的ルツクアップテーブルとして、
あるいは、画像のラベリングなどに際しては、ラベリン
グ情報を高速格納するキイ/シュメモリとして適用し得
る。この場合においては、ラベリング情報を出力するタ
イミングを近傍情報信号から与え、変換部の高速メモリ
のアドレスを指定するためにカウンタ(アドレスカウン
タ)を設け、このアドレスカウンタを前記近傍情報信号
で歩進してアドレスを指定することができる。
As a general lookup table for data reference such as referencing RGB values from so-called color codes,
Alternatively, when labeling images, etc., it can be applied as a key/slash memory that stores labeling information at high speed. In this case, the timing for outputting the labeling information is given from the neighborhood information signal, a counter (address counter) is provided to specify the address of the high-speed memory of the converter, and this address counter is incremented by the neighborhood information signal. address can be specified.

また前記セレクタには任意の切換手段例えばワイヤード
オアなどが含まれる。
Further, the selector includes any switching means such as a wired OR.

〔発明の効果〕〔Effect of the invention〕

前述のとおり、この発明に係る映像処理システムは、映
像処理の機能を演算と変換に分けてとらえ、変換部にお
いては、高速メモリの出力をその入力にフィードバック
してなり、そのフィードバック経路の中途に軽演算部を
設け、必要に応じて。
As mentioned above, the video processing system according to the present invention separates the video processing function into calculation and conversion, and in the conversion section, the output of the high-speed memory is fed back to its input, and in the middle of the feedback path, A light calculation section is provided as needed.

出力の軽演算結果をフィードバックし軽演算部の設定の
変更により、軽演算部でありながら極めて多様な変換を
臭現し、また軽演算部であるため高変換速度を併せもつ
ものとし、一方、演算部においては、処理内容を状態演
算と数値演算に分け、状態演算部では各画素に対する判
断、例えばそれが処理すべき画素であるか否かの判断を
行ってその判断結果を1ビットの情報とし、またそのよ
うな1ビット情報をもとに近傍の状態情報を算出してい
る。一方散値演算部では各画素の画素値をパラメータと
する演算、例えば平均濃度を算出し、このように判断を
要する低ビット数の演算と高ビット数の数値演算を分化
したことにより、極めて高速かつ効率的に演算が実行さ
れるという優れた効果を有する。
By feeding back the output light calculation results and changing the settings of the light calculation section, it is possible to perform extremely diverse conversions even though it is a light calculation section. The processing content is divided into state calculation and numerical calculation in the state calculation part, and the state calculation part makes a judgment on each pixel, for example, whether it is a pixel to be processed or not, and converts the judgment result into 1-bit information. , neighborhood state information is calculated based on such 1-bit information. On the other hand, the scatter value calculation section performs calculations using the pixel value of each pixel as a parameter, such as calculating the average density, and by separating low-bit calculations that require judgment from high-bit numerical calculations, it is extremely fast. It also has the excellent effect of efficiently executing calculations.

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

第1図はこの発明に係る映像処理システムの第1実施例
を示すブロック図、第2図は第2実施例を示すブロック
図、第3図は第3実施例を示すブロック図、第4図〜第
7図は第1冥施例における軽演算部の態様を示すブロッ
ク図、第8図は第4図の態様を組み合わせてなる変形例
を示すブロック図、第9図〜第14図は他の変形例を示
すブロック図である。 1・・・・・・演算部、2,2A、2B、2C12D・
・・・・・変換部、3・・・・・・状態演算部、4・・
・・・・数値演算部、5・・・・・・高速メモリ、6・
・・・・・軽演算部、7,8.9.10、・・・・・・
セレクタ、11.11A、11B・・・・・・加算器、
12・・・・・・減算器、13・・・・・・最大値抽出
部、14・・・・・・最小値抽出部、15.16・・・
・・・画像メモリ、17・・・・・・T抽出回路、18
・・・・・・F抽出回路、19・・・・・・D抽出回路
、20・・・・・・E抽出回路。 A・・・・・・アドレス入力、D・・・・・・データ入
力、Do、Di、D2.D3・・・・・・データ、S・
・・・・・信号、I(T、F、D、E)・・・・・・オ
イラー数を求めるためのパラメータ。
FIG. 1 is a block diagram showing a first embodiment of a video processing system according to the present invention, FIG. 2 is a block diagram showing a second embodiment, FIG. 3 is a block diagram showing a third embodiment, and FIG. ~ Figure 7 is a block diagram showing aspects of the light calculation section in the first embodiment, Figure 8 is a block diagram showing a modified example that combines the aspects of Figure 4, and Figures 9 to 14 are other diagrams. It is a block diagram showing a modification of . 1... Arithmetic unit, 2, 2A, 2B, 2C12D.
... Conversion section, 3 ... State calculation section, 4...
... Numerical calculation section, 5 ... High speed memory, 6.
...Light calculation section, 7, 8.9.10, ...
Selector, 11.11A, 11B...adder,
12...Subtractor, 13...Maximum value extraction unit, 14...Minimum value extraction unit, 15.16...
...Image memory, 17...T extraction circuit, 18
......F extraction circuit, 19...D extraction circuit, 20...E extraction circuit. A: Address input, D: Data input, Do, Di, D2. D3...Data, S.
...Signal, I (T, F, D, E) ...Parameters for determining Euler's number.

Claims (1)

【特許請求の範囲】[Claims] (1)各画素に対する判断結果を意味する1ビットの情
報を求める演算を含む状態演算部と、各画素の画素値を
パラメータとする演算を行う数値演算部とを備えた演算
部と、この演算部の出力が入力される高速メモリと、こ
の高速メモリの出力の分岐に接続された軽演算部とを備
え、この軽演算銀の出力が前記切換手段に入力されてい
る変換部とを有する映像処理システム。
(1) An arithmetic unit that includes a state arithmetic unit that includes an arithmetic operation that obtains 1-bit information that means the judgment result for each pixel, and a numerical arithmetic unit that performs an arithmetic operation using the pixel value of each pixel as a parameter, and this arithmetic unit. a high-speed memory into which the output of the unit is input, a light calculation unit connected to a branch of the output of the high-speed memory, and a conversion unit into which the output of the light calculation unit is input to the switching means. processing system.
JP62013201A 1987-01-08 1987-01-22 Video processing system Expired - Lifetime JP2628301B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP62013201A JP2628301B2 (en) 1987-01-22 1987-01-22 Video processing system
DE1988100020 DE274376T1 (en) 1987-01-08 1988-01-04 IMAGE PROCESSING SYSTEM.
EP19880100020 EP0274376A3 (en) 1987-01-08 1988-01-04 Image processing system
US07/532,121 US5276778A (en) 1987-01-08 1990-06-04 Image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62013201A JP2628301B2 (en) 1987-01-22 1987-01-22 Video processing system

Publications (2)

Publication Number Publication Date
JPS63181081A true JPS63181081A (en) 1988-07-26
JP2628301B2 JP2628301B2 (en) 1997-07-09

Family

ID=11826545

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62013201A Expired - Lifetime JP2628301B2 (en) 1987-01-08 1987-01-22 Video processing system

Country Status (1)

Country Link
JP (1) JP2628301B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57182784A (en) * 1981-05-06 1982-11-10 Tokyo Shibaura Electric Co Image contour extractor
JPS58129552A (en) * 1982-01-28 1983-08-02 Hitachi Ltd Processor
JPS60108976A (en) * 1983-11-16 1985-06-14 Yaskawa Electric Mfg Co Ltd Crt graphic display device
JPS61221982A (en) * 1985-03-28 1986-10-02 Fujitsu Ltd Calculating device for surrounding length of picture pattern

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57182784A (en) * 1981-05-06 1982-11-10 Tokyo Shibaura Electric Co Image contour extractor
JPS58129552A (en) * 1982-01-28 1983-08-02 Hitachi Ltd Processor
JPS60108976A (en) * 1983-11-16 1985-06-14 Yaskawa Electric Mfg Co Ltd Crt graphic display device
JPS61221982A (en) * 1985-03-28 1986-10-02 Fujitsu Ltd Calculating device for surrounding length of picture pattern

Also Published As

Publication number Publication date
JP2628301B2 (en) 1997-07-09

Similar Documents

Publication Publication Date Title
EP0150060B1 (en) Multifunctional image processor
NL7902709A (en) AUTOMATIC IMAGE PROCESSOR.
US6067088A (en) Image processing method and apparatus thereof
CN109740563B (en) Moving object detection method for video monitoring
US5714975A (en) Apparatus and method for generating halftoning or dither values
JPS63181081A (en) Video processing system
JP2004201283A5 (en)
JP2628300B2 (en) How to use the conversion circuit
JP3432039B2 (en) Image encoding method and apparatus
JP2758291B2 (en) Image processing method and apparatus
JP2623089B2 (en) Video processing system
JP2766803B2 (en) Conversion circuit
US20030026338A1 (en) Automated mask selection in object-based video encoding
Al Bdour Encryption of Dynamic Areas of Images in Video based on Certain Geometric and Color Shapes
JP3220110B2 (en) Color image processing equipment
JPH01119872A (en) Conversion circuit
EP0428624A1 (en) Intelligent scan image processor
JP2658346B2 (en) Parallel image processing device
JP3146092B2 (en) Encoding device and decoding device
JPS63837B2 (en)
JPH06261214A (en) Image coding method
JPH09321982A (en) Image processing unit
JPS6170859A (en) Treatment of picture information
JPH02153676A (en) Halftone processing circuit
JPH0962845A (en) Labeling method for picture data

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term