JPH02270080A - Picture data processor - Google Patents
Picture data processorInfo
- Publication number
- JPH02270080A JPH02270080A JP9072689A JP9072689A JPH02270080A JP H02270080 A JPH02270080 A JP H02270080A JP 9072689 A JP9072689 A JP 9072689A JP 9072689 A JP9072689 A JP 9072689A JP H02270080 A JPH02270080 A JP H02270080A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- image data
- data
- display
- processing
- 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
- Image Processing (AREA)
- Digital Computer Display Output (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、原画像メモリより原画像データを読み出し、
ノーマライズ処理を行ってディスプレイメモリにノーマ
ライズを転送する画像データ処理装置に関するものであ
る。[Detailed Description of the Invention] [Industrial Application Field] The present invention reads original image data from an original image memory,
The present invention relates to an image data processing device that performs normalization processing and transfers the normalized data to a display memory.
例えば16ビツトのCPUを用いた画像データ処理装置
において、処理の対象となる画像データ(画素の濃度値
)の階調は、0〜32767 (正の整数のみ考えた場
合)までである。しかし、画像データを表示するTVモ
ニタなどのデイスプレィ装置の表示可能階調数はそれよ
りかなり低く。For example, in an image data processing apparatus using a 16-bit CPU, the gradations of image data (density values of pixels) to be processed range from 0 to 32767 (when only positive integers are considered). However, the number of gradations that can be displayed by a display device such as a TV monitor that displays image data is considerably lower than that.
例えば0〜255までである。そこで画像データを、上
記32768階調から256階調に変換しなければなら
ず、画像データのノーマライズ処理が行われる。For example, from 0 to 255. Therefore, the image data must be converted from the above 32,768 gradations to 256 gradations, and the image data is subjected to normalization processing.
従来の画像データ処理装置、例えば核医学装置の画像デ
ータ処理装置における上記ノーマライズ処理は、次のよ
うに行われていた。すなわち第2図において、CPUI
は、原画像メモリ、ここではCPUメモリ2より画像デ
ータ(M画像データ)を1画素分ずつ読み出し、大小比
較プログラムにより画像データの最大値、最小値を求め
た後、再びCPUメモリ2より画像データを1画素分ず
つ読み出し、先に求めておいた画像データの最大値から
最小値を差し引いた値を除数として、除算。The normalization process in a conventional image data processing apparatus, for example, an image data processing apparatus for a nuclear medicine apparatus, is performed as follows. In other words, in Figure 2, CPUI
reads the image data (M image data) pixel by pixel from the original image memory, here CPU memory 2, calculates the maximum and minimum values of the image data using a size comparison program, and then reads the image data from the CPU memory 2 again. Read out one pixel at a time, and divide by using the value obtained by subtracting the minimum value from the maximum value of the image data found earlier as the divisor.
乗算プログラムによりノーマライズ処理する。そして、
ノーマライズデータ(処理後データ)をCPUメモリ2
に書き込み終了後、そのCPUメモリ2のノーマライズ
データが、ディスプレイメモリ3に転送され、デイスプ
レィ装置4で画像表示する。Normalize processing is performed using a multiplication program. and,
Normalize data (post-processed data) to CPU memory 2
After writing is completed, the normalized data in the CPU memory 2 is transferred to the display memory 3 and displayed as an image on the display device 4.
C発明が解決しようとする課題〕
このような従来装置では、ノーマライズ処理を行う際、
上述したようにディスプレイメモリ3に。Problems to be solved by invention C] In such a conventional device, when performing normalization processing,
to display memory 3 as described above.
実際にデータを転送する以前に、CPUメモリ2からC
PUIへの画像データの読み出しが2回(大小比較プロ
グラム実行時及び除算2乗算プログラム実行時の2回)
と、CPUIからCPUメモリ2への書き込みが1回あ
る。このため、ノーマライズ処理を開始してから、ディ
スプレイメモリ4ヘノーマライズデータを書込終了する
までに多大な時間を要し、特に、画像データ計測後、即
時画像表示したい場合であっても、待ち時間を必要とし
、診断が円滑に行われないという問題点があった。Before actually transferring data, C
Image data is read to PUI twice (twice when executing the size comparison program and twice when executing the division 2 multiplication program)
There is one write from the CPU I to the CPU memory 2. For this reason, it takes a long time from the start of the normalization process to the end of writing the normalization data to the display memory 4. Especially, even if you want to display the image immediately after measuring the image data, there is a long waiting time. There was a problem in that diagnosis was not carried out smoothly.
本発明の目的は、ノーマライズ処理開始からディスプレ
イメモリへのノーマライズデータ書込終了までのデータ
処理を高速化し、特に、画像データ計測後、即時画像表
示したい場合に待ち時間を必要せず1診断の円滑化を図
ることのできる画像データ処理装置を提供することにあ
る。The purpose of the present invention is to speed up data processing from the start of normalization processing to the end of writing normalized data to display memory, and in particular, to facilitate one diagnosis without the need for waiting time when it is desired to immediately display an image after measuring image data. It is an object of the present invention to provide an image data processing device that can achieve a
上記目的は、原画像メモリより原画像データを読み出し
、ノーマライズ処理を行ってディスプレイメモリにノー
マライズデータを転送する画像データ処理装置において
、前記原画像メモリより読み出した原画像データの前記
ディスプレイメモリへの転送中にノーマライズ処理を行
うノーマライズ処理回路を設けることにより達成される
。The above purpose is to transfer the original image data read from the original image memory to the display memory in an image data processing device that reads original image data from the original image memory, performs normalization processing, and transfers the normalized data to the display memory. This is achieved by providing a normalization processing circuit therein for performing normalization processing.
ノーマライズ処理回路は、原画像メモリより読み出した
原画像データのディスプレイメモリへの転送中にノーマ
ライズ処理を行う。すなわち本発明は、ノーマライズ処
理を、ノーマライズ処理回路なるハードウェアで、原画
像データのディスプレイメモリへの転送中に行うもので
ある。これにより、原画像メモリからCPUへの画像デ
ータの読み出しが、画像データの最大値、最小値を求め
るときの1回で済み、また原画像メモリにノーマライズ
データを書き込む必要がなく、さらにノーマライズの乗
算処理をプログラムを介さずに行え、したがって、より
高速にデータ処理でき、特に、画像データ計測後、即時
画像表示したい場合に待ち時間を必要とせず、診断の円
滑化を図ることが可能となる。The normalization processing circuit performs normalization processing while transferring the original image data read from the original image memory to the display memory. That is, in the present invention, normalization processing is performed by hardware called a normalization processing circuit while the original image data is being transferred to the display memory. This allows the image data to be read from the original image memory to the CPU only once when determining the maximum and minimum values of the image data, and there is no need to write normalized data to the original image memory. Processing can be performed without using a program, so data can be processed at a higher speed, and especially when it is desired to immediately display an image after measuring image data, no waiting time is required, making it possible to facilitate diagnosis.
以下、図面を参照して、本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to the drawings.
第1図は、本発明によるデータ処理装置の一実施例を示
すブロック図で、図中5〜7はレジスタである。8はノ
ーマライズ処理回路で、ここでは減算器8a、乗算器8
b、8c及びシフタ8dからなる。なお、1〜4は第2
図と同様である。この場合、CPUIとしては16ビツ
トCPUが用いられ、また、ノーマライズ処理の対象と
なる画像データ(画素の濃度値)の階調は0〜3276
7の32768まであるものとする。FIG. 1 is a block diagram showing an embodiment of a data processing device according to the present invention, and numerals 5 to 7 in the figure are registers. 8 is a normalization processing circuit, which includes a subtracter 8a and a multiplier 8.
8c and a shifter 8d. In addition, 1 to 4 are the second
It is similar to the figure. In this case, a 16-bit CPU is used as the CPU, and the gradations of the image data (density values of pixels) to be normalized are 0 to 3276.
It is assumed that there are up to 32768 of 7.
次に、動作について説明する。Next, the operation will be explained.
まずCPUIは、ノーマライズ処理の対象となる画像デ
ータ(原画像データ)をCPUメモリ2より1画素分ず
つ読み込み、その際、大小比較により画像データの値(
濃度値)の最大値及び最小値を求める。CPUIは、最
小値をレジスタ5に格納し、また、階調の最大値である
32767を(最大値−最小値)で除去した結果(32
767÷(最大値−最小値))をレジスタ6に格納し、
さらに、任意に設定、されたノーマライズ処理後の階調
の最大値(0〜255の256階調のときは255)を
レジスタ7に格納する。First, the CPU reads the image data to be normalized (original image data) from the CPU memory 2 pixel by pixel, and at that time, compares the values of the image data (
Find the maximum and minimum values of the concentration values. The CPUI stores the minimum value in register 5 and also removes the maximum value of gradation, 32767, by (maximum value - minimum value), resulting in (32
767÷(maximum value - minimum value)) is stored in register 6,
Further, the arbitrarily set maximum value of the gradation after normalization processing (255 in the case of 256 gradations from 0 to 255) is stored in the register 7.
以上のように各レジスタに数値が格納されると、CPU
メモリ2よりディスプレイメモリ3へ1画素分ずつの画
像データを転送する。When numerical values are stored in each register as described above, the CPU
Image data for one pixel is transferred from the memory 2 to the display memory 3.
この間、各画像データ(原画像データDi)について、
まずノーマライズ処理回路8の初段を構成する減算器8
aにおいて、その原画像データD1の値から前記最小値
が減算される。次に乗算器8bにおいて、〔減算器8a
による減算値〕×〔レジスタ6の格納値)((3276
7÷(最大値−最小値)))が算出され、その乗算値と
、任意に設定されたノーマライズ処理後の階調の最大値
との積が乗算器8cで算出される。そしてその乗算値が
、ノーマライズ処理回路8の最終段を構成するシフタ8
dで15ビツトシフトされ、シフタ8dによるシフト結
果値がノーマライズデータ(ノーマライズ処理後データ
)としてディスプレイメモリ6に記憶される。During this time, for each image data (original image data Di),
First, the subtracter 8 that constitutes the first stage of the normalization processing circuit 8
At a, the minimum value is subtracted from the value of the original image data D1. Next, in the multiplier 8b, [subtracter 8a
subtracted value] × [value stored in register 6) ((3276
7÷(maximum value-minimum value))) is calculated, and the multiplier 8c calculates the product of the multiplied value and the arbitrarily set maximum value of the gradation after normalization processing. The multiplied value is sent to the shifter 8 that constitutes the final stage of the normalization processing circuit 8.
d by 15 bits, and the shift result value by the shifter 8d is stored in the display memory 6 as normalized data (data after normalization processing).
これらの処理が1画像の全ての画像データ(画素)につ
いて行われることにより、ノーマライズ処理された画像
がデイスプレィ装置4で表示される。By performing these processes on all image data (pixels) of one image, a normalized image is displayed on the display device 4.
なお、減算器8aの出力値(原画像データD1の値−最
小値)を(最大値−最小値)で除算するときに、16ビ
ツトデータで扱える階調の最大値である32767 (
0〜32767の32768階調の場合であり、レジス
タ6の図示格納値の分子の数値を指す)を乗算するのは
、次の理由による。すなわち、ここでの除算処理におい
て、となる場合があり、こめ場合、除算結果は全てOに
なってしまい、原画像データD1全体のデータ値幅での
ノーマライズ処理が不可能となる。これを避けるため、
(原画像データD1の値−最小値)に、16ビツトデー
タで扱える階調の最大値である32767 (0〜32
767の32768階調の場合)を乗算すればよいから
である。Note that when dividing the output value of the subtractor 8a (value of original image data D1 - minimum value) by (maximum value - minimum value), 32767 (
This is the case for 32768 gradations from 0 to 32767, and the reason for multiplying by the numerator value of the illustrated stored value of register 6 is as follows. That is, in the division process here, there is a case where the following is true. In this case, all the division results become O, and the normalization process within the data value range of the entire original image data D1 becomes impossible. To avoid this,
(value of original image data D1 - minimum value) is 32767 (0 to 32
This is because it is only necessary to multiply by (in the case of 32768 gradations of 767).
また、シフタ8dで15ビツトシフトするのは。Also, shifter 8d shifts 15 bits.
次の理由による。すなわち、上述した理由で32767
の乗算処理をしたため、演算の最終段において3276
7で除算する必要があるが、ハードロジックでこの除算
回路を構成するのは難しい。そこで、32767に1を
加えただけの32768という2のべき乗の数値で除算
することにより、除算回路を構成せずにシフト回路(シ
゛フタ8d)のみで、32767で除算した値と
ほぼ同等の値が得られるからである。Due to the following reasons. That is, 32767 for the reasons mentioned above.
Because of the multiplication process, 3276
It is necessary to divide by 7, but it is difficult to configure this division circuit using hard logic. Therefore, by dividing by 32768, which is just 1 added to 32767, which is a power of 2, the value obtained by dividing by 32767 can be obtained using only a shift circuit (shifter 8d) without configuring a division circuit. This is because the value can be obtained.
上述実施例によれば、ハードロジックでノーマライズ処
理におけり除算2乗算を可能としたので、原画像メモリ
2からディスプレイメモリ3への画像データの転送中に
ノーマライズ処理が行え、従来装置に比べてデータ処理
(ノーマライズ処理開始からディスプレイメモリへのノ
ーマライズデータ書込終了までのデータ処理)が高速化
する。また、CPUIとCPUメモリ2間の画像データ
転送回数を減らす(従来装置では2回、上述実施例では
1回)ことでも、データ処理が高速化する。According to the above-mentioned embodiment, since division and squaring are enabled in the normalization process using hard logic, the normalization process can be performed during the transfer of image data from the original image memory 2 to the display memory 3, which is faster than conventional devices. Data processing (data processing from the start of normalization processing to the end of writing normalization data to the display memory) becomes faster. Data processing can also be speeded up by reducing the number of times image data is transferred between the CPU I and the CPU memory 2 (two times in the conventional device, once in the above embodiment).
なお上述実施例では、ノーマライズ処理回路8は、減算
器8a、乗算器8b、8c及びシフタ8dで構成したが
、これのみに限定されないことは勿論である。In the above-mentioned embodiment, the normalization processing circuit 8 is composed of the subtracter 8a, the multipliers 8b and 8c, and the shifter 8d, but it is needless to say that the normalization processing circuit 8 is not limited to this.
以上説明したように本発明によれば、原画像メモリより
読み出した原画像データのディスプレイメモリへの転送
中にノーマライズ処理を行うノーマライズ処理回路を設
けたので、ノーマライズ処理開始からディスプレイメモ
リへのノーマライズデータ書込終了までのデータ処理が
高速化でき、特に、画像データ計測後、即時画像表示し
たい場合に待ち時間を必要とせず、診断の円滑化が図れ
るという効果がある。As explained above, according to the present invention, since a normalization processing circuit is provided that performs normalization processing while the original image data read from the original image memory is transferred to the display memory, normalized data is transferred to the display memory from the start of the normalization processing. Data processing up to the end of writing can be speeded up, and in particular, when it is desired to immediately display an image after measuring image data, no waiting time is required and diagnosis can be made more smoothly.
第1図は本発明装置の一実施例を示したブロック図、第
2図は従来装置のブロック図である。
1・・・CPU、2・・・原画像メモリ、3・・・ディ
スプレイメモリ、4・・・デイスプレィ、5〜7・・・
レジスタ。
8・・・ノーマライズ処理回路、8a・・・減算器、8
b。
8c・・・乗算器、8d・・・シフタ。FIG. 1 is a block diagram showing an embodiment of the device of the present invention, and FIG. 2 is a block diagram of a conventional device. 1...CPU, 2...Original image memory, 3...Display memory, 4...Display, 5-7...
register. 8... Normalization processing circuit, 8a... Subtractor, 8
b. 8c...multiplier, 8d...shifter.
Claims (1)
ライズ処理を行つてディスプレイメモリにノーマライズ
データを転送する画像データ処理装置において、前記原
画像メモリより読み出した原画像データの前記デイスプ
レイメモリへの転送中にノーマライズ処理を行うノーマ
ライズ処理回路を具備することを特徴とする画像データ
処理装置。1. In an image data processing device that reads original image data from the original image memory, performs normalization processing, and transfers the normalized data to the display memory, during the transfer of the original image data read from the original image memory to the display memory. An image data processing device comprising a normalization processing circuit that performs normalization processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9072689A JPH02270080A (en) | 1989-04-12 | 1989-04-12 | Picture data processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9072689A JPH02270080A (en) | 1989-04-12 | 1989-04-12 | Picture data processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02270080A true JPH02270080A (en) | 1990-11-05 |
Family
ID=14006560
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9072689A Pending JPH02270080A (en) | 1989-04-12 | 1989-04-12 | Picture data processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02270080A (en) |
-
1989
- 1989-04-12 JP JP9072689A patent/JPH02270080A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4635292A (en) | Image processor | |
| US4985848A (en) | High speed image processing system using separate data processor and address generator | |
| US5146592A (en) | High speed image processing computer with overlapping windows-div | |
| US5129060A (en) | High speed image processing computer | |
| US5896307A (en) | Method for handling an underflow condition in a processor | |
| US20040073591A1 (en) | Hardware extension for accelerating fractional integer division within 3D graphics and MP3 applications | |
| JPH02270080A (en) | Picture data processor | |
| CN116302117A (en) | Data processing method and device, processor, electronic device, storage medium | |
| US5204962A (en) | Processor with preceding operation circuit connected to output of data register | |
| JPH0435792B2 (en) | ||
| JPS62137669A (en) | Picture processor | |
| JPH0620035A (en) | Image data processor | |
| JPS62274426A (en) | Coordinate converting device | |
| KR920008212B1 (en) | Two-dimensional fast fourier transform (FFT) processor using a mixed shuffle connection method (MSCM). | |
| Evans et al. | A 1.2 GIP general purpose digital image processor | |
| CN117372495A (en) | Calculation method for accelerating dot products with different bit widths in digital image processing | |
| CN117391141A (en) | Data processing method, device and computer readable storage medium | |
| JPH02289091A (en) | Image processor | |
| JPH0233672A (en) | Memory circuit and picture processor | |
| JPS60164868A (en) | Fast fourier transforming device | |
| JPS62219078A (en) | Arithmetic and processing device for expanded picture | |
| JPH0268672A (en) | Address generating part for picture processing processor | |
| JPS6373380A (en) | Image processor | |
| Tojo et al. | Image Processing Oriented Multiprocessor System with a Multipurpose Video Processor | |
| JPS6243781A (en) | Image processor |