JPH08272963A - Method and device for filtering processing of image - Google Patents

Method and device for filtering processing of image

Info

Publication number
JPH08272963A
JPH08272963A JP9783295A JP9783295A JPH08272963A JP H08272963 A JPH08272963 A JP H08272963A JP 9783295 A JP9783295 A JP 9783295A JP 9783295 A JP9783295 A JP 9783295A JP H08272963 A JPH08272963 A JP H08272963A
Authority
JP
Japan
Prior art keywords
image data
level
bit
candidate
value
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
JP9783295A
Other languages
Japanese (ja)
Inventor
Kunio Ikuta
国男 生田
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing 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 Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP9783295A priority Critical patent/JPH08272963A/en
Publication of JPH08272963A publication Critical patent/JPH08272963A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE: To extract a maximum or minimum value from plural image data without sorting them. CONSTITUTION: This device is provided with N stages of examining circuits 100-400 corresponding to the respective bits of N-bit image data. The examining circuit of an (i)th stage (i is 1 to N) finds new examination signals XP2-XT2 showing which of M (5) image data is candidate data on the basis of the value of the (i)th bit of each image data from the most significant digit bit as to image data specified as candidate data with examination signals XP3-XT3 supplied from the precedent stage. Thus, examination signals are found in order for every stage and the maximum value or minimum value is specified with the examination signals XP-XT obtained by the examining circuit 400 of the lowermost stage.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、所定個数の画像デー
タの中から最大値または最小値を求める画像のフィルタ
リング処理方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image filtering method and apparatus for obtaining a maximum value or a minimum value from a predetermined number of image data.

【0002】[0002]

【従来の技術】画像のフィルタの一種として、フィルタ
領域内の複数の画像データの中からその最大値または最
小値を抽出するフィルタが用いられることがある。従来
のフィルタリング処理では、複数の画像データをソーテ
ィングして大きさの順に並べて、最大値または最小値を
抽出する方法が一般的である。
2. Description of the Related Art As one type of image filter, a filter for extracting the maximum value or the minimum value from a plurality of image data in a filter area may be used. In the conventional filtering process, a method is generally used in which a plurality of image data are sorted and arranged in order of size to extract the maximum value or the minimum value.

【0003】[0003]

【発明が解決しようとする課題】しかし、近年における
画像処理装置の処理速度の高速化の要求に伴い、画像デ
ータのソーティングに費やす時間も可能な限り削減した
いという要望があった。
However, with the recent demand for higher processing speed of image processing apparatuses, there has been a demand for reducing the time spent for sorting image data as much as possible.

【0004】この発明は、従来技術における上述の課題
を解決するためになされたものであり、ソーティングを
行なうことなく、複数の画像データの中から最大値また
は最小値を抽出することを目的とする。
The present invention has been made to solve the above-mentioned problems in the prior art, and an object thereof is to extract the maximum value or the minimum value from a plurality of image data without performing sorting. .

【0005】[0005]

【課題を解決するための手段および作用】上述の課題を
解決するため、この発明の請求項1に記載された方法
は、それぞれNビットで表現されたM個の画像データの
中から、最大値と最小値のいずれか一方である極値を抽
出する画像のフィルタリング処理方法であって、(a)
前記M個の画像データのそれぞれについて、最上位ビッ
トを処理対象ビットとして選択する工程と、(b)前記
処理対象ビット相互の論理演算をすることによって、前
記処理対象ビットの値が前記第1のレベルである第1種
の画像データと、前記処理対象ビットの値が第2のレベ
ルである第2種の画像データとの中の一方が前記極値と
なりうる候補データであることを示す候補信号を生成す
る工程と、(c)前記M個の画像データのそれぞれの処
理対象ビットと、前記候補信号との論理演算をすること
によって、前記M個の画像データのそれぞれについて、
前記候補データであるか否かを示す検定信号を生成する
工程と、(d)前記M個の画像データの中で、前記検定
信号によって前記候補データであると指定された画像デ
ータについて、次の下位側のビットを処理対象ビットと
して順次選択しつつ、前記工程(b)ないし工程(c)
を順次実行することによって、前記極値となる画像デー
タを特定する検定信号を生成する工程と、を備えること
を特徴とする。
In order to solve the above-mentioned problems, the method according to claim 1 of the present invention is a method in which the maximum value is selected from M image data represented by N bits. A method of filtering an image for extracting an extreme value that is one of
For each of the M pieces of image data, a step of selecting the most significant bit as a processing target bit, and (b) performing a logical operation between the processing target bits, whereby the value of the processing target bit is the first A candidate signal indicating that one of the first type image data that is a level and the second type image data that the value of the processing target bit is the second level is the candidate data that can be the extreme value. And (c) performing a logical operation on each of the processing target bits of the M pieces of image data and the candidate signal to obtain, for each of the M pieces of image data,
Generating a test signal indicating whether or not the candidate data, (d) among the M image data, the image data designated as the candidate data by the test signal is The steps (b) to (c) are performed while sequentially selecting the lower bits as the bits to be processed.
Is sequentially performed to generate a test signal that specifies the image data that becomes the extreme value.

【0006】最上位ビットから順に、M個の画像データ
のいずれが候補データであるか否かを調べて、M個の画
像データのいずれが候補データであるかを示す検定信号
を各ビット毎に順次求めていく。従って、最下位ビット
について得られる検定信号によって、最大値または最小
値を特定することができる。
In order from the most significant bit, it is checked which of the M image data is the candidate data, and a test signal indicating which of the M image data is the candidate data is provided for each bit. I will seek them one by one. Therefore, the maximum or minimum value can be specified by the test signal obtained for the least significant bit.

【0007】請求項2に記載された画像のフィルタリン
グ処理方法では、前記第1のレベルは1レベルであり、
前記第2のレベルは0レベルであって、前記工程(d)
は、前記M個の画像データの中の最大値を特定する検定
信号を生成する工程を備える。
In the image filtering method according to the second aspect, the first level is one level,
The second level is 0 level, and the step (d)
Includes the step of generating a test signal that specifies the maximum value among the M image data.

【0008】請求項3に記載された画像のフィルタリン
グ処理方法では、前記第1のレベルは0レベルであり、
前記第2のレベルは1レベルであって、前記工程(d)
は、前記M個の画像データの中の最小値を特定する検定
信号を生成する工程を備える。
In the image filtering method according to the third aspect, the first level is 0 level,
The second level is one level, and the step (d)
Includes the step of generating a test signal that specifies the minimum value of the M image data.

【0009】請求項4に記載された装置は、それぞれN
ビットで表現されたM個の画像データの中から、最大値
と最小値のいずれか一方である極値を抽出する画像のフ
ィルタリング処理装置であって、前記Nビットの各ビッ
トに対応して直列に接続されたN段の検定手段を備え、
前記Nビットの中の上位からi番目(iは1〜Nの整
数)のビットに対応するi段目の検定手段は、前段から
与えられた検定信号によって有効と指定された画像デー
タの中で、前記i番目のビットの値が前記第1のレベル
である第1種の画像データと、前記i番目のビットの値
が第2のレベルである第2種の画像データとのいずれが
前記極値の候補データとなり得るかを示す候補信号を生
成する候補信号生成手段と、前記前段から与えられた検
定信号によって有効と指定された画像データのそれぞれ
について、前記i番目のビットと前記候補信号との論理
演算をすることによって、前記M個の画像データのそれ
ぞれについて、前記候補データであるか否かを示す新た
な検定信号を生成し、次段の検定手段に前記新たな検定
信号を供給する判別手段と、を備え、最下位ビットに対
応するN段目の検定手段は、前記M個の画像データの中
の極値を特定する検定信号を出力する手段を有すること
を特徴とする。
The device according to claim 4 is N
An image filtering processing device for extracting an extreme value, which is one of a maximum value and a minimum value, from M pieces of image data represented by bits, and a serial processing corresponding to each bit of the N bits. Equipped with N-stage test means connected to
The i-th stage verification means corresponding to the i-th (i is an integer of 1 to N) bit from the higher order among the N bits is the image data designated as valid by the test signal given from the previous stage. , Either the first type image data in which the value of the i-th bit is the first level or the second type image data in which the value of the i-th bit is the second level is the pole. For each of the candidate signal generating means for generating a candidate signal indicating whether it can be value candidate data, and the image data designated as valid by the verification signal given from the preceding stage, the i-th bit and the candidate signal A new test signal indicating whether or not it is the candidate data is generated for each of the M image data, and the new test signal is supplied to the test means in the next stage. Discrimination Comprising a stage, a test unit of the N-th stage corresponding to the least significant bit, characterized in that it has a means for outputting a test signal for identifying the extreme values in the M image data.

【0010】i段目の検定手段は、i番目のビットにつ
いて、M個の画像データのいずれが候補データであるか
否かを調べて、M個の画像データのいずれが候補データ
であるかを示す検定信号を求める。また、次段の検定手
段は、前段の検定信号に基づいて、(i+1)番目のビ
ットについて検定信号を求める。従って、最下位ビット
に対するN段目の検定手段は、最大値または最小値を特
定する検定信号を得ることができる。
The i-th stage verification means examines which of the M pieces of image data is the candidate data for the i-th bit, and determines which of the M pieces of image data is the candidate data. Obtain the test signal shown. Further, the next-stage verification means obtains the verification signal for the (i + 1) th bit based on the previous-stage verification signal. Therefore, the N-th stage verification means for the least significant bit can obtain a verification signal that specifies the maximum value or the minimum value.

【0011】[0011]

【実施例】図1は、この発明の一実施例を適用して画像
データのフィルタリング処理を行なう画像フィルタリン
グ処理装置の構成を示すブロック図である。図1の装置
は、5つの画像データP〜Tから最大値を特定する検定
信号XP 〜XT を生成する装置である。入力される5つ
の画像データP〜Tは、それぞれ4ビットのデータであ
る。第1の画像データPの各ビットは、最上位から順に
P3 ,P2 ,P1 ,P0 と記されている。他の画像デー
タについても同様である。この装置には、画像データの
4ビットのそれぞれに対応して、4段の検定回路100
〜400が直列に配列されている。最上位ビットに対応
する最上段の検定回路100は、5つのAND回路11
1〜115と、5つの判別回路121〜125と、NO
R回路130とを備えている。他の検定回路200〜4
00も同じ構成である。最上段の検定回路100の5つ
のAND回路111〜115の一方の端子には、各画像
データの最上位ビットP3 〜T3 がそれぞれ入力され、
また、他方の端子には検定信号XP3〜XT3がそれぞれ入
力されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing the configuration of an image filtering processing apparatus for applying an embodiment of the present invention to filter image data. The apparatus shown in FIG. 1 is an apparatus for generating test signals XP to XT that specify the maximum value from five image data P to T. The five pieces of input image data P to T are 4-bit data. Each bit of the first image data P is described as P3, P2, P1, P0 in order from the most significant bit. The same applies to other image data. This apparatus includes a four-stage verification circuit 100 corresponding to each of the four bits of image data.
400 are arranged in series. The uppermost test circuit 100 corresponding to the most significant bit has five AND circuits 11
1-115, five determination circuits 121-125, and NO
R circuit 130. Other test circuits 200-4
00 has the same configuration. The most significant bits P3 to T3 of each image data are respectively input to one terminals of the five AND circuits 111 to 115 of the uppermost test circuit 100,
The verification signals XP3 to XT3 are input to the other terminals, respectively.

【0012】図2は、図1に示すAND回路115と判
別回路125とNOR回路130の構成を示すブロック
図である。判別回路125は、EXOR回路126と、
AND回路127とを有している。
FIG. 2 is a block diagram showing configurations of AND circuit 115, discrimination circuit 125 and NOR circuit 130 shown in FIG. The discrimination circuit 125 includes an EXOR circuit 126,
AND circuit 127.

【0013】AND回路115には、第5の画像データ
Tの最上位ビットT3 と、第5の画像データTの最上位
ビットT3 に対する検定信号XT3とが入力されている。
検定信号XT3は、その画像データTが最大値の候補とな
るか否かを示す信号である。但し、各画像データの最上
位ビットに対する検定信号XP3〜XT3は、各画像データ
が処理対象となるか否かを示すために使用される。すな
わち、5つの画像データP〜Tの中で、フィルタリング
処理の対象となる画像データに対しては、最上位ビット
に対する検定信号XP3〜XT3が1レベルに設定され、処
理対象から除外される画像データに対しては最上位ビッ
トに対する検定信号XP3〜XT3が0レベルに設定され
る。図1の例では、最上位ビットに対する検定信号がす
べて1レベルに設定されているので、5つの画像データ
すべてが処理対象となる。
The AND circuit 115 receives the most significant bit T3 of the fifth image data T and the test signal XT3 for the most significant bit T3 of the fifth image data T.
The verification signal XT3 is a signal indicating whether or not the image data T becomes a candidate for the maximum value. However, the verification signals XP3 to XT3 for the most significant bit of each image data are used to indicate whether or not each image data is to be processed. That is, among the five image data P to T, the image data to be filtered is the image data to be excluded from being processed by setting the test signals XP3 to XT3 for the most significant bit to 1 level. , The test signals XP3 to XT3 for the most significant bit are set to 0 level. In the example of FIG. 1, since all the test signals for the most significant bit are set to 1 level, all five image data are to be processed.

【0014】AND回路115の出力は、他のAND回
路111〜114(図1)の出力とともに、5入力NO
R回路130に入力される。図1、図2の例では最上位
ビットに対する検定信号XP3〜XT3がすべて1レベルに
設定されているので、各画像データの最上位ビットP3
〜T3 がそのままNOR回路130に入力される。NO
R回路130は、入力される5つのビットP3 〜T3 の
レベルに応じて、次のようなレベルの候補信号Y3 を出
力する。
The output of the AND circuit 115 is 5-input NO together with the outputs of the other AND circuits 111 to 114 (FIG. 1).
It is input to the R circuit 130. In the examples of FIGS. 1 and 2, since the test signals XP3 to XT3 for the most significant bit are all set to 1 level, the most significant bit P3 of each image data is set.
.About.T3 is directly input to the NOR circuit 130. NO
The R circuit 130 outputs a candidate signal Y3 having the following level according to the levels of the five bits P3 to T3 inputted.

【0015】少なくとも1つが1レベルの場合:Y3
=”0”(処理対象ビットが1レベルの画像データが候
補データであることを示す)
If at least one is one level: Y3
= “0” (indicates that image data whose processing target bit is 1 level is candidate data)

【0016】すべてが0レベルの場合:Y3 =”1”
(処理対象ビットが0レベルの画像データが候補データ
であることを示す)
When all are at 0 level: Y3 = "1"
(Indicates that the image data whose processing target bit is 0 level is the candidate data)

【0017】1レベルのビットが少なくとも1つある場
合には、1レベルのビットを有する画像データが最大値
の候補となる。一方、1レベルのビットが全く存在しな
い場合には、0レベルのビットを有する画像データが最
大値の候補となる。候補信号Y3 は、処理対象となって
いるビットが1レベル(第1のレベル)である第1種の
画像データと、0レベル(第2のレベル)である第2種
の画像データのいずれが候補データとなるかを示す信号
である。
When there is at least one 1-level bit, the image data having 1-level bit is a candidate for the maximum value. On the other hand, when there are no 1-level bits, the image data having 0-level bits is a candidate for the maximum value. For the candidate signal Y3, either of the first type image data in which the bit to be processed is 1 level (first level) or the second type image data in which the bit to be processed is 0 level (second level) is selected. It is a signal indicating whether or not it becomes candidate data.

【0018】このように、NOR回路130は、処理対
象ビット相互の論理演算を行なうことによって、処理対
象ビットが1レベル(第1のレベル)である第1種の画
像データが候補データであるか、処理対象ビットが0レ
ベル(第2のレベル)である第2種の画像データが候補
データであるかを示す候補信号を生成する候補信号生成
手段としての機能を有する。
As described above, the NOR circuit 130 performs a logical operation on the processing target bits to determine whether the first-type image data in which the processing target bits have one level (first level) is the candidate data. , And has a function as a candidate signal generation unit that generates a candidate signal indicating whether the second-type image data whose processing target bit is 0 level (second level) is the candidate data.

【0019】判別回路125には、3つの入力信号IN
a,INb,INcが入力されている。第1の入力信号
INaは検定信号XT3であり、第2の入力信号INbは
AND回路115の出力(すなわち処理対象ビットT3
)、第3の入力信号INcは候補信号Y3 である。第
2と第3の入力信号INb,INcはEXOR回路12
6に入力されている。また、第1の入力信号INaとE
XOR回路126の出力は、AND回路127に入力さ
れている。判別回路125の出力は、次の下位側ビット
T2 の検定信号XT2として次段の検定回路200に入力
される。
The discrimination circuit 125 has three input signals IN.
a, INb, and INc are input. The first input signal INa is the test signal XT3, and the second input signal INb is the output of the AND circuit 115 (that is, the processing target bit T3.
), The third input signal INc is the candidate signal Y3. The EXOR circuit 12 receives the second and third input signals INb and INc.
It has been entered in 6. In addition, the first input signals INa and E
The output of the XOR circuit 126 is input to the AND circuit 127. The output of the discrimination circuit 125 is input to the next-stage test circuit 200 as the test signal XT2 of the next lower bit T2.

【0020】図3は、判別回路125の真理値表であ
る。前段から与えられた検定信号XT3が0レベルの時に
は、判別回路125から出力される次段の検定信号XT2
も0レベルとなる。換言すれば、前段から与えられた検
定信号XT3が候補データでないことを示している場合に
は、次段の検定信号XT2も候補データでないことを示
す。
FIG. 3 is a truth table of the discrimination circuit 125. When the test signal XT3 given from the previous stage is at 0 level, the test signal XT2 of the next stage output from the discrimination circuit 125.
Also becomes 0 level. In other words, when the test signal XT3 given from the previous stage indicates that it is not the candidate data, it also indicates that the test signal XT2 in the next stage is also not the candidate data.

【0021】前段から与えられた検定信号XT3が1レベ
ルの時には、第2の入力信号INbと第3の入力信号I
Ncのレベルに応じて次段の検定信号XT2のレベルが決
定される。すなわち、第3の入力信号INc(候補信号
Y3 )が0レベルの場合には、第2の入力信号INb
(処理対象ビットT3 )のレベルがそのまま次段の検定
信号XT2のレベルとなる。上述したように、候補信号Y
3 が0レベルの場合には、処理対象ビットが1レベルで
ある画像データが候補データとなるので、処理対象ビッ
ト(第2の入力信号INb)がそのまま次段の検定信号
XT2のレベルとして出力されるのである。一方、第3の
入力信号INc(候補信号Y3 )が1レベルの場合に
は、第2の入力信号INb(処理対象ビットT3 )を反
転したレベルの信号が次段の検定信号XT2となる。候補
信号XT3が1レベルである場合には、処理対象ビットが
0レベルである画像データが候補データとなるので、処
理対象ビット(第2の入力信号INb)が反転されて次
段の検定信号XT2のレベルとして出力されるのである。
When the test signal XT3 given from the previous stage is at the 1 level, the second input signal INb and the third input signal Ib are input.
The level of the test signal XT2 at the next stage is determined according to the level of Nc. That is, when the third input signal INc (candidate signal Y3) is at 0 level, the second input signal INb
The level of (processing target bit T3) becomes the level of the next-stage verification signal XT2 as it is. As described above, the candidate signal Y
When 3 is 0 level, the image data whose processing target bit is 1 level becomes the candidate data, and therefore the processing target bit (second input signal INb) is output as it is as the level of the test signal XT2 of the next stage. It is. On the other hand, when the third input signal INc (candidate signal Y3) is at 1 level, the signal of the level obtained by inverting the second input signal INb (processing target bit T3) becomes the test signal XT2 of the next stage. When the candidate signal XT3 is at the 1 level, the image data whose processing target bit is at the 0 level becomes the candidate data, so the processing target bit (second input signal INb) is inverted and the verification signal XT2 of the next stage is inverted. Is output as the level of.

【0022】このように、判別回路125は、前段から
与えられた検定信号XT3によって候補データであると示
された画像データについて、処理対象ビットT3 と候補
信号Y3 との論理演算をすることによって、この画像デ
ータが候補データであるか否かを示す新たな検定信号X
T2を生成する機能を有する。
As described above, the discrimination circuit 125 performs a logical operation of the processing target bit T3 and the candidate signal Y3 for the image data indicated by the test signal XT3 given from the preceding stage as the candidate data, New verification signal X indicating whether or not this image data is candidate data
It has the function of generating T2.

【0023】図1に示す第1段の検定回路100内の判
別回路121〜125は各画像データが候補データであ
るか否かを示す新たな検定信号XP2〜XT2を生成する。
次段の検定回路200は、これらの信号XP2〜XT2と、
各画像データの上位第2ビットP2 〜T2 に従って、さ
らに次段の検定信号XP1〜XT1を生成する。こうして、
上位からi番目のビットに対応するi段目の検定回路
は、前段から与えられた検定信号と、M個の画像データ
のi番目のビットに基づいて、新たな検定信号を生成し
て次段の検定回路に供給する。そして、最下位ビットに
対応する検定回路400から出力される検定信号XP 〜
XT によって最大値が特定される。すなわち、検定信号
XP0〜XT0のレベルが1である画像データが最大値であ
る。最下段の検定回路400の下流にセレクタを設け、
検定信号XP 〜XT に従って5つの画像データP〜Tの
中の1つを選択するようにすれば、最大値を抽出するこ
とができる。
Discrimination circuits 121 to 125 in the first-stage inspection circuit 100 shown in FIG. 1 generate new inspection signals XP2 to XT2 indicating whether or not each image data is candidate data.
The verification circuit 200 in the next stage receives these signals XP2 to XT2,
In accordance with the upper second bits P2 to T2 of each image data, further verification signals XP1 to XT1 of the next stage are generated. Thus
The i-th test circuit corresponding to the i-th bit from the higher order generates a new test signal based on the test signal given from the previous stage and the i-th bit of the M pieces of image data to generate the new test signal. Supply to the test circuit of. Then, the test signal XP ~ output from the test circuit 400 corresponding to the least significant bit
The maximum value is specified by XT. That is, the image data in which the level of the test signals XP0 to XT0 is 1 is the maximum value. A selector is provided downstream of the verification circuit 400 at the bottom,
The maximum value can be extracted by selecting one of the five image data P to T according to the test signals XP to XT.

【0024】図4は、画像データP〜Tに実際の値を入
力した場合の例を示している。図4に示す各画像データ
の値は、十進数表記でP=2,Q=5,R=1,S=
8,T=12であり、2進数表記では、P=0010,Q=
0101,R=0001,S=1000,T=1100である。また、最
大値を有する画像データT(=12)に対する最終段の
検定信号XT が1レベルとなり、他の画像データに対す
る最終段の検定信号は0レベルとなる。
FIG. 4 shows an example in which actual values are input to the image data P to T. The value of each image data shown in FIG. 4 is expressed in decimal notation P = 2, Q = 5, R = 1, S =
8, T = 12, and in binary notation, P = 0010, Q =
0101, R = 0001, S = 1000, and T = 1100. Further, the final stage verification signal XT for the image data T (= 12) having the maximum value becomes 1 level, and the final stage verification signal for other image data becomes 0 level.

【0025】なお、5つの画像データP〜Tの中で最大
値が複数個存在する場合には、その複数個の画像データ
に対する最終段の検定信号がすべて1レベルとなる。最
終段の検定信号が1レベルである画像データは、すべて
同じ値を有しているので、そのいずれを抽出しても同じ
である。
When there are a plurality of maximum values among the five image data P to T, the final stage verification signals for the plurality of image data are all one level. The image data in which the final-stage verification signal is one level all have the same value, so the same is true regardless of which is extracted.

【0026】上記実施例では、画像データの上位からi
番目のビットをi段目の検定回路に入力するだけで、最
大値を抽出することができる。従って、画像データのソ
ーティング処理を行なうことなく、ハードウェア回路に
よって高速に最大値を抽出することができるという利点
がある。さらに、最上段の検定信号XP3〜XT3に1レベ
ルを入力した画像データのみを選択的に処理の対象とす
ることができる。従って、入力できる画像データ数Mが
十分大きな回路を作成しておき、処理対象となる画像デ
ータの数に応じて最上段の検定信号のレベルを調整する
ようにすれば、種々のサイズのフィルタに対するフィル
タリング処理を同じ回路で実行することができる。例え
ば、入力可能な画像データ数Mが100である場合に
は、10×10画素までのサイズのフィルタに対するフ
ィルタリング処理を実行することができる。
In the above-described embodiment, the i-th
The maximum value can be extracted only by inputting the th bit to the i-th test circuit. Therefore, there is an advantage that the maximum value can be extracted at high speed by the hardware circuit without performing the sorting process of the image data. Further, only the image data in which one level is input to the uppermost verification signals XP3 to XT3 can be selectively processed. Therefore, by preparing a circuit in which the number M of image data that can be input is sufficiently large and adjusting the level of the test signal in the uppermost stage in accordance with the number of image data to be processed, filters of various sizes can be obtained. The filtering process can be performed in the same circuit. For example, when the number M of image data that can be input is 100, it is possible to execute the filtering process on the filter having a size up to 10 × 10 pixels.

【0027】上記実施例では、M個の画像データの最大
値を抽出していたが、類似の回路で最小値を抽出するこ
とも可能である。図5は、M個の画像データの最大値と
最小値の一方を選択的に抽出することが可能な回路構成
を示すブロック図である。
In the above embodiment, the maximum value of M image data was extracted, but the minimum value can be extracted by a similar circuit. FIG. 5 is a block diagram showing a circuit configuration capable of selectively extracting one of the maximum value and the minimum value of M pieces of image data.

【0028】図5の回路は、図2に示す回路のAND回
路115の入力側にEXOR回路116を追加したもの
である。このEXOR回路116には画像データの処理
対象ビットT3 と、反転信号INVとが入力されてい
る。EXOR回路116は、反転信号INVが0レベル
の場合には処理対象ビットT3 をそのまま通過させ、一
方、反転信号INVが1レベルの場合には処理対象ビッ
トT3 のレベルを反転させるインバータとして機能す
る。このようなEXOR回路116は、図1に示されて
いる各AND回路の入力側に1つずつ設けられる。ま
た、これらのEXOR回路116に入力される反転信号
INVは、すべての画像データのすべてのビットに共通
の信号である。反転信号INVが0レベルの場合には、
図5の回路の動作は図2の回路の動作と同じになるの
で、この装置は、最大値を抽出する回路として機能す
る。一方、反転信号INVが1レベルの場合には、図5
の回路は、画像データP〜Tを反転したデータの中の最
大値を抽出する回路として機能する。反転された画像デ
ータの最大値は、元の画像データの最小値である。従っ
て、図5の回路は、反転信号INVが1レベルの場合に
は、画像データP〜Tの中の最小を抽出する回路として
機能する。
The circuit shown in FIG. 5 is obtained by adding an EXOR circuit 116 to the input side of the AND circuit 115 of the circuit shown in FIG. To the EXOR circuit 116, the processing target bit T3 of the image data and the inverted signal INV are input. The EXOR circuit 116 functions as an inverter that allows the processing target bit T3 to pass as it is when the inversion signal INV is at 0 level, and inverts the level of the processing target bit T3 when the inversion signal INV is at 1 level. One such EXOR circuit 116 is provided on the input side of each AND circuit shown in FIG. The inverted signal INV input to the EXOR circuit 116 is a signal common to all bits of all image data. When the inversion signal INV is 0 level,
Since the operation of the circuit of FIG. 5 is the same as that of the circuit of FIG. 2, this device functions as a circuit for extracting the maximum value. On the other hand, when the inversion signal INV is 1 level,
The circuit of 1 functions as a circuit for extracting the maximum value in the data obtained by inverting the image data P to T. The maximum value of the inverted image data is the minimum value of the original image data. Therefore, the circuit of FIG. 5 functions as a circuit for extracting the minimum of the image data P to T when the inversion signal INV is 1 level.

【0029】このように、図1の装置の各AND回路の
入力側にEXOR回路を設けることによって、M個の画
像データの最大値または最小値を抽出する装置を構成す
ることができる。なお、EXOR回路の代わりにインバ
ータを設ければ、最小値を抽出する装置にすることがで
きる。
As described above, by providing the EXOR circuit on the input side of each AND circuit of the apparatus of FIG. 1, the apparatus for extracting the maximum value or the minimum value of M pieces of image data can be configured. If an inverter is provided instead of the EXOR circuit, a device for extracting the minimum value can be obtained.

【0030】図6は、最小値を抽出する他の回路構成を
示すブロック図である。この回路は、図1におけるAN
D回路111〜115をOR回路141〜145で置き
換え、NOR回路130をAND回路160で置き換え
るとともに、判別回路121〜125を他の判別回路1
51〜155で置き換えた構成を有している。図7は、
図6におけるOR回路145と判別回路155とNOR
回路160の構成を示すブロック図であり、前述した図
2に対応する図である。判別回路155は、図2に示す
判別回路125内のAND回路127をOR回路157
で置き換えた構成を有している。
FIG. 6 is a block diagram showing another circuit configuration for extracting the minimum value. This circuit corresponds to the AN in FIG.
The D circuits 111 to 115 are replaced with OR circuits 141 to 145, the NOR circuit 130 is replaced with an AND circuit 160, and the determination circuits 121 to 125 are replaced with other determination circuits 1.
It has the structure replaced by 51-155. FIG.
The OR circuit 145, the determination circuit 155, and the NOR circuit in FIG.
FIG. 3 is a block diagram showing a configuration of a circuit 160 and is a diagram corresponding to FIG. 2 described above. The determination circuit 155 replaces the AND circuit 127 in the determination circuit 125 shown in FIG. 2 with the OR circuit 157.
It has a configuration replaced with.

【0031】図6の上部に示すように、第1段目の検定
回路102に入力される検定信号XP3〜XT3は0レベル
である。すなわち、図6および図7に示す装置では、検
定信号が0レベルの画像データが候補データである。従
って、最終段の検定回路402から出力される検定信号
XP 〜XT が0レベルである画像データが最小値として
抽出される。
As shown in the upper part of FIG. 6, the verification signals XP3 to XT3 input to the first-stage verification circuit 102 are at 0 level. That is, in the apparatus shown in FIGS. 6 and 7, the image data whose verification signal is 0 level is the candidate data. Therefore, the image data in which the verification signals XP to XT output from the final verification circuit 402 are at the 0 level is extracted as the minimum value.

【0032】このように、この実施例における画像フィ
ルタリング装置の回路構成としては、論理的に等価な種
々の構成を採用することができる。
As described above, various logically equivalent configurations can be adopted as the circuit configuration of the image filtering apparatus in this embodiment.

【0033】上記実施例では、ハードウェア回路を用い
て最大値または最小値を求めていたが、ソフトウェアプ
ログラムをCPUが実行することによってこの発明の構
成を実現することも可能である。
In the above embodiment, the maximum value or the minimum value is obtained by using the hardware circuit, but the configuration of the present invention can be realized by the CPU executing the software program.

【0034】図8は、M個の画像データの中から最大値
を抽出する手順を示すフローチャートである。ステップ
11では、最上位ビットの中で1レベルであるデータが
存在するか否かを判断する。最上位ビットが1レベルの
データが存在すれば、ステップ12において、最上位ビ
ットが0レベルである画像データを候補データから除外
する。なお、候補データであるか否かの判断を行なう処
理を、以下では「検定」と呼ぶ。最上位ビットがすべて
0レベルである場合には、ステップ13に移行し、最上
位ビットが1レベルである画像データを候補データから
除外する。なお、ステップ11〜13の処理は、図2に
示すNOR回路130で実行される処理の内容と同じで
ある。
FIG. 8 is a flowchart showing the procedure for extracting the maximum value from the M pieces of image data. In step 11, it is judged whether or not there is data of one level in the most significant bit. If there is data in which the most significant bit is 1 level, in step 12, the image data in which the most significant bit is 0 level is excluded from the candidate data. The process of determining whether or not the data is candidate data will be referred to as “verification” below. If all the most significant bits are 0 level, the process proceeds to step 13 and the image data whose most significant bit is 1 level is excluded from the candidate data. The processing of steps 11 to 13 is the same as the content of the processing executed by the NOR circuit 130 shown in FIG.

【0035】最下位ビットに対する検定が終了していな
ければ、ステップ14からステップ15に移行する。ス
テップS15では、次のビットの中に1レベルであるデ
ータが存在するか否かを判断し、この結果に応じてステ
ップ12と13の一方が実行される。また、ステップ1
5も再度実行される。こうして、最下位ビットに至るま
でステップ12〜15が繰返される。最下位ビットに対
する検定が終了すると、ステップ16において、最下位
ビットに対する検定の結果から、候補データから除外さ
れていないデータを抽出する。
If the test for the least significant bit has not been completed, the process proceeds from step 14 to step 15. In step S15, it is determined whether or not there is one-level data in the next bit, and one of steps 12 and 13 is executed according to this result. Also, step 1
5 is also executed again. Thus, steps 12 to 15 are repeated until the least significant bit is reached. When the test for the least significant bit is completed, in step 16, data that is not excluded from the candidate data is extracted from the result of the test for the least significant bit.

【0036】図7は、M個の画像データの中から最小値
を抽出する手順を示すフローチャートである。図7のス
テップ21〜26は、図6のステップ11〜16におけ
る”0”レベルと”1”レベルを交換したものである。
これは、入力される画像データのレベルを反転したこと
と同じなので、図5に示す回路において、反転信号IN
Vを1レベルにした場合の動作を同じ処理内容になる。
従って、図7の手順によれば、最小値を抽出することが
できる。
FIG. 7 is a flowchart showing the procedure for extracting the minimum value from the M pieces of image data. Steps 21 to 26 in FIG. 7 are the ones in which the “0” level and the “1” level in steps 11 to 16 in FIG. 6 are exchanged.
Since this is the same as inverting the level of the input image data, in the circuit shown in FIG.
The operation when V is set to 1 level has the same processing content.
Therefore, according to the procedure of FIG. 7, the minimum value can be extracted.

【0037】ところで、M個の画像データの中で最大値
または最小値を抽出するフィルタは、種々の画像処理に
利用することが可能である。例えば、フィルタ領域内の
最大値と最小値とに基づいて、画像が写真のような連続
調画像であるか、文字のような2値画像であるかを判別
するためのフィルタとして使用することができる。ま
た、フィルタ領域内の最大値と最小値との差分に基づい
て、フィルタ領域内に画像のエッジ(輪郭)が存在する
か否かを判断するエッジ検出フィルタとして使用するこ
とも可能である。
By the way, the filter for extracting the maximum value or the minimum value from the M pieces of image data can be used for various image processes. For example, it can be used as a filter for determining whether the image is a continuous tone image such as a photograph or a binary image such as a character based on the maximum value and the minimum value in the filter area. it can. It can also be used as an edge detection filter that determines whether or not an edge (contour) of an image exists in the filter area based on the difference between the maximum value and the minimum value in the filter area.

【0038】なお、この発明は上記実施例に限られるも
のではなく、その要旨を逸脱しない範囲において種々の
態様において実施することが可能である。
The present invention is not limited to the above-described embodiments, but can be implemented in various modes without departing from the scope of the invention.

【0039】[0039]

【発明の効果】以上説明したように、この発明によれ
ば、ソーティングを行なうことなく、複数の画像データ
の中から最大値または最小値を抽出することができる。
As described above, according to the present invention, the maximum value or the minimum value can be extracted from a plurality of image data without performing sorting.

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

【図1】この発明の一実施例を適用して画像データのフ
ィルタリング処理を行なう画像フィルタリング処理装置
の構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of an image filtering processing apparatus that performs an image data filtering process by applying an embodiment of the present invention.

【図2】AND回路115と判別回路125とNOR回
路130の構成を示すブロック図。
FIG. 2 is a block diagram showing the configurations of an AND circuit 115, a discrimination circuit 125, and a NOR circuit 130.

【図3】判別回路125の真理値表を示す説明図。FIG. 3 is an explanatory diagram showing a truth table of a discrimination circuit 125.

【図4】画像データP〜Tに実際の値を入力した結果を
示す説明図。
FIG. 4 is an explanatory diagram showing a result of inputting actual values to image data P to T.

【図5】M個の画像データの最大値または最小値を抽出
する回路構成を示すブロック図。
FIG. 5 is a block diagram showing a circuit configuration for extracting a maximum value or a minimum value of M pieces of image data.

【図6】最小値を抽出する他の回路構成を示すブロック
図。
FIG. 6 is a block diagram showing another circuit configuration for extracting the minimum value.

【図7】OR回路145と判別回路155とAND回路
160の構成を示すブロック図。
FIG. 7 is a block diagram showing the configurations of an OR circuit 145, a determination circuit 155, and an AND circuit 160.

【図8】M個の画像データの中で最大値を抽出する手順
を示すフローチャート。
FIG. 8 is a flowchart showing a procedure for extracting a maximum value from M pieces of image data.

【図9】M個の画像データの中で最小値を抽出する手順
を示すフローチャート。
FIG. 9 is a flowchart showing a procedure for extracting a minimum value from M pieces of image data.

【符号の説明】[Explanation of symbols]

100〜400…検定回路 111〜115…AND回路 116…EXOR回路 121〜125…判別回路 126…EXOR回路 127…AND回路 130…NOR回路 100-400 ... Test circuit 111-115 ... AND circuit 116 ... EXOR circuit 121-125 ... Discrimination circuit 126 ... EXOR circuit 127 ... AND circuit 130 ... NOR circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 それぞれNビットで表現されたM個の画
像データの中から、最大値と最小値のいずれか一方であ
る極値を抽出する画像のフィルタリング処理方法であっ
て、(a)前記M個の画像データのそれぞれについて、
最上位ビットを処理対象ビットとして選択する工程と、
(b)前記処理対象ビット相互の論理演算をすることに
よって、前記処理対象ビットの値が前記第1のレベルで
ある第1種の画像データと、前記処理対象ビットの値が
第2のレベルである第2種の画像データとの中の一方が
前記極値となりうる候補データであることを示す候補信
号を生成する工程と、(c)前記M個の画像データのそ
れぞれの処理対象ビットと、前記候補信号との論理演算
をすることによって、前記M個の画像データのそれぞれ
について、前記候補データであるか否かを示す検定信号
を生成する工程と、(d)前記M個の画像データの中
で、前記検定信号によって前記候補データであると指定
された画像データについて、次の下位側のビットを処理
対象ビットとして順次選択しつつ、前記工程(b)ない
し工程(c)を順次実行することによって、前記極値と
なる画像データを特定する検定信号を生成する工程と、
を備えることを特徴とする画像のフィルタリング処理方
法。
1. A method of filtering an image for extracting an extreme value, which is one of a maximum value and a minimum value, from M pieces of image data represented by N bits respectively. For each of the M image data,
Selecting the most significant bit as the bit to be processed,
(B) By performing a logical operation between the processing target bits, the first type image data in which the value of the processing target bit is the first level and the value of the processing target bit are in the second level. A step of generating a candidate signal indicating that one of the certain second type image data is the candidate data which can be the extreme value, and (c) a processing target bit of each of the M image data, Generating a test signal indicating whether or not the candidate data is the candidate data for each of the M image data by performing a logical operation with the candidate signal; and (d) the M image data. Among the image data designated as the candidate data by the verification signal, the steps (b) to (c) are sequentially performed while sequentially selecting the next lower bit as a processing target bit. By row, and generating a test signal for specifying the image data to be the extreme,
An image filtering method, comprising:
【請求項2】 請求項1記載の画像のフィルタリング処
理方法であって、 前記第1のレベルは1レベルであり、前記第2のレベル
は0レベルであって、 前記工程(d)は、前記M個の画像データの中の最大値
を特定する検定信号を生成する工程を備える、画像のフ
ィルタリング処理方法。
2. The image filtering method according to claim 1, wherein the first level is 1 level, the second level is 0 level, and the step (d) is An image filtering method, comprising the step of generating a test signal that specifies the maximum value of M image data.
【請求項3】 請求項1記載の画像のフィルタリング処
理方法であって、 前記第1のレベルは0レベルであり、前記第2のレベル
は1レベルであって、 前記工程(d)は、前記M個の画像データの中の最小値
を有する画像データを特定する検定信号を生成する工程
を備える、画像のフィルタリング処理方法。
3. The image filtering method according to claim 1, wherein the first level is 0 level, the second level is 1 level, and the step (d) is A method of filtering an image, comprising the step of generating a test signal that specifies the image data having the minimum value among M image data.
【請求項4】 それぞれNビットで表現されたM個の画
像データの中から、最大値と最小値のいずれか一方であ
る極値を抽出する画像のフィルタリング処理装置であっ
て、 前記Nビットの各ビットに対応して直列に接続されたN
段の検定手段を備え、 前記Nビットの中の上位からi番目(iは1〜Nの整
数)のビットに対応するi段目の検定手段は、 前段から与えられた検定信号によって有効と指定された
画像データの中で、前記i番目のビットの値が前記第1
のレベルである第1種の画像データと、前記i番目のビ
ットの値が第2のレベルである第2種の画像データとの
いずれが前記極値の候補データとなり得るかを示す候補
信号を生成する候補信号生成手段と、 前記前段から与えられた検定信号によって有効と指定さ
れた画像データのそれぞれについて、前記i番目のビッ
トと前記候補信号との論理演算をすることによって、前
記M個の画像データのそれぞれについて、前記候補デー
タであるか否かを示す新たな検定信号を生成し、次段の
検定手段に前記新たな検定信号を供給する判別手段と、
を備え、 最下位ビットに対応するN段目の検定手段は、前記M個
の画像データの中の極値を特定する検定信号を出力する
手段を有することを特徴とする画像のフィルタリング処
理装置。
4. An image filtering processing apparatus for extracting an extreme value, which is one of a maximum value and a minimum value, from M pieces of image data represented by N bits, respectively. N connected in series corresponding to each bit
The verification means of the stage is provided, and the verification means of the i-th stage corresponding to the i-th bit (i is an integer of 1 to N) from the higher order among the N bits is designated as valid by the verification signal given from the previous stage. The value of the i-th bit is the first
A candidate signal indicating which of the first-type image data at the level of ## EQU1 ## and the second-type image data at which the value of the i-th bit is at the second level can be the extreme-value candidate data. With respect to each of the candidate signal generating means for generating and the image data designated as valid by the verification signal given from the preceding stage, a logical operation is performed on the i-th bit and the candidate signal to obtain the M number of signals. For each of the image data, a determination means for generating a new test signal indicating whether or not the candidate data, and supplying the new test signal to the test means of the next stage,
An image filtering processing apparatus, characterized in that the N-th stage inspection means corresponding to the least significant bit has a means for outputting an inspection signal for specifying an extreme value in the M pieces of image data.
JP9783295A 1995-03-29 1995-03-29 Method and device for filtering processing of image Pending JPH08272963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9783295A JPH08272963A (en) 1995-03-29 1995-03-29 Method and device for filtering processing of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9783295A JPH08272963A (en) 1995-03-29 1995-03-29 Method and device for filtering processing of image

Publications (1)

Publication Number Publication Date
JPH08272963A true JPH08272963A (en) 1996-10-18

Family

ID=14202699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9783295A Pending JPH08272963A (en) 1995-03-29 1995-03-29 Method and device for filtering processing of image

Country Status (1)

Country Link
JP (1) JPH08272963A (en)

Similar Documents

Publication Publication Date Title
US6233369B1 (en) Morphology processing apparatus and method
US20070027944A1 (en) Instruction based parallel median filtering processor and method
US8321490B2 (en) Instruction-based parallel median filtering
JP3198379B2 (en) Maximum value selection circuit
JP4143288B2 (en) Median filter processing device
EP0295464A2 (en) Rank-order filter
EP0605885A2 (en) Method and apparatus for automatically designing logic circuit, and multiplier
JPH08272963A (en) Method and device for filtering processing of image
US7127121B1 (en) Efficient implementation of a noise removal filter
JPH08272962A (en) Method and device for filtering processing of image
US4933978A (en) Method and apparatus for determining the value of a sample in the mth position of an ordered list of a plurality of samples
EP0442220B1 (en) Decoder
JPH09128241A (en) Method and apparatus for arrangement with reference to belonging function value of language input value of fuzzy logic processor
JP2004030366A (en) Filtering apparatus, data-driven information processing apparatus, filtering method, filtering program and mechanically readable recording medium with filtering program recorded thereon
JPH06201779A (en) Test circuit
JPS58169281A (en) Generator for fringed pattern
JPH0589234A (en) Method and device for image processing
JPS62237523A (en) Sorting circuit
JP2959303B2 (en) Arithmetic circuit
JPH07302188A (en) Sorter
JP2002189589A (en) Distribution random number generation method and circuit
JPS59229643A (en) Sorting operation circuit
JPH01114937A (en) Absolute value generator
JPS62287378A (en) Nearby picture image arithmetic unit
JPS61143844A (en) Digital arithmetic circuit