JP2001111844A - Coding processing method and coding processing device - Google Patents

Coding processing method and coding processing device

Info

Publication number
JP2001111844A
JP2001111844A JP28901599A JP28901599A JP2001111844A JP 2001111844 A JP2001111844 A JP 2001111844A JP 28901599 A JP28901599 A JP 28901599A JP 28901599 A JP28901599 A JP 28901599A JP 2001111844 A JP2001111844 A JP 2001111844A
Authority
JP
Japan
Prior art keywords
line
encoding
data
image data
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28901599A
Other languages
Japanese (ja)
Inventor
Hideyuki Wakamiya
秀行 若宮
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.)
CHIPS TECHNOLOGY Inc I
I-CHIPS TECHNOLOGY Inc
Original Assignee
CHIPS TECHNOLOGY Inc I
I-CHIPS TECHNOLOGY Inc
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 CHIPS TECHNOLOGY Inc I, I-CHIPS TECHNOLOGY Inc filed Critical CHIPS TECHNOLOGY Inc I
Priority to JP28901599A priority Critical patent/JP2001111844A/en
Publication of JP2001111844A publication Critical patent/JP2001111844A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a coding processing device that attains coding processing at a higher speed. SOLUTION: In parallel with coding processing of a just preceding line, image data by a newest line received by a 1st line memory are compared with image data by one just preceding line received by a 2nd line memory. Then the image data are coded based on the result of comparison.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、直列に接続された
複数のラインメモリを用いて画像データの符号化を行う
符号化処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding processing method for encoding image data using a plurality of line memories connected in series.

【0002】[0002]

【従来の技術】従来、ファクシミリ通信等に使用される
画像データの圧縮符号化方式としては、MH(Modified
Huffman)方式、MR(Modified Read)方式、MMR
(Modified Modified Read)方式が使用されていた。M
H方式は、白または黒の画素の連続数を符号化する手法
であり、各走査線単位で圧縮される一次元の圧縮符号化
方式である。MR方式は、垂直方向、即ち相隣する2走
査線(ライン)間の相関を利用して効率を高めた圧縮符
号化方式である。MMR方式はMR方式を一部改良して
圧縮効率を更に高めた方式であり、原理的にはMR方式
と同一である。MH,MR,MMRの各方式は、いずれ
も可逆的、即ち元の状態に100%復元可能な方式であ
る。
2. Description of the Related Art Conventionally, as a compression coding method of image data used for facsimile communication or the like, MH (Modified
Huffman) method, MR (Modified Read) method, MMR
(Modified Modified Read) method was used. M
The H method is a method of encoding the number of continuous white or black pixels, and is a one-dimensional compression encoding method in which each scanning line is compressed. The MR method is a compression coding method in which the efficiency is improved by utilizing the correlation between two scanning lines (lines) in the vertical direction, that is, adjacent to each other. The MMR system is a system in which the compression efficiency is further improved by partially improving the MR system, and is in principle the same as the MR system. Each of the MH, MR, and MMR systems is a reversible system, that is, a system that can restore 100% to the original state.

【0003】一方、近年のコンピュータ技術、特にデジ
タル画像技術の発展に伴って、種々の画像の圧縮符号化
方式が望まれ、開発されている。その中で、可逆的、即
ち元の状態に100%復元可能な方式として、いわゆる
JBIG(Joint Bi-level Image coding expert Grou
p)方式がITU−T(International Telecommunicati
on Union-Telecommunication recommendation)勧告
T.82として規定されており、それをファクシミリ通
信に適用するための規格としてITU−T勧告T.85
が規定されている。
On the other hand, with the development of computer technology, especially digital image technology in recent years, various image compression coding systems have been desired and developed. Among them, as a reversible method, that is, a method capable of 100% restoration to the original state, a so-called JBIG (Joint Bi-level Image coding expert Grou
p) method is ITU-T (International Telecommunication
on Union-Telecommunication recommendation). 82 as a standard for applying it to facsimile communication. 85
Is stipulated.

【0004】ところで、JBIG方式の符号化に際して
は、符号化対象の画像を複数の副走査線(ライン)単位
でストライプと呼ばれる区画に分割して処理する。そし
て、各ストライプから直接得られた2値画像データ(ド
ットデータ)は、対象画素とそれが位置するライン及び
その直前の1または2ラインの所定範囲の画素相互間で
の相関関係に応じて符号化されてSCD(ストライプ符
号化データ)となる。更に、SCDは所定の処理により
PSCD(保護されたストライプ符号化データ)とされ
る。そして、PSCDに1ストライプ分のデータの終了
を示す終端マーカが付加されてSDE(ストライプデー
タ実体)が生成される。個々のSDEにはFMS(フロ
ーティングマーカセグメント)が付加され、そのセット
を複数用いて1枚分の画像のBID(2値画像データ)
を形成する。更に、このBIDには、それが生成された
際の種々のパラメータを記録したBIH(2値画像ヘッ
ダ)が付加されてBIE(2値画像実体)が形成され
る。
[0004] By the way, in encoding by the JBIG method, an image to be encoded is divided into a plurality of sub-scanning lines (lines) and divided into sections called stripes. The binary image data (dot data) directly obtained from each stripe is encoded according to the correlation between the target pixel, the line where it is located, and one or two lines immediately before the target pixel in a predetermined range. Into SCD (striped encoded data). Further, the SCD is converted into PSCD (protected stripe coded data) by a predetermined process. Then, an end marker indicating the end of one stripe of data is added to the PSCD, and an SDE (striped data entity) is generated. FMS (floating marker segment) is added to each SDE, and BID (binary image data) of one image is used by using a plurality of sets.
To form Further, the BID is added with a BIH (binary image header) recording various parameters when the BID is generated, thereby forming a BIE (binary image entity).

【0005】JBIG方式の符号化処理に際しては、符
号化対象の画素が含まれるラインとその直前のラインと
の2ラインの画素を用いて符号化を行なう場合と、更に
もう1ライン直前のラインとの3ラインの画素で符号化
を行なう場合とがある。また、最低解像度レイヤの典型
的予測を行う場合(TPBON)には、符号化対象画素
を含むラインとその直前のラインが一致した場合に例外
処理を行う。すなわち、全てのラインの先頭にSLNT
Pデータを付加しておき、一致した場合にはSLNTP
データの符号化のみを行い、不一致の場合にはSLNT
Pデータを含むライン全体を符号化する。このような処
理を実現するために、従来は、3ライン分のラインバッ
ファを用意し、そこから読み出したデータに対して比較
を行っている。そして、符号化対象画素を含むラインと
その直前のラインの比較が終わった後、その結果に応じ
た符号化処理を行っていた。
[0005] In the encoding process of the JBIG system, encoding is performed using two lines of pixels including a line including a pixel to be encoded and a line immediately before the line. In some cases, encoding is performed using pixels of three lines. When typical prediction of the lowest resolution layer is performed (TPBON), exception processing is performed when the line including the pixel to be encoded matches the line immediately before. That is, SLNT is added to the beginning of all lines.
P data is added, and if they match, SLNTP
Only data is encoded, and if they do not match, SLNT
Encode the entire line containing the P data. Conventionally, in order to realize such processing, a line buffer for three lines is prepared, and data read from the line buffer is compared. After the comparison between the line including the pixel to be encoded and the line immediately before the line is completed, the encoding process according to the result is performed.

【0006】[0006]

【発明が解決しようとする課題】上述した従来の方法で
は、ラインの比較を行っている間、符号化処理部は停止
している。また、ラインメモリに蓄えられているデータ
の比較時と、符号化時とで2回の読み出し動作が必要と
なる。このような手順が、符号化処理の高速化の妨げの
一因となっていた。
In the above-described conventional method, the encoding processing unit is stopped while comparing the lines. Further, two reading operations are required at the time of comparing data stored in the line memory and at the time of encoding. Such a procedure has been one of the obstacles to speeding up the encoding process.

【0007】本発明は上記のような状況に鑑みてなされ
たものであり、符号化処理の高速化に寄与する符号化処
理方法及び符号化処理装置を提供することを目的とす
る。
[0007] The present invention has been made in view of the above situation, and has as its object to provide an encoding method and an encoding apparatus which contribute to speeding up of encoding processing.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するため
に、本発明に係る符号化処理方法においては、入力画像
データをライン単位で保持すると同時に、保持される前
の符号化対象画素を含む符号化対象ラインデータと、直
前のラインデータとを比較する。そして、その比較の結
果に基づいて入力画像データの符号化処理を行う。
In order to solve the above-mentioned problems, in an encoding processing method according to the present invention, input image data is stored in units of lines, and at the same time, a target pixel to be coded before being stored is included. The line data to be encoded is compared with the line data immediately before. Then, encoding processing of the input image data is performed based on the result of the comparison.

【0009】また、本発明に係る符号化処理装置は、入
力画像データをライン単位で保持するラインメモリと;
ラインメモリに保持される前の符号化対象画素を含む符
号化対象ラインデータと、直前のラインデータとを比較
する比較手段と;比較手段による比較の結果に基づいて
入力画像データの符号化処理を行う符号化処理手段とを
備えている。
Further, an encoding processing device according to the present invention includes a line memory for holding input image data in line units;
Comparing means for comparing the line data to be encoded including the pixel to be encoded before being held in the line memory with the immediately preceding line data; and performing encoding processing of the input image data based on the result of the comparison by the comparing means. Encoding processing means.

【0010】上記のような本発明においては、ラインメ
モリに保持される前の符号化対象ラインデータを用いて
ライン比較を行っている。このため、直前のラインの符
号化処理とラインの比較処理とを並行して行うことがで
きる。また、比較のためのデータをラインメモリからそ
の都度読み出す必要が無くなる。その結果、符号化処理
の更なる高速化を図ることが可能となる。
In the present invention as described above, line comparison is performed using the line data to be encoded before being held in the line memory. Therefore, the encoding processing of the immediately preceding line and the line comparison processing can be performed in parallel. Further, it is not necessary to read the data for comparison from the line memory each time. As a result, it is possible to further speed up the encoding process.

【0011】[0011]

【発明の実施の形態】図1は、本発明の一実施形態(実
施例)に係る符号化処理装置の構成を示す。この符号化
処理装置は、画像バス10から供給される画像データを
ライン単位で保持するラインメモリ12a、12b、1
2cと、ライン一致検出部14と、符号化処理部16と
を備えている。ラインメモリ12a、12b、12cは
直列に接続されている。画像バス10は、ラインメモリ
12cの入力端子とライン一致検出部14の一方の入力
端子とに接続されている。ラインメモリ12cの出力端
子は、符号化処理部16と、ラインメモリ12bの入力
端子と、ライン一致検出部14の他方の入力端子とに接
続されている。
FIG. 1 shows the configuration of an encoding apparatus according to an embodiment (embodiment) of the present invention. This encoding processing device includes line memories 12a, 12b, 1 that hold image data supplied from an image bus 10 in line units.
2c, a line coincidence detecting unit 14, and an encoding processing unit 16. The line memories 12a, 12b, 12c are connected in series. The image bus 10 is connected to an input terminal of the line memory 12c and one input terminal of the line coincidence detecting unit 14. The output terminal of the line memory 12c is connected to the encoding processing unit 16, the input terminal of the line memory 12b, and the other input terminal of the line coincidence detection unit 14.

【0012】ラインメモリ12bの出力端子は、符号化
処理部16とラインメモリ12aの入力端子とに接続さ
れている。ラインメモリ12aの出力端子は、符号化処
理部16に接続されている。ライン一致検出部14の出
力端子は、符号化処理部16に接続されている。ライン
一致検出部14は、符号化対象画素を含むライン(以
下、「符号化対象ライン」と称する。)と直前のライン
の画素値を比較し、比較結果に応じた信号を符号化処理
部16に供給する。符号化処理部16は、ライン一致検
出部14からの信号に基づいて符号化処理を行う。すな
わち、符号化処理部16においては、符号化対象ライン
と直前のラインの画素値が完全に一致する場合と、1画
素でも違う場合とで異なる処理を行う。
The output terminal of the line memory 12b is connected to the encoding processing unit 16 and the input terminal of the line memory 12a. The output terminal of the line memory 12a is connected to the encoding processing unit 16. An output terminal of the line coincidence detecting unit 14 is connected to the encoding processing unit 16. The line coincidence detecting unit 14 compares the pixel value of a line including an encoding target pixel (hereinafter, referred to as “encoding target line”) with the pixel value of the immediately preceding line, and outputs a signal corresponding to the comparison result to the encoding processing unit 16. To supply. The encoding processing unit 16 performs an encoding process based on a signal from the line coincidence detection unit 14. In other words, the encoding processing unit 16 performs different processing depending on whether the pixel value of the line to be encoded and the pixel value of the immediately preceding line completely match or different even by one pixel.

【0013】図2は、ライン一致検出部14の構成を示
す。ライン一致検出部14においては、ラインメモリ1
2c及び画像バス10から同じ画素数のデータを読み込
み、排他的論理和をとったものを1ライン分集めて「l
ntp」とする。ここで、一度に読み取る画素数は、
ラインメモリ(12a、12b、12c)と画像バス1
0の構成で決まる。また、ラインメモリ12cと画像バ
ス10の読み出し信号の発生回数以外の回路構成は、一
度に読み取る画素数には依存しない。
FIG. 2 shows the configuration of the line coincidence detecting section 14. In the line coincidence detection unit 14, the line memory 1
2c and data of the same number of pixels from the image bus 10 and exclusive-ORed data for one line are collected and "l
and ntp y ". Here, the number of pixels read at a time is
Line memory (12a, 12b, 12c) and image bus 1
0 is determined. The circuit configuration other than the number of generations of the read signal of the line memory 12c and the image bus 10 does not depend on the number of pixels read at one time.

【0014】JBIG符号化モードの1つに、典型的予
測を用いるものがある。この場合、yを符号化対象ライ
ンとすると、yラインとその直前のライン(y−1ライ
ン)とが一致している場合には、lntp=0とな
り、1つの画素でも不一致の場合には、lntp=1
となる。slntpは、図3の式のように定義され
る。
One of the JBIG coding modes uses typical prediction. In this case, assuming that y is a line to be encoded, if the y line and the line immediately before (y-1 line) match, lntpy = 0, and if even one pixel does not match, , lntp y = 1
Becomes Slntp y is defined by the equation of FIG.

【0015】図3に示すように、slntpは、yラ
インの先頭に配置される。このため、符号化する画像
は、元の画像より横幅が1画素多くなる。ライン一致検
出部14における比較の結果、符号化対象ラインとその
直前のラインが一致している場合には、符号化処理部1
6では、slntpのみを符号化し、そのラインの符
号化を終了する。一方、ライン一致検出部14における
比較の結果、1つの画素でも一致していない場合には、
符号化処理部16では、slntpを符号化した後、
1ライン分の画素を全て符号化する。このように、符号
化対象画素が含まれるラインと、その前のラインとが完
全に一致している場合とそうでない場合とで処理の方法
が異なる。slntpがラインの先頭に配置されてい
るため、本実施例においては、符号化対象画素が含まれ
るラインの処理を開始する前にラインが一致しているか
否かを検出する。
[0015] As shown in FIG. 3, Slntp y is placed at the beginning of the y line. For this reason, the image to be encoded has a width one pixel larger than the original image. If the result of the comparison by the line coincidence detecting unit 14 shows that the line to be encoded and the line immediately before it match, the encoding processing unit 1
In 6, encodes only Slntp y, and terminates the encoding of the line. On the other hand, if even one pixel does not match as a result of the comparison in the line match detection unit 14,
The encoding processing unit 16, after encoding the Slntp y,
All pixels for one line are encoded. As described above, the processing method differs depending on whether the line including the encoding target pixel completely matches the previous line or not. Since Slntp y is placed at the beginning of the line, in this embodiment, to detect whether the line before match to start processing of the line that contains the coded pixel.

【0016】以上、本発明の実施例について説明した
が、本発明はこれらの実施例に何ら限定されるものでは
なく、特許請求の範囲に示された技術的思想の範疇にお
いて変更可能なものである。すなわち、本発明は画像デ
ータの符号化の際にライン毎にデータ比較を行い、その
結果によってその後の処理が決まるような全ての符号化
方式に適用できるものである。また、2ライン比較によ
って処理を行う場合には、ラインメモリは2つ備えれば
足りる。
The embodiments of the present invention have been described above. However, the present invention is not limited to these embodiments, but can be modified within the scope of the technical idea described in the claims. is there. That is, the present invention can be applied to all encoding systems in which data comparison is performed for each line when encoding image data, and the subsequent processing is determined by the result. In the case of performing the process by comparing two lines, it is sufficient to provide two line memories.

【0017】[0017]

【発明の効果】以上説明したように、本発明によれば、
ラインメモリに保持される前の符号化対象ラインデータ
と直前のラインデータとを比較している。このため、直
前のラインの符号化処理とラインの比較処理とを並行し
て行うことができる。また、比較のためのデータをライ
ンメモリから読み出す必要が無くなる。その結果、符号
化処理の更なる高速化を図ることが可能となる。
As described above, according to the present invention,
The line data to be encoded before being held in the line memory is compared with the line data immediately before. Therefore, the encoding processing of the immediately preceding line and the line comparison processing can be performed in parallel. Further, it is not necessary to read data for comparison from the line memory. As a result, it is possible to further speed up the encoding process.

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

【図1】図1は、本発明の実施例に係る符号化処理装置
の概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an encoding processing device according to an embodiment of the present invention.

【図2】図2は、図1に示す実施例に使用されるライン
一致検出部の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a line coincidence detection unit used in the embodiment illustrated in FIG. 1;

【図3】図3は、実施例の作用を説明するための説明図
である。
FIG. 3 is an explanatory diagram for explaining an operation of the embodiment;

【符号の説明】[Explanation of symbols]

12a,12b,12c ラインメモリ 14 ライン一致検出部 16 符号化処理部 12a, 12b, 12c Line memory 14 Line match detection unit 16 Encoding processing unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】入力画像データをライン単位で保持する工
程と;前記保持される前の符号化対象画素を含む符号化
対象ラインデータと、直前のラインデータとを比較する
工程と;前記比較の結果に基づいて前記入力画像データ
の符号化処理を行う工程とを含むことを特徴とする符号
化処理方法。
A step of holding input image data in units of lines; a step of comparing line data to be encoded including the pixels to be encoded before being held with line data immediately before; Encoding the input image data based on the result.
【請求項2】入力画像データのうち符号化対象画素を含
む符号化対象ラインデータを保持する第1のラインメモ
リと、当該第1のラインメモリから出力されるラインデ
ータを保持する第2のラインメモリとを用いて画像デー
タの符号化処理を行う符号化処理方法において、 前記第1のラインメモリに入力される前の前記符号化対
象ラインデータに含まれる画素と、前記第2のラインメ
モリに入力される直前のラインデータに含まれる画素と
を比較し、 前記比較の結果に基づいて前記入力画像データの符号化
処理を行うことを特徴とする符号化処理方法。
2. A first line memory for holding encoding target line data including an encoding target pixel in input image data, and a second line for holding line data output from the first line memory. In an encoding processing method for performing encoding processing of image data using a memory, a pixel included in the encoding target line data before being input to the first line memory; An encoding processing method, comprising: comparing pixels included in line data immediately before input; and encoding the input image data based on a result of the comparison.
【請求項3】入力画像データをライン単位で保持するラ
インメモリと;前記ラインメモリに保持される前の符号
化対象画素を含む符号化対象ラインデータと、直前のラ
インデータとを比較する比較手段と;前記比較の結果に
基づいて前記入力画像データの符号化処理を行う符号化
処理手段とを備えたことを特徴とする符号化処理装置。
3. A line memory for holding input image data on a line-by-line basis; comparing means for comparing line data to be encoded including a pixel to be encoded before being held in the line memory with immediately preceding line data Encoding processing means for encoding the input image data based on the result of the comparison.
【請求項4】入力画像データのうち符号化対象画素を含
む符号化対象ラインデータを保持する第1のラインメモ
リと;前記第1のラインメモリから出力されるラインデ
ータを保持する第2のラインメモリと;前記第1のライ
ンメモリに入力される前の前記符号化対象ラインデータ
に含まれる画素と、前記第2のラインメモリに入力され
る直前のラインデータに含まれる画素とが完全に一致す
るか否かを検出する比較手段と;前記比較手段による検
出結果に基づいて前記入力画像データの符号化処理を行
うことを特徴とする符号化処理装置。
4. A first line memory for holding encoding target line data including an encoding target pixel in input image data; and a second line for holding line data output from the first line memory. A memory; a pixel included in the line data to be encoded before being input to the first line memory and a pixel included in the line data immediately before input to the second line memory completely match A coding means for performing a coding process on the input image data based on a detection result by the comparing means.
JP28901599A 1999-10-12 1999-10-12 Coding processing method and coding processing device Pending JP2001111844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28901599A JP2001111844A (en) 1999-10-12 1999-10-12 Coding processing method and coding processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28901599A JP2001111844A (en) 1999-10-12 1999-10-12 Coding processing method and coding processing device

Publications (1)

Publication Number Publication Date
JP2001111844A true JP2001111844A (en) 2001-04-20

Family

ID=17737738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28901599A Pending JP2001111844A (en) 1999-10-12 1999-10-12 Coding processing method and coding processing device

Country Status (1)

Country Link
JP (1) JP2001111844A (en)

Similar Documents

Publication Publication Date Title
US5862264A (en) Image compression device and image compression method for compressing images by smoothing them, reversibly compressing the residual images and compressing the smoothed images based on fractal theory
US4156880A (en) Method for transmitting a facsimile signal by sequential edge differential coding
JP2001111844A (en) Coding processing method and coding processing device
JP3866568B2 (en) Image compression method
JP3563838B2 (en) Image encoding / decoding device
JP3311221B2 (en) Image processing apparatus and method
JP3622043B2 (en) Encoding device and recording medium
JP3295507B2 (en) Binary image encoding / decoding method
JP2687417B2 (en) Automatic linear density switching system for facsimile machines
JP3621998B2 (en) Communication terminal device
JPH10336462A (en) Coder, decoder and coding decoding device
JPH1117955A (en) Image processing unit
JPS6212280A (en) Combination system for image data
JPH0410868A (en) Data communication equipment
JP3469597B2 (en) Decoding device for block transform code
JP3796235B2 (en) Image compression and decompression method
JPS60169276A (en) Data compressing system
JP3295502B2 (en) Facsimile apparatus control method and facsimile apparatus
JP3349894B2 (en) Control method for facsimile machine
JP3244549B2 (en) Image input device
JP2005006001A (en) Image encoding device and method and storage medium with program recorded thereon
JPH0730762A (en) Communications equipment
JPS60251772A (en) Method and apparatus for compressing and reproducing picture data
JPH0144067B2 (en)
JPH0865523A (en) Method for encoding binary pseudo gradation image