JPH0951441A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH0951441A
JPH0951441A JP7199894A JP19989495A JPH0951441A JP H0951441 A JPH0951441 A JP H0951441A JP 7199894 A JP7199894 A JP 7199894A JP 19989495 A JP19989495 A JP 19989495A JP H0951441 A JPH0951441 A JP H0951441A
Authority
JP
Japan
Prior art keywords
data
color
block
area
image processing
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
JP7199894A
Other languages
Japanese (ja)
Inventor
Makoto Fujimoto
良 藤本
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP7199894A priority Critical patent/JPH0951441A/en
Publication of JPH0951441A publication Critical patent/JPH0951441A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To attain high speed processing and to improve print quality by dividing an image area and applying a different coding system to the divided areas. SOLUTION: An RGB image of an original read by a scanner 101 is converted into a Y signal and color difference signals by a conversion section. A compression coding section 11 applies JPEG coding to the Y and color difference signals and the Y signal is binarized. An image area discrimination section 13 separates JPEG data into color area data and black/white area data. The color area data are replaced with zeros and the zero data and the binary data are given to a compression coding section 16, in which they are MMR-coded. A synthesis section 17 synthesizes the JPEG data and the MMR data and the synthesized data are sent from a MODEM 104. Thus, the JPEG and MMR data are generated from the beginning and the color component of the binary data are replaced with zeros, then the compression efficiency is considerably improved.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はカラー画像を伝送す
るカラーファクシミリ装置等で用いられる画像処理装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus used in a color facsimile apparatus or the like for transmitting a color image.

【0002】[0002]

【従来の技術】従来のファクシミリは白黒画像を伝送す
るものであったが、カラー画像に対するニーズの高まり
と、カラースキャナやカラープリンタのコストの低減と
により、カラーファクシミリが実用化されつつある。さ
らにファクシミリ機能をパソコンで行うパソコンファク
シミリが出現しているが、このパソコンファクシミリが
カラースキャナやカラープリンタを持っている場合に
は、カラー画像を伝送したいと考えるのは当然であり、
そのニーズはますます高まっている。
2. Description of the Related Art Conventional facsimiles transmit black-and-white images, but color facsimiles are being put to practical use due to the increasing need for color images and the cost reduction of color scanners and color printers. Furthermore, personal computer facsimiles that perform a facsimile function on a personal computer have appeared, but if this personal computer facsimile has a color scanner or color printer, it is natural to want to transmit a color image,
The needs are ever increasing.

【0003】カラーファクシミリを実現するために従来
から提案されたり、あるいは一部で実用化されつつある
画像処理方法として、原稿画像をJPEG方式等の圧縮
符号化方式により符号化して伝送するものがある。しか
しながらJPEG方式で文字が存在する原稿画像を圧縮
符号化する場合、圧縮率を上げると文字の印字品質が劣
化する。そこで圧縮率を下げると符号化データ量が増加
し、伝送時間が長くなると共に通信コストも上昇する。
As an image processing method that has been proposed or partially put into practical use in order to realize a color facsimile, there is a method in which an original image is encoded by a compression encoding method such as a JPEG method and transmitted. . However, when compressing and coding a document image in which characters are present by the JPEG method, increasing the compression rate deteriorates the print quality of the characters. Therefore, if the compression rate is lowered, the amount of encoded data increases, the transmission time becomes longer, and the communication cost also rises.

【0004】例えばA4判の原稿1枚を200dpi程
度の解像度で読み取ると、データ量はRGB3色で10
MB程度になり、これを圧縮率1/20で符号化して1
4.4kbpsの速度で伝送すると、約6分の伝送時間
がかかる。そこで圧縮率を例えば1/100に上げる
と、伝送時間は1分前後に短縮されるが、文字の印字品
質が劣化することは避けられない。
For example, if one A4 size original is read at a resolution of about 200 dpi, the data amount is 10 in RGB three colors.
It becomes about MB, and this is coded with a compression rate of 1/20 to 1
Transmission at a speed of 4.4 kbps takes about 6 minutes of transmission time. Therefore, if the compression rate is increased to, for example, 1/100, the transmission time is shortened to about 1 minute, but it is unavoidable that the print quality of characters deteriorates.

【0005】この問題を解決するために、従来より学会
等において次のような提案が種々成されている。即ち、
1枚の原稿の中をその内容に応じていくつかの像域に分
割し、各像域についてその内容にふさわしい符号化方式
を割り当てるというものである。
In order to solve this problem, various proposals have been conventionally made in academic societies and the like. That is,
One document is divided into several image areas according to its contents, and each image area is assigned a coding method suitable for its contents.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
たように原稿を像域に分割して符号化方式を割り当てる
方法は、像域の分割を厳密に判定するために複雑なアル
ゴリズムを必要とし、このため判定に時間がかかる等、
実用的でないという問題があった。
However, as described above, the method of dividing the original into image areas and assigning the encoding method requires a complicated algorithm for strict determination of the image area division. Therefore, it takes time to judge,
There was a problem that it was not practical.

【0007】本発明は上記のような問題を解決するため
になされたもので、像域を分割して符号化方式を割り当
てる方法を容易に実現することのできる画像処理装置を
得ることを目的としている。
The present invention has been made to solve the above problems, and an object thereof is to obtain an image processing apparatus capable of easily realizing a method of dividing an image area and assigning a coding method. There is.

【0008】[0008]

【課題を解決するための手段】請求項1の発明において
は、入力された画像データのカラー領域と白黒領域とを
判定する判定手段と、上記判定手段で判定されたカラー
領域の画像データを第1の符号化方式で符号化する第1
の符号化手段と、上記判定手段で判定された白黒領域の
画像データを第2の符号化方式で符号化する第2の符号
化手段とを設けている。
According to a first aspect of the present invention, there is provided a determination means for determining a color area and a monochrome area of input image data, and image data of the color area determined by the determination means. 1st encoding with 1 encoding method
And the second encoding means for encoding the image data of the black-and-white area determined by the determining means by the second encoding method.

【0009】請求項2の発明においては、入力された画
像データを形成する色データと輝度データとを用いて第
1の符号化方式で符号化する第1の符号化手段と、上記
第1の符号化手段から得られる符号化データのカラー領
域を判定する判定手段と、上記判定手段で判定されたカ
ラー領域の画像データを所定の値に置換える置換え手段
と、上記輝度データと上記置換え手段から得られる上記
所定の値のデータとを第2の符号化方式で符号化する第
2の符号化手段とを設けている。
According to another aspect of the present invention, there is provided a first encoding means for encoding the input image data by using the color data and the luminance data forming the input image data, and the first encoding means. From the brightness data and the replacement means, a determination means for determining the color area of the encoded data obtained from the encoding means, a replacement means for replacing the image data of the color area determined by the determination means with a predetermined value, There is provided a second encoding means for encoding the obtained data of the predetermined value by the second encoding method.

【0010】請求項4の発明においては、画像をブロッ
ク単位に符号化して成る入力画像データのカラー領域と
モノクロ領域とを上記ブロック単位に判定する判定手段
と、上記判定手段で判定された上記カラー領域のブロッ
クと上記白黒領域のブロックとの境界近傍のデータをぼ
かす処理を行うぼかし手段とを設けている。
According to another aspect of the present invention, there is provided a judging means for judging the color area and the monochrome area of the input image data obtained by coding the image in block units, in the block unit, and the color judged in the judging means. There is provided blurring means for blurring data in the vicinity of the boundary between the area block and the black and white area block.

【0011】請求項10の発明においては、入力された
画像データをそれぞれ第1、第2の符号化方式で符号化
する第1、第2の符号化手段と、上記第1、第2の符号
化手段からそれぞれ得られる符号化データから画像のカ
ラー領域と白黒領域とを判定する判定手段とを設けてい
る。
According to a tenth aspect of the present invention, first and second encoding means for encoding the input image data by the first and second encoding systems, respectively, and the first and second encoding means. Determining means for determining a color area and a black and white area of the image from the coded data respectively obtained from the encoding means is provided.

【0012】[0012]

【作用】請求項1の発明によれば、伝送時間を短くする
ことができると共に、印字品質を向上させることができ
る。請求項2の発明によれば、処理を高速で行えると共
に、メモリ消費量を小さくすることができる。請求項4
の発明によれば、カラー領域と白黒領域との境界部分に
現われる見苦しさを軽減することができる。請求項10
の発明によれば、処理を無駄なく行ってデータ量を削減
することができる。
According to the first aspect of the invention, the transmission time can be shortened and the printing quality can be improved. According to the invention of claim 2, the processing can be performed at high speed and the memory consumption amount can be reduced. Claim 4
According to the invention, it is possible to reduce the unsightly appearance that appears at the boundary between the color area and the black and white area. Claim 10
According to the invention, the amount of data can be reduced by performing the processing without waste.

【0013】[0013]

【発明の実施の形態】以下、本発明の実施の形態を図に
ついて説明する。図1は各実施例に適用されるパソコン
を用いたカラーファクシミリ装置のシステム構成を示
す。図において、ファクシミリ送信時には、カラースキ
ャナ101で読み取られた原稿画像あるいはキーボード
102から入力された情報はパソコン103で処理され
た後、モデム104を介して回線に送出される。ファク
シミリ受信時には、モデム104で受信したデータはパ
ソコン103で処理された後、カラープリンタ105で
転写紙に印字されたり、あるいはモニタ106で表示さ
れる。尚、107はマウスである。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows the system configuration of a color facsimile apparatus using a personal computer applied to each embodiment. In the figure, at the time of facsimile transmission, an original image read by the color scanner 101 or information input from the keyboard 102 is processed by the personal computer 103 and then sent out to the line via the modem 104. At the time of facsimile reception, the data received by the modem 104 is processed by the personal computer 103 and then printed on the transfer paper by the color printer 105 or displayed on the monitor 106. Incidentally, 107 is a mouse.

【0014】次にパソコン103内で行われる送信時及
び受信時における各実施例による信号処理について説明
する。
Next, the signal processing performed in the personal computer 103 according to each embodiment at the time of transmission and reception will be described.

【0015】まず、第1の実施例を説明する。一般に多
くの原稿においては、その1枚のカラー原稿の全面に色
が付いている場合は少く、多くは白黒の文字の中に一部
色の付いた部分が含まれている場合が多い。従って、原
稿全面をRGB3色のデータと見なして処理するところ
に無駄がある。
First, the first embodiment will be described. In general, in many originals, it is rare that the entire surface of one color original is colored, and in many cases, black and white characters often include a partially colored portion. Therefore, it is wasteful to process the entire original document as RGB three-color data.

【0016】そこで本実施例では、原稿を像域に分割す
る際に、まず第1に原稿を色部分であるカラー領域と白
黒領域とに分ける。第2にカラー領域を例えばJPEG
方式により符号化して送り、白黒領域を2値化して例え
ばMMR符号化して送るようにしている。これによっ
て、伝送時間を短くすることができると共に、文字の印
字品質の劣化を防ぐことができる。
Therefore, in the present embodiment, when the original is divided into image areas, the original is first divided into a color area which is a color portion and a black and white area. Second, the color area is set to JPEG, for example.
It is encoded by the method and sent, and the black and white area is binarized and, for example, MMR encoded and sent. This makes it possible to shorten the transmission time and prevent the print quality of characters from deteriorating.

【0017】また、上記の処理を高速でかつメモリの消
費量をなるべく少くして行うために次のような処理が行
われる。まず、1ページの原稿画像をスキャナ101で
RGBデータとして読み取り、これを輝度信号Yと色差
信号とに変換する。そして一方でYと色差とを用いて1
ページ分のJPEGデータを作成していき、同時に他方
でYから1ページ分の2値データを作成していく。
Further, the following processing is performed in order to perform the above processing at high speed and with the memory consumption as small as possible. First, a one-page original image is read by the scanner 101 as RGB data, and this is converted into a luminance signal Y and a color difference signal. On the other hand, using Y and color difference, 1
JPEG data for one page is created, and at the same time, binary data for one page is created from Y on the other side.

【0018】両方のデータが1ページ分作成されると、
次に上記作成されたJPEGデータからカラー領域と白
黒領域とを判定する。そしてカラー領域については、作
成されたJPEGデータを伝送する。白黒領域について
は、まずカラー領域と判定された部分を白に置き換えた
後、この白の部分を含む白黒領域をMMR符号化する。
When both data are created for one page,
Next, a color area and a monochrome area are determined from the JPEG data created above. Then, for the color area, the created JPEG data is transmitted. Regarding the black-and-white area, first, the portion determined to be the color area is replaced with white, and then the black-and-white area including the white portion is MMR encoded.

【0019】一般にカラー領域は自然画像である場合が
少くなく、そこを2値化するとデータ中の1、0が細か
く反転するので、圧縮効率が大幅に低下しがちである
が、その領域を白に置き換えてしまうことにより、0の
連続となるのでランレングスをベースとする白黒2値デ
ータの圧縮符号化に際して圧縮効率を大幅に向上させる
ことができる。
In general, the color area is not a natural image in many cases, and since binarization of that area causes 1 and 0 in the data to be finely inverted, the compression efficiency tends to be greatly reduced, but the area is white. By replacing it with 0, it becomes continuous 0, so that the compression efficiency can be significantly improved in the compression encoding of the binary binary data based on the run length.

【0020】また、A4判の原稿1枚の白黒2値データ
を200dpiの解像度でメモリに保存する場合に要す
るメモリ容量は約500KB程度である。一方、カラー
データの量も、初めからJPEG圧縮するので500K
B程度に収まる。従って、白黒データとカラーデータと
を合わせても1KB程度の小容量のメモリを用意すれば
よい。
Further, the memory capacity required to store the black-and-white binary data of one A4 size original in the memory at a resolution of 200 dpi is about 500 KB. On the other hand, the amount of color data is 500K because it is JPEG compressed from the beginning.
It fits in B grade. Therefore, even if the black-and-white data and the color data are combined, a small capacity memory of about 1 KB may be prepared.

【0021】さらに初めからJPEGデータを作成して
いるので、初めに領域判定した後、再度JPEGデータ
を作成する場合に比べて処理速度を速くすることができ
る。またさらに、文字部分をJPEGという非可逆圧縮
ではなく、MMR等の可逆圧縮で符号化するので、文字
の印字品質も劣化することがない。
Further, since the JPEG data is created from the beginning, the processing speed can be increased as compared with the case where the JPEG data is created again after the area is first determined. Furthermore, since the character portion is encoded by the reversible compression such as MMR, not the lossy compression called JPEG, the print quality of the character is not deteriorated.

【0022】以上のように、本実施例によれば、カラー
原稿を伝送する場合に、圧縮率を十分に高くしながら、
カラー画像部、文字部の画質を良好にし、かつメモリ容
量を少くし、処理時間も速くすることができる。
As described above, according to the present embodiment, when a color original is transmitted, the compression ratio is sufficiently increased,
It is possible to improve the image quality of the color image portion and the character portion, reduce the memory capacity, and shorten the processing time.

【0023】図2は本発明の第1の実施例を示すブロッ
ク図、図3は第1の実施例による処理を示すフローチャ
ートである。図2、3において、ステップS1でスキャ
ナ101により読み取られた原稿の1ページ分のRGB
データは、ステップS2でY信号と色差信号とに変換部
10により変換される。そして、ステップS3で圧縮符
号化部11により上記Y信号と色差信号とを用いてJP
EGデータを作成し、同時にステップS4で2値化部1
2によりY信号を適当なしきい値と比較して白黒の2値
データを作成する。作成されたJPEGデータはその1
ページ分が像域判定部13内のメモリに記憶される。次
にステップS5で像域判定部13においてメモリに記憶
されたJPEGデータを判定して、1ページの原稿画像
をカラー領域と白黒領域とに分ける。
FIG. 2 is a block diagram showing the first embodiment of the present invention, and FIG. 3 is a flow chart showing the processing according to the first embodiment. 2 and 3, RGB for one page of the document read by the scanner 101 in step S1
The data is converted by the conversion unit 10 into a Y signal and a color difference signal in step S2. Then, in step S3, the compression encoding unit 11 uses the Y signal and the color difference signal to perform JP
EG data is created, and at the same time, in step S4, the binarization unit 1
In step 2, the Y signal is compared with an appropriate threshold value to create black and white binary data. The created JPEG data is 1
Pages are stored in the memory in the image area determination unit 13. Next, in step S5, the image area determination unit 13 determines the JPEG data stored in the memory and divides the one-page original image into a color area and a monochrome area.

【0024】次にステップS6で、カラー領域と判定さ
れた部分に位置情報を付加した後、置換え部14により
白、即ち、0に置き換える。この0データを後述の第2
の実施例で用いるスイッチ15を介して圧縮符号化部1
6により上記2値データと共にステップS7でMMR符
号化する。またステップS8でカラー領域と判定された
部分のJPEGデータを取得する。そしてステップS9
において、合成部17によりカラー領域のJPEGデー
タとMMRデータとが合成される。合成されたデータは
ステップS10によりモデム104を介して送出され
る。尚、ここでデータの合成とは、第1にMMRデー
タ、次いでJPEGデータという順序に並べられ、しか
るべきプロトコルによりリンクされる、ということを意
味している。
Next, in step S6, after the position information is added to the portion determined to be the color area, the replacing portion 14 replaces it with white, that is, 0. This 0 data is the second
Compression encoder 1 via the switch 15 used in the embodiment
In step S7, MMR coding is performed together with the binary data in step S7. In addition, the JPEG data of the portion determined to be the color area in step S8 is acquired. And step S9
At, the synthesizing unit 17 synthesizes the JPEG data and the MMR data in the color area. The combined data is transmitted via the modem 104 in step S10. It should be noted that, here, the data synthesis means that the MMR data is first arranged in the order of JPEG data, and the data is linked by an appropriate protocol.

【0025】ここで、圧縮効率をどの程度上げることが
できるかについて具体的な数値を用いて説明する。尚、
圧縮効率はカラー領域の全体に対する面積比に依存する
が、ここでは平均的な面積比と見られる1/4の面積比
の場合について述べる。
Here, how much the compression efficiency can be increased will be described using specific numerical values. still,
The compression efficiency depends on the area ratio of the entire color region, but here, the case of an area ratio of 1/4 which is considered to be an average area ratio will be described.

【0026】原稿の元画像データの解像度を200dp
iとし、原稿はA4判であるとする。MMRの圧縮率
は、カラー領域を白に置き換えたことにより、平均的に
1/10〜1/20と考えられ、ここでは1/10とす
る。また、カラー領域の圧縮率は、JPEGで最も弱点
とされる文字部を避けているので、1/50程度が可能
と考えられる。以上の数値を用いた結果を表1に示す。
この表1では、比較のために全データを1/20、1/
100に圧縮した場合も示しており、本実施例による上
記数値の場合は最下段に示されている。
The resolution of the original image data of the original is set to 200 dp.
i and the original is A4 size. The compression ratio of MMR is considered to be 1/10 to 1/20 on average by replacing the color area with white, and is set to 1/10 here. Further, the compression ratio of the color area is considered to be about 1/50 because the character portion, which is the weakest point in JPEG, is avoided. The results using the above numerical values are shown in Table 1.
In Table 1, all the data are 1/20 and 1 / for comparison.
The case of compression to 100 is also shown, and the case of the above numerical values according to the present embodiment is shown at the bottom.

【0027】[0027]

【表1】 [Table 1]

【0028】この表1より明らかなように、本実施例に
よれば、全データを1/100にJPEG化した場合よ
りさらに少いデータ量(100KB)及び伝送時間(約
55秒)を得ることができる。しかも本実施例では、カ
ラー領域の圧縮率が低いので当然画質は優れており、ま
た文字部は2値の可逆符号化されているので印字品質も
優れている。これに対して圧縮率1/100のJPEG
では画質劣化が目立つことになり、本実施例とは格段に
開きがある。また、このことは全データを圧縮率1/1
00でJPEG化するのは現実的でないことを示してい
る。
As is clear from Table 1, according to the present embodiment, a smaller amount of data (100 KB) and transmission time (about 55 seconds) can be obtained as compared with the case where all data is JPEG-encoded to 1/100. You can Moreover, in the present embodiment, the image quality is naturally excellent because the compression ratio of the color area is low, and the printing quality is also excellent because the character portion is binary lossless encoded. On the other hand, JPEG with a compression ratio of 1/100
In this case, the image quality deterioration becomes conspicuous, and there is a great difference from the present embodiment. Also, this means that all data is compressed at a compression ratio of 1/1.
00 indicates that it is not realistic to make JPEG.

【0029】図4は第2の実施例を示すフローチャート
で、図3と同じ処理内容について同じステップ番号が付
されている。本実施例は第1の実施例の変形例であり、
図示のように、スイッチ1、スイッチ2の処理を行うた
めのステップS11、S12が追加されている。このス
テップS11、S12の処理はユーザがスイッチ15を
操作することにより行われる。これによりステップS4
で2値化した白黒データにステップS6でカラーデータ
を白に置き換えたデータを含ませるか否かを選択するこ
とができる。
FIG. 4 is a flow chart showing the second embodiment, and the same step numbers are given to the same processing contents as in FIG. This embodiment is a modification of the first embodiment,
As shown in the figure, steps S11 and S12 for performing the processes of the switch 1 and the switch 2 are added. The processing of steps S11 and S12 is performed by the user operating the switch 15. This results in step S4
It is possible to select whether or not to include the data in which the color data is replaced with white in step S6 in the binarized black and white data.

【0030】本実施例によれば、例えば、送信側のユー
ザが受信側ファクシミリの方式を知っていて、受信側が
JPEGデータを復元することができず、2値データの
み復元できるような場合に、スイッチ1、2を操作して
ステップS6を行わないように切換えることにより、適
切なデータ送信を行うことができる。
According to this embodiment, for example, when the user on the transmitting side knows the facsimile system on the receiving side and the receiving side cannot restore the JPEG data, only the binary data can be restored. Appropriate data transmission can be performed by operating the switches 1 and 2 so as not to perform step S6.

【0031】次に第3の実施例について説明する。前述
したカラー領域と白黒領域との分離をきちんと行うには
複雑なアルゴリズムを必要とし、また判定に時間を要し
実用的でない。そこで実用的な方法として、像域の分離
を所定の大きさのブロック単位で行う方法が考えられ
る。しかしこの方法では、ブロックの境界と像域の境界
とが必ずしも一致しないので、再生画像が見苦しくなる
という問題が生じる。
Next, a third embodiment will be described. A complicated algorithm is required to properly separate the color area and the black-and-white area described above, and it takes time to make the determination, which is not practical. Therefore, as a practical method, a method of separating the image area in units of blocks of a predetermined size can be considered. However, in this method, the boundary of the block and the boundary of the image area do not always coincide with each other, which causes a problem that the reproduced image becomes unsightly.

【0032】例えば、図5に示すような原稿1から20
0dpiで取り込んだ画像をY:R−Y:B−Y=4:
2:2でJPEG符号化を行う場合について考える。J
PEG符号化を行うためにデータをブロック化するが、
その1つのブロックのサイズは16ドット(Yはその中
に4個のブロックが入るが、最小単位としては色差ブロ
ックをとらざるを得ない)なので、画像上では約2mm
角のブロックとなる。このようなブロックで全画像領域
を分割し、各ブロック毎にJPEGによる符号を割り当
てるか、MMRによる2値符号を割り当てるかを決める
ものとする。
For example, originals 1 to 20 as shown in FIG.
The image captured at 0 dpi is Y: RY-BY: BY = 4:
Consider the case where JPEG encoding is performed at 2: 2. J
Block the data to perform PEG coding,
The size of one block is 16 dots (Y has four blocks in it, but the color difference block must be taken as the minimum unit), so it is about 2 mm on the image.
It becomes a corner block. It is assumed that the entire image area is divided by such blocks and whether each block is assigned a JPEG code or a MMR binary code is determined.

【0033】図5の原稿1は中央部にカラーの自然画像
部2があり、他の部分に文字部3があるものとすれば、
自然画像部2をJPEG符号化し、他の部分はMMR符
号化することになる。この符号化の判定をブロック単位
で行う場合、図6に示すように、自然画像部2と文字部
3との境界である像域境界とブロックAとブロックBと
の境界であるブロック境界とが一致しないことが少なか
らずある。図6において、ブロックBはその全部が文字
部3の中にあるが、ブロックAは自然画像部2と文字部
3とにまたがっている。このときブロックAは自然画像
部2と判定されJPEG符号が割り当てられ、ブロック
Bは文字部又は原稿用紙部と判定され2値符号が割り当
てられたとする。
If the original 1 shown in FIG. 5 has a color natural image portion 2 in the center and a character portion 3 in the other portion,
The natural image portion 2 is JPEG encoded and the other portions are MMR encoded. When this coding determination is performed in block units, as shown in FIG. 6, an image area boundary which is a boundary between the natural image portion 2 and the character portion 3 and a block boundary which is a boundary between the block A and the block B are separated from each other. There are quite a few disagreements. In FIG. 6, the block B is entirely in the character portion 3, but the block A extends over the natural image portion 2 and the character portion 3. At this time, it is assumed that the block A is determined to be the natural image portion 2 and the JPEG code is assigned, and the block B is determined to be the character portion or the original paper portion and the binary code is assigned.

【0034】この符号化データが伝送され受信側がモデ
ム104を通じて受信し、これを復号すると、まずブロ
ックBの値は全ての画素がR=G=B=0、すなわち
「まっ白」ということになる。一方、ブロックAの右側
部すなわち用紙部分を復号した画素値は一般にはR=G
=B=0とはならない。なぜなら、スキャナで原稿を読
み込む際、原稿用紙は白いといえども若干の色が付いて
いたり、又は色は無くともややグレーであって光を10
0%反射することはないからである。JPEG符号化で
は例えばグレーはグレーとして再生されるので、再生画
像のブロックAの右側部分に相当する部分には元の原稿
には存在しなかった境界線部分がグレー部分として現わ
れてしまうことになる。
When this encoded data is transmitted and the receiving side receives it through the modem 104 and decodes it, first of all, the value of the block B is that all pixels are R = G = B = 0, that is, "pure white". On the other hand, the pixel value obtained by decoding the right side portion of the block A, that is, the paper portion is generally R = G
= B = 0 does not hold. This is because when the document is read by the scanner, the document paper is white but has some color, or it is a little gray with no color and emits light 10
This is because there is no 0% reflection. In JPEG encoding, for example, gray is reproduced as gray, so a boundary portion that does not exist in the original document appears as a gray portion in the portion corresponding to the right side portion of block A of the reproduced image. .

【0035】とりわけ元の原稿用紙が白からのへだたり
が大きい場合には、再生画像では目立つ境界が発生する
ことになり、元の原稿と異ったものになるのみならず、
場合によっては見苦しい印象を与える場合もある。本実
施例はこのような問題を解決するものである。
In particular, when the original document sheet has a large amount of deviation from white, a noticeable boundary is generated in the reproduced image, and not only the original document is different,
In some cases, it may give an unsightly impression. The present embodiment solves such a problem.

【0036】本実施例では、ブロック境界がある条件下
にある時に、受信側でブロック境界をぼかす処理を行う
ようにしている。JPEG符号化を行うJPEGブロッ
クとMMR符号化を行う2値ブロックとが接している場
合、2値ブロックが「まっ黒」であればぼかす必要はな
いことになる。そこで、まず図7に示すように2値ブロ
ックにおけるJPEGブロックと上下左右で接している
1列の画素データをそれぞれ検出し、その1列の画素の
全部又は大部分が黒であった場合はぼかし処理は行わ
ず、そうでなけれぼかし処理を行う。
In the present embodiment, when the block boundary is under a certain condition, the processing for blurring the block boundary is performed on the receiving side. When a JPEG block for JPEG encoding and a binary block for MMR encoding are in contact with each other, it is not necessary to blur if the binary block is “black”. Therefore, first, as shown in FIG. 7, the pixel data of one column which is in contact with the JPEG block in the binary block vertically and horizontally is detected, and when all or most of the pixels in the one column are black, they are blurred. The processing is not performed, and if not so, the blurring processing is performed.

【0037】次に図7のように、JPEGブロックにお
ける2値ブロックと接している2列の画素データを調
べ、それらの色の濃さ、輝度レベル、高周波成分の量な
どに基づいてこの2画素幅の領域の全部が自然画像であ
るか否かを検出する。2画素幅の領域が自然画像であれ
ば、ブロック境界と像域境界とが一致しているものと見
なし、ぼかし処理を行わず、そうでなければぼかし処理
を行う。
Next, as shown in FIG. 7, the pixel data of the two columns in contact with the binary block in the JPEG block are examined, and based on the color density, the brightness level, the amount of high frequency components, etc., these two pixels are examined. It is detected whether or not the entire width area is a natural image. If the area of 2 pixel width is a natural image, it is considered that the block boundary and the image area boundary coincide with each other, and the blurring process is not performed. If not, the blurring process is performed.

【0038】次にぼかし処理の具体的な方法について説
明する。図8に示すように、ブロック境界を中心x0
して左右両側の画素をx-4、x -3、x-2、x-1、x0
1 、x2 、x3 、x4 とする。尚、図8ではブロック
境界を垂直としているが、ブロック境界が水平であれ
ば、各画素は垂直方向に並ぶことになる。ここでxn
オリジナルの画素値とし、yn をぼかし処理を施した後
の画素値とすると、yn は、
Next, a specific method of blurring processing will be described.
I will tell. As shown in FIG. 8, the block boundary is centered at x0When
And the pixels on the left and right sides are x-Four, X -3, X-2, X-1, X0,
x1, X2, XThree, XFourAnd In addition, in FIG.
The boundaries are vertical, but if the block boundaries are horizontal
For example, the pixels are arranged in the vertical direction. Where xnTo
The original pixel value, ynAfter blurring
Let y be the pixel value ofnIs

【0039】[0039]

【数1】 [Equation 1]

【0040】で与えられる。例えば、 yn =(1/8){5xn +xn+1 +xn+2 +xn+3
−4≦n≦8 で与えられる。
Is given by For example, y n = (1/8) {5x n + x n + 1 + x n + 2 + x n + 3 }
It is given by −4 ≦ n ≦ 8.

【0041】図9はこの第3の実施例を示すブロック図
である。図9において、モデム104で受信したブロッ
ク符号化データは像域判定部18により、JPEGブロ
ックと2値ブロックとに判定分離される。JPEGブロ
ックと2値ブロックとはそれぞれ検出部19において図
7について説明した検出を行う。それぞれの検出結果に
応じてぼかし処理部20は、各ブロックのデータぼかし
処理を行ったり、あるいはデータをそのまま出力する。
ぼかし処理部20の出力データは合成部21で合成され
た後、プリンタ等に送られる。
FIG. 9 is a block diagram showing this third embodiment. In FIG. 9, the block coded data received by the modem 104 is discriminated and separated into a JPEG block and a binary block by the image area determination unit 18. The JPEG block and the binary block are detected by the detection unit 19 as described with reference to FIG. The blurring processing unit 20 performs data blurring processing on each block or outputs the data as it is according to the respective detection results.
The output data of the blurring processing unit 20 is combined by the combining unit 21 and then sent to a printer or the like.

【0042】本実施例においては、前述した像域の境界
における見苦しさの問題を解決するためにぼかし処理を
行っているが、上記の問題を解決するためには、この他
に次のような方法が考えられる。
In the present embodiment, the blurring process is performed to solve the above-described problem of unsightlyness at the boundary of the image area, but in order to solve the above problem, the following process is performed. A method can be considered.

【0043】(1)原稿用紙の「色情報」を同時に伝送
し受信側で、2値の「白」の部分をこの「色情報」に置
換する。 (2)受信側で、世の中の平均的な原稿用紙の「色情
報」で2値の「白」の部分を置換する。
(1) The "color information" of the original paper is transmitted at the same time, and the binary "white" portion is replaced with this "color information" on the receiving side. (2) On the receiving side, the binary “white” part is replaced with the “color information” of the average document paper in the world.

【0044】上記(1)の方法は、既に様々な提案がな
されており、うまくいけば上記の見苦しさをなくすこと
ができるが、実際には「原稿用紙の色」(ここではグレ
ーも含むものとする)を検出し、推定するには複雑なア
ルゴリズムを必要とし、誤りも発生しやすい。
Various proposals have already been made for the method (1), and the above-mentioned unsightly appearance can be eliminated if it is successful, but in reality, "color of original paper" (here, gray is also included). ) Requires a complex algorithm to detect and estimate, and is error prone.

【0045】また、上記(2)の方法は、多くの場合う
まくいくが、特定の場合、例えば原稿用紙がクリーム色
系や黄色系の場合などではうまくいかない。また、
「白」として何もプリントしない場合に比べると、プリ
ント時間が長めになると共に、インクの消費量が増すと
いう欠点がある。
Further, the method (2) described above works in many cases, but it does not work in a specific case, for example, when the manuscript paper is a cream type or a yellow type. Also,
As compared with the case where nothing is printed as "white", there are drawbacks that the printing time becomes longer and the ink consumption increases.

【0046】従って、実際には本実施例で述べたぼかし
処理と上記(1)(2)の方法とを、用途やその他の条
件に応じて切替えながら用いるとよい。
Therefore, in practice, the blurring process described in this embodiment and the methods (1) and (2) described above may be used while being switched according to the application and other conditions.

【0047】次に本発明の第4の実施例について説明す
る。前述の各実施例のように、像域をカラーの自然画像
領域と白黒の文字領域との2つに分け、それぞれに対し
てJPEG符号、MMR符号を割り当てる方法では、例
えば「色の付いた文字」の場合はどちらの領域にするの
かと言う問題が生じる。この対策として、例えば単に
「文字」でなく「黒文字」を判定したり、あるいは像域
を2つ以上に細かく分類したりすることが考えられる。
像域を細かく何通りにも分類すれば、高画質、高圧縮率
を得られるであろうが、その像域判定のアルゴリズムが
複雑になるなど多大な困難が伴う。
Next, a fourth embodiment of the present invention will be described. As in each of the above-described embodiments, the image area is divided into a color natural image area and a monochrome character area, and the JPEG code and the MMR code are assigned to the respective areas. In the case of “,” there arises a problem of which area to select. As a countermeasure against this, for example, it is conceivable to judge "black characters" instead of simply "characters", or to finely classify the image area into two or more.
If the image area is classified into many types, high image quality and high compression rate will be obtained, but it will cause a great deal of difficulty such as the image area determination algorithm becoming complicated.

【0048】また、像域を「黒文字領域」と「それ以外
の領域」とに分類する方法が考えられるが、この方法は
画素単位に像域判定する場合はよいが、ブロック単位で
像域判定する場合は、次のような問題が生じる。即ち、
図10に示すように、黒文字が太い場合に、ブロックが
その太さの中に含まれてしまうと、このブロックが自然
画像の一部なのか黒文字の一部なのかが判定できなくな
ってしまう。本実施例は上記の問題を解決するためのも
のである。
A method of classifying the image area into "black character area" and "other area" is conceivable. This method is good when the image area is determined in pixel units, but the image area is determined in block units. If so, the following problems occur. That is,
As shown in FIG. 10, when a black character is thick and a block is included in the thickness, it becomes impossible to determine whether this block is a part of a natural image or a part of a black character. This embodiment is for solving the above problems.

【0049】本実施例は以下の特徴を持つ。 (a)像域の判定はブロック単位とする。 (b)像域は2つに分割しその第1の像域は「黒であっ
てかつ線が太くない(黒細線)という条件を満たす要素
のみから成り立っているブロック」とする。第2の像域
は、第1の像域以外の領域とする。
This embodiment has the following features. (A) The image area is determined in block units. (B) The image area is divided into two parts, and the first image area is a "block composed only of elements that satisfy the condition that the line is black and the line is not thick (black thin line)". The second image area is an area other than the first image area.

【0050】(c)第2の像域はブロック符号化とす
る。 (d)像域を判定するためのブロックと第2の像域を符
号化するブロック符号化のブロックとは、その大きさが
整数倍の関係にあるものとする。 (e)ある単位ブロックがどちらの像域に属するかの判
定に際して、その単位ブロック内のデータの使い方は次
のようにする。まず、ブロック符号はDCT係数を用い
ることにする。そして、判定にはDCT係数を用い、元
の画素データの値は直接には用いない。 尚、ここで言う「黒」とは、色がある範囲より薄く、か
つ輝度がある値より低いということを意味するものとす
る。
(C) The second image area is block coded. (D) It is assumed that the block for determining the image area and the block for block encoding that encodes the second image area have an integral multiple relationship. (E) When determining which image area a certain unit block belongs to, the data in the unit block is used as follows. First, the block code uses DCT coefficients. Then, the DCT coefficient is used for the determination, and the value of the original pixel data is not directly used. The term “black” as used herein means that the color is lighter than a certain range and the brightness is lower than a certain value.

【0051】図11は本実施例を示すブロック図、図1
2は本実施例の動作を示すフローチャートである。ま
ず、ステップS21で、スキャナ101により原稿1を
読み取り、画像データを入力する。次にステップS22
で、像域判定部24により入力された画像データについ
てブロック単位で像域を判定し、そのブロックが上記第
1の像域に属するか第2の像域に属するのかを判定す
る。判定の基準としては、色がある範囲より薄いか、輝
度がある値より低いか、線の太さがある値より細いか等
を用いる。
FIG. 11 is a block diagram showing this embodiment, and FIG.
2 is a flowchart showing the operation of this embodiment. First, in step S21, the document 1 is read by the scanner 101 and image data is input. Next, step S22
Then, the image area is determined for each block of the image data input by the image area determination unit 24, and it is determined whether the block belongs to the first image area or the second image area. As a criterion for determination, whether the color is lighter than a certain range, the luminance is lower than a certain value, or the line thickness is thinner than a certain value is used.

【0052】上記のようにしてブロック単位で像域判定
を行うと図10について述べた問題が生じる。そこでス
テップS23により、判定結果を得たブロックについて
その周囲の判定結果を参照して自分のブロックの判定結
果を見直すということを修正部25により行う。例えば
自分のブロックの周囲のブロックが全て自分の属してい
る領域でない場合は、自分のブロックをそれらと異る像
域とする等の修正を行う(孤立点修正)。
If the image area determination is performed in block units as described above, the problem described with reference to FIG. 10 arises. Therefore, in step S23, the correction unit 25 revises the determination result of its own block with reference to the determination results of the blocks that have obtained the determination result. For example, if all the blocks around the user's block are not in the region to which the user belongs, correction is performed such that the user's block is set as an image area different from them (isolated point correction).

【0053】上記のようにして像域判定された各ブロッ
クについて、ステップS24により、「黒細線」の第1
の像域のブロックは2値化部26で2値化及びMMR符
号化される。また「それ以外」の第2の像域のブロック
は圧縮符号化部27でDCT変換を行い、そのDCT係
数をハフマン符号化する、いわゆるJPEG方式と同じ
方法により符号化する。そして各符号化データをステッ
プS25で合成部28により合成された後、モデム10
4を介して送信して終了とする。
For each block whose image area has been determined as described above, the first "black thin line" is determined in step S24.
The image area block is binarized and MMR encoded by the binarization unit 26. The blocks of the second image area “other than that” are DCT-transformed by the compression encoder 27, and the DCT coefficients are Huffman-encoded by the same method as the JPEG method. Then, after each coded data is combined by the combining unit 28 in step S25, the modem 10
Then, the transmission is completed via 4 and the processing is terminated.

【0054】尚、自然画像の中央部などに「黒細線」が
存在すると、そのブロックは第1の像域と誤って判定さ
れるので、これを防ぐためにステップS23を行って、
よりよい結果を得るようにしているが、このステップS
23の処理を行わなくても実用的には殆んど重大な影響
を与えない。
If a "black thin line" exists in the central portion of the natural image, the block is erroneously determined as the first image area. Therefore, in order to prevent this, step S23 is executed.
I am trying to get better results, but this step S
Even if the process of No. 23 is not performed, practically no serious influence is exerted.

【0055】図13は本発明の第5の実施例を示すブロ
ック図、図14はその動作を示すフローチャートであ
る。本実施例は上述の誤った判定が行われるのを防止す
るものである。まず、ステップS31でスキャナ101
から原稿1の画像データを入力する。このとき画像デー
タを入力しながらステップS32で、圧縮符号化部2
9、2値化部30により、JPEG符号化と2値符号化
とを同時に少くとも途中まで行って2つの符号化データ
を作成する。そして、ステップS33で、像域判定部3
1によりJPEGデータ(量子化されたDCT係数)に
ついてブロック単位で像域判定する。判定基準は第4の
実施例と同様である。但し、元の画素の値を用いずDC
T係数を用いる。尚、この像域判定については後述によ
り詳しく説明する。
FIG. 13 is a block diagram showing a fifth embodiment of the present invention, and FIG. 14 is a flow chart showing its operation. The present embodiment prevents the above-mentioned erroneous determination. First, in step S31, the scanner 101
Image data of the original 1 is input. At this time, while inputting the image data, in step S32, the compression encoding unit 2
9. The binary coding unit 30 simultaneously performs at least halfway the JPEG coding and the binary coding to create two coded data. Then, in step S33, the image area determination unit 3
1, the image area is determined for each block of JPEG data (quantized DCT coefficient). The judgment criteria are the same as in the fourth embodiment. However, the value of the original pixel is not used and DC
The T coefficient is used. The image area determination will be described later in detail.

【0056】次にステップS34で修正部32により、
図12のステップS23と同様の判定結果の修正処理を
行った後、ステップS35で、データ割り当て部33に
より第1の像域にはMMR符号化データを割り当て、第
2の像域にはJPEG符号化データを割り当てて合成し
た後、ステップS36でモデム104から送信する。
尚、白黒2値符号化は、初めに白黒多値でデータをとっ
ておき、スレッショルドレベルを適切化してから白黒2
値化するようにすれば、画質をより向上させることがで
きる。
Next, in step S34, the correction section 32
After performing the correction processing of the determination result similar to step S23 of FIG. 12, in step S35, the data allocation unit 33 allocates MMR encoded data to the first image area and JPEG code to the second image area. After allocating and synthesizing the converted data, the data is transmitted from the modem 104 in step S36.
In the black-and-white binary encoding, data is first obtained in black-and-white multi-value, and the threshold level is optimized, and then the black-and-white binary encoding is performed.
By digitizing, the image quality can be further improved.

【0057】次に上記ステップS33による像域判定に
ついて説明する。像域の判定に際しては黒い線の太さの
判定が難しいが、ここでは次のような判定基準を用い
る。即ち、 (1)ブロックの平均輝度が所定値より大きい。 (2)色が所定の値より小さい。 (3)高周波成分が所定値より大きい。 ときは「黒細線の集合」と見なし、第1の像域と判定す
る。
Next, the image area determination in step S33 will be described. When determining the image area, it is difficult to determine the thickness of the black line, but the following criteria are used here. That is, (1) the average brightness of the block is larger than a predetermined value. (2) The color is smaller than the predetermined value. (3) The high frequency component is larger than a predetermined value. In this case, it is regarded as "a set of black fine lines" and is determined to be the first image area.

【0058】上記の黒細線部をDCT係数により判定す
る方法についてさらに詳述する。まず、黒であるという
ことは「色差信号の直流分の値が小さいことである」と
いうことから、色差信号の直流分の絶対値の和又はその
2乗和が色差空間上のある範囲の内側にあるという条件
を満たせば黒と判定してよい。即ち、ブロックの中の一
部にでも色の付いた部分があれば、上記の条件は満たさ
れないことになる。
The method of determining the above black thin line portion by the DCT coefficient will be described in more detail. First, because black means that the value of the DC component of the color difference signal is small, the sum of the absolute values of the DC component of the color difference signal or the sum of squares thereof is within a certain range on the color difference space. It may be determined to be black if the condition that is present is satisfied. That is, if even a part of the block has a colored portion, the above condition is not satisfied.

【0059】次に細線の条件であるが、まず高周波成分
が多くなることが考えられる。従って、高周波成分(係
数)の絶対値又はその2乗和がある値より大きいことが
必要条件となる。この条件は太い線でも満足されるが、
黒く太い線が存在した場合は全体の輝度が下る。従っ
て、細線の条件としては、上記の条件の他にアンド条件
として「輝度の直流成分がある値以上である」という条
件を付加すればよい。
Next, regarding the condition of the thin line, it is considered that the high frequency component increases first. Therefore, it is a necessary condition that the absolute value of the high frequency component (coefficient) or the sum of squares thereof is larger than a certain value. This condition is satisfied even with thick lines,
If there is a thick black line, the overall brightness decreases. Therefore, as the condition of the thin line, in addition to the above condition, the condition that the direct current component of the luminance is equal to or higher than a certain value may be added as the AND condition.

【0060】この場合、図15に示すように太い線のご
く一部がブロックにかかった場合には「黒細線」という
判定結果になってしまうが、このブロックにとっては実
際それは「黒細線」であるので、条件としては正しく働
いていることになる。
In this case, as shown in FIG. 15, when a part of a thick line hits a block, the judgment result is "black thin line", but this block is actually a "black thin line". Therefore, it means that the condition is working properly.

【0061】尚、像域判定のために用いるDCT係数は
量子化したものを用いているが、量子化前のものでもよ
い。量子化前のものを用いれば判定精度が向上する。ま
た、量子化後のデータを使えば扱うデータ量が、その段
階で削減されているので、即ち、ゼロが多くなっている
ので、扱い易く処理を高速化できる。
The DCT coefficient used for image area determination is quantized, but it may be quantized. If the unquantized one is used, the determination accuracy is improved. Further, if the quantized data is used, the amount of data to be handled is reduced at that stage, that is, since the number of zeros is large, it is easy to handle and the processing speed can be increased.

【0062】本実施例においては、JPEG等のブロッ
ク符号化のためのブロックと像域判定のためのブロック
とが対応しているので、初めからブロック符号化の進行
上で得られるデータ(例えば量子化後のCDT係数)を
用いて、その段階で既にデータ量の削減が行われて処理
が行い易くなっている。また、後の処理における符号化
データの割り当てに用いるデータも作成してしまってい
るので、全体の処理の流れに無駄がない。
In the present embodiment, since the block for block coding such as JPEG corresponds to the block for image area determination, data (eg, quantum Using the converted CDT coefficient), the amount of data has already been reduced at that stage, and processing is easy to perform. In addition, since the data used for allocation of the encoded data in the subsequent processing has also been created, there is no waste in the overall processing flow.

【0063】尚、以上述べた各実施例は本発明を図1の
ようなパソコン形態のカラーファクシミリシステムに適
用した場合であるが、全体をビルトインのファクシミリ
形式としてもよい。
Although each of the embodiments described above is a case in which the present invention is applied to a personal computer type color facsimile system as shown in FIG. 1, the whole may be a built-in facsimile type.

【0064】[0064]

【発明の効果】以上説明したように、請求項1の発明に
よれば、伝送時間を短くすることができると共に、印字
品質を向上させることができる。請求項2の発明によれ
ば、処理を高速で行えると共に、メモリ消費量を小さく
することができる。請求項4の発明によれば、カラー領
域と白黒領域との境界部分に現われる見苦しさを軽減す
ることができる。請求項10の発明によれば、処理を無
駄なく行ってデータ量を削減することができる。
As described above, according to the first aspect of the invention, the transmission time can be shortened and the print quality can be improved. According to the invention of claim 2, the processing can be performed at high speed and the memory consumption amount can be reduced. According to the invention of claim 4, it is possible to reduce the unsightly appearance which appears at the boundary between the color area and the black and white area. According to the invention of claim 10, the amount of data can be reduced by performing the processing without waste.

【0065】また、符号化方式にブロック符号化方式、
2値化符号方式を用い、像域の判定をブロック単位で行
うことによってデータの圧縮効率を向上させることがで
き、さらに像域の判定を「黒細線のブロック」や「それ
以外のブロック」等を基準として行うことにより、判定
を精度良く、しかも容易に行うことができる。
Further, the block encoding method is used as the encoding method,
The data compression efficiency can be improved by using the binarized coding method to determine the image area in block units, and further, the image area determination can be made by "black thin line block", "other blocks", etc. By using as a reference, the determination can be performed accurately and easily.

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

【図1】本発明を適用したカラーファクシミリシステム
を示す構成図である。
FIG. 1 is a configuration diagram showing a color facsimile system to which the present invention is applied.

【図2】本発明の第1、第2の実施例を示すブロック図
である。
FIG. 2 is a block diagram showing first and second embodiments of the present invention.

【図3】第1の実施例の動作を示すフローチャートであ
る。
FIG. 3 is a flowchart showing the operation of the first embodiment.

【図4】第2の実施例の動作を示すフローチャートであ
る。
FIG. 4 is a flowchart showing the operation of the second embodiment.

【図5】本発明の第3の実施例を説明するための構成図
である。
FIG. 5 is a configuration diagram for explaining a third embodiment of the present invention.

【図6】本発明の第3の実施例を説明するための構成図
である。
FIG. 6 is a configuration diagram for explaining a third embodiment of the present invention.

【図7】本発明の第3の実施例を説明するための構成図
である。
FIG. 7 is a configuration diagram for explaining a third embodiment of the present invention.

【図8】第3の実施例によるぼかし処理を説明するため
の構成図である。
FIG. 8 is a configuration diagram for explaining blurring processing according to a third embodiment.

【図9】第3の実施例を示すブロック図である。FIG. 9 is a block diagram showing a third embodiment.

【図10】本発明の第4の実施例を説明するための構成
図である。
FIG. 10 is a configuration diagram for explaining a fourth embodiment of the present invention.

【図11】第4の実施例を示すブロック図である。FIG. 11 is a block diagram showing a fourth embodiment.

【図12】第4の実施例の動作を示すフローチャートで
ある。
FIG. 12 is a flowchart showing the operation of the fourth embodiment.

【図13】本発明の第5の実施例を示すブロック図であ
る。
FIG. 13 is a block diagram showing a fifth embodiment of the present invention.

【図14】第5の実施例の動作を示すフローチャートで
ある。
FIG. 14 is a flowchart showing the operation of the fifth embodiment.

【図15】第5の実施例を説明するための構成図であ
る。
FIG. 15 is a configuration diagram for explaining a fifth embodiment.

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

11、16、27、29 圧縮符号化部 12、26、30 2値化部 13、18、24、31 像域判定部 14 置換え部 15 スイッチ 19 検出部 20 ぼかし処理部 11, 16, 27, 29 compression coding unit 12, 26, 30 binarization unit 13, 18, 24, 31 image area determination unit 14 replacement unit 15 switch 19 detection unit 20 blurring processing unit

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像データのカラー領域と白
黒領域とを判定する判定手段と、 上記判定手段で判定されたカラー領域の画像データを第
1の符号化方式で符号化する第1の符号化手段と、 上記判定手段で判定された白黒領域の画像データを第2
の符号化方式で符号化する第2の符号化手段とを備えた
画像処理装置。
1. A determination means for determining a color area and a monochrome area of input image data, and a first encoding method for encoding the image data of the color area determined by the determination means by a first encoding method. The encoding means and the image data of the monochrome area determined by the determination means are
An image processing apparatus comprising: a second encoding unit that encodes using the above encoding method.
【請求項2】 入力された画像データを形成する色デー
タと輝度データとを用いて第1の符号化方式で符号化す
る第1の符号化手段と、 上記第1の符号化手段から得られる符号化データのカラ
ー領域を判定する判定手段と、 上記判定手段で判定されたカラー領域の画像データを所
定の値に置換える置換え手段と、 上記輝度データと上記置換え手段から得られる上記所定
の値のデータとを第2の符号化方式で符号化する第2の
符号化手段とを備えた画像処理装置。
2. A first encoding means for encoding in a first encoding method using color data and luminance data forming input image data, and the first encoding means. Judgment means for judging the color area of the encoded data, replacement means for replacing the image data of the color area judged by the judgment means with a predetermined value, the luminance data and the predetermined value obtained from the replacement means And an image processing device which encodes the data of 1. by a second encoding method.
【請求項3】 上記置換え手段の動作の有無を選択する
選択手段を備えた請求項2記載の画像処理装置。
3. The image processing apparatus according to claim 2, further comprising selection means for selecting whether or not the replacement means operates.
【請求項4】 画像をブロック単位に符号化して成る入
力画像データのカラー領域と白黒領域とを上記ブロック
単位に判定する判定手段と、 上記判定手段で判定された上記カラー領域のブロックと
上記白黒領域のブロックとの境界近傍のデータをぼかす
処理を行うぼかし手段とを備えた画像処理装置。
4. A judging means for judging a color area and a black-and-white area of input image data formed by coding an image in block units, and a block of the color area and the black-and-white area judged by the judging means. An image processing apparatus comprising: a blurring unit that blurs data in the vicinity of a boundary with a block of a region.
【請求項5】 上記カラー領域のブロックにおける上記
白黒領域のブロックとの境界近傍がカラー画像であるか
否かを検出し、カラー画像でないとき上記ぼかし手段を
動作させる検出手段を設けた請求項4記載の画像処理装
置。
5. A detection means for detecting whether or not the vicinity of a boundary between the block of the color area and the block of the black and white area is a color image and activating the blurring means when the color image is not a color image. The image processing device described.
【請求項6】 上記白黒領域のブロックにおける上記カ
ラー領域との境界近傍が所定の値であるか否かを検出
し、所定の値でないとき上記ぼかし手段を動作させる検
出手段を設けた請求項4記載の画像処理装置。
6. A detection means is provided for detecting whether or not the vicinity of a boundary with the color area in the block of the black and white area has a predetermined value and operating the blurring means when the value is not a predetermined value. The image processing device described.
【請求項7】 上記入力画像データの背景色を所定の色
に置換える置換え手段を設け、上記ぼかし手段と選択的
に用いるようにした請求項4記載の画像処理装置。
7. The image processing apparatus according to claim 4, further comprising a replacing means for replacing the background color of the input image data with a predetermined color so as to selectively use the background color.
【請求項8】 上記置換え手段が置換える上記所定の色
は上記入力画像データに含まれる背景色情報が指定する
色である請求項7記載の画像処理装置。
8. The image processing apparatus according to claim 7, wherein the predetermined color to be replaced by the replacing means is a color designated by background color information included in the input image data.
【請求項9】 上記置換え手段は上記白黒領域のデータ
が白を示すとき上記所定の色に置換える請求項7記載の
画像処理装置。
9. The image processing apparatus according to claim 7, wherein the replacing means replaces the data in the black-and-white area with the predetermined color when the data shows white.
【請求項10】 入力された画像データをそれぞれ第
1、第2の符号化方式で符号化する第1、第2の符号化
手段と、 上記第1、第2の符号化手段からそれぞれ得られる符号
化データから画像のカラー領域と白黒領域とを判定する
判定手段とを備えた画像処理装置。
10. The first and second encoding means for encoding the input image data by the first and second encoding methods respectively, and the first and second encoding means respectively. An image processing apparatus comprising: a determination unit that determines a color area and a black and white area of an image from encoded data.
【請求項11】 上記判定手段は、入力された画像デー
タのカラー領域と白黒領域とをブロック単位に判定する
ものである請求項1又は10記載の画像処理装置。
11. The image processing apparatus according to claim 1, wherein the determination means determines the color area and the monochrome area of the input image data in block units.
【請求項12】 上記判定手段で判定されたカラー領域
のブロックと白黒領域のブロックについてその周囲のブ
ロックの判定に基づいて判定結果を修正する修正手段を
設けた請求項11記載の画像処理装置。
12. The image processing apparatus according to claim 11, further comprising correction means for correcting the determination result of the block of the color area and the block of the black and white area determined by the determination means based on the determination of the surrounding blocks.
【請求項13】 上記判定手段は、黒であってかつ線が
太くないという条件を満す要素のみから成り立っている
ブロックとそれ以外のブロックとを判定基準に用いる請
求項11記載の画像処理装置。
13. The image processing apparatus according to claim 11, wherein the determination means uses a block consisting of only elements satisfying a condition that the line is black and the line is not thick and a block other than that as a determination criterion. .
【請求項14】 上記第1の符号化方式はブロック符号
化方式である請求項1又は10記載の画像処理装置。
14. The image processing apparatus according to claim 1, wherein the first coding method is a block coding method.
【請求項15】 上記ブロック符号化方式はDCT係数
を用いる符号化方式である請求項14記載の画像処理装
置。
15. The image processing apparatus according to claim 14, wherein the block coding method is a coding method using a DCT coefficient.
【請求項16】 上記第2の符号化方式は2値符号化方
式である請求項1又は10記載の画像処理装置。
16. The image processing apparatus according to claim 1, wherein the second encoding method is a binary encoding method.
【請求項17】 上記判定手段は、上記ブロック符号化
方式による符号化に際して表われる係数を用いて判定を
行うようにした請求項14記載の画像処理装置。
17. The image processing apparatus according to claim 14, wherein the determination means makes a determination using a coefficient that appears when encoding by the block encoding method.
【請求項18】 上記判定手段は、量子化前又は量子化
後のDCT係数を用いるようにした請求項15記載の画
像処理装置。
18. The image processing apparatus according to claim 15, wherein the determination means uses a DCT coefficient before or after quantization.
【請求項19】 上記第1の符号化方式はブロック符号
化方式であり、その符号化のためのブロックと上記それ
以外のブロックとは、互いに各辺の長さが整数倍である
請求項13記載の画像処理装置。
19. The first encoding method is a block encoding method, and a block for encoding the block and the other block have respective sides whose lengths are integral multiples. The image processing device described.
【請求項20】 上記黒であってかつ線が太くないとい
う条件を満たす要素のみから成り立っているブロックの
判定基準として輝度の交流成分の絶対値の和又は2乗和
と色差成分の直流分の絶対値の和又は2乗和とを用いる
請求項13記載の画像処理装置。
20. The sum of absolute values of the AC component of luminance or the sum of squares and the DC component of the color difference component are used as a criterion for a block consisting of only the elements that satisfy the condition that the line is black and the line is not thick. The image processing device according to claim 13, wherein a sum of absolute values or a sum of squares is used.
JP7199894A 1995-08-04 1995-08-04 Image processing unit Pending JPH0951441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7199894A JPH0951441A (en) 1995-08-04 1995-08-04 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7199894A JPH0951441A (en) 1995-08-04 1995-08-04 Image processing unit

Publications (1)

Publication Number Publication Date
JPH0951441A true JPH0951441A (en) 1997-02-18

Family

ID=16415382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7199894A Pending JPH0951441A (en) 1995-08-04 1995-08-04 Image processing unit

Country Status (1)

Country Link
JP (1) JPH0951441A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002034011A (en) * 2000-07-17 2002-01-31 Mayumi Hirozawa Multifunctional personal computer fax video phone
JP2009017502A (en) * 2006-08-08 2009-01-22 Canon Inc Image encoding apparatus and image decoding apparatus
US20110096985A1 (en) * 2009-10-28 2011-04-28 Seiko Epson Corporation Image processing method, program, and image processing device
US8712170B2 (en) 2009-11-18 2014-04-29 Seiko Epson Corporation Image-processing method and program, and image-processing apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002034011A (en) * 2000-07-17 2002-01-31 Mayumi Hirozawa Multifunctional personal computer fax video phone
JP2009017502A (en) * 2006-08-08 2009-01-22 Canon Inc Image encoding apparatus and image decoding apparatus
US20110096985A1 (en) * 2009-10-28 2011-04-28 Seiko Epson Corporation Image processing method, program, and image processing device
US8718392B2 (en) * 2009-10-28 2014-05-06 Seiko Epson Corporation Method, program, and device for compressing a block of image data based on whether the block is monochromatic
US8712170B2 (en) 2009-11-18 2014-04-29 Seiko Epson Corporation Image-processing method and program, and image-processing apparatus

Similar Documents

Publication Publication Date Title
JP4275827B2 (en) Digital image data processing method and processing apparatus
JP2720924B2 (en) Image signal encoding device
US6275620B2 (en) Method and apparatus for pre-processing mixed raster content planes to improve the quality of a decompressed image and increase document compression ratios
EP0785669B1 (en) Image processing method and apparatus
US6334001B2 (en) Iterative smoothing technique for pre-processing mixed raster content planes to improve the quality of a decompressed image and increase document compression ratios
US8229238B2 (en) Image encoding apparatus, image processing apparatus and control method thereof
JP5132517B2 (en) Image processing apparatus and image processing method
US5416603A (en) Image segmentation using discrete cosine transfer data, and image data transmission apparatus and method using this image segmentation
JP2008042688A (en) Image processing apparatus and control method thereof, and computer program and computer readable storage medium
US7630574B2 (en) Image encoding method and image apparatus
JP2006180456A (en) Image compressor, image decoder, image converter and image processing method
US6987587B2 (en) Multiple recognition image processing apparatus
JP4898601B2 (en) Image processing apparatus, image processing method, and program thereof
JPH0951441A (en) Image processing unit
EP1006714A2 (en) Method of processing mixed raster content planes
KR101454208B1 (en) Method and apparatus for encoding/decoding halftone image
JPH04238462A (en) Picture processor
JP3085932B2 (en) Apparatus for generating predicted image using mask and apparatus for compressing, transmitting and restoring binary image using the same
JPH05176180A (en) Coding method for still natural picture with mixed existence of binary picture
JP4097146B2 (en) Image processing apparatus, image processing method, program, and information recording medium
EP1006715B1 (en) Processing digital image data
JP4766586B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP3352330B2 (en) Image processing apparatus and method
JP2003023545A (en) Image output device and control method therefor
EP1006711A2 (en) Method and apparatus for processing a pixel map