JPH0581427A - Frequency distribution calculating device - Google Patents

Frequency distribution calculating device

Info

Publication number
JPH0581427A
JPH0581427A JP3240885A JP24088591A JPH0581427A JP H0581427 A JPH0581427 A JP H0581427A JP 3240885 A JP3240885 A JP 3240885A JP 24088591 A JP24088591 A JP 24088591A JP H0581427 A JPH0581427 A JP H0581427A
Authority
JP
Japan
Prior art keywords
digital data
average value
bit digital
data
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
JP3240885A
Other languages
Japanese (ja)
Other versions
JP3033277B2 (en
Inventor
Shinjirou Inahata
稲畑深二郎
Yutaka Ueda
豊 植田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP3240885A priority Critical patent/JP3033277B2/en
Publication of JPH0581427A publication Critical patent/JPH0581427A/en
Application granted granted Critical
Publication of JP3033277B2 publication Critical patent/JP3033277B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the circuit scale by providing a prescribed number of calculating means which count data classified by a classifying means in accordance with the discrimination result of a discriminating means. CONSTITUTION:m-bit digital data is classified to 6 kinds of area. (n) m-bit digital data are provided in total and are inputted from a data input terminal 1 in order synchronously with a clock signal. That is, one m-bit digital data is inputted per clock. The average value of (n) m-bit digital data is preliminarily obtained and is inputted from an average value input terminal 8. (n) m-bit digital data have a form symmetrical with the average value of Gaussian distribution or the like as the cener. Counters 4-1 to 4-3 are counted up by one per clock synchronously with the clock signal in the same manner as m-bit digital data. Thus, the result from classification of (n) m-bit digital data to 6 kinds of area is obtained.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像処理などに適用可
能な複数個のデータの度数分布を求める度数分布計算装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a frequency distribution calculating apparatus for calculating a frequency distribution of a plurality of data applicable to image processing and the like.

【0002】[0002]

【従来の技術】度数分布計算装置は、一般にディジタル
複写機などの画像処理において、画素値の分布形状など
の統計的性質を調べるときに使用される。従来、このよ
うな度数分布計算装置として、特開昭63−18871
6号公報に記載されているような回路が提案されてい
る。この回路を図2に示すようなものである。図2に示
すものは、n個のmビットディジタルデータを入力し、
これらのデータを図3(a)に示すように6種の領域に
分類する度数分布計算装置である。図中、1はmビット
で表されるディジタルデータを入力するデータ入力端
子、2ー1〜2ー5はmビットのディジタルデータを比
較するコンパレータ、3ー1〜3ー6はディジタルデー
タの排他的論理和演算をおこなうXORゲート、4ー1
〜4ー6はn個をカウントできるだけのデータ幅をもつ
カウンタ、5ー1〜5ー6は各領域の度数を出力するデ
ータ出力端子、6はリセット入力端子、7ー1〜7ー5
は各領域の境界値を記憶するレジスタである。
2. Description of the Related Art Generally, a frequency distribution calculation device is used in image processing of a digital copying machine or the like when examining statistical properties such as a distribution shape of pixel values. Conventionally, as such a frequency distribution calculating device, there has been disclosed in JP-A-63-18871.
A circuit as described in Japanese Patent No. 6 has been proposed. This circuit is as shown in FIG. The one shown in FIG. 2 inputs n m-bit digital data,
This is a frequency distribution calculation device that classifies these data into six types of regions as shown in FIG. In the figure, 1 is a data input terminal for inputting m-bit digital data, 2-1 to 2-5 are comparators for comparing m-bit digital data, and 3-1 to 3-6 are exclusive of digital data. XOR gate for logical OR operation, 4-1
4-6 is a counter having a data width capable of counting n, 5-1-5-6 is a data output terminal for outputting the frequency of each area, 6 is a reset input terminal, and 7-1-7-5
Is a register that stores the boundary value of each area.

【0003】図2の回路では、全部でn個あるmビット
ディジタルデータが、データ入力端子1から順番にクロ
ック信号(図では省略)に同期して入力される。すなわ
ち、mビットディジタルデータは1クロック毎に1個ず
つ入力される。また、カウンタ4ー1〜4ー6もクロッ
ク信号に同期しており、1クロック毎に1だけカウント
アップできる。
In the circuit of FIG. 2, a total of n pieces of m-bit digital data are sequentially input from the data input terminal 1 in synchronization with a clock signal (not shown). That is, one m-bit digital data is input for each clock. The counters 4-1 to 4-6 are also synchronized with the clock signal and can count up by 1 every clock.

【0004】次に、これらのmビットディジタルデータ
を図3(a)の6種の領域に分類する場合を例にとり、
図2の回路の動作について説明する。ここで図3(a)
は、従来例におけるn個のmビットディジタルデータを
6種の領域に分類した時の度数を表すグラフであって、
〜は各領域を表し、r0〜r4はこれらの領域の境
界値を表している。図2の回路で、まずリセット入力端
子6よりリセットをかけてカウンタ4ー1〜4ー6を全
て0にリセットした後、データ入力端子1から、mビッ
トディジタルデータを1個ずつ順番に入力して各コンパ
レータ2ー1〜2ー5の一方の入力とし、このとき、コ
ンパレータ2ー1〜2ー5の他方の入力端子には、レジ
スタ7ー1〜7ー5に記憶されているmビットで表され
る各領域の境界値r0〜r4を小さいものから順に入力
される。この例では、レジスタ7ー1にr0、レジスタ
7ー2にr1、レジスタ7ー3にr2、レジスタ7ー4
にr3、レジスタ7ー5にr4がそれぞれ記憶されてい
る。この境界値が、これらのコンパレータ2ー1〜2ー
5によって入力されたmビットディジタルデータと比較
される。コンパレータ2ー1〜2ー5ではA>Bのと
き、すなわちコンパレータへのデータ入力が入力境界値
より大きいときに論理“1”、コンパレータへのデータ
入力が入力境界値より小さいときに論理“0”を出力す
る。このコンパレータ2ー1〜2ー5での比較結果をも
とにXOR3ー1〜3ー6によってイネーブル信号が生
成される。XOR3ー1〜3ー6の2本の入力端子には
隣りあう各コンパレータの出力が入力されているので、
これらのコンパレータの出力が異なるときのみ、即ち、
一方のコンパレータへのデータ入力が境界値より小さ
く、他方のコンパレータ入力が境界値より大きいときの
みXOR回路からは論理“1”のイネーブル信号が生成
される。この生成されたイネーブル信号により、mビッ
トディジタルデータの属する領域のカウンタのみをイネ
ーブルにすることによりそのカウンタがカウントアップ
され、カウンタ4ー1〜4ー6はそれぞれ領域〜の
度数をカウントすることになる。このようにして、mビ
ットディジタルデータn個が全て入力された後に、デー
タ出力5ー1〜5ー6から各領域の度数が出力される。
Next, taking the case where these m-bit digital data are classified into the six types of regions in FIG.
The operation of the circuit of FIG. 2 will be described. Here, FIG. 3 (a)
Is a graph showing frequencies when n pieces of m-bit digital data in the conventional example are classified into 6 types of areas,
~ Represents each area, and r0 to r4 represent boundary values of these areas. In the circuit of FIG. 2, first, the reset input terminal 6 is reset to reset all the counters 4-1 to 4-6 to 0, and then the m-bit digital data is sequentially input from the data input terminal 1 one by one. As one input of each comparator 2-1 to 2-5. At this time, the other input terminal of the comparators 2-1 to 2-5 has m bits stored in the registers 7-1 to 7-5. Boundary values r0 to r4 of each area represented by are input in order from the smallest value. In this example, register 7-1 is r0, register 7-2 is r1, register 7-3 is r2, register 7-4.
In the register 7 and r4 in the register 7-5. This boundary value is compared with the m-bit digital data input by these comparators 2-1 to 2-5. In the comparators 2-1 to 2-5, when A> B, that is, when the data input to the comparator is larger than the input boundary value, the logic “1” is set. When the data input to the comparator is smaller than the input boundary value, the logic “0” is set. Is output. An enable signal is generated by the XORs 3-1 to 3-6 based on the comparison result of the comparators 2-1 to 2-5. Since the outputs of the adjacent comparators are input to the two input terminals of XOR3-1 to 3-6,
Only when the outputs of these comparators are different, i.e.
An enable signal of logic "1" is generated from the XOR circuit only when the data input to one comparator is smaller than the boundary value and the other comparator input is larger than the boundary value. This generated enable signal enables only the counter of the area to which the m-bit digital data belongs, and the counter is incremented, and the counters 4-1 to 4-6 respectively count the frequencies of the area to. Become. In this way, after all n pieces of m-bit digital data have been input, the frequency of each area is output from the data outputs 5-1 to 5-6.

【0005】ここで、カウンタの動作についてさらに詳
しく説明する。例えば、入力された一つのmビットディ
ジタルデータが、領域に属していたと仮定する。この
時、mビットディジタルデータの方が、r0〜r2、す
なわちレジスタ7ー1〜7ー3の値よりも大きいので、
コンパレータ2ー1〜2ー3の出力は論理“1“とな
る。また、mビットディジタルデータは、r3〜r4、
すなわちレジスタ7ー4〜7ー5の値よりも小さいの
で、コンパレータ2ー4〜2ー5の出力は論理“0“と
なる。従って、XORゲート3ー1〜3ー6の出力は、
2つの入力値が異なるXORゲート3ー4のみが論理
“1“、他の2つの入力値が同じXORゲート3ー1〜
3ー3、3ー4〜3ー5は全て論理“0“となる。ま
た、XORゲート3ー1〜3ー6の出力はカウンタ4ー
1〜4ー6のイネーブル端子に入力されており、イネー
ブル信号が論理“1“となる領域に対応するカウンタ
4ー4のみがカウントアップされる。
The operation of the counter will now be described in more detail. For example, assume that one input m-bit digital data belongs to a region. At this time, since the m-bit digital data is larger than r0 to r2, that is, the values of the registers 7-1 to 7-3,
The outputs of the comparators 2-1 to 2-3 are logic "1". In addition, m-bit digital data is r3 to r4,
That is, since it is smaller than the values of the registers 7-4-7-5, the outputs of the comparators 2-4-2-5 are logic "0". Therefore, the outputs of the XOR gates 3-1 to 3-6 are
Only the XOR gates 3-4 having two different input values have the logic "1", and the other two input values have the same XOR gates 3-1 to 3-1.
All of 3-3, 3-4-3-5 are logic "0". Further, the outputs of the XOR gates 3-1 to 3-6 are input to the enable terminals of the counters 4-1 to 4-6, and only the counter 4-4 corresponding to the area where the enable signal becomes the logic "1" is generated. It is counted up.

【0006】このようにして、mビットディジタルデー
タがn個順番に入力されていき、カウンタ4ー1〜4ー
6によって各領域に対応するカウンタが順次カウントア
ップされて各領域の度数が求められ、結果がデータ出力
端子5ー1〜5ー6から出力される。
In this way, n pieces of m-bit digital data are sequentially input, and the counters 4-1 to 4-6 sequentially count up the counters corresponding to the respective areas to obtain the frequency of each area. The result is output from the data output terminals 5-1 to 5-6.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来に
おいては、図2に示したように、mビットディジタルデ
ータを比較するコンパレータが(領域数−1)個、カウ
ンタが(領域数)個必要となり、回路規模が大きくなっ
てしまうという課題があった。
However, in the prior art, as shown in FIG. 2, (comparator number-1) comparators and (counter region) counters are required to compare m-bit digital data. There is a problem that the circuit scale becomes large.

【0008】本発明は上記課題を解決するためのもの
で、従来よりも回路規模が小さい度数分布装置を提供す
ることを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a frequency distribution device having a smaller circuit scale than the conventional one.

【0009】[0009]

【課題を解決するための手段】一般に、画像処理装置な
どにおいて、写真などの画像値の分布を求める場合、そ
の分布形状がガウス分布などの平均値を中心として対称
な分布形状をとることが多い。また、画像処理装置など
においては、平均値を使用して様々な画像処理が行われ
るために平均値が予め求まっていることが多い。
Generally, in the case of obtaining a distribution of image values such as photographs in an image processing apparatus or the like, the distribution shape often has a symmetrical distribution shape around an average value such as a Gaussian distribution. .. Further, in an image processing apparatus or the like, the average value is often obtained in advance because various image processes are performed using the average value.

【0010】そこで、本発明は、予めn個のmビットデ
ィジタルデータの平均値がわかっており、かつn個のm
ビットディジタルデータの分布が平均値を中心とした対
称な分布であることがわかっている場合に適用される。
すなわち、その分布が、例えば正規分布や二項分布など
のような平均値を中心とした対称な分布である場合であ
る。そしてn個のmビットディジタルデータをk種の領
域に分類する場合には、まずmビットディジタルデータ
から平均値をさし引いたものを求める。このデータを平
均値分離データと呼ぶ。こうして求められた平均値分離
データの内、符号が正のもの、または負のものどちらか
にたいしてのみ、k/2種の領域に対する度数を求める
ものである。
Therefore, according to the present invention, the average value of n m-bit digital data is known in advance, and n m
It is applied when it is known that the distribution of bit digital data is a symmetrical distribution around the average value.
That is, this is a case where the distribution is a symmetrical distribution centered on the average value, such as a normal distribution or a binomial distribution. When classifying n pieces of m-bit digital data into k types of areas, the average value is subtracted from the m-bit digital data first. This data is called average value separation data. Among the average value separation data thus obtained, the frequency for the k / 2 type area is obtained only for either the positive or negative sign.

【0011】[0011]

【作用】本発明によって、平均値より大きい範囲の領
域、あるいは平均値より小さい範囲の領域のどちらかk
/2種の領域に対しての度数が得られ、また、直接は求
めない、平均値より小さい範囲の領域、あるいは平均値
より大きい範囲の領域のどちらかk/2種の領域に対し
ての度数は、分布の平均値に対する対称性を利用して、
求まった度数をもとにして決定する。このことにより、
n個のmビットディジタルデータをk種の領域に分類し
た結果が得られる。このように、k/2種の領域のみ度
数を求めるようにしたことにより、回路規模を小さくす
ることができる。
According to the present invention, either the area in the range larger than the average value or the area in the range smaller than the average value k
The frequency is obtained for / 2 types of regions, and it is not directly obtained. Either the region of the range smaller than the average value or the region of the range larger than the average value is calculated for the k / 2 type region. The frequency uses the symmetry of the distribution with respect to the mean value,
Determine based on the obtained frequency. By this,
The result of classifying n pieces of m-bit digital data into k kinds of areas is obtained. As described above, the circuit scale can be reduced by obtaining the frequencies only in the k / 2 types of regions.

【0012】[0012]

【実施例】本発明の実施例を示す回路を図1に示す。図
において、1はmビットで表されるディジタルデータを
入力するデータ入力端子、2ー1〜2ー2はmビットの
ディジタルデータを比較するコンパレータ、3ー1〜3
ー3はディジタルデータの排他的論理和演算を行うXO
Rゲート、4ー1〜4ー3はn個をカウントできるだけ
のデータ幅をもつカウンタ、5ー1〜5ー3は各領域の
度数を出力するデータ出力端子、6はリセット入力端
子、7ー1〜7ー2は各領域の境界値を記憶するレジス
タ、8はmビットで表される平均値を入力する平均値入
力端子、9はmビットのディジタルデータから平均値を
差し引くための減算器、10はインバータ、11ー1〜
11ー3はイネーブル信号を生成するANDゲートであ
る。
FIG. 1 shows a circuit showing an embodiment of the present invention. In the figure, 1 is a data input terminal for inputting m-bit digital data, 2-1 to 2-2 is a comparator for comparing m-bit digital data, and 3-1 to 3-2.
-3 is an XO that performs an exclusive OR operation of digital data
R gate, 4-1 to 4-3 is a counter having a data width capable of counting n, 5-1 to 5-3 is a data output terminal for outputting the frequency of each area, 6 is a reset input terminal, 7- 1 to 7-2 are registers for storing the boundary value of each area, 8 is an average value input terminal for inputting an average value represented by m bits, and 9 is a subtracter for subtracting the average value from m-bit digital data. 10 is an inverter, 11-1 to 11
11-3 is an AND gate for generating an enable signal.

【0013】図1の回路は、mビットディジタルデータ
を6種の領域に分類する度数分布計算装置である。mビ
ットディジタルデータは全部でn個あり、データ入力端
子1から順番にクロック信号(図では省略)に同期して
入力される。すなわち、mビットディジタルデータは1
クロック毎に1個ずつ入力される。また、n個のmビッ
トディジタルデータの平均値は予め求められており、平
均値入力端子8より入力される。さらに、n個のmビッ
トディジタルデータは、ガウス分布などの平均値を中心
とした対称な形状をとるものとする。また、カウンタ4
ー1〜4ー3もmビットディジタルデータと同様にクロ
ック信号に同期しており、1クロック毎に1だけカウン
トアップできる。
The circuit shown in FIG. 1 is a frequency distribution calculation device for classifying m-bit digital data into six types of regions. There are a total of n pieces of m-bit digital data, which are sequentially input from the data input terminal 1 in synchronization with a clock signal (not shown). That is, m-bit digital data is 1
One is input for each clock. Further, the average value of n pieces of m-bit digital data has been obtained in advance and is input from the average value input terminal 8. Furthermore, n pieces of m-bit digital data are assumed to have a symmetrical shape centered on an average value such as a Gaussian distribution. Also, the counter 4
-1 to 4-3 are also synchronized with the clock signal like the m-bit digital data, and can count up by 1 every clock.

【0014】ここでまず、この回路の原理について、図
3を用いて説明する。図3(a)は、本実施例におけ
る、n個のmビットディジタルデータを6種の領域に分
類したときの度数を表すグラフである。図3(a)にお
いて、〜は各領域を表しており、またr0〜r4
は、各領域の境界値を表している。そして、この分布
は、上述のように平均値を中心とした対称な形をしてい
る。ここで、n個のmビットディジタルデータからそれ
ぞれ平均値を差し引いて平均値分離データを求めた時、
この平均値分離データがどのような分布になるかを表し
たグラフが図3(b)である。図3(b)において、
〜はそれぞれ図3(a)の同一番号の各領域に相当す
る領域を表しており、またrm0〜rm4は、これらの
領域の境界値を表している。このグラフは、図3(a)
のグラフの平均値の位置を横軸の0としたものであるこ
とがわかる。また、このグラフは縦軸に対して対称であ
り、領域、、の度数を求め、領域、、の度
数をここで求めた領域、、の度数と同じ値にする
ことにより、領域、、の度数を求めることなく全
体の分布を求めることができる。本発明では、このよう
にmビットディジタルデータから平均値を差し引いた
後、平均値分離データに対して、領域、、の度数
のみを求めることにより、全体の分布を求めるものであ
る。
First, the principle of this circuit will be described with reference to FIG. FIG. 3A is a graph showing the frequency when n pieces of m-bit digital data are classified into 6 types of areas in the present embodiment. In FIG. 3 (a),-represents each region, and r0-r4
Indicates the boundary value of each region. Then, this distribution has a symmetrical shape centered on the average value as described above. Here, when the average value is subtracted from each of the n m-bit digital data to obtain the average value separated data,
FIG. 3B is a graph showing the distribution of the average value separation data. In FIG. 3 (b),
3 to 4 respectively represent areas corresponding to the areas having the same numbers in FIG. 3A, and rm0 to rm4 represent boundary values of these areas. This graph is shown in FIG.
It can be seen that the position of the average value of the graph is set to 0 on the horizontal axis. In addition, this graph is symmetric with respect to the vertical axis, and the frequency of the area ,,, is calculated, and the frequency of the area ,,, is set to the same value as the frequency of the area The overall distribution can be obtained without obtaining. In the present invention, after the average value is subtracted from the m-bit digital data in this way, the entire distribution is obtained by obtaining only the frequencies of the areas, and with respect to the average value separated data.

【0015】次に、この回路の動作について、図1を用
いて説明する。この回路は、まずリセット入力端子6よ
りリセットをかけてカウンタ4ー1〜4ー3を全て0に
リセットした後、データ入力端子1から、mビットディ
ジタルデータを1個ずつ順番に入力する。ここで入力さ
れたmビットディジタルデータは、減算器9により平均
値入力端子8から入力された平均値を差し引かれ、m+
1ビットの符号付数で表される平均値分離データとな
る。このm+1ビットの平均値分離データは、さらに正
か負かを表す上位1ビットの符号ビットと、下位mビッ
トとに分けられる。符号ビットは、インバータ10を通
してイネーブル信号を生成するANDゲート11ー1〜
11ー3の一方の入力となる。符号ビットは平均値分離
データが負または正の符合をもつときインバータ10の
出力が、それぞれ“0“、または“1“になるようにな
っている。したがって、m+1ビットの平均値分離デー
タが負の符号を持つとき、ANDゲート11ー1〜11
ー3の片側の入力は必ず論理“0“となるので、カウン
タ4ー1〜4ー3のイネーブル入力は全て論理“0“と
なり、カウンタ4ー1〜4ー3はカウントアップされな
い。一方、m+1ビットの平均値分離データが正の符号
を持つとき、ANDゲート11ー1〜11ー3の片側の
入力は必ず論理“1“となるので、カウンタ4ー1〜4
ー3のイネーブル入力は全てXORゲート3ー1〜3ー
3の出力値がそのまま入力される。従って、この回路
は、平均値分離データの値が正の時だけ動作する。この
ことは、図3(b)において、平均値分離データが領域
、、の範囲にあるときのみ、カウンタ4ー1〜4
ー3を動作させることに相当する。従って以後は、平均
値分離データの値が正の時について述べる。
Next, the operation of this circuit will be described with reference to FIG. This circuit first resets the counters 4-1 to 4-3 to 0 by resetting from the reset input terminal 6, and then sequentially inputs m-bit digital data from the data input terminal 1 one by one. The average value input from the average value input terminal 8 is subtracted from the m-bit digital data input here by the subtractor 9, and m +
The average value separation data is represented by a 1-bit signed number. The m + 1-bit average value separation data is further divided into an upper 1-bit sign bit indicating positive or negative and a lower m-bit. The sign bits are AND gates 11-1 to 11-1 that generate an enable signal through the inverter 10.
It becomes one input of 11-3. The sign bit is such that the output of the inverter 10 becomes "0" or "1" when the average value separation data has a negative or positive sign. Therefore, when the m + 1-bit average value separation data has a negative sign, AND gates 11-1 to 11-11
Since the input on one side of the counter -3 is always logic "0", the enable inputs of the counters 4-1 to 4-3 are all logic "0" and the counters 4-1 to 4-3 are not counted up. On the other hand, when the m + 1-bit average value separation data has a positive sign, the inputs on one side of the AND gates 11-1 to 11-3 are always logic "1", so the counters 4-1 to 4-4
The output values of the XOR gates 3-1 to 3-3 are directly input to the enable inputs of the -3. Therefore, this circuit operates only when the value of the average value separation data is positive. This means that the counters 4-1 to 4-1 can be used only when the average value separation data is in the range of ,, in FIG. 3B.
This is equivalent to operating -3. Therefore, hereinafter, the case where the value of the average value separation data is positive will be described.

【0016】平均値分離データの値が正の時には、m+
1ビットの符号付平均値分離データのうち、下位mビッ
トは、平均値分離データをmビット符号なし数で表した
ものになる。このmビット平均値分離データは、コンパ
レータ2ー1〜2ー2の片側の入力に入力される。ここ
で、レジスタ7ー1〜7ー2には、図3(b)のrm
3、およびrm4が記憶してある。すなわち、コンパレ
ータ2ー1〜2ー2の他方の片側の入力には、レジスタ
7ー1〜7ー2から、各領域の境界値が小さいものから
順に設定してあり、この境界値が、これらのコンパレー
タによって、mビット平均値分離データと比較される。
ここで、カウンタ4ー1、4ー2、4ー3は、それぞれ
領域、、の度数をカウントする。この時、コンパ
レータ2ー1〜2ー2での比較結果をもとにXOR3ー
1〜3ー3によって生成されたイネーブル信号により、
mビット平均値分離データの属する領域のカウンタのみ
をイネーブルすることにより、そのカウンタのみがカウ
ントアップされる。このようにして、mビットディジタ
ルデータがn個全て入力された後に、データ出力5ー1
〜5ー3から領域〜の度数を出力するものである。
When the value of the average value separation data is positive, m +
Of the 1-bit signed average value separated data, the lower m bits are the average value separated data represented by an m-bit unsigned number. The m-bit average value separation data is input to one of the inputs of the comparators 2-1 to 2-2. Here, the registers 7-1 and -7 have rms shown in FIG.
3 and rm4 are stored. That is, the other one side of the inputs of the comparators 2-1 to 2-2 is set in order from the register 7-1 to -7 in order of decreasing boundary value of each area. Is compared with the m-bit average value separation data.
Here, the counters 4-1, 4-2, and 4-3 respectively count the frequencies of the areas ,. At this time, the enable signals generated by the XORs 3-1 to 3-3 based on the comparison results of the comparators 2-1 to 2-2,
By enabling only the counter of the area to which the m-bit average value separated data belongs, only that counter is incremented. In this way, after all n pieces of m-bit digital data are input, the data output 5-1
The frequency of the region 5-3 is output.

【0017】ここで、カウンタの動作についてさらに詳
しく説明する。例えば、mビット平均値分離データが、
領域に属していたと仮定する。この時、mビット平均
値分離データの方が、rm3、すなわちレジスタ7ー1
に記憶されている領域との境界値よりも大きいの
で、コンパレータ2ー1の出力は論理“1“となる。ま
た、mビット平均値分離データは、rm4、すなわちレ
ジスタ7ー2に記憶されている領域との境界値より
も小さいので、コンパレータ2ー2の出力は論理“0
“となる。従って、XORゲート3ー1〜3ー3の出力
は、2つの入力値が異なるXORゲート3ー2が論理
“1“、2つの入力値が同じXORゲート3ー1、3ー
3が論理“0“となる。ここで、前述したように、符号
ビットが論理“0“であるので、ANDゲート11ー1
〜11ー3はXORゲート3ー1〜3ー3の出力値をそ
のままカウンタ4ー1〜4ー3のイネーブル入力に伝達
し、このイネーブル信号が論理“1“となる領域に対
応するカウンタ4ー2のみがカウントアップされる。
The operation of the counter will now be described in more detail. For example, the m-bit average value separation data is
Suppose you belonged to a region. At this time, the m-bit average value separated data is rm3, that is, the register 7-1.
Since it is larger than the boundary value with the area stored in, the output of the comparator 2-1 becomes logic "1". Further, since the m-bit average value separation data is smaller than rm4, that is, the boundary value with the area stored in the register 7-2, the output of the comparator 2-2 is logical "0".
Therefore, the outputs of the XOR gates 3-1 to 3-3 are logic "1" when the XOR gates 3-2 having different two input values have a logic "1", and the XOR gates 3-1 and 3-2 having the same two input values. 3 becomes a logic "0". Here, as described above, since the sign bit is a logic "0", the AND gate 11-1
11-11 transmits the output values of the XOR gates 3-1 to 3-3 as they are to the enable inputs of the counters 4-1 to 4-3, and the counter 4 corresponding to the area where the enable signal becomes the logic "1". Only -2 is counted up.

【0018】このようにして、mビットディジタルデー
タがn個順番に入力されていき、そのうち平均値分離デ
ータが正符号をもつときのみカウンタ4ー1〜4ー3に
よって各領域の度数がカウントアップされる。そしてこ
れらのn個のデータが全て入力された後に、データ出力
端子5ー1から領域の度数、データ出力端子5ー2か
ら領域の度数、データ出力端子5ー3から領域の度
数が得られ、さらに分布の対称性を利用して、領域、
、の度数を領域、、の度数と同じ値とするこ
とにより、図3(b)の度数分布が求められることにな
る。
In this way, n pieces of m-bit digital data are sequentially input, and the count of each area is counted up by the counters 4-1 to 4-3 only when the average value separation data has a positive sign. To be done. Then, after all of these n pieces of data have been input, the frequency of the area is obtained from the data output terminal 5-1, the frequency of the area is obtained from the data output terminal 5-2, and the frequency of the area is obtained from the data output terminal 5-3. Furthermore, using the symmetry of the distribution,
The frequency distribution of FIG. 3B is obtained by setting the frequency of, and the same value as the frequency of the area and.

【0019】[0019]

【発明の効果】以上述べたように、この発明によれば平
均値を中心とした対称な分布形状を持つn個のデータか
らそれぞれ平均値を差し引いて平均値分離データを求め
た後に、この平均値分離データに対して、正側、または
負側のみの度数分布を求めることにより、全体の分布を
求めるようにしたので、従来に比べて減算器、インバー
タ、ANDゲートは付け加わるものの、これらの回路に
比べて回路規模が大きいコンパレータ、カウンタの数を
約半分にすることができ、全体の回路規模を少なくする
ことができる。
As described above, according to the present invention, the average value is subtracted from each of n pieces of data having a symmetrical distribution shape around the average value to obtain average value separation data, and then this average value is calculated. Since the entire distribution is obtained by obtaining the frequency distribution on the positive side or the negative side of the value separation data, a subtracter, an inverter, and an AND gate are added as compared with the conventional one, but these The number of comparators and counters having a larger circuit scale than the circuit can be halved, and the overall circuit scale can be reduced.

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

【図1】 本発明の実施例を示す回路図である。FIG. 1 is a circuit diagram showing an embodiment of the present invention.

【図2】 従来例を示す回路図である。FIG. 2 is a circuit diagram showing a conventional example.

【図3】 度数分布計算を説明するための図である。FIG. 3 is a diagram for explaining frequency distribution calculation.

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

1…データ入力端子、2ー1〜2ー5…コンパレータ、
3ー1〜3ー6…XORゲート、4ー1〜4ー6…カウ
ンタ、5ー1〜5ー3…データ出力端子、6…リセット
入力端子、7ー1〜7ー5…各領域の境界値を記憶する
レジスタ、8…平均値入力端子、9…減算器、10…イ
ンバータ、11ー1〜11ー3…ANDゲート。
1 ... Data input terminal, 2-1 to 2-5 ... Comparator,
3-1 to 3-6 ... XOR gate, 4-1 to 4-6 ... Counter, 5-1 to 5-3 ... Data output terminal, 6 ... Reset input terminal, 7-1 to 7-5 ... Registers for storing boundary values, 8 ... Average value input terminal, 9 ... Subtractor, 10 ... Inverter, 11-1 to 11-3 ... AND gate.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 1個のディジタルデータがmビットで、
その平均値が既知であるとともに、分布が対称であるn
個のディジタルデータをk種以下の領域に分類する度数
分布計算装置において、ディジタルデータから平均値を
減算するための減算手段と、減算結果を複数の閾値と比
較してk/2種に分類するための分類手段と、ディジタ
ルデータと平均値との大小関係を判別するための判別手
段と、分類手段によって分類されたデータを判別手段の
判別結果に応じて計数するk/2個の計数手段とを備え
たことを特徴とする度数分布計算装置。
1. One digital data is m bits,
N whose average value is known and whose distribution is symmetric
In a frequency distribution calculation device for classifying each piece of digital data into k or less regions, subtraction means for subtracting the average value from the digital data, and the subtraction result are compared with a plurality of threshold values to classify into k / 2 kinds. For determining the magnitude relationship between the digital data and the average value, and k / 2 counting means for counting the data classified by the classifying means according to the judgment result of the judging means. A frequency distribution calculation device comprising:
JP3240885A 1991-09-20 1991-09-20 Frequency distribution calculator Expired - Fee Related JP3033277B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3240885A JP3033277B2 (en) 1991-09-20 1991-09-20 Frequency distribution calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3240885A JP3033277B2 (en) 1991-09-20 1991-09-20 Frequency distribution calculator

Publications (2)

Publication Number Publication Date
JPH0581427A true JPH0581427A (en) 1993-04-02
JP3033277B2 JP3033277B2 (en) 2000-04-17

Family

ID=17066147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3240885A Expired - Fee Related JP3033277B2 (en) 1991-09-20 1991-09-20 Frequency distribution calculator

Country Status (1)

Country Link
JP (1) JP3033277B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5662980A (en) * 1994-06-30 1997-09-02 E.I. Du Pont De Nemours And Company Carpets made from poly(trimethylene terephthalate) bulked continuous filaments
KR20210002734A (en) 2018-05-16 2021-01-08 엔지케이 인슐레이터 엘티디 Assembly of piezoelectric material substrate and support substrate

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5662980A (en) * 1994-06-30 1997-09-02 E.I. Du Pont De Nemours And Company Carpets made from poly(trimethylene terephthalate) bulked continuous filaments
KR20210002734A (en) 2018-05-16 2021-01-08 엔지케이 인슐레이터 엘티디 Assembly of piezoelectric material substrate and support substrate

Also Published As

Publication number Publication date
JP3033277B2 (en) 2000-04-17

Similar Documents

Publication Publication Date Title
US6141460A (en) Method for detecting edges in an image signal
JPS60167073A (en) Slice circuit of multivalued pattern signal
WO2019104627A1 (en) Image gray scale classification method and device, and readable storage medium
JPH07193705A (en) Area discriminating circuit for dot picture
JP4143288B2 (en) Median filter processing device
JP3033277B2 (en) Frequency distribution calculator
KR100920547B1 (en) Video signal processing apparatus
US5671292A (en) High speed digital image pattern matching circuit
JPH05282441A (en) Frequency distribution processor
KR100206258B1 (en) Image processing apparatus
JP4087946B2 (en) Image processing device
JPH0795180A (en) Line error detector
JPH0132657B2 (en)
JPH02277038A (en) Original size detector
JP2984606B2 (en) 3-input addition / subtraction circuit
JP2797950B2 (en) Predictive coding device
JPH02277373A (en) Image processing device
GB1125866A (en) Determining the boundary line between touching characters
CN114651250A (en) Data processing module for identifying quantiles in a data set
JP2596613B2 (en) Threshold value determination device
JPS6212278A (en) Image signal processor
JPH06290294A (en) Bar code reading circuit
JPH01142988A (en) Binarizing system
JPH03102265A (en) Maximum value detecting circuit
JPH04168817A (en) Control code deciding circuit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090218

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees