JPH0490265A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0490265A
JPH0490265A JP2205704A JP20570490A JPH0490265A JP H0490265 A JPH0490265 A JP H0490265A JP 2205704 A JP2205704 A JP 2205704A JP 20570490 A JP20570490 A JP 20570490A JP H0490265 A JPH0490265 A JP H0490265A
Authority
JP
Japan
Prior art keywords
image
binary
data
value
area
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
JP2205704A
Other languages
Japanese (ja)
Inventor
Wasaku Yamada
山田 和作
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 JP2205704A priority Critical patent/JPH0490265A/en
Publication of JPH0490265A publication Critical patent/JPH0490265A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain both a high compression rate and high picture quality by automatically applying image area separation and compressing data depending on the compression system suitable for each area. CONSTITUTION:An image area separate section 3 divides a multi-valued picture area and a binary picture area of an input picture and writes 0 to a location of a picture element of the binary picture area and 1 to a picture location of the multi-valued picture area in a separate result memory 4. A binary compression/decoding section 4 reads the separate result data from the separate result memory 4 and forcibly brings picture elements other than those of the separated areas to white level picture elements, the result is binarizing-processed and the data is compressed by the compression system of the binary picture and stored in a binary compression data memory 5. Moreover, picture elements other than those of the separated areas as the multi-valued picture area are brought forcibly to white level picture elements, the result is compressed by the compression system of the multi-valued picture and the obtained multi-value compressed data is stored in the multi-valued compression data memory 6.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、文書などの画像をデータ圧縮して蓄積しある
いは伝送し、または再現する画像処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing apparatus that compresses and stores, transmits, or reproduces images such as documents.

[従来の技術] 画像ファイルシステムや静止画伝送システムにおいて、
写真などの中間調を含む画像を対象とした場合、スキャ
ナーによって多値データとして読み込んだ原稿画像にデ
イザなどの擬似中間調処理を施してからモディファイド
・ハフマン(MH)符号化などの2値画像圧縮符号化に
よりデータ圧縮を行い、情報記録媒体に記録し、あるい
は外部へ伝送し、また情報記憶媒体から再生した圧縮ブ
タまたは回線より受信した圧縮データを復号して2値プ
リンタなとで再現することが多い。しかし、再現される
中間調の品質が原画像より劣化し、文字画像は擬似中間
調処理の影響で解像度がかなり悪化する。またデータ圧
縮率も不十分である。
[Prior art] In image file systems and still image transmission systems,
When targeting an image containing halftones such as a photograph, the original image is read as multi-valued data by a scanner, undergoes pseudo-halftone processing such as dithering, and then performs binary image compression such as Modified Huffman (MH) encoding. Compressing data through encoding, recording it on an information storage medium or transmitting it to the outside, or decoding the compressed data received from the information storage medium or the line and reproducing it on a binary printer etc. There are many. However, the quality of reproduced halftones is worse than that of the original image, and the resolution of character images is considerably degraded due to the effect of pseudo halftone processing. Also, the data compression rate is insufficient.

二のような問題を解決するために、画像を像域別に処理
する方式が種々研究されている。その例を次に示す。
In order to solve the second problem, various methods for processing images by image area have been studied. An example is shown below.

従来技術の・多値スキャナーによって入ツノされた原稿
画像データを2値データと階調数を下げた多値データに
変換し、あるいはデイザ法による擬似中間調データに変
換し、予め指定された領域位置情報に従って、原稿の2
値画像領域では2値データを選択して出力し、原稿の中
間調領域では多値データまたは擬似中間調データを選択
して出力する(特開昭63−59264号、特開昭53
−142964号)。
Convert original image data inputted by a conventional multi-value scanner into binary data and multi-value data with a reduced number of gradations, or into pseudo-halftone data using a dither method, and then convert it into pre-specified areas. 2 of the manuscript according to the location information
In the value image area, binary data is selected and output, and in the halftone area of the document, multivalue data or pseudo halftone data is selected and output (Japanese Patent Laid-Open No. 63-59264, Japanese Patent Laid-Open No. 53
-142964).

従来技術■:入力画像から写真領域を矩形として抽出し
、入力原稿の写真領域をライン単位で白または黒画素に
置換してから2値化し、MR符号化なとの2値画像に適
した方法によってデータ圧縮し、他方、写真領域は整形
化処理をしてからヘクトル量子化や変換符号化なとの多
値画像に適した方法によってデータ圧縮し、このように
して得た2種類の圧縮データを記憶し、あるいは伝送す
る。
Conventional technology ■: A method suitable for binary images in which a photographic area is extracted as a rectangle from an input image, the photographic area of the input document is replaced with white or black pixels line by line, and then binarized and MR encoding is performed. On the other hand, the photographic area is formatted and then compressed using a method suitable for multivalued images, such as hector quantization or transform encoding, and the two types of compressed data obtained in this way are to store or transmit.

画像を再生する場合は、写真領域の圧縮データとそれ以
外の圧縮データをそれぞれに適した方法で復号し、合成
する(特開平1.−144778号)。
When reproducing an image, the compressed data of the photo area and the other compressed data are decoded using methods suitable for each and combined (Japanese Patent Laid-Open No. 144778/1999).

従来技術■、多値データとして入力される画像について
、所定のブロック単位で中間調であるか2値であるかを
判定する。中間調のブロックは、ブロック内の濃度の平
均値に変換し、2値のブロックについてはブロック内の
濃度パターンに応じたビットパターンに変換することに
より、データ量を圧縮し記憶または伝送する(特開昭6
3−191475号)。
Prior art (2) For an image input as multivalued data, it is determined whether it is halftone or binary in units of predetermined blocks. Halftone blocks are converted to the average density value within the block, and binary blocks are converted to a bit pattern that corresponds to the density pattern within the block, thereby compressing the amount of data and storing or transmitting it. Kaisho 6
3-191475).

従来技術■:原稿の2値画像データと多値画像データと
を別々のメモリに記憶しておき、また多値画像領域の座
標情報を記憶しておき、多値画像領域の座標領域に従っ
て各メモリを選択的に読出し、2値画像データは多値レ
ベルへの変換も行うことにより2値画像領域と多値画像
領域の混在した画像を合成し、これをD/A変換してC
4(Tデイスプレィなどに出力する(特開昭63−15
8968号)。
Conventional technology ■: Binary image data and multi-value image data of a document are stored in separate memories, coordinate information of the multi-value image area is also stored, and each memory is stored according to the coordinate area of the multi-value image area. is selectively read out, and the binary image data is also converted to a multi-value level to synthesize an image containing a mixture of binary image areas and multi-value image areas, which is then D/A converted and converted into C
4 (Output to T-display, etc.)
No. 8968).

[発明が解決しようとする課題] 従来技術■及び■は、予め中間調乃至多値画像領域を指
定する必要があるため、任意の画像を処理する用途には
適用できない。また、デイザ法による擬似中間調処理を
行った場合には中間調領域の画像品質の劣化が避けられ
ない。なお、該当公開特許公報にはデータ圧縮について
は述べられていない。
[Problems to be Solved by the Invention] Conventional techniques (1) and (2) require specifying a halftone or multivalued image area in advance, and therefore cannot be applied to applications that process arbitrary images. Further, when pseudo halftone processing using the dither method is performed, deterioration of image quality in the halftone region is unavoidable. Note that the relevant patent publication does not mention data compression.

従来技術■は、写真領域の矩形抽出とその整形化処理の
精度、並びに写真領域とそれ以外の領域との合成の精度
が十分に高いならば、再生画像品質及びデータ圧縮率の
両面で優れた効果を期待できる。しかし、多様な入力画
像に対して、自動処理によって写真領域の矩形抽出と整
形化を高精度に行うことは簡単ではなく、処理時間も増
加しやすく、わずかな処理誤差によって再生画像の品質
が著しく悪化する危険がある。
Conventional technology ■ is superior in terms of both reproduction image quality and data compression rate, provided that the accuracy of rectangular extraction of the photo area and its shaping process, as well as the accuracy of compositing the photo area and other areas, are sufficiently high. You can expect good results. However, it is not easy to extract and reshape photographic areas with high precision automatically for a variety of input images, and the processing time tends to increase, and the quality of the reproduced image can be significantly affected by a small processing error. There is a risk that it will get worse.

従来技術■は、処理が簡単である反面、中間調の品質劣
化が生じやすく、またデータ圧縮率の向上にも限界があ
る。
Although the conventional technique (2) is easy to process, it tends to cause deterioration in the quality of halftones, and there is also a limit to the improvement in the data compression rate.

本発明の目的は、写真などの中間調領域と文字などの2
値領域が混在した任意の画像に対して、比較的簡単な処
理により効率的なデータ圧縮と高品質な画像再現が可能
な画像処理装置を提供することにある。
The purpose of the present invention is to
An object of the present invention is to provide an image processing device capable of efficient data compression and high-quality image reproduction through relatively simple processing for any image containing a mixture of value regions.

[課題を解決するための手段] 特許請求の範囲請求項(1)記載の発明は、多値データ
として入力した入力画像の2値画像領域と多値画像領域
とを分離する像域分離手段、該像域分離手段による像域
分離結果に従い、入力画像を2値画像領域以外が白の画
像として2値圧縮データに変換するための2値画像圧縮
手段及び入力画像を多値画像領域以外が白の画像として
多値圧縮データに変換するための多値画像圧縮手段、該
2値画像圧縮手段による2値圧縮データ及び該多値画像
圧縮手段による多値圧縮データをそれぞれ情報記録媒体
に記録しまたは外部に出力する手段を有することを特徴
とする 請求項(2)記載の発明は、請求項(1)記載の発明に
よる画像処理装置において、2値圧縮データを復号する
2値画像復号手段、多値圧縮データを復号する多値画像
復号手段、該2値画像復号手段により復号された2値画
像データを多値レベルに変換して該多値画像復号手段に
より復号された多値画像データと合成する画像合成手段
と、該画像合成手段による合成画像データの多値記録を
行う画像手段を有することを特徴とする 請求項(3)記載の発明は、請求項(1)記載の発明に
よる画像処理装置において、像域分離手段により多値画
像領域と判定された領域の特徴に基づき入力画像が2値
画像であるか2値多値混在画像であるかを判定する判定
手段を有し、該判定手段により、2値画像であると判定
された入力画像は2値画像として処理することを特徴と
する請求項(4)記載の発明は、入力画像の2値画像領
域以外を白とした画像の2値圧縮データ及び入力画像の
多値画像領域以外を白とした画像の多値圧縮データを、
情報記憶媒体または通信回線より入力され、該2値圧縮
データを復号する2値画像復号手段、該多値画像データ
を復号する多値画像復号手段、該2値画像復号手段によ
り復号された2値画像データを多値レベルに変換して該
多値画像復号手段により復号された多値画像データと合
成する画像合成手段、該画像合成手段による合成画像デ
ータの多値記録を行う画像記録手段を有することを特徴
とする。
[Means for Solving the Problems] The invention described in claim (1) provides an image area separation means for separating a binary image area and a multivalued image area of an input image input as multivalued data; Binary image compression means for converting the input image into binary compressed data as an image in which areas other than the binary image area are white according to the image area separation result by the image area separation unit; a multivalued image compression means for converting the image into multivalued compressed data, recording the binary compressed data by the binary image compression means and the multivalued compressed data by the multivalued image compression means on an information recording medium, or The invention as set forth in claim (2) is characterized in that the image processing apparatus according to the invention as set forth in claim (1) includes a means for outputting the binary compressed data to the outside; Multi-value image decoding means for decoding compressed value data, converting the binary image data decoded by the binary image decoding means into a multi-value level and combining it with the multi-value image data decoded by the multi-value image decoding means. The invention as set forth in claim (3) is characterized in that the invention comprises an image compositing means for performing multi-level recording of composite image data by the image compositing means, and an image means for performing multi-value recording of composite image data by the image compositing means. The apparatus includes a determination means for determining whether the input image is a binary image or a binary and multivalue mixed image based on the characteristics of the region determined to be a multivalued image region by the image area separation means, The invention as set forth in claim (4) is characterized in that an input image determined to be a binary image by the means is processed as a binary image. Binary compressed data and multi-value compressed data of an image in which areas other than the multi-value image area of the input image are white,
A binary image decoding means input from an information storage medium or a communication line and decoding the binary compressed data, a multi-value image decoding means decoding the multi-value image data, and a binary image decoded by the binary image decoding means. It has an image composition means for converting image data into a multi-value level and composites it with the multi-value image data decoded by the multi-value image decoding means, and an image recording means for performing multi-value recording of the composite image data by the image composition means. It is characterized by

[作 用] 請求項(1)記載の発明によれば、多値画像領域(例え
ば写真などの中間調領域)と2値画像領域(例えば文字
など)が混在する多様な入力画像について、その像域が
予め指定されなくとも、自動的に像域分離を行って、2
値画像領域をそれに適した、画質劣化の少ない2値画像
圧縮方式により効率的にデータ圧縮し、多値画像領域を
それに適した、かつ画質劣化の少ない多値画像圧縮方式
によりデータ圧縮することにより、高圧縮率と高画像品
質とを同時に達成可能である。したがって、高精度な像
域矩形抽出やその整形化などの面倒な処理は必要でなく
、処理内容が簡単で高速処理が容易である。
[Function] According to the invention described in claim (1), the image of various input images in which multivalued image areas (for example, halftone areas such as photographs) and binary image areas (for example, characters, etc.) coexist can be adjusted. Even if the area is not specified in advance, image area separation is automatically performed and 2
By efficiently compressing the data of a value image area using a suitable binary image compression method with less image quality deterioration, and by compressing the data of a multi-value image area using a suitable multi-value image compression method with less image quality deterioration. , it is possible to simultaneously achieve high compression ratio and high image quality. Therefore, troublesome processing such as highly accurate image area rectangle extraction and its shaping is not necessary, and the processing content is simple and high-speed processing is easy.

また、2値圧縮データは入力画像の2値画像領域以外を
白として圧縮されたデータであり、多値圧縮データも入
力画像の多値画像領域以外を白として圧縮されたデータ
であるため、請求項(2)または(4)記載の発明によ
って、それぞれの復号データの単純な加算により原画像
データを復元することができ、それを多値記録すること
によって高画質に再現可能である。
In addition, binary compressed data is data that has been compressed with areas other than the binary image area of the input image being white, and multilevel compressed data is also data that has been compressed with areas other than the multilevel image area of the input image being white. According to the invention described in item (2) or (4), it is possible to restore original image data by simply adding the respective decoded data, and it is possible to reproduce it with high image quality by recording it in multiple values.

請求項(3)記載の発明によれば、2値画像のみからな
る入力画像に対しては、2値画像として処理されるため
、無駄な多値圧縮データの記録、伝送、復号を排除でき
る。
According to the invention described in claim (3), since an input image consisting only of binary images is processed as a binary image, unnecessary recording, transmission, and decoding of multi-value compressed data can be eliminated.

[実施例] 第1図は本発明の一実施例を示すブロック図である。[Example] FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図において、1は原稿を読み取る多値の画像スキャ
ナー、2は画像スキャナー】からの入力画像データや復
元画像を記憶するための入出力画像メモIハ3は入力画
像の2値画像領域と多値画像領域を分離するための像域
分離部、4は像域分離の結果を記憶する分離結果メモリ
、5は2値圧縮データを記憶する2値圧縮データメモ1
ハロは多値圧縮データを記憶する多値圧縮データメモリ
である。7は2値画像圧縮処理及び復号処理を行う2値
圧縮/復号部、8は多値画像圧縮処理及び復号処理を行
う多値圧縮/復号部である。9は多値圧縮/復号部8の
機能を利用して入力画像が2値画像であるか2値多値混
在画像であるかの判定を行う判定部、10は各メモリ5
,6より圧縮データを読み込み光ディスクに記録し、ま
た光ディスクに記録された圧縮データを再生して各メモ
リ5.6へ書き出ず光デイスク装置である。11は入力
画像の圧縮データを通信回線を通じて外部装置へ伝送し
、あるいは外部装置より圧縮データを受信する伝送部、
12は圧縮データの復号データの合成を行う画像合成部
、13は多値画像データの多値記録を行うプリンタ、1
4は各部の動作やデータ転送などの制御を行う制御部で
ある。利用者が指令などを与える操作部も存在するが、
図示されていない。
In FIG. 1, 1 is a multi-level image scanner that reads a document, 2 is an input/output image memo I for storing input image data and restored images from the image scanner, and 3 is a binary image area of the input image. An image area separation unit for separating multivalued image areas; 4 is a separation result memory that stores the results of image area separation; 5 is a binary compressed data memo 1 that stores binary compressed data;
Halo is a multi-value compressed data memory that stores multi-value compressed data. 7 is a binary compression/decoding section that performs binary image compression processing and decoding processing, and 8 is a multi-value compression/decoding section that performs multi-value image compression processing and decoding processing. Reference numeral 9 denotes a determination unit that uses the function of the multi-value compression/decoding unit 8 to determine whether the input image is a binary image or a binary multi-value mixed image; 10 represents each memory 5;
. 11 is a transmission unit that transmits compressed data of an input image to an external device through a communication line or receives compressed data from an external device;
12 is an image synthesis unit that synthesizes decoded data of compressed data; 13 is a printer that performs multi-value recording of multi-value image data;
Reference numeral 4 denotes a control unit that controls the operation of each unit and data transfer. There is also an operation section where the user can give commands, etc.
Not shown.

以下動作を説明する。The operation will be explained below.

原稿が画像スキャナー1によって読み込まれ、原稿画像
が例えば8ビツトの多値データとして入出力画像メモリ
2に書き込まれる。像域分離部3において、入出力画像
メモリ2より入力画像の多値データを読み込み、入力画
像の多値画像領域と2値画像領域を分離し、分離結果メ
モリ4に対し、例えば2値画像領域の画素の位置にO1
多値画像領域の画像の位置に1を書き込む。
A document is read by an image scanner 1, and the document image is written into an input/output image memory 2 as, for example, 8-bit multi-value data. The image area separation unit 3 reads the multivalued data of the input image from the input/output image memory 2, separates the multivalued image area and the binary image area of the input image, and stores the data in the separation result memory 4, for example, the binary image area. O1 at the pixel position of
Write 1 at the image position in the multivalued image area.

この領域分離は様々な方法によって行うことができるが
、例えば同一出願人の特願平1,113242号特許出
願の明細書及び図面に詳細に述べられているように、文
字の輪郭白画素及び連結黒画素が同時に一定以上の密度
で存在することに着目し、まず入力画像の多値データよ
り各画素を黒画素と白画素に分類し、分類された黒画素
群及び白画素群より連結した黒画素及び白画素をそれぞ
れ検出し、検出した連結黒画素及び連結白画素が共に一
定個数以」二、近傍に存在する画素を仮文字部画素とし
て検出し、仮文字画素が注目画素の近傍に一定個数以上
存在するときに、注目画素を文字部の画素であるとする
方法を利用できる。
This region separation can be performed by various methods, but for example, as described in detail in the specification and drawings of Japanese Patent Application No. 1,113,242 filed by the same applicant, white pixel outlines of characters and connections are used. Focusing on the fact that black pixels exist simultaneously at a density higher than a certain level, we first classify each pixel into black pixels and white pixels from the multi-value data of the input image, and then create a black pixel that is connected from the classified black pixel group and white pixel group. Pixels and white pixels are respectively detected, and the detected connected black pixels and connected white pixels both exceed a certain number. 2. The pixels existing in the vicinity are detected as temporary character pixels, and the temporary character pixels are fixed in the vicinity of the pixel of interest. When there are more than the number of pixels, a method can be used in which the pixel of interest is determined to be a pixel of a character portion.

このような像域分離によって、例えば第2図に示すよう
な文字部と写真部が混在した入力画像の場合、第3図に
示すように、文字部と隣接画像が2値画像領域として分
離され、それ以外の写真部と白地部が多値画像領域とし
て分離される。
With such image area separation, for example, in the case of an input image in which a text portion and a photo portion coexist as shown in Fig. 2, the text portion and the adjacent image are separated as binary image regions as shown in Fig. 3. , the other photographic areas and white background areas are separated as multivalued image areas.

2値圧縮/復号部7では、入出力画像メモリ2より入力
画像の多値データを読み込み、所定の2値化閾値によっ
て2値化処理を行うが、同時に分離結果メモリ4より分
離結果データを読み込み、入力画像の2値画像領域とし
て分離された領域以外の画素を強制的に白画素にする。
The binary compression/decoding unit 7 reads the multivalued data of the input image from the input/output image memory 2 and performs binarization processing using a predetermined binarization threshold, but at the same time reads the separation result data from the separation result memory 4. , pixels other than the area separated as a binary image area of the input image are forced to be white pixels.

すなわち、1ページの入力画像を2値画像領域以外は白
とした1ページの画像として2値化処理する。そし、て
、この2値化データを2値画像の圧縮方式番こよってデ
ータ圧縮し、得られた2値圧縮データを2値圧縮データ
メモリ5に格納する。本実施例では、圧縮方式としてフ
ァクシミリで標準的に採用されているMH符号化方式が
用いられるものとする。この符号化方式によれば、デイ
ザ法のような解像度低下などを避けられる。
In other words, one page of input image is binarized as one page image with white except for the binary image area. Then, this binary data is compressed according to the compression method number of the binary image, and the obtained binary compressed data is stored in the binary compressed data memory 5. In this embodiment, it is assumed that the MH encoding method, which is standardly adopted in facsimile, is used as the compression method. According to this encoding method, it is possible to avoid resolution degradation that occurs in the dither method.

また多値圧縮/復号部8においては、入出力画像メモリ
2より入力画像の多値データを読み込み、同時に分離結
果メモリ4より分離結果データを読み込み、2値圧縮/
復号部7と同様に、入力画像の多値データを、多値画像
領域として分離された領域以外の画素を白として、多値
画像の圧縮方式によってデータ圧縮し、得られた多値圧
縮データを多値圧縮データメモリ6に格納する。本実施
例では、静止画像圧縮の標準方式であるA D CT(
適応離散コサイン変換、A daptive D 1s
crer、eCosine Transf’orm)を
圧縮方式として採用するものとする。この圧縮方式によ
れば、デイザ法のような画質劣化を避けられる。
In addition, the multilevel compression/decoding unit 8 reads multilevel data of the input image from the input/output image memory 2, simultaneously reads separation result data from the separation result memory 4, and performs binary compression/decoding.
Similar to the decoding unit 7, the multi-value data of the input image is compressed using the multi-value image compression method, with pixels other than the area separated as the multi-value image area being white, and the obtained multi-value compressed data is The data is stored in the multivalued compressed data memory 6. In this example, ADC (ADCT), which is a standard still image compression method, is used.
Adaptive discrete cosine transform, A adaptive D 1s
crer, eCosine Transfer'orm) is adopted as the compression method. According to this compression method, it is possible to avoid image quality deterioration that occurs in the dither method.

このようにして、1ページの入力画像に対して1ペ一ジ
分の2値圧縮データと1ペ一ジ分の多値圧縮データが得
られるが、両圧縮データはそれぞれ光デイスク装置10
へ転送され、所定のフォーマットに従って光ディスクに
記録される。両圧縮データを保存する必要がない場合は
、直ちに伝送部11より通信回線を通し外部装置へ伝送
することも可能である。
In this way, one page's worth of binary compressed data and one page's worth of multilevel compressed data are obtained for one page of input image, but both compressed data are stored in the optical disk device 10.
and recorded on an optical disc according to a predetermined format. If it is not necessary to save both compressed data, it is also possible to immediately transmit them from the transmission unit 11 to an external device through a communication line.

なお、同様の圧縮処理系を持つ外部装置より、同様の2
値圧縮データ及び多値圧縮データを通信回線を通じ伝送
部11にて取り込み、それぞれをメモリ5,6に記憶し
、次に光デイスク装置10に記録させることも可能であ
る。
In addition, if you use an external device with a similar compression processing system,
It is also possible to take in the value compressed data and the multi-value compressed data by the transmission unit 11 through a communication line, store them in the memories 5 and 6, and then record them in the optical disk device 10.

画像のプリントアウトの場合、光デイスク装置10より
必要な画像の圧縮データを検索して光ディスクより再生
し、あるいは外部装置より伝送部11を通じて取り込み
、2値圧縮データを2値圧縮データメモリ5に、多値圧
縮データを多値圧縮データメモリ6へそれぞれ書き込む
In the case of printing out an image, the compressed data of the necessary image is retrieved from the optical disk device 10 and reproduced from the optical disk, or it is imported from an external device through the transmission section 11, and the binary compressed data is stored in the binary compressed data memory 5. The multi-value compressed data are respectively written to the multi-value compressed data memory 6.

多値圧縮/復号部8及び2値圧縮/復号部7はそれぞれ
多値圧縮データメモリ6及び2値圧縮データメモリ5よ
り多値圧縮データ及び2値圧縮データを読み込み復号し
、復号した多値画像データ及び2値画像データを所定の
処理単位(例えば8ライン)ごとに交互に画像合成部1
2へ転送する。
The multi-level compression/decoding section 8 and the binary compression/decoding section 7 read and decode the multi-level compressed data and the binary compressed data from the multi-level compressed data memory 6 and the binary compressed data memory 5, respectively, and produce the decoded multi-level image. The image synthesis unit 1 alternately processes data and binary image data in predetermined processing units (for example, 8 lines).
Transfer to 2.

画像合成部12は処理単位(例えば8ライン)分の画像
合成メモリを内部に持ち、まず転送されてきた処理単位
分の復号多値画像データを画像合成メモリの画素対応位
置に書き込む。それに続けて転送されてきた復号2値画
像データを多値レベルに変換してから、画像合成メモリ
の画素対応位置に書き込む。
The image synthesis section 12 has an image synthesis memory for processing units (for example, 8 lines) internally, and first writes the transferred decoded multi-valued image data for the processing units into pixel-corresponding positions in the image synthesis memory. Subsequently, the decoded binary image data transferred is converted into multilevel data, and then written into the pixel-corresponding position of the image synthesis memory.

例えば復号多値画像データが8ビツトデータであるとす
ると、白のOから黒の255までの256の階調表現が
できる。これに対して復号2値画像データは白を0、黒
を1で表現する。そこで、画像合成部12では、第4図
に示すように、2値画像データのO(白)の画素は、そ
のまま画像合成メモリの対応位置に書き込むが、1 (
黒)の画素は255を画像合成メモリの対応位置に書き
込む。
For example, if the decoded multivalued image data is 8-bit data, 256 gradations from O for white to 255 for black can be expressed. On the other hand, decoded binary image data expresses white as 0 and black as 1. Therefore, in the image synthesis section 12, as shown in FIG.
For the pixel (black), 255 is written to the corresponding position in the image synthesis memory.

このような処理によって、復号された多値画像データと
2値画像データとの加算合成が達成される。このような
簡単な合成処理が可能である理由は、データ圧縮の際に
、多値画像領域以外を白として多値画像圧縮を行い、2
値画像領域以外を白として2値画像圧縮を行い、また多
値画像領域と2値画像領域との重なりがないからである
Through such processing, additive synthesis of decoded multivalued image data and binary image data is achieved. The reason why such a simple compositing process is possible is that when compressing data, multi-value image compression is performed with areas other than the multi-value image area being white.
This is because binary image compression is performed with areas other than the value image area being white, and there is no overlap between the multivalue image area and the binary image area.

画像合成メモリ上に合成された処理単位分の多値画像デ
ータは入出力画像メモリ2へ転送され、引き続き次の処
理単位分について画像合成処理が続けられる。
The multivalued image data for the processing unit synthesized on the image synthesis memory is transferred to the input/output image memory 2, and the image synthesis process continues for the next processing unit.

1ペ一ジ分の多値画像データが入出力画像メモリ2に蓄
積されると、これが多値プリンタ13へ転送され、多値
でプリントアウトされる。
When one page's worth of multivalued image data is stored in the input/output image memory 2, it is transferred to the multivalued printer 13 and printed out in multivalued form.

以上説明したように、本発明によれば、1ページの入力
画像は、多値画像領域以外を白とした1ページ、2値画
像領域以外を白とした1ページの合計2ページの画像と
して、それぞれの圧縮方式によりデータ圧縮される。い
ずれのデータ圧縮でも、対象画像の白地部の面積が増加
するが、白地部は圧縮率が高く、それぞれのデータ圧縮
に像域に最適な圧縮方式が適用され、また多値画像領域
の矩形抽出を行ってデータ圧縮する方式と違って多値画
像領域を示すデータを作成する必要もないため、全体と
して高いデータ圧縮率を達成でき、画質の劣化も最小限
にすることができ、処理も簡単で高速化が容易である。
As explained above, according to the present invention, one page of input image is a total of two pages of images, one page with white areas other than the multilevel image area, and one page with white areas other than the binary image area. Data is compressed using each compression method. In either data compression, the area of the white background part of the target image increases, but the compression rate of the white background part is high, and the compression method that is most suitable for the image area is applied to each data compression, and the rectangular extraction of the multivalued image area is Unlike methods that compress data by performing data compression, there is no need to create data representing multivalued image areas, so a high overall data compression rate can be achieved, image quality deterioration can be minimized, and processing is simple. It is easy to increase the speed.

また、画像の復元については、各圧縮データをそれぞれ
復号し、て加算合成するだけでよく処理が簡単高速であ
り、高品質の復元画像を得られる。
In addition, for image restoration, all that is required is to decode each compressed data, add and combine them, and the process is simple and fast, and a high-quality restored image can be obtained.

さて、−射的な文書画像の多くは2値画像のみからなり
、2値多値混在画像は少ないと考えられる。したがって
、ここまで述べたように入力画像について無差別に2値
画像としての処理と多値画像としての処理の両方を行う
と、殆どが2値画像のみからなる文書を多量にスキャナ
ー1で連続的に読み取らせて処理する場合などには必ず
しも効率的でない。2値画像のみからなる文書画像につ
いては、2値画像として処理(光ディスクへの記録、伝
送、復元)を行うほうが明らかに効率的である。
Now, it is thought that most of the morphometric document images consist of only binary images, and there are few binary and multi-value mixed images. Therefore, if input images are indiscriminately processed as both binary images and multi-valued images as described above, a large number of documents, most of which consist only of binary images, will be continuously scanned by the scanner 1. This is not necessarily efficient when the data is read and processed by a computer. For document images consisting only of binary images, it is clearly more efficient to process them as binary images (recording on an optical disk, transmitting, restoring).

そこで、本発明によれば、入力画像であるか2値多値混
在画像であるかを判定し、入力画像を2値画像であるこ
と判定した場合には2値画像としての処理を行うように
制御することができる。
Therefore, according to the present invention, it is determined whether the input image is a binary and multivalued mixed image, and if the input image is determined to be a binary image, it is processed as a binary image. can be controlled.

第1図の実施例においては、そのような判定のために判
定部9が設()られている。この判定部9について第5
図により説明する。
In the embodiment shown in FIG. 1, a determination section 9 is provided for such determination. Regarding this judgment section 9, the fifth
This will be explained using figures.

多値圧縮/復号部8は、多値画像圧縮方式としてADC
Tを利用するため、第5図に示すようなADCT部16
部将6ている。このADCT部16部将6次元DCT 
(離散コサイン変換)部17で入力画像データの8×8
画素をコサイン変換し、その変換値を量子化部18で量
子化したのちハフマン符号化部19で符号化するという
構成である。
The multi-value compression/decoding unit 8 uses ADC as a multi-value image compression method.
In order to utilize T, an ADCT section 16 as shown in FIG.
There are 6 generals. This ADCT department 16 division general 6-dimensional DCT
(Discrete cosine transformation) unit 17 transforms the input image data into 8×8
The configuration is such that pixels are cosine transformed, the transformed values are quantized by a quantizer 18, and then encoded by a Huffman encoder 19.

二次元コサイン変換では、8×8画素から一つのDC(
直流)成分と63個のAC(交流)成分が得られること
が知られている。DC成分は+1025から−1024
まで11ビツトにより表現され、その上位8ビツトの+
127から−128は8×8のブロック内の輝度の平均
値を意味する。
In two-dimensional cosine transformation, one DC (
It is known that a direct current) component and 63 AC (alternating current) components can be obtained. DC component is +1025 to -1024
up to 11 bits, and the upper 8 bits of +
127 to -128 means the average value of luminance within the 8×8 block.

ユニで・、−127は白のレベル、+128は黒のレベ
ルを示す。
In Uni, -127 indicates the white level and +128 indicates the black level.

通常、写真や印刷物等の網点て構成される中間調の領域
(絵柄領域)では、ある程度濃度の高い領域が集合して
絵柄部を構成するのに対し、文字領域を除いた地肌領域
では平均濃度が非常に低くなっている。したかって、文
字領域を除いた領域の濃度を判定の特徴として用いるこ
とができる。
Normally, in the midtone area (picture area) made up of halftone dots in photographs and printed matter, areas with a certain high density gather to form the pattern part, whereas in the background area excluding text areas, the average concentration is very low. Therefore, the density of the area excluding the character area can be used as a characteristic for determination.

判定部9は、そのような判定を行うが、その最も簡単な
方法は次の通りである。すなわち、二次元DCT部17
によって8X8のブロックについて得られたDC成分を
閾値と比較し、像域分離より多値像領域とされた領域内
の全ブロックのDC成分が閾値よりも低い場合に(DC
成分が閾値を越えるブロックがない場合に)、多値画像
領域とされた領域に絵柄部が存在しない、つまり入力画
像が2値画像である、と判定する。
The determining unit 9 makes such a determination, and the simplest method is as follows. That is, the two-dimensional DCT section 17
The DC component obtained for the 8×8 block is compared with the threshold value, and if the DC components of all blocks in the area determined as the multilevel image area by image area separation are lower than the threshold value, (DC
If there is no block whose component exceeds the threshold value), it is determined that there is no picture part in the area designated as a multi-valued image area, that is, the input image is a binary image.

しかし、このような簡単な判定方法によると、文字たけ
で構成された入力画像でも、地肌の汚れ等により、ある
程度濃度が高い領域が生じると、これを絵柄部と間違い
、2値多値混在画像と誤判定する恐れがある。そこで、
より好ましくは、判定部9において次のような方法で判
定を行う。
However, according to such a simple judgment method, even if an input image consists of only a few characters, if an area with a certain level of high density occurs due to dirt on the background, this will be mistaken for a pattern, and it will be interpreted as a binary and multi-value mixed image. There is a risk of misjudgment. Therefore,
More preferably, the determination unit 9 performs the determination in the following manner.

すなわち、絵柄部が存在する場合、少なくとも、ある程
度の連続した領域で濃度が閾値を越える筈であるから、
像域分離で多値画像領域どされた領域内において、DC
成分が閾値を越えたブロックの個数をカウントし、その
個数が規定値(例えば連続して5個以上)を越えたとき
に、絵柄部が存在する、つまり入力画像が2値多値混在
画像である、と判定する。このような判定方法によれば
、微小な地肌の汚れなどを絵柄部と間違いにくいため、
より確実な判定が可能となる。
In other words, if there is a picture area, the density should exceed the threshold in at least some continuous area.
In the area converted into a multivalued image area by image area separation, DC
The number of blocks whose components exceed the threshold is counted, and when the number exceeds a specified value (for example, 5 or more blocks in a row), it is determined that a pattern exists, that is, the input image is a binary and multivalued mixed image. It is determined that there is. According to this determination method, it is difficult to mistake minute dirt on the background for the pattern, so
More reliable judgment becomes possible.

なお、二次元DCTのDC成分を判定に利用する方法は
、ADCTによる多値圧縮/複号部8内の二次元DCT
部17の機能を利用できる利点がある。しかし、入力画
像の多値データより、多値画像領域とされた領域の微小
部分(nXn)の平均濃度を直接判定し、同様の判定を
行ってもよい。
Note that the method of using the DC component of the two-dimensional DCT for determination is the two-dimensional DCT in the multi-value compression/decoding unit 8 using ADCT.
There is an advantage that the function of section 17 can be used. However, the same determination may be made by directly determining the average density of a minute portion (nXn) of a region defined as a multi-value image region from the multi-value data of the input image.

以−にのようにして判定部9により入力画像が2値画像
であると判定された場合、制御部14は、入力画像を2
値画像として処理させる。すなわち、多値圧縮データメ
モリ5の内容を無効とし、2値圧縮データメモリ5の内
容だけを光デイスク装置10に記録させ、あるいは伝送
部11にて伝送させる。画像再現の場合にも、2値圧縮
データだけを復元させて画像合成部8へ送る。
When the determination unit 9 determines that the input image is a binary image as described above, the control unit 14 converts the input image into a binary image.
Process it as a value image. That is, the contents of the multilevel compressed data memory 5 are invalidated, and only the contents of the binary compressed data memory 5 are recorded in the optical disk device 10 or transmitted by the transmission section 11. In the case of image reproduction, only the binary compressed data is restored and sent to the image composition section 8.

なお、カラー画像を扱う場合には、輝度(a度)成分に
着目して同様の像域分離、判定を行い、各色成分を独立
に処理すればよい。また、像域分離で、網点領域なども
含めて3種類以上の領域に分離してもよい。
Note that when handling a color image, similar image area separation and determination may be performed focusing on the luminance (a degree) component, and each color component may be processed independently. Furthermore, image area separation may be performed to separate into three or more types of areas, including halftone areas.

〔発明の効果] 以上詳細に説明した如く、特許請求の範囲(1)記載の
発明によれば、多値画像領域(例えば写真などの中間r
I4領域)と2値画像領域(例えば文字など)が混在す
る多様な六ノJ画像について、その像域が干め指定され
なくとも、自動的に像域分離を行って、2値画像領域を
それに適した、画質劣化の少ない2値国像圧縮方式(S
より効率的にデー夕圧縮し、多値画像領域をそれに適し
た、かつ画質劣化の少ない多値画像圧縮方式によりデー
タ圧縮することにより、高圧縮率と高画像品質とを同時
に達成でき、また処理内容が簡単で高速処理が容易であ
る。また、2値圧縮データは入力画像の2値画像領域以
外を白として圧縮されたデータであり、多値圧縮データ
も入力画像の多値画像領域以外を白として圧縮されたデ
ータであるため、請求項(2)または(4)記載の発明
によれば、それぞれの復号データの単純な加算により原
画像データを復元することができ、それを多値記録する
ことによって高画質の画像再現が可能である。さらに請
求項(3)記載の発明によれば、2値画像のみからなる
入力画像は2値画像として処理し、無駄な多値圧縮デー
タの記録、伝送、復号を排除して効率的な処理が可能で
ある。
[Effects of the Invention] As explained in detail above, according to the invention recited in claim (1), multivalued image areas (for example, intermediate r
For various RokunoJ images that contain a mixture of I4 area) and binary image area (for example, characters), even if the image area is not specified, image area separation is automatically performed to separate the binary image area. A binary image compression method (S
By compressing data more efficiently and compressing multi-value image areas using a multi-value image compression method suitable for that purpose and with less image quality deterioration, it is possible to simultaneously achieve high compression ratios and high image quality. The content is simple and high-speed processing is easy. In addition, binary compressed data is data that has been compressed with areas other than the binary image area of the input image being white, and multilevel compressed data is also data that has been compressed with areas other than the multilevel image area of the input image being white. According to the invention described in item (2) or (4), it is possible to restore the original image data by simply adding the respective decoded data, and by recording the data in multiple values, it is possible to reproduce a high-quality image. be. Furthermore, according to the invention set forth in claim (3), an input image consisting only of binary images is processed as a binary image, and efficient processing is achieved by eliminating unnecessary recording, transmission, and decoding of multilevel compressed data. It is possible.

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

第1図は本発明の一実施例を示すブロック図、第2図は
入力画像の一例の説明図、第3図は第2図に示した入力
画像の文字領域の分離結果の説明図、第4図は復号され
た2値画像データの画像合成を説明するフローチャート
、第5図は多値圧縮/復号部内のADCT部の構成と判
定部の動作を説明するためのブロック図である。 l・・・多値画像スキャナー 2・・・入出力画像メモリ、  3・・・像域分離部、
4・・分離結果メモリ、 5・・・2値圧縮データメモリ、 6・・多値圧縮データメモリ、 7・・・2値圧縮/復号部、 8・・・多値圧縮/復号部、  9・・・判定部、10
・・光デイスク装置、  11・・・伝送部、12・・
・画像合成部、  13・・・多値出力プリンタ、14
・・・制御部、  16・・・ADCT部、17・・・
二次元DCT部、  18・・・量子化部、19・・ハ
フマン符号化部。 第2図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of an example of an input image, FIG. 3 is an explanatory diagram of the result of separating character areas of the input image shown in FIG. FIG. 4 is a flowchart illustrating image synthesis of decoded binary image data, and FIG. 5 is a block diagram illustrating the configuration of the ADCT unit and the operation of the determination unit in the multilevel compression/decoding unit. l...Multilevel image scanner 2...Input/output image memory, 3...Image area separation unit,
4... Separation result memory, 5... Binary compressed data memory, 6... Multilevel compressed data memory, 7... Binary compression/decoding section, 8... Multilevel compression/decoding section, 9. ...Judgment section, 10
...Optical disk device, 11...Transmission section, 12...
・Image synthesis unit, 13...Multi-value output printer, 14
...control section, 16...ADCT section, 17...
Two-dimensional DCT unit, 18... Quantization unit, 19... Huffman encoding unit. Figure 2

Claims (4)

【特許請求の範囲】[Claims] (1)多値データとして入力した入力画像の2値画像領
域と多値画像領域とを分離する像域分離手段、該像域分
離手段による像域分離結果に従い、入力画像を2値画像
領域以外が白の画像として2値圧縮データに変換するた
めの2値画像圧縮手段及び入力画像を多値画像領域以外
が白の画像として多値圧縮データに変換するための多値
画像圧縮手段、該2値画像圧縮手段による2値圧縮デー
タ及び該多値画像圧縮手段による多値圧縮データをそれ
ぞれ情報記憶媒体に記録しまたは外部に出力する手段を
有することを特徴とする画像処理装置。
(1) An image area separation means for separating a binary image area and a multivalued image area of an input image input as multivalued data, and according to the image area separation result by the image area separation means, the input image is separated from the binary image area. a binary image compression means for converting an input image into binary compressed data as a white image, and a multi-value image compression means for converting an input image into multi-value compressed data as a white image except for the multi-value image area; An image processing apparatus comprising means for recording binary compressed data produced by a value image compression means and multivalued compressed data produced by the multivalued image compression means on an information storage medium or outputting them to the outside.
(2)2値圧縮データを復号する2値画像復号手段、多
値圧縮データを復号する多値画像復号手段、該2値画像
復号手段により復号された2値画像データを多値レベル
に変換して該多値画像復号手段により復号された多値画
像データと合成する画像合成手段、該画像合成手段によ
る合成画像データの多値記録を行う画像記録手段を有す
ることを特徴とする請求項(1)記載の画像処理装置。
(2) Binary image decoding means for decoding binary compressed data, multi-value image decoding means for decoding multi-value compressed data, and converting the binary image data decoded by the binary image decoding means into multi-value levels. Claim (1) characterized in that the method further comprises an image composing means for composing the multi-valued image data decoded by the multi-valued image decoding means, and an image recording means for performing multi-valued recording of the composite image data by the image composing means. ) image processing device.
(3)像域分離手段により多値画像領域と判定された領
域の特徴に基づき入力画像が2値画像であるか2値多値
混在画像であるかを判定する判定手段を有し、該判定手
段により、2値画像であると判定された入力画像は2値
画像として処理することを特徴とする請求項(1)記載
の画像処理装置。
(3) A determination means for determining whether the input image is a binary image or a binary and multivalue mixed image based on the characteristics of the region determined to be a multivalued image region by the image area separation means; 2. The image processing apparatus according to claim 1, wherein the input image determined to be a binary image by the means is processed as a binary image.
(4)入力画像の2値画像領域以外を白とした画像の2
値圧縮データ及び入力画像の多値画像領域以外を白とし
た画像の多値圧縮データを、情報記録媒体または通信回
線より入力され、該2値圧縮データを復号する2値画像
復号手段、該多値画像データを復号する多値画像復号手
段、該2値画像復号手段により復号された2値画像デー
タを多値レベルに変換して該多値画像復号手段により復
号された多値画像データと合成する画像合成手段、該画
像合成手段による合成画像データの多値記録を行う画像
記録手段を有することを特徴とする画像処理装置。
(4) Image 2 with white areas other than the binary image area of the input image
Binary image decoding means for inputting value compressed data and multi-value compressed data of an image in which areas other than the multi-value image area of the input image are white from an information recording medium or a communication line and decoding the binary compressed data; Multi-value image decoding means for decoding value image data, converting the binary image data decoded by the binary image decoding means to a multi-value level and combining it with the multi-value image data decoded by the multi-value image decoding means. 1. An image processing apparatus comprising: an image synthesizing means for performing multi-level recording of synthesized image data by the image synthesizing means;
JP2205704A 1990-08-02 1990-08-02 Picture processor Pending JPH0490265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2205704A JPH0490265A (en) 1990-08-02 1990-08-02 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2205704A JPH0490265A (en) 1990-08-02 1990-08-02 Picture processor

Publications (1)

Publication Number Publication Date
JPH0490265A true JPH0490265A (en) 1992-03-24

Family

ID=16511324

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2205704A Pending JPH0490265A (en) 1990-08-02 1990-08-02 Picture processor

Country Status (1)

Country Link
JP (1) JPH0490265A (en)

Similar Documents

Publication Publication Date Title
EP0785669B1 (en) Image processing method and apparatus
JPS59223073A (en) Picture processor
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
US5461682A (en) Image filing apparatus providing image data suitable for several input/output devices
US6628843B1 (en) Image enhancement on JPEG compressed image data
JP3108133B2 (en) Adaptive coding of color document images
JPH09205647A (en) Image coder, image decoder and image processor
JP3144824B2 (en) Image playback device
JPH0490265A (en) Picture processor
JPH0720201B2 (en) Image coding device
JP3227181B2 (en) Image processing device
JPH06178122A (en) Adaptive encoding device for color image
JP3062224B2 (en) Image coding method
JP2831954B2 (en) Image encoding / decoding device and image processing device
JPH08298589A (en) Image processor of photograph/document mixed image
JPH04151976A (en) Picture processing unit
JPH08317220A (en) Encoding and decoding device and method for mixed image of different value bit maps
JP3259989B2 (en) Binary and multi-valued mixed coded image data restoration method and apparatus
JPH06339020A (en) Picture processing method and device
JPH07322259A (en) Image processing unit
JPS62183265A (en) Image data transmission system
JPS6354872A (en) Coding and decoding system for picture data
JPS62140553A (en) Encoding method for image signal
JPH0463064A (en) Hybrid picture encoding and decoding device
JPH04326666A (en) Picture encoder