JPH0221632B2 - - Google Patents
Info
- Publication number
- JPH0221632B2 JPH0221632B2 JP6692084A JP6692084A JPH0221632B2 JP H0221632 B2 JPH0221632 B2 JP H0221632B2 JP 6692084 A JP6692084 A JP 6692084A JP 6692084 A JP6692084 A JP 6692084A JP H0221632 B2 JPH0221632 B2 JP H0221632B2
- Authority
- JP
- Japan
- Prior art keywords
- information
- matrix
- selection means
- output
- control signal
- 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
Links
- 239000011159 matrix material Substances 0.000 claims description 49
- 230000006835 compression Effects 0.000 claims description 28
- 238000007906 compression Methods 0.000 claims description 28
- 230000005540 biological transmission Effects 0.000 claims description 22
- 238000000034 method Methods 0.000 claims description 8
- 238000010187 selection method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明は各種の圧縮、とりわけ画像情報の高速
な圧縮を行なうことのできる情報圧縮方法および
その回路に関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to various types of compression, particularly to an information compression method and circuit that can perform high-speed compression of image information.
従来例の構成とその問題点
近年、大型コンピユータや高価な専用システム
で行なわれていた画像の拡大や縮小などの編集処
理が、安価なパーソナルコンピユータの分野でも
必要とされるようになつてきた。Conventional configurations and their problems In recent years, editing processes such as image enlargement and reduction, which used to be performed on large computers and expensive dedicated systems, have become necessary in the field of inexpensive personal computers.
以下に従来の画像の圧縮について説明する。 Conventional image compression will be explained below.
圧縮とは、第1図に示すように長さnの原画像
Xからマスクパターンpの要素で“1”に対応す
る要素を抽出してXaを生成し、これを圧縮して
圧縮画像Yを得るものである。 Compression means extracting elements corresponding to "1" in mask pattern p from original image X of length n to generate Xa, and compressing this to create compressed image Y. It's something you get.
上記操作を行なうために第2図に示すような画
像圧縮回路が考えられる。 In order to perform the above operation, an image compression circuit as shown in FIG. 2 can be considered.
第2図において、1は原画像Xを格納するシフ
トレジスタで、クロツク信号aが印加されると、
左へ1要素だけシフトされ、そのシフトにより最
左端の値は出力信号cとして送出される。2はマ
スクパターンpを格納するシフトレジスタで、ク
ロツク信号aが印加されると、左へ1要素だけシ
フトされ、そのシフトにより最左端の値は出力信
号dとして送出される。3は圧縮結果が格納され
るシフトレジスタで、後述するANDゲートの出
力信号fが印加されると、各要素を1つ左へシフ
トする。4は1ビツトのレジスタで、クロツク信
号bに同期して信号dを取り込むとともに信号e
を出力する。5は論理積をとるANDゲートであ
る。なお、クロツク信号a,bは周波数が同じで
位相差をもつた信号である。 In FIG. 2, 1 is a shift register that stores the original image X, and when a clock signal a is applied,
It is shifted to the left by one element, and due to the shift, the leftmost value is sent out as the output signal c. Reference numeral 2 denotes a shift register that stores the mask pattern p, and when the clock signal a is applied, it is shifted by one element to the left, and the leftmost value is sent out as the output signal d. 3 is a shift register in which the compression results are stored, and when an output signal f of an AND gate, which will be described later, is applied, each element is shifted to the left by one. 4 is a 1-bit register which takes in signal d in synchronization with clock signal b and also receives signal e.
Output. 5 is an AND gate that performs logical product. Note that the clock signals a and b have the same frequency but a phase difference.
以上のような構成の画像圧縮回路について、そ
の動作を以下に説明する。 The operation of the image compression circuit configured as above will be described below.
シフトレジスタ1,2にはそれぞれ第1図に示
す原画像Xとマスクパターンpの各要素が左から
順に格納されているものとする。まず、クロツク
信号bに同期してシフトレジスタ2の出力信号d
(この時点では“1”)がレジスタ4に取り込まれ
信号eとなる。次にシフトレジスタ1,2がクロ
ツク信号aに同期してシフトされる。この時、シ
フトされる直前の信号eが“1”であればAND
ゲート5の出力も“1”となりシフトレジスタ3
へクロツク信号fが供給されシフトレジスタ1の
出力信号cがシフトレジスタ3に取り込まれる。
一方シフトされる直前の出力信号lが“0”であ
れば、シフトレジスタ3へはクロツク信号fが供
給されず、シフト動作は行なわれないため、シフ
トレジスタ1から出力されていた出力信号cは消
減する。このような動作が、クロツク信号a,b
に同期してシフトレジスタ1の要素の数だけ行な
われることにより圧縮画像をシフトレジスタ3に
生成することができる。 It is assumed that the elements of the original image X and the mask pattern p shown in FIG. 1 are stored in shift registers 1 and 2 in order from the left, respectively. First, the output signal d of the shift register 2 is synchronized with the clock signal b.
(“1” at this point) is taken into the register 4 and becomes the signal e. Next, shift registers 1 and 2 are shifted in synchronization with clock signal a. At this time, if the signal e just before being shifted is "1", AND
The output of gate 5 also becomes “1” and shift register 3
A clock signal f is supplied to the shift register 1, and an output signal c of the shift register 1 is taken into the shift register 3.
On the other hand, if the output signal l immediately before being shifted is "0", the clock signal f is not supplied to the shift register 3 and no shift operation is performed, so the output signal c that was output from the shift register 1 is disappear. Such an operation causes clock signals a, b
A compressed image can be generated in the shift register 3 by performing the same number of compressed images as the number of elements in the shift register 1 in synchronization with .
しかしながら以上のような方法は、各クロツク
信号に同期して行なわれるため、高速な動作をさ
せようとすると、それに応じて高速なクロツクが
必要となりLSI化が困難であり更に表のような画
像を圧縮する場合、抽出されない要素に表の枠情
報があると、その枠情報が消減してしまうという
欠点を有していた。 However, since the method described above is performed in synchronization with each clock signal, high-speed operation requires a correspondingly high-speed clock, making it difficult to implement into an LSI, and furthermore, it is difficult to create an image like the one shown in the table. When compressing, if there is frame information of a table in an element that is not extracted, the frame information is lost.
発明の目的
本発明は、上記従来の問題点を解消するもの
で、LSI化に適し、高速な情報の圧縮を行ないか
つ、表のような画像を圧縮する場合でも枠情報の
消滅しない情報圧縮方法およびその回路を提供す
ることを目的とする。Purpose of the Invention The present invention solves the above-mentioned conventional problems, and provides an information compression method that is suitable for LSI implementation, performs high-speed information compression, and does not eliminate frame information even when compressing an image such as a table. and its circuit.
発明の構成
本発明の情報圧縮方法は、圧縮すべき情報x1,
x2,……,xo(但し、nはn≧2の整数)に対し
てすくなくとも2値情報からなる参照用マスクパ
ターンp1,p2,……,poを有し、前記圧縮すべき
情報x1,x2,……,xoをn行n列からなるマトリ
ツクスA内における第n行から第1行の方向に移
動させる際に、前記参照用マスクパターンpi(但
し、iは1≦i≦nの整数)が第1の情報であれ
ばマトリツクスAのai,iに位置する情報xiと、ai,i-1
に位置する情報xとで論理和演算を行ない、結果
をマトリツクスAのai-1,i-1に移動するとともに、
マトリツクスAのai,j(但し、jは(i+1)≦j
≦n)およびai,u(但し、uは1≦u≦i−2の整
数)に位置する情報xをマトリツクスAのai-1,j-1
およびai-1,uにそれぞれ移動させ、一方前記参照
用マスクパターンpiが第2の情報であればマトリ
ツクスAのai,v(但し、vは1≦v≦nの整数)に
位置する情報xをマトリツクスAのai-1,vの位置
に移動させることにより、上記目的を達するもの
である。Structure of the Invention The information compression method of the present invention is based on the information to be compressed x 1 ,
x 2 , ..., x o (where n is an integer of n≧2), there are reference mask patterns p 1 , p 2 , ..., p o consisting of at least binary information, and the compression When moving the power information x 1 , x 2 , ..., x o from the nth row to the first row in the matrix A consisting of n rows and n columns, the reference mask pattern p i (however, i is an integer with 1≦i≦n) is the first information, then the information x i located at a i,i of matrix A and a i,i-1
Performs a logical sum operation with the information x located at , moves the result to a i-1, i-1 of matrix A, and
a i,j of matrix A (where, j is (i+1)≦j
≦n) and a i,u (where u is an integer of 1≦u≦i− 2 )
and a i-1,u respectively, and on the other hand, if the reference mask pattern p i is second information, it is located at a i,v (where v is an integer of 1≦v≦n) of matrix A. The above objective is achieved by moving the information x to the position a i-1,v of the matrix A.
一方本発明の情報圧縮回路は、n行n列(但
し、nはn≧2の整数)のマトリツクスAのak,l
(但し、k,lは3≦k≦n、1≦l≦k−2の
整数)の位置に情報伝達手段を設けるとともに、
前記マトリツクスAのan,q(但し、m,qは1≦
m≦n、0<m−1≦q≦nの整数)の位置に情
報選択手段を設け、圧縮すべき情報x1,x2,…
…,xoを第n行から第1行の方向に移動させてい
く場合に、第n行に設けられた前記情報伝達手段
は第n−1行に設けられている前記情報伝達手
段、あるいは情報選択手段が情報xを入力できる
ように送出するとともに、第r行(但し、rは3
≦r≦n−1の整数)に設けられた前記情報伝達
手段は第r−1行に設けられている前記情報手
段、あるいは情報選択手段が情報xを入力できる
よう送出し、一方第n列に設けられた前記情報選
択手段は参照用マスクパターンに対応する制御信
号に応じて前記圧縮すべき情報xoを切り捨てるか
否かを決定するとともに、前記マトリツクスAの
an-1,qの位置に設けられた前記情報選択手段は参
照用マスクパターンに対応する制御信号に応じて
前記マトリツクスAのan,q+1の位置に設けられて
いる前記情報選択手段の出力情報xを入力する
か、前記マトリツクスAのan,qの位置に設けられ
ている前記情報伝達手段、あるいは情報選択手段
の出力情報xを入力するかを選択し、更に前記マ
トリツクスAのan-1,n-2およびao,o-1の位置に設け
られた前記情報選択手段は、前記マトリツクスA
のan-1,qの位置に設けられた前記選択手段に、前
記マトリツクスAのan,n-1の位置に設けられた前
記情報選択手段の出力情報と、前記マトリツクス
Aのan,n-2の位置に設けられた前記情報伝達手段
の出力情報との間および情報xoとxo-1との間で演
算を行なう演算手段を付加し、前記情報選択手段
は、参照用マスクパターンに対応する制御信号に
応じて前記マトリツクスAのan,n-2の位置に設け
られている前記情報伝達手段の出力情報を入力す
るか前記情報選択手段内の前記演算手段の出力情
報を入力するかおよび情報xo-1を入力するか情報
xoとxo-1との演算手段の出力情報を入力とするか
を選択することにより上記目的を達するものであ
る。 On the other hand, the information compression circuit of the present invention has a matrix A of n rows and n columns (where n is an integer of n≧2) .
(However, k and l are integers of 3≦k≦n, 1≦l≦k-2), and an information transmission means is provided at the position,
a n,q of the matrix A (however, m, q are 1≦
An information selection means is provided at a position where m≦n, an integer of 0<m-1≦q≦n), and information to be compressed x 1 , x 2 , . . .
..., x o from the nth row to the first row, the information transmission means provided in the nth row is the information transmission means provided in the n-1th row, or The information selection means sends the information x so that it can be input, and the rth row (where r is 3
≦r≦n-1 (an integer of The information selection means provided in the matrix A determines whether or not the information to be compressed
The information selection means provided at the position a n-1,q responds to the control signal corresponding to the reference mask pattern by the information selection means provided at the position a n,q+1 of the matrix A. Select whether to input the output information x of the matrix A or the output information x of the information transmission means or information selection means provided at positions a n,q of the matrix A, and then The information selection means provided at positions a n-1, n-2 and a o, o-1 selects the information from the matrix A.
The output information of the information selection means provided at the position a n,n-1 of the matrix A and the a n, Calculating means for performing calculations between the output information of the information transmitting means provided at the position n-2 and between the information In response to a control signal corresponding to a pattern, the output information of the information transmission means provided at positions a n,n-2 of the matrix A is input, or the output information of the calculation means in the information selection means is input. Input and Information x o-1 Input
The above objective is achieved by selecting whether to input the output information of the calculation means for x o and x o-1 .
実施例の説明
以下、本発明の一実施例における情報圧縮方法
について説明する。説明の都合によりここでは8
行8列のマトリツクスとし、添字の値は0〜7で
表わす。DESCRIPTION OF EMBODIMENTS An information compression method according to an embodiment of the present invention will be described below. For convenience of explanation, here 8
It is a matrix with 8 rows and 8 columns, and the subscript values are expressed as 0 to 7.
まず原画像Xをx0,x1,x2,x3,x4,x5,x6,
x7、または参照用マスクパターンpを1、0、
1、0、0、0、1、0とした場合を考える。 First, the original image X is divided into x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 ,
x 7 or reference mask pattern p to 1, 0,
Consider the case of 1, 0, 0, 0, 1, 0.
第3図に示すように縦方向をi、横方向をjな
る添字でマトリツクスの各要素をMi,jで指示す
る。原画像Xが初めi=7の行に存在し、i行目
からi−1行目の方向にマトリツクス内を移動
し、圧縮画像Y=x01,x2345,x67を得るものであ
る。i行目からi−1行目への移動に際し、参照
マスクパターンpiが0であればi=jの要素Mij
より右の全ての要素が左へ1要素分シフトされ
る。この時、i=jの要素MijとMij-1の要素との
間で論理和がとられる。一方参照マスクパターン
piが1であれば、その時のi行目の全要素がi−
1行目に移動させる。この動作がi=0の行の各
要素に対して行なわれ、マトリツクスからの出力
として圧縮画像Yを得る。 As shown in FIG. 3, each element of the matrix is designated by M i,j with a subscript i in the vertical direction and j in the horizontal direction. The original image X initially exists in the row i=7, and is moved within the matrix in the direction from the i-th row to the i-1th row to obtain compressed images Y=x 01 , x 2345 , x 67 . When moving from the i-th row to the i-1th row, if the reference mask pattern p i is 0, the element M ij of i=j
All elements to the right are shifted one element to the left. At this time, a logical sum is taken between the element M ij of i=j and the element M ij-1 . One side reference mask pattern
If p i is 1, all elements of the i-th row at that time are i-
Move it to the first line. This operation is performed for each element in the row with i=0 to obtain the compressed image Y as output from the matrix.
上記の原理に従つて実際の値をあてはめて圧縮
される様子をおつてみると、次のようになる。 If we apply the actual values according to the above principle and look at how they are compressed, we get the following.
(1) i=7の行ではp7=0であるから、x7はx6と
論理和がとられ、その結果M6,6はx6+x7とな
る。この例ではM7,7より右の要素M7,8は存在し
ないため、M6,7は空になる。従つてi=6の行
は、x0,x1,x2,x3,x4,x5,x6+x7となる。(1) Since p 7 =0 in the row where i=7, x 7 is ORed with x 6 , and as a result, M 6,6 becomes x 6 + x 7 . In this example, there is no element M 7,8 to the right of M 7,7 , so M 6,7 is empty. Therefore, the row of i=6 becomes x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 +x 7 .
(2) i=6の行ではp6=1であるからこの行の全
要素がi=5の行へ移され、従つてi=5の行
はx0,x1,x2,x3,x4,x5,x6+x7となる。(2) Since p 6 = 1 in the row with i=6, all elements of this row are moved to the row with i=5, so the row with i=5 has x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 + x 7 .
(3) i=5の行ではp5=0であるからx5はx4と論
理和がとられ、j=5より右の全要素が左へシ
フトされる。従つてi=4の行は、x0,x1,
x2,x3,x4,x5,x6+x7となる。(3) In the row where i=5, p 5 =0, so x 5 is ORed with x 4 , and all elements to the right of j=5 are shifted to the left. Therefore, the row of i=4 has x 0 , x 1 ,
x 2 , x 3 , x 4 , x 5 , x 6 + x 7 .
以下、同様にi=4〜0の行に対して処理する
ことにより、マトリツクスからの出力はY=x0+
x1,x2+x3+x4+x5+x6+x7となる。 By similarly processing the rows from i=4 to 0, the output from the matrix becomes Y=x 0 +
x 1 , x 2 + x 3 + x 4 + x 5 + x 6 + x 7 .
j=8の列に0なる要素があるものとして考え
ることにより、マトリツクスの空となつた部分に
0をセツトすることができる。 By assuming that there is an element of 0 in the column j=8, it is possible to set 0 to the empty portion of the matrix.
次に、本発明の一実施例における情報圧縮回路
について説明する。 Next, an information compression circuit according to an embodiment of the present invention will be described.
第4図は本発明の一実施例における情報圧縮回
路の結線を示すものである。 FIG. 4 shows the wiring of an information compression circuit in one embodiment of the present invention.
第4図において、100〜107は圧縮すべき画
像情報x0〜x7を印加する情報入力端子、110〜
117は参照用マスクパターンp0〜p7に応じた2
値制御信号が印加される制御信号入力端子、12
0〜127はインバータである。13は8行8列の
マトリツクスの要素Mj,k(但し、j,kはともに
整数で2≦j≦7、O≦k≦j≦−2)の位置に
設けられているとともに、上方から送出されてく
る情報を下方に送出する情報伝達手段で、単に信
号線であつてもよい。14はマトリツクスの要素
Ms,t(但し、s,tはともに整数で0≦s≦7、
s≦t≦7)の位置に設けられているとともに、
制御信号入力端子11Sを介して送出されてくる
参照用マスクパターンpsに対応する制御信号as,
bsに応じてマトリツクスの要素Ms+1,t+1に位置す
る情報か、マトリツクスの要素Ms+1,tに位置する
情報の一方を選択する情報選択手段で、第5図a
に示すような論理素子14a,14b,14c,
14dにより構成されている。但し、マトリツク
スMのj=7の列に位置する情報選択手段につい
ては画像情報x7を切り捨てるか否かを選択するの
みに設けられている。16はマトリツクスの要素
Mi,i-1の位置に設けられているとともに制御信号
入力端子11iを介して送出されてくる参照用マ
スクパターンpiに対応する制御信号ai,biに応じ
てマトリツクスの要素Mi+1,iとMi+1,i-1に位置する
情報との論理和の結果かマトリツクスの要素
Mi+1,i-1に位置する情報の一方を選択する情報選
択手段で、第5図bに示すような論理素子16
a,16b,16c,16d,16eにより構成
されている。情報選択手段16は、情報選択手段
14への情報cの代りに情報dとcとの論理和を
入力したものである。150〜157は圧縮された
画像情報Yを得る出力端子である。 In FIG. 4, 100 to 107 are information input terminals to which image information x0 to x7 to be compressed are applied, and 110 to
11 7 is 2 according to the reference mask pattern p 0 to p 7
a control signal input terminal, 12, to which a value control signal is applied;
0 to 127 are inverters. 13 is provided at the position of element M j,k (where j and k are both integers, 2≦j≦7, O≦k≦j≦-2) of a matrix with 8 rows and 8 columns, and An information transmission means for transmitting information downward, and may simply be a signal line. 14 is an element of the matrix
M s,t (both s and t are integers, 0≦s≦7,
s≦t≦7), and
A control signal a s corresponding to the reference mask pattern p s sent through the control signal input terminal 11 S ,
b An information selection means for selecting either the information located in the matrix element M s+1,t+1 or the information located in the matrix element M s+1,t according to s, as shown in FIG.
Logic elements 14a, 14b, 14c, as shown in FIG.
14d. However, the information selection means located in the j=7 column of the matrix M is provided only to select whether or not to truncate image information x7 . 16 is an element of the matrix
The element M of the matrix is determined in response to the control signals a i and b i corresponding to the reference mask pattern p i provided at the position M i, i-1 and sent out via the control signal input terminal 11 i . The result of the logical sum of i+1,i and the information located at M i+1,i-1 or the element of the matrix
Information selection means for selecting one of the information located at M i+1, i-1 , which uses a logic element 16 as shown in FIG.
It is composed of a, 16b, 16c, 16d, and 16e. The information selection means 16 inputs the logical sum of information d and c instead of the information c to the information selection means 14. 15 0 to 15 7 are output terminals from which compressed image information Y is obtained.
以下、第6図を参照しながら情報選択手段14
の構成についてさらに詳細に説明する。 The information selection means 14 will be described below with reference to FIG.
The configuration will be explained in more detail.
第6図に示すように、制御信号入力端子11s
を介して送出されてくる制御信号asが“0”制御
信号bsが“1”の際すなわち(as,bs)=(0、
1)の際には情報選択手段14はマトリツクスの
Ms+1,t+1に位置する情報cを情報選択手段16は
Ms+1,tとMs+1,t-1に位置する情報eとfの論理和
を入力し、一方制御信号asが“1”、制御信号bs
が“0”の際すなわち(as,bs)=(1、0)の際
には情報選択手段14はマトリツクスのMs+1,tに
位置する情報dを情報選択手段16はマトリツク
スMs+1,t-1に位置する情報fを選択的に入力す
る。 As shown in FIG. 6, the control signal input terminal 11s
When the control signal a s sent through is “0” and the control signal b s is “1”, that is, (a s , b s )=(0,
In case 1), the information selection means 14 selects the matrix.
The information selection means 16 selects the information c located at M s+1,t+1.
The logical sum of information e and f located at M s+1,t and M s+1,t-1 is input, while the control signal a s is "1" and the control signal b s
When is "0", that is, when (a s , b s ) = (1, 0), the information selection means 14 selects the information d located at M s+1,t of the matrix from the matrix M Information f located at s+1, t-1 is selectively input.
上記構成において、以下その動作を説明する。 The operation of the above configuration will be explained below.
なお参照マスクパターンpは1、0、1、0、
0、0、1、0とし、最終的に圧縮情報x0+x1,
x2+x3+x4+x5,x6+x7を得るものとする。 Note that the reference mask pattern p is 1, 0, 1, 0,
0, 0, 1, 0, and finally compressed information x 0 + x 1 ,
Assume that we obtain x 2 + x 3 + x 4 + x 5 and x 6 + x 7 .
まず第7図aに示すように、情報入力端子10
0〜107を介して情報伝達手段130〜135及び
情報選択手段160,140に原画像情報x0〜x7を
送出する。その際、制御信号として制御信号入力
端子117を介して(a7,b7)=(0、1)が印加
されていることにより、情報選択手段140は入
力信号として線C側の情報を、情報選択手段16
0はEとFの信号の論理和x67=x6+x7を選択す
る。(以下情報x1,x2,……,xiの論理和の結果
をx12……iと記す)
次に第7図bに示すように、情報伝達手段13
0〜134までの原画像情報x0〜x4は、情報伝達手
段166〜1310に送出される。一方情報選択手
段141,161は制御信号として制御信号入力端
子116を介して(a6,b6)=(1、0)が印加さ
れていることにより、情報選択手段141は線D
側の情報を選択するので原画像情報x67を情報選
択手段161は線F側の情報x5を入力する。 First, as shown in FIG. 7a, the information input terminal 10
The original image information x0 to x7 is sent to the information transmitting means 130 to 135 and the information selecting means 160 and 140 via the information transmitting means 130 to 135 and the information selecting means 160 and 140 . At this time, since (a 7 , b 7 )=(0, 1) is applied as a control signal via the control signal input terminal 11 7 , the information selection means 14 0 receives the information on the line C side as an input signal. , the information selection means 16
0 selects the logical sum of the E and F signals x 67 =x 6 +x 7 . (Hereinafter, the result of the logical sum of information x 1 , x 2 , ..., x i will be written as x 12 ...i) Next, as shown in FIG.
The original image information x0 to x4 from 0 to 134 is sent to information transmission means 166 to 1310 . On the other hand, since (a 6 , b 6 )=(1, 0) is applied as a control signal to the information selection means 14 1 , 16 1 via the control signal input terminal 11 6 , the information selection means 14 1 is connected to the line D
Since the information on the line F side is selected, the information selection means 161 inputs the original image information x 67 and the information x 5 on the line F side.
次に第7図cに示すように、情報伝達手段13
6〜139までの原画像情報x0〜x3は、情報伝達手
段1311〜1314に送出される。一方情報選択手
段142,162は制御信号として制御信号入力端
子115を介して(a5,b5)=(0、1)が印加さ
れていることにより情報選択手段142は線C側
の情報を選択するので原画像情報x67を入力し、
情報選択手段162は線EとFの情報の論理和x45
を選択する。 Next, as shown in FIG. 7c, the information transmission means 13
The original image information x0 to x3 from 6 to 139 are sent to information transmission means 1311 to 1314 . On the other hand, since (a 5 , b 5 ) = (0, 1) is applied as a control signal to the information selection means 14 2 , 16 2 via the control signal input terminal 11 5 , the information selection means 14 2 is connected to the line C. Select the side information, so enter the original image information x 67 ,
Information selection means 16 2 is the logical sum of information on lines E and F x 45
Select.
次に第7図dに示すように、情報伝達手段13
11〜1313までの原画像情報x0〜x2は、情報伝達
手段1315〜1317に送出される。一方情報選択
手段143,163は、制御信号として制御信号入
力端子114を介して(a4,b4)=(0、1)が印
加されていることにより、情報選択手段143は
線C側の情報を選択するので原画像情報x67を入
力し、情報選択手段163は線EとFの論理和
x345を選択する。 Next, as shown in FIG. 7d, the information transmission means 13
The original image information x0 to x2 from 11 to 1313 is sent to information transmission means 1315 to 1317 . On the other hand, since (a 4 , b 4 )=(0, 1) is applied as a control signal to the information selection means 14 3 , 16 3 via the control signal input terminal 11 4 , the information selection means 14 3 is To select the information on the line C side, input the original image information x 67 , and the information selection means 16 3 is the logical sum of lines E and F.
Select x345 .
次に第7図eに示すように、情報伝達手段13
15と1316の原画像情報x0,x1は、情報伝達手段
1318,1319に送出される。一方情報選択手段
144,164は制御信号として制御信号入力端子
113を介して(a3,b3)=(0、1)が印加され
ていることにより、情報選択手段144は線C側
の情報を選択するので原画像情報x67を入力し、
情報選択手段164は線EとFの論理和x2345を選
択する。 Next, as shown in FIG. 7e, the information transmission means 13
The original image information x 0 , x 1 of 15 and 13 16 is sent to information transmission means 13 18 , 13 19 . On the other hand, since (a 3 , b 3 )=(0, 1) is applied as a control signal to the information selection means 14 4 , 16 4 via the control signal input terminal 11 3 , the information selection means 14 4 is connected to the line Select the information on the C side, so enter the original image information x 67 ,
The information selection means 164 selects the logical sum x 2345 of lines E and F.
次に第7図fに示すように、情報伝達手段13
18の原画像情報x0は、情報伝達手段1320に送出
される。一方情報選択手段145,146,165
は制御信号として制御信号入力端子112を介し
て(a2,b2)=(1、0)が印加されていることに
より、情報選択手段145,146はそれぞれ線
D1,D2側の情報を選択するので原画像情報x2345,
x67をそれぞれ入力し、情報選択手段165は線F
側の情報を選択するので原画像情報x1を入力す
る。 Next, as shown in FIG. 7f, the information transmission means 13
18 original image information x0 is sent to the information transmission means 1320 . On the other hand, information selection means 14 5 , 14 6 , 16 5
Since (a 2 , b 2 )=(1, 0) is applied as a control signal via the control signal input terminal 11 2 , the information selection means 14 5 and 14 6 are connected to the line, respectively.
Since information on D 1 and D 2 side is selected, original image information x 2345 ,
Input x 67 respectively, information selection means 16 5 is line F
To select side information, enter original image information x 1 .
次に第7図gに示すように、情報選択手段14
7,148,166は制御信号として制御信号入力
端子111を介して(a1,b1)=(0、1)が印加
されていることにより、情報選択手段147,1
48はそれぞれ線C1,C2側の情報を選択するので
原画像情報x2345,x67をそれぞれ入力し、情報選
択手段166は線EとFの情報の論理和x01を選択
する。 Next, as shown in FIG. 7g, the information selection means 14
7 , 14 8 , 16 6 are applied with (a 1 , b 1 )=(0, 1) as control signals via the control signal input terminal 11 1 , so that the information selection means 14 7 , 1
4 8 selects the information on the lines C 1 and C 2, respectively, so input the original image information x 2345 and x 67 , respectively, and the information selection means 16 6 selects the logical sum x 01 of the information on lines E and F. .
そして最終的に第7図hに示すように、情報選
択手段149,1410,1411は制御信号として制
御信号入力端子110を介して(a0,b0)=(1、
0)が印加されていることによりそれぞれD1,
D2,D3側の情報を選択するので、原画像情報
x01,x2345,x67を入力する。そして情報選択手段
149,1410,1411を最終出力として取り出す
ことにより、圧縮情報Yを得ることができる。 Finally, as shown in FIG. 7h, the information selection means 14 9 , 14 10 , 14 11 sends (a 0 , b 0 )=(1,
0) is applied, D 1 ,
Since the information on the D 2 and D 3 side is selected, the original image information
Enter x 01 , x 2345 , x 67 . By extracting the information selection means 14 9 , 14 10 , 14 11 as the final output, compressed information Y can be obtained.
以上のように本実施例によれば、情報伝達手段
13及び情報選択手段14,16をマトリツクス
状に配置した回路構成とすることにより、高速な
圧縮が必要な場合であつてもクロツクを必要とせ
ず、また、規則的な回路構成であるためLSI化に
適している。また、原画像情報の圧縮を行なう
際、隣り合つた情報の論理和をとることにより論
理“1”の情報は消減することなく従つて論理
“1”で作成された表の枠は圧縮によつて消える
ことはない。また制御信号入力端子11に印加す
る制御信号を変えるだけで、容易に他の圧縮情報
Yを得ることができる。 As described above, according to this embodiment, the circuit configuration in which the information transmitting means 13 and the information selecting means 14 and 16 are arranged in a matrix eliminates the need for a clock even when high-speed compression is required. Moreover, since it has a regular circuit configuration, it is suitable for LSI implementation. Furthermore, when compressing the original image information, by taking the logical sum of adjacent information, the information of logic "1" will not disappear. Therefore, the frame of the table created with logic "1" will be It never goes away. Further, other compressed information Y can be easily obtained by simply changing the control signal applied to the control signal input terminal 11.
なお本実施例では説明の都合上、情報伝達手段
13を設けたが、前述したように情報伝達手段1
3は単なる配線でもよい為、第4図の回路は第8
図のようなものとしてもよい。 In this embodiment, the information transmission means 13 is provided for convenience of explanation, but as described above, the information transmission means 1
3 may be a simple wiring, so the circuit in Figure 4 is the 8th one.
It may be as shown in the figure.
また、本実施例では圧縮の際の演算として論理
和を用いたが他の演算にすることも容易にでき
る。さらに本実施例では画像情報についてのみ説
明したが、本発明に適用される情報は他のもので
もよく、情報のサンプリング等にも利用できる。 Further, in this embodiment, a logical sum is used as the calculation for compression, but other calculations can easily be used. Further, in this embodiment, only image information has been described, but other information may be applied to the present invention, and it can also be used for information sampling, etc.
発明の効果
以上本発明は、圧縮すべき情報をマトリツクス
を用いて処理することにより、クロツクを用いず
に高速に情報の圧縮を行なうことができまた、原
画像情報の圧縮を行なう際、隣り合つた情報の論
理和をとることにより論理“1”の情報は消減す
ることなく従つて、論理“1”で作成された表の
枠は圧縮によつて消えることはない。またその回
路は規則的なものであるためLSI化にも適してお
り、その価値は大なるものがある。Effects of the Invention As described above, the present invention can compress information at high speed without using a clock by processing information to be compressed using a matrix. By taking the logical sum of the information, the information of logic "1" is not lost.Therefore, the frame of the table created with logic "1" does not disappear due to compression. Also, because the circuit is regular, it is suitable for LSI implementation, and its value is great.
第1図は画像の圧縮を示す図、第2図は従来考
えられる画像圧縮回路のブロツク結線図、第3図
は本発明の一実施例における情報圧縮方法を説明
する図、第4図は本発明の一実施例における情報
圧縮回路の結線図、第5図は情報選択手段の回路
図、第6図は同手段の結線図、第7図は同情報圧
縮回路の動作を示す結線図、第8図は本発明の他
の実施例における情報圧縮回路の結線図である。
13…情報伝達手段、14…情報選択手段。
FIG. 1 is a diagram showing image compression, FIG. 2 is a block diagram of a conventional image compression circuit, FIG. 3 is a diagram explaining an information compression method in an embodiment of the present invention, and FIG. 4 is a diagram of the present invention. A wiring diagram of an information compression circuit in an embodiment of the invention, FIG. 5 is a circuit diagram of the information selection means, FIG. 6 is a wiring diagram of the same means, and FIG. 7 is a wiring diagram showing the operation of the information compression circuit. FIG. 8 is a wiring diagram of an information compression circuit in another embodiment of the present invention. 13... Information transmission means, 14... Information selection means.
Claims (1)
はn≧2の整数)に対して少なくとも2値情報か
ら成る参照用マスクパターンp1,p2,……,poを
有し、前記圧縮すべき情報x1,x2,……,xoをn
行n列からなるマトリツクスA内における第n行
から第1行の方向に移動させる際に、前記参照用
マスクパターンpi(但し、iは1≦i≦nの整数)
が第1の情報であればマトリツクスAのai,iに位
置する情報xiとai,i-1に位置する情報xとで演算を
行ない、結果をマトリツクスAのai-1,i-1に移動す
るとともに、マトリツクスAのai,j(但し、jは
(i+1)≦j≦n)およびai,u(但し、uは1≦u
≦i−2の整数)に位置する情報xをマトリツク
スAのai-1,j-1およびai-1,uにそれぞれ移動させ、
一方前記参照用マスクパターンpiが第2の情報で
あればマトリツクスAのai,v(但し、vは1≦v≦
nの整数)に位置する情報xをマトリツクスAの
ai-1,vの位置に移動させることを特徴とする情報
圧縮方法。 2 n行n列(但し、nはn≧2の整数)のマト
リツクスAのak,l(但し、k,lは3≦k≦n、1
≦l≦k−2の整数)の位置に情報伝達手段を設
けるとともに、前記マトリツクスAのan,q(但し、
m,qは1≦m≦n、0<m−1≦q≦nの整
数)の位置に情報選択手段を設け、圧縮すべき情
報x1,x2,……,xoを第n行から第1行の方向に
移動させていく場合に、第n行に設けられた前記
情報伝達手段は第n−1行に設けられている前記
情報伝達手段、あるいは情報選択手段が情報xを
入力できるよう送出するとともに、第r行(但
し、rは3≦r≦n−1の整数)に設けられた前
記情報伝達手段は第r−1行に設けられている前
記情報伝達手段、あるいは情報選択手段が情報x
を入力できるよう送出し、一方第n列に設けられ
た前記情報選択手段は参照用マスクパターンに対
応する制御信号に応じて前記圧縮すべき情報xoを
切り捨てるか否かを決定するとともに、前記マト
リツクスAのan-1,qの位置に設けられた前記情報
選択手段は参照用マスクパターンに対応する制御
信号に応じて前記マトリツクスAのan,q+1の位置
に設けられている前記情報選択手段の出力情報x
を入力するか、前記マトリツクスAのan,qの位置
に設けられている前記情報伝達手段、あるいは情
報選択手段の出力情報xを入力するかを選択し、
更に前記マトリツクスAのan-1,n-2およびao,o-1の
位置に設けられた前記情報選択手段は、前記マト
リツクスAのan-1,qの位置に設けられた前記情報
選択手段に、前記マトリツクスAのan,n-1の位置
に設けられた前記情報選択手段の出力情報と、前
記マトリツクスAのan,n-2の位置に設けられた前
記情報伝達手段の出力情報との間および情報xoと
xo-1との間で演算を行なう演算手段を付加し、前
記情報選択手段は、参照用マスクパターンに対応
する制御信号に応じて前記マトリツクスAの
an,n-2の位置に設けられている前記情報伝達手段
の出力情報を入力するか、前記情報選択手段内の
前記演算手段の出力情報を入力するかおよび情報
xo-1を入力するか情報xoとxo-1との演算手段の出
力情報を入力するかを選択することを特徴とする
情報圧縮回路。 3 情報伝達手段は配線であることを特徴とする
特許請求の範囲第2項記載の情報圧縮回路。[Claims] 1 Information to be compressed x 1 , x 2 , ..., x o (however, n
has a reference mask pattern p 1 , p 2 , . o to n
When moving from the nth row to the first row in the matrix A consisting of rows and n columns, the reference mask pattern p i (where i is an integer of 1≦i≦n)
is the first information, the information x i located at a i,i of matrix A and the information x located at a i,i-1 are operated, and the result is a i-1,i of matrix A. -1 , and matrix A's a i,j (where, j is (i+1)≦j≦n) and a i,u (however, u is 1≦u
≦i-2 integer) is moved to a i-1,j-1 and a i-1,u of matrix A, respectively,
On the other hand, if the reference mask pattern p i is second information, a i,v of matrix A (where v is 1≦v≦
The information x located at
An information compression method characterized by moving to a i-1,v position. 2 a k,l of matrix A with n rows and n columns (where n is an integer of n≧2) (however, k and l are 3≦k≦n, 1
≦ l ≦k-2 (an integer of
m , q are integers of 1≦m≦n, 0<m- 1 ≦q≦n), and an information selection means is provided at the position of When moving in the direction of the first row from The information transmitting means provided in the r-th row (where r is an integer of 3≦r≦n-1) transmits the information so that the information The selection method is information x
On the other hand, the information selection means provided in the n-th column determines whether or not to truncate the information to be compressed x o in accordance with a control signal corresponding to the reference mask pattern; The information selection means provided at the position a n-1,q of the matrix A responds to the control signal corresponding to the reference mask pattern by selecting the information selection means provided at the position a n,q+1 of the matrix A. Output information x of information selection means
or input the output information x of the information transmission means or information selection means provided at the position a n,q of the matrix A,
Furthermore, the information selection means provided at positions a n-1, n-2 and a o, o-1 of the matrix A selects the information provided at positions a n-1, q of the matrix A. The selection means includes the output information of the information selection means provided at position a n,n-1 of the matrix A and the output information of the information transmission means provided at position a n,n-2 of the matrix A. Between output information and information x o
x o-1 , and the information selection means selects the matrix A according to a control signal corresponding to the reference mask pattern.
Whether to input the output information of the information transmission means provided at the position a n,n-2 or the output information of the calculation means in the information selection means, and the information
An information compression circuit characterized in that it selects whether to input x o-1 or output information of a calculation means of information x o and x o-1 . 3. The information compression circuit according to claim 2, wherein the information transmission means is a wiring.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59066920A JPS60211581A (en) | 1984-04-04 | 1984-04-04 | Information compressing method and its circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59066920A JPS60211581A (en) | 1984-04-04 | 1984-04-04 | Information compressing method and its circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60211581A JPS60211581A (en) | 1985-10-23 |
| JPH0221632B2 true JPH0221632B2 (en) | 1990-05-15 |
Family
ID=13329893
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59066920A Granted JPS60211581A (en) | 1984-04-04 | 1984-04-04 | Information compressing method and its circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60211581A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4794613A (en) * | 1987-07-27 | 1988-12-27 | Prc Corporation | Laser fluid flow control apparatus and method |
-
1984
- 1984-04-04 JP JP59066920A patent/JPS60211581A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60211581A (en) | 1985-10-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6039271A (en) | Method and apparatus for realizing expansive and invasive conversion in digital image processing | |
| EP0143533A2 (en) | Image data expanding and/or contracting method and apparatus | |
| JPH01258066A (en) | Cross memory for data processing circuit | |
| US5668748A (en) | Apparatus for two-dimensional discrete cosine transform | |
| JPH0221632B2 (en) | ||
| JPH0137066B2 (en) | ||
| JP2982509B2 (en) | Image reduction processing method | |
| JPH0142424B2 (en) | ||
| JP3726971B2 (en) | Parallel processor device | |
| JPS6360952B2 (en) | ||
| JPH07264395A (en) | Image reduction device | |
| JPH0221633B2 (en) | ||
| JP2516611B2 (en) | Parallel data processing device | |
| JP2824976B2 (en) | 2D array data rotation device | |
| JPS61136169A (en) | High-speed arithmetic unit | |
| JP2791763B2 (en) | Arithmetic unit | |
| JPH04257024A (en) | Root extracting device | |
| JPS6333073A (en) | Television video synthesizing circuit | |
| JPH079572B2 (en) | Vertical / horizontal conversion device for pattern data | |
| JPH06197222A (en) | Image processor | |
| JPS6398078A (en) | Histogram calculating device | |
| JP2504582B2 (en) | Matrix scan circuit | |
| JP2512252B2 (en) | Image scaling device | |
| JPH03196257A (en) | Vector processor | |
| JPH02173788A (en) | Character pattern converting circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |