JPS60179879A - Arithmatic circuit of histogram - Google Patents

Arithmatic circuit of histogram

Info

Publication number
JPS60179879A
JPS60179879A JP59036717A JP3671784A JPS60179879A JP S60179879 A JPS60179879 A JP S60179879A JP 59036717 A JP59036717 A JP 59036717A JP 3671784 A JP3671784 A JP 3671784A JP S60179879 A JPS60179879 A JP S60179879A
Authority
JP
Japan
Prior art keywords
data
table memory
histogram
adder
register
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
JP59036717A
Other languages
Japanese (ja)
Inventor
Kyoichi Oshida
押田 京一
Yukio Urushibata
漆畑 幸雄
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP59036717A priority Critical patent/JPS60179879A/en
Publication of JPS60179879A publication Critical patent/JPS60179879A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Operations Research (AREA)
  • Probability & Statistics with Applications (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Algebra (AREA)
  • Evolutionary Biology (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To improve arithmetic speed by executing the operation of a histogram at the same period as a picture input period. CONSTITUTION:When a histogram arithmetic mode is specified, the added result of an adder 34 is outputted to a data line 30 through a three-state gate 39 during the setting of a table memory 26 in a write mode. If it is defined that the added results of data RB, RD, RF... to a numeral ''1'' are WB, WD, WF..., (1T)WD is outputted to a data line 30 during the 1st write mode, (1T)WT is outputted during the succeeding write mode (after 1T) to a data line 30, and hereinafter, WF... is outputted similarly. The data on the data line 30 are written in an address position in a table memory 26 which is specified by data in an address line 28. Thus, the histogram arithmetic related to data B, D, F... is executed in parallel with the histogram operation related to the data A, C, E... with the delay of a period 1T.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は画素の濃淡値に対する画素の分布を調べるの
に好適するヒストグラム演算回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a histogram calculation circuit suitable for examining the distribution of pixels with respect to their gray values.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

従来、この種ヒストグラム演算回路は、第1図に示すよ
うに構成されていた。第1図において、画像パス11上
の画像データは、第2図のタイミングチャートに示され
るように、周期2T毎にレジスタ(RIG ) 12に
ラッチされる。
Conventionally, this type of histogram calculation circuit has been constructed as shown in FIG. In FIG. 1, image data on an image path 11 is latched into a register (RIG) 12 every 2T period, as shown in the timing chart of FIG.

レジスタ12の出力(A、B、C・・・)は、テーブル
メモリ13のアドレスライン14を介して当該テーブル
メモリ13に導かれる。テーブルメモリ13は、上記周
期2Tの前半は読出しモードに設定されておシ、この読
出しモードの間、レジスタ12の出力(A、B、C・・
・)で指定される゛アドレス位置の内容RA、RB、R
e・・・がテーブルメモリ13のデータライン15に読
出される・、チータライン15に読出されたRA。
The outputs (A, B, C, . . . ) of the registers 12 are led to the table memory 13 via address lines 14 of the table memory 13. The table memory 13 is set to the read mode during the first half of the period 2T, and during this read mode, the outputs of the register 12 (A, B, C, . . .
・Contents of the address position specified by RA, RB, R
e... is read out to the data line 15 of the table memory 13. RA read out to the cheetah line 15.

RB 、RC・・・は、レジスタ(REG ) 16を
介して加算器17のB入力端に導かれ、加算器17のA
入力端に導かれている数値°゛IMとの加算が行なわれ
る。加算器17の加算結果WA、WB。
RB, RC, . . . are led to the B input terminal of the adder 17 via a register (REG) 16, and
An addition is carried out with the numerical value ゛IM introduced at the input. Addition results WA and WB of adder 17.

WC・・・は、上記周期2Tの後半に出力イネーブル状
態となる3ステートf−)(TSG)Ililを介して
データライン15に導かれる。テーブルメモリ13は、
上記周期2Tの後半は書込みモードに設定されておシ、
この書込みモードの間、データライン15上のWA、W
B、WC・・・が、レジスタ12の出力(A、B、C・
・・)で指定される、テーブルメモリ13のそのアドレ
ス位置(即ち、RA、RB、RC・・・が格納されてい
たそのアドレスに)書込まれる。
WC... is led to the data line 15 via the 3-state f-)(TSG)Ilil which becomes an output enable state in the latter half of the period 2T. The table memory 13 is
The second half of the above cycle 2T is set to write mode.
During this write mode, WA, W on data line 15
B, WC... are the outputs of the register 12 (A, B, C...
) in the table memory 13 (ie, at the address where RA, RB, RC, . . . were stored).

このように従来のヒストグラム演算回路では、周期2T
でヒストグラム演算が行なわれていた。
In this way, in the conventional histogram calculation circuit, the period is 2T.
Histogram calculations were performed.

この場合、画像入力のリアルタイムによるヒストグラム
演算が可能となるだめには、上記周期2Tを画像入力周
期(例えば120 ns)に一致させる必要がある。し
かし、周期Tを画像入力周期の172、例えば60 n
11にすることは極めて困難であ)、画像入力のリアル
タイムによるヒストグラム演算が実現できなかった。
In this case, in order to enable real-time histogram calculation of image input, the period 2T needs to match the image input period (for example, 120 ns). However, if the period T is 172 of the image input period, for example 60 n
11), and real-time histogram calculation of image input could not be realized.

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

この見所は上記事情に鑑みてなされたものでその一目的
は、ヒストグラム演算の高速化が図れ、画像入力のリア
ルタイム処理が可能となるヒストグラム演算回路を提供
することにある。
This feature was made in view of the above circumstances, and one purpose thereof is to provide a histogram calculation circuit that can speed up histogram calculations and perform real-time processing of image input.

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

この発明では、画像パスからの画像データを1周期毎に
又互にラッチする纂1、第2レジスタが設けられる。第
1、第2レジスタからの出力データは、ヒストグラム演
算の中間データおよび演算結果を格納する第1°、第2
テーブルメモリをアトレッジジグするアドレスとして用
いられる。また、この発明では、第1テーブルメモリか
ら読出されるデータと数値°゛1”とを加算する第1加
算器と、第2テーブルメモリから読出されるデータと数
値″1#とを加算する第2加算器とが設けられる。第1
加算器の加算結果は第1ダートを介して第1テーブルメ
モリに供給され、第2加算器の加算結果は第2ダートを
介して第2テーブルメモリに供給される。更に、この発
明では、メモリ制御手段が設けられる。
In this invention, the first and second registers are provided for latching the image data from the image path every cycle and for each other. The output data from the first and second registers are stored in the first and second registers that store intermediate data and operation results of the histogram operation.
Used as an address to atrage the table memory. Further, in the present invention, the first adder adds the data read from the first table memory and the numerical value "1", and the adder adds the data read from the second table memory and the numerical value "1#". 2 adders are provided. 1st
The addition result of the adder is supplied to the first table memory via the first dart, and the addition result of the second adder is supplied to the second table memory via the second dart. Furthermore, in the present invention, memory control means is provided.

このメモリ制御手段は、第1および第2テーブルメモリ
の読出し/書込みモードを1周期毎に且つ相補的に切替
える。
This memory control means complementarily switches read/write modes of the first and second table memories every cycle.

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

第3図はこの発明の一実施例に係るヒストグラム演算回
路の構成を示す。同図において21は画像データの転送
路である画像パス、22は画像パス21上の画像データ
をラッチするレジスタ(REG )、23.24はレジ
スタ22からの出力データをラッチするレジスタ(RE
G )である。25.26はヒストグラム演算の中間デ
ータおよび演算結果を格゛納するテーブルメモリ、21
.28はテーブルメモリ25.26のアドレスライン、
29.30は同じくデータラインである。31.32は
データライン29 、30上のデータをラッチするレジ
スタ(REG )、33はデータライ−ン29上のデー
タまたは数値″′1″のいずれか一方ヲ選訳するセレク
タ(SEL)である。34はレジスタ31からの出力デ
ータと所定値″′1”とを加算する加算器、35Fiレ
ジスタ32からの出力データとセレクタ33からの選択
出力データとを加算する加算器である。
FIG. 3 shows the configuration of a histogram calculation circuit according to an embodiment of the present invention. In the figure, 21 is an image path that is a transfer path for image data, 22 is a register (REG) that latches the image data on the image path 21, and 23 and 24 are registers (REG) that latch the output data from register 22.
G). 25. 26 is a table memory for storing intermediate data and calculation results of histogram calculation, 21
.. 28 is the address line of table memory 25 and 26,
Similarly, 29 and 30 are data lines. 31.32 is a register (REG) that latches the data on data lines 29 and 30, and 33 is a selector (SEL) that selects either the data on data line 29 or the numerical value "'1". . 34 is an adder that adds the output data from the register 31 and a predetermined value "'1"; 35 is an adder that adds the output data from the Fi register 32 and the selected output data from the selector 33;

36はシステムパス、37は加n器35の加1を結果を
システムパス36に出力する3ステートr−ト (TS
G) 、3 8 、 3 9umW 器 34 。
36 is a system path, and 37 is a 3-state r-t (TS
G), 38, 39umW device 34.

35の加算結果をデータライン29.30に出力する3
ステートグー) (TSG )である。これら各部は、
図示せぬホスト装置によってシステムパス36経由で制
御される。
3 outputs the addition result of 35 to data line 29.30
State Goo) (TSG). Each of these parts is
It is controlled via a system path 36 by a host device (not shown).

次に、第3図のヒストグラム演算回路の動作を第4図の
タイミングチャートを参照して説明する。今、ホスト装
置によってヒストグラム演算モードが指定され、図示せ
ぬ画像入力装置から画像ノ4ス21に対し、画像データ
A、B、C・・・が画像入力周期(例えば120 na
)に一致する周期Tで送出されているものとする。画像
データA、B、C・・・は例えば8ピツトで構成され、
対応する画素の濃医値を示す。レジスタ22は、ホスト
装置の制御により、画像パス21上の画像f−タA、B
、C・・・を、第4図のタイミングチャートに示すよう
に周期Tでラッチする。レジスタ22からの出力データ
A、B、C・・・はレジスタ23.24に共通に導かれ
る。レジスタ23はレジスタ22からの出力データを周
期26でラッチする。これにより、レジスタ23には、
例えばデータAが最初にラッチされ、以後2T毎にデー
タC1データE・・・が順次ラッチされる(第4図参照
)。また、レジスタ24は、レジスタ22からの出力デ
ータを、レジスタ23のラッチタイミングよりJ、 T
遅れたタイミングで周期2Tでラッチする。これにより
、レジスタ24には、データBが最初にラッチされ、以
後2T毎にデータC1データF・・・が順次ラッチされ
る(第4図参照)。
Next, the operation of the histogram calculation circuit shown in FIG. 3 will be explained with reference to the timing chart shown in FIG. 4. Now, the histogram calculation mode is specified by the host device, and image data A, B, C, etc. are sent from the image input device (not shown) to the image node 21 at an image input period (for example, 120 na
) is transmitted at a period T that matches the period T. Image data A, B, C, etc. are composed of, for example, 8 pits,
Indicates the medical value of the corresponding pixel. The register 22 registers the image data A and B on the image path 21 under the control of the host device.
, C... are latched at a period T as shown in the timing chart of FIG. Output data A, B, C, . . . from the register 22 are commonly led to registers 23, 24. Register 23 latches the output data from register 22 at a period of 26. As a result, the register 23 has the following information:
For example, data A is latched first, and thereafter data C1, data E, and so on are latched sequentially every 2T (see FIG. 4). Further, the register 24 inputs the output data from the register 22 to J, T according to the latch timing of the register 23.
It is latched with a period of 2T at a delayed timing. As a result, data B is latched first in the register 24, and thereafter, data C1 data F, . . . are sequentially latched every 2T (see FIG. 4).

レジスタ23からの出力データは、アドレスライン27
を介してテーブルメモリ25に導かれる。テーブルメモ
リ25は、ホスト装置の制御により、レジスタ23のデ
ータ出力周期(データラッチ周期)2Tの前半ITは読
出しモードに設定され、同じく後半lTl1−1.誓込
みモードに設定される。しかして、アドレスライン27
上のデータ(即ち、レジスタ23からの出力データ)で
指定される、テーブルメモリ25のそのアドレス位置の
内容が、上記読出しモードの間、当該テーブルメモリ2
5からデータライン29に読出される。テーブルメモリ
25のアドレスA、C,E・・・の内容をRA 、 R
C、RE−・・・とすると(但し、初期状態では、RA
、RC。
The output data from register 23 is sent to address line 27.
is led to the table memory 25 via. In the table memory 25, under the control of the host device, the first half IT of the data output cycle (data latch cycle) 2T of the register 23 is set to read mode, and the second half IT1-1. Set to pledge mode. However, address line 27
During the read mode, the contents of the address location in the table memory 25 specified by the data above (i.e., the output data from the register 23) are stored in the table memory 25 during the read mode.
5 to data line 29. The contents of addresses A, C, E... of the table memory 25 are RA, R.
C, RE-... (However, in the initial state, RA
, R.C.

RE・・・は全てMO”である)、最初の読出しモード
の間(IT)データRAが読出さ′れ、(IT後の)次
の読出しモードの間(IT)データRCが読出され、以
下同様にデータRE・・・が読出される。データライン
29上のデータは上記読出しモードにおける所定タイミ
ングでレジスタ31にラッチされる。レジスタ31から
の出力データは加算器34のB入力端に導かれる。
RE... are all MO''), during the first read mode (IT) data RA is read', during the next read mode (after IT) (IT) data RC is read, and so on. Similarly, data RE... is read out. The data on the data line 29 is latched into the register 31 at a predetermined timing in the read mode. The output data from the register 31 is led to the B input terminal of the adder 34. .

加算器34のA入力端には数値″′1”が導かれている
。加算器34はA、B入力端に導かれる両データの加算
を行なう。加算器34の加算結果は3ステートダート3
8に導かれる。この3ステートダート38は、テーブル
メモリ25が書込みモードに設定されている間(即ち、
レジスタ23のデータ出力周期2Tの後半ITの間)の
みホスト装置にょシ出カイネーブル状態に設定され、加
算器34の加算結果をデータライン29に出力する。し
たがって、データRA。
The value "'1" is introduced to the A input terminal of the adder 34. The adder 34 performs addition of both data introduced to the A and B input terminals. The addition result of adder 34 is 3-state dart 3
Guided by 8. This 3-state dart 38 is executed while the table memory 25 is set to write mode (i.e.,
Only during the second half IT of the data output period 2T of the register 23), the host device is set to the output enable state, and the addition result of the adder 34 is output to the data line 29. Therefore, data RA.

RC、RE・・・と数値″1″との加算結果をWA。WA the result of adding RC, RE... and the value "1".

WC,WE・・・とすると、データライン29には、最
初の書込みモードの間(I T )WAが出力され、(
IT後の)次の書込みモードの間(IT)WCが出力さ
れ、以下同様にWE・・・が出力される(第4図参照)
。データライン29上のデータは、書込みモードの間、
アドレスライン27上のデータ(即ち、レジスタ23が
らの出力データ)で指定される、テーブルメモリ25の
そのアドレス位置に書込まれる。具体的には、最初の書
込みモードにおいてテーブルメモリ25のアドレスAに
データWAが書込まれ、次の書込みモードにおいて同じ
くアドレスCにデータWCが書込まれ、以下同様にアド
レスE・・・にデータWE・・・が書込まれる。即ち、
テーブルメモリ25内のデータRA 、RC、RE・・
・が周期2TでWA 、WC、WE・・・に*耕される
When WC, WE..., WA is output to the data line 29 during the first write mode (I T ), and (
During the next write mode (after IT) (IT) WC is output, and thereafter WE... is output in the same way (see Figure 4).
. During the write mode, the data on data line 29 is
It is written to the address location in table memory 25 specified by the data on address line 27 (ie, the output data from register 23). Specifically, in the first write mode, data WA is written to address A of the table memory 25, in the next write mode, data WC is written to address C, and in the same way, data is written to address E... WE... is written. That is,
Data in the table memory 25 RA, RC, RE...
・is plowed by WA, WC, WE... with a cycle of 2T.

一方、レジスタ24からの出方データは、アドレスライ
ン28を介してテーブルメモリ26に導かれる。テーブ
ルメモリ26は、ポスト装置の制御によシ、レジスタ2
4のデータ出力周期(データラッチ周期)2Tの前半I
T(即ち、レジスタ23のデータ出力周期2Tの後半I
T)は読出しモードに設定され、同じく後手1T(即チ
、レジスタ23のデータ出力周期2Tの前半IT)は書
込みモードに設定される。しかして、アドレスライン2
8上のデータ(即ち、レジスタ24からの出力データ)
で指定される、テーブルメモリ26のそのアドレス位置
の内容が、上記読出しモードの間、当該テーブルメモリ
26からデータライン30に読出される。テーブルメモ
リ26のアドレスB、D、F・・・の内容をRB 、R
D 、RF・・・とすると(但し、初期状態では、RB
、RD、RF・・・は全て0”でおる)、最初の読出し
モードの間(IT)データRBが読出され、(IT後の
)次の甑出しモードの間(IT)データRDが読出され
、以下同様にデータRF・・・が読出される。データラ
イン30上のデータは上記読出しモードにおける所定タ
イミングでレジスタ32にラッチされる。
On the other hand, the output data from the register 24 is led to the table memory 26 via the address line 28. The table memory 26 is controlled by the post device, and the register 2
4 data output cycle (data latch cycle) 2T first half I
T (that is, the second half I of the data output period 2T of the register 23
T) is set to the read mode, and similarly, the latter 1T (ie, the first half IT of the data output period 2T of the register 23) is set to the write mode. However, address line 2
8 (i.e., output data from register 24)
The contents of that address location of the table memory 26, specified by , are read from the table memory 26 onto the data line 30 during the read mode. The contents of addresses B, D, F... of the table memory 26 are set to RB, R.
D, RF... (However, in the initial state, RB
, RD, RF, etc. are all 0''), data RB is read during the first read mode (IT), and data RD is read during the next read mode (after IT). , and so on are similarly read out.The data on the data line 30 is latched into the register 32 at a predetermined timing in the read mode.

レジスタ32からの出力データは加算器350B入力端
に導かれる。加算器35のA入力端にはセレクタ33か
らの選択出力データが尋かれる。セレクタ33は、ヒス
トグラム演算そ−ドでは、数値″1”およびデータライ
ン29上のデータのうち、数値ビを選択するように制御
されている。したがって、ヒストグラム演算モードにお
いて、加算器35のA入力端に導かれるデータは数値″
11”となる。加算器35はA、B入力端に導かれる両
データの加算を行なう。加算器35の加算結果は3ステ
ートダート37゜39に共通に導かれる。ヒストグラム
演算モードでは、3ステートダート37はホスト装置に
より出力ハイ・インピーダンス状態に設定される。これ
に対し、3ステートダート39はホスト装置によりテー
ブルメモリ26が書込みモードに設定されている間(即
ち、レジスタ24のデータ出力周期2′rの後半1Tの
間)出力イネーブル状態に設定され、同じく読出しモー
ドに設定されている間(即ち、レジスタ24のデータ出
力周期2Tの前半ITの間)出力ハイ・インピーダンス
状態に設定される。したがって、ヒストグラム演算モー
ドが指定されているこの例では、加算器34の加算結果
は、テーブルメモリ26が書込みモードに設定されてい
る間、3ステートゲート39を介してデータライン30
に出力される。ここで、データRn、RD。
The output data from register 32 is directed to the input of adder 350B. Selected output data from the selector 33 is input to the A input terminal of the adder 35. The selector 33 is controlled to select the numerical value "BI" from among the numerical value "1" and the data on the data line 29 in the histogram calculation mode. Therefore, in the histogram calculation mode, the data led to the A input terminal of the adder 35 is a numerical value "
11''.The adder 35 adds both data introduced to the A and B input terminals.The addition result of the adder 35 is commonly introduced to the 3-state darts 37 and 39.In the histogram calculation mode, the 3-state data Dart 37 is set to an output high impedance state by the host device. In contrast, 3-state dart 39 is set to an output high impedance state by the host device while table memory 26 is set to write mode (i.e., data output period 2 of register 24). During the second half 1T of the data output period 2T of the register 24), the output enable state is set, and while the read mode is set (that is, during the first half IT of the data output period 2T of the register 24), the output high impedance state is set. Therefore, in this example where the histogram operation mode is specified, the addition result of adder 34 is transferred to data line 30 via three-state gate 39 while table memory 26 is set to write mode.
is output to. Here, data Rn, RD.

RF・・・と数値″1”との加算結果をWB、WD。WB and WD are the addition results of RF... and the numerical value "1".

WF・・・とすると、データライン30には、最初の書
込みモードの間(IT)WBが出力され、(]T後の)
次の薔込会モードの間(IT)WDが出力され、以下同
様にWF・・・が出力される(第4図参照)。データラ
イン30上のデータは、舊込みモードの間、アドレスラ
イン28上のデータ(即ち、レジスタ24からの出力デ
ータ)で指定される、テーブルメモリ26のそのアドレ
ス位置に書込まれる。具体的には、最初の書込みモード
においてテーブルメモリ26のアドレスBにデータWB
が書込まれ、久の書込みモードにおいて同じくアドレス
DにデータWDが書込まれ、以下同様にアドレスF・・
・にデータWF・・・が書込まれる。即ち、テーブルメ
モリ26内のデータRB 、RD 、RF・・・が周期
2TでWB 、WD 、WF・・・にj!新される。
WF..., WB is output to the data line 30 during the first write mode (IT), and (after ]T)
During the next baroque meeting mode (IT) WD is output, and thereafter WF... is output in the same manner (see FIG. 4). Data on data line 30 is written to that address location in table memory 26 specified by the data on address line 28 (ie, the output data from register 24) during the fill mode. Specifically, in the first write mode, the data WB is stored at address B of the table memory 26.
is written, data WD is written to address D in the same write mode, and the same goes to address F...
・Data WF... is written to. That is, the data RB, RD, RF, . . . in the table memory 26 changes to WB, WD, WF, . be renewed.

このように、本実施例では、両心データA。In this way, in this example, the bicentric data A.

B、C,D、E、F・・・に関するヒストグラム演算は
、それぞれ周期2Tで行なわれる。しかし、データA、
C,E・・・に関するヒストグラム演算に対し、データ
B、D、F・・・に関するヒストグラム演算が周期IT
の遅れで並列に行なわれるため、ヒストグラム演算は外
部からみて周期1″rで行なわれる。
Histogram calculations for B, C, D, E, F, . . . are each performed at a cycle of 2T. However, data A,
In contrast to the histogram calculations regarding data B, D, F, etc., the period IT is
Since the histogram calculations are performed in parallel with a delay of

次にホストitが、テーブルメモリ25゜260内容を
用いて、濃淡値に対する画承の分布を調べる場合の動作
を説明する。この場合、ホスト装[L第3図のヒストグ
ラム頂舅回路に対し加算モードを指定する。しかして、
ホスト装置はテーブルメモリ26.26をアクセスする
ためのアドレスをシステムバス36に送出する。システ
ムパス36上のアドレスは図示せぬ3ステートr−トを
介してアドレスライン27゜28に導かれ、描該アドレ
スライン27.28よシテーブルメモリ25.26に4
かれる。この場合、テーブルメモリ25.26は読出し
モードとなっておシ、これによりアドレスライン27.
28上のアドレス(即ち、ホスト装置からのアドレス)
で指定された位置の内容がテープル゛メモリ26.26
からデータライン29゜30に暁&される。加算モード
では、データライン29上のデータは、セレクタ33に
よって加算器35のA入力端に選択的に導かれる。一方
、データライン30上のデータは、レジスタ32を介し
て加′J#、器35のB入力端に導かれる。
Next, an explanation will be given of the operation when the host IT uses the contents of the table memory 25.degree. 260 to examine the distribution of image patterns for grayscale values. In this case, the host device [L specifies the addition mode for the histogram top and bottom circuits in FIG. However,
The host device sends an address to the system bus 36 for accessing the table memory 26,26. The address on the system path 36 is led to the address line 27.28 via a 3-state path (not shown), and is transferred from the address line 27.28 to the table memory 25.26.
It will be destroyed. In this case, the table memories 25, 26 are in read mode, which causes the address lines 27.
Address on 28 (i.e. address from host device)
The contents of the location specified in table memory 26.26
The data line is 29°30. In addition mode, data on data line 29 is selectively directed by selector 33 to the A input of adder 35. On the other hand, the data on the data line 30 is led to the B input terminal of the adder 35 via the register 32.

加算器35はA、B入力端に導かれる両データの加算を
行なう。これによシ、成る濃淡値をもつ画素の総数がめ
られる。加算器35の加昇結果は、加算モードにおいて
出力イネーブル状態に設定される3ステートゲート37
を介してシステムパス36に送出され、ホスト装置に転
送される。ホスト装置は、種々のアドレス(即ち濃淡値
)について上述の動作を繰シ返し、濃淡値に対する画素
分布t−Aべる。
The adder 35 adds both data introduced to the A and B input terminals. This gives the total number of pixels with the same gray value. The addition result of the adder 35 is sent to the 3-state gate 37 which is set to the output enable state in the addition mode.
via the system path 36 and transferred to the host device. The host device repeats the above operation for various addresses (ie, gray values) and obtains the pixel distribution t-A for the gray values.

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

以上詳述したようにこの発明によれば、ヒストグラム演
算が画像入力周期と同一周期で行なえる。
As described in detail above, according to the present invention, the histogram calculation can be performed at the same cycle as the image input cycle.

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

第1図は従来のヒストグラム演算回路の回路構成図、第
2図は第1図のヒストグラム演昇回路の動作を説明する
ためのタイミングチャート、第3図はこの発明の一実施
例に係るヒストグラム演算回路の回路構成図、第4図は
第3図のヒストグラム演算回路の動作を説明するための
タイミングチャートである。 21・・・画像パス、22〜24.31.32・・・レ
ジスタ(REG)、25.26・・・テーブルメモリ、
34.35・・・加算器、37〜39・・・3ステー 
ト ダー ト (TSG ) 。 出願人代理人 弁理士 鈴 江 武 彦第1 図 第2図 第3図 1 第4図
FIG. 1 is a circuit configuration diagram of a conventional histogram calculation circuit, FIG. 2 is a timing chart for explaining the operation of the histogram enhancement circuit shown in FIG. 1, and FIG. 3 is a histogram calculation according to an embodiment of the present invention. FIG. 4 is a circuit configuration diagram of the circuit, and is a timing chart for explaining the operation of the histogram calculation circuit of FIG. 3. 21... Image path, 22-24.31.32... Register (REG), 25.26... Table memory,
34.35... Adder, 37-39... 3 stages
To Dart (TSG). Applicant's agent Patent attorney Takehiko Suzue Figure 1 Figure 2 Figure 3 Figure 1 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 画像パスからの画像データを1周期毎に交互にラッチす
る第1、第2レジスタと、ヒストグラム演算の中間デー
タおよび演算結果を格納し上記第2レジスタからの出力
データによって7ドレツシングされる第1テーブルメモ
リと、ヒストグラム演算の中間データおよび演算結果を
格納し、上記第2レジスタからの出力データによりてア
ドレッシングされる第2テーブルメモリと、上記第1テ
ーブルメモリから読出されるデータと数値“1″との加
算を行なう第1加算器と、上記第2テーブルメモリから
読出されるデータと数値″′1”との加算を行なう第2
加算器と、上記第1加算器の加算結果を上記第1テーブ
ルメモリに供給する第1ff−)と、上記第2加算器の
加算結果を上記第2テーブルメモリに供給する第2デー
トと、上記第1および第2テーブルメモリの読出し/書
込みモードを1周期毎に・且つ相補的に切替えるメモリ
制御手段とを具備することを特徴とするヒストグラム演
算回路。
First and second registers that alternately latch image data from the image path every cycle, and a first table that stores intermediate data and calculation results of histogram calculations and is dressed by the output data from the second register. a second table memory that stores intermediate data and operation results of the histogram operation and is addressed by the output data from the second register; and a second table memory that stores the intermediate data and operation results of the histogram operation, and the data read from the first table memory and the numerical value "1". a first adder that performs the addition of ``'1'' and a second adder that adds the data read from the second table memory and the numerical value "'1".
an adder; a first ff-) for supplying the addition result of the first adder to the first table memory; a second date supplying the addition result of the second adder to the second table memory; A histogram calculation circuit comprising memory control means for switching read/write modes of the first and second table memories every cycle and in a complementary manner.
JP59036717A 1984-02-28 1984-02-28 Arithmatic circuit of histogram Pending JPS60179879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59036717A JPS60179879A (en) 1984-02-28 1984-02-28 Arithmatic circuit of histogram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59036717A JPS60179879A (en) 1984-02-28 1984-02-28 Arithmatic circuit of histogram

Publications (1)

Publication Number Publication Date
JPS60179879A true JPS60179879A (en) 1985-09-13

Family

ID=12477498

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59036717A Pending JPS60179879A (en) 1984-02-28 1984-02-28 Arithmatic circuit of histogram

Country Status (1)

Country Link
JP (1) JPS60179879A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01320586A (en) * 1988-06-22 1989-12-26 Toshiba Corp Pattern picture processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01320586A (en) * 1988-06-22 1989-12-26 Toshiba Corp Pattern picture processor

Similar Documents

Publication Publication Date Title
KR880001168B1 (en) Digital signal processing system
KR950012256A (en) Computer system for processing vector data and method thereof
US20080104364A1 (en) Vector indexed memory unit and method
US4764896A (en) Microprocessor assisted memory to memory move apparatus
JPS60179879A (en) Arithmatic circuit of histogram
US5487051A (en) Image processor memory for expediting memory operations
US5893928A (en) Data movement apparatus and method
JPH1091593A (en) Data processor provided with microprocessor and optional calculation unit
JP2514473B2 (en) Parallel processor
JPH03652B2 (en)
CA1106978A (en) Simple flexible indexing method for ros storage microcomputers
JP3028620B2 (en) Address translation buffer circuit
JPS58117068A (en) Processing circuit of picture data
JPS6382530A (en) Semiconductor storage device
JPS6167156A (en) Data reading/altering apparatus
KR20010072505A (en) Data-processing arrangement comprising a plurality of processing and memory circuits
JPS5971510A (en) Sequence control circuit
JPS607676A (en) Memory writing circuit
JP3057749B2 (en) I / O port
JPH0259868A (en) Image processor
JPH03214275A (en) Semiconductor integrated circuit
JPS6329295B2 (en)
JPH0721760B2 (en) Digital arithmetic circuit
JPS60218146A (en) Storage device address control system
JPH0373072A (en) High-speed picture processing circuit