JP3284827B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3284827B2
JP3284827B2 JP14188295A JP14188295A JP3284827B2 JP 3284827 B2 JP3284827 B2 JP 3284827B2 JP 14188295 A JP14188295 A JP 14188295A JP 14188295 A JP14188295 A JP 14188295A JP 3284827 B2 JP3284827 B2 JP 3284827B2
Authority
JP
Japan
Prior art keywords
data
image
average value
block
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.)
Expired - Fee Related
Application number
JP14188295A
Other languages
Japanese (ja)
Other versions
JPH08336051A (en
Inventor
祥二 今泉
茂 守家
順二 西垣
Original Assignee
ミノルタ株式会社
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 ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP14188295A priority Critical patent/JP3284827B2/en
Priority to US08/646,118 priority patent/US5838455A/en
Publication of JPH08336051A publication Critical patent/JPH08336051A/en
Priority to US09/121,914 priority patent/US6047087A/en
Application granted granted Critical
Publication of JP3284827B2 publication Critical patent/JP3284827B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、GBTC(Generalize
d Block Truncation Coding)方式を用いて、画像情報
の圧縮符号化を行う画像処理装置に関する。
The present invention relates to a GBTC (Generalize
The present invention relates to an image processing device that performs compression coding of image information using a d-block truncation coding (d Block Truncation Coding) method.

【0002】[0002]

【従来の技術】近年、原稿の画像データを圧縮伸張する
方式として、GBTC方式が提案されている。GBTC
方式では、原稿の画像データを所定の画素マトリクスの
ブロック毎に抽出し、各ブロック毎に、ブロック内のデ
ータより定められるパラメータP1以下のデータの平均
値Q1とパラメータP2(但し、P1<P2の関係を満
たす。)以上の値のデータの平均値Q4の和を2等分し
て求められる平均値情報LAと上記平均値Q4と平均値
Q1の差である階調幅指数LDとに基づいて、ブロック
内の各画素のデータを、当該ブロック内の階調分布の範
囲内において前記データよりも少ない階調レベルに量子
化して得られる符号データφijに圧縮符号化する。図
1は、一般的なGBTC方式の符号化処理の流れを説明
するための図である。GBTC方式では、(a)に示す
ように、原稿画像の画像データを4×4画素ブロック単
位で抽出する。抽出した4×4画素ブロック内の画像デ
ータには、GBTC方式の符号化処理が施される。この
GBTC方式の符号化処理により、各画素につき1バイ
ト(=8ビット)のデータ×16画素分の画像データ
(16バイト、即ち128ビット)が、(b)に示すよ
うに、1バイトの階調幅指数LDと、同じく1バイトの
平均値情報LA、各画素のデータを4段階に分類して割
り当てられる2ビット符号データ×16画素分の合計6
バイト(=48ビット)のデータに符号化される。これ
により、画像のデータ量は、3/8に圧縮される。
(c)は、符号化された画像データのデータ量が、符号
化前の画像データ6画素分に相当することを表す図であ
る。符号化されたデータの復号化は、階調幅指数LD及
び平均値情報LAに基づいて各2ビットの符号データに
対応する1バイトの画像データを算出することで実行さ
れる。
2. Description of the Related Art In recent years, a GBTC method has been proposed as a method for compressing and expanding image data of a document. GBTC
In the method, image data of a document is extracted for each block of a predetermined pixel matrix, and for each block, an average value Q1 of data equal to or less than a parameter P1 defined by data in the block and a parameter P2 (where P1 <P2). The relationship is satisfied.) On the basis of the average value information LA obtained by dividing the sum of the average values Q4 of the data of the above values into two and the gradation width index LD which is the difference between the average value Q4 and the average value Q1, The data of each pixel in the block is compression-encoded into code data φij obtained by quantizing the data within the range of the gradation distribution in the block to a smaller number of gradation levels than the data. FIG. 1 is a diagram for explaining the flow of a general GBTC encoding process. In the GBTC method, as shown in (a), image data of a document image is extracted in units of 4 × 4 pixel blocks. The image data in the extracted 4 × 4 pixel block is subjected to a GBTC encoding process. As a result of the GBTC encoding process, one byte (= 8 bits) of data × 16 pixels of image data (16 bytes, that is, 128 bits) for each pixel is converted into a 1-byte data as shown in FIG. Width index LD, average value information LA of 1 byte, 2-bit code data assigned to each pixel data divided into four stages, and a total of 6 for 16 pixels
It is encoded into byte (= 48 bits) data. As a result, the data amount of the image is compressed to 3/8.
(C) is a diagram illustrating that the data amount of the encoded image data corresponds to six pixels of the image data before encoding. The decoding of the encoded data is executed by calculating 1-byte image data corresponding to each 2-bit code data based on the gradation width index LD and the average value information LA.

【0003】4×4画素ブロック内にある画素Xij
(但し、i及びjは、それぞれ1、2、3、4の何れか
の値である。)の画像データは、GBTC方式の符号化
処理及び復号化処理により4種類の値の256階調デー
タに置き換えられる。ここで、復号化されたデータは、
原画像のデータと比較すると明らかに誤差を含む。しか
し、当該誤差は、人間の視覚特性上、目立ちにくいレベ
ルであり、自然画像では、画質劣化は殆ど認められな
い。GBTC方式では、符号化されたデータに含まれる
階調幅指数LD及び平均値情報LAから、パラメータQ
1及びQ4を求めることができる。即ち、パラメータP
1以下の黒色部分と、パラメータP2以上の白色部分か
らなる文字画像は、符号化されたデータから再現するこ
とができる。画像データをDCT変換して得られるデー
タをハフマン符号化するJPEG方式では、原稿の種類
によってデータの圧縮率が変化する。即ち、ある原稿に
対しては、GBTC方式よりも高いデータ圧縮を実現す
るが、別の原稿では、殆ど圧縮することができない場合
がある。このため、画像処理装置に備えるメモリの容量
の設定が難しい。しかし、GBTC方式では、一定の圧
縮率でデータの圧縮を行うことができる。このため、画
像処理装置に備えるメモリの容量の設定が容易であると
いった利点を備える。
A pixel Xij in a 4 × 4 pixel block
(However, i and j are each one of the values 1, 2, 3, and 4.) The image data is 256 gradation data of four kinds of values by the encoding process and the decoding process of the GBTC system. Is replaced by Here, the decrypted data is
When compared with the data of the original image, it clearly contains errors. However, the error is at a level that is inconspicuous in human visual characteristics, and almost no image quality deterioration is recognized in a natural image. In the GBTC method, a parameter Q is obtained from a gradation width index LD and average value information LA included in encoded data.
1 and Q4 can be determined. That is, the parameter P
A character image composed of a black portion equal to or less than 1 and a white portion equal to or more than the parameter P2 can be reproduced from the encoded data. In the JPEG system in which data obtained by performing DCT conversion on image data is subjected to Huffman coding, the data compression ratio changes depending on the type of document. In other words, although data compression is higher for a certain document than for the GBTC method, compression may be hardly performed for another document. For this reason, it is difficult to set the capacity of the memory provided in the image processing apparatus. However, in the GBTC method, data can be compressed at a fixed compression ratio. Therefore, there is an advantage that the capacity of the memory provided in the image processing apparatus can be easily set.

【0004】JPEG方式の符号化処理を実行する画像
処理装置では、原稿の画像データを所定の画素マトリク
スよりなるブロックを単位として、DCT変換する。D
CT変換されたデータは、GBTC方式の符号化処理に
より得られる平均値情報LAや階調幅指数LD、そして
符号データφijのように、ブロックを構成する各画素
のデータの平均値や階調幅等を反映するデータではな
い。このため、DCT変換されたデータに加工を施して
再現される画像の濃度やカラーバランスを変更すること
は、非常に困難である。従って、原稿の種類を判断し、
この判断結果に基づいて、用紙上に再現される画像の編
集/加工処理を行うには、これらの処理を画像データの
符号化前、もしくは、復号化後に行う必要があった。
[0004] An image processing apparatus that performs JPEG encoding processing performs DCT on image data of a document in units of a block composed of a predetermined pixel matrix. D
The CT-converted data includes the average value information LA and the gradation width index LD obtained by the encoding process of the GBTC method, and the average value and gradation width of the data of each pixel constituting the block, such as the code data φij. It is not data to reflect. For this reason, it is very difficult to change the density or color balance of an image reproduced by processing DCT-converted data. Therefore, determine the type of original,
In order to perform the editing / processing of the image reproduced on the paper based on the determination result, it is necessary to perform these processes before the encoding of the image data or after the decoding.

【0005】[0005]

【発明が解決しようとする課題】上記説明するように、
GBTC方式の画像データの符号化は、常に一定のデー
タ圧縮率(3/8)を示す。しかし、この圧縮率は、J
PEG方式の画像データの符号化と比較した場合、さほ
ど高い値でない。また、JPEG方式の符号化処理を実
行する画像処理装置では、原稿の種類の判断は、画像デ
ータを符号化する前、又は復号化した後に実行されてい
た。また、画像の濃度分布を適正化するAE処理や、色
変換や枠編集といった画像の編集/加工処理も、画像デ
ータを符号化する前、又は復号化した後に実行されてい
た。この場合、画像の属性を判別するのに高速演算を行
うハード回路や、全画像データを記憶する大容量のメモ
リを必要とし、コスト高となっていた。
As explained above,
Encoding of image data of the GBTC system always shows a constant data compression ratio (3/8). However, the compression ratio is J
The value is not so high when compared with the encoding of PEG image data. Further, in the image processing apparatus that performs the JPEG encoding process, the type of the document is determined before encoding the image data or after decoding the image data. Further, AE processing for optimizing the density distribution of an image, and image editing / processing processing such as color conversion and frame editing have also been performed before encoding or decoding image data. In this case, a hardware circuit for performing a high-speed operation and a large-capacity memory for storing all the image data are required to determine the attribute of the image, resulting in high cost.

【0006】本発明の目的は、より効率のよい画像デー
タの圧縮及び画像処理を実行する画像処理装置を提供す
ることである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing apparatus which performs more efficient image data compression and image processing.

【0007】[0007]

【課題を解決するための手段】本発明の第1の画像処理
装置では、原稿のRGB画像データを明度成分のデータ
と色度成分のデータに変換するデータ変換処理部と、明
度成分及び色度成分のデータを、それぞれ所定の画素マ
トリクスからなるブロックに分割し、各ブロック毎に、
ブロック内のデータより定められるパラメータP1以下
の値のデータの平均値Q1とパラメータP2(但し、P
1<P2の関係を有する)以上の値のデータの平均値Q
4の和を2等分して求められる平均値情報と、上記平均
値Q4と平均値Q1の差である階調幅指数とに基づい
て、ブロック内の各画素のデータを、当該ブロック内の
階調分布の範囲内において前記データよりも少ない階調
レベルで量子化して得られる符号データに符号化する符
号化処理部と、符号化処理の施されたブロックについ
て、明度成分と色度成分の平均値情報、階調幅指数及び
符号データの値に基づいて当該ブロックの属する画像の
属性を判別する属性判別処理部と、ブロック単位で、平
均値情報と、階調幅指数と、符号データと、属性判別結
果とを記憶する記憶部と、記憶部に記憶されている平均
値情報と、階調幅指数とに基づいて、符号データをブロ
ック単位で復号化する復号化処理部とを備える。
According to a first image processing apparatus of the present invention, a data conversion processing section for converting RGB image data of a document into lightness component data and chromaticity component data, a lightness component and a chromaticity component The component data is divided into blocks each having a predetermined pixel matrix, and for each block,
The average value Q1 of data having a value equal to or less than the parameter P1 determined from the data in the block and the parameter P2 (where P
1 <P2) Average value Q of data of values above
4 based on the average value information obtained by bisecting the sum of 4 and the gradation width index which is the difference between the average value Q4 and the average value Q1. An encoding processing unit that encodes into code data obtained by quantizing at a gradation level smaller than the data within the range of the tonal distribution, and an average of a lightness component and a chromaticity component of the encoded block. An attribute discrimination processing unit that discriminates an attribute of an image to which the block belongs based on the value information, the gradation width index, and the value of the code data; A storage unit that stores the result; and a decoding processing unit that decodes the code data in block units based on the average value information and the gradation width index stored in the storage unit.

【0008】また、本発明の第2の画像処理装置では、
原稿のRGB画像データを明度成分のデータと色度成分
のデータに変換するデータ変換処理部と、明度成分及び
色度成分のデータを、それぞれ所定の画素マトリクスか
らなるブロックに分割し、各ブロック毎に、ブロック内
のデータにより定められるパラメータP1以下の値のデ
ータの平均値Q1とパラメータP2(但し、P1<P2
の関係を有する)以上の値のデータの平均値Q4の和を
2等分して求められる平均値情報と、上記平均値Q4と
平均値Q1の差である階調幅指数とに基づいて、ブロッ
ク内の各画素のデータを、当該ブロック内の階調分布の
範囲内において前記データよりも少ない階調レベルでに
量子化して得られる符号データに符号化する符号化処理
部と、符号化処理の施されたブロックについて、明度成
分と色度成分の平均値情報、階調幅指数及び符号データ
の値に基づいて当該ブロックの属する画像属性を判別す
る属性判別処理部と、明度成分及び色度成分の平均値情
報と、階調幅指数と、符号データの内、判別した画像の
属性に基づいて常に特定することのできるデータを削減
する圧縮処理を実行する圧縮処理部と、圧縮処理後のデ
ータと、属性判別結果を互いに関連づけて記憶する記憶
部と、記憶部に記憶されている圧縮処理後のデータと属
性判別結果とを読み出し、属性判別結果に基づいて圧縮
処理において削減されたデータを復元する圧縮データ伸
張処理部と、データ伸張処理部において伸張された明度
成分及び色度成分の平均値情報と、階調幅指数とに基づ
いて、符号データをブロック単位で復号化する復号化処
理部とを備える。
[0008] In the second image processing apparatus of the present invention,
A data conversion processing unit for converting the RGB image data of the original into lightness component data and chromaticity component data; and dividing the lightness component and chromaticity component data into blocks each having a predetermined pixel matrix. The average value Q1 of data having a value equal to or less than the parameter P1 determined by the data in the block and the parameter P2 (where P1 <P2
Based on the average value information obtained by bisecting the sum of the average values Q4 of the data having the above values and the gradation width index which is the difference between the average value Q4 and the average value Q1. An encoding processing unit that encodes the data of each pixel in the code into code data obtained by quantizing the data at a gradation level smaller than the data within the range of the gradation distribution in the block; An attribute determination processing unit that determines an image attribute to which the block belongs based on the average value information of the lightness component and the chromaticity component, the gradation width index, and the value of the code data for the applied block; Average value information, a gradation width index, and a compression processing unit that performs a compression process of reducing data that can be always specified based on the attribute of the determined image among the code data, and data after the compression process, Attribute determination And a compressed data decompression unit that reads out the compressed data and the attribute determination result stored in the storage unit and stores the data reduced in the compression process based on the attribute determination result. A decoding unit that decodes the code data in block units based on the average value information of the brightness component and the chromaticity component expanded by the data expansion processing unit and the gradation width index.

【0009】また、上記第1及び第2の画像処理装置に
おいて、上記属性判別処理部は、判別するブロックの明
度成分及び色度成分の階調幅指数の値が全て所定値以下
である場合に、当該ブロックがべた画像に属すると判別
する判別処理と、明度成分及び色度成分の階調幅指数の
値が1つでも上記所定値以上の値を持つ場合には、当該
ブロック画像が2以上の階調を有する画像に属すると判
別する判別処理と、更に、判別するブロックの色度成分
の平均値情報が共に上記とは別の所定値以下である場合
には、当該ブロックが白黒画像に属すると判別する判別
処理と、色度成分の平均値情報の値が上記とは別の所定
値以上である場合には、当該ブロックは、カラー画像に
属すると判別する判別処理と、判別するブロックの明度
成分に割り当てられた符号データの値が2極化する場
合、当該ブロックは、2値画像に属すると判別し、上記
2極化しない場合には、当該ブロックは、多値画像に属
すると判別する判別処理の内、少なくとも1つの判別処
理を実行することが望ましい。また、符号化処理部にお
いて符号データをブロック単位で復号化する前に、当該
ブロックの属性に応じて、その属性の全ブロックの明度
成分、または明度成分及び色度成分の平均値情報のヒス
トグラムを求め、求めたヒストグラムに基づいて、各ブ
ロックの平均値情報の値を適正値に変換する平均値情報
変換処理手段を備えることが望ましい。さらに、記憶部
より、ブロック単位で明度成分及び色度成分の平均値情
報、階調幅指数、符号データ及び属性判別結果を読み出
し、読み出した属性判別結果に基づいて、該当する成分
の平均値情報、階調幅指数及び符号データの値を予定値
に変更する編集/加工処理部とを備えることが望まし
い。
In the first and second image processing apparatuses, the attribute discriminating processing unit may be arranged so that, when all values of the tone width index of the lightness component and the chromaticity component of the block to be discriminated are equal to or less than a predetermined value, The discriminating process of discriminating that the block belongs to a solid image, and if at least one of the tone width index values of the lightness component and the chromaticity component has a value equal to or greater than the predetermined value, the block image has two or more The discriminating process of discriminating that the block belongs to an image having a tone, and further, when the average value information of the chromaticity components of the block to be discriminated is both equal to or less than a predetermined value different from the above, it is determined that the block belongs to a monochrome image. A discriminating process for discriminating; a discriminating process for discriminating that the block belongs to a color image when the value of the average value information of the chromaticity component is equal to or more than a predetermined value different from the above; Assigned to ingredients If the value of the coded data is bipolarized, the block is determined to belong to a binary image. If not, the block is determined to belong to a multivalued image. , It is desirable to execute at least one determination process. In addition, before decoding the encoded data in block units in the encoding processing unit, according to the attribute of the block, a histogram of the brightness component of all blocks of the attribute or the average value information of the brightness component and the chromaticity component is generated. It is desirable to include an average value information conversion processing unit that converts the value of the average value information of each block into an appropriate value based on the obtained histogram. Further, from the storage unit, the average value information of the lightness component and the chromaticity component, the gradation width index, the code data, and the attribute determination result are read in block units, and based on the read attribute determination result, the average value information of the corresponding component, It is desirable to include an editing / processing unit that changes the values of the gradation width index and the sign data to predetermined values.

【0010】[0010]

【作用】第1の画像処理装置では、属性判別処理部が、
明度成分及び色度成分の平均値情報及び階調幅指数の値
に基づいて、当該ブロックの属する画像の属性を判別す
る。これにより、符号化処理前及び復号化後の画像デー
タを用いずとも、画像の属性を判別することができる。
また、各ブロック毎に属性の判別を行うため、より細か
な情報を得ることが可能となる。
In the first image processing apparatus, the attribute discriminating processing section includes:
The attribute of the image to which the block belongs is determined based on the average value information of the brightness component and the chromaticity component and the value of the gradation width index. Thus, the attribute of the image can be determined without using the image data before the encoding process and the image data after the decoding.
Further, since the attribute is determined for each block, more detailed information can be obtained.

【0011】また、第2の画像処理装置では、圧縮処理
部が、符号化処理部により符号化されたデータのうち、
当該ブロックの画像の属性により、常に特定することの
できる明度成分もしくは色度成分の平均値情報、階調幅
指数及び符号データの値を削減する。記憶部は、圧縮処
理後のデータと属性判別結果を記憶する。これにより、
画像データの圧縮率を大幅に向上することができる。
[0011] In the second image processing apparatus, the compression processing section may include, among the data encoded by the encoding processing section,
The value of the average value information of the brightness component or the chromaticity component, the gradation width index, and the value of the code data which can be always specified based on the attribute of the image of the block are reduced. The storage unit stores the data after the compression processing and the attribute determination result. This allows
The compression ratio of image data can be greatly improved.

【0012】また、上記第1及び第2の画像処理装置に
おいて、上記属性判別処理部は、判別するブロックの明
度成分及び色度成分の階調幅指数の値が全て所定値以下
である場合に、当該ブロックがべた画像に属すると判別
する判別処理と、明度成分及び色度成分の階調幅指数の
値が1つでも上記所定値以上の値を持つ場合には、当該
ブロック画像が2以上の階調を有する画像に属すると判
別する判別処理と、更に、判別するブロックの色度成分
の平均値情報が共に上記とは別の所定値以下である場合
には、当該ブロックが白黒画像に属すると判別する判別
処理と、色度成分の平均値情報の値が上記とは別の所定
値以上である場合には、当該ブロックは、カラー画像に
属すると判別する判別処理と、判別するブロックの明度
成分に割り当てられた符号データの値が2極化する場
合、当該ブロックは、2値画像に属すると判別し、上記
2極化しない場合には、当該ブロックは、多値画像に属
すると判別する判別処理の内、少なくとも1つの判別処
理を実行することとすれば、当該ブロックの属する画像
の属性をより有効に判別することができる。即ち、上記
判別処理の組み合わせにより、ブロックの画像が、白黒
べた画像であるのか、カラーべた画像であるのか、白黒
2値画像であるのか、白黒多値画像であるのか、また
は、フルカラー画像であるのかを判別することができ
る。更に、上記符号化処理部において、符号データをブ
ロック単位で復号化する前に、当該ブロックの属性に応
じて、その属性の全ブロックの明度成分、または明度成
分及び色度成分の平均値情報のヒストグラムを求め、求
めたヒストグラムの最小値、最大値及び平均値に基づい
て、各ブロックの平均値情報の値を適正値に変換する平
均値情報変換処理手段を備えたり、記憶部より、ブロッ
ク単位で明度成分及び色度成分の平均値情報、階調幅指
数、符号データ及び属性判別結果を読み出し、読み出し
た属性判別結果に基づいて、該当する成分の平均値情
報、階調幅指数及び符号データの値を予定値に変更する
編集/加工処理部とを備えることで、符号化前、または
復号化後のデータを処理せずとも原稿の濃度分布を適正
化するAE処理、色変換や枠編集といった編集/加工処
理を実行することが可能となり、上記処理に必要とする
記憶部や処理時間の現象を実現することができる。
In the first and second image processing devices, the attribute discrimination processing unit may be configured to determine whether a value of a tone width index of a lightness component and a chromaticity component of a block to be discriminated is equal to or less than a predetermined value. The discriminating process of discriminating that the block belongs to a solid image, and if at least one of the tone width index values of the lightness component and the chromaticity component has a value equal to or greater than the predetermined value, the block image has two or more The discriminating process of discriminating that the block belongs to an image having a tone, and further, when the average value information of the chromaticity components of the block to be discriminated is both equal to or less than a predetermined value different from the above, it is determined that the block belongs to a monochrome image. A discriminating process for discriminating; a discriminating process for discriminating that the block belongs to a color image when the value of the average value information of the chromaticity component is equal to or more than a predetermined value different from the above; Assigned to ingredients If the value of the coded data is bipolarized, the block is determined to belong to a binary image. If not, the block is determined to belong to a multivalued image. By executing at least one determination process, the attribute of the image to which the block belongs can be determined more effectively. That is, depending on a combination of the above-described determination processes, the block image is a black-and-white solid image, a color solid image, a black-and-white binary image, a black-and-white multi-valued image, or a full-color image. Can be determined. Further, in the encoding processing unit, before decoding the encoded data in block units, according to the attribute of the block, the lightness components of all the blocks having the attribute or the average value information of the lightness component and the chromaticity component are obtained. A histogram is obtained, and based on the obtained minimum value, maximum value and average value of the histogram, average value information conversion processing means for converting the value of average value information of each block into an appropriate value is provided. Reads the average value information of the lightness component and the chromaticity component, the gradation width index, the sign data, and the attribute determination result. Based on the read attribute determination result, the average value information of the corresponding component, the gradation width index, and the value of the sign data. AE processing to optimize the density distribution of the original without processing the data before encoding or after decoding by providing an editing / processing unit for changing the It is possible to perform the editing / processing such as frame editing, it is possible to realize the phenomena of the storage unit and the processing time required for the process.

【0013】[0013]

【実施例】本実施例のデジタルカラー複写機は、GBT
C方式の符号化処理を実行した後、各処理ブロック単位
で画像の属性を判別し、当該判別結果に基づいて、符号
化されたデータを更に圧縮する。上記画像の属性とは、
白黒べた画像、カラーべた画像、白黒2値画像、白黒多
値画像、フルカラー画像の5つをいう。また、GBTC
方式で符号化されたデータの備える階調幅指数LDと平
均値情報LAを利用して画像の濃度分布の適正化を行う
AE処理、色変換や枠編集といった画像編集/加工処理
を実行する。以下、本実施例の画像処理装置について、
添付の図面を用いて以下の順で説明する。 (1)GBTC方式による画像データの符号化 (2)デジタルカラー複写機の構成 (2−1)デジタルカラー複写機の構成 (2−2)操作パネル (3)画像処理の説明 (3−1)メインルーチン (3−2)キー入力処理 (3−3)再圧縮処理 (3-3-1)属性判別処理 <3-3-1-1>べた画像判別処理 <3-3-1-2>カラー/モノクロ判別処理 <3-3-1-3>2値/多値判別処理 (3-3-2)特徴量抽出処理 <3-3-2-1>白黒べた画像特徴量抽出処理 <3-3-2-2>カラーべた画像特徴量抽出処理 <3-3-2-3>白黒2値画像特徴量抽出処理 <3-3-2-4>白黒多値画像特徴量抽出処理 <3-3-2-5>フルカラー画像特徴量抽出処理 (3-3-3)再圧縮処理 <3-3-3-1>白黒べた画像再圧縮処理 <3-3-3-2>カラーべた画像再圧縮処理 <3-3-3-3>白黒2値画像再圧縮処理 <3-3-3-4>白黒多値画像再圧縮処理 (3−4)再圧縮からの伸張処理 (3-4-1)再圧縮からの伸張処理 <3-4-1-1>白黒べた画像再圧縮からの伸張処理 <3-4-1-2>カラーべた画像再圧縮からの伸張処理 <3-4-1-3>白黒2値画像再圧縮からの伸張処理 <3-4-1-4>白黒多値画像再圧縮からの伸張処理 <3-4-1-5>フルカラー画像再圧縮からの伸張処理 (3-4-2)AE処理 <3-4-2-1>白黒多値画像AE処理 <3-4-2-2>フルカラー画像AE処理 (3-4-3)画像編集/加工処理 <3-4-3-1>白黒べた画像編集/加工処理 <3-4-3-2>カラーべた画像編集/加工処理 <3-4-3-3>白黒2値画像編集/加工処理 <3-4-3-4>白黒多値画像編集/加工処理 <3-4-3-5>フルカラー画像編集/加工処理
DESCRIPTION OF THE PREFERRED EMBODIMENTS The digital color copying machine of this embodiment is a
After the encoding process of the C method is performed, the attribute of the image is determined for each processing block, and the encoded data is further compressed based on the determination result. The attributes of the above image are
There are five types: a black and white solid image, a color solid image, a black and white binary image, a black and white multivalued image, and a full color image. Also, GBTC
AE processing for optimizing the density distribution of the image using the gradation width index LD and the average value information LA included in the data encoded by the system, and image editing / processing processing such as color conversion and frame editing are executed. Hereinafter, regarding the image processing apparatus of the present embodiment,
Description will be made in the following order with reference to the attached drawings. (1) Encoding of image data by GBTC method (2) Configuration of digital color copier (2-1) Configuration of digital color copier (2-2) Operation panel (3) Description of image processing (3-1) Main routine (3-2) Key input processing (3-3) Recompression processing (3-3-1) Attribute determination processing <3-3-1-1> Solid image determination processing <3-3-1-2> Color / monochrome discrimination processing <3-3-1-3> Binary / multi-value discrimination processing (3-3-2) Feature extraction processing <3-3-2-1> Black and white solid image feature extraction processing <3 -3-2-2> Color solid image feature extraction processing <3-3-2-3> Black and white binary image feature extraction processing <3-3-2-4> Black and white multi-valued image feature extraction processing <3 -3-2-5> Full color image feature extraction processing (3-3-3) Recompression processing <3-3-3-1> Black and white solid image recompression processing <3-3-3-2> Color solid image Recompression processing <3-3-3-3> Black and white binary image recompression processing <3-3-3-4> Black and white multivalued image recompression processing (3-4) Decompression processing from recompression ( 3-4-1) Decompression processing from recompression <3-4-1-1> Decompression processing from black and white solid image recompression <3-4-1-2> Decompression processing from color solid image recompression <3 -4-1-3> Decompression processing from re-compression of monochrome binary image <3-4-1-4> Decompression processing from re-compression of monochrome multi-valued image <3-4-1-5> Re-compression of full-color image (3-4-2) AE processing <3-4-2-1> AE processing for monochrome multi-valued images <3-4-2-2> AE processing for full color images (3-4-3) Image editing / Processing <3-4-3-1> Black / white solid image editing / processing <3-4-3-2> Color solid image editing / processing <3-4-3-3> Black / white binary image editing / processing Processing <3-4-3-4> Black and white multi-value image editing / processing processing <3-4-3-5> Full color image editing / processing processing

【0014】(1)GBTC方式による画像データの符
号化 GBTC方式では、原稿の画像データを所定の画素マト
リクスのブロック毎に抽出し、各ブロック毎に、ブロッ
ク内のデータより定められるパラメータP1以下のデー
タの平均値Q1とパラメータP2(但し、P1<P2の
関係を満たす。)以上の値のデータの平均値Q4の和を
2等分して求められる平均値情報LAと上記平均値Q4
と平均値Q1の差である階調幅指数LDとに基づいて、
ブロック内の各画素のデータを、当該ブロック内の階調
分布の範囲内において前記データよりも少ない階調レベ
ルに量子化して得られる符号データに圧縮符号化する。
図1は、本実施例のデジタルカラー複写機の実行するG
BTC方式の符号化処理の流れを示す図である。GBT
C方式では、図1(a)に示すように、原稿画像の画像
データを4×4画素ブロック単位で抽出する。抽出した
4×4画素ブロック内の画像データは、以下に図2を用
いて説明する方式で符号化処理を行い、各画素につき1
バイト(=8ビット)のデータ×16画素分の画像デー
タ(16バイト、即ち128ビット)を、図1(b)に
示すように、1バイトの階調幅指数LDと、同じく1バ
イトの平均値情報LA、各画素のデータを4段階に分類
して割り当てられる2ビット符号データ×16画素分の
合計6バイト(=48ビット)のデータに符号化する。
これにより、データ量を3/8に圧縮する。図1(c)
は、符号化された画像データのデータ量が、符号化前の
画像データ6画素分に相当することを表す図である。符
号化されたデータの復号化は、階調幅指数LD及び平均
値情報LAに基づいて各2ビットの符号データに対応す
る1バイトの画像データを算出することで実行される。
なお、本実施例においては、原稿の画像データを4×4
画素ブロック単位で抽出するが、これに限定されず、3
×3画素ブロックや、6×6画素ブロック単位で抽出す
るものであってもよい。また、ブロック内の各画素の2
56階調データを4階調の符号データに符号化するもの
に限定されず、2階調や8階調の符号データに符号化す
るものであってもよい。順に説明するように、本発明の
画像処理装置では、各ブロック毎に、ブロック内のデー
タより定められるパラメータP1及びP2から求められ
る平均値情報LA及び階調幅指数LDを用いて、画像属
性の判別や、当該判別結果に基づく各種の画像処理を実
行することを特徴とするからである。
(1) Encoding of image data by the GBTC method In the GBTC method, image data of a document is extracted for each block of a predetermined pixel matrix, and for each block, a parameter P1 or less defined by data in the block is determined. The average value information LA obtained by dividing the sum of the average value Q1 of the data and the average value Q4 of the data having a value equal to or larger than the parameter P2 (where P1 <P2 is satisfied) and the average value Q4
And the gradation width index LD which is the difference between the average value Q1 and
The data of each pixel in the block is compressed and coded into code data obtained by quantizing the data to a smaller number of gradation levels than the data within the range of the gradation distribution in the block.
FIG. 1 is a diagram illustrating a G executed by the digital color copying machine of the present embodiment.
It is a figure which shows the flow of the encoding processing of a BTC system. GBT
In the C method, as shown in FIG. 1A, image data of a document image is extracted in units of 4 × 4 pixel blocks. The extracted image data in the 4 × 4 pixel block is subjected to an encoding process according to a method described below with reference to FIG.
As shown in FIG. 1B, a byte (= 8 bits) data × 16 pixels of image data (16 bytes, that is, 128 bits) are converted into a 1-byte gradation width index LD and a 1-byte average value. The information LA and the data of each pixel are encoded into 2-bit code data x 16 pixels, which are classified into four stages and are assigned to a total of 6 bytes (= 48 bits) of data.
Thereby, the data amount is compressed to 3/8. FIG. 1 (c)
FIG. 4 is a diagram illustrating that the data amount of encoded image data corresponds to six pixels of image data before encoding. The decoding of the encoded data is executed by calculating 1-byte image data corresponding to each 2-bit code data based on the gradation width index LD and the average value information LA.
In this embodiment, the image data of the document is 4 × 4
The extraction is performed in units of pixel blocks, but is not limited thereto.
The image may be extracted in units of × 3 pixel blocks or 6 × 6 pixel blocks. Also, 2 of each pixel in the block
The present invention is not limited to the encoding of the 56-gradation data into the 4-gradation code data, but may be the encoding of the 2-gradation or 8-gradation code data. As described in order, in the image processing apparatus of the present invention, for each block, the image attribute determination is performed using the average value information LA and the gradation width index LD obtained from the parameters P1 and P2 determined from the data in the block. Also, it is characterized by executing various image processing based on the determination result.

【0015】図2の(a)〜(b)は、GBTC方式の
符号化処理及び復号化処理を示す図である。図2の
(a)は、最大値Lmax,最小値Lminと、パラメ
ータP1及びP2と、階調幅指数LDとの関係を示す。
4×4画素ブロック単位で抽出した画像データから、符
号化に必要な所定の特徴量を求める。特徴量は、以下の
演算により求められる。先ず、4×4画素ブロック内の
各8ビットの画像データの最大値Lmaxと、最小値L
minを検出する。次に、最小値Lminの値に最大値
Lmax及び最小値Lminの差の1/4を加算したパ
ラメータP1と、最小値Lminの値に上記差の3/4
を加算したパラメータP2とを求める。なお、パラメー
タP1及びP2は、次の「数1」及び「数2」の演算に
より求められる。
FIGS. 2A and 2B are diagrams showing an encoding process and a decoding process of the GBTC system. FIG. 2A shows the relationship among the maximum value Lmax, the minimum value Lmin, the parameters P1 and P2, and the gradation width index LD.
From image data extracted in units of 4 × 4 pixel blocks, a predetermined feature amount required for encoding is obtained. The feature amount is obtained by the following calculation. First, a maximum value Lmax and a minimum value L of 8-bit image data in a 4 × 4 pixel block are set.
min is detected. Next, a parameter P1 obtained by adding 1/4 of the difference between the maximum value Lmax and the minimum value Lmin to the value of the minimum value Lmin, and 3/4 of the difference to the value of the minimum value Lmin.
And a parameter P2 to which is added. Note that the parameters P1 and P2 are obtained by the following calculations of "Equation 1" and "Equation 2".

【数1】P1=(Lmax+3Lmin)/4P1 = (Lmax + 3Lmin) / 4

【数2】P2=(3Lmax+Lmin)/4 次に、各画素の画像データの内、パラメータP1以下の
画素の画像データの平均値Q1を求める。また、各画素
の画像データの内、パラメータP2以上の画素の画像デ
ータの平均値Q4を求める。求めた平均値Q1及びQ4
に基づいて、平均値情報LA=(Q1+Q4)/2と、
階調幅指数LD=Q4−Q1を求める。次に、「数3」
及び「数4」の演算を行い、基準値L1,L2を定め
る。
P2 = (3Lmax + Lmin) / 4 Next, of the image data of each pixel, the average value Q1 of the image data of the pixels equal to or less than the parameter P1 is obtained. Further, of the image data of each pixel, an average value Q4 of the image data of the pixels having the parameter P2 or more is obtained. Average values Q1 and Q4 obtained
Based on the average value information LA = (Q1 + Q4) / 2,
A gradation width index LD = Q4-Q1 is obtained. Next, "Equation 3"
And the calculation of "Equation 4" is performed to determine the reference values L1 and L2.

【数3】L1=LA−LD/4L3 = LA-LD / 4

【数4】L2=LA+LD/4 上記基準値L1,L2は、上記平均値情報LAと共に、
各画素の1バイト(8ビット)、即ち256階調の画像
データを2ビット、即ち4階調の符号データに符号化す
る際に用いる。次に符号割り当てを行う。図2において
(b)は、4×4画素ブロック内において、第i列目
(但し、i=1,2,3,4である。以下同じ)、及び
第j行目(但し、j=1,2,3,4である。以下同
じ)にある画素Xijのデータ値に応じて割り当てる符
号データφijの値を示す。より詳細には、画素Xij
の値に応じて、次の「表1」に示す値の2ビットの符号
データφijを割り当てる。
L2 = LA + LD / 4 The above-mentioned reference values L1 and L2 are obtained together with the above-mentioned average value information LA.
It is used when encoding 1 byte (8 bits) of each pixel, that is, image data of 256 gradations, to 2 bits, that is, code data of 4 gradations. Next, code assignment is performed. In FIG. 2, (b) shows the i-th column (where i = 1, 2, 3, 4; the same applies hereinafter) and the j-th row (where j = 1) in a 4 × 4 pixel block. , 2, 3, and 4; the same applies hereinafter) indicating the value of the code data φij assigned according to the data value of the pixel Xij in the pixel Xij. More specifically, the pixel Xij
Are assigned 2-bit code data φij having the values shown in the following “Table 1”.

【表1】 GBTC方式で符号化されたデータは、16画素分の符
号データ(16×2ビット)と、各1バイト(8ビッ
ト)の階調幅指数LD及び平均値情報LAから構成され
る。
[Table 1] The data encoded by the GBTC method includes code data (16 × 2 bits) for 16 pixels, a gradation width index LD of one byte (8 bits), and average value information LA.

【0016】図2において(c)に示すように、符号化
されたデータを復号化する際には、上記階調幅指数LD
と平均値情報LAを用いる。即ち、第i列の第j行目に
ある画素Xijに割り当てられた符号データφijの値
に応じて、Xijのデータを次の「表2」に示す値の2
56階調データに置き換える。
As shown in FIG. 2C, when decoding the encoded data, the gradation width index LD
And the average value information LA. That is, according to the value of the code data φij assigned to the pixel Xij on the j-th row of the i-th column, the data of Xij is changed to the value 2 shown in the following “Table 2”.
Replace with 56 gradation data.

【表2】 [Table 2]

【0017】即ち、GBTC方式では、復号化された4
×4画素ブロック内にある画素Xij(但し、i及びj
は、それぞれ1、2、3、4の何れかの値である。)の
画像データは4種類の値の256階調データに置き換え
られる。このため、復号化されたデータは、原画像のデ
ータと比較すると明らかに誤差を含む。しかし、当該誤
差は、人間の視覚特性上、目立ちにくいレベルであり、
自然画像では、画質劣化は殆ど認められない。GBTC
方式では、パラメータQ1及びQ4が符号化されたデー
タに含まれる階調幅指数LD及び平均値LAとから完全
に復元される。このため、文字画像では、黒色部分がパ
ラメータP1以下であり、白色部分がパラメータP2以
上であれば、当該文字画像を完全に復元することができ
る。DCT変換を用いて符号化を行うJPEG方式で
は、原稿の種類によってデータの圧縮率が変化する。即
ち、自然画像に対しては、劣化の少ないGBTC方式よ
りも高いデータ圧縮を実現するが、2値画像、CG画像
及び文字画像では、殆ど圧縮することができない場合が
ある。このため、画像処理装置に備えるメモリの容量の
設定が難しい。GBTC方式では、一定の圧縮率でデー
タの圧縮を行うことができる。このため、画像処理装置
に備えるメモリの容量の設定が容易であるといった利点
を備える。
That is, in the GBTC system, the decoded 4
A pixel Xij in the × 4 pixel block (however, i and j
Is one of the values 1, 2, 3, and 4, respectively. ) Is replaced with 256 gradation data of four values. Therefore, the decoded data clearly includes an error when compared with the data of the original image. However, the error is a level that is inconspicuous in human visual characteristics,
In a natural image, image quality deterioration is hardly recognized. GBTC
In the method, the parameters Q1 and Q4 are completely restored from the gradation width index LD and the average value LA included in the encoded data. Therefore, in the character image, if the black portion is equal to or less than the parameter P1 and the white portion is equal to or more than the parameter P2, the character image can be completely restored. In the JPEG system in which encoding is performed using DCT transform, the data compression ratio changes depending on the type of document. That is, for a natural image, higher data compression is realized than in the GBTC system with less deterioration, but it may be hardly possible to compress a binary image, a CG image, and a character image. For this reason, it is difficult to set the capacity of the memory provided in the image processing apparatus. In the GBTC method, data can be compressed at a fixed compression ratio. Therefore, there is an advantage that the capacity of the memory provided in the image processing apparatus can be easily set.

【0018】(2)デジタルカラー複写機の構成 (2−1)デジタルカラー複写機の構成 図3は、本実施例のデジタルカラー複写機の断面図であ
る。デジタルフルカラー複写機は、原稿のRGB画像デ
ータを読み取る画像読取部100と、複写部200とに
大きく分けられる。画像読取部100において、原稿台
ガラス107上に載置された原稿は、露光ランプ101
により照射される。原稿の反射光は、3枚のミラー10
3a,103b,103cによりレンズ104に導か
れ、CCDセンサ105で結像する。露光ランプ101
及びミラー103aは、スキャナモータ102により矢
印方向(副走査方向)に設定倍率に応じた速度Vで移動
する。これにより、原稿台ガラス上に載置された原稿が
全面にわたって走査される。また、ミラー103b,1
03cは、露光ランプ101とミラー103aの矢印方
向への移動に伴い、V/2の速度で、同じく矢印方向
(副走査方向)に移動する。CCDセンサ105により
得られるR,G,Bの3色の多値電気信号は、読取信号処
理部106により、イエロー(Y)、マゼンダ(M)、
シアン(C)、ブラック(BK)の何れかの8ビットの
階調データに変換された後に、外部出力ポート108及
び複写部200に出力される。複写部200において、
画像データ補正部201は、入力される階調データに対
して感光体の階調特性に応じた階調補正(γ補正)を行
う。プリンタ露光部202は、補正後の画像データをD
/A変換してレーザダイオード駆動信号を生成し、この
駆動信号により半導体レーザを発光させる。階調データ
に対応してプリンタ露光部202から発生されるレーザ
ビームは、反射鏡203a,203bを介して回転駆動
される感光体ドラム204を露光する。感光体ドラム2
04は、1複写毎に露光を受ける前にイレーサランプ2
11で照射され、帯電チャージャ205により一様に帯
電されている。この状態で露光を受けると、感光体ドラ
ム204上に原稿の静電潜像が形成される。シアン
(C)、マゼンタ(M)、イエロー(Y)、ブラック
(BK)のトナー現像器206a〜206dのうちの何
れか1つだけが選択され、感光体ドラム204上の静電
潜像を現像する。現像されたトナー像は、転写前イレー
サ208により余分な電荷が除去された後、転写チャー
ジャ209により転写ドラム218上に巻き付けられた
複写紙に転写される。転写ドラム218は、表面に転写
フィルムが張り付けられており、感光体の回転速度と同
じ速度で反時計回りに回転する。また、複写紙の保持位
置と画像転写位置の同期をとるために基準板220aが
転写ドラム218の内側に設けられている。基準位置セ
ンサ220bは、転写ドラム218の回転に伴い、基準
板220aが当該センサを横切る毎に所定の基準信号を
発生する。複写紙は、給紙カセット群212から給紙ロ
ーラ213により搬送路へ搬送され、搬送ローラ214
によりタイミングローラ217に搬送される。複写紙が
手差しトレイ216より挿入される場合は、搬送ローラ
215によりタイミングローラ217に搬送される。タ
イミングローラ217は、上記基準信号に同期して複写
紙を転写ドラム218に供給し、複写紙を転写ドラム2
18上の所定の位置に保持する。タイミングローラ21
7から転写ドラム218に供給された複写紙は、吸着チ
ャージャ219により転写ドラム218に静電吸着され
る。上記印字過程は、イエロー(Y)、マゼンダ
(M)、シアン(C)及びブラック(BK)の4色につ
いて繰り返し行われている。このとき、感光体ドラム2
04と、転写ドラム218の動作に同期して露光ランプ
101とミラー103a,103b,103cは、所定
の動作を繰り返す。その後、複写紙は、除電分離チャー
ジャ対221により静電吸着していた用紙の電荷が除去
されることで、転写ドラム218から分離される。転写
ドラム218から分離した複写紙は、定着ローラ対22
3により定着処理の施された後、排紙トレイ224に排
紙される。
(2) Configuration of Digital Color Copier (2-1) Configuration of Digital Color Copier FIG. 3 is a sectional view of the digital color copier of the present embodiment. The digital full-color copying machine is roughly divided into an image reading unit 100 for reading RGB image data of a document and a copying unit 200. In the image reading unit 100, a document placed on a platen glass 107 is exposed to an exposure lamp 101.
Irradiated by The reflected light of the original is reflected on three mirrors 10
The light is guided to the lens 104 by 3a, 103b, and 103c, and is imaged by the CCD sensor 105. Exposure lamp 101
The mirror 103a is moved by the scanner motor 102 in the direction of the arrow (sub-scanning direction) at a speed V according to the set magnification. Thus, the document placed on the platen glass is scanned over the entire surface. In addition, the mirror 103b, 1
Reference numeral 03c moves in the arrow direction (sub-scanning direction) at the speed of V / 2 with the movement of the exposure lamp 101 and the mirror 103a in the arrow direction. The multi-valued electrical signals of the three colors R, G, and B obtained by the CCD sensor 105 are read by a read signal processing unit 106 into yellow (Y), magenta (M),
After being converted into either 8-bit grayscale data of cyan (C) or black (BK), it is output to the external output port 108 and the copying unit 200. In the copying unit 200,
The image data correction unit 201 performs gradation correction (γ correction) on the inputted gradation data according to the gradation characteristics of the photoconductor. The printer exposure unit 202 converts the corrected image data into D
A / A conversion is performed to generate a laser diode drive signal, and the semiconductor laser is caused to emit light by this drive signal. The laser beam generated from the printer exposure unit 202 corresponding to the gradation data exposes the photosensitive drum 204 which is driven to rotate via the reflecting mirrors 203a and 203b. Photoconductor drum 2
04 is an eraser lamp 2 before receiving exposure for each copy.
Irradiated at 11 and charged uniformly by the charger 205. When exposure is performed in this state, an electrostatic latent image of the document is formed on the photosensitive drum 204. Only one of the cyan (C), magenta (M), yellow (Y), and black (BK) toner developing units 206a to 206d is selected to develop the electrostatic latent image on the photosensitive drum 204. I do. The developed toner image is transferred to a copy paper wound around a transfer drum 218 by a transfer charger 209 after an extra charge is removed by a pre-transfer eraser 208. The transfer drum 218 has a transfer film adhered to its surface, and rotates counterclockwise at the same speed as the rotation speed of the photoconductor. A reference plate 220a is provided inside the transfer drum 218 to synchronize the copy sheet holding position and the image transfer position. The reference position sensor 220b generates a predetermined reference signal every time the reference plate 220a crosses the sensor with the rotation of the transfer drum 218. The copy paper is transported from a paper cassette group 212 to a transport path by a paper feed roller 213, and is transported by a transport roller 214.
To the timing roller 217. When a copy sheet is inserted from the manual feed tray 216, the copy sheet is transported to the timing roller 217 by the transport roller 215. The timing roller 217 supplies the copy paper to the transfer drum 218 in synchronization with the reference signal, and
18 is held at a predetermined position. Timing roller 21
The copy paper supplied from 7 to the transfer drum 218 is electrostatically attracted to the transfer drum 218 by the attraction charger 219. The above printing process is repeatedly performed for four colors of yellow (Y), magenta (M), cyan (C), and black (BK). At this time, the photosensitive drum 2
The exposure lamp 101 and the mirrors 103a, 103b, and 103c repeat predetermined operations in synchronization with the operation of the transfer drum 218 and the transfer drum 218. Thereafter, the copy sheet is separated from the transfer drum 218 by removing the charge of the sheet that has been electrostatically attracted by the charge removing / separating charger pair 221. The copy paper separated from the transfer drum 218 is
After the fixing process is performed by No. 3, the sheet is discharged to a sheet discharge tray 224.

【0019】図4は、上記読取信号処理部106の実行
する各信号処理を示すブロック図である。CCDセンサ
105により読み取られた原稿のR,G,Bの各画像デ
ータは、各複写機の備えるCCDセンサ105の個体差
によるばらつきを有する。このため、同じ色表の基準パ
ッチを読み取った場合でも、複写機毎に読み取りデータ
の値が異なる。読み取り装置色補正処理部601では、
読み取ったRGB画像データを、NTSC規格やハイビ
ジョン規格などで規格化されている標準RGB画像デー
タに補正する。読み取り装置色補正処理部601におい
て補正の施されたOR,OG,OBの各画像データは、
次の色空間変換処理部602に出力されると共に、外部
入出力ポート108に出力される。当該複写機に接続さ
れる周辺装置は、外部入出力ポート108を介して原稿
のOR,OG,OBの画像データを受け取る。また、本
実施例の複写機では、周辺装置から外部入出力ポート1
08を介して入力されるOR,OG,OBの画像データ
を用いて画像を形成することも可能であり、この場合、
複写機はプリンタとして機能することとなる。これは、
読み取り装置色補正処理部601以降の各処理部が標準
化されたRGB画像データを用いるように設定されてい
るためである。色空間変換処理部602は、標準化され
たRGB画像データ(OR,OG,OB)を、XYZ表
色系に変換した後、L*a*b*表色系の各データに変
換する。図5は、L*a*b*表色系立体を示す図であ
る。明度0(黒色)〜255(白色)はL*、色相及び
彩度は、a*,b*という単位で表される。色度成分a
*及びb*は、それぞれ色の方向を表し、色度成分a*
は、赤〜緑方向、色度成分b*は、黄〜青方向を表す。
ここで、RGB画像データをL*a*b*表色系に変換
するのは、以下の理由による。前述したように、GBT
C方式では、4×4画素ブロック内の各8ビットの画像
データXijを2ビットの符号データφijに変換す
る。復号化の際には、階調幅指数LDと平均値情報LA
とに基づいて特定される4種類の値の256階調データ
を、各画素に割り当てられた符号データφijに対応さ
せて置き換える。このように、復号化により得られる画
像データは、符号化する前の画像データとに対してある
程度の誤差を有する。これら誤差を有するR,G,Bの
各画像データを用いて各画素の色を再現すると、原稿の
エッジ部分の色にずれが生じる。しかしながら、L*a
*b*表色系の各データを用いれば、復号化されるデー
タの値に誤差が生じても、明度や色度が多少変化するだ
けで、原稿のエッジ部分に色のずれが生じることはな
い。このため、本実施例の複写機では、原稿の画像デー
タを符号化及び復号化する際に、一旦、RGB画像デー
タをL*a*b*表色系のデータに変換する。本実施例
の複写機でL*a*b*表色系のデータを用いるのは、
上記理由によるもので、RGB画像データを色相、明
度、彩度のデータに変換するものであれば、L*u*v
*表色系や、YCrCb、HVC等の他の表色系のデー
タに変換するものであっても良い。色空間最適化処理部
603は、L*a*b*表色系で表される原稿の画像情
報L*,a*,b*のそれぞれのデータを符号化する前
に、復号時における画像データの劣化を低減するため、
各データに対して図6に示す(a)〜(c)のグラフに
基づく演算処理を実行して、明度成分L*の分布を各原
稿毎に0〜255の範囲に分布するように変更し、色度
a*及びb*の各成分の分布を各原稿毎に−127〜1
28の範囲に分布するように変更する。まず、原稿の画
像情報L*,a*,b*のそれぞれのデータについて、
最大値L*max,a*max,b*max、及び最小
値L*min,a*min,b*minを求める。色空
間最適化処理部603では、明度成分L*について、次
の「数5」に示す演算を実行し、明度成分L1*を求め
る。
FIG. 4 is a block diagram showing each signal processing executed by the read signal processing section 106. The R, G, and B image data of the original read by the CCD sensor 105 have variations due to individual differences of the CCD sensor 105 included in each copying machine. For this reason, even when the reference patches of the same color table are read, the value of the read data differs for each copying machine. In the reading device color correction processing unit 601,
The read RGB image data is corrected to standard RGB image data standardized by the NTSC standard, the Hi-Vision standard, and the like. The OR, OG, and OB image data corrected by the reading device color correction processing unit 601 are:
It is output to the next color space conversion processing unit 602 and also to the external input / output port 108. A peripheral device connected to the copier receives OR, OG, and OB image data of the original via the external input / output port 108. Further, in the copying machine of the present embodiment, the external input / output port 1
08, it is also possible to form an image using image data of OR, OG, and OB inputted.
The copier will function as a printer. this is,
This is because each processing unit after the reading device color correction processing unit 601 is set to use the standardized RGB image data. The color space conversion processing unit 602 converts the standardized RGB image data (OR, OG, OB) into the XYZ color system, and then converts the data into the L * a * b * color system data. FIG. 5 is a diagram illustrating an L * a * b * color system solid. Lightness 0 (black) to 255 (white) are expressed in units of L *, and hue and saturation are expressed in units of a * and b *. Chromaticity component a
* And b * represent the color direction, respectively, and the chromaticity component a *
Represents the direction from red to green, and the chromaticity component b * represents the direction from yellow to blue.
Here, the reason why the RGB image data is converted to the L * a * b * color system is as follows. As mentioned above, GBT
In the C system, each 8-bit image data Xij in a 4 × 4 pixel block is converted into 2-bit code data φij. At the time of decoding, the gradation width index LD and the average value information LA
Are replaced in accordance with the code data φij assigned to each pixel. As described above, image data obtained by decoding has a certain degree of error with respect to image data before encoding. When the color of each pixel is reproduced using the R, G, and B image data having these errors, a color shift occurs at the edge portion of the document. However, L * a
If each data of the * b * color system is used, even if an error occurs in the value of the data to be decoded, only a slight change in brightness or chromaticity will cause a color shift at the edge of the document. Absent. For this reason, in the copying machine of the present embodiment, when encoding and decoding the image data of the original, the RGB image data is temporarily converted into L * a * b * color system data. The data of the L * a * b * color system is used in the copying machine of this embodiment.
For the above reason, if the RGB image data is converted into hue, lightness, and saturation data, L * u * v
* The data may be converted into data of a color system or other color systems such as YCrCb and HVC. The color space optimization processing unit 603 converts the image data at the time of decoding before encoding each data of the image information L *, a *, and b * of the document represented by the L * a * b * color system. To reduce the deterioration of
The arithmetic processing based on the graphs (a) to (c) shown in FIG. 6 is performed on each data to change the distribution of the lightness component L * so as to be distributed in the range of 0 to 255 for each document. , The distribution of each component of chromaticity a * and b * is -127 to 1 for each document.
It is changed so as to be distributed in the range of 28. First, for each data of the image information L *, a *, b * of the original,
The maximum values L * max, a * max, b * max and the minimum values L * min, a * min, b * min are obtained. The color space optimization processing unit 603 executes the operation shown in the following “Equation 5” for the lightness component L * to obtain a lightness component L1 *.

【数5】L1*=255/(L*max−L*min)
×(L*−L*min) 当該演算処理は、図6の(a)に示すグラフに基づくも
のである。即ち、上記「数5」の演算では、L*max
〜L*minの範囲で分布する明度成分L*の値を0〜
255の範囲に分布する値に変更する。また、色度成分
a*について、次の「数6」に示す演算を実行し、色度
成分a1*を求める。なお、「数6」では、a*の値が
0の場合、最適化処理後のa1*の値も0となるように
処理する。これは、画素の色が色度成分a*及びb*の
値が共に0である無彩色である場合に、これを維持する
ためである。
L1 * = 255 / (L * max-L * min)
× (L * −L * min) The arithmetic processing is based on the graph shown in FIG. That is, in the calculation of Equation 5, L * max
The value of the lightness component L * distributed in the range of
Change to a value distributed in the range of 255. The chromaticity component a * is subjected to the calculation shown in the following “Equation 6” to obtain the chromaticity component a1 *. In Equation 6, when the value of a * is 0, processing is performed so that the value of a1 * after the optimization processing also becomes 0. This is because if the color of the pixel is an achromatic color in which the values of the chromaticity components a * and b * are both 0, this is maintained.

【数6】a1*=128/a*max×a* 但し、0
≦a*≦a*max a1*=127/|a*min|×(a*−a*mi
n)−127 但し,a*min≦a*≦0 当該演算処理は、図6の(b)に示すグラフに基づくも
のである。即ち、上記「数6」の演算では、0〜a*m
axの範囲に分布するa*の各値を0〜128の範囲に
分布する値に変更し、a*min〜0の範囲で分布する
色度成分a*の各値を−127〜0の範囲に分布するよ
うに変更する。更に、色度成分b*について、次の「数
7」に示す演算を実行し、色度成分b1*を求める。
「数7」では、上記「数6」と同様に、b*の値が0の
場合、最適化処理後のb1*の値も0となるように処理
する。これは、画素の色が色度成分a*及びb*の値が
共に0である無彩色である場合に、これを維持するため
である。
A1 * = 128 / a * max × a * where 0
≦ a * ≦ a * max a1 * = 127 / | a * min | × (a * −a * mi
n) -127 where a * min ≦ a * ≦ 0 The arithmetic processing is based on the graph shown in FIG. That is, in the calculation of the above “Equation 6,” 0 to a * m
Each value of a * distributed in the range of ax is changed to a value distributed in the range of 0 to 128, and each value of the chromaticity component a * distributed in the range of a * min to 0 is changed in the range of -127 to 0. To be distributed to Further, the following equation (7) is executed for the chromaticity component b * to obtain the chromaticity component b1 *.
In Equation 7, similarly to Equation 6, when the value of b * is 0, processing is performed so that the value of b1 * after the optimization processing is also 0. This is because if the color of the pixel is an achromatic color in which the values of the chromaticity components a * and b * are both 0, this is maintained.

【数7】b1*=128/b*max×b* 但し、0
≦b*≦b*max b1*=127/|b*min|×(b*−b*mi
n)−127 但し,b*min≦b*≦0 当該演算処理は、図6の(c)に示すグラフに基づくも
のである。即ち、上記「数7」の演算では、0〜b*m
axの範囲に分布するb*の各値を0〜128の全範囲
に分布する値に変更し、b*min〜0の範囲で分布す
る色度成分b*の各値を−127〜0の範囲に分布する
ように変更する。なお、上記「数5」〜「数7」に示す
演算で用いた原稿の画像情報L*,a*,b*のそれぞ
れのデータについて、最大値L*max,a*max,
b*max、及び最小値L*min,a*min,b*
minは、それぞれ、ハードディスク614に記憶して
おき、色空間逆変換処理を行う際に使用する。以上の演
算処理を行うのは、以下の理由による。即ち、GBTC
方式による符号化処理及び復号化処理においては、先の
「数1」〜「数4」、及び「表2」に示すように、割り
算を多用する。このため、各画素の成分データの差が小
さい場合には演算の途中でその差が無くなってしまい復
号化処理により得られる画像データの再現性が低下す
る。色空間最適化処理部603では、上記演算により、
明度成分L*の分布を各原稿毎に0〜255の範囲に分
布する値に変更し、色度a*及びb*の各成分の分布を
各原稿毎に−127〜128の範囲に分布する値に変更
する。これにより上記不都合を軽減する。符号化/復号
化処理部604では、GBTC方式の符号化処理を実行
した後、後に詳しく説明するように、各ブロック単位で
画像の属性を判別し、判別した結果に基づいて、符号化
されたデータ(階調幅指数LD,平均値情報LA,符号
データφij)を再び圧縮する。ここで、画像の属性と
は、白黒べた画像、カラーべた画像、白黒2値画像、白
黒多値画像、フルカラー画像の5つをいう。再度の圧縮
により得られる圧縮データは、圧縮画像メモリ610に
格納され、その画像の属性を示すフラグf1,f2及び
f3は、ハードディスク614に格納される。復号化処
理を行う場合、CPU611は、圧縮画像メモリ610
から各アドレスに対応する圧縮データを符号化/復号化
処理部604に読み出すと共に、ハードディスク614
から画像の属性を示すフラグf1,f2及びf3を読み
出す。符号化/復号化処理部604では、画像の属性を
示すフラグf1,f2及びf3の値に基づいて、再圧縮
されたデータを符号化されたデータ(階調幅指数LD,
平均値情報LA,符号データφij)に伸張する。続い
て、GBTC方式に従って符号化されたデータを復号化
し、画像データの明度成分L2*,色度成分a2*及び
b2*を出力する。色空間逆最適化処理部605では、
最大値L*max,a*max,b*max、及び最小
値L*min,a*min,b*minをハードディス
ク614より読み出し、読み出した値を用いて、復号化
されたL2*,a2*,b2*の各データの分布を元の
L*max〜L*min,a*max〜a*min,b
*max〜b*minに戻す。これらの処理は、図7の
(a)〜(c)に示すグラフに基づいて実行される。即
ち、明度成分L2*については、次の「数8」の演算処
理を施して、L*max〜L*minに分布する明度成
分L3*に戻す。
B1 * = 128 / b * max × b * where 0
≦ b * ≦ b * max b1 * = 127 / | b * min | × (b * −b * mi
n) -127 where b * min ≦ b * ≦ 0 The arithmetic processing is based on the graph shown in FIG. That is, in the calculation of the above “Equation 7”, 0 to b * m
Each value of b * distributed in the range of ax is changed to a value distributed in the entire range of 0 to 128, and each value of the chromaticity component b * distributed in the range of b * min to 0 is changed to -127 to 0. Change to be distributed in the range. Note that the maximum values L * max, a * max,
b * max and minimum values L * min, a * min, b *
The min is stored in the hard disk 614 and used when performing the color space inverse conversion process. The above arithmetic processing is performed for the following reason. That is, GBTC
In the encoding process and the decoding process according to the method, as shown in the above “Equation 1” to “Equation 4” and “Table 2,” division is frequently used. For this reason, when the difference between the component data of each pixel is small, the difference is lost during the calculation, and the reproducibility of the image data obtained by the decoding process is reduced. In the color space optimization processing unit 603,
The distribution of the lightness component L * is changed to a value distributed in the range of 0 to 255 for each document, and the distribution of each component of the chromaticity a * and b * is distributed in the range of -127 to 128 for each document. Change to a value. This alleviates the above disadvantages. The encoding / decoding processing unit 604, after executing the encoding process of the GBTC method, determines the attribute of the image in units of each block, as described later in detail, and encodes the image based on the determined result. The data (gradation width index LD, average value information LA, code data φij) is compressed again. Here, the image attributes refer to five black and white solid images, color solid images, black and white binary images, black and white multivalued images, and full color images. The compressed data obtained by the recompression is stored in the compressed image memory 610, and the flags f1, f2, and f3 indicating the attributes of the image are stored in the hard disk 614. When performing the decoding process, the CPU 611 controls the compression image memory 610
The compressed data corresponding to each address is read out to the encoding / decoding processing unit 604 from the
, The flags f1, f2 and f3 indicating the attributes of the image are read. The encoding / decoding processing unit 604 encodes the recompressed data based on the values of the flags f1, f2, and f3 indicating the attributes of the image (the gradation width index LD,
It is expanded to the average value information LA and the code data φij). Then, the data encoded according to the GBTC method is decoded, and the brightness component L2 * and the chromaticity components a2 * and b2 * of the image data are output. In the color space inverse optimization processing unit 605,
The maximum values L * max, a * max, b * max and the minimum values L * min, a * min, b * min are read from the hard disk 614, and the read values are used to decode the decoded L2 *, a2 *. , B2 * to the original L * max to L * min, a * max to a * min, b
Return to * max to b * min. These processes are executed based on the graphs shown in FIGS. That is, with respect to the brightness component L2 *, the following calculation operation of Expression 8 is performed to return to the brightness component L3 * distributed in L * max to L * min.

【数8】L3*=(L*max−L*min)/255
×L2*+L*min 色度成分a*については、次の「数9」の演算処理を実
行し、a*max〜a*minに分布する色度成分a3
*に戻す。
L3 * = (L * max-L * min) / 255
× L2 * + L * min For the chromaticity component a *, the following arithmetic expression 9 is executed, and the chromaticity component a3 distributed from a * max to a * min
Return to *.

【数9】a3*=a*max/128×a2* 但
し、0≦a*≦128 a3*=127/|a*min|×(a*+127)+
a*min 但し、−127≦a*≦0 色度成分b*については、次の「数10」の演算処理を
実行し、b*max〜b*minに分布する色度成分b
3*に戻す。
A3 * = a * max / 128 × a2 * where 0 ≦ a * ≦ 128 a3 * = 127 / | a * min | × (a * + 127) +
a * min However, for the chromaticity component b * of -127 ≦ a * ≦ 0, the arithmetic processing of the following “Equation 10” is executed, and the chromaticity component b distributed in b * max to b * min
Return to 3 *.

【数10】b3*=b*max/128×b2* 但
し、0≦b*≦128 b3*=127/|b*min|×(b*+127)+
b*min 但し、−127≦b*≦0 色空間逆変換処理部606では、上記色空間逆最適化処
理部605において、復元されたL3*,a3*,b3
*の各データをOR1,OG1,OB1のRGB画像デ
ータに逆変換する。反射/濃度変換処理部607は、O
R1,OG1,OB1のRGB画像データに所定の反射
/濃度変換処理を施した後、DR,DG,DBの濃度デ
ータを出力する。濃度データに変換されたRGB画像デ
ータは、マスキング処理部608において、シアン
(C)、マゼンタ(M)、イエロー(Y)、ブラック
(BK)の何れか1色の画像データに変換された後、画
像データ補正部201に出力される。画像データ補正部
201では、マスキング処理部608より出力された階
調データに対して、所定の階調補正(γ補正)処理を施
した後、プリンタ露光部202に、当該階調データを出
力する。
B3 * = b * max / 128 × b2 * where 0 ≦ b * ≦ 128 b3 * = 127 / | b * min | × (b * + 127) +
b * min However, -127 ≦ b * ≦ 0 In the color space inverse conversion processing unit 606, the L3 *, a3 *, b3 restored in the color space inverse optimization processing unit 605 are used.
Each data of * is inversely converted into RGB image data of OR1, OG1, and OB1. The reflection / density conversion processing unit 607
After subjecting the RGB image data of R1, OG1, and OB1 to a predetermined reflection / density conversion process, it outputs density data of DR, DG, and DB. The RGB image data converted into the density data is converted into image data of any one of cyan (C), magenta (M), yellow (Y), and black (BK) by the masking processing unit 608. Output to the image data correction unit 201. The image data correction unit 201 performs predetermined gradation correction (γ correction) processing on the gradation data output from the masking processing unit 608, and outputs the gradation data to the printer exposure unit 202. .

【0020】(2−2)操作パネル 図8は、本実施例のデジタルフルカラー複写機の備える
操作パネル300の正面図である。操作パネル300
は、複写枚数を入力するテンキー301と、複写動作を
開始するスタートキー302と、モードの設定、及び複
写状況を表示する表示部303と、表示部303に表示
されているモードの選択を行う選択キー304と、表示
部303に表示されているモードを設定するエンターキ
ー305と、画像編集モードを選択設定する画像編集キ
ー306と、複写倍率を設定する倍率設定キー307
と、複写紙のサイズを選択する用紙選択キー308と、
自動用紙選択機能を設定するオート設定キー309とを
備える。本実施例の複写機では、4×4画素ブロック単
位で判別される画像の属性に応じて、実行する編集/加
工処理を設定することができる。編集/加工処理の内容
は、画像編集キー306の押下に対応して表示部303
に表示される項目の設定により定まる。表示部303に
表示される項目の選択及び設定は、以下のようにして行
われる。まず、表示部303に表示される各項目を選択
キー304により選択して反転させる。次に、エンター
キー305を押下することで選択した項目の設定が完了
する。編集/加工処理の項目の設定に伴い、次の「表
3」に示すように、設定された項目のモードフラグMF
が”1”にセットされる。
(2-2) Operation Panel FIG. 8 is a front view of an operation panel 300 provided in the digital full-color copying machine of the present embodiment. Operation panel 300
Is a numeric keypad 301 for inputting the number of copies, a start key 302 for starting a copying operation, a display unit 303 for displaying mode settings and copying status, and a selection for selecting a mode displayed on the display unit 303. Key 304, an enter key 305 for setting a mode displayed on the display unit 303, an image editing key 306 for selecting and setting an image editing mode, and a magnification setting key 307 for setting a copy magnification.
And a paper selection key 308 for selecting a copy paper size;
An automatic setting key 309 for setting an automatic paper selection function. In the copying machine according to the present embodiment, the editing / processing to be executed can be set according to the attribute of the image determined in units of 4 × 4 pixel blocks. The contents of the editing / processing processing are displayed in the display unit 303 in response to the pressing of the image editing key 306.
It is determined by the setting of the item displayed in. Selection and setting of items displayed on the display unit 303 are performed as follows. First, each item displayed on the display unit 303 is selected with the selection key 304 and inverted. Next, pressing the enter key 305 completes the setting of the selected item. With the setting of the editing / processing items, the mode flag MF of the set item is set as shown in Table 3 below.
Is set to "1".

【表3】 例えば、「モノカラー」の項目を選択キー304により
反転させ、エンターキー305を押下することで、モノ
カラー変換処理が設定され、全体フラグMF1及びフルカ
ラー画像についてのモードフラグMF51が”1”にセット
される。この場合、後に説明する編集/加工処理におい
て、フルカラー画像についての色度成分a*及びb*の
各階調幅指数LD、平均値情報LA、符号データの値を
全て0に置き換える。モノカラー変換処理、色変換処
理、イレース処理、ネガポジ反転処理、下地カット処
理、dpi変換処理については、GBTC方式により符
号化されたデータ(階調幅指数LD,平均値情報LA,
符号データφij)を用いて行われる。このため、従来
よりも編集加工処理に要するメモリを少なくすることが
できる。なお、シャープネス処理、階調カーブ補正処理
及び縁取り中抜き処理については、従来通りRGB画像
データを復号化した後に行う。
[Table 3] For example, by inverting the item of “mono color” with the selection key 304 and pressing the enter key 305, the mono color conversion processing is set, and the entire flag MF1 and the mode flag MF51 for the full color image are set to “1”. Is done. In this case, in the editing / processing described later, the values of the gradation width indices LD, average value information LA, and code data of the chromaticity components a * and b * for the full-color image are all replaced with 0. For the mono-color conversion processing, the color conversion processing, the erasing processing, the negative / positive inversion processing, the background cutting processing, and the dpi conversion processing, data encoded by the GBTC method (gradation width index LD, average value information LA,
This is performed using the code data φij). For this reason, the memory required for the editing processing can be reduced as compared with the related art. Note that the sharpness processing, the gradation curve correction processing, and the outline trimming processing are performed after the RGB image data is decoded as in the related art.

【0021】(3)画像処理の説明 (3−1)メインルーチン 図9は、本実施例の複写機のCPU611の実行する複
写処理のメインルーチンである。まず、複写機本体の初
期化を行う(ステップS1000)。次に、操作パネル
300からのキー入力処理を行う(ステップS200
0)。次に、装置のウォーミングアップやシェーディン
グ、画像安定化処理等の前処理を実行する(ステップS
3000)。この後、CPU611は、スキャナモータ
102を駆動させて、原稿台107上に載置された原稿
の画像データを読み取り、読み取って得られるRGB画
像データを標準化した後、標準化されたRGB画像デー
タをL*a*b*表色系のデータに変換する(ステップ
S4000)。L*a*b*表色系で表される原稿の画
像データに対して、GBTC方式を用いた符号化処理を
施した後、圧縮画像メモリ610に格納する(ステップ
S5000)。本実施例の複写機では、圧縮画像メモリ
610に格納された符号化されたデータ(階調幅指数L
D,平均値情報LA,符号データφij)に基づいて、
当該符号化されたデータの属する4×4画素ブロックの
画像の属性を判別し、当該判別結果に基づいて、符号化
されたデータを更に圧縮する(ステップS6000)。
ここで、画像の属性とは、白黒べた画像、カラーべた画
像、白黒2値画像、白黒多値画像、フルカラー画像の5
つをいう。判別された各ブロックの属性を表すフラグf
1,f2及びf3は、ハードディスク614に格納され
る。再圧縮処理の施されたデータは、圧縮画像メモリ6
10に格納される。次のステップS7000では、圧縮
画像メモリ610に格納されているデータを読み出すと
共に、当該データの属性を示すフラグf1,f2及びf
3をハードディスク614から読み出し、各フラグの値
より判別される画像の属性に基づいて、再圧縮されたデ
ータを元の符号化されたデータ(平均値情報LA,階調
幅指数LD,符号データφij)に伸張する。伸張して
得られる符号化されたデータの階調幅指数LDと、平均
値情報LAとに基づいて、画像の濃度分布の適正化を行
うAE処理、色変換や枠編集といった編集/加工処理を
実行する。当該AE処理及び編集/加工処理を施した符
号化されたデータ(平均値情報LA,階調幅指数LD,
符号データφij)を圧縮画像メモリ610に格納す
る。次のステップS8000では、圧縮画像メモリ61
0より符号化されたデータを読み出し、これを明度成分
L*,色度成分a*及びb*についての256階調デー
タに復号化し、さらに色空間逆変換処理を実行すること
で、RGB画像データに戻す。ステップS9000で
は、復号化処理により得られるRGB画像データに基づ
いて用紙上に画像を形成する画像形成処理を実行する。
画像形成処理の後、作像後の感光体ドラム204の残留
トナーの除去など、直接作像動作とは関係しないが、装
置のコンディションを維持するために必要な処理を行う
(ステップS9800)。最後に本実施例の画像形成処
理には直接関係しないが定着器の温度制御や通信制御な
どを行う(ステップS9900)。
(3) Description of Image Processing (3-1) Main Routine FIG. 9 shows a main routine of a copying process executed by the CPU 611 of the copying machine according to the present embodiment. First, the copier body is initialized (step S1000). Next, a key input process from the operation panel 300 is performed (step S200).
0). Next, pre-processing such as warm-up, shading, and image stabilization of the apparatus is performed (step S).
3000). Thereafter, the CPU 611 drives the scanner motor 102 to read the image data of the document placed on the document table 107, standardizes the RGB image data obtained by reading, and converts the standardized RGB image data to L. The data is converted into * a * b * color system data (step S4000). The image data of the document represented by the L * a * b * color system is subjected to an encoding process using the GBTC method, and then stored in the compressed image memory 610 (step S5000). In the copying machine of this embodiment, the encoded data (gradation width index L) stored in the compressed image memory 610 is used.
D, average value information LA, and code data φij),
The attribute of the image of the 4 × 4 pixel block to which the encoded data belongs is determined, and the encoded data is further compressed based on the determination result (step S6000).
Here, the attributes of the image are five of a black and white solid image, a color solid image, a black and white binary image, a black and white multi-valued image, and a full color image.
One. Flag f indicating the attribute of each determined block
1, f2 and f3 are stored in the hard disk 614. The re-compressed data is stored in the compressed image memory 6
10 is stored. In the next step S7000, the data stored in the compressed image memory 610 is read, and the flags f1, f2, and f indicating the attribute of the data are read.
3 is read from the hard disk 614, and the recompressed data is converted into the original coded data (average value information LA, gradation width index LD, code data φij) based on the attribute of the image determined from the value of each flag. To stretch. Based on the gradation width index LD of the coded data obtained by decompression and the average value information LA, execute AE processing for optimizing the density distribution of the image and editing / processing processing such as color conversion and frame editing. I do. The coded data (average value information LA, gradation width index LD,
The code data φij) is stored in the compressed image memory 610. In the next step S8000, the compressed image memory 61
The RGB image data is read by reading out the encoded data from 0, decoding the data into 256 gradation data for the lightness component L * and the chromaticity components a * and b *, and performing the inverse color space conversion process. Return to In step S9000, an image forming process for forming an image on a sheet based on the RGB image data obtained by the decoding process is executed.
After the image forming process, a process necessary for maintaining the condition of the apparatus, such as removal of residual toner on the photosensitive drum 204 after the image formation, is performed (step S9800). Finally, although not directly related to the image forming processing of the present embodiment, temperature control and communication control of the fixing device are performed (step S9900).

【0022】(3−2)キー入力処理 図10は、キー入力処理(図9に示すステップS200
0)の処理フローチャートである。操作パネル300に
おいて、キー入力がなされた場合には(ステップS20
01でYES)、入力されたキーの種類に応じて以下の
処理を実行する。入力されたキーが画像編集キー306
の場合(ステップS2002でYES)、表示部303
に図8に示す画像編集メニュー画面を表示する(ステッ
プS2003)。表示される11の編集項目の選択は、
カーソルキー304を操作して行う。選択された項目
は、白黒反転表示される。図8に示す画面では、「モノ
カラー」の項目が選択されている。エンターキー305
を押下することで、選択された項目の設定が行われる。
設定された項目は、カーソルキー304の操作により他
の項目が選択された場合であっても、白黒反転した状態
を維持する。使用者によりモードの設定が行われた場合
(ステップS2004でYES)、フラグ設定処理を実
行する(ステップS2005)。フラグ設定処理では、
設定された項目のモードフラグMFを”1”にセットす
る。モードの設定が行われず(ステップS2004でN
O)、終了の項目が選択された場合(ステップS200
6でYES)、表示部303の画面を初期画面に戻した
後(ステップS2007)、再びキー入力を待機する
(ステップS2001)。また、入力されたキーがプリ
ントキー302である場合(ステップS2008でYE
S)、所定の作像開始処理を実行して(ステップS20
09)、リターンする。入力されたキーが画像編集キー
306及びプリントキー302の何れのキーでもない場
合(ステップS2008でNO)、その他の処理を実行
し(ステップS2010)、再びキー入力がなされるの
を待機する(ステップS2001)。
(3-2) Key Input Processing FIG. 10 shows key input processing (step S200 shown in FIG. 9).
It is a process flowchart of 0). If a key input is made on the operation panel 300 (step S20)
01 (YES), the following processing is executed according to the type of the input key. The entered key is an image editing key 306
(YES in step S2002), display unit 303
Then, an image editing menu screen shown in FIG. 8 is displayed (step S2003). The selection of 11 edit items displayed is
The operation is performed by operating the cursor key 304. The selected item is displayed in black and white reversed. On the screen shown in FIG. 8, the item of "mono color" is selected. Enter key 305
By pressing, the setting of the selected item is performed.
The set item remains black and white inverted even when another item is selected by operating the cursor key 304. If the mode has been set by the user (YES in step S2004), a flag setting process is executed (step S2005). In the flag setting process,
The mode flag MF of the set item is set to "1". The mode is not set (N in step S2004)
O) If the end item is selected (step S200)
Then, after returning the screen of the display unit 303 to the initial screen (step S2007), the process waits for a key input again (step S2001). If the input key is the print key 302 (YES in step S2008)
S), a predetermined image forming start process is executed (step S20)
09), and return. If the input key is neither the image editing key 306 nor the print key 302 (NO in step S2008), other processing is executed (step S2010), and the process waits for another key input (step S2010). S2001).

【0023】上記「表3」は、使用者により選択される
項目と、設定された項目に対応して、上記フラグ設定処
理(ステップS2005)により”1”にセットされる
フラグの種類を示す。モードフラグは、初期設定(ステ
ップS1000)において全て”0”に設定されてい
る。例えば、使用者により「モノカラー変換」の項目が
設定された場合、当該項目が設定されたことを意味する
全体フラグMF1と、当該変換処理の適用されるフルカラ
ー画像のモードフラグMF51が”1”にセットされる。ま
た、「色変換」の項目が設定された場合には、当該項目
が設定されたことを意味する全体フラグMF2と、当該変
換処理の適用される白黒2値画像及びフルカラー画像に
ついてのモードフラグMF32及びMF52が”1”にセットさ
れる。「イレース」の項目が設定された場合は、当該項
目が選択されたことを意味する全体フラグMF3と、当該
処理の適用される白黒べた画像、カラーべた画像、白黒
2値画像、白黒多値画像、フルカラー画像についてのモ
ードフラグMF13,MF23,MF33,MF43及びMF53が”1”にセ
ットされる。以下、各項目についても「表3」に示され
る通りである。
[Table 3] shows the types of flags that are set to "1" by the flag setting process (step S2005) in accordance with the items selected by the user and the set items. The mode flags are all set to "0" in the initial setting (step S1000). For example, when the item “mono color conversion” is set by the user, the overall flag MF1 indicating that the item is set and the mode flag MF51 of the full-color image to which the conversion process is applied are “1”. Is set to When the item “color conversion” is set, an overall flag MF2 indicating that the item is set, and a mode flag MF32 for a monochrome binary image and a full-color image to which the conversion process is applied. And MF52 are set to "1". When the "Erase" item is set, the entire flag MF3 indicating that the item is selected, and a black-and-white solid image, a color solid image, a black-and-white binary image, and a black-and-white multi-value image to which the process is applied The mode flags MF13, MF23, MF33, MF43 and MF53 for the full-color image are set to "1". Hereinafter, each item is also as shown in "Table 3".

【0024】(3−3)再圧縮処理 図11は、GBTC方式で符号化されたデータの再圧縮
処理に関するフローチャートである(図9に示すステッ
プS6000)。ここでは、GBTC方式で圧縮符号化
されたデータの平均値情報LAと階調幅指数LDの値よ
り、画像の属性を判別する。次に、明度成分L、色度成
分a*及びb*、符号データφijの内、画像の属性に
基づいて常に特定することのできるデータを削減する再
圧縮処理を実行する。これにより、画像データの圧縮率
を、再現性を犠牲にすることなく向上することができ
る。また、再現性を重視し、各画素に割り当てる符号デ
ータφijのビット数を増加した場合であっても、上記
再圧縮処理を実行することで、圧縮率の低下を防止する
ことができる。まず、圧縮画像データメモリ610に格
納されている符号データを読み出し(ステップS600
1)、属性判別処理を実行する(ステップS600
2)。この属性判別処理では、各符号データ毎に、当該
符号データに関する4×4画素ブロックが、白黒べた画
像、カラーべた画像、白黒2値画像、白黒多値画像、フ
ルカラー画像の何れの画像に属するのかを判別し、べた
画像についてのフラグf1,カラー/モノクロ画像につ
いてのフラグf2,2値/多値画像についてのフラグf
3の値をそれぞれ設定する。属性判別処理については後
にフローチャートを用いて説明する。次のステップS6
003では、上記各フラグの値を調べ、各画像の種類に
応じて、以下の処理を実行する。4×4画素ブロック
が、白黒べた画像(フラグf1=1,フラグf2=1)
に属する場合、白黒べた画像特徴量抽出処理(ステップ
S6004)を実行する。ここでは、明度成分L*の平
均値情報LAのヒストグラムデータを作成する。次に、
白黒べた画像再圧縮処理を実行する(ステップS600
5)。4×4画素ブロックが、カラーべた画像(フラグ
f1=1,フラグf2=0)に属する場合、カラーべた
画像特徴量抽出処理(ステップS6006)を実行す
る。ここでは、明度成分L*,色度成分a*及びb*の
各平均値情報LAのそれぞれのヒストグラムデータを作
成する。次に、カラーべた画像再圧縮処理を実行する
(ステップS6007)。4×4画素ブロックが、白黒
2値画像(フラグf1=0,フラグf2=1,フラグf
3=1)に属する場合、白黒2値画像特徴量抽出処理
(ステップS6008)を実行する。ここでは、4×4
画素ブロック内に存在する各画素の白黒比を求める。次
に、白黒2値画像再圧縮処理を実行する(ステップS6
009) 4×4画素ブロックが、白黒多値画像(フラグf1=
0,フラグf2=1,フラグf3=0)に属する場合、
白黒多値画像特徴量抽出処理(ステップS6010)を
実行する。ここでは、明度成分L*の平均値情報LA及
び階調幅情報LDのヒストグラムデータを作成する。こ
の後、白黒多値画像再圧縮処理を実行する(ステップS
6011)。4×4画素ブロックが、フルカラー画像
(フラグf1=0,フラグf2=0,フラグf3=1)
に属する場合、フルカラー画像特徴量抽出処理(ステッ
プS6012)を実行する。ここでは、明度成分L*,
色度成分a*及びb*の各平均値情報LA及び階調幅指
数LDのヒストグラムデータを形成する。以上の4×4
画素ブロックの属する画像の種類に応じた処理実行の
後、再圧縮処理により得られる圧縮データを圧縮画像メ
モリ610に格納する(ステップS6013)。但し、
フルカラー画像に関する符号化されたデータは、そのま
まの状態で圧縮符号メモリ611に格納する。以上の処
理(ステップS6001〜S6013)を原稿の全ての
4×4画素ブロックの符号化されたデータに対して実行
する。上記処理が全ての4×4画素ブロックの符号化さ
れたデータに対して実行された場合には(ステップS6
014でYES)、処理を終了してリターンする。
(3-3) Recompression processing FIG. 11 is a flowchart relating to the recompression processing of the data encoded by the GBTC method (step S6000 shown in FIG. 9). Here, the attribute of the image is determined from the average value information LA of the data compressed and encoded by the GBTC method and the value of the gradation width index LD. Next, a recompression process is performed to reduce data that can be always specified based on the image attribute among the lightness component L, chromaticity components a * and b *, and code data φij. Thus, the compression ratio of the image data can be improved without sacrificing reproducibility. Further, even if the reproducibility is emphasized and the number of bits of the code data φij assigned to each pixel is increased, the compression ratio can be prevented from lowering by executing the recompression process. First, the code data stored in the compressed image data memory 610 is read (step S600).
1), execute an attribute determination process (step S600)
2). In this attribute discriminating process, for each code data, whether the 4 × 4 pixel block relating to the code data belongs to any of a black-and-white solid image, a color solid image, a black-and-white binary image, a black-and-white multi-valued image, and a full-color image And a flag f1 for a solid image, a flag f2 for a color / monochrome image, and a flag f for a binary / multi-valued image.
3 is set. The attribute determination processing will be described later using a flowchart. Next step S6
In 003, the value of each flag is checked, and the following processing is executed according to the type of each image. A 4 × 4 pixel block is a solid black and white image (flag f1 = 1, flag f2 = 1)
, A black-and-white solid image feature amount extraction process (step S6004) is executed. Here, histogram data of the average value information LA of the lightness component L * is created. next,
A black-and-white solid image recompression process is executed (step S600).
5). If the 4 × 4 pixel block belongs to a solid color image (flag f1 = 1, flag f2 = 0), a color solid image feature amount extraction process (step S6006) is performed. Here, the respective histogram data of the average value information LA of the lightness component L * and the chromaticity components a * and b * are created. Next, a color solid image recompression process is executed (step S6007). A 4 × 4 pixel block is a black and white binary image (flag f1 = 0, flag f2 = 1, flag f
3 = 1), a black-and-white binary image feature amount extraction process (step S6008) is executed. Here, 4 × 4
The black-and-white ratio of each pixel present in the pixel block is determined. Next, a black and white binary image recompression process is executed (step S6).
009) A 4 × 4 pixel block is a monochrome multi-valued image (flag f1 =
0, flag f2 = 1, and flag f3 = 0),
A black-and-white multivalued image feature amount extraction process (step S6010) is executed. Here, histogram data of the average value information LA of the lightness component L * and the gradation width information LD is created. Thereafter, the monochrome multi-valued image recompression process is executed (step S).
6011). A 4 × 4 pixel block is a full-color image (flag f1 = 0, flag f2 = 0, flag f3 = 1)
, A full-color image feature amount extraction process (step S6012) is executed. Here, the lightness components L *,
The average value information LA of the chromaticity components a * and b * and the histogram data of the gradation width index LD are formed. 4x4 above
After executing the processing according to the type of the image to which the pixel block belongs, the compressed data obtained by the recompression processing is stored in the compressed image memory 610 (step S6013). However,
The encoded data relating to the full-color image is stored in the compression code memory 611 as it is. The above processing (steps S6001 to S6013) is performed on the encoded data of all 4 × 4 pixel blocks of the document. If the above processing has been performed on the encoded data of all the 4 × 4 pixel blocks (step S6
(YES in 014), the process ends, and the process returns.

【0025】(3-3-1)属性判別処理 図12は、属性判別処理(図11に示すステップS60
02)のフローチャートである。まず、符号化されたデ
ータに対応する4×4画素ブロックがべた画像に属する
か否かを判別する(ステップS6020)。べた画像判
別処理においては、4×4画素ブロックがべた画像に属
すると判断した場合、フラグf1の値を1に設定し、べ
た画像に属さないと判断した場合、フラグf1の値を0
に設定する。べた画像判別処理の終了後、フラグf1の
値を調べる(ステップS6021)。ここで、フラグf
1の値が1の場合には、符号データに対応する4×4画
素ブロックがべた画像に属すると判断して、以下の処理
を実行する。まず、カラー/モノクロ判別処理を実行す
る(ステップS6022)。カラー/モノクロ判別処理
では、4×4画素ブロックが白黒画像に属すると判断す
る場合、フラグf2の値を1に設定し、カラー画像に属
すると判断する場合、フラグf2の値を0に設定する。
カラー/モノクロ画像判別処理の終了後、フラグf2の
値を調べる(ステップS6023)。ここで、フラグf
2の値が1の場合、白黒べた画像を表す属性信号を当該
符号データに関連づけてハードディスク614に書き込
む処理を行う(ステップS6024)。また、フラグf
2の値が0の場合には、カラーべた画像を表す属性信号
を当該符号データに関連づけてハードディスク614に
書き込む処理を行う(ステップS6025)。上記ステ
ップS6020において、フラグf1の値が0の場合に
は、4×4画素ブロックが2階調以上の階調を持った画
像に属すると判断し(ステップS6021でNO)、画
像がカラー/モノクロの何れの画像であるのか、また、
白黒画像の場合には、これが2値画像であるのか、もし
くは多値画像であるのかを調べる。まず、カラー/モノ
クロ判別処理を実行する(ステップS6026)。カラ
ー/モノクロ判別処理では、4×4画素ブロックが白黒
画像に属すると判断する場合、フラグf2の値を1に設
定し、カラー画像に属すると判断する場合には、フラグ
f2の値を0に設定する。ステップS6026における
カラー/モノクロ判別処理は、上記ステップS6022
における処理と全く同じである。カラー/モノクロ画像
判別処理の終了後、フラグf2の値を調べる(ステップ
S6027)。ここで、フラグf2の値が1の場合、引
き続き当該白黒画像が2値画像であるのか又は多値画像
であるのかについての判別処理を実行する(ステップS
6028)。2値/多値判別処理では、4×4画素ブロ
ックが2値画像に属すると判断する場合、フラグf3の
値を1に設定し、多値画像に属すると判断する場合、フ
ラグf3の値を0に設定する。2値/多値判別処理終了
後、フラグf3の値を調べる(ステップS6029)。
ここで、フラグf3の値が1の場合、白黒2値画像を表
す属性信号を当該符号化されたデータに関連づけてハー
ドディスク614に書き込む処理を行う(ステップS6
030)。また、フラグf3の値が0の場合には、白黒
多値画像を表す属性信号を当該符号化されたデータに関
連づけてハードディスク614に書き込む処理を行う
(ステップS6031)。上ステップS6026におけ
るカラー/モノクロ判別処理において設定されたフラグ
f2の値が0の場合、フルカラー画像であると判断され
る(ステップS6027でNO)。そこで、フルカラー
画像を表す属性信号を当該符号化されたデータに関連づ
けてハードディスク614に書き込む(ステップS60
32)。圧縮画像メモリ610に格納されている全ての
符号化されたデータについて上記処理を実行した後(ス
テップS6033でYES)、リターンする。
(3-3-1) Attribute Determination Process FIG. 12 shows an attribute determination process (step S60 shown in FIG. 11).
02) is a flowchart. First, it is determined whether the 4 × 4 pixel block corresponding to the encoded data belongs to a solid image (step S6020). In the solid image discriminating process, when it is determined that the 4 × 4 pixel block belongs to the solid image, the value of the flag f1 is set to 1, and when it is determined that the block does not belong to the solid image, the value of the flag f1 is set to 0.
Set to. After the solid image discriminating process is completed, the value of the flag f1 is checked (step S6021). Here, the flag f
When the value of 1 is 1, it is determined that the 4 × 4 pixel block corresponding to the code data belongs to the solid image, and the following processing is executed. First, a color / monochrome determination process is executed (step S6022). In the color / monochrome determination process, the value of the flag f2 is set to 1 when it is determined that the 4 × 4 pixel block belongs to the monochrome image, and the value of the flag f2 is set to 0 when it is determined that the block belongs to the color image. .
After the end of the color / monochrome image discrimination processing, the value of the flag f2 is checked (step S6023). Here, the flag f
If the value of 2 is 1, a process of writing an attribute signal representing a solid black and white image to the hard disk 614 in association with the code data is performed (step S6024). Also, the flag f
If the value of 2 is 0, a process of writing an attribute signal representing a solid color image to the hard disk 614 in association with the code data is performed (step S6025). If the value of the flag f1 is 0 in step S6020, it is determined that the 4 × 4 pixel block belongs to an image having two or more gradations (NO in step S6021), and the image is color / monochrome. Which image is the
In the case of a monochrome image, it is checked whether this is a binary image or a multi-valued image. First, a color / monochrome determination process is executed (step S6026). In the color / monochrome determination process, the value of the flag f2 is set to 1 when it is determined that the 4 × 4 pixel block belongs to the monochrome image, and the value of the flag f2 is set to 0 when it is determined that the block belongs to the color image. Set. The color / monochrome discrimination processing in step S6026 is performed in step S6022.
Is exactly the same as the processing in. After the end of the color / monochrome image discrimination processing, the value of the flag f2 is checked (step S6027). Here, when the value of the flag f2 is 1, a determination process is continuously performed as to whether the monochrome image is a binary image or a multi-valued image (step S).
6028). In the binary / multi-value discriminating process, the value of the flag f3 is set to 1 when it is determined that the 4 × 4 pixel block belongs to the binary image, and the value of the flag f3 is set when it is determined that the block belongs to the multi-value image. Set to 0. After the completion of the binary / multi-value discriminating process, the value of the flag f3 is checked (step S6029).
Here, when the value of the flag f3 is 1, a process of writing an attribute signal representing a black and white binary image to the hard disk 614 in association with the encoded data is performed (step S6).
030). If the value of the flag f3 is 0, a process of writing an attribute signal representing a monochrome multi-valued image to the hard disk 614 in association with the encoded data is performed (step S6031). If the value of the flag f2 set in the color / monochrome discrimination processing in step S6026 is 0, it is determined that the image is a full-color image (NO in step S6027). Therefore, an attribute signal representing a full-color image is written in the hard disk 614 in association with the encoded data (step S60).
32). After executing the above processing for all the encoded data stored in the compressed image memory 610 (YES in step S6033), the process returns.

【0026】<3-3-1-1>べた画像判別処理 図13は、べた画像判別処理(図12に示すステップS
6020)のフローチャートである。べた画像とは、あ
る一定の明度成分L*,色度成分a*及びb*を有する
唯一色からなる画像のことをいう。視覚的には、明度L
*,色度a*及びb*の各階調幅指数LDの値が所定値
以下であるときに、べた画像であると認識される。但
し、明度成分L*の平均値情報LAの値がある程度高い
(例えば240以上)場合には、明度L*,色度a*及
びb*の階調幅指数LDの値が上記所定値よりも大きな
値であっても、べた画像であると認識される。本実施例
のべた画像判別処理においては、明度成分L*の平均値
情報LAの値が240未満であって、明度L*,色度a
*及びb*の各成分の階調幅指数LDの値が2以下であ
る時(ステップS6040〜S6043で全てYE
S)、又は、明度成分L*の平均値情報LAの値が24
0以上であって(ステップS6040でNO)、明度L
*,色度a*及びb*の各成分の階調幅指数LDの値が
6以下である時に(ステップS6046〜S6048で
YES)、4×4画素ブロックがべた画像に属すると判
断し、フラグf1の値を1に設定する(ステップS60
44、又は、S6049)。明度成分L*,色度成分a
*及びb*の各階調幅指数LDの値が上記条件を満たさ
ない場合(明度成分L*の平均値情報LAの値が240
未満であって(ステップS6040でYES)、ステッ
プS6041〜S6043の内、何れか1つでもNOが
あるとき、又は、明度成分L*の平均値情報LAの値が
240以上であって(ステップS6040でNO)、ス
テップS6046〜S6048の内、何れか1つでもN
Oがあるとき)には、4×4画素ブロックがべた画像に
属さないと判断してフラグf1の値を0に設定する(ス
テップS6045、又は、S6050)。
<3-3-1-1> Solid Image Discriminating Process FIG. 13 shows a solid image discriminating process (step S shown in FIG. 12).
6020) is a flowchart. The solid image is an image composed of only one color having a certain lightness component L * and chromaticity components a * and b *. Visually, lightness L
When the value of each gradation width index LD of *, chromaticity a * and b * is equal to or smaller than a predetermined value, the image is recognized as a solid image. However, when the value of the average value information LA of the lightness component L * is somewhat high (for example, 240 or more), the value of the gradation width index LD of the lightness L *, the chromaticity a *, and the b * is larger than the predetermined value. Even a value is recognized as a solid image. In the solid image discriminating process of this embodiment, the value of the average value information LA of the lightness component L * is less than 240, and the lightness L * and the chromaticity a
* When the value of the gradation width index LD of each component of * and b * is 2 or less (all YE in steps S6040 to S6043)
S) or the value of the average value information LA of the lightness component L * is 24
0 or more (NO in step S6040), and lightness L
When the value of the gradation width index LD of each of the *, chromaticity a * and b * components is 6 or less (YES in steps S6046 to S6048), it is determined that the 4 × 4 pixel block belongs to the solid image, and the flag f1 is set. Is set to 1 (step S60).
44 or S6049). Lightness component L *, chromaticity component a
When the value of each gradation width index LD of * and b * does not satisfy the above condition (the value of the average value information LA of the lightness component L * is 240
(YES in step S6040), when any one of steps S6041 to S6043 has NO, or when the value of average value information LA of lightness component L * is 240 or more (step S6040) NO in any of steps S6046 to S6048
If there is O), it is determined that the 4 × 4 pixel block does not belong to the solid image, and the value of the flag f1 is set to 0 (step S6045 or S6050).

【0027】<3-3-1-2>カラー/モノクロ判別処理 図14は、カラー/モノクロ判別処理(図12に示すス
テップS6022及び6026)のフローチャートを示
す図である。図示するように、ステップS6022で実
行する処理と、ステップS6026で実行する処理内容
は同じである。ここでは、ステップS6022における
カラー/モノクロ判別処理について順に説明する。白黒
画像は、色度成分a*及びb*のデータ値がほぼ0の無
彩色からなる。例えば、色度a*及びb*各成分の平均
値情報LAの値が±5以内である場合には、無彩色より
なる画像であると判断することができる。しかし、上記
判断基準のみでは、色度成分a*及びb*の各平均値情
報LAの値が±5以内であって、ある画素の色度成分a
*のデータ値が−120で他の画素の色度成分a*のデ
ータ値が125であり平均値情報LAが小さな値となる
場合に、これを白黒画像であると誤って判断してしま
う。そこで、本実施例のCPU611は、階調幅指数L
Dの値が±5以内にある場合にのみ、4×4画素ブロッ
クが白黒画像に属すると判断する。具体的には、色度成
分a*及びb*の各平均値情報LA及び階調幅情報LD
の値が共に±5以内である場合(ステップS6051〜
S6054でYES)、フラグf2の値を1に設定する
(ステップS6055)。色度成分a*及びb*の各平
均値情報LA及び階調幅情報LDの値が1つでも±5以
上である場合には(ステップS6051〜6054の何
れか1つでもNO)、4×4画素ブロックがカラー画像
に属すると判別し、フラグf2の値を0に設定する(ス
テップS6056)。
<3-3-1-2> Color / Monochrome Determination Process FIG. 14 is a flowchart showing the color / monochrome determination process (steps S6022 and 6026 shown in FIG. 12). As illustrated, the processing executed in step S6022 is the same as the processing executed in step S6026. Here, the color / monochrome determination processing in step S6022 will be described in order. A black-and-white image is composed of an achromatic color in which the data values of the chromaticity components a * and b * are almost zero. For example, if the value of the average value information LA of each of the chromaticity components a * and b * is within ± 5, it can be determined that the image is an achromatic color. However, only with the above criterion, the average value information LA of the chromaticity components a * and b * is within ± 5, and the chromaticity component a *
If the data value of * is -120 and the data value of the chromaticity component a * of another pixel is 125, and the average value information LA is a small value, this is erroneously determined to be a monochrome image. Therefore, the CPU 611 of this embodiment uses the gradation width index L
Only when the value of D is within ± 5, it is determined that the 4 × 4 pixel block belongs to the monochrome image. Specifically, each average value information LA and gradation width information LD of the chromaticity components a * and b *
Are within ± 5 (steps S6051 to S6051).
(YES in S6054), and sets the value of flag f2 to 1 (step S6055). If at least one of the average value information LA and the gradation width information LD of the chromaticity components a * and b * is ± 5 or more (NO in any one of steps S6051 to 6054), 4 × 4 It is determined that the pixel block belongs to the color image, and the value of the flag f2 is set to 0 (step S6056).

【0028】<3-3-1-3>2値/多値判別処理 図15は、2値/多値判別処理(図12に示すステップ
S6028)のフローチャートを示す図である。2値画
像4×4画素ブロックの符号化されたデータは、明度成
分L*の階調幅指数LDの値が大きく、かつ、明度成分
L*の符号データφijに中間調データを表す10もし
くは00が存在しない。他方、多値画像に属する4×4
画素ブロックの明度成分L*の符号データφijには、
中間調データを表す10もしくは00が存在する。そこ
で、2値/多値判別処理においては、明度成分L*の階
調幅指数LDの値が200以上あり(ステップS607
0でYES)、明度成分L*の全符号データφijの値
が、10及び00の何れでもない場合(ステップS60
71及びS6072でNO、かつ、S6073でYE
S)にのみ、4×4画素ブロックが2値画像に属すると
判断し、フラグf3の値を1に設定する(ステップS6
074)。他方、明度成分L*の階調幅指数LDの値が
200以下であったり(ステップS6070でNO)、
明度成分L*の符号データφijの値に、1つでも10
または00がある場合には(ステップS6071、S6
072の何れか一方でもYESの場合)、4×4画素ブ
ロックが多値画像に属すると判断してフラグf3の値を
0に設定する(ステップS6075)。
<3-3-1-3> Binary / Multi-Valued Discrimination Processing FIG. 15 is a flowchart showing the binary / multi-valued discrimination processing (step S6028 shown in FIG. 12). The encoded data of the 4 × 4 pixel block of the binary image has a large value of the gradation width index LD of the lightness component L *, and 10 or 00 representing the halftone data is added to the code data φij of the lightness component L *. not exist. On the other hand, 4 × 4 belonging to the multi-valued image
The code data φij of the lightness component L * of the pixel block includes:
There are 10 or 00 representing halftone data. Therefore, in the binary / multi-value discriminating process, the value of the gradation width index LD of the lightness component L * is 200 or more (step S607).
If the value of all the code data φij of the lightness component L * is neither 10 nor 00 (step S60).
71 and NO in S6072, and YE in S6073
Only in S), it is determined that the 4 × 4 pixel block belongs to the binary image, and the value of the flag f3 is set to 1 (step S6).
074). On the other hand, the value of the gradation width index LD of the lightness component L * is 200 or less (NO in step S6070),
The value of the sign data φij of the lightness component L *
Or if there is 00 (steps S6071, S6
07 is YES), it is determined that the 4 × 4 pixel block belongs to the multi-valued image, and the value of the flag f3 is set to 0 (step S6075).

【0029】(3-3-2)特徴量抽出処理 GBTC方式の符号化処理により各ブロック毎に得られ
る平均値情報LA及び階調幅指数LDは、原画像データ
の1/16の情報量であり、全画像データにおける平均
値情報と、階調幅データの代表値を表す。このため、実
際に原画像データの明度成分L*、色度成分a*及びb
*についての特徴量を求めた場合とほぼ同じ情報が1/
16のデータから得られることとなる。これにより、特
徴量抽出処理に要する演算回路の簡略化を図ることが可
能となり、かつ、特徴量の抽出処理に係る時間を短縮す
ることができる。本実施例の複写機では、以下に説明す
る特徴量抽出処理を実行し、各抽出した特徴量をハード
ディスク614に格納しておく。これにより、後に説明
するAE処理や、画像編集/加工処理を行う際に、ハー
ドディスクより該当する特徴量を読み出し、読み出した
値に基づいて各処理を実行することが可能となる。従っ
て、符号化される前、及び、復号化された後の画像デー
タに基づいて、AE処理や画像編集/加工処理を実行す
る場合に比べ、処理に要するメモリの容量を少なくする
ことができる。また、処理自体に要する時間を短縮する
ことができる。
(3-3-2) Feature Amount Extraction Process The average value information LA and the gradation width index LD obtained for each block by the GBTC encoding process are the information amount of 1/16 of the original image data. , Average value information of all image data, and representative values of gradation width data. Therefore, the lightness component L * and the chromaticity components a * and b of the original image data are actually
The information that is almost the same as when the feature value for * is obtained is 1 /
It will be obtained from 16 data. As a result, it is possible to simplify the arithmetic circuit required for the characteristic amount extraction processing, and it is possible to reduce the time required for the characteristic amount extraction processing. In the copying machine of the present embodiment, a feature amount extraction process described below is executed, and each extracted feature amount is stored in the hard disk 614. Thus, when performing the AE process or the image editing / processing process described later, it becomes possible to read out the corresponding feature amount from the hard disk and execute each process based on the read out value. Therefore, the memory capacity required for processing can be reduced as compared with the case where AE processing or image editing / processing processing is performed based on image data before encoding and after image data after decoding. Further, the time required for the processing itself can be reduced.

【0030】<3-3-2-1>白黒べた画像特徴量抽出処理 図16は、白黒べた画像特徴量抽出処理(図11に示す
ステップS6004)のフローチャートを示す図であ
る。ここでは、明度成分L*の全ブロックについての平
均値情報LAのヒストグラムデータを作成した後(ステ
ップS6100)、リターンする。ここで求めたヒスト
グラムデータは、ハードディスク614に格納され、後
に説明する編集/加工処理の1つである下地カット処理
を実行する際に用いる。
<3-3-2-1> Solid Black and White Image Feature Extraction Processing FIG. 16 is a flowchart showing the black and white solid image feature extraction processing (step S6004 shown in FIG. 11). Here, after creating the histogram data of the average value information LA for all the blocks of the lightness component L * (step S6100), the process returns. The histogram data obtained here is stored in the hard disk 614, and is used when executing a background cutting process, which is one of editing / processing processes described later.

【0031】<3-3-2-2>カラーべた画像特徴量抽出処理 図17は、カラーべた画像特徴量抽出処理(図11に示
すステップS6006)のフローチャートを示す図であ
る。まず、明度成分L*の全ブロックについての平均値
情報LAのヒストグラムデータを作成する(ステップS
6110)。次に、色度成分a*の全ブロックについて
の平均値情報LAのヒストグラムデータを作成する(ス
テップS6111)。次に、色度成分b*の全ブロック
についての平均値情報LAのヒストグラムデータを作成
する(ステップS6112)。ここで求めた各ヒストグ
ラムデータは、ハードディスク614に格納され、後に
説明する編集/加工処理の1つである下地カット処理を
実行する際に用いる。
<3-3-2-2> Solid Color Image Feature Extraction Processing FIG. 17 is a flowchart showing the color solid image feature extraction processing (step S6006 shown in FIG. 11). First, histogram data of the average value information LA for all blocks of the lightness component L * is created (step S).
6110). Next, histogram data of the average value information LA for all blocks of the chromaticity component a * is created (step S6111). Next, histogram data of the average value information LA for all blocks of the chromaticity component b * is created (step S6112). Each histogram data obtained here is stored in the hard disk 614, and is used when executing a background cutting process which is one of editing / processing processes described later.

【0032】<3-3-2-3>白黒2値画像特徴量抽出処理 図18は、白黒2値画像特徴量抽出処理(図11に示す
ステップS6008)のフローチャートを示す図であ
る。ここでは、4×4画素ブロック内に存在する各画素
の白黒比を求める。4×4画素ブロック内にある各画素
の符号データの上位1ビットの値が1の場合(ステップ
S6120でYES)、当該画素を白色と判断して白色
画素についてのカウントアップを行う(ステップS61
21)。また、符号データの上位1ビットの値が0であ
る場合(ステップS6120でNO)、当該画素を黒色
と判断して黒色画素についてのカウントアップを行う
(ステップS6122)。上記ステップS6120での
判断は、256階調データの値が平均値情報LAの値よ
りも大きな場合に、符号データφij=11,10が割
り当てられ、小さな場合にφij=00,01が割り当
てられることに基づく。4×4画素ブロック内の全ての
符号データについての判断を行った後(ステップS61
23でYES)、白黒比率を計算する(ステップS61
24)。ここで、求められた白黒比率は、ハードディス
ク614に格納される。
<3-3-2-3> Black and White Binary Image Feature Extraction Processing FIG. 18 is a flowchart of the black and white binary image feature extraction processing (step S6008 shown in FIG. 11). Here, the black-and-white ratio of each pixel existing in the 4 × 4 pixel block is obtained. If the value of the upper one bit of the code data of each pixel in the 4 × 4 pixel block is 1 (YES in step S6120), the pixel is determined to be white, and the white pixel is counted up (step S61).
21). If the value of the upper 1 bit of the code data is 0 (NO in step S6120), the pixel is determined to be black and the black pixel is counted up (step S6122). The determination in step S6120 is that code data φij = 11, 10 is assigned when the value of the 256 gradation data is larger than the value of the average value information LA, and φij = 00, 01 is assigned when the value is smaller. based on. After determining all the code data in the 4 × 4 pixel block (step S61)
23 (YES), the black-and-white ratio is calculated (step S61).
24). Here, the calculated black and white ratio is stored in the hard disk 614.

【0033】<3-3-2-4>白黒多値画像特徴量抽出処理 図19は、白黒多値画像特徴量抽出処理(図11に示す
ステップS6010)のフローチャートを示す図であ
る。まず、明度成分L*の全ブロックについての平均値
情報LAのヒストグラムデータを作成する(ステップS
6130)。次に、明度成分L*の全ブロックについて
の階調幅情報LDのヒストグラムデータを作成する(ス
テップS6131)。ここで求めた各ヒストグラムデー
タは、ハードディスク614に記憶され、後に説明する
AE処理で使用する。
<3-3-2-4> Monochrome Multi-valued Image Feature Extraction Processing FIG. 19 is a flowchart showing the monochrome multi-valued image feature extraction processing (step S6010 shown in FIG. 11). First, histogram data of the average value information LA for all blocks of the lightness component L * is created (step S).
6130). Next, histogram data of the gradation width information LD for all blocks of the lightness component L * is created (step S6131). Each histogram data obtained here is stored in the hard disk 614 and used in the AE process described later.

【0034】<3-3-2-5>フルカラー画像特徴量抽出処理 図20は、フルカラー画像特徴量抽出処理(図11に示
すステップS6012)のフローチャートを示す図であ
る。まず、明度成分L*の全ブロックについての平均値
情報LAのヒストグラムデータを形成する(ステップS
6140)。次に、明度成分L*の全ブロックについて
の階調幅指数LDのヒストグラムデータを形成する(ス
テップS6141)。色度成分a*の全ブロックについ
ての平均値情報LAのヒストグラムデータを形成する
(ステップS6142)。色度成分a*の全ブロックに
ついての階調幅指数LDのヒストグラムデータを形成す
る(ステップS6143)。色度成分b*の全ブロック
についての平均値情報LAのヒストグラムデータを形成
する(ステップS6144)。色度成分b*の全ブロッ
クについての階調幅指数LDのヒストグラムデータを形
成する(ステップS6145)。ここで求めた各ヒスト
グラムデータは、ハードディスク614に記憶され、後
に説明するAE処理で使用する。
<3-3-2-5> Full-Color Image Feature Extraction Processing FIG. 20 is a flowchart of the full-color image feature extraction processing (step S6012 shown in FIG. 11). First, histogram data of the average value information LA for all blocks of the lightness component L * is formed (step S).
6140). Next, histogram data of the gradation width index LD for all blocks of the lightness component L * is formed (step S6141). The histogram data of the average value information LA for all blocks of the chromaticity component a * is formed (step S6142). The histogram data of the gradation width index LD for all blocks of the chromaticity component a * is formed (step S6143). The histogram data of the average value information LA for all blocks of the chromaticity component b * is formed (step S6144). The histogram data of the gradation width index LD for all blocks of the chromaticity component b * is formed (step S6145). Each histogram data obtained here is stored in the hard disk 614 and used in the AE process described later.

【0035】(3-3-3)再圧縮処理 本実施例の複写機では、明度成分L*、色度成分a*及
びb*についての平均値情報LA、階調幅指数LD及び
符号データφijの内、上記属性判別処理(ステップS
6002)において判別された属性情報に基づいて、常
に特定することのできるデータを削減し、より一層の画
像データの圧縮を行う。再圧縮処理により得られるデー
タは、圧縮画像メモリ610に格納される。以下に、各
属性毎に実行される再圧縮処理について説明する。
(3-3-3) Recompression Processing In the copying machine of this embodiment, the average value information LA on the lightness component L *, the chromaticity components a * and b *, the gradation width index LD, and the code data φij Of the above, the attribute determination process (step S
Based on the attribute information determined in 6002), data that can always be specified is reduced, and image data is further compressed. Data obtained by the recompression processing is stored in the compressed image memory 610. Hereinafter, the recompression process executed for each attribute will be described.

【0036】<3-3-3-1>白黒べた画像再圧縮処理 図21は、白黒べた画像再圧縮処理(図11に示すステ
ップS6005)の処理フローチャートである。白黒べ
た画像は、特定の明度成分L*を有する無彩色(色度成
分a*及びb*のデータ値は共に0)画像である。即
ち、白黒べた画像は、上記特定の明度成分L*の値から
再現することができる。明度成分L*の値がある特定の
値であるため、4×4画素ブロック内の各画素に割り当
てられる符号データφijの値は全て同じ符号となる。
更に、階調幅指数LDの値は0になる。そこで、圧縮画
像メモリ610より明度成分L*の平均値情報LAのみ
を取り出し、これを白黒べた画像に関する再圧縮データ
として、圧縮画像メモリ610に格納する(ステップS
6200)。図22は、符号化されたデータと、再圧縮
データとの関係を示す概念図である。再圧縮後のデータ
は、再圧縮前の符号化されたデータの1/18に圧縮さ
れる。GBTC方式で得られる符号化されたデータの圧
縮率は3/8であるから、再圧縮後のデータの圧縮率は
1/48となる。
<3-3-3-1> Solid Black and White Image Recompression Process FIG. 21 is a flowchart of the black and white solid image recompression process (step S6005 shown in FIG. 11). The black-and-white solid image is an achromatic image (the data values of the chromaticity components a * and b * are both 0) having a specific lightness component L *. That is, the solid black and white image can be reproduced from the value of the specific lightness component L *. Since the value of the lightness component L * is a specific value, all the values of the code data φij assigned to each pixel in the 4 × 4 pixel block have the same sign.
Further, the value of the gradation width index LD becomes 0. Therefore, only the average value information LA of the lightness component L * is extracted from the compressed image memory 610, and stored in the compressed image memory 610 as recompressed data relating to a solid black and white image (step S).
6200). FIG. 22 is a conceptual diagram showing the relationship between encoded data and recompressed data. The data after recompression is compressed to 1/18 of the encoded data before recompression. Since the compression ratio of encoded data obtained by the GBTC method is 3/8, the compression ratio of data after recompression is 1/48.

【0037】<3-3-3-2>カラーべた画像再圧縮処理 図23は、カラーべた画像再圧縮処理(図11に示すス
テップS6007)の処理フローチャートである。カラ
ーべた画像は、特定の明度成分L*を有する単一色(色
度成分a*及びb*のデータ値が、一定)の画像であ
る。即ち、カラーべた画像は、色度成分a*及びb*の
各平均値情報LAと、明度成分L*の平均値情報LAよ
り再現することができる。そこで、圧縮画像メモリ61
0から明度成分L*,色度成分a*及びb*の各平均値
情報LAのみを取り出し、これをカラーべた画像に関す
る再圧縮データとして、圧縮画像メモリ610に格納す
る(ステップS6210、S6211、S6212)。
図24は、符号データと、再圧縮データとの関係を示す
概念図である。再圧縮後のデータは、再圧縮前の符号化
されたデータの1/6に圧縮される。GBTC方式で得
られる符号化されたデータの圧縮率は3/8であるか
ら、再圧縮後のデータは1/16となる。
<3-3--3-2> Solid Color Image Recompression Process FIG. 23 is a flowchart of the color solid image recompression process (step S6007 shown in FIG. 11). The solid color image is an image of a single color (the data values of the chromaticity components a * and b * are constant) having a specific lightness component L *. That is, the solid color image can be reproduced from the average value information LA of the chromaticity components a * and b * and the average value information LA of the lightness component L *. Therefore, the compressed image memory 61
Only the average value information LA of the lightness component L * and the chromaticity components a * and b * is extracted from 0 and stored in the compressed image memory 610 as recompressed data for a solid color image (steps S6210, S6211, and S6212). ).
FIG. 24 is a conceptual diagram showing the relationship between code data and recompressed data. The data after recompression is compressed to 1/6 of the encoded data before recompression. Since the compression ratio of the encoded data obtained by the GBTC method is 3/8, the data after recompression is 1/16.

【0038】<3-3-3-3>白黒2値画像再圧縮処理 図25は、白黒2値画像再圧縮処理(図11に示すステ
ップS6009)のフローチャートである。白黒2値画
像は、黒色(明度成分L*が0)、もしくは白色(明度
成分L*が255)からなる無彩色(色度成分a*及び
b*のデータ値が共に0)の画像である。即ち、白黒2
値画像は、明度成分L*についての符号データφijよ
り再現することができる。また、白黒2値画像の場合に
各画素に割り当てられる符号データφijは、11もし
くは01の2つの符号のみで構成される。そこで、圧縮
画像メモリ610から明度成分L*についての符号デー
タφijの値を取り出し、取り出した各画素の符号デー
タを各1ビットのデータφ’ijに変換し、変換した各
1ビットのデータを再圧縮データとする。1ビットデー
タφ’ijの値は、例えば、φij=11のときには
1、φij=01のときには0とする。処理の流れとし
ては、まず、圧縮画像メモリ610から明度成分L*の
1ブロックの6バイトデータを読み出し、読み出したデ
ータから平均値情報LA,階調幅情報LDの2バイトの
データを除去して、各画素に割り当てられた符号データ
を示す4バイトのデータのみにする(ステップS622
0)。次に、4バイトのデータの先頭の2ビット分のデ
ータを読み出し、このデータを符号データφijとする
(ステップS6221)。2値画像の場合、各画素に
は、11もしくは01の符号データφijが割り当てら
れている。そこで、読み出した2ビットデータφijの
値を調べる(ステップS6222)。φij=01の場
合、φ’ij=0を割り当てる(ステップS622
3)。また、φij=11の場合、φ’ij=1を割り
当てる(ステップS6224)。次に、上記4バイトの
データの先頭の2ビット分のデータをシフトさせ、当該
2ビット分のデータの次の2ビット分のデータを先頭に
する(ステップS6225)。上記ステップS6221
〜S6225の処理を16画素分全てについて行う。こ
れにより、再圧縮データφ’ijが得られる。再圧縮デ
ータφ’ijは、圧縮画像メモリ610に格納される。
ステップS6225によるシフト操作で、最初の2ビッ
トデータが再び先頭になった場合には(ステップS62
26でYES)、処理を終了してリターンする。図26
は、符号データと、再圧縮データとの関係を示す概念図
である。再圧縮後のデータは、1ビットの符号データ
φ’ij×16画素分=16ビットのデータからなり、
再圧縮前の符号データの1/9に圧縮される。GBTC
方式で得られる符号データの圧縮率は3/8であるか
ら、再圧縮後のデータの圧縮率は、1/24となる。
<3-3-3-3> Monochrome Binary Image Recompression Process FIG. 25 is a flowchart of the monochrome binary image recompression process (step S6009 shown in FIG. 11). The black-and-white binary image is an image of achromatic color (both data values of chromaticity components a * and b * are 0) composed of black (lightness component L * is 0) or white (lightness component L * is 255). . That is, black and white 2
The value image can be reproduced from the code data φij for the lightness component L *. In the case of a black-and-white binary image, the code data φij assigned to each pixel is composed of only 11 or 01 codes. Therefore, the value of the code data φij for the lightness component L * is extracted from the compressed image memory 610, the extracted code data of each pixel is converted into 1-bit data φ'ij, and the converted 1-bit data is re-processed. Use compressed data. The value of 1-bit data φ′ij is, for example, 1 when φij = 11 and 0 when φij = 01. As the processing flow, first, one block of 6-byte data of the lightness component L * is read from the compressed image memory 610, and the 2-byte data of the average value information LA and the gradation width information LD is removed from the read data. Only 4-byte data indicating the code data assigned to each pixel is set (step S622)
0). Next, the first two bits of the 4-byte data are read out, and this data is used as code data φij (step S6221). In the case of a binary image, 11 or 01 code data φij is assigned to each pixel. Therefore, the value of the read 2-bit data φij is checked (step S6222). When φij = 01, φ′ij = 0 is assigned (step S622).
3). If φij = 11, φ′ij = 1 is assigned (step S6224). Next, the data of the first two bits of the 4-byte data is shifted, and the data of the next two bits of the two-bit data is made the first (step S6225). Step S6221 above
Steps S6225 to S6225 are performed for all 16 pixels. As a result, recompressed data φ′ij is obtained. The recompressed data φ′ij is stored in the compressed image memory 610.
When the first 2-bit data is again at the top by the shift operation in step S6225 (step S62
(YES at 26), ends the process, and returns. FIG.
FIG. 3 is a conceptual diagram showing a relationship between code data and recompressed data. The data after recompression consists of 1-bit code data φ'ij × 16 pixels = 16-bit data,
It is compressed to 1/9 of the code data before recompression. GBTC
Since the compression ratio of code data obtained by the method is 3/8, the compression ratio of data after recompression is 1/24.

【0039】<3-3-3-4>白黒多値画像再圧縮処理 図27は、白黒多値画像の再圧縮処理(図11に示すス
テップS6011)のフローチャートである。白黒多値
画像では、無彩色(色度成分a*及びb*は、共に0)
であって、明度成分L*が0から255の範囲で変化す
る画像である。即ち、当該白黒多値画像は、明度成分L
*のみで再現することができる。そこで、圧縮画像メモ
リ610より明度成分L*の全情報(平均値情報LA,
階調幅指数LD,符号データφij)を取り出し、これ
を再圧縮画像データとして、圧縮画像メモリ610に格
納する(ステップS6230)。図28は、符号データ
と、再圧縮データとの関係を示す概念図である。再圧縮
後のデータは、再圧縮前の符号データの1/3に圧縮さ
れる。GBTC方式で得られる符号データの圧縮率は3
/8であるから、再圧縮後のデータの圧縮率は1/8と
なる。
<3-3-3-4> Monochrome Multivalued Image Recompression Process FIG. 27 is a flowchart of the monochrome multivalued image recompression process (step S6011 shown in FIG. 11). In the monochrome multi-valued image, achromatic color (both chromaticity components a * and b * are 0)
Where the brightness component L * changes in the range of 0 to 255. That is, the black-and-white multivalued image has a lightness component L
* Can be reproduced only. Thus, all information (average value information LA,
The gradation width index LD and the code data φij) are extracted and stored in the compressed image memory 610 as recompressed image data (step S6230). FIG. 28 is a conceptual diagram showing the relationship between code data and recompressed data. The data after recompression is compressed to 1/3 of the code data before recompression. The compression ratio of the code data obtained by the GBTC method is 3
/ 8, the data compression rate after recompression is 1/8.

【0040】(3−4)再圧縮からの伸張処理 再圧縮されたデータは、圧縮画像メモリ610に格納さ
れる。CPU611は、用紙上に画像を形成する際、圧
縮画像メモリ610に格納された再圧縮データを読み出
すと共に、当該データに関連する属性情報をハードディ
スク614より読み出す。読み出した属性情報より特定
される再圧縮データの属性に基づいて、再圧縮されたデ
ータの伸張処理を実行する。
(3-4) Decompression from Recompression The recompressed data is stored in the compressed image memory 610. When forming an image on a sheet, the CPU 611 reads out the recompressed data stored in the compressed image memory 610 and also reads out attribute information related to the data from the hard disk 614. The decompressed data is expanded based on the attribute of the recompressed data specified from the read attribute information.

【0041】<3-4-1>再圧縮からの伸張処理 図29及び図30は、再圧縮伸張処理(図9に示すステ
ップS7000)のフローチャートである。まず、ハー
ドディスク614から伸張しようとする4×4画素ブロ
ックについての属性フラグf1,f2及びf3を読み出
す(ステップS7001)。次のその属性フラグf1,
f2及びf3の値より、4×4画素ブロックに関するデ
ータが白黒べた画像、カラーべた画像、白黒2値画像、
白黒多値画像、もしくはフルカラー画像の何れの画像に
属するのかを特定する(ステップS7002)。4×4
画素ブロックに関するデータが、白黒べた画像に属する
データである場合(べた画像フラグf1=1、カラー/
モノクロ画像フラグf2=1)、白黒べた画像再圧縮デ
ータからの伸張処理を実行し、GBTC方式による復号
化が可能なデータを作成する(ステップS7003)。
この後、使用者による設定に基づく編集/加工処理を実
行する(ステップS7004)。上記処理の後、圧縮画
像メモリ610に伸張されたデータを書き込む(ステッ
プS7015)。4×4画素ブロックに関するデータ
が、カラーべた画像に属するデータである場合(べた画
像フラグf1=1、カラー/モノクロ画像フラグf2=
0)、カラーべた画像再圧縮データからの伸張処理を実
行し、GBTC方式による復号化が可能なデータを作成
する(ステップS7005)。この後、使用者による設
定に基づく編集/加工処理を実行する(ステップS70
06)。上記処理の後、圧縮画像メモリ610に伸張さ
れたデータを書き込む(ステップS7015)。4×4
画素ブロックに関するデータが白黒2値画像に属するデ
ータである場合(べた画像フラグf1=0、カラー/モ
ノクロ画像フラグf2=1、2値/多値画像フラグf3
=1)、白黒2値画像再圧縮データからの伸張処理を実
行し、GBTC方式による復号化が可能なデータを作成
する(ステップS7007)。この後、使用者による設
定に基づいて編集/加工処理を実行する(ステップS7
008)。上記処理の後、圧縮画像メモリ610に伸張
されたデータを書き込む(ステップS7015)。4×
4画素ブロックに関するデータが白黒多値画像に属する
データである場合(べた画像フラグf1=0、カラー/
モノクロ画像フラグf2=1、2値/多値画像フラグf
3=0)、白黒多値画像再圧縮データからの伸張処理を
実行し、GBTC方式による復号化が可能なデータを作
成する(ステップS7009)。伸張されたデータに対
し、白黒多値画像に対応したAE処理処理を行う(ステ
ップS7010)。この後、使用者による設定に基づく
編集/加工処理を実行する(ステップS7011)。上
記処理の後、圧縮画像メモリ610に伸張されたデータ
を書き込む(ステップS7015)。4×4画素ブロッ
クに関するデータが、フルカラー画像に属するデータで
ある場合(べた画像フラグf1=0、カラー/モノクロ
画像フラグf2=0)、フルカラー画像再圧縮データか
らの伸張処理を実行し、GBTC方式による復号化が可
能なデータを作成する(ステップS7012)。伸張さ
れたデータに対し、フルカラー画像に対応したAE処理
を行う(ステップS7013)。この後、使用者による
設定に基づく編集/加工処理を実行する(ステップS7
014)。上記処理の後、圧縮画像メモリ610に伸張
されたデータを書き込む(ステップS7015)。
<3-4-1> Decompression Process from Recompression FIG. 29 and FIG. 30 are flowcharts of the recompression and decompression process (step S7000 shown in FIG. 9). First, the attribute flags f1, f2, and f3 for the 4 × 4 pixel block to be expanded are read from the hard disk 614 (step S7001). The next attribute flag f1,
From the values of f2 and f3, the data regarding the 4 × 4 pixel block is a black and white solid image, a color solid image, a black and white binary image,
Whether the image belongs to a black-and-white multi-valued image or a full-color image is specified (step S7002). 4x4
When the data relating to the pixel block is data belonging to a monochrome solid image (solid image flag f1 = 1, color / color
A monochrome image flag f2 = 1), and a decompression process is performed from the black and white solid image recompressed data to create data that can be decoded by the GBTC method (step S7003).
Thereafter, an editing / processing process based on the setting by the user is executed (step S7004). After the above processing, the decompressed data is written to the compressed image memory 610 (step S7015). When the data relating to the 4 × 4 pixel block is data belonging to a solid color image (solid image flag f1 = 1, color / monochrome image flag f2 =
0), a decompression process is performed from the color solid image recompressed data, and data that can be decoded by the GBTC method is created (step S7005). Thereafter, the editing / processing process based on the setting by the user is executed (step S70).
06). After the above processing, the decompressed data is written to the compressed image memory 610 (step S7015). 4x4
When the data relating to the pixel block is data belonging to a monochrome binary image (solid image flag f1 = 0, color / monochrome image flag f2 = 1, binary / multi-valued image flag f3)
= 1), and executes decompression processing from the recompressed black and white binary image data to create data that can be decoded by the GBTC method (step S7007). Thereafter, the editing / processing is executed based on the setting by the user (step S7).
008). After the above processing, the decompressed data is written to the compressed image memory 610 (step S7015). 4x
When the data relating to the 4-pixel block is data belonging to a monochrome multi-valued image (solid image flag f1 = 0, color / color
Monochrome image flag f2 = 1, binary / multi-valued image flag f
3 = 0), and performs decompression processing from the recompressed black and white multi-valued image data to create data that can be decoded by the GBTC method (step S7009). The AE processing corresponding to the monochrome multivalued image is performed on the expanded data (step S7010). Thereafter, the editing / processing process based on the setting by the user is executed (step S7011). After the above processing, the decompressed data is written to the compressed image memory 610 (step S7015). If the data relating to the 4 × 4 pixel block is data belonging to a full-color image (solid image flag f1 = 0, color / monochrome image flag f2 = 0), a decompression process from the full-color image recompressed data is executed, and the GBTC method is used. Then, data that can be decrypted by is created (step S7012). An AE process corresponding to a full-color image is performed on the decompressed data (step S7013). Thereafter, the editing / processing process based on the setting by the user is executed (step S7).
014). After the above processing, the decompressed data is written to the compressed image memory 610 (step S7015).

【0042】<3-4-1-1>白黒べた画像再圧縮からの伸張
処理 図31は、白黒べた画像再圧縮からの伸張処理(図29
に示すステップS7003)のフローチャートを示す。
白黒べた画像の場合、圧縮画像メモリ610に格納され
ているデータは、図32の上段に示すように、明度成分
L*の平均値情報LAである1バイト(8ビット)デー
タのみである。まず、圧縮画像メモリ610より再圧縮
データを読み出し、これをデータAとする(ステップS
7100)。データAを、明度成分L*の平均値情報L
Aとする(ステップS7101)。白黒べた画像は、無
彩色画像である。このため色度成分a*及びb*のデー
タは、全て0である。この白黒べた画像の特性に基づい
て、色度成分a*及びb*の平均値情報LA,階調幅指
数LD及び符号データφijの値を全て0に設定する
(ステップS7102及びS7103)。図32の下段
には、上記ステップS7100〜S7103により得ら
れる符号データを示す。
<3-4-1-1> Decompression Processing from Re-Compression of Black and White Solid Image FIG.
9 shows a flowchart of step S7003) shown in FIG.
In the case of a black-and-white solid image, the data stored in the compressed image memory 610 is only 1-byte (8-bit) data which is the average value information LA of the lightness component L *, as shown in the upper part of FIG. First, recompressed data is read out from the compressed image memory 610 and is used as data A (step S
7100). Data A is converted to average value information L of lightness component L *.
A (step S7101). The black and white solid image is an achromatic image. Therefore, the data of the chromaticity components a * and b * are all 0. Based on the characteristics of the solid black and white image, the values of the average value information LA of the chromaticity components a * and b *, the gradation width index LD, and the code data φij are all set to 0 (steps S7102 and S7103). The lower part of FIG. 32 shows code data obtained in steps S7100 to S7103.

【0043】<3-4-1-2>カラーべた画像再圧縮からの伸
張処理 図33は、カラーべた画像再圧縮データからの伸張処理
(図29に示すステップS7005)のフローチャート
である。カラーべた画像の場合、圧縮画像メモリ610
には、図34の上段に示すように、明度成分L*,色度
成分a*及びb*の各平均値情報LA(8ビット)が順
に格納されている。まず、圧縮画像メモリ610より再
圧縮データの先頭の1バイトを読み出し、これをデータ
Aとする(ステップS7110)。データAを明度成分
L*の平均値情報LAとする(ステップS7111)。
明度成分L*の階調幅指数LD及び符号データφijに
0を割り当てる(ステップS7112)。次に、再圧縮
データの次の1バイトを読み出し、これをデータBとす
る(ステップS7113)。データBを色度成分a*の
平均値情報LAとする(ステップS7114)。色度成
分a*の階調幅指数LD及び符号データφijに0を割
り当てる(ステップS7115)。次に、再圧縮データ
の最後の1バイトを読み出し、これをデータCとする
(ステップS7116)。データCを色度成分b*の平
均値情報LAとする(ステップS7117)。色度成分
b*の階調幅指数LD及び符号データφij全てに0を
割り当てる(ステップS7118)。図34の下段に
は、上記ステップS7110〜S7118により得られ
る符号データを示す。
<3-4-1-2> Decompression Process from Color Solid Image Recompression FIG. 33 is a flowchart of the decompression process from color solid image recompression data (step S7005 shown in FIG. 29). In the case of a color solid image, the compressed image memory 610
As shown in the upper part of FIG. 34, each average value information LA (8 bits) of the lightness component L * and the chromaticity components a * and b * is sequentially stored. First, the first byte of the recompressed data is read from the compressed image memory 610, and is used as data A (step S7110). The data A is set as the average value information LA of the lightness component L * (step S7111).
0 is assigned to the gradation width index LD and the sign data φij of the lightness component L * (step S7112). Next, the next one byte of the recompressed data is read, and this is set as data B (step S7113). The data B is set as the average value information LA of the chromaticity component a * (step S7114). 0 is assigned to the gradation width index LD and the code data φij of the chromaticity component a * (step S7115). Next, the last one byte of the recompressed data is read, and this is set as data C (step S7116). The data C is set as the average value information LA of the chromaticity component b * (step S7117). 0 is assigned to all of the gradation width index LD and the code data φij of the chromaticity component b * (step S7118). The lower part of FIG. 34 shows code data obtained in steps S710 to S7118.

【0044】<3-4-1-3>白黒2値画像再圧縮からの伸張
処理 図30は、白黒2値画像再圧縮データからの伸張処理
(図29に示すステップS7007)のフローチャート
である。白黒2値画像は、明度成分L*が255もしく
は0の無彩色画素で構成される。各画素の色は白黒2値
であるため、色度成分a*及びb*は、共に0である。
図37の上段に示す再圧縮データφ’ijは、明度成分
L*に関する2バイトのデータであり、当該データを構
成する各1ビットのデータは、4×4画素ブロック内に
ある各画素の色が白(明度成分L*が255)または黒
(明度成分L*が0)であることを示す。この再圧縮デ
ータから符号データへの伸張は、以下の手順で行われ
る。まず、明度成分L*の平均値情報LAに10進数
で”127”を示す1バイトのデータを与える(ステッ
プS7120)。明度成分L*の階調幅情報LDに10
進数で”255”を示す1バイトのデータを与える(ス
テップS7121)。圧縮画像メモリ610に格納され
ている2バイトのデータを読み出し、読み出したデータ
をデータAとする(ステップS7122)。次に、デー
タAの先頭の1ビットデータを読み出し、これをデータ
Bとする(ステップS7123)。データBの値を調べ
る(ステップS7124)。データBの値が0の場合に
は、該当する明度成分L*のφijを01に設定する
(ステップS7125)。また、データBの値が1の場
合には、該当するφijを11に設定する(ステップS
7126)。データAの先頭の1ビットデータを終端に
シフトし、次の1ビットデータを先頭にする(ステップ
S7127)。上記ステップS7123〜S7127の
処理を16回、即ち2バイト全てのデータに対して実行
する(ステップS7128)。当該ブロック内にある画
素は無彩色であるため、色度成分a*及びb*の平均値
情報LA,階調幅指数LD、及び符号データを全て0に
設定する(ステップS7129、S7130)。図36
の下段は、上記圧縮画像メモリ610に格納されている
再圧縮データを伸張して得られる符号データを示す。
<3-4-1-3> Decompression Process from Recompression of Monochrome Binary Image FIG. 30 is a flowchart of the decompression process from the recompressed monochrome binary image data (step S7007 shown in FIG. 29). The monochrome binary image is composed of achromatic pixels having a lightness component L * of 255 or 0. Since the color of each pixel is binary black and white, the chromaticity components a * and b * are both 0.
The recompressed data φ'ij shown in the upper part of FIG. 37 is 2-byte data related to the lightness component L *, and each 1-bit data constituting the data is the color of each pixel in the 4 × 4 pixel block. Indicates white (the brightness component L * is 255) or black (the brightness component L * is 0). The expansion from the recompressed data to the code data is performed in the following procedure. First, 1-byte data indicating "127" in decimal is given to the average value information LA of the lightness component L * (step S7120). 10 is added to the gradation width information LD of the lightness component L *.
One-byte data indicating "255" in base is given (step S7121). The 2-byte data stored in the compressed image memory 610 is read, and the read data is used as data A (step S7122). Next, the first 1-bit data of the data A is read out, and is read as data B (step S7123). The value of data B is checked (step S7124). If the value of the data B is 0, φij of the corresponding lightness component L * is set to 01 (step S7125). If the value of the data B is 1, the corresponding φij is set to 11 (step S).
7126). The first one-bit data of the data A is shifted to the end, and the next one-bit data is set to the first (step S7127). The processes in steps S7123 to S7127 are executed 16 times, that is, for all data of 2 bytes (step S7128). Since the pixels in the block are achromatic, the average value information LA of the chromaticity components a * and b *, the gradation width index LD, and the sign data are all set to 0 (steps S7129 and S7130). FIG.
The lower part shows code data obtained by expanding the recompressed data stored in the compressed image memory 610.

【0045】<3-4-1-4>白黒多値画像再圧縮からの伸張
処理 図37は、白黒多値画像再圧縮データからの伸張処理
(図30に示すステップS7009)のフローチャート
を示す図である。白黒多値画像は、無彩色画素により構
成される。白黒多値画像の再圧縮データは、図38の上
段に示すように、合計6バイトのデータからなる。具体
的には、明度成分L*の平均値情報LA(1バイト),
階調幅指数LD(1バイト)及び符号データφij(4
バイト)からなる。まず、圧縮画像メモリ610より1
バイト分のデータを読み取り、これをデータAとする
(ステップS7140)。データAを明度成分L*の平
均値情報LAとする(ステップS7141)。圧縮画像
メモリ610より次の1バイトのデータを読み取り、こ
れをデータBとする(ステップS7142)。データB
を明度成分L*の階調幅情報LDとする(ステップS7
143)。圧縮画像メモリ610より残りの4バイトの
データを読み取り、これをデータCとする(ステップS
7144)。データCを明度成分L*の符号データφi
jとする(ステップS7145)。白黒多値画像の各画
素は、無彩色であるため、色度成分a*及びb*の平均
値データLA(1バイト),階調幅指数LD(1バイ
ト),符号データφij(4バイト)は、全て0に設定
する(ステップS7146、S7147)。図38下段
は、圧縮画像メモリ610に格納されている再圧縮デー
タを伸張して得られる符号データを示す。
<3-4-1-4> Decompression Processing from Re-Compression of Monochrome Multi-Valued Image FIG. 37 is a diagram showing a flowchart of decompression processing from re-compression data of monochrome multi-valued image (step S7009 shown in FIG. 30). It is. A monochrome multi-valued image is composed of achromatic pixels. As shown in the upper part of FIG. 38, the recompressed data of the black and white multi-valued image is composed of a total of 6 bytes of data. Specifically, the average value information LA (1 byte) of the lightness component L *,
The gradation width index LD (1 byte) and the code data φij (4
Bytes). First, 1 from the compressed image memory 610
The data for the byte is read, and this is set as data A (step S7140). The data A is set as the average value information LA of the lightness component L * (step S7141). The next 1-byte data is read from the compressed image memory 610, and is read as data B (step S7142). Data B
Is the gradation width information LD of the lightness component L * (step S7).
143). The remaining 4 bytes of data are read from the compressed image memory 610 and are used as data C (step S).
7144). The data C is converted to the sign data φi of the lightness component L *.
j (step S7145). Since each pixel of the black-and-white multi-valued image is achromatic, the average value data LA (1 byte), gradation width index LD (1 byte), and code data φij (4 bytes) of the chromaticity components a * and b * are Are set to 0 (steps S7146, S7147). 38 shows code data obtained by expanding the recompressed data stored in the compressed image memory 610.

【0046】<3-4-1-5>フルカラー画像再圧縮からの伸
張処理 4×4画素ブロックに関するデータが、フルカラー画像
に属するデータである場合(べた画像フラグf1=0、
カラー/モノクロ画像フラグf2=0)、圧縮画像メモ
リ610には、明度成分L*、色度成分a*及びb*の
各6バイトのデータがそのまま格納されている。このた
め、フルカラー画像では、圧縮画像メモリ610から1
バイト、1バイト、4バイトの合計6バイトのデータを
1組として順に読み出し、第1組の最初の1バイトのデ
ータを明度成分L*の平均値情報LAとし、次の1バイ
トのデータを明度成分L*の階調幅指数LDとし、次の
4バイトのデータを各画素に割り当てられた符号データ
φijとする。また、第2組の最初の1バイトのデータ
を色度成分a*の平均値情報LAとし、次の1バイトの
データを色度成分a*の階調幅指数LDとし、次の4バ
イトのデータを各画素に割り当てられた符号データφi
jとする。また、第3組の最初に読み出される1バイト
のデータを色度成分b*の平均値情報LAとし、次の1
バイトのデータを色度成分b*の階調幅指数LDとし、
次の4バイトのデータを各画素に割り当てられた符号デ
ータφijとする。
<3-4-1-5> Decompression processing from full-color image recompression When data relating to a 4 × 4 pixel block belongs to a full-color image (solid image flag f1 = 0,
The color / monochrome image flag f2 = 0) and the compressed image memory 610 directly store 6-byte data of each of the lightness component L * and the chromaticity components a * and b *. For this reason, in a full-color image, the compressed image memory
Bytes, 1 byte, and 4 bytes are read in order as a set of 6-byte data, the first 1-byte data of the first set is used as the average value information LA of the brightness component L *, and the next 1-byte data is used as the brightness. The gradation width index LD of the component L * is used, and the next 4-byte data is code data φij assigned to each pixel. The first 1-byte data of the second set is the average value information LA of the chromaticity component a *, the next 1-byte data is the gradation width index LD of the chromaticity component a *, and the next 4-byte data is Is the code data φi assigned to each pixel.
j. Also, the first one-byte data of the third set, which is read first, is used as the average value information LA of the chromaticity component b *, and
The byte data is defined as a gradation width index LD of the chromaticity component b *,
The next 4-byte data is assumed to be code data φij assigned to each pixel.

【0047】(3-4-2)AE処理 <3-4-2-1>白黒多値画像AE処理 図39は、白黒多値画像についてのAE処理(図30に
示すステップS7010)の処理フローチャートであ
る。ここでは、原稿の全画素ブロックの明度成分の平均
値情報LAのヒストグラムに基づいて、各ブロックの平
均値情報LAの値を適正値に変換し、画像の濃度分布を
適正化する。まず、ハードディスク614より明度成分
L*の平均値情報LAのヒストグラムデータを読み出
し、読み出したデータから白黒多値画像部分の最小値M
in、最大値Max及び平均値Aveを求める(ステッ
プS7200)。ここで、上記最小値Minは、高濃度
側より順に頻度を累算し、その累算値が全度数の2%を
上回ったときの濃度値とする。上記最大値Maxは、高
濃度側より順に頻度を累算し、その累算値が全度数の9
8%を上回ったときの濃度値とする。これにより、イレ
ギュラーデータを除去する。上記平均値Aveは、各濃
度値において、その頻度を掛け合わせた値の合計値を、
全度数で割ったものとする。次に、上記最小値Min、
最大値Max及び平均値Aveを用いて、以下のAE処
理を実行する(ステップS7201)。AE処理は、図
40に示すグラフに基づいて実行され、最小値Min〜
最大値Maxの範囲に分布する平均値情報LAの値を0
〜255の範囲に分布するように変更する。具体的に
は、平均値情報LAに対し、次の「数11」に示す演算
処理を実行する。演算によって得られる平均値情報L
A’を元の平均値情報LAの値と置き換える。
(3-4-2) AE Processing <3-4-2-1> AE Processing for Monochrome Multi-Valued Image FIG. 39 is a processing flowchart of the AE processing (step S7010 shown in FIG. 30) for a monochrome multi-valued image. It is. Here, the value of the average value information LA of each block is converted into an appropriate value based on the histogram of the average value information LA of the brightness components of all the pixel blocks of the document, and the density distribution of the image is optimized. First, the histogram data of the average value information LA of the lightness component L * is read from the hard disk 614, and the minimum value M of the monochrome multi-valued image portion is read from the read data.
in, the maximum value Max, and the average value Ave are obtained (step S7200). Here, the minimum value Min is a frequency value accumulated in order from the high density side, and is a density value when the accumulated value exceeds 2% of the total frequency. The maximum value Max is obtained by accumulating frequencies in order from the high density side, and the accumulated value is 9 of the total frequencies.
The density value when it exceeds 8% is set. Thereby, the irregular data is removed. The average value Ave is the sum of the values obtained by multiplying the frequency at each density value,
Divide by all frequencies. Next, the minimum value Min,
The following AE process is executed using the maximum value Max and the average value Ave (step S7201). The AE process is executed based on the graph shown in FIG.
The value of the average value information LA distributed in the range of the maximum value Max is set to 0.
It is changed so as to be distributed in the range of 255. Specifically, the arithmetic processing shown in the following “Equation 11” is performed on the average value information LA. Average value information L obtained by calculation
A ′ is replaced with the value of the original average information LA.

【数11】LA’=255/(Max−Min)×(L
A−Min) また、図41のグラフは、上記とは別のAE処理を実行
する際の平均値情報LAとAE処理後の平均値情報L
A”との関係を示す。図41に示すグラフに基づくAE
処理では、最小値Minの値を0に、平均値Aveの値
を128に、最大値Maxの値を255に補正する。具
体的には、平均値情報LAに対し、次の「数12」に示
す演算処理を実行する。演算の結果得られる平均値情報
LA”を元の平均値情報LAの値と置き換える。
LA ′ = 255 / (Max−Min) × (L
A-Min) Further, the graph of FIG. 41 shows the average value information LA and the average value information L after the AE processing when executing another AE processing.
A ". AE based on the graph shown in FIG.
In the processing, the value of the minimum value Min is corrected to 0, the value of the average value Ave is corrected to 128, and the value of the maximum value Max is corrected to 255. Specifically, the arithmetic processing shown in the following “Equation 12” is performed on the average value information LA. The average value information LA ″ obtained as a result of the operation is replaced with the original value of the average value information LA.

【数12】LA”=128/(Ave−Min)×(L
A−Min) 但し、Min≦LA≦Ave LA”=127/(Max−Ave)×(LA−Av
e)+128 但し、Ave≦LA≦Max 当該AE処理によれば、図40に示すグラフに基づいて
実行されるAE処理と比べて、中間調の再現性をより向
上することができる。図42(a)〜(d)は、図40
に示すグラフに基づいて実行されたAE処理の結果を示
す図である。図42(a)は、AE処理前の原画像(中
間調画像)を示す。図42(b)は、上記原画像の明度
成分L*の平均値情報LAのヒストグラムデータを示
す。AE処理は、原画像の画像濃度が全体的に低濃度側
に偏っているのを補正する。図42(c)は、図40に
示すグラフに基づくAE処理後の画像を示す。図42
(d)は、AE処理後のヒストグラムデータを示す。図
42(a)及び(c)を比較すると、データの分布の偏
りが補正されていることが理解される。
LA ”= 128 / (Ave−Min) × (L
A−Min) where Min ≦ LA ≦ Ave LA ”= 127 / (Max−Ave) × (LA−Av)
e) +128 However, according to the AE processing, Ave ≦ LA ≦ Max, the reproducibility of the halftone can be further improved as compared with the AE processing executed based on the graph shown in FIG. 42 (a) to (d) show FIG.
FIG. 13 is a diagram showing a result of the AE process executed based on the graph shown in FIG. FIG. 42A shows an original image (halftone image) before the AE processing. FIG. 42B shows histogram data of the average value information LA of the lightness component L * of the original image. The AE processing corrects that the image density of the original image is generally biased toward the low density side. FIG. 42C shows an image after the AE processing based on the graph shown in FIG. FIG.
(D) shows the histogram data after the AE processing. Comparing FIGS. 42A and 42C, it is understood that the bias of the data distribution is corrected.

【0048】<3-4-2-2>フルカラー画像AE処理 図43は、フルカラー画像AE処理(図30に示すステ
ップS7013)のフローチャートを示す。ここでは、
原稿の全画素ブロックの明度成分及び色度成分の平均値
情報LAのヒストグラムに基づいて、各ブロックの平均
値情報LAの値を適正値に変換し、画像の濃度分布を適
正化する。まず、ハードディスク614より明度成分L
*の平均値情報LAのヒストグラムデータを読み出し、
読み出したヒストグラムデータより、フルカラー画像の
最小値Min、最大値Max及び平均値Aveを求める
(ステップS7210)。同様に、ハードディスク61
4より明度成分a*及びb*の平均値情報LAのヒスト
グラムデータを読み出し、読み出したヒストグラムデー
タからフルカラー画像の最小値Min、最大値Max及
び平均値Aveを求める(ステップS7211、S72
12)。図40又は図41にグラフに基づくAE処理を
実行して、明度成分L*の平均値情報LAの値を書き換
える(ステップS7213)。同様に、色度成分a*及
びb*の平均値情報LAの値を必要に応じて書き換える
(ステップS7214、S7215)。
<3-4-2-2> Full Color Image AE Processing FIG. 43 is a flowchart of the full color image AE processing (step S7013 shown in FIG. 30). here,
The value of the average value information LA of each block is converted into an appropriate value based on the histogram of the average value information LA of the brightness component and the chromaticity component of all the pixel blocks of the document, and the density distribution of the image is optimized. First, the lightness component L from the hard disk 614
* Read out the histogram data of the average value information LA,
The minimum value Min, the maximum value Max, and the average value Ave of the full-color image are obtained from the read histogram data (step S7210). Similarly, the hard disk 61
4, the histogram data of the average value information LA of the lightness components a * and b * is read, and the minimum value Min, the maximum value Max, and the average value Ave of the full-color image are obtained from the read histogram data (steps S7211, S72).
12). The AE process based on the graph in FIG. 40 or 41 is executed to rewrite the value of the average value information LA of the lightness component L * (step S7213). Similarly, the value of the average value information LA of the chromaticity components a * and b * is rewritten as necessary (steps S7214 and S7215).

【0049】<3-4-3>画像編集/加工処理 図44〜図48は、各画像の属性における編集/加工処
理のフローチャートを示す。ここでは、各ブロック毎の
平均値情報LA、階調幅指数LD及び符号データφij
の値を予定値に変換することで、編集/加工処理を実行
する。編集/加工処理の内容は、前記キー入力処理(ス
テップS2000)にて設定される。各画像属性につい
て設定されている編集/加工処理についてのモードフラ
グMFの値が”1”の場合には、以下の処理を実行する。 (a)モノカラー変換処理 当該処理は、フルカラー画像を対象としており、その画
像をモノクロ画像に変換する。フルカラー画像をモノク
ロ画像に変換するには、色度成分a*及びb*の値を0
に置き換えることで実現されるが、GBTC方式で符号
化されたデータを用いれば、色度成分a*及びb*の平
均値情報LAと、階調幅指数LDの値を共に0に変換す
るだけで実現することができる。これにより、他の4×
4画素ブロックについてのカラー情報を失わずに、属性
判別処理においてフルカラー画像であると判別された4
×4画素ブロックについてのみをモノクロ画像に変換す
ることができる。また、符号化されたデータを用いるた
め、256階調データを用いて実行する場合に比べ、変
換に要するメモリ量を大幅に減少することができる。 (b)色変換処理 当該処理は、文字画像のような白黒2値画像、及びフル
カラー画像を対象とする。白黒2値画像における色変換
処理とは、黒色の文字部分及び白色の下地を所定の明度
及び色度に変換することをいう。白黒2値画像の黒色部
分及び白色部分を所定の明度及び色度に変換するには、
明度成分L*、色度成分a*及びb*のそれぞれの平均
値情報LA及び階調幅情報LDを変換することで実現さ
れる。これにより、他の4×4画素ブロックについての
色情報を変更することなく、文字画像部分のみの色変換
をすることができる。フルカラー画像の場合も同様の処
理により色変換が実現される。 (c)イレース処理 当該処理は、全ての画像を対象としており、選択した属
性の各4×4画素ブロックについて、その明度成分L
*、色度成分a*及びb*の平均値情報LA及び階調幅
情報LDの値を共に0に書き換え、白色データに変換す
る。また、設定により、選択した属性以外の属性の各4
×4画素ブロックのデータを、白色データに変換するこ
とで、トリミング操作を行うことも可能である。 (d)dpi変換処理 当該処理は、白黒多値画像、及びフルカラー画像を対象
としており、4×4画素分の符号データφijを、2×
2画素や1×1画素のデータに間引いて記憶すること
で、画像解像度を低くし、取り扱うデータ量を少なくす
る。 (e)ネガポジ反転処理 当該処理は、白黒多値画像、及びフルカラー画像を対象
としており、該当する4×4画素ブロックの明度成分L
*の値を256より差し引いた値に変換し、更に、色度
成分a*及びb*の値の符号を反転する。これにより、
多値階調画像のネガポジ反転処理が実現される。 (f)下地カット処理 当該処理は、白黒べた画像、及びカラーべた画像を対象
としており、該当する4×4画素ブロックの明度成分L
*の平均値情報LAを書き換えることで、下地レベルを
変換する。この際、特徴量抽出処理(ステップS609
0、及びS6100)により求めた明度成分L*につい
てのヒストグラムデータを使用する。
<3-4-3> Image Editing / Processing Process FIGS. 44 to 48 show flowcharts of the editing / processing process for the attributes of each image. Here, average value information LA, gradation width index LD, and code data φij for each block
The editing / processing process is executed by converting the value of “.” Into the expected value. The contents of the editing / processing process are set in the key input process (step S2000). If the value of the mode flag MF for the editing / processing processing set for each image attribute is "1", the following processing is executed. (A) Mono-color conversion processing This processing is for a full-color image, and converts the image into a monochrome image. To convert a full-color image to a monochrome image, set the chromaticity components a * and b * to 0
However, if data encoded by the GBTC method is used, it is only necessary to convert both the average value information LA of the chromaticity components a * and b * and the value of the gradation width index LD to 0. Can be realized. This gives us another 4x
Without losing the color information for the four pixel block, the attribute discrimination processing determines that the 4
Only a × 4 pixel block can be converted to a monochrome image. In addition, since encoded data is used, the amount of memory required for conversion can be significantly reduced as compared with the case where the processing is performed using 256 gradation data. (B) Color conversion processing This processing targets a monochrome binary image such as a character image and a full-color image. The color conversion process in a black-and-white binary image refers to converting a black character portion and a white background into predetermined brightness and chromaticity. To convert the black and white portions of a black and white binary image to predetermined brightness and chromaticity,
This is realized by converting the average value information LA and the gradation width information LD of the lightness component L * and the chromaticity components a * and b *. As a result, color conversion of only the character image portion can be performed without changing the color information of the other 4 × 4 pixel blocks. In the case of a full-color image, color conversion is realized by similar processing. (C) Erase processing This processing is performed on all images, and the brightness component L of each 4 × 4 pixel block having the selected attribute is obtained.
*, The values of the average value information LA and the gradation width information LD of the chromaticity components a * and b * are both rewritten to 0 and converted to white data. Also, depending on the setting, each of the attributes other than the selected attribute
It is also possible to perform a trimming operation by converting data of a × 4 pixel block into white data. (D) dpi conversion processing This processing is performed on a monochrome multi-valued image and a full-color image, and encodes 4 × 4 pixel code data φij into 2 × 4 pixels.
By thinning out and storing data of 2 pixels or 1 × 1 pixel, the image resolution is reduced and the amount of data to be handled is reduced. (E) Negative / Positive Inversion Processing This processing is performed on a monochrome multi-valued image and a full-color image, and the brightness component L of the corresponding 4 × 4 pixel block is used.
The value of * is converted to a value obtained by subtracting it from 256, and the signs of the values of the chromaticity components a * and b * are inverted. This allows
Negative / positive reversal processing of a multi-value gradation image is realized. (F) Background cut processing This processing is performed on a black-and-white solid image and a color solid image, and the lightness component L of the corresponding 4 × 4 pixel block is used.
The background level is converted by rewriting the average value information LA of *. At this time, the feature amount extraction process (step S609)
0, and histogram data for the lightness component L * obtained in S6100).

【0050】<3-4-3-1>白黒べた画像編集/加工処理 図44は、白黒べた画像編集/加工処理(図29に示す
ステップS7004)のフローチャートを示す図であ
る。白黒べた画像では、モードフラグMF13の値が”1”
に設定されている場合には(ステップS7300でYE
S)、イレース処理(ステップS7301)を実行す
る。また、モードフラグMF14の値が”1”に設定されて
いる場合には(ステップS7302でYES)、ネガポ
ジ反転処理(ステップS7303)を実行する。モード
フラグMF15の値が”1”に設定されている場合には(ス
テップS304でYES)、下地カット処理(ステップ
S7305)を実行する。
<3-4-3-1> Monochrome Solid Image Editing / Processing Process FIG. 44 is a flowchart showing the black / white solid image editing / processing process (step S7004 shown in FIG. 29). For a black and white solid image, the value of the mode flag MF13 is "1"
Is set to (YES in step S7300).
S), an erase process (step S7301) is executed. If the value of the mode flag MF14 is set to "1" (YES in step S7302), negative / positive reversal processing (step S7303) is executed. If the value of the mode flag MF15 is set to "1" (YES in step S304), a background cutting process (step S7305) is performed.

【0051】<3-4-3-2>カラーべた画像編集/加工処理 図45は、カラーべた画像編集/加工処理(図29に示
すステップS7006)のフローチャートを示す図であ
る。カラーべた画像では、モードフラグMF23の値が”
1”に設定されている場合には(ステップS7310で
YES)、イレース処理(ステップS7311)を実行
する。モードフラグMF24の値が”1”に設定されている
場合には(ステップS7312でYES)、ネガポジ反
転処理(ステップS7313)を実行する。モードフラ
グMF25の値が”1”に設定されている場合には(ステッ
プS7314でYES)、下地カット処理(ステップS
7315)を実行する。
<3-4-3-2> Color Solid Image Editing / Processing Process FIG. 45 is a flowchart showing the color solid image editing / processing process (step S7006 shown in FIG. 29). In the color solid image, the value of the mode flag MF23 is "
If "1" is set (YES in step S7310), an erase process (step S7311) is performed. If the value of mode flag MF24 is set to "1" (YES in step S7312). When the value of the mode flag MF25 is set to "1" (YES in step S7314), the background cutting process (step S731) is performed.
7315).

【0052】<3-4-3-3>白黒2値画像編集/加工処理 図46は、白黒2値画像編集/加工処理(図29に示す
ステップS7008)のフローチャートを示す図であ
る。白黒2値画像では、モードフラグMF32の値が”1”
に設定されている場合には(ステップS7320でYE
S)、色変換処理(ステップS7321)を実行する。
モードフラグMF33の値が”1”に設定されている場合に
は(ステップS7322でYES)、イレース処理(ス
テップS7323)を実行する。モードフラグMF34の値
が”1”に設定されている場合には(ステップS732
4でYES)、ネガポジ反転処理(ステップS732
5)を実行する。
<3-4-3-3> Black / White Binary Image Editing / Processing Process FIG. 46 is a flowchart showing the black-and-white binary image editing / processing process (step S7008 shown in FIG. 29). In a monochrome binary image, the value of the mode flag MF32 is “1”.
Is set to (YES in step S7320).
S), a color conversion process (step S7321) is performed.
If the value of the mode flag MF33 is set to "1" (YES in step S7322), an erase process (step S7323) is performed. If the value of the mode flag MF34 is set to "1" (step S732)
4; YES), negative / positive reversal processing (step S732)
Execute 5).

【0053】<3-4-3-4>白黒多値画像編集/加工処理 図47は、白黒多値画像編集/加工処理(図30に示す
ステップS7011)のフローチャートを示す図であ
る。白黒多値画像では、モードフラグMF43の値が”1”
に設定されている場合には(ステップS7330でYE
S)、イレース処理(ステップS7331)を実行す
る。モードフラグMF44の値が”1”に設定されている場
合には(ステップS7332でYES)、ネガポジ反転
処理(ステップS7333)を実行する。モードフラグ
MF46の値が”1”に設定されている場合には(ステップ
S7334でYES)、dpi変換処理(ステップS7
335)を実行する。
<3-4-3-4> Monochrome Multi-Valued Image Editing / Processing Process FIG. 47 is a flowchart showing the black-and-white multi-valued image editing / processing process (step S7011 shown in FIG. 30). In a monochrome multi-valued image, the value of the mode flag MF43 is “1”.
Is set to (YES in step S7330).
S), an erase process (step S7331) is performed. If the value of the mode flag MF44 is set to “1” (YES in step S7332), negative / positive inversion processing (step S7333) is performed. Mode flag
If the value of MF46 is set to "1" (YES in step S7334), dpi conversion processing (step S7)
335).

【0054】<3-4-3-5>フルカラー画像編集/加工処理 図48は、フルカラー画像編集/加工処理(図30に示
すステップS7014)についてのフローチャートを示
す図である。フルカラー画像では、モードフラグMF51の
値が”1”に設定されている場合には(ステップS73
40でYES)、モノカラー変換処理(ステップS73
41)を実行する。モードフラグMF52の値が”1”に設
定されている場合には(ステップS7342でYE
S)、色変換処理(ステップS7343)を実行する。
モードフラグMF53の値が”1”に設定されている場合に
は(ステップS7344でYES)、イレース処理(ス
テップS7345)を実行する。モードフラグMF54の値
が”1”に設定されている場合には(ステップS734
6でYES))、ネガポジ反転処理(ステップS734
7)を実行する。モードフラグMF56の値が”1”に設定
されている場合には(ステップS7348でYES)、
dpi変換処理(ステップS7349)を実行する。
<3-4-3-5> Full Color Image Editing / Processing Process FIG. 48 is a flowchart showing the full color image editing / processing process (step S 7014 shown in FIG. 30). If the value of the mode flag MF51 is set to "1" for a full-color image (step S73)
(YES at 40), mono-color conversion processing (step S73)
41) is executed. If the value of the mode flag MF52 is set to "1" (YES in step S7342)
S), a color conversion process (step S7353) is performed.
If the value of the mode flag MF53 is set to "1" (YES in step S7344), an erase process (step S7345) is performed. If the value of the mode flag MF54 is set to "1" (step S734)
6) (YES), negative / positive reversal processing (step S734)
Execute 7). If the value of the mode flag MF56 is set to "1" (YES in step S7348),
A dpi conversion process (step S7349) is executed.

【0055】なお、上記編集/加工処理では、属性判別
結果に基づいて、平均値情報LAや階調幅指数LDの値
を、設定された編集/加工内容に応じて予定値に変更す
るが、本発明は、これに限定されず、復号化されたデー
タの値を予定値に変更することとしても良い。
In the above-mentioned editing / processing, the values of the average value information LA and the gradation width index LD are changed to scheduled values in accordance with the set editing / processing, based on the attribute determination result. The present invention is not limited to this, and the value of the decoded data may be changed to a predetermined value.

【0056】[0056]

【発明の効果】本発明の第1の画像処理装置は、属性判
別手段により、符号化されたデータの平均値情報及び階
調幅指数に基づいて、当該ブロックの画像の属性を判別
することができる。このため、符号化前の画像データよ
り画像の属性を判別する場合に比べて、より簡単な演算
で、かつ少ないメモリで判別処理を実行することができ
る。また、第2の画像処理装置では、判別結果に基づい
て、符号化されたデータを更に圧縮符号化することで、
画像データの圧縮率を向上することができ、符号データ
を格納するのに要するメモリを減少することができる。
また、上記何れかの画像処理装置において、全ブロック
の平均値情報のヒストグラムに基づいて、判別結果に応
じて各ブロックの明度成分、または明度成分及び色度成
分の平均値情報の値を適正値に変換することで、符号化
前のデータを用いずとも、再現される画像の濃度分布を
適正化することができる。これにより、当該処理に必要
なメモリの節約や処理時間の短縮を図ることができる。
また、判別結果に基づいて、平均値情報、階調幅指数、
符号データφijの値を予定値に変換することで、符号
化前のデータを用いずとも、画像の編集/加工を行うこ
とができる。これにより、当該処理に必要なメモリの節
約や処理時間の短縮を図ることができる。
According to the first image processing apparatus of the present invention, the attribute of the image of the block can be determined by the attribute determining means based on the average value information of the encoded data and the gradation width index. . For this reason, the determination process can be performed with a simpler operation and with less memory than in the case where the attribute of the image is determined from the image data before encoding. Further, the second image processing apparatus further compresses and encodes the encoded data based on the determination result,
The compression ratio of image data can be improved, and the memory required to store the code data can be reduced.
In any one of the above image processing apparatuses, based on the histogram of the average value information of all the blocks, the value of the brightness component or the average value information of the brightness component and the chromaticity component of each block is set to an appropriate value in accordance with the determination result. , The density distribution of the reproduced image can be optimized without using data before encoding. As a result, it is possible to save the memory required for the processing and reduce the processing time.
Also, based on the determination result, average value information, gradation width index,
By converting the value of the code data φij into a predetermined value, the image can be edited / processed without using data before coding. As a result, it is possible to save the memory required for the processing and reduce the processing time.

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

【図1】 一般的なGBTC方式の符号化処理の流れを
説明するための図である。
FIG. 1 is a diagram for explaining the flow of a general GBTC encoding process.

【図2】 GBTC方式の符号化処理を示す図である。FIG. 2 is a diagram illustrating an encoding process of the GBTC system.

【図3】 本実施例のデジタルカラー複写機の構成断面
図である。
FIG. 3 is a sectional view of the configuration of a digital color copying machine according to the present embodiment.

【図4】 読取信号処理部106の実行する各信号処理
を示すブロック図である。
FIG. 4 is a block diagram showing each signal processing executed by a read signal processing unit 106.

【図5】 L*a*b*表色系立体を示す図である。FIG. 5 is a diagram showing an L * a * b * color system solid;

【図6】(a)は、明度成分L*の分布を各原稿毎に0
〜255に変更し、(b),(c)は、色度a*及びb
*の各成分の分布を各原稿毎に−127〜128に変更
する際に用いるグラフを示す図である。
FIG. 6A shows the distribution of the lightness component L * is set to 0 for each document.
(B) and (c) are chromaticity a * and b
It is a figure which shows the graph used when changing the distribution of each component of * to -127-128 for every original.

【図7】 (a)〜(c)は、復号化されたL2*,a
2*,b2*の各データの分布を元のL*max〜L*
min,a*max〜a*min,b*max〜b*m
inに戻す際に用いるグラフを示す図である。
7 (a) to 7 (c) show the decoded L2 *, a
The distribution of each data of 2 * and b2 * is calculated from the original L * max to L *
min, a * max to a * min, b * max to b * m
It is a figure showing the graph used when returning to in.

【図8】 操作パネル300の正面図である。FIG. 8 is a front view of the operation panel 300.

【図9】 複写機のCPU611の実行する複写処理の
メインルーチンを示す図である。
FIG. 9 is a diagram showing a main routine of a copying process executed by a CPU 611 of the copying machine.

【図10】 キー入力処理(ステップS2000)の処
理フローチャートを示す図である。
FIG. 10 is a diagram illustrating a processing flowchart of key input processing (step S2000).

【図11】 GBTC方式で符号化されたデータの再圧
縮処理(ステップS6000)に関するフローチャート
を示す図である。
FIG. 11 is a diagram showing a flowchart relating to recompression processing (step S6000) of data encoded by the GBTC method.

【図12】 属性判別処理(ステップS6002)のフ
ローチャートを示す図である。
FIG. 12 is a diagram illustrating a flowchart of an attribute determination process (step S6002).

【図13】 べた画像判別処理(ステップS6020)
のフローチャートを示す図である。
FIG. 13 is a solid image discriminating process (step S6020).
FIG. 4 is a diagram showing a flowchart of the above.

【図14】 カラー/モノクロ判別処理(ステップS6
022、S6026)のフローチャートを示す図であ
る。
FIG. 14 is a color / monochrome determination process (step S6)
022, S6026).

【図15】 2値/多値判別処理(ステップS602
8)のフローチャートを示す図である。
FIG. 15 shows a binary / multi-value discriminating process (step S602).
It is a figure which shows the flowchart of 8).

【図16】 白黒べた画像特徴量抽出処理(ステップS
6004)のフローチャートを示す図である。
FIG. 16 shows a black-and-white solid image feature extraction process (step S).
FIG. 6004 is a diagram showing a flowchart of (6004).

【図17】 カラーべた画像特徴量抽出処理(ステップ
S6006)のフローチャートを示す図である。
FIG. 17 is a diagram illustrating a flowchart of a color solid image feature amount extraction process (step S6006).

【図18】 白黒2値画像特徴量抽出処理(ステップS
6008)のフローチャートを示す図である。
FIG. 18 is a flowchart of a black-and-white binary image feature extraction process (step S).
FIG. 6008 is a diagram showing a flowchart of (6008).

【図19】 白黒多値画像特徴量抽出処理(ステップS
6010)のフローチャートを示す図である。
FIG. 19 is a black-and-white multivalued image feature amount extraction process (step S);
FIG. 6010 is a view showing a flowchart of (6010).

【図20】 フルカラー画像特徴量抽出処理(ステップ
S6012)のフローチャートを示す図である。
FIG. 20 is a diagram showing a flowchart of a full-color image feature amount extraction process (step S6012).

【図21】 白黒べた画像再圧縮処理(ステップS60
05)の処理フローチャートを示す図である。
FIG. 21 is a black-and-white solid image recompression process (step S60).
It is a figure which shows the processing flowchart of 05).

【図22】 符号化されたデータと、白黒べた画像再圧
縮処理によって形成される再圧縮データとの関係を示す
概念図である。
FIG. 22 is a conceptual diagram showing a relationship between encoded data and recompressed data formed by a black and white solid image recompression process.

【図23】 カラーべた画像再圧縮処理(ステップS6
007)の処理フローチャートを示す図である。
FIG. 23 is a color solid image recompression process (step S6).
007) is a diagram showing a processing flowchart of FIG.

【図24】 符号データと、カラーべた画像再圧縮処理
によって形成される再圧縮データとの関係を示す概念図
である。
FIG. 24 is a conceptual diagram illustrating a relationship between code data and recompressed data formed by a solid color image recompression process.

【図25】 白黒2値画像再圧縮処理(ステップS60
09)のフローチャートを示す図である。
FIG. 25: Black and white binary image recompression processing (step S60)
FIG. 09 is a diagram showing a flowchart of (09).

【図26】 符号データと、白黒2値画像再圧縮処理に
よって形成される再圧縮データと2の関係を示す概念図
である。
FIG. 26 is a conceptual diagram showing the relationship between code data and recompressed data formed by a black and white binary image recompression process and 2.

【図27】 白黒多値画像の再圧縮処理(ステップS6
011)のフローチャートを示す図である。
FIG. 27 is a process for recompressing a monochrome multi-valued image (step S6).
It is a figure which shows the flowchart of 011).

【図28】 符号データと、白黒多値画像の再圧縮処理
によって形成される再圧縮データとの関係を示す概念図
である。
FIG. 28 is a conceptual diagram showing a relationship between code data and recompressed data formed by recompression processing of a monochrome multivalued image.

【図29】 再圧縮伸張処理(ステップS7000)の
フローチャートを示す図である。
FIG. 29 is a view showing a flowchart of recompression / expansion processing (step S7000).

【図30】 再圧縮伸張処理(ステップS7000)の
フローチャートを示す図である。
FIG. 30 is a view showing a flowchart of recompression / expansion processing (step S7000).

【図31】 白黒べた画像再圧縮からの伸張処理(ステ
ップS7003)のフローチャートを示す図である。
FIG. 31 is a diagram illustrating a flowchart of a decompression process (step S7003) from recompression of a black-and-white solid image.

【図32】 上段に、再圧縮データを示し、下段に、再
圧縮データを伸張して得られる符号データを示す図であ
る。
FIG. 32 is a diagram showing recompressed data in the upper part and code data obtained by expanding the recompressed data in the lower part.

【図33】 カラーべた画像再圧縮からの伸張処理(ス
テップS7005)のフローチャートを示す図である。
FIG. 33 is a diagram illustrating a flowchart of a decompression process (step S7005) from color solid image recompression.

【図34】 上段に、再圧縮データを示し、下段に、再
圧縮データを伸張して得られる符号データを示す図であ
る。
FIG. 34 is a diagram showing recompressed data in the upper part and code data obtained by expanding the recompressed data in the lower part.

【図35】 白黒2値画像再圧縮データからの伸張処理
(ステップS7007)のフローチャートを示す図であ
る。
FIG. 35 is a diagram showing a flowchart of a decompression process from black and white binary image recompressed data (step S7007).

【図36】 上段に、再圧縮データを示し、下段に、再
圧縮データを伸張して得られる符号データを示す図であ
る。
FIG. 36 is a diagram showing recompressed data in the upper part and code data obtained by expanding the recompressed data in the lower part.

【図37】 白黒多値画像再圧縮からの伸張処理(ステ
ップS7009)のフローチャートを示す図である。
FIG. 37 is a diagram illustrating a flowchart of a decompression process from recompression of a monochrome multi-valued image (step S7009).

【図38】 上段に、再圧縮データを示し、下段に、再
圧縮データを伸張して得られる符号データを示す図であ
る。
FIG. 38 is a diagram illustrating recompressed data in the upper part and code data obtained by expanding the recompressed data in the lower part.

【図39】 白黒多値画像についてのAE処理(ステッ
プS7010)の処理フローチャートを示す図である。
FIG. 39 is a view showing a processing flowchart of AE processing (step S7010) for a monochrome multi-valued image.

【図40】 平均値情報LAと、AE処理後の平均値情
報LA’との関係を示すグラフである。
FIG. 40 is a graph showing a relationship between average value information LA and average value information LA ′ after AE processing.

【図41】 平均値情報LAと、別のAE処理後の平均
値情報LA”との関係を示すグラフである。
FIG. 41 is a graph showing a relationship between average value information LA and average value information LA ″ after another AE process.

【図42】 (a)は、AE処理前の原稿画像(中間調
画像)を示し、(b)は、(a)に示す画像の明度成分
L*の平均値情報LAのヒストグラムデータを示し、
(c)は、AE処理後の画像を示し、(d)は、AE処
理後の原稿画像のヒストグラムデータを示す。
42A shows a document image (halftone image) before AE processing, FIG. 42B shows histogram data of average value information LA of the lightness component L * of the image shown in FIG.
(C) shows the image after AE processing, and (d) shows the histogram data of the document image after AE processing.

【図43】 フルカラー画像AE/色調整処理(ステッ
プS7013)のフローチャートを示す図である。
FIG. 43 is a view illustrating a flowchart of a full-color image AE / color adjustment process (step S7013).

【図44】 白黒べた画像編集/加工処理(ステップS
7004)のフローチャートを示す図である。
FIG. 44: Black and white solid image editing / processing (step S)
FIG. 7004 is a diagram showing a flowchart of (7004).

【図45】 カラーべた画像編集/加工処理(ステップ
S7006)のフローチャートを示す図である。
FIG. 45 is a view showing a flowchart of color solid image editing / processing processing (step S7006).

【図46】 白黒2値画像編集/加工処理(ステップS
7008)のフローチャートを示す図である。
FIG. 46: Black / white binary image editing / processing (step S)
FIG. 7007 is a diagram showing a flowchart of (7008).

【図47】 白黒多値画像編集/加工処理(ステップS
7011)のフローチャートを示す図である。
FIG. 47: Black-and-white multi-valued image editing / processing (step S)
FIG. 7011 is a diagram showing a flowchart of (7011).

【図48】 フルカラー画像編集/加工処理(ステップ
S7014)のフローチャートを示す図である。
FIG. 48 is a view showing a flowchart of full color image editing / processing processing (step S7014).

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

106…読取信号処理部 300…操作パネル 601…読み取り装置色補正処理部 602…色空間変換処理部 603…色空間最適化処理部 604…符号化/復号化処理部 605…色空間逆最適化処理部 606…色空間逆変換処理部 607…反射/濃度変換処理部 608…マスキング処理部 610…圧縮画像メモリ 611…CPU 614…ハードディスク 106: read signal processing unit 300: operation panel 601: reading device color correction processing unit 602: color space conversion processing unit 603 ... color space optimization processing unit 604 ... encoding / decoding processing unit 605: color space inverse optimization processing Unit 606: Color space inverse conversion processing unit 607: Reflection / density conversion processing unit 608: Masking processing unit 610: Compressed image memory 611: CPU 614: Hard disk

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−164950(JP,A) 特開 平4−96575(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-6-164950 (JP, A) JP-A-4-96575 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1/41-1/419

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原稿のRGB画像データを明度成分のデ
ータと色度成分のデータに変換するデータ変換処理部
と、 明度成分及び色度成分のデータを、それぞれ所定の画素
マトリクスからなるブロックに分割し、各ブロック毎
に、ブロック内のデータより定められるパラメータP1
以下の値のデータの平均値Q1とパラメータP2(但
し、P1<P2の関係を有する)以上の値のデータの平
均値Q4の和を2等分して求められる平均値情報と、上
記平均値Q4と平均値Q1の差である階調幅指数とに基
づいて、ブロック内の各画素のデータを、当該ブロック
内の階調分布の範囲内において前記データよりも少ない
階調レベルで量子化して得られる符号データに符号化す
る符号化処理部と、 符号化処理の施されたブロックについて、明度成分と色
度成分の平均値情報、階調幅指数及び符号データの値に
基づいて当該ブロックの属する画像の属性を判別する属
性判別処理部と、属性判別手段により判別された画像の属性に基いて上記
符号化データを圧縮する圧縮処理部と、 圧縮処理部により圧縮されたデータと 属性判別結果とを
記憶する記憶部を備えることを特徴とする画像処理装
置。
1. A data conversion processing unit for converting RGB image data of a document into lightness component data and chromaticity component data, and divides the lightness component and chromaticity component data into blocks each having a predetermined pixel matrix. Then, for each block, a parameter P1 determined from data in the block
Average value information obtained by dividing the sum of the average value Q1 of data having the following values and the average value Q4 of data having a value equal to or greater than the parameter P2 (where P1 <P2) into two, and the average value Based on Q4 and a gradation width index which is a difference between the average value Q1, the data of each pixel in the block is quantized at a gradation level smaller than the data within the range of the gradation distribution in the block. An encoding processing unit for encoding the encoded data to be encoded, and for the encoded block, an image to which the block belongs based on the average value information of the brightness component and the chromaticity component, the gradation width index, and the value of the encoded data. An attribute discrimination processing unit for discriminating the attribute of the image;
The image processing apparatus characterized by comprising a storage unit that stores a compression processor for compressing the encoded data, the attribute discrimination result and compressed data by the compression processing section.
【請求項2】 原稿のRGB画像データを明度成分のデ
ータと色度成分のデータに変換するデータ変換処理部
と、 明度成分及び色度成分のデータを、それぞれ所定の画素
マトリクスからなるブロックに分割し、各ブロック毎
に、ブロック内のデータり定められるパラメータP1
以下の値のデータの平均値Q1とパラメータP2(但
し、P1<P2の関係を有する)以上の値のデータの平
均値Q4の和を2等分して求められる平均値情報と、上
記平均値Q4と平均値Q1の差である階調幅指数とに基
づいて、ブロック内の各画素のデータを、当該ブロック
内の階調分布の範囲内において前記データよりも少ない
階調レベルで量子化して得られる符号データに符号化す
る符号化処理部と、 符号化処理の施されたブロックについて、明度成分と色
度成分の平均値情報、階調幅指数及び符号データの値に
基づいて当該ブロックの属する画像属性を判別する属
性判別処理部と、 明度成分及び色度成分の平均値情報と、階調幅指数と、
符号データの内、判別した画像の属性に基づいて常に特
定することのできるデータを削減する圧縮処理を実行す
る圧縮処理部と、 圧縮処理後のデータと、属性判別結果を記憶する記憶部
と、 記憶部に記憶されている圧縮処理後のデータと属性判別
結果とを読み出し、属性判別結果に基づいて圧縮処理に
おいて削減されたデータを復元する圧縮データ伸張処理
部と、 データ伸張処理部において伸張された明度成分及び色度
成分の平均値情報と、階調幅指数とに基づいて、符号デ
ータをブロック単位で復号化する復号化処理部とを備え
ることを特徴とする画像処理装置。
2. A data conversion processing unit for converting RGB image data of a document into lightness component data and chromaticity component data, and divides the lightness component and chromaticity component data into blocks each having a predetermined pixel matrix. and, for each block, the parameters P1 to be pRESCRIBED bY data in the block
Average value information obtained by dividing the sum of the average value Q1 of data having the following values and the average value Q4 of data having a value equal to or greater than the parameter P2 (where P1 <P2) into two, and the average value Based on Q4 and a gradation width index which is a difference between the average value Q1, the data of each pixel in the block is quantized at a gradation level smaller than the data within the range of the gradation distribution in the block. An encoding processing unit that encodes the encoded data to be encoded, and, for the encoded block, an image to which the block belongs based on the average value information of the brightness component and the chromaticity component, the gradation width index, and the value of the encoded data. and attribute determination processing unit for determining the attributes, the average information of luminance component and a chromaticity component, and tone width index,
A compression processing unit that performs a compression process of reducing data that can always be specified based on the determined image attribute among the code data; a storage unit that stores the data after the compression process and an attribute determination result; A compressed data decompression processing unit that reads out the data after compression processing and the attribute determination result stored in the storage unit and restores the data reduced in the compression processing based on the attribute determination result; An image processing apparatus comprising: a decoding processing unit that decodes code data in block units based on average value information of a lightness component and a chromaticity component and a gradation width index.
【請求項3】 請求項1又は請求項2に記載された画像
処理装置において、 上記属性判別処理部は、判別するブロックの明度成分及
び色度成分の階調幅指数の値が全て所定値以下である場
合に、当該ブロックがべた画像に属すると判別する判別
処理と、明度成分及び色度成分の階調幅指数の値が1つ
でも上記所定値以上の値を持つ場合には、当該ブロック
画像が2以上の階調を有する画像に属すると判別する判
別処理と、更に、判別するブロックの色度成分の平均値
情報が共に上記とは別の所定値以下である場合には、当
該ブロックが白黒画像に属すると判別する判別処理と、
色度成分の平均値情報の値が上記とは別の所定値以上で
ある場合には、当該ブロックカラー画像に属すると判
別する判別処理と、判別するブロックの明度成分に割り
当てられた符号データの値が2極化する場合、当該ブロ
ック2値画像に属すると判別し、上記2極化しない場
合には、当該ブロック多値画像に属すると判別する判
別処理の内、少なくとも1つの判別処理を実行すること
を特徴とする画像処理装置。
3. The image processing apparatus according to claim 1, wherein the attribute determination processing unit determines that the values of the tone width index of the brightness component and the chromaticity component of the block to be determined are all less than or equal to a predetermined value. In a certain case, the discriminating process of discriminating that the block belongs to a solid image, and if at least one value of the gradation width index of the brightness component and the chromaticity component has a value equal to or more than the predetermined value, the block image is If the discriminating process of discriminating that the block belongs to an image having two or more gradations and the average value information of the chromaticity components of the discriminating block are both equal to or less than a predetermined value different from the above, the block is black and white. A determination process of determining that the image belongs to an image;
If the value of the average information of the chromaticity component is different than the predetermined value and above, encoded data the block is assigned to the luminance component of the determination process and the discrimination block to determine that belong to the color image If the value is 2 poling, determines that the block belongs to a binary image, if not the two poled, among the block of determination processing to determine that belong to multi-level image, at least one determination An image processing apparatus for performing processing.
【請求項4】 請求項1乃至請求項3の何れか1つに記
載された画像処理装置であって、 更に、符号化処理部において符号データをブロック単位
で復号化する前に、当該ブロックの属性に応じて、その
属性の全ブロックの明度成分、または明度成分及び色度
成分の平均値情報のヒストグラムを求め、求めたヒスト
グラムに基づいて、各ブロックの平均値情報の値を適正
値に変換する平均値情報変換処理手段を備えることを特
徴とする画像処理装置。
4. The image processing apparatus according to claim 1, further comprising: a decoding unit that decodes the encoded data before decoding the encoded data in block units. According to the attribute, a histogram of the lightness component or the average value information of the lightness component and the chromaticity component of all the blocks of the attribute is obtained, and the value of the average value information of each block is converted into an appropriate value based on the obtained histogram. An image processing apparatus comprising: an average value information conversion processing unit.
【請求項5】請求項1乃至請求項3の何れか1つに記載
された画像処理装置において、 更に、記憶部より、ブロック単位で明度成分及び色度成
分の平均値情報、階調幅指数、符号データ及び属性判別
結果を読み出し、読み出した属性判別結果に基づいて、
該当する成分の平均値情報、階調幅指数及び符号データ
の値を予定値に変更する編集/加工処理部とを備えるこ
とを特徴とする画像処理装置。
5. The image processing apparatus according to claim 1, further comprising: a storage unit configured to output average value information of a lightness component and a chromaticity component in block units, a gradation width index, The code data and the attribute determination result are read, and based on the read attribute determination result,
An image processing apparatus comprising: an editing / processing unit configured to change a value of average value information, a gradation width index, and code data of a corresponding component to a predetermined value.
JP14188295A 1919-05-11 1995-06-08 Image processing device Expired - Fee Related JP3284827B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP14188295A JP3284827B2 (en) 1995-06-08 1995-06-08 Image processing device
US08/646,118 US5838455A (en) 1919-05-11 1996-05-07 Image processor with image data compression capability
US09/121,914 US6047087A (en) 1995-05-11 1998-07-24 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14188295A JP3284827B2 (en) 1995-06-08 1995-06-08 Image processing device

Publications (2)

Publication Number Publication Date
JPH08336051A JPH08336051A (en) 1996-12-17
JP3284827B2 true JP3284827B2 (en) 2002-05-20

Family

ID=15302363

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14188295A Expired - Fee Related JP3284827B2 (en) 1919-05-11 1995-06-08 Image processing device

Country Status (1)

Country Link
JP (1) JP3284827B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6816618B1 (en) 1998-03-03 2004-11-09 Minolta Co., Ltd. Adaptive variable length image coding apparatus

Also Published As

Publication number Publication date
JPH08336051A (en) 1996-12-17

Similar Documents

Publication Publication Date Title
US6047087A (en) Image processor
US6404919B1 (en) Image processor for encoding image data
US5416606A (en) Method and apparatus for encoding or decoding an image in accordance with image characteristics
US6330076B1 (en) Image processing apparatus
US8254672B2 (en) Image compressing method, image compressing apparatus and image forming apparatus
JP3237582B2 (en) Image processing apparatus and image processing method
JP3176052B2 (en) Image processing device
JPH099040A (en) Picture processor
US20050041034A1 (en) Method for representing a digital color image using a set of palette colors based on detected important colors
US20040114172A1 (en) Method of and apparatus for processing image data, and computer product
US6538771B1 (en) Image processor
JP2008048431A (en) Apparatus for identifying predominant color in digital image
JP2004537220A (en) Equipment for processing digital images
US5987175A (en) Image forming apparatus and method based on reduction images and encoding
EP0991019B1 (en) Method of applying manipulations to a color digital image
JPH099074A (en) Image processor
JPH099071A (en) Image processor
US20050012963A1 (en) Image processing apparatus, image processing method, and computer product
JP3284827B2 (en) Image processing device
JPH08307691A (en) Image processing unit
AU686356B2 (en) Lossy compression land expansion algorithm for image representative data
JPH09233335A (en) Image data processor and image data processing method
JP3376870B2 (en) Image processing device
JP3909924B2 (en) Image processing device
JP3736107B2 (en) Image processing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080308

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090308

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090308

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100308

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110308

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110308

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120308

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130308

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140308

Year of fee payment: 12

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees