Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0668762B2 - Variable line buffer with bit configuration - Google Patents
[go: Go Back, main page]

JPH0668762B2 - Variable line buffer with bit configuration - Google Patents

Variable line buffer with bit configuration

Info

Publication number
JPH0668762B2
JPH0668762B2 JP60185158A JP18515885A JPH0668762B2 JP H0668762 B2 JPH0668762 B2 JP H0668762B2 JP 60185158 A JP60185158 A JP 60185158A JP 18515885 A JP18515885 A JP 18515885A JP H0668762 B2 JPH0668762 B2 JP H0668762B2
Authority
JP
Japan
Prior art keywords
image data
column
bit width
data
row address
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.)
Expired - Fee Related
Application number
JP60185158A
Other languages
Japanese (ja)
Other versions
JPS6246379A (en
Inventor
忠 福島
小林  芳樹
修一 三浦
宏太郎 平沢
猛 加藤
良幸 奥山
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60185158A priority Critical patent/JPH0668762B2/en
Publication of JPS6246379A publication Critical patent/JPS6246379A/en
Publication of JPH0668762B2 publication Critical patent/JPH0668762B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)
  • Memory System (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、空間積和演算等の局所近傍画像処理を実行す
る際に局所近傍画像を切り出すラインバツフアに関す
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line buffer that cuts out a local neighborhood image when executing a local neighborhood image processing such as a spatial product sum operation.

〔発明の背景〕[Background of the Invention]

デイジタル計算機を用いて画像処理を行う場合、通常、
画像データは、ラスタ走査と呼ばれる走査方式すなわ
ち、主走査方向が左から右、副走査方向が上から下の走
査方式により走査される。このため、空間積和演算など
の局所近傍演算を実行する際、第6図に示すような回路
を用いて、局所画像を切り出す。
When performing image processing using a digital computer,
The image data is scanned by a scanning method called raster scanning, that is, a scanning method in which the main scanning direction is left to right and the sub scanning direction is top to bottom. Therefore, when executing a local neighborhood operation such as a spatial product sum operation, a local image is cut out using a circuit as shown in FIG.

第6図において、入力画像1はラスタ走査により走査さ
れる。走査された画像データは、シフトレジスタ11とラ
インバツフア2に入力される。ラインバツフア2は、画
像データを入力画像1の1ラインを走査する時間だけ遅
延させる。ラインバツフア2の出力は、シフトレジスタ
21とラインバツフア3に入力される。ラインバツフア3
は、ラインバツフア2と同様に、画像データを入力画像
1の1ラインを走査する時間だけ遅延させて、シフトレ
ジスタ31に出力する。シフトレジスタ11,21,31内の画像
データは、それぞれシフトレジスタ12,22,32へ、さらに
シフトレジスタ13,23,33へ順次転送される。この結果、
9個のレジスタには隣接する3×3個の画素データが切
り出される。
In FIG. 6, the input image 1 is scanned by raster scanning. The scanned image data is input to the shift register 11 and the line buffer 2. The line buffer 2 delays the image data by the time for scanning one line of the input image 1. The output of line buffer 2 is the shift register
21 and the line buffer 3 are input. Line buffer 3
Similarly to the line buffer 2, outputs the image data to the shift register 31 after delaying the image data by the time for scanning one line of the input image 1. The image data in the shift registers 11, 21, 31 are sequentially transferred to the shift registers 12, 22, 32, and further to the shift registers 13, 23, 33, respectively. As a result,
Adjacent 3 × 3 pixel data is cut out from the 9 registers.

第6図の例では、2個のラインバツフアと9個のシフト
レジスタにより、3×3の形を成す局所近傍画像が切り
出されるが、ラインバツフアやシフトレジスタを追加す
ることにより、より大きな局所近傍画像を取り出すこと
もできる。
In the example of FIG. 6, two line buffers and nine shift registers cut out a local neighborhood image in the form of 3 × 3, but by adding a line buffer and a shift register, a larger local neighborhood image can be obtained. You can also take it out.

このような機能を果すラインバツフアは、当初シフトレ
ジスタにより構築されていたが、入力画像1に含まれる
画素数が大きくなるにつれて、大容量RAMとRAMの行番地
を制御する行番地制御回路とで置き換えられるようにな
つた(特開昭58−159190、特開昭58−169681他)。これ
は、データそのものをシフトすることの代わりに、読み
出し・書き込みの行番地を制御することにより、シフト
レジスタと同等の機能を実現している。これにより、用
いるIC数をそれ程増やすことなくラインバツフアの遅延
段数を大きくし、大きな画像に対する局所近傍画像の切
り出しを実現できる。
The line buffer that fulfills such a function was originally constructed by a shift register, but as the number of pixels included in the input image 1 increased, it was replaced with a large-capacity RAM and a row address control circuit that controls the row address of the RAM. (JP-A-58-159190, JP-A-58-169681, etc.). This realizes a function equivalent to that of a shift register by controlling the read / write row address instead of shifting the data itself. This makes it possible to increase the number of delay stages in the line buffer without significantly increasing the number of ICs to be used, and to cut out a local neighborhood image for a large image.

しかし、ラインバツフのビツト幅は、扱う画像の各画素
のビツト幅と同一でなければならない。
However, the bit width of the line buffer must be the same as the bit width of each pixel of the image to be handled.

そのため、たとえば白と黒だけから成る2価画像や、中
間濃度を扱う多値画像のように、画素のビツト幅に違い
のある画像を処理する場合は、それぞれ別のラインバツ
フアを用意するか、もしくはビツト幅の広いラインバツ
フアを用意して兼用しなければならなかつた。この事
は、特にラインバツフアをLSI化する場合、大きな無駄
といえる。また、特開昭59−45756号公報に記載されて
いるように、RAMのメモリ空間を有効に活用するため
に、入力データ(画素データ)よりビット幅の広いRAに
対して、入力デタを合成してビット幅をRAMに合わせ、
この合成されたデータをRAMに記憶し、記憶したデータ
を分解してビット幅の狭いデータを生成して出力するよ
うにしたものが提案されている。この構成によれば、記
憶するデータの語長を可変にすることができる。
Therefore, when processing an image with different pixel bit widths, such as a bivalent image consisting of only black and white, or a multi-valued image that handles intermediate densities, separate line buffers are prepared, or I had to prepare a line buffer with a wide bit width and use it as a dual buffer. This can be said to be a great waste particularly when the line buffer is integrated into an LSI. Further, as described in JP-A-59-45756, in order to effectively utilize the memory space of RAM, input data is combined with RA having a bit width wider than the input data (pixel data). And adjust the bit width to RAM,
It has been proposed to store the combined data in a RAM and decompose the stored data to generate and output data with a narrow bit width. With this configuration, the word length of the stored data can be made variable.

しかし、この方法を採用しても、画素データの入出力タ
イミングが画素の語長によって異なり、タイミング制御
が複雑となる。即ち、画素データのビット幅に応じてデ
ータを合成し、RAMのビット幅に合わせた後でなければ
データを一度にRAMに記憶させることができない。ま
た、RAMからデータを読み出した後もデータを指定のビ
ット幅のデータに分解しなければならない。このため、
入力データを合成するためのタイミング制御及びRAMか
ら読み出されたデータを分解するためのタイミング制御
が必要となる。しかもこのタイミングはデータのビット
幅が異なる毎に変化するので、タイミング制御が複雑と
なる。さらに、ラスタ走査で得られた画素データをRAM
に記憶した場合、このRAMからは走査ラインのデータが
順次出力されるだけであり、このデータは直線の画像に
は利用できるが、面を構成する局所近傍画像の切り出し
処理等には有効に利用できない。
However, even if this method is adopted, the input / output timing of pixel data differs depending on the word length of the pixel, and the timing control becomes complicated. That is, the data can be stored in the RAM at once only after the data is combined according to the bit width of the pixel data and adjusted to the bit width of the RAM. Moreover, even after reading the data from the RAM, the data must be decomposed into data having a specified bit width. For this reason,
Timing control for synthesizing input data and timing control for decomposing data read from RAM are required. Moreover, since this timing changes every time the bit width of the data is different, the timing control becomes complicated. Furthermore, pixel data obtained by raster scanning is stored in RAM
In this case, the data of scanning lines are only sequentially output from this RAM, and this data can be used for straight line images, but it can be effectively used for clipping processing of local neighborhood images that compose a surface. Can not.

なお、特開昭58−33765号公報に記載されているよう
に、メモリをアクセスする際に、アドレス信号に応じて
アクセス可能なデータのビット幅を可変にする経路切換
論理回路を設ける方法を採用しても、最小単位のアクセ
スが1ワードのみであり、しかも読み出されたデータが
単一のバスに固定されているので、このデータは面を構
成する画像処理には有効に活用できない。
As described in JP-A-58-33765, a method of providing a path switching logic circuit for varying the bit width of accessible data according to an address signal when accessing a memory is adopted. However, since the minimum unit of access is only one word and the read data is fixed to a single bus, this data cannot be effectively used for image processing forming a surface.

〔発明の目的〕[Object of the Invention]

本発明の目的は、メモリ空間を画像データのビット幅に
応じて分割し該メモリ空間への画像データの書き込み及
びメモリ空間からの画像データの読み出しをビット幅が
相異なる画像データでも同一のタイミング制御が実行で
きると共にビット幅の狭い画像データをメモリ空間に格
納したときには複数の遅延段から遅延時間が相異なる画
像データを同時に読み出すことができるビット構成の可
変なラインバッファを提供することにある。
An object of the present invention is to divide the memory space according to the bit width of the image data and write the image data into the memory space and read the image data from the memory space with the same timing control even for the image data having different bit widths. It is an object of the present invention to provide a variable line buffer having a bit configuration capable of simultaneously executing image processing and reading image data having different delay times from a plurality of delay stages when image data having a narrow bit width is stored in a memory space.

〔発明の概要〕[Outline of Invention]

本発明は、複数の記憶素子が格子状に配列されて各記憶
素子に行番地と列番地が設定されている情報記憶手段
と、ビット幅の相異なる複数種類の画像データを受けこ
れら画像データのうちいずれか一方の画像データを選択
して情報記憶手段へ転送する画像データ選択手段と、画
像データ選択手段によりビット幅の広い方の画像データ
が選択されたときに書き込み指令に応答して入力画像デ
ータのビット幅に対応した全ての列の記憶素子に行番地
に従って順次画像データを書き込む第1画像データ書き
込み手段と、画像データ選択手段によりビット幅の広い
方の画像データが選択されたときに書き込み指令と交互
に発生する読み出し指令に応答して入力画像データのビ
ット幅に対応した全ての列の記憶素子から行番地に従っ
て順次画像データを読み出す第1画像データ読み出し手
段と、画像データ選択手段によりビット幅の狭い方の画
像データが選択されたときに書き込み指令に応答して入
力画像データのビット幅に対応した列の記憶素子群を全
て列番地に従って順次選択する列番地制御手段と、画像
データ選択手段によりビット幅の狭い方の画像データが
選択されたときに書き込み指令に応答して全ての列の記
憶素子を行番地に従って各列から1つずつ順次選択する
行番地制御手段と、画像データ選択手段によりビット幅
の狭い方の画像データが選択されたときに列番地制御手
段と行番地制御手段とにより重複して選択された記憶素
子にのみ順次画像データを書き込む第2画像データ書き
込み手段と、画像データ選択手段によりビット幅の狭い
方の画像データが選択されたときに読み出し指令に応答
して入力画像データのビット幅に対応した各列の記憶素
子に記憶された画像データを行番地に従って各列から1
つずつ順次読み出す第2画像データが読み出し手段と、
第1画像データ読み出し手段により読み出された各列の
画像データを順次出力する第1画像データ出力手段と、
第2画像データ読み出し手段により読み出された各列の
画像データを受けこれら画像データのうち書き込み処理
の最も新しい列の画像データを最新の読み出しデータと
して各列の画像データの配列を書き込み順序に従って変
更して順次出力する第2画像データ出力手段とを備えて
いるビット構成の可変なラインバッファを構成したこと
を特徴とするものである。すなわち、m行×n列から成
り、nビツトの情報を同時に読み出しおよび書き込みで
きる容量m×nビツトのRAMにおいて、行番地のみなら
ず列番地をも制御して、同時に書き込めるビツト幅を可
変にした。書き込みビツト幅を小さくすると、ビツト幅
n、遅延段数m段のライバツフアを、ビツト幅w、 段のラインバツトとして用いることができる。
The present invention provides an information storage unit in which a plurality of storage elements are arranged in a grid and a row address and a column address are set in each storage element, and a plurality of types of image data having different bit widths are received. An image data selecting means for selecting one of the image data and transferring it to the information storing means, and an input image in response to a write command when the image data having a wider bit width is selected by the image data selecting means. First image data writing means for sequentially writing image data in the storage elements of all columns corresponding to the bit width of data according to the row address, and writing when image data having a wider bit width is selected by the image data selecting means In response to a read command that alternates with the command, image data is sequentially output from the storage elements in all columns corresponding to the bit width of the input image data according to the row address. A first image data read-out unit that protrudes and a storage element group in a column corresponding to the bit width of the input image data in response to a write command when the image data having a smaller bit width is selected by the image data selection unit. Column address control means for sequentially selecting all the column addresses, and when the image data selecting means selects the image data having the smaller bit width, the storage elements of all columns are responded to the write command in accordance with the row addresses for each column. Row address control means for sequentially selecting one by one from the above, and storage selected in duplicate by the column address control means and the row address control means when the image data of the narrower bit width is selected by the image data selection means. Second image data writing means for sequentially writing image data only to the element, and read when the image data having a narrower bit width is selected by the image data selecting means. 1 the image data stored in the storage element of each column corresponding to the bit width of the input image data in response to a command issued from each column according to a row address
The second image data that is sequentially read one by one is read by the reading means,
First image data output means for sequentially outputting the image data of each column read by the first image data reading means,
Receiving the image data of each column read by the second image data reading means, the image data of the newest column of the writing process among these image data is used as the latest read data, and the arrangement of the image data of each column is changed according to the writing order. It is characterized in that a variable line buffer having a bit configuration is provided, which is provided with a second image data output means for sequentially outputting. That is, in a RAM having m rows × n columns and a capacity of m × n bits capable of reading and writing n bits of information at the same time, not only the row address but also the column address is controlled, and the bit width that can be written simultaneously is made variable. . If the write bit width is reduced, the bit width n and the delay buffer number m are set to the bit width w, It can be used as a stage line butt.

〔発明の実施例〕Example of Invention

以下、本発明の実施例について説明する。 Examples of the present invention will be described below.

第1図には、本発明の一実施例が示されている。FIG. 1 shows an embodiment of the present invention.

図において、各画素が8ビツトの濃淡画像を扱う際には
8ビツト×1024段として、また各画素が1ビツトの2値
画像を扱う際には1ビツト×8192段として動作するライ
ンバツフアの構成を示す。第2図のラインバツフアは、
制御信号101によりその機能が決定される。つまり、制
御信号が“High"レベルのとき8ビット×1024段(ビッ
ト幅n=8ビット、遅延段数m=1024段)のラインバッ
ファとして動作し、“Low"レベルのときには1ビット×
8192段(ビット幅w=1ビット、遅延段数m×n/w=
1024×8/1=8192段)のラインバッファとして動作す
る。
In the figure, a line buffer is configured to operate as 8 bits x 1024 stages when each pixel handles an 8-bit grayscale image, and as 1 bit x 8192 stages when each pixel handles a 1-bit binary image. Show. The line buffer in Figure 2 is
The function is determined by the control signal 101. That is, when the control signal is "High" level, it operates as a line buffer of 8 bits x 1024 stages (bit width n = 8 bits, delay stage number m = 1024 stages), and when it is "Low" level, 1 bit x
8192 stages (bit width w = 1 bit, number of delay stages m × n / w =
It operates as a line buffer of 1024 × 8/1 = 8192 stages).

第1図のラインバツフアには、8ビツトの濃淡画像デー
タが入力信号線106に、1ビツトの2値画像データが入
力信号線107に供給される。制御信号線101が“High"の
時、入力情報選択回路4は入力信号線106上の8ビット
のデータを8本の信号線108にそれぞれ出力する。一
方、制御信号線101が“Low"の時、選択回路4は入力信
号線107上の1ビットのデータを信号線108の8本すべて
の線上にコピーして出力する。信号線108上の8ビツト
のデータは8×1024ビツトのRAM5に供給される。RAM5
は、クロツク信号102に同期してデータの読み出し、お
よび、書き込みを行う。クロツク信号102が“High"時
は、行番地制御回路7からRAM5に与えられる行番地信号
104に従つて8個のデータが、同時に信号線109上に読み
出される。この時、制御信号101は“High"とすると、配
置変換回路6は、信号線109上のデータを出力信号線110
上にそのまま出力する。一方、クロツク信号102が“Lo
w"になると、信号線108上の8ビツトのデータが、行番
地制御回路7からの行番地信号104に従つてRAM5に書き
込まれる。つまり、クロツク信号102が“Low"になる直
前に読み出されたデータが、格納されていた同じ場所に
書き込まれることになる。ここで、行番地制御回路7は
10ビツトのバイナリイカウンタで構成され、クロツク信
号102の“High"レベルが入力される毎カウントアツプす
るため、行番地信号104は1024サイクルで一巡する。つ
まり、RAM5は、1024段の8ビツトラインバツフアとして
動作することになる。この時、列番地制御回路8と配置
変換回路6は、有効な動作を何ら行わない。
In the line buffer of FIG. 1, 8-bit grayscale image data is supplied to the input signal line 106, and 1-bit binary image data is supplied to the input signal line 107. When the control signal line 101 is “High”, the input information selection circuit 4 outputs the 8-bit data on the input signal line 106 to the eight signal lines 108, respectively. On the other hand, when the control signal line 101 is "Low", the selection circuit 4 copies the 1-bit data on the input signal line 107 to all eight signal lines 108 and outputs it. The 8-bit data on the signal line 108 is supplied to the 8 × 1024-bit RAM5. RAM5
Reads and writes data in synchronization with the clock signal 102. When the clock signal 102 is "High", the row address signal given from the row address control circuit 7 to the RAM5
According to 104, eight data are simultaneously read onto the signal line 109. At this time, if the control signal 101 is set to “High”, the arrangement conversion circuit 6 outputs the data on the signal line 109 to the output signal line 110.
Output as above. On the other hand, the clock signal 102 is "Lo
When it becomes "w", 8-bit data on the signal line 108 is written in the RAM 5 in accordance with the row address signal 104 from the row address control circuit 7. That is, it is read out immediately before the clock signal 102 becomes "Low". The written data will be written in the same place where it was stored.
It consists of a 10-bit binary counter and counts up every time the "High" level of the clock signal 102 is input, so that the row address signal 104 makes one cycle in 1024 cycles. That is, the RAM 5 operates as a 1024-stage 8-bit line buffer. At this time, the column address control circuit 8 and the layout conversion circuit 6 do not perform any effective operation.

一方、制御信号101が“Low"の時、クロツク信号102が
“High"となると、行番地信号104に従つて8ビツトのデ
ータが信号線107上に読み出されるのは、制御信号101が
“High"の時と同じである。しかし、クロツク信号が“L
owになつた時、信号線108上の8ビツトのデータのうち
の1ビツトだけが、行番地制御回路7からの行番地信号
104と、列番地制御回路8からの列番地信号105に従つて
書き込まれる。つまり、直前に読み出された8ビツトの
データのうちの1ビツトだけが、入力信号線107上のデ
ータで書き替えられることになる。なお、列番地制御回
路8は3ビツトのバイナリイカウンタで、行番地制御回
路7からの信号103が“High"の時カウントアツプする。
行番地制御回路7は、行番地信号104が16進表示で3FFか
ら000へ変わる時、信号線103を“High"とし、それ以外
は“Low"とするので、列番地制御回路8は、クロツク信
号102に1024回パルスが入力されると、1つカウントア
ツプすることになる。つまり、クロツク信号102に8192
回パルスが入力されると、列番地信号105は、元の状態
に復帰することになるので、RAM5のデータは、8192サイ
クルで書き替えが一巡することになる。この時、第1図
に示すラインバツフアは、第2図に示すような回路とし
て動作することになる。
On the other hand, when the control signal 101 is "Low" and the clock signal 102 is "High", 8-bit data is read out on the signal line 107 in accordance with the row address signal 104. "The same as when. However, the clock signal is "L
When it becomes ow, only 1 bit of the 8 bit data on the signal line 108 is the line address signal from the line address control circuit 7.
104 and the column address signal 105 from the column address control circuit 8 are written. That is, only 1 bit of the 8 bit data read out immediately before is rewritten by the data on the input signal line 107. The column address control circuit 8 is a 3-bit binary counter and counts up when the signal 103 from the row address control circuit 7 is "High".
The row address control circuit 7 sets the signal line 103 to “High” when the row address signal 104 changes from 3FF to 000 in hexadecimal notation, and otherwise sets it to “Low”. When 1024 pulses are input to the signal 102, one count up is performed. That is, 8192 for the clock signal 102.
When the pulse is input twice, the column address signal 105 returns to the original state, so that the data in the RAM 5 is rewritten once in 8192 cycles. At this time, the line buffer shown in FIG. 1 operates as a circuit as shown in FIG.

第2図は、1ビツト×1024段のラインバツフア9,8個か
ら成つている。入力信号線107から入力されたデータ
は、1024サイクル毎に出力信号線110上にビツト位置を
違えて上から順次8回出力されることになる。第1図に
おける信号線109上では、第2図の出力信号線110上のよ
うに、注目の画素データがRAM5に入力された後1024マシ
ンサイクル毎に8ビツトのうちの上から順次出力される
とは限らない。なぜなら、それは、書き込まれる時の列
番地に依存されるからである。そこで、列番地信号105
に従つて信号線109の8ビツトを、出力情報配置変換回
路6によりシフトすると、第1図の出力信号線110上に
は、第2図の出力信号線110上に出力されるデータと同
一のデータが出力されることになる。このことを第3図
を用いて詳述する。
Fig. 2 consists of 9,8 line buffers of 1 bit x 1024 stages. The data input from the input signal line 107 will be sequentially output eight times from the top on the output signal line 110 at different bit positions every 1024 cycles. On the signal line 109 in FIG. 1, as shown on the output signal line 110 in FIG. 2, the pixel data of interest is sequentially output from the top of 8 bits every 1024 machine cycles after being input to the RAM 5. Not necessarily. This is because it depends on the column address when it is written. Therefore, the column address signal 105
Accordingly, when 8 bits of the signal line 109 are shifted by the output information arrangement conversion circuit 6, the same data as the data output on the output signal line 110 of FIG. 2 is output on the output signal line 110 of FIG. The data will be output. This will be described in detail with reference to FIG.

第3図において、クロツク信号102が“High"、行番地信
号104がi、列番地信号105がjとする。この時、RAM5の
i行番地の情報8ビツトが、信号線109上に読み出され
る。読み出された情報は、出力情報配置変換回路6にお
いて、i列目のデータが1列目に、8列目のデータが
{8−(i−1)}列目に、1列目のデータが(1+
i)列目に、(i−1)列目のデータが8列目になるよ
う配置変換されて、出力信号線110上に出力される。即
ち、現時点で読み出された列のデータを最新の読み出し
データとするために、この列の画像データを最上段の列
に、この列の前に読み出された列のデータを最下段の列
に、というように各列の配置を変更する。このような列
の配置を変更しておくと、画像を表示するときにどの列
のデータが最新のデータか否かを判定する必要がないの
で、画像表示の制御が容易となる。この時のシフト段数
の制御は、列番地信号105により選択決定される。
In FIG. 3, it is assumed that the clock signal 102 is "High", the row address signal 104 is i, and the column address signal 105 is j. At this time, 8 bits of information at the i-th row address of the RAM 5 are read out on the signal line 109. In the output information arrangement conversion circuit 6, the read information is the i-th column data in the 1st column, the 8th column data in the {8- (i-1)} column, and the 1st column data. Is (1+
The data of the (i-1) th column is arranged and converted to the 8th column in the i) th column and is output onto the output signal line 110. That is, in order to make the data of the column read at the present time the latest read data, the image data of this column is set to the uppermost column, and the data of the column read before this column is set to the lowermost column. To change the arrangement of each column. If the arrangement of the columns is changed, it is not necessary to determine which column data is the latest data when displaying the image, and thus the image display control becomes easy. The control of the number of shift stages at this time is selectively determined by the column address signal 105.

この後クロツク信号102が“Low"になると、信号線108上
の8ビツトの情報(この場合8ビツトすべて“High"も
しくはすべて“Low"である)のうち、列番地信号105の
示すj列目のデータのみが、RAM5内の、行番地信号104
の示すi行番地のj列番地に書き込まれる。
After that, when the clock signal 102 becomes "Low", among the information of 8 bits on the signal line 108 (in this case, all 8 bits are "High" or all "Low"), the j-th column indicated by the column address signal 105. Only the data of the line address signal 104 in RAM5
Is written in the j-th column address of the i-th row address.

この後クロツク信号が再び“High"となると、行番地信
号が(i+1)となり、上記と同様の読み出し配置変換
が行われる。クロツクが“Low"となつた場合の書き込み
も同様である。行番地信号104が1023まで上昇した後、
クロツク信号が“High"となると、行番地信号104は0に
初期化され、同時に列番地信号105は(j+1)とな
る。この時、出力情報配置変換回路6は、シフト段数を
1つ加えることになる。
After that, when the clock signal becomes "High" again, the row address signal becomes (i + 1), and the read arrangement conversion similar to the above is performed. The same applies to writing when the clock is "Low". After the street address 104 rises to 1023,
When the clock signal becomes "High", the row address signal 104 is initialized to 0, and at the same time, the column address signal 105 becomes (j + 1). At this time, the output information arrangement conversion circuit 6 adds one shift stage number.

第4図は、第1図のRAM5のブロツク構成を示す。第4図
において、行番地信号104はデコーダ42によつてデコー
ドされ、1024本の行選択信号111となつて、それぞれ対
応する行番地の8個のメモリセル41に供給される。列番
地信号105はデコーダ43によつてデコードされ、8本の
デコード信号112となり、デコード信号112のそれぞれ
は、ゲート44で制御信号101とクロツク信号102との論理
和がとられ、列選択信号113として対応する列番地の102
4個のメモリセル41に供給される。
FIG. 4 shows the block configuration of the RAM 5 of FIG. In FIG. 4, the row address signal 104 is decoded by the decoder 42 and supplied as 1024 row selection signals 111 to the eight memory cells 41 at the corresponding row addresses. The column address signal 105 is decoded by the decoder 43 and becomes eight decoded signals 112. Each of the decoded signals 112 is ORed with the control signal 101 and the clock signal 102 at the gate 44, and the column selection signal 113 is obtained. Corresponding column address as 102
It is supplied to four memory cells 41.

クロツク信号が“High"の時は、制御信号101とデコード
信号112にかかわらず、行選択信号111により選択された
8個のデータは、信号線114上に読み出され、8個のバ
ツフア45に入力される。バツフア45はクロツク信号102
が“High"の時のみ信号線114上のデータを信号線109上
に出力する。この時、信号線108はバツフア46により信
号線115と切り離されている。
When the clock signal is "High", regardless of the control signal 101 and the decode signal 112, the eight data selected by the row selection signal 111 are read out on the signal line 114 and are output to the eight buffers 45. Is entered. Buffer 45 is clock signal 102
The data on the signal line 114 is output to the signal line 109 only when is high. At this time, the signal line 108 is separated from the signal line 115 by the buffer 46.

一方、クロツク信号102が“Low"になると、信号線108は
信号線115と接続され、信号線114は信号線109と切り離
される。この時、制御信号101が“High"ならば、行選択
信号111により選択された8個のメモリセル41のすべて
に入力信号108のデータが書き込まれ、制御信号101が
“Low"ならばデコード信号112に従って、行選択信号111
により選択された8個のメモリセル41のうちの1つに、
入力信号108のデータが書き込まれる。
On the other hand, when the clock signal 102 becomes “Low”, the signal line 108 is connected to the signal line 115 and the signal line 114 is disconnected from the signal line 109. At this time, if the control signal 101 is "High", the data of the input signal 108 is written to all of the eight memory cells 41 selected by the row selection signal 111, and if the control signal 101 is "Low", the decode signal is written. According to 112, the row selection signal 111
To one of the eight memory cells 41 selected by
The data of the input signal 108 is written.

第5図は、第4図に示したメモリセル41の論理回路の例
を示す。第5図において、2つのゲート51はそれぞれ否
定論理を行ない、1ビツトの情報を記憶する。行選択信
号111と列選択信号113がともに“High"の時のみ、ゲー
ト52は論理積として“High"をバツフア53に出力する。
この結果、信号線115および信号線114は2つのゲート51
が形成する閉ループと接続され、メモリセル41内の情報
が信号線114上に読み出される。さらに信号線115上のデ
ータがメモリセル41に書き込まれる。ただし、第4図を
用いて述べたように、メモリセル41の情報が読み出され
た後、列選択信号113が“Low"になり、メモリセル41に
データ書き込みの実行されない場合がある。これは、制
御信号101と列番地信号105に依存する。
FIG. 5 shows an example of the logic circuit of the memory cell 41 shown in FIG. In FIG. 5, the two gates 51 perform a negative logic and store one bit of information. Only when both the row selection signal 111 and the column selection signal 113 are "High", the gate 52 outputs "High" to the buffer 53 as a logical product.
As a result, the signal line 115 and the signal line 114 have two gates 51.
The information in the memory cell 41 is read out onto the signal line 114 by being connected to the closed loop formed by. Further, the data on the signal line 115 is written in the memory cell 41. However, as described with reference to FIG. 4, the column selection signal 113 may become “Low” after the information in the memory cell 41 is read, and data writing may not be executed in the memory cell 41. This depends on the control signal 101 and the column address signal 105.

本実施例によれば、m行×n列から成り、nビツトの情
報を同時に読み出しおよび書き込める容量m×nビツト
のRAMを用いて、ビツト幅と遅延段数を可変とするライ
ンバツフアビツト幅w(1≦w≦n) を構成することが可能である。この結果、濃淡画像と2
値画像のように、データのビツト幅の異なる対象を扱う
場合、ビツト幅が小さければ遅延段数の多いラインバツ
フアとして使用することが可能である。この事は、最小
のハードウエア量で、多種類のデータに対応できること
を意味し、特にラインバツフアをLSI化する場合、専有
面積を最小に押さえることができる。
According to the present embodiment, a line buffer bit width w that is variable in bit width and number of delay stages is used by using a RAM of m rows × n columns and having a capacity of m × n bits capable of simultaneously reading and writing n bits of information. (1 ≦ w ≦ n) Can be configured. As a result, the grayscale image and 2
When dealing with objects having different bit widths of data such as a value image, if the bit width is small, it can be used as a line buffer having a large number of delay stages. This means that a minimum amount of hardware can be used to handle many types of data, and especially when the line buffer is made into an LSI, the occupied area can be minimized.

さらに、入力情報選択回路4に入力された画像データの
ビット幅をRAM4のビット幅に合わせるためのタイミング
処理を実行することなく、クロック信号102に応答し
て、各画像データを書き込んだり、読み出したりするこ
とができるので、画像データの書き込み制御と読み出し
制御を同一のタイミング制御で実行することができ、タ
イミング制御が容易となる。
Furthermore, each image data is written or read in response to the clock signal 102 without performing a timing process for adjusting the bit width of the image data input to the input information selection circuit 4 to the bit width of the RAM 4. Therefore, the writing control and the reading control of the image data can be executed with the same timing control, and the timing control becomes easy.

また、1ビットの2値画像データをRAM5に格納した際に
は、第2図に示すように、遅延段数1024段の各ラインバ
ッファ9から遅延時間の相異なる画像データが同時に読
み出されるので、この画像データは、テンプレートマッ
チング等、面を構成する局所近傍画像の切り出し処理に
有効に利用することができる。即ち、ラスタ走査で得ら
れた画像データを用いて局所近傍画像の切り出し処理を
実行する場合、同一の走査ラインの画像データを複数個
集めても直線の画像処理にしか利用できないが、走査ラ
インの異なる画像データ(1024段のラインバッファ9を
1走査ラインに対応させると、各ラインバッファ9の出
力データはそれぞれ異なる走査ラインから得られた画像
データとなる。)を複数個順次蓄積すると、これらの画
像データは面を構成する画像処理に有効である。さら
に、各走査ラインの画像データはライン毎に遅延時間が
異なっているが、現時点で読み出されたラインのデータ
を最新の読み出しデータとするために、読み出された各
ラインの画像データを書き込み順序に従って再配列して
いるので、画像を表示するときにどの列のデータが最新
のデータか否かを判定する必要がなく、画像表示の制御
が容易となる。
Further, when 1-bit binary image data is stored in the RAM 5, image data having different delay times are simultaneously read from each line buffer 9 having 1024 delay stages, as shown in FIG. The image data can be effectively used for cutting out a local neighborhood image forming a surface such as template matching. That is, when the local neighborhood image cutout process is executed using the image data obtained by the raster scan, even if a plurality of image data of the same scan line is collected, it can be used only for the straight line image process. When a plurality of different image data (when the 1024 stages of line buffers 9 are made to correspond to one scanning line, the output data of each line buffer 9 becomes image data obtained from different scanning lines) are sequentially stored, these are stored. The image data is effective for image processing for forming a surface. Further, the image data of each scanning line has a different delay time from line to line, but the image data of each read line is written in order to make the data of the line currently read out the latest read data. Since the images are rearranged in order, it is not necessary to determine which column of data is the latest data when displaying an image, and the image display control is facilitated.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、メモリ空間を画
像データのビット幅に応じて分割し該メモリ空間への画
像データの書き込み及びメモリ空間からの画像データの
読み出しをビット幅の相異なる画像データでも同一のタ
イミング制御を実行すると共に、ビット幅の狭い画像デ
ータをメモリ空間に格納したときには複数列の遅延段か
ら遅延時間が相異なる画像データを同時に読み出し、読
み出した各列の画像データを書き込み順序に従って再配
列するようにしたため、ビット幅の相異なる画像データ
の書き込み制御と読み出し制御を簡単なタイミング制御
で実行できると共に、面を構成する画像処理に有効な画
像データ群を画像表示に適した配列で出力することがで
きる。
As described above, according to the present invention, the memory space is divided according to the bit width of the image data, and the writing of the image data into the memory space and the reading of the image data from the memory space are performed with the images having different bit widths. The same timing control is performed for data, and when image data with a narrow bit width is stored in the memory space, image data with different delay times are simultaneously read from the delay stages of multiple columns, and the read image data for each column is written. Since the data is rearranged according to the order, write control and read control of image data having different bit widths can be executed with simple timing control, and an image data group effective for image processing forming a surface is suitable for image display. Can be output as an array.

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

第1図は本発明の実施例を示すビツト幅の可変なライン
バツフアのブロツク構成図、第2図は第2図に示すライ
ンバツフアの一利用形体を示すブロツク図、第3図は第
1図に示すRAMと出力情報選択回路の動作を示す概念
図、第4図は第2図に示すRAMの内部構成図、第5図は
第4図に示すメモリセルの動作を示す論理図、第6図は
従来のラインバツフアの使用例を示す図である。 4……入力情報選択回路、5……RAM、6……出力情報
変換回路、7……行番地制御回路、8……列番地制御回
路。
FIG. 1 is a block diagram of a line buffer having a variable bit width showing an embodiment of the present invention, FIG. 2 is a block diagram showing one use form of the line buffer shown in FIG. 2, and FIG. 3 is shown in FIG. A conceptual diagram showing the operation of the RAM and the output information selection circuit, FIG. 4 is an internal configuration diagram of the RAM shown in FIG. 2, FIG. 5 is a logic diagram showing the operation of the memory cell shown in FIG. 4, and FIG. It is a figure which shows the usage example of the conventional line buffer. 4 ... Input information selection circuit, 5 ... RAM, 6 ... Output information conversion circuit, 7 ... Row address control circuit, 8 ... Column address control circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 平沢 宏太郎 茨城県日立市久慈町4026番地 株式会社日 立製作所日立研究所内 (72)発明者 加藤 猛 茨城県日立市大みか町5丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 奥山 良幸 茨城県日立市久慈町4026番地 株式会社日 立製作所日立研究所内 (56)参考文献 特開 昭58−33765(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Kotaro Hirasawa, 4026 Kuji Town, Hitachi City, Hitachi, Ibaraki Prefecture Hitachi Research Laboratory, Hitachi Ltd. (72) Inventor Takeshi Kato 5-2-1 Omika Town, Hitachi City, Ibaraki Prefecture Ceremony company Hitachi Ltd. Omika factory (72) Inventor Yoshiyuki Okuyama 4026 Kuji-cho, Hitachi City, Ibaraki Prefecture Hitachi Research Laboratory, Hitachi, Ltd. (56) Reference JP-A-58-33765 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の記憶素子が格子状に配列されて各記
憶素子に行番地と列番地が設定されている情報記憶手段
と、ビット幅の相異なる複数種類の画像データを受けこ
れら画像データのうちいずれか一方の画像データを選択
して情報記憶手段へ転送する画像データ選択手段と、画
像データ選択手段によりビット幅の広い方の画像データ
が選択されたときに書き込み指令に応答して入力画像デ
ータのビット幅に対応した全ての列の記憶素子に行番地
に従って順次画像データを書き込む第1画像データ書き
込み手段と、画像データ選択手段によりビット幅の広い
方の画像データが選択されたときに書き込み指令と交互
に発生する読み出し指令に応答して入力画像データのビ
ット幅に対応した全ての列の記憶素子から行番地に従っ
て順次画像データを読み出す第1画像データ読み出し手
段と、画像データ選択手段によりビット幅の狭い方の画
像データが選択されたときに書き込み指令に応答して入
力画像データのビット幅に対応した列の記憶素子群を全
て列番地に従って順次選択する列番地制御手段と、画像
データ選択手段によりビット幅の狭い方の画像データが
選択されたときに書き込み指令に応答して全ての列の記
憶素子を行番地に従って各列から1つずつ順次選択する
行番地制御手段と、画像データ選択手段によりビット幅
の狭い方の画像データが選択されたときに列番地制御手
段と行番地制御手段とにより重複して選択された記憶素
子にのみ順次画像データを書き込む第2画像データ書き
込み手段と、画像データ選択手段によりビット幅の狭い
方の画像データが選択されたときに読み出し指令に応答
して入力画像データのビット幅に対応した各列の記憶素
子に記憶された画像データを行番地に従って各列から1
つずつ順次読み出す第2画像データ読み出し手段と、第
1画像データ読み出し手段により読み出された各列の画
像データを順次出力する第1画像データ出力手段と、第
2画像データ読み出し手段により読み出された各列の画
像データを受けこれら画像データのうち書き込み処理の
最も新しい列の画像データを最新の読み出しデータとし
て各列の画像データの配列を書き込み順序に従って変更
して順次出力する第2画像データ出力手段とを備えてい
るビット構成の可変なラインバッファ。
1. An information storage unit in which a plurality of storage elements are arranged in a grid pattern and a row address and a column address are set in each storage element, and a plurality of types of image data having different bit widths are received. Image data selecting means for selecting one of the image data and transferring it to the information storing means, and inputting in response to a write command when the image data having a wider bit width is selected by the image data selecting means. When first image data writing means for sequentially writing the image data in the storage elements of all columns corresponding to the bit width of the image data according to the row address, and when the image data having the wider bit width is selected by the image data selecting means In response to a read command that alternates with a write command, image data is sequentially acquired from the storage elements in all columns corresponding to the bit width of the input image data according to the row address. The first image data reading means for reading and all the storage element groups in the column corresponding to the bit width of the input image data in response to the write command when the image data of the narrower bit width is selected by the image data selecting means. Column address control means for sequentially selecting according to the column address, and when the image data of the narrower bit width is selected by the image data selecting means, in response to the write command, the storage elements of all the columns are changed from each column according to the row address. The row address control means for sequentially selecting one by one, and the storage element selected by the column address control means and the row address control means in duplicate when the image data of the narrower bit width is selected by the image data selection means When the second image data writing means for sequentially writing the image data only to the image data and the image data of the narrower bit width are selected by the image data selecting means The image data stored in the storage element of each column corresponding to the bit width of the input image data in response to a look out command from the column according to a row address 1
Second image data reading means for sequentially reading out one by one, first image data output means for sequentially outputting the image data of each column read by the first image data reading means, and second image data reading means for reading Second image data output for receiving the image data of each column and changing the arrangement of the image data of each column according to the writing order and sequentially outputting the image data of the newest column of the writing process among these image data as the latest read data A variable line buffer having a bit structure comprising :.
JP60185158A 1985-08-23 1985-08-23 Variable line buffer with bit configuration Expired - Fee Related JPH0668762B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60185158A JPH0668762B2 (en) 1985-08-23 1985-08-23 Variable line buffer with bit configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60185158A JPH0668762B2 (en) 1985-08-23 1985-08-23 Variable line buffer with bit configuration

Publications (2)

Publication Number Publication Date
JPS6246379A JPS6246379A (en) 1987-02-28
JPH0668762B2 true JPH0668762B2 (en) 1994-08-31

Family

ID=16165848

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60185158A Expired - Fee Related JPH0668762B2 (en) 1985-08-23 1985-08-23 Variable line buffer with bit configuration

Country Status (1)

Country Link
JP (1) JPH0668762B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS571060B2 (en) * 1974-04-20 1982-01-09
JPS5833765A (en) * 1981-08-20 1983-02-28 Toshiba Corp Memory controlling system
JPS5945756A (en) * 1982-09-08 1984-03-14 Matsushita Graphic Commun Syst Inc Line buffer device

Also Published As

Publication number Publication date
JPS6246379A (en) 1987-02-28

Similar Documents

Publication Publication Date Title
US6819328B1 (en) Graphic accelerator with interpolate function
US4627020A (en) Method for rotating a binary image
JPH06225140A (en) Method and apparatus for smoothing edge of picture element image
CN100378867C (en) Semiconductor device, image data processing apparatus and method
KR910002202B1 (en) Boundary-free conductor
US6557086B1 (en) Memory write and read control
JPH02230383A (en) Image processing device
US6606673B2 (en) Direct memory access transfer apparatus
JPH0668762B2 (en) Variable line buffer with bit configuration
JP2000293432A (en) Bank variable memory
US6195463B1 (en) Multiresolution image processing and storage on a single chip
JP2005189966A (en) Image processing device
JPH07107706B2 (en) Line buffer with variable number of delay stages
JPS60211690A (en) Memory circuit
JPH028335B2 (en)
JP2664420B2 (en) Image processing apparatus and buffering apparatus for image processing apparatus
JPH05113928A (en) Image memory device
JPH08305819A (en) Two-dimensional orthogonal transform computing device
JPH061449B2 (en) Image memory for image editing
JP2591448B2 (en) Selector circuit and multi-port memory cell
JP3104001B2 (en) Line buffer and image processing apparatus using the same
SU1104578A1 (en) Device for generating symbols
JPH0760457B2 (en) Semiconductor memory and memory device using a plurality of the same
JPS60218180A (en) Median filter circuit
JPH0624008B2 (en) Parallel image processing processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees