JPS61248164A - Picture processing device - Google Patents

Picture processing device

Info

Publication number
JPS61248164A
JPS61248164A JP8873685A JP8873685A JPS61248164A JP S61248164 A JPS61248164 A JP S61248164A JP 8873685 A JP8873685 A JP 8873685A JP 8873685 A JP8873685 A JP 8873685A JP S61248164 A JPS61248164 A JP S61248164A
Authority
JP
Japan
Prior art keywords
data
picture
image
delayed
bits
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
JP8873685A
Other languages
Japanese (ja)
Inventor
Kazunori Noso
千典 農宗
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP8873685A priority Critical patent/JPS61248164A/en
Publication of JPS61248164A publication Critical patent/JPS61248164A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To execute the filtering operation and the mask operation with a micro computer at a high speed by reading once the data of plural picture element parts of the small area composed of a certain picture element and an adjoining picture element. CONSTITUTION:A shift register 16 is composed of 514 bits, delays successively the picture data outputted serially from an image pick-up device 10 for 514 picture elements only, and nine bits of data Dn which are not delayed, data Dn+1 which are delayed for one picture element, data Dn+2 which are delayed for two picture elements, data Dn+256 which are delayed for 256 picture elements (one row part) and data Dn+514 which are delayed for 514 picture elements are taken out in parallel and inputted to a picture memory 18. Change- over switches 12 and 14 and a selector 22 are changed over, the address signal is given from a CPU 24 to a picture memory 18 and the data are read. Thus, since the data of nine bits of the small are of 3X3 can be once read by the single time addressing operation, the filtering operation and the mask operation to add the arithmetic logic processing to the picture data of the small area can be executed at a very high speed.

Description

【発明の詳細な説明】 し発明の技術分野] この発明は、コンピュータを用いてデジタル画像を処理
する画像処理装置に関し、特に、デジタル画像にフィル
タリング操作やマスク操作を高能率に行なえるようにす
るための技術に関する。
[Detailed Description of the Invention] Technical Field of the Invention The present invention relates to an image processing device that processes digital images using a computer, and particularly to an image processing device that can perform filtering operations and masking operations on digital images with high efficiency. Regarding technology for

[発明の技術的背景とその問題点1 コンピユ一タ画像処理による基礎的な処理技術としてフ
ィルタリング操作やマスク操作が多用されている。これ
は画像平面における相互に隣接した複数の画素によって
構成される小領域について画像データの演算処理を行な
う操作である。
[Technical background of the invention and its problems 1 Filtering operations and masking operations are frequently used as basic processing techniques in computer image processing. This is an operation for performing arithmetic processing on image data for a small area formed by a plurality of mutually adjacent pixels on the image plane.

−例として、1画素が1ビツトで1画面が256x25
6のマトリクスで構成されるデジタル画像を想定する。
-For example, 1 pixel is 1 bit and 1 screen is 256x25.
Assume a digital image composed of 6 matrices.

この画像データは(256x256)ワード×1ビット
の画像メモリに格納され、コンピュータによって処理さ
れる。ここで一般的な3×3のフィルタリングで膨張処
理を行なうとすると、画像メモリから3×3の小領域の
合計9画素分のデータを読み出し、その9ビツトのデー
タの中に1つでも111 I+があれば処理済みデータ
として“°1″を出力し、9ビツトがすべて“0″のと
きに処理済みデータとして0”を出力する。
This image data is stored in a (256x256) word x 1 bit image memory and processed by a computer. Here, if we perform dilation processing using general 3x3 filtering, we will read data for a total of 9 pixels in a 3x3 small area from the image memory, and if there is even one 111 I+ in the 9-bit data. If there is, "°1" is output as processed data, and when all 9 bits are "0", 0 is output as processed data.

このときCPUは、3×3の小領域の9画素をアドレッ
シングするために、9回のアドレス算出。
At this time, the CPU calculates the address nine times in order to address nine pixels in a 3x3 small area.

アドレス出力処理を行なって画像メモリから9ビットの
データを読み出し、それと並行して所定の論理演算を行
なう。これが1ビツトの処理済みデータを得るための操
作であり、1画面の全体を処理するには、上記の操作を
256X256回行わなければならない。この処理は相
当大きな負荷であり、マイクロコンピュータ程度ではこ
れに要する処理時間は膨大なものとなり、画像処理の高
速化を妨げる大きな原因になっていた。
Address output processing is performed to read 9-bit data from the image memory, and predetermined logical operations are performed in parallel. This is the operation to obtain 1 bit of processed data, and the above operation must be performed 256×256 times to process the entire one screen. This processing is a fairly large load, and the processing time required for this on a microcomputer is enormous, which is a major cause of hindering the speeding up of image processing.

上記の処理を高速化するために、すべてをコンピュータ
による逐次処理によらず、特殊な並列演算ユニットを付
加的に用いて処理する装置も開発されているが、この種
の並列演算ユニットは非常に複雑で高度なハードウェア
であり、高価である。
In order to speed up the above processing, devices have been developed that additionally use a special parallel processing unit instead of using a computer to process everything sequentially, but this type of parallel processing unit is extremely difficult to use. It is complex, sophisticated hardware, and expensive.

[発明の目的] この発明は上述した従来の問題点に鑑みてなされたもの
であり、その目的は、フィルタリング操作やマスク操作
などがマイクロコンピュータなどでも高速に行えるよう
にした画像処理装置を提供することにある。
[Object of the Invention] This invention has been made in view of the above-mentioned conventional problems, and its purpose is to provide an image processing device that allows filtering operations, mask operations, etc. to be performed at high speed even with a microcomputer. There is a particular thing.

[発明の概要] 上記の目的を・達成するために、この発明に係る画像処
理装置においては、1画素がaビットで1画面がb×c
画素からなる画像データをラスタスキャンと同様な順番
で1画素分づつ順次遅延手段に入力し、この遅延手段に
て上記画像データを所定画素分順次遅延し、b×cの画
像平面における小領域を構成する相互に隣接した合計6
画素分のデータを並列に取り出し、その0画素分のd×
aビットのデータを、1ワードがd×aビットでbXC
ワード構成の画像メモリに格納するように構成した。
[Summary of the Invention] In order to achieve the above object, in the image processing device according to the present invention, one pixel has a bits and one screen has b×c bits.
Image data consisting of pixels is sequentially input pixel by pixel into a delay means in the same order as raster scanning, and the delay means sequentially delays the image data by a predetermined pixel to form a small area on the b×c image plane. Consisting of mutually adjacent totals of 6
Take out the data for pixels in parallel and d× for that 0 pixels
a-bit data, one word is d×a bits, bXC
The image was configured to be stored in a word-structured image memory.

[発明の実施例] 第1図はこの発明の一実施例による画像処理装置の構成
を示している。撮像装置1.0は例えばCODを用いて
構成されたもので、1画素が1ビツトで1画面が256
X256画素からなる画像データを、第2因に示すよう
に、ラスタスキャンと同様な順番(X行方向およびY列
方向の昇順)で1画素−1ビツトづつクロック信号と同
期して出力する。撮像装置1oからの画像データとクロ
ック信号は切換スイッチ12.14を介して上記遅延手
段としてのシフトレジスタ16に入力される。
[Embodiment of the Invention] FIG. 1 shows the configuration of an image processing apparatus according to an embodiment of the invention. Imaging device 1.0 is configured using COD, for example, and one pixel has one bit and one screen has 256 pixels.
As shown in the second factor, image data consisting of X256 pixels is output in synchronization with a clock signal, one pixel per one bit, in the same order as raster scanning (ascending order in the X row direction and Y column direction). Image data and a clock signal from the imaging device 1o are input to the shift register 16 as the delay means via the changeover switch 12.14.

シフトレジスタ16は514ビツト構成で、撮像装置1
0から直列に出力される画像データをクロック信号に同
期して514画素分だけ順次遅延する。シフトレジスタ
16からは、入力段のデータ(遅延していないデータ)
Dnと、1画素分遅延したデータDn+1と、2画素分
遅延したデータ[)n+2と、256画素分(1行分)
遅延したデータDn+256と、257画素分遅延した
データDn+257と、258画素分遅延したデータD
n+258と、512画素°分(2行分)遅延したデー
タDn+512と、513画素分遅延したデータDn+
513と、514画素分遅延したデータDn+514と
の合計9ビツトが並列に取り出され、画像メモリ18の
データ入力となる。
The shift register 16 has a 514-bit configuration, and the shift register 16 has a 514-bit configuration.
Image data serially output from 0 is sequentially delayed by 514 pixels in synchronization with a clock signal. From the shift register 16, input stage data (non-delayed data)
Dn, data Dn+1 delayed by 1 pixel, data [)n+2 delayed by 2 pixels, and 256 pixels (1 row)
Delayed data Dn+256, data Dn+257 delayed by 257 pixels, and data D delayed by 258 pixels.
n+258, data Dn+512 delayed by 512 pixels (2 rows), and data Dn+ delayed by 513 pixels.
513 and data Dn+514 delayed by 514 pixels, a total of 9 bits, are taken out in parallel and become data input to the image memory 18.

画像メモリ18は、1ワード9ビツトで、256x25
6ワードの構成のRAMからなる。この画像メモリ18
のアドレス入力は、セレクタ22を介し、アドレスカウ
ンタ20またはCPU24から与えられる。アドレスカ
ウンタ20は撮像装置10からのクロック信号を計数し
、画像メモリ18に対するアドレス信号を作成する。
The image memory 18 is 256x25 with 9 bits per word.
It consists of a 6-word RAM. This image memory 18
The address input is given from the address counter 20 or the CPU 24 via the selector 22. Address counter 20 counts clock signals from imaging device 10 and creates an address signal for image memory 18 .

CPU24は画像メモリ18からデータを読み取って処
理するだけでなく、本装置全体を統括的に制御するもの
で、切換スイッチ12.14の制御、シフトレジスタ1
6やアドレスカウンタ20のクリア制御、セレクタ22
の切換制御、画像メモリ18のリード/ライト制御など
を行なう。
The CPU 24 not only reads and processes data from the image memory 18, but also controls the entire device, controlling the changeover switches 12 and 14, and controlling the shift register 1.
6, address counter 20 clear control, selector 22
switching control, read/write control of the image memory 18, etc.

以上の構成において、m像装置1oからある画素の1ビ
ツトのデータ[)nが出力されたとぎ、シフトレジスタ
16からは前述した遅延データQn+1〜Dn+514
の8ビツトのデータが出力され、これらの合計9ビツト
のデータが並列に画像メモリ18に入力され、そのとき
アドレスカウンタ20から与えられる画素アドレスff
l書き込まれる。
In the above configuration, when 1-bit data [)n of a certain pixel is output from the m-image device 1o, the shift register 16 outputs the aforementioned delayed data Qn+1 to Dn+514.
8-bit data is output, and these 9-bit data in total are input in parallel to the image memory 18, at which time the pixel address ff given from the address counter 20 is
l is written.

この9ピツトのデータDn −Dn +514ハ、第3
図に示すように、256X256画素の画像平面におけ
る3×3画素の小領域を構成する相互に隣接した合計9
画素分のデータである。この9画素分の9ビツトのデー
タを1ワードとして画像  画メモリ18に書き込まれ
る。画像メモリ18は2  か56X256画素に1対
1に対応した256X2   指56ワードの容量を有
し、上記3X3の小領域に  一対応した1ワード−9
ビツトのデータは、3×3  れの小領域の中心に位置
する画素(第3図におけるデータOn+257の画素に
該当する)に対応し  やたアドレスmに書き込まれる
。           タつまり、撮像装置10から
256X256ビツ  カドの1画面のデータが、(2
56X256)ワー  こド×9ビット構成の画像のメ
モリ18に、中心画  °ツ素とその周囲8画素で構成
される3×3の小領域  タの9画素−9ビットを1ワ
ードとするデータに変  る換されて格納される。  
             処CPU24が画像メモリ
18のデータを処理す  極るとき、切換スイッチ12
.14およびセレクタ22をCPU24側へ切換え、C
PU24から画  さ像メモリ18にアドレス信号を与
えてデータを読  だみ出す。           
         しここで注目すべきことは、CPU
24からある素に対応するアドレスを与えて画像メモリ
18らデータ読み出すと、画像メモリ18からは、定し
た画素のデータと、その周辺8画素分のブタとの合計9
ビツトのデータが一度に読み出さる点である。
This 9-pit data Dn -Dn +514c, the third
As shown in the figure, a total of 9 mutually adjacent pixels constituting a small area of 3 x 3 pixels on an image plane of 256 x 256 pixels.
This is data for pixels. This 9-bit data for 9 pixels is written into the image memory 18 as one word. The image memory 18 has a capacity of 256x2 56 words corresponding to 2 or 56x256 pixels on a one-to-one basis, and one word-9 corresponding to the 3x3 small area mentioned above.
Bit data is written to address m corresponding to the pixel located at the center of each of the 3×3 small areas (corresponding to the pixel with data On+257 in FIG. 3). In other words, data for one screen of 256 x 256 bits from the imaging device 10 is (2
56 x 256) words In the memory 18 of an image with a 9-bit configuration, a 3 x 3 small area consisting of a center pixel and 8 pixels around it.9 pixels - 9 bits as one word. It is converted and stored.
When the processing CPU 24 processes the data in the image memory 18, the selector switch 12
.. 14 and selector 22 to the CPU 24 side, and
An address signal is given from the PU 24 to the image memory 18 to read out the data.
What should be noted here is that the CPU
When an address corresponding to a certain pixel is given from 24 and data is read out from the image memory 18, a total of 9 data is obtained from the image memory 18, including the data of the specified pixel and the pigs for the surrounding 8 pixels.
The point is that bits of data are read out at once.

従来の画像処理装置では、フィルタリング操作マスク操
作に伴って3×3の小領域の画像デーを読み出すために
、アドレス作成とアドレス出操作を9回行わなければな
らなかったのに対し、の発明の画像処理装置によれば、
1−のアドレシング操作で3X3の小領域の9ビツトの
デーを一度に画像メモリ18から読み出せるのであ。従
って、この小領域の画像データに論理演算理を加えるフ
ィルタリング操作やマスク操作をめで高速に行うことが
できる。
With conventional image processing devices, address creation and address output operations had to be performed nine times in order to read image data of a 3x3 small area in conjunction with filtering and mask operations. According to the image processing device,
This is because 9-bit data in a 3×3 small area can be read out from the image memory 18 at once with a 1- addressing operation. Therefore, filtering operations and mask operations that apply logical operations to the image data of this small area can be performed at high speed.

上記の動作説明では撮像袋@10から直列出力れる画像
データを画像メモリ18に格納していが、CPU24で
処理した画像データを同様にて画像メモリ18に格納す
ることができる。その場合、切換スイッチ12.14を
CPU24側  像処理春へ切換え、CPU24側延 像データをクロック信号に同期して直列に出力し  と
近傍qて、シフトレジスタ16を介して画像メモリ18
  のデータに9ビット並列で入力する。このとぎ画像
メモリ  の複数面18に与えるアドレスは、アドレス
カウンタ20  フィルうから与えてもよいし、CPU
24から直接与えて  ング、ブもよい。上記の実施例
では1画素=1ビットの2  に簡単に値画像としたが
、1画素が複数ビットで構成され  画像処理る多値画
像についてもこの発明は同様に実施でき  マイクロる
。また、1画面の画素構成も実施例に限定され  こと
がてないのは勿論である。また、画像平面から抽出す 
 41図m6小領域も3X3の9画素に限定されるもの
では   第1しなく、任意の小領域を設定することが
できる。上  置のブ[記遅延手段の構成は、設定した
小領域に合せて決  データC定されるものである。遅
延手段としては実施例の  おける1シフトレジスタに
限定されず、RAMなどを用い  示す図1ても同様な
遅延作用を得ることができる。      10・・・
抗[発明の効果]                 
 16・・・ジ装置にあっては、画像メモリに対しであ
る該当するアドレスを与えると、その画素:画素とで構
成される小領域の複数画素弁が一度に読み出されるので
、この小領域1素分のデータについて演算処理を行なう
リング操作やマスク操作あるいはラベリエーンコーディ
ングといった処理を非常行うことができる。そのため、
この種のを特殊な並列演算ユニットを用いずに、コンピ
ュータ程度でも非常に高速に行うきる。
In the above operation description, image data serially output from the imaging bag @10 is stored in the image memory 18, but image data processed by the CPU 24 can be stored in the image memory 18 in the same manner. In that case, changeover switch 12.14 is switched to CPU 24 side image processing spring, and the CPU 24 side image processing data is output in series in synchronization with the clock signal.
Input 9 bits of data in parallel. The addresses to be given to the plurality of planes 18 of this digitized image memory may be given from the address counter 20 or from the CPU.
It is also good to give it directly from 24. In the above embodiment, a value image is simply assumed to be 2, where 1 pixel = 1 bit, but the present invention can be implemented similarly to a multi-value image in which 1 pixel is composed of a plurality of bits and image processing is performed. Furthermore, it goes without saying that the pixel configuration of one screen is not limited to the embodiment. Also, extracting from the image plane
The m6 small area shown in Fig. 41 is not limited to 9 pixels of 3×3, but any small area can be set. The configuration of the above delay means is determined according to the set small area. The delay means is not limited to the one shift register in the embodiment, but a similar delay effect can be obtained by using a RAM or the like shown in FIG. 10...
Anti [effect of invention]
16... When a corresponding address is given to the image memory, multiple pixel valves of a small area consisting of that pixel and pixel are read out at once, so this small area 1 It is possible to carry out arithmetic operations on elementary data such as ring operations, mask operations, and Ravellien coding. Therefore,
This type of processing can be performed extremely quickly on a computer without the use of special parallel processing units.

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

1はこの発明の一実施例による画像処理袋ツク図、第2
図は同上装置における画像1発生順番を示す図、第3図
は同上装置にワード画素側素分で構成される小領域を°
ある。 1像装置 ′フトレジスタ(遅延手段) 第2図゛ 第3図
1 is a diagram of an image processing system according to an embodiment of the present invention;
The figure shows the order in which image 1 is generated in the same device as above.
be. 1-image device's foot register (delay means) Fig. 2 - Fig. 3

Claims (1)

【特許請求の範囲】[Claims] 1画素がaビットで1画面がb×c画素からなる画像デ
ータをラスタスキャンと同様な順番で1画素分づつ順次
遅延手段に入力し、この遅延手段にて上記画像データを
所定画素分順次遅延し、b×cの画像平面における小領
域を構成する相互に隣接した合計d画素分のデータを並
列に取り出し、そのd画素分のd×aビットのデータを
、1ワードがd×aビットでb×cワード構成の画像メ
モリに格納するように構成したことを特徴とする画像処
理装置。
Image data consisting of a bit per pixel and bxc pixels per screen is input to a delay means one pixel at a time in the same order as raster scanning, and this delay means sequentially delays the image data by a predetermined pixel. Then, data for a total of d pixels adjacent to each other constituting a small area on the b x c image plane is taken out in parallel, and the data of d x a bits for the d pixels is divided into 1 word with d x a bits. An image processing apparatus characterized in that the image processing apparatus is configured to store data in an image memory having a b×c word structure.
JP8873685A 1985-04-26 1985-04-26 Picture processing device Pending JPS61248164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8873685A JPS61248164A (en) 1985-04-26 1985-04-26 Picture processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8873685A JPS61248164A (en) 1985-04-26 1985-04-26 Picture processing device

Publications (1)

Publication Number Publication Date
JPS61248164A true JPS61248164A (en) 1986-11-05

Family

ID=13951205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8873685A Pending JPS61248164A (en) 1985-04-26 1985-04-26 Picture processing device

Country Status (1)

Country Link
JP (1) JPS61248164A (en)

Similar Documents

Publication Publication Date Title
US4980923A (en) Dilation/erosion conversion circuit
US4791677A (en) Image signal processor
JPS6247786A (en) Exclusive memory for adjacent image processing
JPH0284689A (en) Video memory device
US4845767A (en) Image signal processor
JP2774115B2 (en) Sequential video processor system
US4805227A (en) Parallel pipeline image processor with 2×2 window architecture
JPH05282437A (en) Picture rotating circuit
US4809343A (en) Maximum/minimum value conversion circuit for image processing
JPS61248164A (en) Picture processing device
JPH0683787A (en) Parallel processor
JPH0522629A (en) Processor for video signal
JP3553376B2 (en) Parallel image processor
JPH07264395A (en) Image reducing device
JPH07107706B2 (en) Line buffer with variable number of delay stages
JP2697679B2 (en) Dither image display device
JPH05161094A (en) Programmable device for storing digital video line
JPH06214556A (en) Picture processing device
JP2989193B2 (en) Image memory interleaved input / output circuit
JPH06208614A (en) Image processor
JPH08123683A (en) Parallel processor device
JPS58169681A (en) Picture processing circuit
JPS6247784A (en) Image processor
JPS63198169A (en) Image processor
JPS6398078A (en) Histogram calculating device