JPH09200539A - Method for detecting pixel change point for image data - Google Patents
Method for detecting pixel change point for image dataInfo
- Publication number
- JPH09200539A JPH09200539A JP663596A JP663596A JPH09200539A JP H09200539 A JPH09200539 A JP H09200539A JP 663596 A JP663596 A JP 663596A JP 663596 A JP663596 A JP 663596A JP H09200539 A JPH09200539 A JP H09200539A
- Authority
- JP
- Japan
- Prior art keywords
- change point
- image data
- data
- bit
- pixel
- 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
Links
- 238000000034 method Methods 0.000 title claims description 22
- 238000001514 detection method Methods 0.000 claims abstract description 27
- 238000006243 chemical reaction Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000003705 background correction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ファクシミリ装置
において、画像データの送信時の符号化、あるいは受信
時の復号時などに使用される画像データの画素変化点検
出方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting a pixel change point of image data used in a facsimile apparatus, such as encoding at the time of transmitting image data or decoding at the time of reception.
【0002】[0002]
【従来の技術】ファクシミリ装置は、送信時には原稿か
ら読み取った画像データを符号化することによって圧縮
して伝送する一方、受信時には圧縮された符号化画像デ
ータを復号することによって元の画像データに再生し印
字出力するようになっている。ここに符号化方式には、
MH符号化(1次元符号化方式)やMR符号化(2次元
符号化方式)等があり、これらによりデータ圧縮を施す
ことによって、回線使用時間を低減させた効率的なデー
タ伝送を実現している。2. Description of the Related Art A facsimile apparatus encodes image data read from an original at the time of transmission to compress and transmit the image data, while at the time of reception, reproduces the original image data by decoding the compressed encoded image data. Then, it is designed to print out. Here the encoding method is
There are MH coding (one-dimensional coding system), MR coding (two-dimensional coding system), etc., and by performing data compression by these, efficient data transmission with reduced line usage time is realized. There is.
【0003】図4の(a)〜(c)は、符号化処理の一
例を示したものであり、画像データをMH符号化する場
合を示している。画像データを1ライン(走査線)毎
に、1画素ずつビットイメージデータ(2値化データ)
に変換し(黒画素を「1」、白画素を「0」)、このデ
ータの同じビットの連続数を計数して、白ランまたは黒
ランのランレングスデータに変換し、更にこれを予め定
められたターミネイティング符号とメイクアップ符号で
構成されたMH符号に変換する。FIGS. 4A to 4C show an example of the encoding process, and show the case where the image data is MH encoded. Bit image data (binarized data) for each pixel of image data for each line (scanning line)
(Black pixel is “1”, white pixel is “0”), the continuous number of the same bit of this data is counted and converted into run length data of white run or black run, and this is determined in advance. It is converted into an MH code composed of the generated terminating code and makeup code.
【0004】この処理において、ビットイメージの画像
データからランレングスデータに変換する際に、同じ画
素の連続数を計数しているが、詳しくは、白画素と黒画
素の変化点のみを検出して、この処理の効率化を図って
いる。画素変化点の検出方法の一例を図5の(a)〜
(c)に示す。この図では、黒画素を検出するために、
ビットイメージの画像データに対して、1バイト(8ビ
ット)ずつ、マスクデータ(黒画素検出には「1111
1111」、白画素検出には「00000000」)を
使用して、排他的論理和(XOR)による論理演算を行
い、これから得られる変化点検出用データを1ビットず
つ参照し、「0」(偽)をマスクデータに対応する色、
「1」(真)をマスクデータと対応した色とは反対の色
(図の場合は白画素)と判別して、それぞれの色のビッ
トデータの開始点を画素変化点としている。In this process, when the bit image image data is converted into run length data, the number of consecutive same pixels is counted. Specifically, only the change points of white pixels and black pixels are detected. , We are trying to improve the efficiency of this process. An example of a method of detecting a pixel change point is shown in FIG.
It is shown in (c). In this figure, to detect black pixels,
Mask data (for detecting black pixels, “1111
1111 ”,“ 00000000 ”for white pixel detection) is used to perform a logical operation by exclusive OR (XOR), and the change point detection data obtained from this is referenced bit by bit, and“ 0 ”(false ) Is the color corresponding to the mask data,
"1" (true) is determined to be the color (white pixel in the figure) opposite to the color corresponding to the mask data, and the start point of the bit data of each color is set as the pixel change point.
【0005】このような画素変化点の検出は、送信する
画像データに特殊な画像処理を施すような場合には特に
有効になり、また、MR符号化の場合は、1ライン前を
参照ラインとして、このラインとの画素位置の比較によ
って符号化を行っているため、復号時にも処理してい
る。The detection of such a pixel change point is particularly effective when special image processing is performed on the image data to be transmitted, and in the case of MR encoding, one line before is used as the reference line. Since the encoding is performed by comparing the pixel position with this line, it is also processed at the time of decoding.
【0006】[0006]
【発明が解決しようとする課題】ところが、上記従来の
画像データの画素変化点検出方法では、ビットイメージ
データを1ビットずつ参照し、連続している参照ビット
とは異なるビットになった位置を変化点としているた
め、処理に時間を要し複雑化していた。本発明は、上記
事情に鑑みて提案されるものであり、簡単な処理構成に
よって、迅速に符号化、復号処理を実施できる画像デー
タの画素変化点検出方法を提供することを目的としてい
る。However, in the above-mentioned conventional pixel change point detection method for image data, the bit image data is referred to bit by bit, and the position at which the bit becomes different from the continuous reference bit is changed. Since it is a point, it takes a lot of time to process and it is complicated. The present invention has been proposed in view of the above circumstances, and an object of the present invention is to provide a pixel change point detection method for image data, which enables quick encoding and decoding processing with a simple processing configuration.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に提案される請求項1に記載の本発明は、ビットイメー
ジである画像データと、この画像データを1ビット右シ
フトさせたデータとの排他的論理和を変化点検出用デー
タとして生成して、この変化点検出用データのうち、演
算結果が真であるビットの位置を、画像データの白画素
と黒画素の変化点として検出する。これによって、同じ
ビットの連続数を計数する必要がなくなり、生成した変
化点検出用データをそのまま画素の変化点データとして
使用することができる。また、ファクシミリの場合には
1ライン毎の画像データは必ず白画素から開始している
ものとするので、最初の画素変化点は黒画素の開始点と
なる。SUMMARY OF THE INVENTION The present invention as set forth in claim 1 proposed to achieve the above object, comprises image data which is a bit image and data obtained by right-shifting the image data by 1 bit. An exclusive OR is generated as change point detection data, and the position of the bit for which the calculation result is true is detected as the change point between the white pixel and the black pixel of the image data in the change point detection data. As a result, it is not necessary to count the number of consecutive same bits, and the generated change point detection data can be used as it is as pixel change point data. Further, in the case of a facsimile, the image data for each line is assumed to always start from a white pixel, so the first pixel change point is the black pixel start point.
【0008】請求項2に記載の本発明は、請求項1にお
ける変化点検出用データの生成及び画像データの画素の
変化点の検出を、CPUによって演算処理する。これに
よって、従来のソフトウェア処理による同じビットの計
数を行う場合に比べ、高速に処理することが出来る。請
求項3に記載の本発明は、請求項2のCPUは、変化点
検出用データを参照し、変化点として検出したビットか
ら、次の変化点の直前のビットまでのビット数を順次計
数して、画像データをランレングスデータに変換する。
これによって、ソフトウェアにより画像データの符号化
処理が従来と比べて高速になる。According to a second aspect of the present invention, the CPU performs arithmetic processing for generating the change point detection data and detecting the pixel change point of the image data according to the first aspect. As a result, the processing can be performed at a higher speed than in the case where the same bit counting is performed by the conventional software processing. According to the present invention of claim 3, the CPU of claim 2 refers to the change point detection data, and sequentially counts the number of bits from the bit detected as the change point to the bit immediately before the next change point. To convert the image data into run length data.
As a result, the encoding process of the image data by software becomes faster than the conventional one.
【0009】[0009]
【発明の実施の形態】以下に、図面を参照して本発明の
実施の形態を説明する。図1の(a)〜(d)は、本発
明の画像データの画素変化点検出方法を模式的に示した
ものであり、ここには、ファクシミリ装置において、原
稿を読取走査した画像データを符号化するときの例を示
している。Embodiments of the present invention will be described below with reference to the drawings. 1A to 1D schematically show a pixel change point detection method of image data according to the present invention, in which image data obtained by reading and scanning an original is coded in a facsimile apparatus. It shows an example of conversion.
【0010】ビットイメージである画像データd1を、
この画像データd1を1ビット右シフトさせたマスクデ
ータd2で、排他的論理和(XOR)によって論理演算
し、変化点検出用データd3を生成する。そして、この
変化点検出用データd3を参照して、演算結果が真
「1」であるビットの位置を、画像データd1の白画素
と黒画素の変化点として検出する。The image data d1 which is a bit image is
The mask data d2 obtained by right-shifting the image data d1 by 1 bit is logically operated by an exclusive OR (XOR) to generate change point detection data d3. Then, with reference to the change point detection data d3, the position of the bit for which the operation result is true “1” is detected as the change point of the white pixel and the black pixel of the image data d1.
【0011】この図には、1ライン分の画像データを先
頭から示しており、1ラインは必ず白画素から開始する
ものとしているので、ランレングスデータd4は(d)
に示したようなデータになる。すなわち、ランレングス
データd4に変換するときには、最初の数ビットの白画
素以外は、変化点として検出したビットから、次の変化
点の直前のビットまでのビット数を順次計数すればよ
い。In this figure, the image data for one line is shown from the beginning, and since one line always starts from a white pixel, the run length data d4 is (d).
The data will be as shown in. That is, when converting to run length data d4, the number of bits from the bit detected as the change point to the bit immediately before the next change point may be sequentially counted, except for the white pixels of the first few bits.
【0012】次に、本発明方法を実施するファクシミリ
装置の内部構成を図2にブロック図で示す。ここでは、
感熱紙を使用するファクシミリ装置について説明する。
図において、1は以下の各部をアドレスバスABとデー
タバスDBで接続して信号制御するCPU、2は、電話
回線Lに対する発信、着信の網制御を行うNCU2a
と、ファクシミリ通信手順を実行し、画像データなどの
送受信を行なうモデム2bとで構成された回線制御部、
3は、原稿画像を読み取るためのイメージセンサ3a
と、画像データのシェーディング補正等を行う画像処理
回路3bと、送信原稿を給紙、排紙するための送信モー
タ3c及びモータドライバ3dとで構成される画像読取
部、4は、熱を加えて感熱紙に印刷を行うためのサーマ
ルヘッド4aと、印字出力する画像データを一旦格納す
る画像DRAM(4b)と、画像DRAM(4b)に画
像データを格納し、サーマルヘッド4aに印字出力を指
示する論理回路を備えたゲートアレイ4cと、受信画像
を印刷する感熱紙を送るための受信モータ4d及びモー
タドライバ4eとを備えた印字出力部、5は液晶ディス
プレイ5aと操作パネル5bとを備えた操作部、6はR
OM6aとRAM6bとを備えた記憶部である。Next, FIG. 2 is a block diagram showing the internal construction of the facsimile apparatus for carrying out the method of the present invention. here,
A facsimile machine using thermal paper will be described.
In the figure, 1 is a CPU that controls the signals by connecting the following parts with an address bus AB and a data bus DB, and 2 is an NCU 2a that performs network control of outgoing and incoming calls to a telephone line L.
And a modem 2b for executing a facsimile communication procedure and transmitting and receiving image data and the like,
Reference numeral 3 denotes an image sensor 3a for reading a document image.
The image reading unit 4 including an image processing circuit 3b for performing shading correction of image data, a transmission motor 3c for feeding and discharging a transmission original, and a motor driver 3d apply heat. The thermal head 4a for printing on thermal paper, the image DRAM (4b) for temporarily storing the image data to be printed out, the image data for the image DRAM (4b), and the thermal head 4a instructing the printout. A print output unit 5 including a gate array 4c having a logic circuit, a receiving motor 4d for sending a thermal paper for printing a received image, and a motor driver 4e, and 5 is an operation including a liquid crystal display 5a and an operation panel 5b. Part, 6 is R
It is a storage unit including an OM 6a and a RAM 6b.
【0013】CPU1では、本発明方法である変化点検
出用データの生成及び画像データの画素の変化点の検出
を演算処理している。図3には、CPU1が行う演算処
理の一例をフローチャート(ステップ100〜114)
をもって示している。ここには、1ライン分の画像デー
タd1を画像処理回路3bの内部バッファメモリから取
出し、ランレングスデータd4に変換するまでの動作を
示している。The CPU 1 performs arithmetic processing for generating change point detection data and detecting pixel change points of image data, which is the method of the present invention. FIG. 3 is a flowchart (steps 100 to 114) of an example of arithmetic processing performed by the CPU 1.
Is shown with. Here, the operation of taking out the image data d1 for one line from the internal buffer memory of the image processing circuit 3b and converting it to the run length data d4 is shown.
【0014】CPU1は、1バイト毎に画像データd1
とマスクデータd2とを順次演算して、1ライン分(A
4サイズの場合、最大1728画素(ビット))の変化
点検出用データd3を生成した後に(ステップ100〜
105)、このデータを1バイトずつ参照し、参照デー
タがすべて「0」ならばランレングスを8カウントアッ
プし、そうでない場合には1ビットずつ参照していき、
参照したビットが「1」であれば画素の変化点として、
順次白ラン、黒ランのレングスをカウントアップし、1
ライン分のランレングスデータd4を作成する(ステッ
プ106〜114)。なお、初期位置を右に1つずらす
と、変化点まで計数すれば、計数値がそのままランレン
グスとなるので、より高速な処理が可能になる。The CPU 1 has the image data d1 for each byte.
And the mask data d2 are sequentially calculated, and one line (A
In the case of 4 sizes, after the change point detection data d3 of maximum 1728 pixels (bits) is generated (step 100-
105), refer to this data one byte at a time, and if the reference data are all "0", increment the run length by 8; otherwise, reference one bit at a time,
If the referenced bit is "1", it is a pixel change point,
Count up the length of white run and black run one by one,
The run length data d4 for the line is created (steps 106 to 114). It should be noted that if the initial position is shifted to the right by one, if the change point is counted, the count value becomes the run length as it is, so that higher-speed processing becomes possible.
【0015】[0015]
【発明の効果】以上の説明からも理解できるように、本
発明の請求項1に記載の画像データの画素変化点検出方
法によれば、白画素あるいは黒画素を検出するためのマ
スクデータを予め用意しておく必要はなく、ビットイメ
ージである画像データを基にしてマスクデータを生成
し、これによって論理演算を行えば、容易に画素の変化
点を検出できる。また、画素変化点を同じビットの連続
数を計数することによって検出する必要がなくなるの
で、処理が簡略化され、符号化、復号の処理速度も速く
なる。As can be understood from the above description, according to the pixel change point detection method for image data according to claim 1 of the present invention, mask data for detecting a white pixel or a black pixel is previously stored. It is not necessary to prepare it, and the change point of the pixel can be easily detected by generating the mask data based on the image data which is a bit image and performing the logical operation by this. Further, since it is not necessary to detect the pixel change point by counting the number of consecutive same bits, the processing is simplified, and the encoding / decoding processing speed is increased.
【0016】請求項2に記載の画像データの画素変化点
検出方法によれば、ファクシミリ装置に内蔵されたCP
Uによってソフト的に変化点検出用データを生成し、画
像データの画素変化点の検出を行うので、高速かつ容易
に処理することが出来る。請求項3に記載の画像データ
の画素変化点検出方法によれば、CPUによる簡単な処
理で、画像データをランレングスデータに変換すること
ができるので、ソフトウェアによる符号化処理速度の高
速化が図れる。According to the pixel change point detecting method of the image data described in claim 2, the CP incorporated in the facsimile device
Since the change point detection data is generated by software by U and the pixel change point of the image data is detected, the processing can be performed at high speed and easily. According to the pixel change point detecting method of the image data described in claim 3, since the image data can be converted into the run length data by the simple processing by the CPU, the encoding processing speed by the software can be increased. .
【図1】(a)〜(d)は、本発明に係る画像データの
画素変化点検出方法を説明する模式図である。1A to 1D are schematic diagrams illustrating a method for detecting a pixel change point of image data according to the present invention.
【図2】本発明方法を実施するファクシミリ装置の内部
構成の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of the internal configuration of a facsimile apparatus that carries out the method of the present invention.
【図3】本発明方法の一例を説明するフローチャートで
ある。FIG. 3 is a flowchart illustrating an example of the method of the present invention.
【図4】(a)〜(c)は、符号化処理を説明する模式
図である。4A to 4C are schematic diagrams for explaining the encoding process.
【図5】(a)〜(c)は、従来の画像データの画素変
化点検出方法を説明する模式図である。5A to 5C are schematic diagrams illustrating a conventional pixel change point detection method for image data.
d1・・・画像データ(ビットイメージ) d2・・・マスクデータ(画像データを1ビット右シフ
ト) d3・・・変化点検出用データ d4・・・ランレングスデータ 1・・・CPU 2・・・回線制御部 3・・・画像読取部 4・・・印字出力部 5・・・操作部 6・・・記憶部d1 ... Image data (bit image) d2 ... Mask data (image data is shifted right by 1 bit) d3 ... Change point detection data d4 ... Run length data 1 ... CPU 2 ... Line control unit 3 ... Image reading unit 4 ... Print output unit 5 ... Operation unit 6 ... Storage unit
Claims (3)
画像データを1ビット右シフトさせたデータとの排他的
論理和を変化点検出用データとして生成して、この変化
点検出用データのうち、演算結果が真であるビットの位
置を、上記画像データの白画素と黒画素の変化点として
検出することを特徴とする画像データの画素変化点検出
方法。1. An exclusive OR of image data that is a bit image and data obtained by right-shifting the image data by 1 bit is generated as change point detection data, and among the change point detection data, A method for detecting a pixel change point in image data, wherein the position of a bit for which the calculation result is true is detected as a change point between a white pixel and a black pixel in the image data.
ータの画素の変化点の検出は、CPUによって演算処理
されることを特徴とする請求項1に記載の画像データの
画素変化点検出方法。2. The method for detecting pixel change points of image data according to claim 1, wherein the generation of the change point detection data and the detection of pixel change points of the image data are processed by a CPU. .
参照し、変化点として検出したビットから、次の変化点
の直前のビットまでのビット数を順次計数して、上記画
像データをランレングスデータに変換することを特徴と
する請求項2に記載の画像データの画素変化点検出方
法。3. The CPU refers to the change point detection data and sequentially counts the number of bits from the bit detected as the change point to the bit immediately before the next change point to run the image data. The method for detecting pixel change points of image data according to claim 2, wherein the method is performed by converting to length data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP663596A JPH09200539A (en) | 1996-01-18 | 1996-01-18 | Method for detecting pixel change point for image data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP663596A JPH09200539A (en) | 1996-01-18 | 1996-01-18 | Method for detecting pixel change point for image data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09200539A true JPH09200539A (en) | 1997-07-31 |
Family
ID=11643835
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP663596A Pending JPH09200539A (en) | 1996-01-18 | 1996-01-18 | Method for detecting pixel change point for image data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09200539A (en) |
-
1996
- 1996-01-18 JP JP663596A patent/JPH09200539A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3441759B2 (en) | Facsimile apparatus and facsimile communication result output method | |
| US6301010B1 (en) | Image processing method and apparatus | |
| JPH09200539A (en) | Method for detecting pixel change point for image data | |
| JP3131051B2 (en) | Encoding / decoding method and apparatus therefor | |
| US5446554A (en) | Reader for a facsimile apparatus which carries out the read apparatus in accordance with a vacant capacity of a buffer | |
| US5452092A (en) | Changing pixel detector for coding of image data | |
| JP3432153B2 (en) | Image processing apparatus and image processing method | |
| JP3263212B2 (en) | Image transmission method, image recording method, image transmission device, and image recording device | |
| JP3879900B2 (en) | Facsimile device | |
| JPH06197189A (en) | Fax machine | |
| JP3295567B2 (en) | Image data compressor | |
| JP2000069298A (en) | Facsimile machine | |
| JP3349894B2 (en) | Control method for facsimile machine | |
| JP2819912B2 (en) | Image data storage method determination method | |
| JP3282765B2 (en) | Facsimile communication device | |
| JP3164261B2 (en) | Facsimile communication connection device | |
| JP2689745B2 (en) | Coded data transmission processing method | |
| JPH11177735A (en) | Facsimile machine | |
| JP3295502B2 (en) | Facsimile apparatus control method and facsimile apparatus | |
| JPS63117562A (en) | Image data coding system | |
| JPH05298438A (en) | Data communication method and device | |
| KR0154698B1 (en) | How do I save paper in my fax? | |
| JPH07184060A (en) | Image processing device | |
| JP2000253237A (en) | Facsimile machine | |
| JP2002354251A (en) | Image forming device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20021203 |