JPH04281667A - Picture data coder/decoder - Google Patents

Picture data coder/decoder

Info

Publication number
JPH04281667A
JPH04281667A JP3044850A JP4485091A JPH04281667A JP H04281667 A JPH04281667 A JP H04281667A JP 3044850 A JP3044850 A JP 3044850A JP 4485091 A JP4485091 A JP 4485091A JP H04281667 A JPH04281667 A JP H04281667A
Authority
JP
Japan
Prior art keywords
data
run
scaling
run length
length
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.)
Withdrawn
Application number
JP3044850A
Other languages
Japanese (ja)
Inventor
Hiromasa Shimizu
清水 弘雅
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP3044850A priority Critical patent/JPH04281667A/en
Priority to DE19924207618 priority patent/DE4207618A1/en
Publication of JPH04281667A publication Critical patent/JPH04281667A/en
Priority to US08/189,245 priority patent/US5488486A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/393Enlarging or reducing
    • H04N1/3935Enlarging or reducing with modification of image resolution, i.e. determining the values of picture elements at new relative positions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To improve the processing speed by implementing coding/decoding processing of a picture data and magnification processing simultaneously with respect to the picture data coder/decoder able to attain magnification processing of magnification/ reduction or the like of an object picture and to apply the system even to an equipment not having a picture memory with a large capacity. CONSTITUTION:The coder/decoder consists of a converter 1 implementing conversion processing between pictures and an external device 2 requesting conversion processing of a picture data to the converter 1. The coding/decoding system is featured by applying magnification processing when an original picture data representing each picture element of an object picture in binary information, a run length data representing a picture element number of consecutive white picture elements or a picture element number of consecutive black picture elements of the original picture data as a result of run length coding and a code data representing the run length data subject to compression coding are converted mutually. Moreover, the magnification processing is implemented by referring a magnification table comprising the run length data after magnification corresponding to a run length data before magnification and the correction data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は対象画像の拡大/縮小
等の変倍処理が可能な画像データ符号/復号化装置に関
し、特にファクシミリ等の画像伝送装置、画像ファイル
等の画像蓄積装置等に適用して好適なものである。
[Field of Industrial Application] The present invention relates to an image data encoding/decoding device capable of scaling processing such as enlarging/reducing a target image, and is particularly applicable to an image transmission device such as a facsimile, an image storage device such as an image file, etc. It is suitable for application.

【0002】0002

【従来の技術】例えば、ファクシミリ装置では、イメー
ジセンサで読み取った画像信号を、一定の閾値レベルで
2値化し、さらに、MH(Modified Huff
man),MR(Modified READ ),M
MR(Modified MR )等の各種2値画像符
号に圧縮符号化し、通信路を介して受信側に伝送する。 受信側では、受信した2値画像符号を伸張復号化し、原
画像データに復号して記録部に記録する。
2. Description of the Related Art For example, in a facsimile machine, an image signal read by an image sensor is binarized at a certain threshold level, and then an MH (Modified Huff)
man), MR (Modified READ), M
It is compressed and encoded into various binary image codes such as MR (Modified MR) and transmitted to the receiving side via a communication channel. On the receiving side, the received binary image code is decompressed and decoded, decoded into original image data, and recorded in the recording section.

【0003】送信側の原稿サイズと受信側の用紙サイズ
とが異なる場合には、送信側で変倍率に応じた割合で画
素ビットを間引くか(縮小時)、追加するか(拡大時)
によって変倍処理を行う。
[0003] If the original size on the sending side is different from the paper size on the receiving side, the sending side should either thin out pixel bits at a rate according to the magnification ratio (when reducing) or add them (when enlarging).
Performs scaling processing by .

【0004】0004

【発明が解決しようとする課題】ところで、従来の装置
では、画像データの符号/復号化部と変倍処理部とが独
立して構成されているため複雑な制御を必要とし、処理
速度の向上が図れないという不都合がある。また、画素
単位で変倍処理を行っているため、処理するデータ量が
膨大となり、容量の大きな記憶装置を必要とし、ここで
も処理速度の向上が図れないという不都合が生じる。
[Problems to be Solved by the Invention] However, in conventional devices, the image data encoding/decoding section and the scaling processing section are configured independently, which requires complex control, and it is difficult to improve the processing speed. There is an inconvenience that this cannot be planned. Furthermore, since the scaling process is performed on a pixel-by-pixel basis, the amount of data to be processed is enormous, requiring a large-capacity storage device, and this also poses the disadvantage that the processing speed cannot be improved.

【0005】この発明は、画像データの符号/復号化処
理と変倍処理とを同時に行うことにより処理速度の向上
を図ると共に、容量が大きな画像メモリを備えていない
装置にも適用できる画像データ符号/復号化装置を提供
することを目的とする。
[0005] The present invention improves processing speed by simultaneously performing image data encoding/decoding processing and scaling processing, and also provides image data encoding that can be applied to devices that are not equipped with a large-capacity image memory. /Decoding device.

【0006】[0006]

【課題を解決するための手段】この発明による画像デー
タ符号/復号化装置は、対象画像の各画素を2値情報で
表す原画像データと、この原画像データにおける連続す
る白画素の画素数または連続する黒画素の画素数をラン
レングス符号化して表すランレングスデータと、このラ
ンレングスデータを圧縮符号化して表すコードデータと
を相互に変換する際に変倍処理を加えることを特徴とす
る。
[Means for Solving the Problems] An image data encoding/decoding device according to the present invention includes original image data that represents each pixel of a target image as binary information, and the number or number of consecutive white pixels in this original image data. The present invention is characterized in that a scaling process is applied when mutually converting run-length data representing the number of consecutive black pixels by run-length encoding and code data representing the run-length data by compression encoding.

【0007】また、この発明による画像データ符号/復
号化装置は、変倍処理の際に、変倍前のランレングスデ
ータに対応する変換後のランレングスデータおよび補正
データからなる変倍テーブルを参照することを特徴とす
る。
Further, the image data encoding/decoding device according to the present invention refers to a scaling table consisting of run length data after conversion and correction data corresponding to run length data before scaling during scaling processing. It is characterized by

【0008】[0008]

【作用】この発明の構成において、被変換用の画像デー
タが送られてくると、どのような変換を行うかによって
変換を行う変換部に画像データを転送する。変換部での
変換処理が終了すると、変換した画像データを保持バッ
ファに一旦格納し、一段階の変換で要求された変換が終
了するときは、変換した画像データを外部装置に転送し
て処理を終了する。二段階以上の変換が必要であれば、
格納した画像データを再び他の変換部に転送し、変換処
理を繰り返す。
[Operation] In the configuration of the present invention, when image data to be converted is sent, the image data is transferred to a converting section that performs the conversion depending on the type of conversion to be performed. When the conversion process in the conversion unit is completed, the converted image data is temporarily stored in a holding buffer, and when the conversion requested in one stage of conversion is completed, the converted image data is transferred to an external device for processing. finish. If two or more stages of conversion are required,
The stored image data is transferred to another converter again and the conversion process is repeated.

【0009】変換の態様は、次の5つの態様を基本とし
、単独であるいは任意に組み合わせて行う。■原画像/
ランレングス変換,■ランレングス/原画像変換,■ラ
ンレングス/コード変換,■コード/ランレングス変換
,■ランレングス/ランレングス変倍変換。
[0009] The conversion mode is based on the following five modes, and is carried out singly or in any combination. ■Original image/
Run-length conversion, ■Run-length/original image conversion, ■Run-length/Code conversion, ■Code/Run-length conversion, ■Run-length/Run-length scaling conversion.

【0010】変倍変換における水平(主走査)方向の変
倍処理は、ランレングスデータのバイト単位に行い、ラ
ンレングスデータの水平変倍値に対応する変倍後のラン
レングスデータおよび補正データを、予め変倍テーブル
として生成しておき、変倍時にこのテーブルを参照する
ことで任意の変倍処理を行う。変倍テーブルの生成は変
倍後のランレングス値が整数値でなければならないこと
に着目し、構成の簡略化および処理の高速化を図るため
に除算を排除した加減算のアルゴリズムによって行う。 垂直(副走査)方向の変倍処理は、水平ラインを所定の
間隔で間引くことによって縮小処理を行い、所定の同一
ラインを重複挿入することによって拡大処理を行う。
[0010] The scaling process in the horizontal (main scanning) direction in scaling conversion is performed for each byte of run-length data, and the run-length data and correction data after scaling that correspond to the horizontal scaling value of the run-length data are , is generated in advance as a scaling table, and arbitrary scaling processing is performed by referring to this table at the time of scaling. The scaling table is generated by an addition/subtraction algorithm that eliminates division in order to simplify the configuration and speed up processing, paying attention to the fact that the run length value after scaling must be an integer value. In the vertical (sub-scanning) direction magnification processing, reduction processing is performed by thinning out horizontal lines at predetermined intervals, and enlargement processing is performed by inserting predetermined identical lines redundantly.

【0011】[0011]

【実施例】図1は、この発明による画像データ符号/復
号化装置を、ファクシミリ装置に適用した場合の一実施
例を示すブロック図である。この装置で扱う画像データ
は対象画像の各画素を2値ビット情報で表す原画像デー
タと、原画像データにおける連続する白画素の画素数ま
たは連続する黒画素の画素数をランレングス符号化して
表すランレングスデータと、ファクシミリ用の圧縮符号
であるMH,MR,MMR等の各コードデータとである
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment in which an image data encoding/decoding apparatus according to the present invention is applied to a facsimile machine. The image data handled by this device is original image data that represents each pixel of the target image as binary bit information, and run-length encoded representation of the number of consecutive white pixels or the number of consecutive black pixels in the original image data. These are run-length data and code data such as MH, MR, and MMR, which are compressed codes for facsimile.

【0012】実施例の構成 この装置は各画像データ間の変換処理を行う変換装置1
と、この変換装置1に画像データの変換処理を要求する
外部装置2とから構成される。外部装置2としては、例
えば、マイクロコンピュータ・システムがある。
Configuration of the Embodiment This device is a conversion device 1 that performs conversion processing between each image data.
and an external device 2 that requests the conversion device 1 to convert image data. As the external device 2, for example, there is a microcomputer system.

【0013】変換装置1は、外部装置2からの命令を受
けて変換装置1内の各部を制御する変換制御部10、原
画像データをランレングスデータに変換する原画像/ラ
ンレングス変換部11、ランレングスデータを原画像デ
ータに変換するランレングス/原画像変換部12、ラン
レングスデータをコードデータに変換するランレングス
/コード変換部13、コードデータをランレングスデー
タに変換するコード/ランレングス変換部14、画像デ
ータの拡大/縮小等の変倍処理を行う変倍変換部15等
の各種変換部を備える。また、各変換部11〜15から
出力される画像データを一次的に保持する保持バッファ
16、外部装置2に対して画像データの送受を行う入出
力バッファ17、外部装置2に対してアドレスデータの
送受を行うアドレスバッファ18を備える。
The conversion device 1 includes a conversion control section 10 that receives commands from an external device 2 and controls various parts within the conversion device 1, an original image/run length conversion section 11 that converts original image data into run length data, A run-length/original image converter 12 that converts run-length data into original image data, a run-length/code converter 13 that converts run-length data into code data, and a code/run-length converter that converts code data into run-length data. It includes various conversion units such as a scaling conversion unit 14 and a scaling conversion unit 15 that performs scaling processing such as enlargement/reduction of image data. Also, a holding buffer 16 temporarily holds the image data output from each converter 11 to 15, an input/output buffer 17 that sends and receives image data to and from the external device 2, and an input/output buffer 17 that sends and receives address data to the external device 2. It includes an address buffer 18 for sending and receiving data.

【0014】変換装置1および外部装置2間には、変換
制御部10および外部装置2間で各種の制御信号の送受
を行う制御ライン20〜24、入出力バッファ17およ
び外部装置2間で各種の命令データおよび画像データの
送受を行う外部データバス25、アドレスバッファ18
および外部装置2間でアドレスデータの送受を行う外部
アドレスバス26が設けられている。
Between the conversion device 1 and the external device 2, there are control lines 20 to 24 for transmitting and receiving various control signals between the conversion control unit 10 and the external device 2, an input/output buffer 17, and various control lines between the external device 2. External data bus 25 and address buffer 18 for sending and receiving command data and image data
An external address bus 26 for transmitting and receiving address data between the external devices 2 and 2 is provided.

【0015】制御ライン20〜24のうち、制御ライン
20は外部装置2から変換装置1へ命令データまたは画
像データを送る旨の制御信号を伝送するラインであり、
制御ライン21は変換装置1から外部装置2へ命令デー
タまたは画像データを送る旨の制御信号を伝送するライ
ンであり、制御ライン22は変換装置1から外部装置2
へ伝送するデータが変換状況を表すデータか変換データ
を表すデータかを示す制御信号を伝送するラインであり
、制御ライン23は変換装置1から外部装置2に対して
DMAまたは非DMAモードを指定するための制御信号
を伝送するラインであり、制御ライン24は外部装置2
から変換装置1に対して伝送するデータが命令データで
あるか画像データであるかを示す制御信号を伝送するラ
インである。
Among the control lines 20 to 24, the control line 20 is a line for transmitting a control signal for sending command data or image data from the external device 2 to the conversion device 1,
The control line 21 is a line for transmitting a control signal for sending command data or image data from the conversion device 1 to the external device 2, and the control line 22 is a line for transmitting a control signal for sending command data or image data from the conversion device 1 to the external device 2.
The control line 23 is a line for transmitting a control signal indicating whether the data to be transmitted is data representing the conversion status or data representing the conversion data, and the control line 23 specifies DMA or non-DMA mode from the conversion device 1 to the external device 2. The control line 24 is a line for transmitting control signals for the external device 2.
This is a line for transmitting a control signal indicating whether the data to be transmitted from to the conversion device 1 is command data or image data.

【0016】また、変換装置1内には、変換部11〜1
5の各入力と保持バッファ16および入出力バッファ1
7とを結ぶ変換入力バス30、変換部11〜15の各出
力と保持バッファ16の入力とを結ぶ変換出力バス31
、変換部11〜15の各出力とアドレスバッファ18と
の間を結ぶ内部アドレスバス32、変換制御部10と入
出力バッファ17との間を結ぶ命令バス33、保持バッ
ファ16と外部データバス25との間を結ぶ内部出力バ
ス34等の各種バスが設けられている。
The converting device 1 also includes converting sections 11 to 1.
5 each input and holding buffer 16 and input/output buffer 1
7, and a conversion output bus 31 that connects each output of the conversion units 11 to 15 and the input of the holding buffer 16.
, an internal address bus 32 that connects each output of the conversion units 11 to 15 and the address buffer 18, an instruction bus 33 that connects the conversion control unit 10 and the input/output buffer 17, a holding buffer 16 and an external data bus 25. Various buses such as an internal output bus 34 are provided to connect between the two.

【0017】実施例の動作 この構成において、変換制御部10は、外部装置2から
外部データバス25、入出力バッファ17および命令バ
ス33を経由して送られてくる命令データの内容を解読
し、変換が一画面全体か一部分か、変換部11〜15の
どの変換部によって画像データの変換を行うか等の選択
を行ったのち、外部装置2に対して被変換用の画像デー
タの要求を行う。
Operation of the Embodiment In this configuration, the conversion control section 10 decodes the contents of command data sent from the external device 2 via the external data bus 25, input/output buffer 17 and command bus 33, After making selections such as whether to convert the entire screen or a portion of the screen and which converter among the converters 11 to 15 should convert the image data, a request is made to the external device 2 for the image data to be converted. .

【0018】外部装置2からデータバス25を経由して
被変換用の画像データが送られてくると、変換制御部1
0はこの画像データを選択した変換部に入出力バッファ
17および変換入力バス30を経由して転送する。変換
部で画像データの変換処理が終了すると、変換した画像
データを変換出力バス31を経由して保持バッファ16
に格納する。
When image data to be converted is sent from the external device 2 via the data bus 25, the conversion control unit 1
0 transfers this image data to the selected conversion unit via the input/output buffer 17 and the conversion input bus 30. When the conversion process of the image data is completed in the conversion section, the converted image data is transferred to the holding buffer 16 via the conversion output bus 31.
Store in.

【0019】一段階の変換で要求された変換が終了する
ときは、保持バッファ16に格納した画像データを内部
出力バス34を経由して外部データバス25に送り出し
、外部装置2に転送する。二段階以上の変換が必要であ
れば、保持バッファ16に格納した画像データを再び他
の変換部に転送し、前述と同様の処理を繰り返す。変換
の態様は、次の5つの態様■〜■を基本とし、単独であ
るいは任意に組み合わせて行う。 ■  原画像→ランレングス変換(原画像/ランレング
ス変換部11) ■  ランレングス→原画像変換(ランレングス/原画
像変換部12) ■  ランレングス→コード変換(ランレングス/コー
ド変換部13) ■  コード→ランレングス変換(コード/ランレング
ス変換部14) ■  ランレングス→ランレングス変換(変倍変換部1
5)
When the conversion requested in one stage of conversion is completed, the image data stored in the holding buffer 16 is sent to the external data bus 25 via the internal output bus 34 and transferred to the external device 2. If two or more stages of conversion are required, the image data stored in the holding buffer 16 is transferred again to another conversion section and the same process as described above is repeated. The conversion mode is based on the following five modes (1) to (4), and is carried out singly or in any combination. ■ Original image → run length conversion (original image/run length conversion unit 11) ■ Run length → original image conversion (run length/original image conversion unit 12) ■ Run length → code conversion (run length/code conversion unit 13) ■ Code → run length conversion (code/run length conversion unit 14) ■ Run length → run length conversion (scaling conversion unit 1
5)

【0020】例えば、A4サイズの原稿を、受信先のB
5サイズの用紙に合わせて送信する場合は、まず、原画
像/ランレングス変換部11によって原画像データをラ
ンレングスデータに変換する。次いで、変倍変換部15
で縮小処理を行い、A4サイズの画像データをB5サイ
ズの画像データに変倍する。この場合、ランレングスデ
ータは水平方向(主走査方向)のデータであるので、水
平方向の処理はランレングスデータの縮小処理となり、
垂直方向(副走査方向)の処理は一ラインを一画素と見
なしたライン単位の間引き処理となる。次いで、縮小し
たランレングスデータを、ランレングス/コード変換部
13でファクシミリ用圧縮符号であるMHコードに変換
し、外部装置2を経由して受信先のファクシミリ装置に
発信する。
[0020] For example, if you send an A4 size document to the recipient B
If the data is to be transmitted on five sizes of paper, first, the original image/run length converter 11 converts the original image data into run length data. Next, the scaling conversion section 15
Performs reduction processing to change the size of A4 size image data to B5 size image data. In this case, the run-length data is data in the horizontal direction (main scanning direction), so the horizontal processing is a reduction process for the run-length data.
The vertical direction (sub-scanning direction) processing is line-by-line thinning processing in which one line is regarded as one pixel. Next, the reduced run-length data is converted into an MH code, which is a compressed code for facsimile, by the run-length/code converter 13, and transmitted to the destination facsimile machine via the external device 2.

【0021】なお、可変長データであるランレングスデ
ータまたはコードデータの各ライン毎のメモリ上のアド
レス位置を、アドレステーブルとして別途格納しておく
ことにより、任意のラインからの変換処理を容易に行う
ことができる。
[0021] By separately storing the address position in memory for each line of run-length data or code data, which is variable length data, as an address table, conversion processing from an arbitrary line can be easily performed. be able to.

【0022】変倍変換部15の動作 次に、この実施例の重要な要素である変倍変換部15の
動作を、図2に示すフローチャートを参照して説明する
。まず、変換制御部10から水平方向の変倍値「a/b
」および垂直方向の変倍値「c/d」を受け取り、デー
タa,b,c,dとしてそれぞれ内部レジスタに格納す
る(ステップS1)。次いで、垂直変倍値の分母データ
dから1を引いた値を垂直変換端数値レジスタVf に
格納し(ステップS2)、水平ラインカウンタHLを零
にリセットする(ステップS3)。
Operation of the scaling converter 15 Next, the operation of the scaling converter 15, which is an important element of this embodiment, will be explained with reference to the flowchart shown in FIG. First, from the conversion control unit 10, the horizontal magnification value “a/b
” and the vertical magnification value “c/d” and store them in internal registers as data a, b, c, and d, respectively (step S1). Next, the value obtained by subtracting 1 from the denominator data d of the vertical scaling value is stored in the vertical conversion fractional value register Vf (step S2), and the horizontal line counter HL is reset to zero (step S3).

【0023】続いて、ランレングス変倍テーブル生成処
理を行う(ステップS4)。このテーブル生成処理は、
後述する水平変倍処理の際に、ランレングスデータの変
倍後の値を、このテーブルを参照することで直ちに求め
ることが出来るように水平変倍値「a/b」に対応した
テーブルを予め生成しておく処理である。この変倍テー
ブル生成処理の詳細については後述する。
Next, a run length variable magnification table generation process is performed (step S4). This table generation process is
During the horizontal scaling process described later, a table corresponding to the horizontal scaling value "a/b" is created in advance so that the value after scaling of the run length data can be immediately obtained by referring to this table. This is the process of generating it. Details of this scaling table generation process will be described later.

【0024】次いで、水平ラインカウンタHLのカウン
ト値が最終水平ライン値か否か判定する(ステップS5
)。最終水平ライン値であれば変倍処理が終了したこと
になるので、制御部10に変換終了を知らせ(ステップ
S6)、処理を終了する。カウント値が最終水平ライン
値でなければ、水平変倍値の分母データbから1を引い
た値を水平変換端数値レジスタHf に格納し(ステッ
プS7)、後述する水平変倍処理のために水平ラインカ
ウンタHLの内容を変換制御部10に送出する(ステッ
プS8)。
Next, it is determined whether the count value of the horizontal line counter HL is the final horizontal line value (step S5).
). If it is the final horizontal line value, this means that the scaling process has ended, so the control unit 10 is notified of the end of conversion (step S6), and the process ends. If the count value is not the final horizontal line value, the value obtained by subtracting 1 from the denominator data b of the horizontal scaling value is stored in the horizontal conversion fractional value register Hf (step S7), and the horizontal scaling value is The contents of the line counter HL are sent to the conversion control section 10 (step S8).

【0025】次いで、垂直変換端数値レジスタVf に
垂直変倍値の分子データcを加算し(ステップS9)、
レジスタVf の内容と垂直変倍値の分母データdとを
比較する(ステップS10)。比較の結果、「Vf <
d」であれば水平ラインカウンタHLのカウント値を「
+1」進めてステップS5に戻り(ステップS11)、
「Vf ≧d」であれば水平変倍処理(ステップS12
)に移る。
Next, the numerator data c of the vertical scaling value is added to the vertical conversion fractional value register Vf (step S9),
The contents of the register Vf are compared with the denominator data d of the vertical scaling value (step S10). As a result of the comparison, “Vf <
d”, set the count value of the horizontal line counter HL to “
+1” and return to step S5 (step S11).
If “Vf≧d”, horizontal scaling processing (step S12
).

【0026】水平変倍処理(ステップS12)は水平ラ
インカウンタHLで指定する水平ラインのランレングス
データを外部装置2または保持バッファ16から読み出
し、ランレングスデータのバイト単位に変倍処理を行っ
て水平方向の拡大/縮小を行う処理である。この水平変
倍処理の詳細については後述する。
In the horizontal scaling process (step S12), the run length data of the horizontal line specified by the horizontal line counter HL is read from the external device 2 or the holding buffer 16, and the scaling process is performed for each byte of the run length data. This is a process of enlarging/reducing the direction. Details of this horizontal scaling processing will be described later.

【0027】水平変倍処理(ステップS12)が終了す
ると、レジスタVf の内容から分母データdを引いた
値をレジスタVf に格納し(ステップS13)、再び
レジスタVfの内容と分母データdとを比較する(ステ
ップS14)。その結果、「Vf <d」であれば水平
ラインカウンタHLのカウント値を「+1」進めてステ
ップS5に戻り(ステップS15)、「Vf ≧d」で
あればレジスタVf の内容から分母データdを引いた
値をレジスタVf に格納したのちステップS5に戻る
(ステップS16)。 なお、ステップS2およびS7において、分母データか
ら1を引くのは、拡大/縮小にかかわらず第1ラインお
よび第1画素はそのままとするためである。
When the horizontal scaling process (step S12) is completed, the value obtained by subtracting the denominator data d from the contents of the register Vf is stored in the register Vf (step S13), and the contents of the register Vf and the denominator data d are compared again. (Step S14). As a result, if "Vf <d", the count value of the horizontal line counter HL is advanced by "+1" and the process returns to step S5 (step S15), and if "Vf ≧ d", the denominator data d is calculated from the contents of the register Vf. After storing the subtracted value in the register Vf, the process returns to step S5 (step S16). Note that the reason why 1 is subtracted from the denominator data in steps S2 and S7 is to leave the first line and first pixel unchanged regardless of enlargement/reduction.

【0028】垂直変倍処理 次に、これら一連の処理の中から垂直変倍処理に着目し
、垂直変倍値が「3/4」の場合を例に、その動作につ
いて説明する。まず、分子データc(=3)および分母
データd(=4)を内部レジスタに格納し(ステップS
1)、分母データdから1を引いた値3をレジスタVf
 に格納する(ステップS2)。次いで、レジスタVf
 (=3)に分子データc(=3)を加算し、その加算
結果6をレジスタVf に格納する(ステップS9)。 そして、レジスタVf の内容6と分母データd(=4
)とを比較する(ステップS10)。今の場合、「Vf
 ≧d」が成立するので水平変倍処理(ステップS12
)に進む。
Vertical Magnification Processing Next, attention will be paid to the vertical scaling processing among these series of processes, and its operation will be explained using an example in which the vertical scaling value is "3/4". First, numerator data c (=3) and denominator data d (=4) are stored in an internal register (step S
1), the value 3 obtained by subtracting 1 from the denominator data d is stored in the register Vf.
(Step S2). Then register Vf
The molecular data c (=3) is added to (=3), and the addition result 6 is stored in the register Vf (step S9). Then, the contents 6 of the register Vf and the denominator data d (=4
) (step S10). In this case, “Vf
≧d” holds, so the horizontal scaling process (step S12
).

【0029】水平変倍処理(ステップS12)が終了す
ると、レジスタVf の内容6から分母データd(=4
)を引き、得られる値2をレジスタVf に格納する(
ステップS13)。そして、再びレジスタVf の内容
と分母データdとを比較する(ステップS14)。今回
はVf =3,d=4であるので、「Vf <d」が成
立し、水平ラインカウンタHLをインクリメント(ステ
ップS15)してステップS5に戻る。
When the horizontal scaling process (step S12) is completed, the denominator data d (=4
) and store the obtained value 2 in register Vf (
Step S13). Then, the contents of the register Vf and the denominator data d are compared again (step S14). Since Vf = 3 and d = 4 this time, "Vf <d" is established, the horizontal line counter HL is incremented (step S15), and the process returns to step S5.

【0030】2巡目の処理では、ステップS9で「Vf
 =5」となり、水平変倍処理(ステップS12)で2
ライン目のランレングスデータの変倍処理を行う。続く
ステップS13では「Vf =1」となるので、カウン
タHLをインクリメントし(ステップS15)、ステッ
プS5に戻る。3巡目の処理では、ステップS9で「V
f =4」となり、水平変倍処理(ステップS12)で
3ライン目のランレングスデータの変倍処理を行う。続
くステップS13では「Vf =0」となるので、カウ
ンタHLをインクリメントし(ステップS15)、ステ
ップS5に戻る。
In the second round of processing, in step S9 "Vf
= 5'', and in the horizontal scaling process (step S12) it becomes 2.
Performs scaling processing on the run length data of the line. In the subsequent step S13, "Vf = 1", so the counter HL is incremented (step S15) and the process returns to step S5. In the third round of processing, “V
f = 4'', and the run length data of the third line is scaled in the horizontal scaling process (step S12). In the following step S13, "Vf = 0", so the counter HL is incremented (step S15) and the process returns to step S5.

【0031】4巡目の処理では、ステップS9で「Vf
 =3」となり、ステップS10で「Vf <d」が成
立するので、水平変倍処理(ステップS12)を行わず
にカウンタHLのカウント値を「+1」進め(ステップ
S11)、ステップS5に戻る。このため、4ライン目
は間引くことになる。5巡目では、再び1巡目と同一の
処理に戻る。今度は5ライン目のランレングスデータの
水平変倍処理(ステップS12)を行う。このようにし
て、連続する4水平ラインのうち第1〜第3水平ライン
については変倍処理を行い、第4ラインは間引くことに
よって変倍値「3/4」の縮小処理を行う。
In the fourth round of processing, in step S9 "Vf
= 3'', and since ``Vf <d'' is established in step S10, the count value of the counter HL is incremented by ``+1'' (step S11) without performing the horizontal scaling process (step S12), and the process returns to step S5. Therefore, the fourth line will be thinned out. In the fifth round, the process returns to the same process as the first round. This time, horizontal scaling processing (step S12) is performed on the run length data of the fifth line. In this way, the first to third horizontal lines among the four consecutive horizontal lines are subjected to scaling processing, and the fourth line is thinned out to perform reduction processing to the scaling value "3/4".

【0032】拡大処理の場合は、何巡目かのときにステ
ップS14で「Vf ≧d」が成立するので、水平ライ
ンカウンタHLを進めずに直接ステップS5に戻り、同
一ラインの変倍処理を重複することで水平ラインの挿入
を行う。
In the case of enlarging processing, since "Vf ≧ d" is established in step S14 in a certain number of rounds, the process returns directly to step S5 without incrementing the horizontal line counter HL, and the scaling processing of the same line is performed. Insert horizontal lines by overlapping.

【0033】ランレングス変倍テーブル生成処理次に、
ステップS4におけるランレングス変倍テーブル生成処
理について、図3に示すフローチャートを参照して説明
する。このテーブル生成処理は水平変倍値「a/b」に
対応する変倍後のランレングスデータを、予めテーブル
として生成しておくための処理である。
Run length variable magnification table generation process Next,
The run-length scaling table generation process in step S4 will be described with reference to the flowchart shown in FIG. This table generation process is a process for previously generating run length data after scaling corresponding to the horizontal scaling value "a/b" as a table.

【0034】まず、水平変倍値の分子データaと分母デ
ータbとを比較し、縮小変倍か拡大変倍かを判定する(
ステップS20)。縮小変倍(a≦b)であれば、基本
ランレングス値レジスタBi を0にし、基本端数値レ
ジスタBf に分子データaを格納する(ステップS2
1)。 拡大変倍(a>b)であれば、基本ランレングス値レジ
スタBi を1とし、基本端数値レジスタBf にデー
タ「a−b」を格納する(ステップS22)。例えば、
水平変倍値が「3/4」の縮小変倍であれば、レジスタ
Bi およびBf の内容はそれぞれBi =0,Bf
 =3となり、変倍値が「7/5」の拡大変倍であれば
、レジスタBi およびBf の内容がそれぞれBi 
=1,Bf =2となる。これはランレングス値レジス
タBi が「a/b」の商を格納し、端数値レジスタB
f が「a/b」の余りを格納することに相当する。
First, the numerator data a and the denominator data b of the horizontal scaling value are compared to determine whether the scaling is reduction or expansion (
Step S20). If the scaling is reduced (a≦b), the basic run length value register Bi is set to 0, and the molecule data a is stored in the basic fraction value register Bf (step S2
1). If the scaling is enlarged (a>b), the basic run length value register Bi is set to 1, and data "a-b" is stored in the basic fraction value register Bf (step S22). for example,
If the horizontal scaling value is "3/4", the contents of registers Bi and Bf are Bi = 0, Bf, respectively.
= 3, and if the scaling value is "7/5", the contents of registers Bi and Bf are respectively Bi.
=1, Bf =2. This means that the run length value register Bi stores the quotient of "a/b" and the fraction value register B
This corresponds to f storing the remainder of "a/b".

【0035】続いて、水平変換ランレングス値レジスタ
Hi 、水平変換端数値レジスタHfおよびテーブルカ
ウンタTCをそれぞれ零にクリアし(ステップS23)
、テーブル値設定処理(ステップS24)に進む。この
設定処理は入力ランレングスデータを所定の変倍値「a
/b」で変倍したときの整数値(商)を変換ランレング
ス値TL[TC]とし、端数値(余り)を変換端数値T
M[TC]とするテーブルを生成するための処理である
。このテーブル値設定処理の詳細については後述する。
Next, the horizontal conversion run length value register Hi, the horizontal conversion fractional value register Hf, and the table counter TC are each cleared to zero (step S23).
, the process proceeds to table value setting processing (step S24). This setting process converts the input run length data to a predetermined scaling value "a".
/b", the integer value (quotient) is the conversion run length value TL[TC], and the fractional value (remainder) is the conversion fractional value T.
This is a process for generating a table M[TC]. Details of this table value setting process will be described later.

【0036】次いで、テーブルカウンタTCのカウント
値が「63」以下か否か判定し(ステップS25)、カ
ウント値が「63」を超えるまでテーブル値設定処理(
ステップS24)を繰り返す。これは、ファクシミリ装
置では入力ランレングスデータを64進法で表している
ためで、ステップS24の処理は入力ランレングスデー
タが0〜63のときのテーブルを求める処理である。
Next, it is determined whether the count value of the table counter TC is "63" or less (step S25), and the table value setting process (
Step S24) is repeated. This is because the facsimile machine expresses the input run length data in 64-decimal notation, and the process in step S24 is a process to obtain a table when the input run length data is 0 to 63.

【0037】次いで、レジスタHi の内容をレジスタ
Bi に格納し、レジスタHf の内容をレジスタBf
 に格納する(ステップS26)。そして、再びテーブ
ル値設定処理(ステップS27)を行い、テーブルカウ
ンタTCのカウント値が103を超えるまで繰り返す(
ステップS28)。今回の処理は入力ランレングスデー
タが64〜2560のときのテーブルを64の倍数とし
て求める処理で、テーブルカウンタは64〜103(=
63+2560/64)である。
Next, the contents of register Hi are stored in register Bi, and the contents of register Hf are stored in register Bf.
(step S26). Then, the table value setting process (step S27) is performed again, and is repeated until the count value of the table counter TC exceeds 103 (
Step S28). This process is to calculate the table as a multiple of 64 when the input run length data is 64 to 2560, and the table counter is 64 to 103 (=
63+2560/64).

【0038】テーブル値設定処理 次に、図4に示すフローチャートを参照し、テーブル値
設定処理(ステップS24,S27)の動作を、変倍値
が「3/4」の縮小変倍を例に説明する。まず、水平変
換ランレングス値レジスタHi の内容および水平変換
端数値レジスタHf の内容を、変換ランレグス値TL
[TC]および変換端数値TM[TC]とする(ステッ
プS30)。TC=0の場合、Hi =0,Hf =0
であるから、TL[TC]=0,TM[TC]=0とな
る。
Table value setting process Next, with reference to the flowchart shown in FIG. 4, the operation of the table value setting process (steps S24 and S27) will be explained using a reduction scaling example where the scaling value is "3/4". do. First, the contents of the horizontal conversion run length value register Hi and the contents of the horizontal conversion fractional value register Hf are converted into the conversion run length value TL.
[TC] and the converted fractional value TM[TC] (step S30). When TC=0, Hi=0, Hf=0
Therefore, TL[TC]=0 and TM[TC]=0.

【0039】続いて、レジスタHi の内容とレジスタ
Bi の内容とを加算してレジスタHiに格納し、レジ
スタHf の内容とレジスタBf の内容とを加算して
レジスタHfに格納する(ステップS31)。今の場合
、Hi =0,Hf =0,Bi =0,Bf=3であ
るから、Hi =0,Hf =3となる。
Subsequently, the contents of register Hi and the contents of register Bi are added and stored in register Hi, and the contents of register Hf and register Bf are added and stored in register Hf (step S31). In the present case, Hi = 0, Hf = 0, Bi = 0, Bf = 3, so Hi = 0, Hf = 3.

【0040】次いで、レジスタHf の内容と水平変倍
値の分母データbとを比較し(ステップS32)、「H
f ≧b」であれば、レジスタHi の内容に1を加算
し、レジスタHf の内容から分母データbを引く(ス
テップS33)。次いで、テーブルカウンタTCをイン
クリメントして(ステップS34)リターンする。「H
f <b」であれば、ステップS33をジャンプしてス
テップS34に進む。今の場合、Hf =3,b=4で
あるからステップS33をジャンプする。
Next, the content of the register Hf is compared with the denominator data b of the horizontal scaling value (step S32), and "H
f≧b”, 1 is added to the contents of register Hi, and denominator data b is subtracted from the contents of register Hf (step S33). Next, the table counter TC is incremented (step S34) and the process returns. "H
f <b'', the process jumps to step S33 and proceeds to step S34. In this case, since Hf=3 and b=4, step S33 is jumped.

【0041】次に、TC=1のときは、Hi =0,H
f =3であるから、TL[TC]=0,TM[TC]
=3となる。 以下同様にしてTC=63まで処理を繰り返し、TC=
0〜63の変換ランレグス値TL[TC]および変換端
数値TM[TC]を、図5に示すテーブルとして得る。 TC=64になると、ステップS25からステップS2
6に進み、レジスタHi の内容をレジスタBi に、
レジスタHf の内容をレジスタBf に、それぞれ格
納する。今の場合、ステップS24のテーブル値設定処
理が終了した段階ではレジスタHi の内容が48、レ
ジスタBf の内容が0になっているので、レジスタB
i は48、レジスタBf は0に、それぞれセットさ
れる。
Next, when TC=1, Hi=0, H
Since f = 3, TL[TC] = 0, TM[TC]
=3. The process is repeated in the same manner until TC=63, and TC=
Conversion run leg values TL[TC] and conversion fractional values TM[TC] from 0 to 63 are obtained as a table shown in FIG. When TC=64, step S25 to step S2
Proceed to step 6 and transfer the contents of register Hi to register Bi.
The contents of register Hf are respectively stored in register Bf. In this case, when the table value setting process in step S24 is completed, the contents of register Hi are 48 and the contents of register Bf are 0, so register B
i is set to 48, and register Bf is set to 0.

【0042】ステップS27のテーブル値設定処理では
、レジスタHi の内容48を変換ランレグス値TL[
TC]とし、レジスタHf の内容0を変換端数値TM
[TC]とする(ステップS30)。次いで、レジスタ
Hi の内容48とレジスタBi の内容48とを加算
してレジスタHi に格納し、レジスタHf の内容0
とレジスタBf の内容0とを加算してレジスタHf 
に格納する(ステップS31)。 従って、Hi =96,Hf =0となる。次いで、「
Hf <b」であるから(ステップS32)、ステップ
S33をジャンプしてステップS34に進み、テーブル
カウンタTCをインクリメントして、TC=65とし、
リターンする。以下同様にして、図5に示すように、6
4の倍数毎の入力ランレングスデータのテーブルを求め
、カウンタTCの値が103を超えると(ステップS2
8)、テーブル値設定処理を終了してリターンする。
In the table value setting process of step S27, the contents 48 of the register Hi are converted into the converted run length value TL[
TC], and convert the contents 0 of register Hf to the converted fractional value TM.
[TC] (step S30). Next, the contents 48 of register Hi and the contents 48 of register Bi are added and stored in register Hi, and the contents of register Hf are set to 0.
and the contents 0 of register Bf are added to register Hf.
(Step S31). Therefore, Hi =96, Hf =0. Next, “
Hf <b'' (step S32), the process jumps to step S33 and proceeds to step S34, where the table counter TC is incremented to TC=65.
Return. Similarly, as shown in FIG.
A table of input run length data for each multiple of 4 is obtained, and when the value of the counter TC exceeds 103 (step S2
8) End the table value setting process and return.

【0043】水平変倍処理 次に、水平変倍処理(ステップS12)の動作を、図6
に示すフローチャートを参照して説明する。この処理は
、水平ラインカウンタHLで指定するラインのランレン
グスデータを、バイト単位に変倍処理することによって
水平方向の縮小/拡大処理を行うものである。
Horizontal scaling process Next, the operation of the horizontal scaling process (step S12) is shown in FIG.
This will be explained with reference to the flowchart shown in . This process performs horizontal reduction/enlargement processing by scaling the run length data of the line specified by the horizontal line counter HL in units of bytes.

【0044】まず、入力レジスタILに1バイト分のラ
ンレングスデータを格納し(ステップS40)、格納し
たデータが当該ラインの終端データか否か、すなわち、
EOL(End Of Line )か否か判定する(
ステップS41)。EOLであれば当該ラインの処理が
終了したことになるのでリターンする。EOLでなけれ
ば、ステップS4で生成した変倍テーブルを参照し、変
換ランレングス値TL[IL]および変換端数値TM[
IL]を読み出し、変換ランレングス値累算レジスタR
i および変換端数値累算レジスタRf に累算値とし
て加算する(ステップS42)。
First, one byte of run length data is stored in the input register IL (step S40), and it is determined whether the stored data is the end data of the line or not.
Determine whether it is EOL (End Of Line) (
Step S41). If it is EOL, it means that the processing of the line has ended, and the process returns. If it is not EOL, refer to the scaling table generated in step S4 and set the conversion run length value TL[IL] and the conversion fractional value TM[
IL] and convert run length value accumulation register R.
i and the converted fractional value accumulation register Rf as an accumulated value (step S42).

【0045】次いで、レジスタRf の内容と水平変倍
値の分母データbとを比較し(ステップS43)、「R
f ≧b」であればレジスタRiに1を加算してレジス
タRf からbを引く(ステップS44)。「Rf <
b」であればステップS44の処理をジャンプする。次
いで、レジスタILの内容が63以下か否か判定し(ス
テップS45)、63を超えていればステップS40に
戻り、63以下であれば後述する変換ランレングスデー
タ出力処理(ステップS46)に進む。変換ランレング
スデータ出力処理(ステップS46)が終了すると、レ
ジスタRi の内容を0にクリアし(ステップS47)
、ステップS40に戻る。
Next, the content of the register Rf is compared with the denominator data b of the horizontal scaling value (step S43), and "R
f≧b”, 1 is added to the register Ri and b is subtracted from the register Rf (step S44). “Rf<
b", the process of step S44 is jumped. Next, it is determined whether the contents of the register IL are 63 or less (step S45), and if the contents exceed 63, the process returns to step S40, and if the contents are 63 or less, the process proceeds to conversion run length data output processing (step S46), which will be described later. When the conversion run length data output processing (step S46) is completed, the contents of the register Ri are cleared to 0 (step S47).
, return to step S40.

【0046】変換ランレングスデータ出力処理次に、変
換ランレングスデータ出力処理(ステップS46)の動
作を、図7に示すフローチャートを参照して説明する。 まず、変換ランレングス値累算レジスタRi の内容が
63以下か否か判定する(ステップS50)。レジスタ
Ri の内容が63を超えていれば64の倍数に63を
加算した値を出力レジスタOLに格納し(ステップS5
1)、この格納した整数値データを変換ランレングスデ
ータとして出力する(ステップS52)。レジスタRi
 の内容が63以下であればステップS51〜S52の
処理をジャンプする。
Converted Run Length Data Output Process Next, the operation of the converted run length data output process (step S46) will be explained with reference to the flowchart shown in FIG. First, it is determined whether the contents of the conversion run length value accumulation register Ri are 63 or less (step S50). If the contents of the register Ri exceed 63, the value obtained by adding 63 to a multiple of 64 is stored in the output register OL (step S5).
1) The stored integer value data is output as converted run length data (step S52). Register Ri
If the content is 63 or less, the processing of steps S51 to S52 is jumped.

【0047】次いで、レジスタRi の内容を64で除
算して得られる端数値を出力レジスタOLに格納し(ス
テップS53)、この格納した端数値を変換端数値デー
タとして出力する(ステップS54)。
Next, the fractional value obtained by dividing the contents of the register Ri by 64 is stored in the output register OL (step S53), and the stored fractional value is output as converted fractional value data (step S54).

【0048】[0048]

【発明の効果】この発明によれば、画像データの符号/
復号化処理と変倍処理とを同時に行うことにより、処理
の単純化および高速化が可能となり、また、画像メモリ
を備えていない装置に適用しても画像の縮小/拡大が可
能となる。
[Effects of the Invention] According to the present invention, the image data code/
By performing the decoding process and the scaling process at the same time, it is possible to simplify and speed up the process, and it is also possible to reduce/enlarge the image even when applied to an apparatus that does not have an image memory.

【0049】また、予めランレングス変倍テーブルを生
成して変倍処理を行うので任意の変倍処理が可能となり
、また、画素単位ではなくランレングス単位で一括変換
するので高速変倍処理が可能となる。また、画素に対す
る比例配分を加算処理のみで行うので演算処理が単純化
され、さらに、比例配分なので変換後の画像が鮮明とな
る。
Furthermore, since a run-length scaling table is generated in advance and scaling processing is performed, arbitrary scaling processing is possible, and high-speed scaling processing is possible because batch conversion is performed in run-length units rather than pixel units. becomes. Further, since the proportional allocation to pixels is performed only by addition processing, the arithmetic processing is simplified, and furthermore, since the proportional allocation is performed, the image after conversion becomes clearer.

【0050】また、各ラインのメモリ上の記憶位置を表
すアドレステーブルを備えているので、任意の垂直(副
走査)位置からの変換が容易となり、部分画像処理が高
速に行える。
Furthermore, since an address table representing the memory location of each line is provided, conversion from any vertical (sub-scanning) position is facilitated, and partial image processing can be performed at high speed.

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

【図1】この発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】変倍変換処理の一例を示すフローチャートであ
る。
FIG. 2 is a flowchart illustrating an example of scaling conversion processing.

【図3】ランレングス変倍テーブル生成処理の一例を示
すフローチャートである。
FIG. 3 is a flowchart illustrating an example of run-length scaling table generation processing.

【図4】テーブル値設定処理の一例を示すフローチャー
トである。
FIG. 4 is a flowchart illustrating an example of table value setting processing.

【図5】変倍テーブルの一例を示す表である。FIG. 5 is a table showing an example of a scaling table.

【図6】水平変倍処理の一例を示すフローチャートであ
る。
FIG. 6 is a flowchart illustrating an example of horizontal scaling processing.

【図7】変換ランレングスデータ出力処理の一例を示す
フローチャートである。
FIG. 7 is a flowchart illustrating an example of conversion run length data output processing.

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

1    変換装置 2    外部装置 10    変換制御部 11    原画像/ランレングス変換部12    
ランレングス/原画像変換部13    ランレングス
/コード変換部14    コード/ランレングス変換
部15    変倍変換部 16    保持バッファ 17    入出力バッファ 18    アドレスバッファ
1 Conversion device 2 External device 10 Conversion control section 11 Original image/run length conversion section 12
Run length/original image converter 13 Run length/code converter 14 Code/run length converter 15 Scaling converter 16 Holding buffer 17 Input/output buffer 18 Address buffer

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】  対象画像の各画素を2値情報で表す原
画像データと、この原画像データにおける連続する白画
素の画素数または連続する黒画素の画素数をランレング
ス符号化して表すランレングスデータと、このランレン
グスデータを圧縮符号化して表すコードデータとを相互
に変換する際に変倍処理を加えることを特徴とする画像
データ符号/復号化装置。
1. Original image data that represents each pixel of a target image as binary information, and a run length that represents the number of consecutive white pixels or the number of consecutive black pixels in this original image data by running length encoding. An image data encoding/decoding device characterized in that a scaling process is applied when mutually converting data and code data representing the run-length data compressed and encoded.
【請求項2】  請求項1において、前記変倍処理は、
変倍前のランレングスデータに対応する変換後のランレ
ングスデータおよび補正データからなる変倍テーブルを
参照することで行うことを特徴とする画像データ符号/
復号化装置。
2. In claim 1, the scaling process includes:
An image data code which is characterized in that the scaling is performed by referring to a scaling table consisting of run length data after conversion and correction data corresponding to run length data before scaling.
decoding device.
【請求項3】  請求項2において、前記変倍テーブル
は、指定された任意の変倍率に基づいて予め生成してお
くことを特徴とする画像データ符号/復号化装置。
3. The image data encoding/decoding apparatus according to claim 2, wherein the scaling table is generated in advance based on a designated arbitrary scaling factor.
【請求項4】  請求項1において、前記ランレングス
データまたは前記コードデータのメモリへの記憶時に、
各ラインの先頭位置の上記メモリ上の記憶位置を表すア
ドレスデータを、テーブルとして保持することにより指
定された任意のラインからの変換処理を高速で行うこと
を特徴とする画像データ符号/復号化装置。
4. According to claim 1, when storing the run length data or the code data in a memory,
An image data encoding/decoding device characterized in that it performs conversion processing from any specified line at high speed by holding address data representing the storage location on the memory of the beginning position of each line as a table. .
【請求項5】  対象画像の各画素を2値化した原画像
データを、連続する白画素の画素数または連続する黒画
素の画素数を表すランレングスデータに変換する原画像
/ランレングス変換部と、上記ランレングスデータを、
上記原画像データに変換するランレングス/原画像変換
部と、上記ランレングスデータを、圧縮符号化してコー
ドデータに変換するランレングス/コード変換部と、上
記コードデータを、上記ランレングスデータに変換する
コード/ランレングス変換部と、上記ランレングスデー
タを、拡大または縮小処理することによって上記対象画
像の変倍処理を行う変倍変換部と、を備えることを特徴
とする画像データ符号/復号化装置。
5. An original image/run length conversion unit that converts original image data obtained by binarizing each pixel of the target image into run length data representing the number of consecutive white pixels or the number of consecutive black pixels. And the above run length data,
A run-length/original image conversion unit that converts the above-mentioned original image data; a run-length/code conversion unit that compresses and encodes the above-mentioned run-length data and converts it into code data; and a run-length/code conversion unit that converts the above-mentioned code data into the above-mentioned run-length data. an image data encoding/decoding unit comprising: a code/run length conversion unit that performs scaling processing of the target image by enlarging or reducing the run length data; Device.
JP3044850A 1991-03-11 1991-03-11 Picture data coder/decoder Withdrawn JPH04281667A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP3044850A JPH04281667A (en) 1991-03-11 1991-03-11 Picture data coder/decoder
DE19924207618 DE4207618A1 (en) 1991-03-11 1992-03-10 Picture data conversion device for facsimile - converts binary point data corresp. to presentation picture into running long data, and picture size converter
US08/189,245 US5488486A (en) 1991-03-11 1994-01-31 Image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3044850A JPH04281667A (en) 1991-03-11 1991-03-11 Picture data coder/decoder

Publications (1)

Publication Number Publication Date
JPH04281667A true JPH04281667A (en) 1992-10-07

Family

ID=12702956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3044850A Withdrawn JPH04281667A (en) 1991-03-11 1991-03-11 Picture data coder/decoder

Country Status (2)

Country Link
JP (1) JPH04281667A (en)
DE (1) DE4207618A1 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4882630A (en) * 1987-06-12 1989-11-21 Sanyo Electric Co., Ltd. Printing apparatus and facsimile equipment
EP0737937B1 (en) * 1989-02-02 2000-05-03 Dai Nippon Insatsu Kabushiki Kaisha Image processing apparatus

Also Published As

Publication number Publication date
DE4207618A1 (en) 1992-09-24

Similar Documents

Publication Publication Date Title
US6798833B2 (en) Video frame compression/decompression hardware system
EP0504903A2 (en) Apparatus for and method of preprocessing binary picture data prior to run-length encoding
US20020061140A1 (en) Image processing apparatus and method, program and storage medium
EP0357386A2 (en) Image encoding apparatus
JP2924964B2 (en) Image information encoding device, image information decoding device, and image information encoding / decoding device
JPH04281667A (en) Picture data coder/decoder
JP2004221998A (en) Image processor
JP3083493B2 (en) Image processing device
JP3024850B2 (en) Image processing device
JPH10341437A (en) Image processing method and device therefor
US5488486A (en) Image processing system
JPS6214579A (en) Decoding circuit
JPH08125818A (en) Image processing unit
JPH01108861A (en) Picture coder
JP3214819B2 (en) Image conversion method and image encoding method
JPH04270569A (en) Data compression system for picture processor
JP3187696B2 (en) Image coding device
JP2792994B2 (en) Line variable coding device
JP3270232B2 (en) Data compression device
JP2599524B2 (en) Image communication device
JP2556047B2 (en) Image information coding device
JPH09121286A (en) Method and device for compressing picture data
JP2001102937A (en) Method and device for run-length encoding
JPH06245084A (en) Processor for picture data
JPS6051370A (en) Picture information encoding processor

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514