JPH0777420B2 - Digital image processor - Google Patents
Digital image processorInfo
- Publication number
- JPH0777420B2 JPH0777420B2 JP60281641A JP28164185A JPH0777420B2 JP H0777420 B2 JPH0777420 B2 JP H0777420B2 JP 60281641 A JP60281641 A JP 60281641A JP 28164185 A JP28164185 A JP 28164185A JP H0777420 B2 JPH0777420 B2 JP H0777420B2
- Authority
- JP
- Japan
- Prior art keywords
- block
- pattern
- code
- image
- rotation
- 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
Links
Landscapes
- Editing Of Facsimile Originals (AREA)
Description
【発明の詳細な説明】 〔技術分野〕 本発明は、デイジタル画像データにより表わされるデイ
ジタル画像に回転処理を行うデイジタル画像処理装置に
関する。Description: TECHNICAL FIELD The present invention relates to a digital image processing apparatus that performs a rotation process on a digital image represented by digital image data.
デイジタル画像を所定サイズのブロツクに分割し、その
ブロツクの画像パターンをブロツク単位で符号化する方
式があるが、この方式で符号化すると、画像を符号化し
たままの状態で比較的容易に画像の移動・回転などの画
像処理をすることができる。それは、この方式ではブロ
ツク単位で符号化してあるので、他のブロツクに影響を
与えずにそのブロツクだけ処理が独立して行なえるから
である。There is a method in which a digital image is divided into blocks of a predetermined size, and the image pattern of the block is coded in block units. Image processing such as movement and rotation can be performed. This is because, in this system, since each block is coded, only that block can be processed independently without affecting other blocks.
しかし、ここで気を付けなければならないことは、回転
の処理をする場合、あくまでもブロツク単位で処理がさ
れただけで、このまま復号化してもその再生像は完全で
ないことである。However, it should be noted here that when the rotation process is performed, only the process is performed in block units, and the reproduced image is not perfect even if the decoding is performed as it is.
これを第6図を使つて説明する。第6図で0がオリジナ
ルの画像とすると、これをブロツク単位で符号化して、
時計方向に90度回転する例を示している。まず、オリジ
ナル画像0は4×4のブロツクサイズの4つのブロツク
01〜04に分割される。そして、それぞれのブロツク01〜
04のパターンを符号器11によつてB11,B12,B21,B22に符
号化し、メモリ12に記憶する。ここで、時計方向に90゜
回転するためには、回転処理がない場合におけるメモリ
12からの読出しをB11,B12,B21,B22という順番だとすれ
ば、第6図に示したようにB21,B11,B22,B12という順番
でメモリ12からの読出しを行なう。This will be described with reference to FIG. If 0 is the original image in FIG. 6, encode this in block units and
An example of rotating 90 degrees clockwise is shown. First, the original image 0 is 4x4 block size 4 blocks.
It is divided into 01 to 04. And each block 01 ~
The pattern of 04 is encoded into B 11 , B 12 , B 21 , and B 22 by the encoder 11 and stored in the memory 12. Here, in order to rotate 90 ° clockwise, the memory in the case where there is no rotation processing
If the reading from 12 is in the order of B 11 , B 12 , B 21 and B 22 , the reading from the memory 12 is in the order of B 21 , B 11 , B 22 and B 12 as shown in FIG. Do.
しかし、これを復号器13でそのまま再生した像R1はオリ
ジナル0を時計方向に90度回転した像にはなつていな
い。これは、ブロツク位置は確かに回転されているが、
各ブロツクの内部がそのままのためである。従つて、ブ
ロツク内部を同じように時計方向に90度回転させて、初
めて完全な再生画像R2を得ることができる。このため
に、復号器13で復号化されたデータを回転器14でそれぞ
れの処理内容に応じて処理し、各ブロツク内の画素の並
び換えをしなければならない。However, the image R 1 reproduced by the decoder 13 as it is is not an image obtained by rotating the original 0 clockwise by 90 degrees. This is because the block position is certainly rotated,
This is because the inside of each block is as it is. Therefore, the complete reconstructed image R 2 can only be obtained by rotating the inside of the block clockwise by 90 ° in the same manner. For this reason, the data decoded by the decoder 13 must be processed by the rotator 14 according to the contents of each processing, and the pixels in each block must be rearranged.
即ち、第7図に示す如くブロツクサイズが4×4であ
り、ブロツクを構成する画素位置をX(i,j)で示すと
すると、ブロツクを構成する各画素に対して、回転器14
において以下の如くの位置変換処理を必要としていた。That is, if the block size is 4 × 4 as shown in FIG. 7 and the pixel position forming the block is indicated by X (i, j), the rotator 14 is provided for each pixel forming the block.
In the above, position conversion processing as described below was required.
X(i,j)→x(j,5−i)90度回転 →x(5−i,5−j)180度回転 →x(5−j,i)270度回転 →x(i,5−j)鏡像 →x(j,i)90度回転+鏡像 →x(5−i,j)180度回転+鏡像 →x(5−j,5−i)270度回転+鏡像 回転方向は時計方向、鏡像はi軸に対してとる。X (i, j) → x (j, 5-i) 90 degree rotation → x (5-i, 5-j) 180 degree rotation → x (5-j, i) 270 degree rotation → x (i, 5) -J) Mirror image → x (j, i) 90 degree rotation + mirror image → x (5-i, j) 180 degree rotation + mirror image → x (5-j, 5-i) 270 degree rotation + mirror image The direction and the mirror image are taken with respect to the i-axis.
しかし、このような処理をハードウエアでしかもリアル
タイムに実行することは、困難である。また、画像の処
理内容に従つて、ブロツク内の画素の処理の仕方も変え
なければならないので、この問題は大きくなる。However, it is difficult to execute such processing by hardware and in real time. Further, the method of processing the pixels in the block must be changed according to the processing content of the image, and this problem becomes serious.
本発明は以上の点に鑑みてなされたもので、デイジタル
画像の回転処理を、簡易な処理により高速に実行可能と
することを目的とし、詳しくは、デイジタル画像データ
を夫々N×N画素からなる複数のブロックに分割し、各
ブロックをブロック内の画像データのパターンを示すパ
ターンコードとパターンの方向を示す状態コードからな
るブロックコードに符号化する符号化手段と、前記符号
化手段により符号化された各ブロックのブロックコード
を記憶する記憶手段と、画像の回転の指示に従って、前
記記憶手段からのブロックコードの読み出し順を変更す
るとともに、読み出した各ブロックコードの状態コード
を変換する回転処理手段と、前記回転処理手段により回
転処理されて出力される各ブロックコードをN×N画素
からなる画像パターンに復号する復号手段とを有するデ
イジタル画像処理装置を提供するものである。The present invention has been made in view of the above points, and an object thereof is to enable a digital image rotation process to be executed at high speed by a simple process. More specifically, the digital image data is composed of N × N pixels Encoding means for dividing into a plurality of blocks and encoding each block into a block code consisting of a pattern code indicating a pattern of image data in the block and a status code indicating a direction of the pattern, and encoded by the encoding means. Storage means for storing the block code of each block, and rotation processing means for changing the reading order of the block code from the storage means and converting the status code of each read block code in accordance with an instruction of image rotation. , An image pattern composed of N × N pixels for each block code which is rotated and output by the rotation processing means. (EN) A digital image processing device having a decoding means for decoding the image.
以下、本発明を好ましい実施例に基づいて説明する。本
発明の概念を説明したのが、第1図である。Hereinafter, the present invention will be described based on preferred embodiments. FIG. 1 illustrates the concept of the present invention.
オリジナル画像0は4×4のブロツクに分割され、それ
ぞれのブロツクは符号器1によつて、そのブロツクのパ
ターン構造を表すパターンコードとそのパターンの回転
・対称の状態を表す状態コードとを有するブロツクコー
ドに符号化される。このブロツクコードがメモリ2に記
憶される。The original image 0 is divided into 4 × 4 blocks, and each block has a pattern code representing the pattern structure of the block and a status code representing the rotational / symmetrical state of the pattern by the encoder 1. Encoded in the code. This block code is stored in the memory 2.
そして、ここでも画像を時計方向に90度回転するとする
には、回転処理を要しない場合の読出し順B11,B12,B21,
B22に対して、メモリ2から各ブロツクコードをこの処
理のために、B21,B11,B22,B12の順番で読み出すととも
に、回転器5で各ブロツクコードの回転モードを表す状
態コードに処理を施して、ブロツクコードそのものをオ
リジナルのブロツクのパターンを90度回転したパターン
のブロツクコードへと変換する。Then, also in this case, in order to rotate the image clockwise by 90 degrees, the reading order B 11 , B 12 , B 21 ,
Against B 22, in order from the memory 2 in this process each Burotsukukodo, B 21, B 11, B 22, B 12 reads in the order of the state code in rotator 5 represents the rotation mode of the Burotsukukodo Then, the block code itself is converted into a block code with a pattern obtained by rotating the original block pattern by 90 degrees.
このようにして、回転処理されたブロツクコードを復号
器5で復号して像を再生すれば、オリジナル0の90度回
転像Rを得ることができ、ブロツク内の各画素に対する
個別の処理は不必要となる。In this way, if the rotated block code is decoded by the decoder 5 to reproduce the image, the 90-degree rotated image R of the original 0 can be obtained, and individual processing for each pixel in the block is not possible. Will be needed.
ところで、デイジタル画像のブロツク符号化方式の中
で、ブロツクのパターンを符号化する方式の代表的なも
のとして、ベクトル量子化による符号化方式が良く知ら
れている。このベクトル量子化はブロツクの画素をベク
トルの要素として考えて4×4のブロツクなら、入力画
像のブロツクを16次元ベクトルとしてとらえる。そし
て、同じ16次元の空間でいくつかのベクトルを再生ベク
トルとして登録して、入力ベクトルを歪が最小となるよ
うな再生ベクトルへ写像する。たとえば、入力画像が1
又は0しかとらない2値画像とすると4×4のブロツク
には216通りのパターンが存在するが、異なるいくつか
のパターンに同一コードを割付けることにより再生像の
パターンとして例えば28通りのパターンを登録すれば情
報量としては、16ビツトから8ビツトへと1/2にするこ
とができる。尚、再生画像の歪を更に許容できる場合に
は216通りのパターンを25通りのパターンに圧縮しても
よい。By the way, of the digital image block encoding methods, a vector quantization encoding method is well known as a representative method for encoding a block pattern. This vector quantization considers the block pixel as a vector element, and if the block is 4 × 4, the block of the input image is regarded as a 16-dimensional vector. Then, several vectors are registered as reproduction vectors in the same 16-dimensional space, and the input vector is mapped to a reproduction vector that minimizes distortion. For example, if the input image is 1
Or, if it is a binary image that takes only 0, there are 2 16 patterns in a 4 × 4 block, but by assigning the same code to several different patterns, for example, there are 2 8 patterns in the reproduced image. If a pattern is registered, the amount of information can be halved from 16 bits to 8 bits. If the distortion of the reproduced image can be further tolerated, 2 16 patterns may be compressed into 25 patterns.
このベクトル量子化に際し、符号化の際にはブロツクの
パターンは再生ベクトルを示すアドレスとして符号化さ
れる。またハードウエアとして実現する際には符号化或
いは復号化のための変換テーブルを記憶したメモリROM
等により写像を比較的容易に実現することができる。こ
のようにベクトル量子化による符号化は、ブロツクのパ
ターン構造を符号化する方式ととらえることができる。In this vector quantization, the block pattern is encoded as an address indicating the reproduction vector in the encoding. Also, when implemented as hardware, a memory ROM that stores a conversion table for encoding or decoding.
The mapping can be realized relatively easily by the above. In this way, the coding by vector quantization can be regarded as a method for coding the block pattern structure.
そして、前述の様にこのような符号化において、パター
ンの構造を表すパターンコードと、そのパターンの回転
・対称の状態を表す状態コードとによりブロックのパタ
ーンを表現して符号化するものである。これは、再生パ
ターンとして登録する際に回転・対称処理により同一パ
ターンとなる複数のパターンのうちの1つのパターンを
基本パターンとして考え、この基本パターンを回転・対
称処理して得ることのできる複数のパターンを登録し、
これら基本パターンに派生する複数パターンを表すパタ
ーンコードは基本パターンのものと共通とし、その回転
・対称モードを表す状態コードを各パターンを表すパタ
ーンコードと合わせる。これにより、状態コードのみを
変更することにより、例えば所望の角度回転したパター
ンのコードを得ることができる。As described above, in such encoding, the pattern of the block is expressed and encoded by the pattern code indicating the structure of the pattern and the state code indicating the rotational / symmetrical state of the pattern. This is because a plurality of patterns that can be obtained by considering one pattern out of a plurality of patterns that become the same pattern by rotation / symmetry processing when registering as a reproduction pattern as a basic pattern and performing rotation / symmetry processing on this basic pattern. Register the pattern,
The pattern code representing a plurality of patterns derived from these basic patterns is common to that of the basic pattern, and the status code representing the rotation / symmetry mode thereof is combined with the pattern code representing each pattern. As a result, by changing only the status code, for example, a code having a pattern rotated by a desired angle can be obtained.
第2図は、以上の概念に基づく符号化の具体例であつ
て、4×4のブロツクの画像を8ビツトで符号化する場
合を示し、8ビツトのブロツクコードのうち上位5ビツ
トに画像パターンを示すパターンコードPCを、また、下
位3ビツトに回転・対称のモードを表わす状態コードSC
を割り当てる。尚、この例では216通りのパターンを25
通りのパターンコードに圧縮している。FIG. 2 shows a concrete example of the encoding based on the above concept, and shows the case of encoding a 4 × 4 block image with 8 bits, and the image pattern is formed in the upper 5 bits of the 8 bit block code. , And the status code SC indicating the rotational / symmetrical mode in the lower 3 bits.
Assign Incidentally, the pattern of 2 sixteen in this example 2 5
It is compressed to the street pattern code.
第3図は第2図示のブロツクコードにより符号化されて
いる画像BPを時計方向に90度回転する動作例を示すもの
で、画像BPに対応したパターンコードPCを「11111」と
し、また、画像BPを基本パターンとして登録してあると
する。前述の如く、基本パターンは状態コードSCとして
“000"とすれば、基本パターンのブロツクコードは“11
111000"となる。これを90度回転させたパターンについ
ては、状態コードSCとして、時計方向への90度回転を
“001"とすればこの回転処理後のパターンBP1を表わす
ブロツクコードは、“11111001"となる。FIG. 3 shows an operation example in which the image BP encoded by the block code shown in FIG. 2 is rotated 90 degrees in the clockwise direction. The pattern code PC corresponding to the image BP is “11111”, and the image is It is assumed that BP is registered as a basic pattern. As mentioned above, if the basic pattern is "000" as the status code SC, the block code of the basic pattern is "11".
111000 ". For a pattern rotated 90 degrees, if the clockwise 90 degree rotation is" 001 "as the status code SC, the block code representing the pattern BP 1 after this rotation processing is" It becomes 11111001 ".
この時この回転・対称モードを表すコード付けを以下の
様に行なうことで、状態コードSCそのものを再生ベクト
ルとして利用することができる。そのためには、状態コ
ードSCを基本パターンに対する絶対的な回転・対称の状
態を表すだけのコードとしてとらえるのではなく、相対
的な回転・対称の状態を表すコードとする。こうするこ
とで、もとの状態コードSCが基本パターンに対してどの
ような状態にあつても同一の処理とすることで処理前と
処理後では相対的に同一の状態を作り出すことができ
る。At this time, the status code SC itself can be used as the reproduction vector by performing the following coding for the rotational / symmetrical mode. For that purpose, the state code SC is not regarded as a code merely indicating an absolute rotational / symmetrical state with respect to the basic pattern, but is a code indicating a relative rotational / symmetrical state. By doing so, the same state can be created before and after the processing by performing the same processing regardless of the state of the original state code SC with respect to the basic pattern.
以下に状態コードSCの例を示す。また、第4図に状態コ
ードSCによる画像の状態遷移図を示す。An example of status code SC is shown below. Further, FIG. 4 shows a state transition diagram of an image by the state code SC.
基本パターン 000 90度回転 001 180度回転 010 270度回転 011 鏡像 111 90度回転+鏡像 110 180度回転+鏡像 101 270度回転+鏡像 100 即ち、基本パターンを示す状態コードSCを000とし、8
つの状態を上述の様に3ビツトのコードで表わす。そし
て、第4図の状態遷移図に示すように、8つの回転対称
の状態間に規則性をもたせてある。Basic pattern 000 90 degree rotation 001 180 degree rotation 010 270 degree rotation 011 Mirror image 111 90 degree rotation + mirror image 110 180 degree rotation + mirror image 101 270 degree rotation + mirror image 100 That is, the status code SC indicating the basic pattern is 000, 8
One state is represented by a 3-bit code as described above. And, as shown in the state transition diagram of FIG. 4, there is a regularity between the eight rotationally symmetric states.
すなわち、3ビツトの状態コードSCのうち下位2ビツト
に1を加えることで、そのパターンを右(時計)方向に
90度回転させたパターンのコードにすることができる。
また、逆に下位2ビツトから1を引く毎に左(反時計)
方向にパターンを90度回転させることができる。さら
に、状態コードSCの3ビツトの各ビツトを反転させる
(0なら1に、1なら0にする)ことで、そのパターン
の鏡像とすることができる。That is, by adding 1 to the lower 2 bits of the status code SC of 3 bits, the pattern is moved to the right (clockwise) direction.
It can be a pattern code rotated 90 degrees.
On the contrary, every time 1 is subtracted from the lower 2 bits, left (counterclockwise)
You can rotate the pattern 90 degrees in any direction. Further, by inverting each of the 3 bits of the status code SC (1 is set to 0, 0 is set to 1), a mirror image of the pattern can be obtained.
このようなコード化をすれば、ベクトル量子化のような
符号化の際に、入力ブロツクを再生ベクトルへ写像する
のに基本的パターンとか、それを何度回転させたパター
ンとかいうようなことを意識せずにすべて同一レベルの
再生ベクトルとして扱うことができる。尚、この時注意
しなければならないことは、ある基本パターンを回転・
対称処理して得られるパターンを再び基本パターンとし
ないことである。With this kind of coding, we should be aware of the basic pattern for mapping the input block to the reproduction vector, and the pattern of how many times it was rotated, when coding such as vector quantization. All can be treated as reproduction vectors of the same level. At this time, it is necessary to be careful when rotating a certain basic pattern.
That is, the pattern obtained by the symmetric processing is not used as the basic pattern again.
第5図は、状態コードSCの処理を実現するための第1図
示の回転器5の詳細な構成例である。C2,C1,C0は第3図
で示した回転・対称モードを表す3ビツトの状態コード
SCである。FIG. 5 is a detailed configuration example of the rotator 5 shown in FIG. 1 for realizing the processing of the status code SC. C 2 , C 1 and C 0 are 3-bit status codes indicating the rotational / symmetrical mode shown in FIG.
SC.
また、R1,R0はパターンの回転角、また、Mは鏡像処理
の有無を示す信号であつて、例えば、キーボードやデジ
タイザ等の入力装置を用いたオペレータからの画像処理
指令に従つた信号である。信号Mが“1"で状態コードSC
の3ビツトの反転、即ち、鏡像処理を指示する。また、
信号R1,R0の組合せにより以下の様な処理を指示する。Further, R 1 and R 0 are rotation angles of the pattern, and M is a signal indicating the presence or absence of mirror image processing, for example, a signal according to an image processing command from an operator using an input device such as a keyboard or a digitizer. Is. Signal M is "1" and status code is SC
Inversion of 3 bits, that is, a mirror image processing is instructed. Also,
The following processing is instructed by the combination of the signals R 1 and R 0 .
21は2ビツトの加算器で、入力する状態コードSCのうち
の下位2ビツト(C1,C0)を前述の信号R1,R0により回転
処理するもので、具体的にはC1C0+R1R0の加算動作し、
加算結果の下位2ビツトをY1Y0として出力する。 Reference numeral 21 is a 2-bit adder for rotating the lower 2 bits (C 1 , C 0 ) of the input status code SC by the aforementioned signals R 1 , R 0. Specifically, C 1 C 0 + R 1 R 0 addition operation,
The lower 2 bits of the addition result are output as Y 1 Y 0 .
22〜25は入力信号のレベルを反転するインバータ、26〜
31はアンドゲート、32〜34はオアゲートである。状態コ
ードSCの上位1ビツトのC2及び加算器21の2つの出力
Y1,Y0は夫々インバータ22〜24により反転されてアンド
ゲート26,28,30に入力され、また、C2,Y1,Y0はそのまま
アンドゲート27,29,31に入力される。アンドゲート26,2
8,30には信号Mが入力され、また、アンドゲート27,29,
31には信号Mをインバータ25で反転した信号が入力され
る。22-25 are inverters that invert the level of the input signal, 26-
31 is an AND gate, and 32 to 34 are OR gates. Two outputs of adder 21 and C 2 of upper 1 bit of status code SC
Y 1 and Y 0 are respectively inverted by inverters 22 to 24 and input to AND gates 26, 28 and 30, and C 2 , Y 1 and Y 0 are input to AND gates 27, 29 and 31 as they are. AND gate 26,2
Signal M is input to 8,30, and AND gate 27,29,
A signal obtained by inverting the signal M by the inverter 25 is input to 31.
従つて、信号Mが“0"の場合はアンドゲート27,29,31の
入力、即ち、C2,Y1,Y0が夫々オアゲート32,33,34を通し
てC′2,C′1,C′0として出力される。また、信号Mが
“1"の場合はアンドゲート26,28,30の入力、即ち、C2,Y
1,Y0を反転した値が夫々オアゲート32,33,34を通して
C′2,C′1,C′0として出力される。この様にして、加
算器21にて回転処理された状態コードSCが鏡像処理され
る。Accordance connexion, input of the AND gate 27, 29, 31 in the case of the signal M is "0", i.e., C 2, Y 1, C Y 0 is through respective OR gate 32,33,34 '2, C' 1, C It is output as' 0 . When the signal M is "1", the inputs of the AND gates 26, 28 and 30, that is, C 2 and Y
The inverted values of 1 and Y 0 are output as C ′ 2 , C ′ 1 and C ′ 0 through the OR gates 32, 33 and 34, respectively. In this way, the status code SC rotated by the adder 21 is mirror-processed.
以上の如く、第5図示の回転器5により状態コードSCが
処理指令に従つて、変換される。尚、ブロツクコードの
うちパターンコードは回転器5では何ら処理されない。As described above, the status code SC is converted by the rotator 5 shown in FIG. 5 in accordance with the processing command. The pattern code of the block code is not processed by the rotator 5.
この様にして処理された状態コードSC及びパターンコー
ドPCを含むブロツクコードは第1図示の復号器におい
て、前述した如くの変換テーブルの検索技術を用いて画
像パターンに復号される。The block code including the status code SC and the pattern code PC thus processed is decoded into an image pattern in the decoder shown in FIG. 1 by using the conversion table search technique as described above.
以上説明した実施例では符号化のブロツクを4×4とし
たが、これに限るものではなく、また、符号化すべき画
素も白/黒の2値に限らず、階調性をもつものであつて
もよい。また、パターンコードは5ビツト、状態コード
は3ビツトに夫々限らず、圧縮率や処理内容に応じてビ
ツト数は増減するものである。In the embodiment described above, the encoding block is 4 × 4, but the present invention is not limited to this, and the pixel to be encoded is not limited to the binary value of white / black and has gradation. May be. Further, the pattern code is not limited to 5 bits and the status code is not limited to 3 bits, and the number of bits is increased or decreased according to the compression rate or the processing content.
以上説明したように、ベクトル量子化のようなブロツク
のパターンを符号化する際に、ブロツクの符号をパター
ンを表わすコードとそのパターンの回転および対称の状
態等を表すコードとから構成することで、符号化した状
態で回転・対称のような処理をする際にブロツク内の画
素の処理も符号に簡単な操作を施すことで高速に実現す
ることができる。As described above, when encoding a block pattern such as vector quantization, by configuring the block code from a code representing the pattern and a code representing the rotation and symmetry states of the pattern, When processing such as rotation and symmetry in the encoded state, the processing of pixels in the block can be realized at high speed by performing a simple operation on the code.
また、ベクトル量子化のように、その再生像に歪を生じ
る符号化方式においては、その回転・対称のブロツクは
必ず存在するから、どのような回転・対称をしても、そ
の再生像の間では画質の差が生じず、たとえば、90゜回
転した像も、180゜回転した像も画質としては全く同一
のものを得ることが出来ることは、実用上大きなメリツ
トである。In addition, in a coding method that causes distortion in the reconstructed image, such as vector quantization, the block of rotation and symmetry always exists, so no matter what rotation or symmetry, In terms of image quality, there is no difference in image quality, and it is practically a great advantage that an image rotated 90 ° and an image rotated 180 ° can have exactly the same image quality.
以上説明した様に、本発明によると、デイジタル画像の
回転処理を、画素単位の複雑で多量な処理を行うことな
しに、画像の回転の指示に従って、記憶手段からのブロ
ックコードの読み出し順を変更するとともに、読み出し
た各ブロックコードの状態コードを変換するという簡易
な処理によって高速に実行可能となる。As described above, according to the present invention, the order of reading the block code from the storage unit is changed according to the image rotation instruction without performing a complicated and large amount of processing for rotating a digital image in pixel units. At the same time, the simple execution of converting the read status code of each block code enables high-speed execution.
第1図は本発明による符号化の概念を示す図、第2図は
本発明による符号化に用いるコードの例を示す図、第3
図は画像処理の一例を示す図、第4図は状態遷移図、第
5図は回転器の構成例を示す図、第6図は従来の符号化
を示す図、第7図は従来の画像処理の一例を示す図であ
り、1は符号器、5は回転器、3は復号器である。FIG. 1 is a diagram showing a concept of encoding according to the present invention, FIG. 2 is a diagram showing an example of a code used for encoding according to the present invention, and FIG.
FIG. 4 is a diagram showing an example of image processing, FIG. 4 is a state transition diagram, FIG. 5 is a diagram showing a configuration example of a rotator, FIG. 6 is a diagram showing conventional encoding, and FIG. 7 is a conventional image. It is a figure which shows an example of a process, 1 is an encoder, 5 is a rotator, 3 is a decoder.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐藤 幸夫 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (56)参考文献 特開 昭54−2619(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yukio Sato 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (56) Reference JP-A-54-2619 (JP, A)
Claims (1)
らなる複数のブロックに分割し、各ブロックをブロック
内の画像データのパターンを示すパターンコードとパタ
ーンの方向を示す状態フードからなるブロックコードに
符号化する符号化手段と、 前記符号化手段により符号化された各ブロックのブロッ
クコードを記憶する記憶手段と、 画像の回転の指示に従って、前記記憶手段からのブロッ
クコードの読み出し順を変更するとともに、読み出した
各ブロックコードの状態コードを変換する回転処理手段
と、 前記回転処理手段により回転処理された出力される各ブ
ロックコードをN×N画素からなる画像パターンに復号
する復号手段とを有することを特徴とするデイジタル画
像処理装置。1. Digital image data is divided into a plurality of blocks each consisting of N × N pixels, and each block is divided into a block code consisting of a pattern code showing a pattern of image data in the block and a state hood showing a pattern direction. Encoding means for encoding, storage means for storing the block code of each block encoded by the encoding means, and changing the reading order of the block code from the storage means according to an instruction of image rotation. Rotation processing means for converting the read status code of each block code, and decoding means for decoding each output block code rotated by the rotation processing means into an image pattern consisting of N × N pixels. Digital image processing device characterized by:
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60281641A JPH0777420B2 (en) | 1985-12-13 | 1985-12-13 | Digital image processor |
| US06/940,421 US4797945A (en) | 1985-12-13 | 1986-12-11 | Image data coding apparatus |
| US07/201,164 US5065446A (en) | 1985-12-13 | 1988-06-02 | Image data coding apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60281641A JPH0777420B2 (en) | 1985-12-13 | 1985-12-13 | Digital image processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62140554A JPS62140554A (en) | 1987-06-24 |
| JPH0777420B2 true JPH0777420B2 (en) | 1995-08-16 |
Family
ID=17641936
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60281641A Expired - Fee Related JPH0777420B2 (en) | 1985-12-13 | 1985-12-13 | Digital image processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0777420B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2044404C (en) * | 1990-07-31 | 1998-06-23 | Dan S. Bloomberg | Self-clocking glyph shape codes |
| USRE38758E1 (en) * | 1990-07-31 | 2005-07-19 | Xerox Corporation | Self-clocking glyph shape codes |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5929020B2 (en) * | 1977-06-08 | 1984-07-17 | 松下電器産業株式会社 | 2D block encoding method |
-
1985
- 1985-12-13 JP JP60281641A patent/JPH0777420B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62140554A (en) | 1987-06-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5065446A (en) | Image data coding apparatus | |
| CN110602491B (en) | Intra-frame chroma prediction method, device and equipment and video coding and decoding system | |
| US4517606A (en) | Apparatus for processing video signals | |
| KR100241792B1 (en) | Method and apparatus for encoding and decoding image data | |
| JPH0771185B2 (en) | Image data conversion method | |
| JP2835187B2 (en) | Encoder / decoder and encoding / decoding method | |
| JPS62501670A (en) | Image transmission method and device | |
| JPH0326947B2 (en) | ||
| JPS5937774A (en) | Method and device for encoding picture signal | |
| JPS59178077A (en) | Method for compressing data of binary picture | |
| JPH0777420B2 (en) | Digital image processor | |
| JP2672521B2 (en) | Image processing method | |
| KR940013225A (en) | Image encoding method and image encoding / decoding method | |
| JP2675787B2 (en) | Encoding method | |
| JPH09139955A (en) | Data encoding apparatus and method, and data decoding apparatus and method | |
| JPH0664605B2 (en) | Image processing device | |
| JP3209396B2 (en) | Image data compression method and apparatus | |
| JP2506794B2 (en) | Decryption processing method | |
| JPS6119080B2 (en) | ||
| JPS6341271B2 (en) | ||
| JP2995740B2 (en) | Facsimile image density converter | |
| JP2547761B2 (en) | Image coding device | |
| JPS6345976A (en) | Picture decoder | |
| JP2624659B2 (en) | Superimposed block decoding device | |
| JPS63287265A (en) | Picture processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |