JPS5913786B2 - Image signal encoding processing method - Google Patents

Image signal encoding processing method

Info

Publication number
JPS5913786B2
JPS5913786B2 JP11389479A JP11389479A JPS5913786B2 JP S5913786 B2 JPS5913786 B2 JP S5913786B2 JP 11389479 A JP11389479 A JP 11389479A JP 11389479 A JP11389479 A JP 11389479A JP S5913786 B2 JPS5913786 B2 JP S5913786B2
Authority
JP
Japan
Prior art keywords
line
code
pixel
octant
bit
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
Application number
JP11389479A
Other languages
Japanese (ja)
Other versions
JPS5636774A (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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP11389479A priority Critical patent/JPS5913786B2/en
Publication of JPS5636774A publication Critical patent/JPS5636774A/en
Publication of JPS5913786B2 publication Critical patent/JPS5913786B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、画像信号符号化処理方式、特に線図形を符号
化する画像信号符号化処理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image signal encoding processing method, particularly to an image signal encoding processing method for encoding line figures.

従来の線図形符号化処理方式には、l線図形を直線と円
弧とで近似し、直線の場合には始点と終点との座標を、
円弧の場合には始点と終点との座標および半径(または
中心座標)をコマンド化する方式、1線図形を画素単位
に追跡してその進行方向を順次符号化して(・くチェー
ン符号化方式などがある。
In the conventional line figure encoding processing method, a line figure is approximated by a straight line and a circular arc, and in the case of a straight line, the coordinates of the starting point and ending point are
In the case of a circular arc, there are two methods: a method in which the coordinates of the start point and end point and the radius (or center coordinates) are converted into commands, a one-line figure is traced pixel by pixel, and the direction of movement is sequentially encoded (chain encoding method, etc.). There is.

複雑て細か(・線図形の場合には前者の方式は不適当で
あり、後者のチェーン符号化方式がよサ適していると思
われる。しかし、従来のチェーン符号化方式では線図形
を構成する画素列を追跡し符号化する際に、追跡方向が
常に等方的であるとして1画累進む毎に3ビット(8方
向)で符号化していた。ところが実際には、線図形はあ
る一定の方向に進み続けろことが多いという統計的性質
があるので、このような性質を利用すればさらに符号量
が少なくなる可能性があろ。本発明は、チェーン符号化
法の符号化効率を高めるために線図形の統計的性質を利
用してチェーン符号化することを目的としており、以下
図面にっいて詳細に説明する。
The former method is inappropriate for complex and detailed (line figures), and the latter chain encoding method seems to be more suitable.However, in the conventional chain encoding method, line figures are When tracing and encoding a pixel string, each stroke was encoded using 3 bits (8 directions) assuming that the tracing direction was always isotropic.However, in reality, line figures Since there is a statistical property that there are many cases where progress continues in the same direction, there is a possibility that the amount of codes can be further reduced by utilizing this property.The present invention aims to improve the coding efficiency of the chain coding method. The purpose of this method is to perform chain encoding using the statistical properties of line figures, and will be explained in detail below with reference to the drawings.

第1図は、本発明による画像信号符号化の前提となる、
画素列の番号付けを示したものである。
FIG. 1 shows the premise of image signal encoding according to the present invention.
This shows the numbering of pixel columns.

図示・・ツチングで表わす画素から水平右方向に隣接す
る画素が存在するとき方向符号「O」を与え、右斜め上
方向に接触すろ画素が存在するとき方向符号「1」を与
えるように定める。そして方向符号「O」と「IL「1
」と「2」、・・・・・・、「7」と「O」の如く隣り
合う方向を組み合わせてできる8つの組み合わせについ
て、一脅1として第2図に示すように番号をつけ、この
番号をオクタント番号と呼ぶことにする。一般に、線図
形を構成する画素列の追跡方向は、「O」と「1」、、
「7」と「O」の如く隣り合う方向を例えば「O」、「
1」、「O」、「1」の如く繰わ返すことが多い。この
繰V)起しの場合同一オクタント番号となわ、同一オク
タント番号に属する方向が連続する画素列を1つのセグ
メントとして、画素列を分割することができる。従つて
、画素列をこのようなセグメントに分割し、各画素毎に
追跡方向がそのオクタントに属する2方向の例えば「O
」方向と「1」方向とのいずれでちるかを1ビツトで符
号化する。第3図は本発明によつて得られる一実施例画
像信号符号列を示す。
The direction code ``O'' is given when there is a pixel adjacent to the pixel shown in the figure in the horizontal right direction, and the direction code ``1'' is given when there is a pixel in contact diagonally upward to the right. Then, direction code “O” and “IL”1
” and “2”, ..., “7” and “O”, the eight combinations that can be made by combining adjacent directions are numbered as one threat 1 as shown in Figure 2. Let's call the numbers octant numbers. Generally, the tracking directions of pixel rows that make up a line figure are "O" and "1".
For example, adjacent directions such as "7" and "O" are "O", "
It is often repeated like ``1'', ``O'', and ``1''. In the case of this repetition (V), it is possible to divide a pixel column by using the same octant number and a pixel column in which directions belonging to the same octant number are continuous as one segment. Therefore, the pixel row is divided into such segments, and the tracking direction for each pixel is set to two directions belonging to the octant, for example, "O".
” direction or the “1” direction is encoded with 1 bit. FIG. 3 shows an example image signal code string obtained by the present invention.

1は線図形の始点座標、2一1,2′−1,7−1、・
・・・・・は各セグメントのオクタント番号を示し、2
−2,22−2,7−2、・・・・・・はそのチェーン
長、2−3,25−3,7−3、・・・・・・は各画素
の方向ビツトを、3は線図形の終了コードを示す。
1 is the starting point coordinate of the line figure, 2-1, 2'-1, 7-1, ・
...indicates the octant number of each segment, 2
-2, 22-2, 7-2, . . . are the chain lengths, 2-3, 25-3, 7-3, . . . are the direction bits of each pixel, and 3 is the direction bit of each pixel. Indicates the end code of the line shape.

セグメントのチェーン長を例えば8ビツトで表わし、ま
たセグメントの平均チェーン長がn画素であるとする。
オクタント番号は3ビツト、方向データは1ビツトで表
わされるので、単純なチェーン符号化方式では1画素あ
たV)3ビツトの符号量が必要なのに比ベ本符号化方式
では(3+8+n)/n=1+(11/n)ビツトが必
要となる。n》1の場合には実質上1画素あたジ約1ビ
ツトの符号量で済む。第4図は線図形の画素列追跡の具
体例であり、図示aの画素を始点として図示bの画素ま
でについてセグメントのオクタント番号は01チェーン
長は6である。
Assume that the chain length of a segment is represented by, for example, 8 bits, and that the average chain length of a segment is n pixels.
Since the octant number is represented by 3 bits and the direction data is represented by 1 bit, the simple chain encoding method requires a code amount of V) 3 bits per pixel, whereas in this encoding method, (3+8+n)/n= 1+(11/n) bits are required. In the case of n>>1, the amount of code required is approximately 1 bit per pixel. FIG. 4 is a specific example of tracing a line-shaped pixel column, in which the segment octant number is 01 and the chain length is 6 from the pixel shown in the figure a to the pixel shown in the figure b.

また第0オクタン,のうちの方向0をビツト50′で、
方向1をビツトケ2で表わすと方向ビット列はこの場合
011101となる。第5図は本発明の一実施例構成を
示し、4は画像入力装置、5はフレームメモリ等の画像
記憶装置、6は始点終点検出器、7は始点終点符号器、
8は方向検出器、9は方向符号器、10は方向符号分離
器、11及び12はそれぞれ第1方向及び第2方向レジ
スタ、13はオクタント符号器、14は方向ビツト符号
器、15はカウンタ、16は比較器、1rはレジスタ、
18はチェーン長比較器、19〜22は符号列送出端子
を表わす。この動作を説明すると、画像人力装置4より
入力されフレームメモリ5に蓄わえられた線図形は、始
点終点検出器6により始点a(第4図)が検出.され、
姶点終点符号器7により始点座標が符号化され、始点終
点符号列送出端子22から送出される。次に、フレーム
メモリ5に蓄わえられた線図形は、方向検出器8により
その画素列の向う方向011101が順次検出され、方
向符号器9により符号化される。得られた方向符号列の
最初の2つは、方向符号分離器10により、それぞれ第
1方向レジスタ11及び第2方向レジスタ12に格納さ
れる。オクタント符号器13は第1方向レジスタ11の
内容と第2方向レジスタ12の内容とを読み取v、第1
図および第2図に示すように、処理中の画素列がどのオ
クタント方向に属しているかを符号化する。また、この
最初の2つの方向がオクタント内のいずれの方向である
かを、方向ビツト符号器14により各々1ビットで符号
化する。さらに方向ビツト符号器14はカウンタ15に
動作して、方向ビツトが1つふえるごとにカウンタ15
の内容を1づつふやし、セグメントのチェーン長を記憶
させる。3番目以降の方向符号は比較器16により第1
及び第2方向レジスタ11,12の内容と比較される。
Also, the direction 0 of the 0th octane is bit 50',
If direction 1 is represented by bit number 2, the direction bit string becomes 011101 in this case. FIG. 5 shows the configuration of an embodiment of the present invention, in which 4 is an image input device, 5 is an image storage device such as a frame memory, 6 is a start point/end point detector, 7 is a start/end point encoder,
8 is a direction detector, 9 is a direction encoder, 10 is a direction code separator, 11 and 12 are first and second direction registers, respectively, 13 is an octant encoder, 14 is a direction bit encoder, 15 is a counter, 16 is a comparator, 1r is a register,
18 represents a chain length comparator, and 19 to 22 represent code string sending terminals. To explain this operation, a line figure inputted from the image processing device 4 and stored in the frame memory 5 has a starting point a (FIG. 4) detected by the starting point/end point detector 6. is,
The start point coordinates are encoded by the 8-point/end-point encoder 7 and sent out from the start-end point code string sending terminal 22. Next, in the line figure stored in the frame memory 5, the direction 011101 of the pixel column is sequentially detected by the direction detector 8, and encoded by the direction encoder 9. The first two of the obtained direction code strings are stored by the direction code separator 10 in the first direction register 11 and the second direction register 12, respectively. The octant encoder 13 reads the contents of the first direction register 11 and the contents of the second direction register 12.
As shown in the figure and FIG. 2, it is encoded to which octant direction the pixel column being processed belongs. Furthermore, the direction bit encoder 14 encodes which direction within the octant these first two directions are, each with one bit. Furthermore, the direction bit encoder 14 operates on a counter 15 so that each time the direction bit increases by one, the counter 15 is incremented.
Increment the contents by 1 and store the chain length of the segment. The third and subsequent direction codes are determined by the comparator 16.
and the contents of the second direction registers 11 and 12.

この方向が2つの方向レジスタのいずれかの内容と合致
すれば、方向ビツト符号器14により、第1方向と第2
方向の弁別に用いたと同様の符号を用いて、1方向1ビ
ツトで符号化を行いレジスタ17に格納する。このとき
カウンタ15の値は七で説明したと同じく1づつふえる
。比較器16によね得られた方向符号が2つの方向レジ
スタ11,12のいずれとも合致しない場合には比較器
16はオクタント符号器13にフラグ信号を送り、その
オクタント舟号をオクタント符号列送出端子19から送
出する。また同時に比較器16はチェーン長比較器18
にもフラグ信号を送り、カウンタ15の内容を読み取り
チェーン長を符号化してチェーン長符号列送出端子21
から送出寸る。さらに比較器16は方向ビツト符号列が
蓄積されているレジスタ1rにフラグ信号を送り、蓄積
されている方向ビツト符号列を方向ビット符号列送出端
子20から送出する。これらの一連の動作が終了すると
、比較器16はその最後に得られた、今までのオクタン
トに属さない方向符号を新しいオクタントの第1番目の
方向として第1方向レジスタに蓄わえ、上記の動作を繰
り?す。始点終点検出器6によりフレームメモリ5に蓄
わえられた線図形の終点が検出されたら、そこで最終セ
グメントの処理を終え、オクタント符号、チェーン長、
方向ビツト符号列を送出した後、線図形の終点座標では
なく、線図形の終了を意味する、セグメントコードと区
別できるようなコードを始点終点符号器rにより始点終
点符号列送出端子22から送出する。なお、オクタント
を生成する過程で、第1方向レジスタ11と第2方向レ
ジスタ12の内容が同−のオクタントに属さない方向符
号である場合には、第1方向レジスタ内の方向符号だけ
で1つのセグメントを構成させる。
If this direction matches the contents of either of the two direction registers, the direction bit encoder 14 selects the first direction and the second direction.
Using the same code used for direction discrimination, encoding is performed with one bit per direction and stored in the register 17. At this time, the value of the counter 15 is incremented by 1 as explained in section 7. If the direction code obtained by the comparator 16 does not match any of the two direction registers 11 and 12, the comparator 16 sends a flag signal to the octant encoder 13, and the octant code is sent to the octant code string sending terminal. Send from 19. At the same time, the comparator 16 is connected to the chain length comparator 18.
A flag signal is also sent to the counter 15, the contents of the counter 15 are read, the chain length is encoded, and the chain length code string sending terminal 21
Send it out from here. Furthermore, the comparator 16 sends a flag signal to the register 1r in which the direction bit code string is stored, and sends out the stored direction bit code string from the direction bit code string sending terminal 20. When these series of operations are completed, the comparator 16 stores the direction code obtained at the end that does not belong to the previous octant in the first direction register as the first direction of the new octant, and performs the above operation. Repeat the action? vinegar. When the end point of the line figure stored in the frame memory 5 is detected by the start/end point detector 6, the processing of the final segment is finished, and the octant code, chain length,
After sending out the direction bit code string, the start/end point encoder r sends out from the start/end point code string sending terminal 22 a code that indicates the end of the line figure, not the coordinates of the end point of the line figure, and can be distinguished from a segment code. . In addition, in the process of generating an octant, if the contents of the first direction register 11 and the second direction register 12 are direction codes that do not belong to the same octant, only the direction code in the first direction register is used to generate one direction code. Configure segments.

この場合にはチェーン長は1となる。そして第2方向レ
ジスタの内容を第1方向レジスタに移しかえ、方向符号
器9によつて得られる次の方向符号を第2方向レジスタ
に蓄わえて動作を開始する。また、第1方向レジスタ1
1と第2方向レジスタ12の内容が同一の方向符号であ
る場合には、異なる方向符号が得られたときにその方向
符号を第2方向レジスタに蓄わえて、オクタント符号器
13によりオクメント符号化する。この際方向ビツト符
号とチェーン長は、異なる方向舟号が得られる以前のも
のも積算していく。以七説明したように、本発明によれ
ば、画像信号を少ない符号量で杵号化することができる
ので、画像信号の蓄積に際してのメモリの記憶容量が小
さくてすむ。
In this case, the chain length is 1. Then, the contents of the second direction register are transferred to the first direction register, the next direction code obtained by the direction encoder 9 is stored in the second direction register, and the operation is started. Also, the first direction register 1
If the contents of the first direction register 1 and the second direction register 12 are the same direction code, when a different direction code is obtained, the direction code is stored in the second direction register and octant encoded by the octant encoder 13. do. At this time, the direction bit codes and chain lengths are integrated even before a different direction boat number is obtained. As described above, according to the present invention, an image signal can be encoded with a small amount of code, so that the storage capacity of a memory for storing image signals can be small.

また画像信号の伝送に際して伝送路の伝送容量が小さく
てすむなどの利点がある。
Another advantage is that the transmission capacity of the transmission line is small when transmitting image signals.

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

第1図は本発明の一実施例に用いた画素列の番号付けを
説明する説明図、第2図は同実施例に用いた方向符号と
オクタント番号との対応説明図、第3図は本発明によつ
て得られる一実施例画像信号符号列、第4図は線図形の
画素列追跡の一具体例図、第5図は本発明の一実施例構
成図を示す。 1・・・線図形の始点座標舟号、2−1,2し1,7−
1、・・・・・・:各セグメントのオクタント番号符号
、2−2,2し2,7−2、・・・・・・各セグメント
のチェーン長符号、2−3,2′−3,Z−3c・・・
・・:各画素の方向ビツト、3:線図形の終了コード、
4:画像入力装置、5:フレームメモリ、6:始点終点
検出器、r:始点終点符号器、8:方向検出器、9:方
向符号器、10:方向符号分離器、11:第1方向レジ
スタ、12:第2方向レジスタ、13:オクタント符号
器、14:方向ビツト許号器、15:カウンタ、16:
比較器、1r:レジスタ、18:チエイン長比較器、1
9:オクタント符号列送出端子、20:方向ビツト符号
列送出端子、21:チエイン長符号列送出端子、22:
始点終点符号列送出端子。
FIG. 1 is an explanatory diagram for explaining the numbering of pixel columns used in one embodiment of the present invention, FIG. 2 is an explanatory diagram of the correspondence between direction codes and octant numbers used in the same embodiment, and FIG. FIG. 4 shows a specific example of line-shaped pixel string tracking, and FIG. 5 shows a configuration diagram of an embodiment of the invention. 1... Starting point coordinates of the line figure, 2-1, 2 and 1, 7-
1, ......: Octant number code of each segment, 2-2, 2 to 2, 7-2, ...... Chain length code of each segment, 2-3, 2'-3, Z-3c...
...: Direction bit of each pixel, 3: End code of line figure,
4: Image input device, 5: Frame memory, 6: Start point end point detector, r: Start point end point encoder, 8: Direction detector, 9: Direction encoder, 10: Direction code separator, 11: First direction register , 12: Second direction register, 13: Octant encoder, 14: Direction bit permitter, 15: Counter, 16:
Comparator, 1r: Register, 18: Chain length comparator, 1
9: Octant code string sending terminal, 20: Direction bit code string sending terminal, 21: Chain length code string sending terminal, 22:
Start point end point code string transmission terminal.

Claims (1)

【特許請求の範囲】[Claims] 1 与えられた線図形を符号化してゆく画像信号符号化
処理方式において、線図形を入力する画像入力装置と、
該画像入力装置より入力された線図形を蓄積するフレー
ムメモリと、該フレームメモリに蓄積された線図形を画
素列として追跡する手段とを有し、各画素の追跡方向の
うち隣り合う予め定めた方向の画素列を一組にし、その
画素列の方向と画素連結長とその方向内での方向の変動
分とにより、連鎖状に線図形を符号化していくようにし
たことを特徴とする画像信号符号化処理方式。
1. In an image signal encoding processing method that encodes a given line figure, an image input device that inputs the line figure;
It has a frame memory for storing line figures input from the image input device, and a means for tracing the line figures accumulated in the frame memory as a pixel column, and has means for tracing the line figures stored in the frame memory as a pixel column, and has a frame memory that stores line figures input from the image input device, and means for tracing the line figures stored in the frame memory as a pixel column. An image characterized by forming a set of pixel columns in a direction, and encoding a line figure in a chain by using the direction of the pixel column, the pixel connection length, and the variation in direction within the direction. Signal encoding processing method.
JP11389479A 1979-09-04 1979-09-04 Image signal encoding processing method Expired JPS5913786B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11389479A JPS5913786B2 (en) 1979-09-04 1979-09-04 Image signal encoding processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11389479A JPS5913786B2 (en) 1979-09-04 1979-09-04 Image signal encoding processing method

Publications (2)

Publication Number Publication Date
JPS5636774A JPS5636774A (en) 1981-04-10
JPS5913786B2 true JPS5913786B2 (en) 1984-03-31

Family

ID=14623798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11389479A Expired JPS5913786B2 (en) 1979-09-04 1979-09-04 Image signal encoding processing method

Country Status (1)

Country Link
JP (1) JPS5913786B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662908B (en) * 2012-09-24 2018-03-30 高通股份有限公司 Depth map decodes

Also Published As

Publication number Publication date
JPS5636774A (en) 1981-04-10

Similar Documents

Publication Publication Date Title
US3909785A (en) Apparatus for recognizing hand printed characters
CA1191957A (en) Method and apparatus for compressing and decompressing strings of electrical digital data bits
JPS5913786B2 (en) Image signal encoding processing method
JP2511158B2 (en) Image compression device
JPH0130180B2 (en)
US6987891B2 (en) Image display device
JPS6341107B2 (en)
JPS5856872B2 (en) Expanded character pattern encoder
JPH0311883A (en) Decoding system for variable length code, and facsimile equipment and still picture transmission system
JP3197816B2 (en) Stroke information encoding method
JP2513654B2 (en) Image coding device
JPH0123034B2 (en)
JPH01126073A (en) Method and device for encoding/decoding of image signal
JP2980615B2 (en) Code encoding method for location information
JPS61115176A (en) Binary image processing device
JPH022189B2 (en)
RU1809449C (en) Method for sending facsimile images with character recognition
JPS63269623A (en) Compression data decoder
CN117333559A (en) Image compression method, device, electronic equipment and storage medium
JPS60189350A (en) Handwritten graphic transmitting device
JPH0376065B2 (en)
JPH0896140A (en) Method for compressing image data
JPS6261427A (en) Coding system
JPS62200979A (en) Encoding method for dither picture
JPH02199585A (en) Image processor