JPS6470880A - Digital image processor - Google Patents
Digital image processorInfo
- Publication number
- JPS6470880A JPS6470880A JP22810087A JP22810087A JPS6470880A JP S6470880 A JPS6470880 A JP S6470880A JP 22810087 A JP22810087 A JP 22810087A JP 22810087 A JP22810087 A JP 22810087A JP S6470880 A JPS6470880 A JP S6470880A
- Authority
- JP
- Japan
- Prior art keywords
- image
- binary
- processing
- binary image
- processing circuit
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、原画像データに対して演算処理を施し、階調
補正や画質鮮鋭化などの画像データ変換処理や原画像デ
ータからの特徴抽出などの処理を実現するためのディジ
モル画(’A処理装置に関するものである。[Detailed Description of the Invention] (Industrial Field of Application) The present invention relates to a digital image processing apparatus for performing calculations on original image data to realize image data conversion processing such as gradation correction and image sharpening, and processing such as feature extraction from original image data.
(従来の技術)
ディジタル画像処理−装置は、画像データを入出力する
ための画像入出力回路と、画像データを記憶するための
画像メモリと、画像データに対して演算処理を施す処理
回路などのハードウェア、及び、これらの各ハードウェ
アを制御したり、ソフトウェアによって画像データに対
する演算処理を施すホストCPUなどによって構成され
る。また、場合によっては、ホストCPUによるソフト
ウェア処理では実現できない高速なハードウェア制御の
ための制御回路が含まれる。(Conventional Technology) A digital image processing device consists of hardware such as image input/output circuits for inputting and outputting image data, image memory for storing image data, and processing circuits for performing arithmetic operations on the image data, as well as a host CPU that controls these hardware components or performs arithmetic operations on the image data via software. In some cases, it may also include a control circuit for high-speed hardware control that cannot be achieved by software processing by the host CPU.
演算処理は、画像入力回路より得られる画像データや画
像メモリの読出データを処理回路が処理する場合と、ホ
ストCPUが画像メモリ上のデータに対してソフトウェ
アによって処理を施す場合があるが、処理回路によるハ
ードウェア処理が高速処理には適している。その場合、
画像入力回路と処理回路あるいは画像メモリと処理回路
の間は画像データの授受が行えるように何等かの形で結
合されなければならない、ハードウェアの構成が限定さ
れている場合には、それらの結合方式は特定の信号ライ
ンによって実現できるが、ハードウェアの構成に柔軟性
や拡張性を持たせることが必要である場合には、データ
バスを用いた結合方式が必要となる。特に、演算機能が
豊富で、多目的に利用されることを目脂した汎用的な画
像処理装置の場合には、専用のデータバスを設け、ハー
ドウェア各部の回路間で画像データが転送されるのが一
般的である。Calculation processing can be performed either by a processing circuit processing image data obtained from an image input circuit or data read from image memory, or by the host CPU processing the data in image memory using software. However, hardware processing by a processing circuit is more suitable for high-speed processing. In that case,
Image input circuits and processing circuits, or image memory and processing circuits, must be connected in some way to allow for the exchange of image data. When the hardware configuration is limited, these connections can be achieved using specific signal lines. However, when flexibility and expandability are required in the hardware configuration, a data bus-based connection method is necessary. In particular, for general-purpose image processing devices with rich computing capabilities and designed for multi-purpose use, it is common to provide a dedicated data bus to transfer image data between circuits in various parts of the hardware.
第7図にハードウェア各部が画像データ専用のデータバ
スによって結合された画像処理装置の構成例を示す0図
中、1はホス1〜CPU、2は画像Δ角回路、3は画像
出力回路、Mlは画像メモリ、Plは処理回路、BOは
ホストCPUバス、B1は画像データバスである。この
うち、画像入力回路2、画像出力回路3、画像メモリM
1、処理回路P1の各回路は必要に応じて複数存在する
場合がある。Figure 7 shows an example of the configuration of an image processing apparatus in which each hardware component is connected by a data bus dedicated to image data. In Figure 0, 1 is the host 1 to CPU, 2 is the image Δ-angle circuit, 3 is the image output circuit, Ml is the image memory, Pl is the processing circuit, BO is the host CPU bus, and B1 is the image data bus. Of these, the image input circuit 2, the image output circuit 3, and the image memory Ml are important components.
1. Each circuit in processing circuit P1 may exist in multiples as needed.
画像データの入力は、画像データバスB1を介して画像
入力回路2から画像メモリM1に対して画(象データを
転送することにより達成される。Image data input is achieved by transferring image data from the image input circuit 2 to the image memory M1 via the image data bus B1.
画像データの演算処理は、画像メモリM1から読み出さ
れた画像データが画像データバスB1を介して処理回路
P1に入力され、演算処理を施され、その処理結果の画
像データが再び画像データバスB1を介して画像メモリ
M1に書き込まれることにより完結する。The image data processing is completed when the image data read from the image memory M1 is input to the processing circuit P1 via the image data bus B1, calculations are performed, and the resulting image data is written back to the image memory M1 via the image data bus B1.
画像データの出力は、画像メモリM1から読み出された
画像データが画像データバスB1、画像出力回路3を介
して、外部の画像表示機器や画像記録機器などに出力さ
れることにより達成される。Image data output is achieved when image data read from image memory M1 is output to external image display devices, image recording devices, etc., via image data bus B1 and image output circuit 3.
以上の他、画像データバスB1の内部構成によっては、
画像入力回路2より得られる画像データを処理回路P1
に直接導くこともできるし、あるいは、処理回路P1の
出力するデータを画像出力回路3へ直接導くこともでき
る。このように、画像データバスB1を介した各回路の
接続関係によって画像入力、画像処理、画像出力などの
動作状態が決定される。In addition to the above, depending on the internal configuration of the image data bus B1,
Image data obtained from image input circuit 2 is processed by processing circuit P1
The data can be directly routed to the image output circuit 3, or the data output from the processing circuit P1 can be directly routed to the image output circuit 3. In this way, the operating state of image input, image processing, and image output is determined by the connection relationships of each circuit via the image data bus B1.
ここまでの説明では、扱われる画像データが多値画像で
あるか2値画像であるかを考えていなかったが、一般に
、画像データが処理される場合、最初入力される画像デ
ータが階調を伴う多値画像であっても、処理結果として
2値化されたり、その2値画像が処理されたり、2値画
像を制御データとして多値画像が処理されるなど、多値
画像と2値画像を共に扱うことが多い。そのため、第7
図に含まれる各回路、と、画像データバスB1は多値画
像と2値画像の両方を扱えなければならず、少なくとも
扱う多値画像の階調に応じたビット幅を有していなけれ
ばならない。Up to this point, the explanation has not considered whether the image data being handled is a multi-level or binary image. However, generally, when image data is processed, even if the initial input image data is a multi-level image with grayscale, the processing result is often binarized, or the binary image is processed, or the multi-level image is processed using the binary image as control data. In other words, both multi-level and binary images are often handled together. Therefore, Section 7
Each circuit shown in the diagram, and the image data bus B1, must be able to handle both multi-level and binary images, and must have a bit width corresponding to the grayscale levels of the multi-level image being handled.
従来、このような画像処理装置で2値画像が扱われる場
合、例えば、処理回路P1が処理結果として2値画像を
生成し、そのデータを画像メモリM1に格納するような
場合、2値画像を多値画像に拡張して、多値画像用の画
像メモリM1に格納していた、2値画像を多値画像に拡
張するには、一般に2値画像の1とOを多値画像の各ビ
ットに対応させる。多値画像の1画素が8ビットで表さ
れるならば、2値画像の1と0はそれぞれ255とOに
拡張される。このように拡張すれば、多値画像用の処理
回路P1を用いて2値画像に対する演算を行っても矛盾
のない結果が得られる。また、このように特定の2値と
して、多値画像中の白レベルと黒レベルに相当する値を
採用すれば、多値画像を表示する回路で2値画像データ
をそのまま表示することが可能となる。Conventionally, when binary images are handled by such an image processing device, for example, when a processing circuit P1 generates a binary image as a processing result and stores that data in an image memory M1, the binary image was extended to a multi-level image and stored in the image memory M1 for multi-level images. In order to extend a binary image to a multi-level image, generally, the 1s and Os in the binary image are made to correspond to the bits in the multi-level image. If one pixel in the multi-level image is represented by 8 bits, then the 1s and 0s in the binary image are extended to 255 and O, respectively. With this extension, consistent results can be obtained even when performing calculations on the binary image using the processing circuit P1 for multi-level images. Furthermore, by adopting values corresponding to the white level and black level in the multi-level image as specific binary values in this way, it becomes possible to display the binary image data directly in a circuit that displays multi-level images.
さらに、画像処理装置で2値画像が扱われる場合には、
2値画像を制御データとして、処理回路P1の演算機能
を切り換える場合がある0例えば、2枚の画像データに
ついて各画素位置における大きい方の値を得る処理(最
大値処理)では、まず、2枚の多値画像間で画素毎に減
算処理を行い、その時発生するボローデータに相当する
2値画像を得て、次に、その2値画像を用いて2枚の多
値画像を画素単位に切り換えて合成する。Furthermore, when binary images are handled by an image processing device,
In some cases, the calculation function of the processing circuit P1 is switched using a binary image as control data. For example, in the process of obtaining the larger value at each pixel position for two image data (maximum value processing), first, a subtraction operation is performed pixel by pixel between the two multi-level images to obtain a binary image corresponding to the resulting borrow data, and then the two multi-level images are switched pixel by pixel using that binary image to combine them.
第8図に本発明に先立って考えた2値画像により演算機
能を切り換えることのできる処理回路P1とその周辺回
路との接続関係を示す0図中、Mpは処理回路P1に付
帯して設けられた2値画像メモリであり、処理回路P1
の出力する2値画像のデータを格納するための専用の2
値画像メモリである。FRn及びFRbは処理回路P1
の演算機能を指定する2つのファンクションレジスタ、
FSは2つのファンクションレジスタF Ra、F R
bの値を2値画像メモリMpの読出データに従って切り
換えて処理回路P1のファンクション人力FIに与える
ためのファンクションセレクタ、Bla。Figure 8 shows the connection relationship between a processing circuit P1 capable of switching calculation functions using binary images, as conceived prior to the present invention, and its peripheral circuits. In Figure 8, Mp is a binary image memory provided attached to the processing circuit P1.
A dedicated 2
This is a value image memory. FRn and FRb are processed by the processing circuit P1.
Two function registers that specify the arithmetic functions,
FS has two function registers F Ra and F R
Bla is a function selector for switching the value of b according to the data read from the binary image memory Mp and providing it to the manual function FI of the processing circuit P1.
Bibは処理回路P1の2つの画像データ入力ボートI
Pa、I Pbに画像データを供給するための画像デ
ータバス、Blcは処理回路P1が出力する処理結果を
他の回路へ供給するための画像データバスである0例に
挙げた最大値処理では、まず、第1のフレームでは2枚
の画像データがデータバスBla、Bibを経由して処
理回路P1に入力される。ファンクションレジスタF
Ra、F Rbには減算処理を指定するファンクション
コードが共に設定されており、ファンクションセレクタ
FSの状態に拘わらず処理回路P1は減算処理を行う。Bib is the two image data input ports I of the processing circuit P1.
Pa and I are image data buses for supplying image data to Pb, and Blc is an image data bus for supplying the processing results output by processing circuit P1 to other circuits. In the maximum value processing example given, first, in the first frame, two image data are input to processing circuit P1 via data buses Bla and Bib. Function register F
Both Ra and F Rb are set with function codes that specify subtraction processing, and processing circuit P1 performs subtraction processing regardless of the state of function selector FS.
処理回路P1の2値画像出力端子02からは別の設定に
より減算処理により発生するボローデータを出力するよ
う指定されており、2値画像メモリMpには各画素につ
いてのボローデータに相当する2値画像が格納される。The binary image output terminal 02 of the processing circuit P1 is specified to output borrow data generated by subtraction processing according to a separate setting, and the binary image memory Mp stores a binary image corresponding to the borrow data for each pixel.
第2のフレームでは、ファンクションレジスタFRaと
FRbには、それぞれ入力ボートIPaとIPbに入力
された画像データをそのまま出力するようなファンクシ
ョンコードが設定され、ファンクションセレクタFSは
2値画像メモリMpが各画素について出力するボローデ
ータによってファンクションを切り換えて処理回路P1
に与える。処理回路P1へは第1のフレームと同様に、
データバスBla、Bibから2枚の画像データが入力
されており、ファンクションの切り換えに従って2枚の
画像データが切り換って、多値画像出力端子01から処
理結果として出力される。ファンクションの切り換えは
、2枚の画像データの大小関係に依存したボローデータ
により行われるので、画像出力として最大値処理された
画像出力が得られ、また、ファンクションコードの設定
によれば最小値出力を得ることもできる。In the second frame, function registers FRa and FRB are set with function codes that output the image data input to input boards IPa and IPb as is, respectively, and the function selector FS switches functions according to the borrow data output by the binary image memory Mp for each pixel, and the processing circuit P1
It is given to the processing circuit P1, similar to the first frame.
Two image data are input from data buses Bla and Bib. The two image data are switched according to the function, and the processed result is output from the multi-level image output terminal 01. The function switching is performed by borrow data that depends on the relative sizes of the two image data, so the image output is processed to the maximum value, and depending on the function code setting, the minimum value output can also be obtained.
(発明が解決しようとする問題点)
以上、第7図及び第8図により従来の画像処理装置にお
ける2値画像の取り扱いについて説明したが、従来の方
式の2値画像の収り汲いでは、大別して3つの問題点が
ある。(Problems the invention aims to solve) As explained above with reference to Figures 7 and 8, the handling of binary images in conventional image processing devices has three main problems.
第1の問題点は、処理結果あるいは被処理データとして
2値画像が扱われるとき、2値画像を多値画像に拡張し
、本来多値画像用の回路を2値画像用に兼用することに
よる問題点である。まず、2値画像用に画像メモリが大
量に必要な場合に、容量が必要以上に大きな多値画像メ
モリを大量に増設せねばならず、不経済である。また、
処理回路内でも2値画像は多値画像と同じビット幅で扱
われるため、2値画像に対する特有の演算機能を効率よ
くハードウェア化できないという問題がある、さらに、
同時に多くの2値画像を扱いたい場合、データバス全体
の幅が大きくなってしまうため、データバスの本数を自
由に増やせないという問題もある。The first problem arises when binary images are handled as processing results or data to be processed. This is due to the extension of binary images to multi-level images, and the repurposing of circuits originally designed for multi-level images for binary images. Firstly, when a large amount of image memory is needed for binary images, a large amount of multi-level image memory with unnecessarily large capacities must be added, which is uneconomical. Furthermore,
Because binary images are handled with the same bit width as multi-level images within the processing circuit, there is a problem in that it is not possible to efficiently implement the specific calculation functions for binary images in hardware. Furthermore,
When you want to handle many binary images simultaneously, the overall width of the data bus becomes large, which presents a problem as you cannot freely increase the number of data buses.
第2の問題点は、処理回路の演算機能切り換え用の2値
画像メモリが処理回路に付帯的に配置されていることに
よる問題点である。まず、処理目的に応じて同様の処理
回路を増設したい場合に、要不要に拘わらす2値画像メ
モリが配置されることになり、不経済であること。逆に
、2値画像メモリを増設したい場合、2値画像メモリが
処理回路に固有の回路であるため、自由に増設しにくい
こと。また、処理回路と2値画像メモリの関係が閉じて
いるので、処理回路により生成した2値画像は付属の2
値画像メモリにのみ格納され、処理回路のファンクショ
ンの切換も付属の2値画像メモリの出力によってのみ可
能である。このため、ある処理回路の生成した2値画像
で別の処理回路を制御させることは困難であり、別な処
理回路に属する2値画像メモリの内容間での演算を行う
ことも困難であること、などの問題がある。つまり、処
理回路と2値画像メモリの関係が非常に閉鎖的であり固
定的であるために、処理機能の発展が制限されている。The second problem stems from the fact that the binary image memory used for switching the processing circuit's calculation functions is incidentally located within the processing circuit. First, when adding similar processing circuits depending on the processing purpose, the binary image memory is included regardless of whether it is necessary or not, which is uneconomical. Conversely, when adding binary image memory, it is difficult to do so freely because the binary image memory is a circuit specific to the processing circuit. Also, because the relationship between the processing circuit and the binary image memory is closed, the binary image generated by the processing circuit is stored in the attached binary image memory.
The image is stored only in the binary image memory, and switching the function of the processing circuit is only possible through the output of the attached binary image memory. Therefore, it is difficult to control one processing circuit with a binary image generated by one processing circuit, and it is also difficult to perform operations between the contents of binary image memories belonging to different processing circuits. In short, the relationship between the processing circuit and the binary image memory is very closed and fixed, which limits the development of processing functions.
第3の問題点は、2値画像の取り扱いが場合によって異
なることによる問題点である。つまり、処理結果たる2
値画像や今後処理を施される2値画像では、多値画像に
拡張して、データバスB1、画像メモリM1を利用する
のに対し、処理回路P1の演算機能切り換えに用いられ
る2値画像では、処理回路P1に付帯的に配置される2
値画像メモリMpを利用するというように、同じ2値画
像であっても性質の違いによって多値画像に拡張したり
しなかったり、扱う場所を変えたりしなければならない
という複雑さが問題である。2値画像は必ずしも一方の
性質を持ったものではなく、例えば、2値画像メモリM
p上の2値画像に対して演算を施したいという要求も当
然発生する。このように、従来の装置は固定的な用途以
外に2値画像を利用しにくい構成であった。The third problem stems from the fact that the handling of binary images differs depending on the case. In other words, the processing result is 2
For multi-level images and binary images to be processed in the future, the data bus B1 and image memory M1 are used, extending to multi-level images. In contrast, for binary images used for switching the calculation function of the processing circuit P1, the two are arranged incidentally to the processing circuit P1.
The problem lies in the complexity that even with the same binary image, differences in properties necessitate either extending it to a multi-level image or not, or changing where it's handled, such as using a value image memory Mp. A binary image does not necessarily possess only one property; for example, a binary image memory Mp
Naturally, there is a need to perform calculations on binary images on p. Thus, conventional devices have a configuration that makes it difficult to use binary images for purposes other than fixed applications.
本発明は前記問題点を解決するためになされたもので、
その目的とするところは、装置内で扱われる全ての2値
画像データを処理回路による2値画像の入出力の対象と
することができるディジタル画像処理装置を提供するこ
とにある。This invention was made to solve the aforementioned problems,
The objective is to provide a digital image processing device that can treat all binary image data handled within the device as targets for binary image input and output by the processing circuit.
(問題点を解決するための手段)
本発明は、前記目的を達成するために、第1図に示すよ
うに、画像データを入出力するための画像入出力回路2
.3と、画像データを記憶するための画像メモリMl、
M2と、画像データに対して処理を施すための処理回路
PL、P2と、前記各ハードウェアを制御するための制
御手段(ホス)CPUI)と、前記各ハードウェア間で
画像データを転送するための画像データバスB 1 、
B 2とを備えて成る画像処理装置において、前記デー
タバスは、1画素につき複数ビットの情報量を持つ多値
画像のデータを転送するための多値画像用データバスB
1と、1画素につき1ビットの情報量を持つ2値画像の
データを転送するための2値画像用データバスB2とを
別々に含み、前記処理回路は、前記2値画像用データバ
スB2に2値画像の画像データを処理結果として出力可
能な第1の処理回路と、前記2値画像用データバスB2
上の2値画像によって処理機能を画素単位に切換可能な
第2の処理回路とを含むことを特徴とするものである。(Means for solving the problem) In order to achieve the above objective, the present invention provides an image input/output circuit 2 for inputting and outputting image data, as shown in Figure 1.
3. Image memory Ml for storing image data.
M2, a processing circuit PL for processing image data, P2, a control means (host) CPU I) for controlling each of the hardware components, and an image data bus B1 for transferring image data between the hardware components.
In an image processing apparatus comprising B 2, the data bus is a multi-level image data bus B for transferring data of a multi-level image having multiple bits of information per pixel.
The processing circuit includes a first processing circuit capable of outputting binary image image data as a processing result to the binary image data bus B2, and the binary image data bus B2
The invention is characterized by including a second processing circuit that can switch processing functions on a pixel-by-pixel basis based on the binary image above.
(作用) 以下、第1図により本発明の詳細な説明する。(Function) The present invention will be described in detail below with reference to Figure 1.
画像入出力回路2,3は、通常、多値画像用データバス
B1に接続され、制御手段(ホスl−CP U )の制
御下にて外部回路との間で多値画像の画像データの入出
力を行う、多値画像用データバス全体上の多値画像は、
画像メモリM1に格納されたり、或いは、処理回路P1
にて処理を施される。処理の進行に伴って、処理回路P
1は処理経過として、或いは、処理結果として、2値画
像を生成することがある。この2値画像は、2値画像用
データバスB2に出力される。2値画像用データバスB
2上の2値画像は、画像メモリM2に格納されたり、或
いは、処理回路P2にて演算処理が施される。Image input/output circuits 2 and 3 are normally connected to the multi-level image data bus B1 and perform input and output of multi-level image data to and from external circuits under the control of a control means (Host I-CPU). Multi-level images on the entire multi-level image data bus are
The image is stored in the image memory M1, or in the processing circuit P1.
Processing is performed in the processing circuit P. As the processing progresses, the processing circuit P
1. As part of the processing process, or as a result of the processing, a binary image may be generated. This binary image is output to the binary image data bus B2. Binary image data bus B
The binary image is either stored in the image memory M2 or processed by the processing circuit P2.
以上の作用だけでは、1つの画像処理装置の中に多値画
像用と2値画像用の2つの処理システムが別個独立に共
存しているのと余り変わらないが、本発明にあっては、
さらに、2値画像用データバスB2上の2値画像が、処
理回路P1の処理機能を画素単位に切り換えるための制
御データとして入力可能となっている。このため、処理
回路P1は任意の2値画像メモリから制御データを受は
取ることができるのみならず、他の処理回路から出力さ
れた2値画像をも制御データとして受は取ることができ
る。このため、複数の処理回路が同時に並列的に作動す
ることが可能となり、多値画像と2値画像を同時に用い
る並行処理の可能性が飛躍的に増大するものである。Based solely on the above actions, this is not much different from having two separate processing systems, one for multi-level images and one for binary images, coexisting independently within a single image processing device. However, in the present invention,
Furthermore, binary images on the binary image data bus B2 can be input as control data to switch the processing functions of the processing circuit P1 on a pixel-by-pixel basis. Therefore, the processing circuit P1 can not only receive control data from any binary image memory, but can also receive binary images output from other processing circuits as control data. As a result, multiple processing circuits can operate simultaneously in parallel, dramatically increasing the possibility of parallel processing using both multi-level and binary images at the same time.
本発明のさらに詳しい構成及び作用については、以下の
実施例の説明において、−層明らかとなる。Further details regarding the structure and operation of the present invention will become clearer in the following description of the embodiments.
(実施例)
第1図に本発明によるディジタル画像処理装置の構成を
示す9図中、M2は2値画像メモリ、B2は2値画像処
理回路、B2は2値画像専用のデータバスであり、その
他の構成については第7図の構成と同じである。多値画
像用の画像メモリM1及び処理回路P1と、2値画像用
の画像メモリM2及び処理回路P2は共に必要に応じて
増設可能である。また、2値画像専用のデータバスB2
も1本に限らず必要に応じて本数を増やすことができる
。(Example) Figure 1 shows the configuration of the digital image processing apparatus according to the present invention. In Figure 9, M2 is a binary image memory, B2 is a binary image processing circuit, and B2 is a data bus dedicated to binary images. The other configurations are the same as those in Figure 7. The image memory M1 and processing circuit P1 for multi-level images, and the image memory M2 and processing circuit P2 for binary images can both be expanded as needed. In addition, there is a data bus B2 dedicated to binary images.
You can increase the number of units as needed, rather than just using one.
次に、本発明の画像処理装置における画像データの流れ
について説明する。Next, the image data flow in the image processing apparatus of the present invention will be described.
まず、最初、画像データが画像入力回路2によって多値
画像として取り込まれ、多値画像用データバスB1に出
力される。データバスB1上の多値画像は多値画像メモ
リM1へ入力され蓄積される。First, image data is captured as a multi-level image by the image input circuit 2 and output to the multi-level image data bus B1. The multi-level image on the data bus B1 is input to the multi-level image memory M1 and stored.
場合によっては、データバスB1上の多値画像は多値画
像処理回路P1に直接入力されて処理を施されてもよく
、また画像出力回路3に直接入力されて、外部出力され
てもよい。In some cases, the multi-level image on the data bus B1 may be directly input to the multi-level image processing circuit P1 for processing, or it may be directly input to the image output circuit 3 and output externally.
多値画像メモリM1に格納された多値画像は、処理時に
は、再び、多値画像用データバスB1に出力され、多値
画像処理回路P1に入力される。The multi-level image stored in the multi-level image memory M1 is output again to the multi-level image data bus B1 during processing and input to the multi-level image processing circuit P1.
処理回路P1では、入力された多値画像に対して演算処
理が施されるが、処理出力としては、多値画像が出力さ
れる場合と2値画像が出力される場合がある。多値画像
が出力される場合には、多値画像用データバスB1に出
力され、2値画像が出力される場合には、2値画像用デ
ータバスB2に出力される。処理回路P1からデータバ
スB1又はB2上に出力されたデータは、多値画像であ
れば多値画像メモリM1に、2値画像であれば2値画像
メモリM2に格納される。The processing circuit P1 performs arithmetic processing on the input multi-level image, but the output may be either a multi-level image or a binary image. If a multi-level image is output, it is output to the multi-level image data bus B1, and if a binary image is output, it is output to the binary image data bus B2. The data output from the processing circuit P1 onto data bus B1 or B2 is stored in the multi-level image memory M1 if it is a multi-level image, or in the binary image memory M2 if it is a binary image.
2値画像に対する演算処理は、2値画像メモリM2から
2値画像用データバスB2に2値画像が読出され、デー
タバスB2上の2値画像が2値画像処理回路P2に入力
されることにより実現される。処理結果として得られる
2値画像も再び2値画像用データバスB2に出力される
。複数の2値画像間の処理を行う場合には、2値画像メ
モリM2が複数用意されており、処理回路P2に対して
入出力される2値画像の枚数骨の本数の2値画像用デー
タバスB2が用意されておればよい、この時、処理され
る2値画像源は、2値画像メモリM2の読出しデータに
限らず、多値画像処理回路P1からの2値画像出力であ
ってもよく、また別の2値画像処理回路(図示せず)の
処理出力であってもよい。The arithmetic processing on binary images is performed by reading the binary image from the binary image memory M2 to the binary image data bus B2, and inputting the binary image on the data bus B2 to the binary image processing circuit P2. The binary image obtained as a result of the processing is also output back to the binary image data bus B2. When processing multiple binary images, multiple binary image memories M2 are provided, and there are binary image data buses B2 corresponding to the number of binary images to be input and output to the processing circuit P2. In this case, the binary image source to be processed is not limited to data read from the binary image memory M2, but may also be a binary image output from a multi-level image processing circuit P1, or the processing output of another binary image processing circuit (not shown).
第2図は、本発明における多値画像処理回路とその周辺
回路の接続関係を示すブロック図である。Figure 2 is a block diagram showing the connection relationships between the multi-level image processing circuit and its peripheral circuits in the present invention.
図中、第8図の回路と同一の機能を有する部分には同一
の符号を付して重複する説明は省略する。In the diagram, parts having the same function as those in the circuit of Figure 8 are denoted by the same reference numerals, and redundant explanations are omitted.
ここでは、第8図における処理回路P1に付帯する2値
画像メモリMpが省略され、その代わり新設された2値
画像用のデータバスB2(82a〜B2n)から入力さ
れる2値画像中の1つを選択し、ファンクションセレク
タFSに与えるための2値画像入力回路20と、処理回
路P1が生成する2値画像を所定の2値画像用データバ
スB2に出力するための2値画像出力回路30が、第8
図従来例に対して追加されている。これらの追加と変更
によって、ファンクションの切り換えが、2値画像用の
データバスB2上の一般的な2値画像によつて行えるよ
うになり、また、処理回路P1の出力する2値画像も2
値画像用のデータバスB2へ出力可能となり、多目的に
利用できるようになった。Here, the binary image memory Mp attached to the processing circuit P1 in Figure 8 is omitted, and instead, a binary image input circuit 20 is provided to select one of the binary images input from the newly established binary image data bus B2 (82a to B2n) and provide it to the function selector FS, and a binary image output circuit 30 is provided to output the binary image generated by the processing circuit P1 to a predetermined binary image data bus B2, in Figure 8.
The figure shows additions compared to the conventional example. These additions and changes allow function switching to be performed using a general binary image on the binary image data bus B2, and the binary image output by the processing circuit P1 is also 2
It is now possible to output to data bus B2 for numerical images, making it usable for a wider range of purposes.
第3図は、本発明で利用される2値画像処理回路とその
周辺回路の接続関係を示すブロック図である0図中、P
2は2つの2値画像入力に対する処理を行う処理回路、
21.22は2値画像用データバスB2上の2値画像よ
りそれぞれ1つを選択し、処理回路P2に2つの被処理
2値画像を与えるための2値画像入力回路、30は処理
回路P2の2値画像出力を所定の2値画像用データバス
B2へ出力するための2値画像出力回路である。Figure 3 is a block diagram showing the connection relationships between the binary image processing circuit and its peripheral circuits used in the present invention. In Figure 0, P
2 is a processing circuit that performs processing on two binary image inputs.
21.22 is a binary image input circuit for selecting one binary image from each of the binary images on the binary image data bus B2 and providing the two binary images to be processed to the processing circuit P2, and 30 is a binary image output circuit for outputting the binary image output of the processing circuit P2 to a predetermined binary image data bus B2.
次に、以上に説明した多値画像処理回路P1と2値画像
処理回路P2の具体的な動作状態を図によって説明する
。Next, the specific operating states of the multi-level image processing circuit P1 and the binary image processing circuit P2 described above will be explained with reference to a diagram.
第4図は、多値画像処理回路P1と2値画像メモリM2
a、M2bとの基本的な接続関係を示している。2値画
像メモリM2aの読出しデータが2値画像用データバス
82aを経由し、多値画像処理回路P1のファンクショ
ンセレクト入力へ与えられる。正確には多値画像処理回
路Pl内の2値画像入力回路で2値画像用データバスB
2から1つのデータバスB2aが選択され1選択された
2値画像が多値画像処理回路Pl内のファンクションセ
レクタに与えられるの′である。処理回路P1へは、同
時に多値画像用データバスBla及びBlbより2系統
の多値画像が入力される。この例では、データバスB2
aより入力される2値画像に従って、データバスBla
、Bibから入力される多値画像に対して2種類の演算
処理が画素単位に切り換えて実行され、処理結果として
2値画像が2値画像用データバスB2bへ出力される。Figure 4 shows the multi-level image processing circuit P1 and the binary image memory M2.
a. This shows the basic connection relationship with M2b. Data read from the binary image memory M2a is provided to the function select input of the multi-level image processing circuit P1 via the binary image data bus 82a. More precisely, the binary image input circuit within the multi-level image processing circuit Pl uses the binary image data bus B
One data bus B2a is selected from the two, and the selected binary image is provided to the function selector in the multi-level image processing circuit Pl. Simultaneously, two sets of multi-level images are input to the processing circuit P1 from the multi-level image data buses Bla and Blb. In this example, data bus B2
According to the binary image input from a, the data bus Bla
Two types of arithmetic operations are performed on the multi-level image input from Bib, switching between them on a pixel-by-pixel basis. As a result of the processing, a binary image is output to the binary image data bus B2b.
データバスl32b上の2値画像は、2値画像メモリM
2bに書き込まれる。以上のように、本発明によれば、
多値画像処理回路P1の2値画像入出力は、従来のよう
な処理回路P1に付帯して配置された2値画像メモリM
11ではなく、汎用的に利用される2値画像メモリM
2a、M2bを対象として実行可能となった。The binary image on data bus l32b is stored in binary image memory M
It is written to 2b. As described above, according to the present invention,
The binary image input/output of the multi-level image processing circuit P1 is handled by a binary image memory M, which is arranged in conjunction with the processing circuit P1 as in the conventional method.
Not 11, but a general-purpose binary image memory M
It became executable for targets 2a and M2b.
第5図は2つの多値画像処理回路Pla、Plbが2値
画像用のデータバス82aによって結合されている状態
を示している。第1の処理回路Plaは多値画像用デー
タバスB1のうち、図示されていないチャネルより多値
画像を得て、その入力データに対して何等かの処理を施
し、結果として得られる2値画像を2値画像用データバ
ス82aに出力する。第2の処理回路Plbは多値画像
用データバスB1のうち2つのデータバスBla、Bi
bより2系統の多値画像を得て、演算処理を施すが、そ
のとき、同時に、第1の処理回路Plaが出力している
2値画像を2値画像用データバスB2aより得て、入力
した2値画像により2種の演算機能を画素単位に切り換
えている。第2の処理回路Plbによる多値画像の処理
結果は、多値画像用のデータバスBlcに出力されてい
る。以上のように、本発明によれば、多値画像処理回路
P1の演算機能切り換え用の2値画像を2値画像メモリ
より得るだけでなく、他の処理回路が出力する2値画像
を利用して切り換えることもできる。ここで、重要な点
は、付帯的な2値画像メモリMpを利用する場合では、
利用する2値画像が予め設定された、固定的なデータで
あるのに対し、第1の処理回路が出力する2値画像を第
2の処理回路が利用する場合では、利用する2値画像が
進行中の処理と同時刻に並列的に得られるデータである
という点である。つまり、従来複数フレームを必要とし
ていた処理であっても、本発明によって実時間で実行で
きる可能性が広がったと言える0例えば、第5図の構成
において、前述の最大値処理を行う場合には、第1の処
理回路P1で各画素毎にボローデータを得て、そのボロ
ーデータに基づいて、第2の処理回路P2で2枚の画像
データを画素単位で切り換えるようにすれば、従来、2
フレームを必要としていた最大値処理を1フレームで実
行できる。Figure 5 shows two multi-level image processing circuits, Pla and Plb, connected by a binary image data bus 82a. The first processing circuit Pla obtains a multi-level image from a channel (not shown) of the multi-level image data bus B1, performs some processing on the input data, and outputs the resulting binary image to the binary image data bus 82a. The second processing circuit Plb uses two data buses Bla and Bi of the multi-level image data bus B1.
Two sets of multi-level images are obtained from b and processed using arithmetic operations. At the same time, the binary image output by the first processing circuit Pla is obtained from the binary image data bus B2a, and the two types of arithmetic functions are switched on a pixel-by-pixel basis based on the input binary image. The processing result of the multi-level image by the second processing circuit Plb is output to the multi-level image data bus Blc. As described above, according to the present invention, not only is the binary image for switching the arithmetic functions of the multi-level image processing circuit P1 obtained from the binary image memory, but it is also possible to switch using binary images output by other processing circuits. Here, the important point is that when using the auxiliary binary image memory Mp,
The difference is that while the binary image used is pre-set, fixed data, when the second processing circuit uses the binary image output by the first processing circuit, the binary image used is data obtained in parallel at the same time as the ongoing processing. In other words, even processes that conventionally required multiple frames can now potentially be executed in real time thanks to the present invention. For example, in the configuration shown in Figure 5, when performing the maximum value processing described above, the first processing circuit P1 obtains borrow data for each pixel, and based on that borrow data, the second processing circuit P2 switches between the two image data on a pixel-by-pixel basis, whereas conventionally, 2
Maximum value processing, which previously required multiple frames, can now be performed in a single frame.
以上の説明の中では、第1の処理回路として多値画像処
理回路を用いているが、これは2値画像処理回路に置き
換えが可能であることは言うまでもない。In the above explanation, a multi-level image processing circuit is used as the first processing circuit, but it goes without saying that this can be replaced with a binary image processing circuit.
第6図は、2値画像処理回路P2に入力される2値画像
として多値画像処理回路P1により生成される2値画像
を利用する場合の接続状態を示している。多値画像処理
回路P1は多値画像用データバスB1のうちの2つのデ
ータバスBla、Bibより2系統の多値画像を得て、
何等かの2値化処理を施し、その処理結果を2値画像用
データバスB2bに出力する。一方、2値画像メモリM
2は予め格納されていた2値画像を読み出し、2値画像
用データバスB2aに出力する。2値画像用の処理回路
P2は、2値画像メモリM2と多値画像処理回路P1が
出力する2つの2値画像をそれぞれ2値画像用データバ
スB 2a、B 2bより得て、何等かの2値画像処理
を施し、結果として得られる2値画像を2値画像用デー
タバスB2cに出力する。なお、第6図においては、デ
ータバスB2c上の2値画像データの受は取り先が図示
されていないが、別の2値画像メモリであっても良いし
、多値画像用または2値画像用の別の処理回路に入力さ
れていても良い。Figure 6 shows the connection state when a binary image generated by the multi-level image processing circuit P1 is used as the binary image input to the binary image processing circuit P2. The multi-level image processing circuit P1 obtains two sets of multi-level images from two data buses Bla and Bib of the multi-level image data bus B1.
Some kind of binarization process is applied, and the result is output to the binary image data bus B2b. Meanwhile, the binary image memory M
2 reads a pre-stored binary image and outputs it to the binary image data bus B2a. The binary image processing circuit P2 obtains the two binary images output by the binary image memory M2 and the multi-level image processing circuit P1 from the binary image data buses B2a and B2b, respectively, performs some binary image processing, and outputs the resulting binary image to the binary image data bus B2c. In Figure 6, the destination of the binary image data on data bus B2c is not shown, but it may be another binary image memory, or it may be input to another processing circuit for multi-level or binary images.
このように、本発明によれば、従来、2値画像メモリの
読出データだけが対象だった2値画像処理の被処理デー
タとして、他の処理回路が出力する2値画像をも利用す
ることが可能となる。Thus, according to the present invention, in addition to the data read from a binary image memory that was conventionally used for binary image processing, it becomes possible to also use binary images output by other processing circuits as the data to be processed.
以上、本発明によって可能となった、各回路の新しい接
続関係を図によって示したが、説明した新しい接続関係
及び従来より可能だった接続関係などを複合したより複
雑な接続が可能であることは言うまでもない。The new connection relationships of each circuit made possible by the present invention are shown in the diagrams above. Needless to say, more complex connections are possible by combining the new connection relationships described and the conventional connection relationships.
なお、以上の説明では用いなかったが、2値画像を入力
し、多値画像を出力するタイプの処理回路を、本発明の
画像処理装置に組み込んで、使用することも可能である
。このタイプの処理としては、例えば、複数の孤立物体
を含む2値画像に対して、画像中の各物体に番号付けを
行い、その番号データを多値画像の画素値として出力す
るラベル付は処理や、2値画像データに対して複数のパ
ターンマツチングを行い、それぞれのパターンに合致し
た画素に対してパターンに対応したコードを割り当てて
、そのコードを多値画像の画素値として出力する形状ヒ
ストグラム処理などがある。Although not used in the above explanation, it is also possible to incorporate and use a processing circuit of the type that takes a binary image as input and outputs a multi-level image in the image processing device of the present invention. Examples of this type of processing include labeling, which assigns a number to each object in a binary image containing multiple isolated objects and outputs the number data as the pixel value of the multi-level image, and shape histogram processing, which performs multiple pattern matching on binary image data, assigns a code corresponding to each pattern to the pixels that match each pattern, and outputs the code as the pixel value of the multi-level image.
(発明の効果)
本発明にあっては、上述のように、多値画像を転送する
ためのデータバスに加えて、2値画像を転送するための
データバスを設け、第1の処理回路の生成する2値画像
を、この2値画像用のデータバスへ出力可能とし、かつ
、2値画像用データバス上の2値画像を第2の処理回路
の処理機能切換のための2値画像として利用可能とした
ので、第1の処理回路の生成する2値画像で第2の処理
回路を直接制御することが可能となり、多値画像と2値
画像を共に用いる処理の可能性が飛躍的に増大するとい
う効果があり、また、各処理回路にそれぞれ2値画像メ
モリを付属させる必要がないので、2値画像メモリや処
理回路の増設を自由に行うことができるという効果があ
る。(Effects of the Invention) In the present invention, as described above, in addition to a data bus for transferring multi-level images, a data bus for transferring binary images is provided, and the binary images generated by the first processing circuit can be output to this binary image data bus. Furthermore, the binary images on the binary image data bus can be used as binary images for switching the processing function of the second processing circuit. As a result, it becomes possible to directly control the second processing circuit with the binary images generated by the first processing circuit, which dramatically increases the possibility of processing using both multi-level and binary images. In addition, since it is not necessary to attach a binary image memory to each processing circuit, it is possible to freely add binary image memories and processing circuits.
第1図は本発明によるディジタル画像処理装置の全体構
成を示すブロック図、第2図は同上に用いる多値画像処
理回路とその周辺回路の接続関係を示すブロック図、第
3図は同上に用いる2値画像処理回路とその周辺回路の
接続関係を示すブロック図、第4図乃至第6図は本発明
によって可能となった処理回路と2値画像メモリの新し
い接続関係を示すブロック図、第7図は従来のディジタ
ル画像処理装置の全体構成を示すブロック図、第8図は
同上に用いる処理回路とその周辺回路の接続関係を示す
ブロック図である。
1はホストCPU、2は画像入力回路、3は画像出力回
路、Mlは多値画像メモリ、Plは多値画像処理回路、
M2は2値画像メモリ、B2は2値画像処理回路、BO
はホストCPUバス、B1は多値画像用データバス、B
2は2値画像用データバスである。
Figure 1 is a block diagram showing the overall configuration of the digital image processing apparatus according to the present invention, Figure 2 is a block diagram showing the connection relationship between the multi-level image processing circuit and its peripheral circuits used therein, Figure 3 is a block diagram showing the connection relationship between the binary image processing circuit and its peripheral circuits used therein, Figures 4 to 6 are block diagrams showing the new connection relationship between the processing circuit and the binary image memory made possible by the present invention, Figure 7 is a block diagram showing the overall configuration of a conventional digital image processing apparatus, and Figure 8 is a block diagram showing the connection relationship between the processing circuit and its peripheral circuits used therein. 1 is the host CPU, 2 is the image input circuit, 3 is the image output circuit, Ml is the multi-level image memory, Pl is the multi-level image processing circuit.
M2 is a binary image memory, B2 is a binary image processing circuit, BO
B1 is the host CPU bus, B1 is the data bus for multi-level images, B
2 is the data bus for binary images.
Claims (4)
、画像データを記憶するための画像メモリと、画像デー
タに対して処理を施すための処理回路と、前記各ハード
ウェアを制御するための制御手段と、前記各ハードウェ
ア間で画像データを転送するための画像データバスとを
備えて成る画像処理装置において、前記データバスは、
1画素につき複数ビットの情報量を持つ多値画像のデー
タを転送するための多値画像用データバスと、1画素に
つき1ビットの情報量を持つ2値両像のデータを転送す
るための2値画像用データバスとを別々に含み、前記処
理回路は、前記2値画像用データバスに2値画像の画像
データを処理結果として出力可能な第1の処理回路と、
前記2値画像用データバス上の2値画像によって処理機
能を画素単位に切換可能な第2の処理回路とを含むこと
を特徴とするディジタル画像処理装置。(1) An image processing apparatus comprising an image input/output circuit for inputting and outputting image data, an image memory for storing image data, a processing circuit for processing image data, control means for controlling each of the hardware components, and an image data bus for transferring image data between the hardware components, wherein the data bus is:
The processing circuit includes separately a multi-level image data bus for transferring multi-level image data having multiple bits of information per pixel, and a binary image data bus for transferring binary image data having one bit of information per pixel, and the processing circuit includes a first processing circuit capable of outputting binary image image data as a processing result to the binary image data bus,
A digital image processing apparatus characterized by including a second processing circuit capable of switching processing functions on a pixel-by-pixel basis based on a binary image on the aforementioned binary image data bus.
能であることを特徴とする特許請求の範囲第1項記載の
ディジタル画像処理装置。(2) The digital image processing apparatus according to claim 1, characterized in that the first processing circuit and the second processing circuit can operate simultaneously.
された多値画像メモリと、2値画像用データバスに接続
された2値画像メモリとを別々に含み、前記制御手段は
、第1の処理回路の処理結果としての2値画像を前記2
値画像メモリに格納する第1の制御と、前記2値画像メ
モリに格納された2値画像によって処理機能を切り換え
ながら第2の処理回路を動作させる第2の制御とを実行
可能であることを特徴とする特許請求の範囲第1項記載
のディジタル画像処理装置。(3) The image memory separately includes a multi-level image memory connected to a data bus for multi-level images and a binary image memory connected to a data bus for binary images, and the control means controls the binary image as the processing result of the first processing circuit to the two
A digital image processing apparatus according to claim 1, characterized in that it is capable of performing a first control that stores a binary image in a binary image memory, and a second control that operates a second processing circuit while switching processing functions based on the binary image stored in the binary image memory.
路であることを特徴とする特許請求の範囲第3項記載の
ディジタル画像処理装置。(4) The digital image processing apparatus according to claim 3, characterized in that the first processing circuit and the second processing circuit are the same processing circuit.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22810087A JPS6470880A (en) | 1987-09-10 | 1987-09-10 | Digital image processor |
| US07/726,169 US5157739A (en) | 1987-09-10 | 1991-07-02 | Digital image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22810087A JPS6470880A (en) | 1987-09-10 | 1987-09-10 | Digital image processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6470880A true JPS6470880A (en) | 1989-03-16 |
Family
ID=16871193
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP22810087A Pending JPS6470880A (en) | 1987-09-10 | 1987-09-10 | Digital image processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6470880A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1754809A2 (en) | 2000-03-03 | 2007-02-21 | Schott AG | Large volume oriented single crystals with a homogeneous refractive index and low stress related birefringence |
| US7206869B2 (en) | 1999-01-25 | 2007-04-17 | Canon Kabushiki Kaisha | Input/output control apparatus |
-
1987
- 1987-09-10 JP JP22810087A patent/JPS6470880A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7206869B2 (en) | 1999-01-25 | 2007-04-17 | Canon Kabushiki Kaisha | Input/output control apparatus |
| EP1754809A2 (en) | 2000-03-03 | 2007-02-21 | Schott AG | Large volume oriented single crystals with a homogeneous refractive index and low stress related birefringence |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5657403A (en) | Vision coprocessing | |
| US7191310B2 (en) | Parallel processor and image processing apparatus adapted for nonlinear processing through selection via processor element numbers | |
| US6195738B1 (en) | Combined associative processor and random access memory architecture | |
| US4941107A (en) | Image data processing apparatus | |
| JP2017027314A (en) | Parallel computing device, image processing device, and parallel computing method | |
| JPH081612B2 (en) | Memory circuit | |
| US20070057961A1 (en) | Data transfer apparatus | |
| JPS6470879A (en) | Digital image processor | |
| US20010027513A1 (en) | Parallel processor and image processing system using the processor | |
| JP2812292B2 (en) | Image processing device | |
| US4807297A (en) | Neighbor image processing device | |
| JPH0435792B2 (en) | ||
| JPS586977B2 (en) | addressing circuit | |
| US6489967B1 (en) | Image formation apparatus and image formation method | |
| EP0201261A2 (en) | Processor for performing logical operations on picture element data bytes | |
| JPH06180566A (en) | Drawing controller | |
| JPH0346833B2 (en) | ||
| JPS6382530A (en) | Semiconductor storage device | |
| KR20190055693A (en) | Image processing device for image resolution conversion | |
| JPH07191955A (en) | Data-driven information processing device | |
| US20060092166A1 (en) | Image drawing apparatus | |
| JP2001202351A (en) | SIMD type processor | |
| JP3671744B2 (en) | Image composition display device | |
| JP3019906B2 (en) | Image processing device | |
| JPH01302475A (en) | Labeling system for image data |