JPH09214753A - Method for encoding image data and image forming device using the method - Google Patents

Method for encoding image data and image forming device using the method

Info

Publication number
JPH09214753A
JPH09214753A JP8035846A JP3584696A JPH09214753A JP H09214753 A JPH09214753 A JP H09214753A JP 8035846 A JP8035846 A JP 8035846A JP 3584696 A JP3584696 A JP 3584696A JP H09214753 A JPH09214753 A JP H09214753A
Authority
JP
Japan
Prior art keywords
data
gradation
specific color
image
index
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.)
Granted
Application number
JP8035846A
Other languages
Japanese (ja)
Other versions
JP3630828B2 (en
Inventor
Hajime Ichimura
元 市村
Yoshimichi Kanda
好道 神田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP03584696A priority Critical patent/JP3630828B2/en
Publication of JPH09214753A publication Critical patent/JPH09214753A/en
Application granted granted Critical
Publication of JP3630828B2 publication Critical patent/JP3630828B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To adopt both kinds of data, multi-level black and white image data and specified color image data, to be a compression code without increasing a memory quantity. SOLUTION: Multi-level black and white and specified color coexisting picture data is divided into the blocks with a prescribed picture element number, an encoding part 202 calculates an average gradation index and a gradation distributing index in the divided blocks, a color coexisting judging part 204 judges whether or not the picture element inside the block is a coexisting picture based on a specified color flag signal, an encoding data converting part 205 replaces a judgement result with designation data of average gradation index data and gradation distributing index data, encoding is executed to replaced average gradation index data and gradation distributing index data and multi- level picture data which is quantized in four levels unless the picture element is the coexisting picture and encoding is executed to the replaced average gradation index data and gradation distributing index data, multi-level picture data which is quantized in the two levels and a specified color flag signal when the picture element is the coexisting picture.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は,画像データ符号化
方法およびその方法を用いた画像形成装置に関し,特
に,スポット・カラー複写機等の画像形成装置におい
て,メモリ量を増加することなく多階調白黒・特定色混
在画像データを蓄積するための画像データ符号化方法お
よびその方法を用いた画像形成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data encoding method and an image forming apparatus using the method, and more particularly, in an image forming apparatus such as a spot color copying machine, a multi-level image forming method without increasing memory capacity. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data encoding method for accumulating mixed black and white / specific color image data and an image forming apparatus using the method.

【0002】[0002]

【従来の技術】図6は,従来技術に係る画像形成装置の
概略を示すブロック構成図である。図において,601
は,画像データを光学的に読取るためのスキャナであ
り,602は,スキャナ601により光学的に読取られ
た画像データをデジタル信号に変換するためのA/D変
換部であり,603は,A/D変換部602により変換
されたデジタル信号化された画像データに対してガンマ
変換・画質補正等の画像処理をおこなうための画像処理
部であり,604は,画像処理部603により画像処理
されたデジタル信号化された画像データを転写紙上に画
素単位に印字をおこなうことにより画像を出力するため
の画像出力部である。
2. Description of the Related Art FIG. 6 is a block diagram showing the outline of an image forming apparatus according to the prior art. In the figure, 601
Is a scanner for optically reading image data, 602 is an A / D conversion unit for converting the image data optically read by the scanner 601 into a digital signal, and 603 is an A / D converter. Reference numeral 604 denotes an image processing unit for performing image processing such as gamma conversion and image quality correction on the image data converted into digital signals by the D conversion unit 602. Reference numeral 604 denotes a digital image processed by the image processing unit 603. An image output unit for outputting an image by printing signalized image data on a transfer paper in pixel units.

【0003】このような,画像形成装置において,画像
データをデジタル信号として取り扱う場合には,その画
像データをメモリ等の蓄積メディアに蓄積することが可
能となる。そのように蓄積メディアに蓄積することによ
って,スキャナから毎回原稿を読込むことなく,1度蓄
積した画像データを何度も読出して出力したり,読出す
時の順序を変えることにより画像データを回転して出力
したりすることができるものである。
In such an image forming apparatus, when the image data is handled as a digital signal, the image data can be stored in a storage medium such as a memory. By storing the data in the storage medium in this way, the image data can be rotated by reading and outputting the once stored image data many times without changing the original from the scanner and changing the reading order. Then, it can be output.

【0004】画像データをデジタル信号として蓄積メデ
ィアに蓄積することは,上記のような効果を有するが,
以下の問題点も包含するものである。
Storing image data as a digital signal in a storage medium has the above-mentioned effects.
It also includes the following problems.

【0005】すなわち,画像データは,そのデータ量が
一般に膨大な量となる(たとえば,A4サイズの原稿を
1画素256階調として,解像度400dpiにより読
込むと,約16メガバイトになる)ので,そのままメモ
リ等の蓄積メディアに蓄積するためには大容量のメモリ
が必要である。
That is, since the image data generally has an enormous amount (for example, when an A4 size document has 256 gradations per pixel and is read at a resolution of 400 dpi, it becomes about 16 megabytes), the memory is kept as it is. A large-capacity memory is required to store in a storage medium such as.

【0006】したがって,たとえばデジタル複写機等の
画像形成装置において,上記大容量のメモリを利用する
ためには,上記画像形成装置に搭載するメモリ等の蓄積
メディアにかかるコストが問題となる。
Therefore, in order to use the large-capacity memory in an image forming apparatus such as a digital copying machine, the cost of a storage medium such as a memory mounted in the image forming apparatus becomes a problem.

【0007】そこで,画像データをそのまま蓄積するの
でなく,一度符号化してデータ量を圧縮削減した後にメ
モリ等の蓄積メディアに蓄積する方法がある。
Therefore, there is a method in which the image data is not stored as it is, but is encoded once to reduce the amount of data and then stored in a storage medium such as a memory.

【0008】図7は,画像データを圧縮削減する符号化
方式の一つであるブロック符号化方式を示す説明図であ
り,図8は,ブロック符号化するためのアルゴリズムを
示す説明図である。図7において,図7(a)は原稿1
枚分の原画像をモデル化したものであり,図7(b)は
図7(a)に示した原画像の画像データをブロック単位
に分割し,その1ブロック分の画像データを拡大して示
したものである。図7(b)に示す1ブロック内の画素
毎の階調値Lijを図8に示すアルゴリズムをもちい
て,平均階調指標符号La(1バイト),階調分散指標
符号Ld(1バイト),画素毎の階調量子化符号φij
(2ビット×16画素)に符号化する。
FIG. 7 is an explanatory diagram showing a block encoding system which is one of the encoding systems for compressing and reducing image data, and FIG. 8 is an explanatory diagram showing an algorithm for block encoding. In FIG. 7, FIG. 7A shows the manuscript 1
7B is a model of the original image for one sheet. FIG. 7B shows that the image data of the original image shown in FIG. 7A is divided into blocks and the image data for one block is enlarged. It is shown. The gradation value Lij for each pixel in one block shown in FIG. 7B is calculated by using the algorithm shown in FIG. 8 with an average gradation index code La (1 byte), a gradation dispersion index code Ld (1 byte), Grayscale quantization code φij for each pixel
Encode to (2 bits × 16 pixels).

【0009】図9は,1ブロック分の画像データの符号
化前と符号化後とのデータ量の比較を示す説明図であ
る。図9に示すように,図8に示すアルゴリズムによる
ブロック符号化方式をもちいると,符号化前において4
×4画素からなる1ブロックのデータ量が16バイトで
あったが,符号化後においては6バイトになり,データ
量を符号化前に対して3/8に圧縮削減することができ
る。
FIG. 9 is an explanatory diagram showing a comparison of the data amount before and after encoding one block of image data. As shown in FIG. 9, when the block coding method based on the algorithm shown in FIG.
The data amount of one block composed of × 4 pixels was 16 bytes, but it becomes 6 bytes after encoding, and the data amount can be compressed and reduced to 3/8 of that before encoding.

【0010】図10は,図8に示したアルゴリズムによ
って符号化された画像データを復号化するためのアルゴ
リズムを示す説明図である。図10において示されたア
ルゴリズムにより,上記平均階調指標符号La・階調分
散指標符号Ld・画素毎の階調量子化符号φijのデー
タから各画素の階調値L*ijが計算される。これによ
り,符号化された画像データを復号化することができ
る。
FIG. 10 is an explanatory diagram showing an algorithm for decoding image data encoded by the algorithm shown in FIG. By the algorithm shown in FIG. 10, the gradation value L * ij of each pixel is calculated from the data of the above-mentioned average gradation index code La, gradation dispersion index code Ld, and gradation quantization code φij for each pixel. As a result, the encoded image data can be decoded.

【0011】ところで,最近,開発されているデジタル
複写機等の画像形成装置において,原稿画像に特定色が
存在する場合に特定色の画素を判別し,特定色として出
力する画像形成装置(以下,「スポット・カラー画像形
成装置」という)が存在する。
By the way, in an image forming apparatus such as a digital copying machine which has been recently developed, an image forming apparatus which distinguishes a pixel of a specific color when a specific color exists in an original image and outputs it as the specific color (hereinafter, "Spot color image forming apparatus").

【0012】図11は,原稿データの一例を示す説明図
であり,図において,この原稿1101は,「マル秘」
と示された領域1102が赤色画像であり,それ以外の
領域1103が白黒画像である原稿である。この原稿1
101をスポット・カラー画像形成装置により複写した
場合に,「マル秘」と示された領域1102が赤色とし
て出力され,それ以外の領域1103は白黒画像として
出力される。
FIG. 11 is an explanatory diagram showing an example of original data, in which the original 1101 is "confidential".
The area 1102 indicated by is a red image, and the other area 1103 is a monochrome image. This manuscript 1
When 101 is copied by the spot color image forming apparatus, the area 1102 shown as "Confidential" is output as red, and the other area 1103 is output as a monochrome image.

【0013】このように,スポット・カラー画像形成装
置にあっては,領域1103のように白黒画像のほか
に,領域1102のように赤色や青色等の特定色を出力
することができる。なお,このスポット・カラー画像形
成装置は,すべての画像データをカラー原稿として取り
扱うフルカラー画像形成装置とは区別される。
As described above, the spot color image forming apparatus can output a specific color such as red or blue like the area 1102, in addition to the black and white image like the area 1103. Note that this spot color image forming apparatus is distinguished from a full color image forming apparatus that handles all image data as color originals.

【0014】図12は,上記スポットカラー画像形成装
置における画像データの切替えの概略を示す説明図であ
る。図において,スキャナ601により,RGB(光の
三原色)のラインセンサーで原稿画像がRGBフルカラ
ー信号として読込まれ,A/D変換部602において変
換されたデジタル信号は,特定色判定部1201におい
て,画素毎のRGB信号どうしの差等からその画素の色
が判定され,判定の結果,特定色であると判定された場
合は特定色フラグ信号がオンにされ,特定色でないと判
定された場合は特定色フラグ信号がオフにされる。
FIG. 12 is an explanatory diagram showing an outline of switching of image data in the spot color image forming apparatus. In the figure, a scanner 601 reads an original image as an RGB full-color signal with a line sensor for RGB (the three primary colors of light), and a digital signal converted by an A / D conversion unit 602 is read by a specific color determination unit 1201 for each pixel. The color of the pixel is judged from the difference between the RGB signals, and if the result of the judgment is that it is a specific color, the specific color flag signal is turned on, and if it is judged that it is not a specific color, the specific color The flag signal is turned off.

【0015】この特定色フラグ信号を受けて画像データ
切替部1202において,特定色フラグ信号が「オン」
であればRGB信号から変換された特定色階調データを
画素単位に切り替える。
In response to the specific color flag signal, the specific color flag signal is "on" in the image data switching section 1202.
In that case, the specific color gradation data converted from the RGB signal is switched in pixel units.

【0016】一方,「オフ」であればRGB信号から変
換された白黒階調データを画素単位に切替えをして,切
替えをした後に特定色フラグ信号データとともに画像処
理部603に送られ,画像処理部606によりガンマ変
換等の画像処理を行った後,画像出力部604によりこ
れらのデータから特定色と白黒画像からなる画像を出力
される。
On the other hand, if "OFF", the black and white gradation data converted from the RGB signal is switched in pixel units, and after switching, it is sent to the image processing unit 603 together with the specific color flag signal data, and image processing is performed. After the image processing such as gamma conversion is performed by the unit 606, the image output unit 604 outputs an image including a specific color and a monochrome image from these data.

【0017】また,画像データ格納部1203に画像デ
ータを符号化して蓄積し,蓄積された符号データを復号
化して画像データを出力する場合は,画像データ切替部
1202から送られてきた多階調白黒・特定色混在画像
データおよび画素毎の特定色フラグ信号のうち,多階調
白黒・特定色混在画像データを前述のブロック符号化方
式によって符号化する。
When image data is encoded and stored in the image data storage unit 1203 and the accumulated code data is decoded and the image data is output, the multi-gradation levels sent from the image data switching unit 1202. Of the monochrome / specific color mixed image data and the specific color flag signal for each pixel, the multi-gradation monochrome / specific color mixed image data is encoded by the block encoding method described above.

【0018】符号化された多階調白黒・特定色混在画像
データは画像データ格納部1203に蓄積される。さら
に,画素毎の特定色フラグ信号は,そのままデジタルデ
ータとして,画像データ格納部1203に蓄積される。
このような構成および動作により,スポット・カラー画
像形成装置を実現するものである。
The encoded multi-tone black and white / specific color mixed image data is stored in the image data storage unit 1203. Further, the specific color flag signal for each pixel is directly stored in the image data storage unit 1203 as digital data.
With such a configuration and operation, a spot color image forming apparatus is realized.

【0019】[0019]

【発明が解決しようとする課題】しかしながら,上記従
来の画像形成装置によれば,以下のような問題点が生じ
る。
However, the conventional image forming apparatus described above has the following problems.

【0020】図13は,蓄積する1ブロック分の符号デ
ータのデータ構成を示す説明図であり,図において,1
301は平均階調指標符号La(1バイト)であり,1
302は階調分散指標符号Ld(1バイト)であり,1
303は画素毎の階調量子化符号φij(2ビット×1
6画素)である。また,1304は画素特定色フラグ信
号1304(2バイト)である。画素特定色フラグ信号
1304のデータ量は,1画素あたり1ビットであり,
1ブロックあたり16画素あるため,1ビット×16=
16ビット,すなわち,2バイトとなる。
FIG. 13 is an explanatory diagram showing the data structure of code data for one block to be accumulated. In FIG.
301 is an average gradation index code La (1 byte), and 1
302 is a gradation distribution index code Ld (1 byte), and 1
Reference numeral 303 denotes a gradation quantization code φij (2 bits × 1) for each pixel.
6 pixels). 1304 is a pixel specific color flag signal 1304 (2 bytes). The data amount of the pixel specific color flag signal 1304 is 1 bit per pixel,
Since there are 16 pixels per block, 1 bit x 16 =
16 bits, that is, 2 bytes.

【0021】ブロック符号は,上述において図9をもち
いて説明したように,平均階調指標符号La1301,
階調分散指標符号Ld1302,および,画素毎の階調
量子化符号φij1303をあわせて6バイトとなる。
従って,蓄積する1ブロック分のデータは,ブロック符
号が6バイトであり,さらに特定色フラグ信号,2バイ
トを付加したデータ量である8バイトとなる。
The block code is, as described above with reference to FIG. 9, the average gradation index code La1301,
The gradation dispersion index code Ld1302 and the gradation quantization code φij1303 for each pixel are 6 bytes in total.
Therefore, the data for one block to be accumulated has a block code of 6 bytes, and a specific color flag signal and 2 bytes, which is a data amount of 8 bytes.

【0022】画像データ格納部1208から読出す際
は,蓄積された符号が復号されて多階調白黒・特定色混
在画像データに戻され,これに画素毎の画素特定色フラ
グ信号が付加された形で画像処理部1206に送られ,
画像出力部1207により,これらのデータから特定色
と白黒画像からなる画像を出力する。
When reading out from the image data storage unit 1208, the accumulated code is decoded and returned to multi-tone monochrome / specific color mixed image data, to which a pixel specific color flag signal for each pixel is added. Sent to the image processing unit 1206 in the form of
The image output unit 1207 outputs an image composed of a specific color and a monochrome image from these data.

【0023】ここで画像データ格納部1208には本来
の画像データのみならず画素毎の特定色フラダ信号もデ
ジタルデータとして蓄積する必要があるので,このため
に所要メモリ量が増加する。たとえば,A4サイズの原
稿を解像度400dpiで読取った場合はデータ量が約
2メガバイト増加することになる。従って,その分,多
くのメモリが必要となり,また,通常のブロック符号と
は別に蓄積しなければならないという問題点があった。
Since the image data storage unit 1208 needs to store not only the original image data but also the specific color flur signal for each pixel as digital data, the required memory amount increases. For example, when an A4 size document is read at a resolution of 400 dpi, the data amount increases by about 2 megabytes. Therefore, a large amount of memory is required correspondingly, and there is a problem that it must be stored separately from the normal block code.

【0024】この発明は上記鑑みてなされたものであっ
て,メモリ量を増加することなく,多階調白黒・特定色
混在画像データおよび画素毎の特定色フラグ信号蓄積す
るための符号化を実現する画像データ符号化方法および
その方法を用いた画像形成装置を提供することを目的と
する。
The present invention has been made in view of the above, and realizes encoding for accumulating multi-tone black and white / specific color mixed image data and a specific color flag signal for each pixel without increasing the memory amount. It is an object of the present invention to provide an image data encoding method and an image forming apparatus using the method.

【0025】[0025]

【課題を解決するための手段】上記の目的を達成するた
めに,請求項1に係る画像データ符号化方法は,多階調
白黒・特定色混在画像データをあらかじめ定められた画
素数からなるブロックに分割し,分割されたそれぞれの
ブロック内の平均階調指標および階調分散指標を算定
し,画素毎における特定色を示す特定色フラグ信号にも
とづいて,前記ブロック内のすべての画素が白黒画像で
あるか,すべて特定色画像であるか,白黒画像および特
定色画像が混在しているかを判定し,判定された結果に
関するデータを,前記平均階調指標データおよび/また
は前記階調分散指標データの内,あらかじめ指定された
データと置換え,前記判定された結果にもとづいて,前
記ブロック内のすべての画素が白黒画像あるいはすべて
特定色画像である場合に,多階調画像データを4レベル
に量子化し,前記ブロック内に白黒画像および特定色画
像が混在している場合に,前記多階調画像データを2レ
ベルに量子化し,前記ブロック内のすべての画素が白黒
画像のみ,あるいは,すべて特定色画像である場合に,
前記置き換えられた平均階調指標データと階調分散指標
データと,4レベルに量子化された多階調画像データと
に符号化し,前記ブロック内に白黒画像および特定色画
像が混在している場合に,前記置き換えられた平均階調
指標データと階調分散指標データと,2レベルに量子化
された多階調画像データと,前記特定色フラグ信号とに
符号化するものである。
In order to achieve the above object, an image data encoding method according to a first aspect of the present invention is a block of multi-gradation black-and-white / specific color mixed image data having a predetermined number of pixels. The average gradation index and the gradation dispersion index in each of the divided blocks are calculated, and all the pixels in the block are black and white based on the specific color flag signal indicating the specific color in each pixel. , All of them are specific color images, or whether a black-and-white image and a specific color image are mixed, and the data related to the determined result is the average gradation index data and / or the gradation dispersion index data. If all the pixels in the block are black-and-white images or all specific-color images based on the result of the above determination, the data is replaced with the data specified in advance. , Multi-tone image data is quantized into four levels, and when a black-and-white image and a specific color image are mixed in the block, the multi-tone image data is quantized into two levels, and all of the blocks in the block are quantized. If the pixels of are only black and white images or all are specific color images,
In the case where the replaced average gradation index data, gradation dispersion index data, and multi-gradation image data quantized into four levels are encoded, and a black-and-white image and a specific color image are mixed in the block. Further, the average gradation index data and the gradation dispersion index data that have been replaced, the multi-gradation image data quantized into two levels, and the specific color flag signal are encoded.

【0026】すなわち,多階調白黒・特定色混在画像デ
ータをあらかじめ定められた画素数からなるブロックに
分割し,分割されたそれぞれのブロック内の平均階調指
標および階調分散指標を算定し,画素毎における特定色
を示す特定色フラグ信号にもとづいて,前記ブロック内
のすべての画素が白黒画像であるか,すべて特定色画像
であるか,白黒画像および特定色画像が混在しているか
を判定し,判定された結果に関するデータを,前記平均
階調指標データおよび/または前記階調分散指標データ
の内,あらかじめ指定されたデータと置換え,前記判定
された結果にもとづいて,前記ブロック内のすべての画
素が白黒画像あるいはすべて特定色画像である場合に,
多階調画像データを4レベルに量子化し,前記ブロック
内に白黒画像および特定色画像が混在している場合に,
前記多階調画像データを2レベルに量子化し,前記ブロ
ック内のすべての画素が白黒画像のみ,あるいは,すべ
て特定色画像である場合に,前記置き換えられた平均階
調指標データと階調分散指標データと,4レベルに量子
化された多階調画像データとに符号化し,前記ブロック
内に白黒画像および特定色画像が混在している場合に,
前記置き換えられた平均階調指標データと階調分散指標
データと,2レベルに量子化された多階調画像データ
と,前記特定色フラグ信号とに符号化する。
That is, the multi-tone black-and-white / specific color mixed image data is divided into blocks having a predetermined number of pixels, and the average tone index and tone variance index in each divided block are calculated, Based on a specific color flag signal indicating a specific color for each pixel, it is determined whether all the pixels in the block are black and white images, all are specific color images, or whether black and white images and specific color images are mixed. Then, the data related to the judged result is replaced with the data specified in advance among the average gradation index data and / or the gradation dispersion index data, and based on the judged result, all data in the block is replaced. If the pixels of are black-and-white images or all specific color images,
When multi-tone image data is quantized into four levels and a black and white image and a specific color image are mixed in the block,
The multi-tone image data is quantized into two levels, and when all the pixels in the block are black-and-white images only or all are specific color images, the replaced average tone index data and tone dispersion index When the data and the multi-gradation image data quantized into four levels are encoded, and a black and white image and a specific color image are mixed in the block,
The average gradation index data and the gradation dispersion index data that have been replaced, the multi-gradation image data quantized into two levels, and the specific color flag signal are encoded.

【0027】また,請求項2に係る画像形成装置は,多
階調白黒・特定色混在画像データをあらかじめ定められ
た画素数からなるブロックに分割するブロック分割手段
と,前記ブロック分割手段により分割されたそれぞれの
ブロック内の平均階調指標を算定する平均階調指標算定
手段と,前記ブロック分割手段により分割されたそれぞ
れのブロック内の階調分散指標を算定する階調分散指標
算定手段と,画素毎における特定色を示す特定色フラグ
信号にもとづいて,前記ブロック分割手段により分割さ
れたブロック内のすべての画素が白黒画像であるか,す
べて特定色画像であるか,白黒画像および特定色画像が
混在しているかを判定する色混在判定手段と,前記色混
在判定手段により判定された結果に関するデータを,前
記平均階調指標算定手段により算定された平均階調指標
データおよび/または前記階調分散指標算定手段により
算定された階調分散指標データの内,あらかじめ指定さ
れたデータと置換える指標値変更手段と,前記色混在判
定手段により判定された結果にもとづいて,前記ブロッ
ク内のすべての画素が白黒画像あるいはすべて特定色画
像である場合に,多階調画像データを4レベルに量子化
し,前記ブロック内に白黒画像および特定色画像が混在
している場合に,前記多階調画像データを2レベルに量
子化する画像データ量子化手段と,前記ブロック内のす
べての画素が白黒画像のみ,あるいは,すべて特定色画
像である場合に,前記指標変更手段により置き換えられ
た平均階調指標データと階調分散指標データと,前記画
像データ量子化手段により4レベルに量子化された多階
調画像データとに符号化し,前記ブロック内に白黒画像
および特定色画像が混在している場合に,前記指標変更
手段により置き換えられた平均階調指標データと階調分
散指標データと,前記画像データ量子化手段により2レ
ベルに量子化された多階調画像データと,前記特定色フ
ラグ信号とに符号化する画像データ符号化手段とを備え
たものである。
In the image forming apparatus according to the second aspect of the present invention, the multi-gradation monochrome / specific color mixed image data is divided into blocks having a predetermined number of pixels, and the block dividing means divides the image data. An average gradation index calculating means for calculating an average gradation index in each block, a gradation dispersion index calculating means for calculating a gradation dispersion index in each block divided by the block dividing means, and a pixel On the basis of a specific color flag signal indicating a specific color for each pixel, all pixels in the block divided by the block dividing means are monochrome images, all are specific color images, The color mixture determination means for determining whether or not there is a mixture and the data relating to the result determined by the color mixture determination means are calculated by the average gradation index calculation. Index value changing means that replaces the prespecified data of the average gradation index data calculated by the means and / or the gradation dispersion index data calculated by the gradation dispersion index calculating means, and the color mixture determination On the basis of the result determined by the means, when all the pixels in the block are black-and-white images or all specific-color images, the multi-tone image data is quantized into four levels, and the black-and-white image and the specific image are specified in the block. When color images are mixed, an image data quantizing means for quantizing the multi-tone image data into two levels, and all pixels in the block are black and white images or all are specific color images. In this case, the average gradation index data and the gradation dispersion index data replaced by the index changing means, and four levels by the image data quantizing means Average gradation index data and gradation dispersion index encoded by the quantized multi-tone image data and replaced by the index changing means when a black-and-white image and a specific color image are mixed in the block. Data, multi-tone image data quantized to two levels by the image data quantization means, and image data encoding means for encoding the specific color flag signal are provided.

【0028】すなわち,ブロック分割手段が,多階調白
黒・特定色混在画像データをあらかじめ定められた画素
数からなるブロックに分割し,平均階調指標算定手段
が,前記ブロック分割手段により分割されたそれぞれの
ブロック内の平均階調指標を算定し,階調分散指標算定
手段が,前記ブロック分割手段により分割されたそれぞ
れのブロック内の階調分散指標を算定し,色混在判定手
段が,画素毎における特定色を示す特定色フラグ信号に
もとづいて,前記ブロック分割手段により分割されたブ
ロック内のすべての画素が白黒画像であるか,すべて特
定色画像であるか,白黒画像および特定色画像が混在し
ているかを判定し,指標値変更手段が,前記色混在判定
手段により判定された結果に関するデータを,前記平均
階調指標算定手段により算定された平均階調指標データ
および/または前記階調分散指標算定手段により算定さ
れた階調分散指標データの内,あらかじめ指定されたデ
ータと置換え,画像データ量子化手段が,前記色混在判
定手段により判定された結果にもとづいて,前記ブロッ
ク内のすべての画素が白黒画像あるいはすべて特定色画
像である場合に,多階調画像データを4レベルに量子化
し,前記ブロック内に白黒画像および特定色画像が混在
している場合に,前記多階調画像データを2レベルに量
子化し,画像データ符号化手段が,前記ブロック内のす
べての画素が白黒画像のみ,あるいは,すべて特定色画
像である場合に,前記指標変更手段により置き換えられ
た平均階調指標データと階調分散指標データと,前記画
像データ量子化手段により4レベルに量子化された多階
調画像データとに符号化し,前記ブロック内に白黒画像
および特定色画像が混在している場合に,前記指標変更
手段により置き換えられた平均階調指標データと階調分
散指標データと,前記画像データ量子化手段により2レ
ベルに量子化された多階調画像データと,前記特定色フ
ラグ信号とに符号化する。
That is, the block dividing means divides the multi-tone black-and-white / specific color mixed image data into blocks having a predetermined number of pixels, and the average tone index calculating means divides by the block dividing means. The average gradation index in each block is calculated, the gradation distribution index calculating unit calculates the gradation distribution index in each block divided by the block dividing unit, and the color mixture determining unit determines each pixel. On the basis of a specific color flag signal indicating a specific color, all pixels in the blocks divided by the block dividing means are monochrome images, all are specific color images, or a monochrome image and a specific color image are mixed. The index value changing means determines whether the data about the result determined by the color mixture determining means is in the average gradation index calculating means. Of the average gradation index data calculated and / or the gradation dispersion index data calculated by the gradation dispersion index calculating means is replaced with the data specified in advance, and the image data quantizing means makes the color mixture determination. On the basis of the result determined by the means, when all the pixels in the block are black-and-white images or all specific-color images, multi-tone image data is quantized into four levels, and a black-and-white image When color images are mixed, the multi-gradation image data is quantized into two levels, and the image data encoding means sets all pixels in the block to black and white images only or all to specific color images. In this case, the average gradation index data and the gradation dispersion index data replaced by the index changing means, and the image data quantizing means to obtain four levels. Average gradation index data and gradation dispersion index encoded by the sub-gradation multi-gradation image data and replaced by the index changing means when a black-and-white image and a specific color image are mixed in the block. The data, the multi-tone image data quantized into two levels by the image data quantization means, and the specific color flag signal are encoded.

【0029】[0029]

【発明の実施の形態】以下,この発明に係る画像データ
符号化方法およびその方法を用いた画像形成装置の一実
施例について,図面を参照して詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of an image data encoding method according to the present invention and an image forming apparatus using the method will be described in detail below with reference to the drawings.

【0030】(本実施例に係る画像形成装置の構成)図
1は,本実施例に係る画像形成装置の概略を示すブロッ
ク構成図である。図において,101はスキャナであ
り,102はA/D変換部であり,103は特定色判定
部であり,104は特定色フラグ信号であり,105は
画像データ切替部であり,106は画像処理部であり,
107は画像出力部であり,108は画像データ格納部
である。
(Structure of Image Forming Apparatus According to this Embodiment) FIG. 1 is a block diagram showing an outline of the image forming apparatus according to this embodiment. In the figure, 101 is a scanner, 102 is an A / D conversion unit, 103 is a specific color determination unit, 104 is a specific color flag signal, 105 is an image data switching unit, and 106 is image processing. Part,
107 is an image output unit, and 108 is an image data storage unit.

【0031】スキャナ101は,RGB(光の三原色)
のラインセンサーで原稿画像をRGBフルカラー信号と
して読取るためのものである。
The scanner 101 has RGB (the three primary colors of light)
The line sensor reads the original image as an RGB full color signal.

【0032】A/D変換部102は,スキャナ101に
より読取られた原稿画像のデータをデジタル信号に変換
するためのものである。
The A / D converter 102 is for converting the data of the original image read by the scanner 101 into a digital signal.

【0033】特定色判定部103は,画素毎のRGB信
号どうしの差等からその画素の色を判定するためのもの
である。判定の結果,特定色であると判定した場合は特
定色フラグ信号104を「オン」にし,特定色でないと
判定した場合は特定色フラグ信号104を「オフ」にす
る。
The specific color determination unit 103 is for determining the color of the pixel based on the difference between the RGB signals of each pixel. As a result of the determination, the specific color flag signal 104 is turned "on" when it is determined that the color is the specific color, and the "off" is determined when the color is not the specific color.

【0034】画像データ切替部105は,特定色フラグ
信号104を受けて,特定色フラグ信号104が「オ
ン」であればRGB信号から変換された特定色階調デー
タを画素単位に切替えをし,一方,特定色フラグ信号1
04が「オフ」であればRGB信号から変換された白黒
階調データを画素単位に切替えをして,切替えをした後
に特定色フラグ信号104のデータとともに画像処理部
106に送信するものである。
The image data switching unit 105 receives the specific color flag signal 104, and switches the specific color gradation data converted from the RGB signal in pixel units if the specific color flag signal 104 is "ON". On the other hand, specific color flag signal 1
If 04 is “OFF”, the black-and-white gradation data converted from the RGB signal is switched in pixel units, and after switching, it is transmitted to the image processing unit 106 together with the data of the specific color flag signal 104.

【0035】画像処理部106は,画像データ切替部1
05から送信された画像データに対してガンマ変換等の
画像処理をおこなうためのものである。
The image processing unit 106 includes the image data switching unit 1
This is for performing image processing such as gamma conversion on the image data transmitted from 05.

【0036】画像出力部107は,画像処理部106に
よって画像処理されたデータにもとづいて,白黒画像お
よび特定色画像からなる画像を記録紙に出力する。
The image output unit 107 outputs an image composed of a monochrome image and a specific color image on the recording paper based on the data subjected to the image processing by the image processing unit 106.

【0037】画像データ格納部108は,後述するよう
に画像データを符号化して蓄積するための符号化部やメ
モリ等から構成される。
The image data storage unit 108 is composed of an encoding unit for encoding and storing image data, a memory, etc., as will be described later.

【0038】(画像データ格納部の構成)図2は,画像
データ格納部108の内部構成を示すブロック図であ
り,図において,201は多階調白黒・特定色混在画像
データを格納するための多階調白黒・特定色混在画像デ
ータ格納用4ラインFIFOメモリであり,202は符
号化部であり,203は画素毎の特定色フラグ信号を格
納するための特定色フラグ信号格納用4ラインFIFO
メモリであり,204は色混在判定部であり,205は
符号データ変換部であり,206は符号メモリである。
(Structure of Image Data Storage Unit) FIG. 2 is a block diagram showing the internal structure of the image data storage unit 108. In FIG. 2, 201 is a unit for storing multi-tone black and white / specific color mixed image data. A 4-line FIFO memory for storing multi-gradation black-and-white / specific color mixed image data, 202 is an encoding unit, and 203 is a 4-line FIFO for storing a specific color flag signal for storing a specific color flag signal for each pixel.
Reference numeral 204 is a memory, 204 is a color mixture determination unit, 205 is a code data conversion unit, and 206 is a code memory.

【0039】多階調白黒・特定色混在画像データ格納用
4ラインFIFOメモリ201は,画像データ切替部1
05から送信される多階調白黒・特定色混在画像データ
および画素毎の特定色フラグ信号のうち,多階調白黒・
特定色混在画像データを4ライン分格納するためのもの
である。
The 4-line FIFO memory 201 for storing multi-tone black and white / specific color mixed image data includes an image data switching unit 1.
Of the multi-tone black and white / specific color mixed image data and the specific color flag signal for each pixel transmitted from
This is for storing the specific color mixed image data for four lines.

【0040】符号化部202は,多階調白黒・特定色混
在画像データ格納用4ラインFIFOメモリ201によ
って格納された4ライン分の多階調白黒・特定色混在画
像データを4×4画素ブロック毎に取り込み,ブロック
符号化方式を用いて符号化することにより,ブロック内
の平均階調指標符号La,ブロック内階調分散指標符号
Ld,画素毎の階調量子化符号φijの符号データを得
て,その符号データをデータ変換部205へ送出するた
めのものである。
The encoding unit 202 stores 4 lines of multi-tone black and white / specific color mixed image data stored by the 4-line FIFO memory 201 for storing multi-tone black / white / specific color mixed image data in a 4 × 4 pixel block. Each block is captured and coded using the block coding method to obtain code data of the average gradation index code La in the block, the gradation dispersion index code Ld in the block, and the gradation quantization code φij for each pixel. Then, the code data is sent to the data conversion unit 205.

【0041】特定色フラグ信号格納用4ラインFIFO
メモリ203は,画像データ切替部105から送信され
る多階調白黒・特定色混在画像データおよび画素毎の特
定色フラグ信号のうち,画素毎の特定色フラグ信号を4
ライン分格納するためのものである。
4-line FIFO for storing specific color flag signal
The memory 203 stores the multi-gradation monochrome / specific color mixed image data transmitted from the image data switching unit 105 and the specific color flag signal for each pixel among the specific color flag signals for each pixel.
It is for storing lines.

【0042】色混在判定部204は,1ブロック内の特
定色フラグ信号がすべて「オン」になっているか,すべ
て「オフ」になっているか,「オン」および「オフ」が
混在しているかの3通りのいずれかを判定するためのも
のである。
The color mixing determination unit 204 determines whether all the specific color flag signals in one block are "on", all "off", or "on" and "off" are mixed. This is for judging any of the three ways.

【0043】符号データ変換部205は,色混在判定部
204になされる判定結果に基づいて,符号データを変
換するためのものである。
The code data conversion unit 205 is for converting the code data based on the determination result of the color mixture determination unit 204.

【0044】符号メモリ206は,符号データ変換部2
05において,変更された符号データを格納するための
ものである。
The code memory 206 includes a code data conversion unit 2
In 05, it is for storing the changed code data.

【0045】(色混在判定部の判定手順)次に,色混在
判定部204における色混在判定手順について説明す
る。色混在判定はブロック内の各画素の特定色フラグ信
号すべての論理積と論理和を取ることによりおこなわれ
る。すなわち,1ブロック内の特定色フラグ信号がすべ
て「オン」になっている場合はその論理積も論理和も
「オン」になる。
(Procedure of Color Mixing Judgment Unit) Next, the procedure of color mixing judgment in the color mixing judgment unit 204 will be described. The color mixture determination is performed by taking the logical product and the logical sum of all the specific color flag signals of each pixel in the block. That is, when all the specific color flag signals in one block are "on", both the logical product and the logical sum are "on".

【0046】また,1ブロック内の特定色フラグ信号が
すべて「オフ」になっている場合はその論理積も論理和
も「オフ」となる。さらに,1ブロック内の特定色フラ
グ信号が「オン」および「オフ」が混在している場合は
その論理積は「オフ」であるが論理和は「オン」とな
る。それらをまとめると以下のようになる。
When all the specific color flag signals in one block are "off", both the logical product and the logical sum are "off". Further, when the specific color flag signals in one block include both "on" and "off", the logical product is "off" but the logical sum is "on". The summary is as follows.

【0047】 1.論理積=「オン」,論理和=「オン」 →特定色フラグ信号=すべて「オン」 2.論理積=「オフ」,論理和=「オフ」 →特定色フラグ信号=すべて「オフ」 3.論理積=「オフ」,論理和=「オン」 →特定色フラグ信号=「オン」・「オフ」混在1. Logical product = "ON", logical sum = "ON" → Specific color flag signal = all "ON" Logical product = "OFF", logical sum = "OFF" → Specific color flag signal = all "OFF" Logical product = "off", logical sum = "on" → Specific color flag signal = "on" / "off" mixed

【0048】このように色混在判定結果の論理積ビット
が1ビットと色混在判定結果の論理和ビットが1ビット
のあわせて2ビットが判定結果として符号データ変換部
205へ送信される。
In this way, the logical product bit of the color mixture determination result is 1 bit and the logical sum bit of the color mixture determination result is 1 bit, and 2 bits are transmitted to the code data conversion unit 205 as the determination result.

【0049】(符号データ変換部の変換手順)次に,符
号データ変換部205における符号データの変換手順に
ついて説明する。1ブロック内の特定色フラグ信号がす
べて「オン」になっている場合,あるいは,すべて「オ
フ」になっている場合,すなわち,色混在判定部204
の色混在判定結果の論理積と論理和の値がともに「オ
ン」あるいは「オフ」となり,論理積と論理和が一致す
る場合は,当該ブロックの符号化データの平均階調指標
符号Laの最下位ビットに色混在判定結果の論理積ビッ
トを,階調分散指標符号Ldの最下位ビットに論理和ビ
ットをそれぞれ保持する。
(Conversion Procedure of Code Data Converter) Next, the conversion procedure of code data in the code data converter 205 will be described. When all the specific color flag signals in one block are "on" or when all are "off", that is, the color mixture determination unit 204
When both the logical product and the logical sum of the color mixture determination result of are “ON” or “OFF” and the logical product and the logical sum match, the maximum gradation index code La of the encoded data of the block is the highest. The logical product bit of the color mixture determination result is held in the lower bit, and the logical sum bit is held in the least significant bit of the gradation distribution index code Ld.

【0050】上記色混在判定結果の論理積ビット・色混
在判定結果の論理和ビットを保持することにともなっ
て,もともと平均階調指標符号La・階調分散指標符号
Ldあった各最下位ビットのデータは消滅する。
Since the logical product bit of the color mixture determination result and the logical sum bit of the color mixture determination result are held, the least significant bits originally having the average gradation index code La and the gradation dispersion index code Ld are stored. The data disappears.

【0051】また,この場合,画素毎の階調量子化符号
φijの符号データは変換せず,そのままの状態であ
る。
Further, in this case, the coded data of the gradation quantization code φij for each pixel is not converted and remains as it is.

【0052】図3は,1ブロック内の特定色フラグ信号
がすべて「オン」になっているか,あるいは,すべて
「オフ」になっている場合,すなわち,色混在判定結果
の論理積ビットおよび論理和ビットがともに「オン」あ
るいは「オフ」になっている場合の1ブロック分の符号
データのデータ構成を示す説明図である。図3におい
て,(a)は,変換前の符号化した符号データの構成と
同様の構成を示すものであり,(b)は,上記符号デー
タ変換部205によって変換された符号データの構成を
示すものである。
FIG. 3 shows that when all the specific color flag signals in one block are "on" or all "off", that is, the logical product bit and the logical sum of the color mixture determination results. It is explanatory drawing which shows the data structure of the code data for 1 block when both bits are "on" or "off." In FIG. 3, (a) shows the same configuration as the encoded code data before conversion, and (b) shows the configuration of the code data converted by the code data conversion unit 205. It is a thing.

【0053】図3(a)において,301は,平均階調
指標符号La(1バイト)であり,302は,階調分散
指標符号Ld(1バイト)であり,303は,画素毎の
階調量子化符号φij(2ビット×16画素=4バイ
ト)であり,データ量の合計は,6バイトである。
In FIG. 3A, 301 is an average gradation index code La (1 byte), 302 is a gradation dispersion index code Ld (1 byte), and 303 is a gradation for each pixel. The quantization code is φij (2 bits × 16 pixels = 4 bytes), and the total amount of data is 6 bytes.

【0054】また,図3(b)において,304は,平
均階調指標符号Laであり,305は,色混在判定結果
の論理積ビットであり,306は,階調分散指標符号L
dであり,307は,色混在判定結果の論理和ビットで
あり,308は,画素毎の階調量子化符号φijであ
る。
In FIG. 3B, 304 is an average gradation index code La, 305 is a logical product bit of the color mixture determination result, and 306 is a gradation distribution index code L.
d, 307 is a logical sum bit of the color mixture determination result, and 308 is a gradation quantization code φij for each pixel.

【0055】上述の説明のごとく,平均階調指標符号L
a304の最下位ビットが色混在判定結果の論理積ビッ
ト305に変換されているので,平均階調指標符号La
304のデータ量は1バイト(8ビット)−1ビット=
7ビットとなる。加えて,色混在判定結果の論理積ビッ
ト305が1ビットであるから,あわせて8ビット(す
なわち1バイト)となり,平均階調指標符号La301
のデータ量と同一となる。
As described above, the average gradation index code L
Since the least significant bit of a304 is converted to the logical product bit 305 of the color mixture determination result, the average gradation index code La
The data amount of 304 is 1 byte (8 bits) -1 bit =
It is 7 bits. In addition, since the logical product bit 305 of the color mixture determination result is 1 bit, the total is 8 bits (that is, 1 byte), and the average gradation index code La301
It becomes the same as the data amount of.

【0056】同様に,階調分散指標符号Ld306も,
7ビット+色混在判定結果の論理和307が1ビット=
8ビットとなり,階調分散指標符号Ld302のデータ
量と同一となる。また,この場合,画素毎の階調量子化
符号φij308は,変換されないので,画素毎の階調
量子化符号φij303と同一のデータとなる。したが
って,データ量も変化しない。
Similarly, the gradation distribution index code Ld306 is also
7 bits + logical sum 307 of color mixture determination result is 1 bit =
It has 8 bits, which is the same as the data amount of the gradation distribution index code Ld302. Further, in this case, since the gradation quantization code φij308 for each pixel is not converted, it becomes the same data as the gradation quantization code φij303 for each pixel. Therefore, the amount of data does not change.

【0057】一方,1ブロック内の特定色フラグ信号が
「オン」・「オフ」混在している場合,すなわち,色混
在判定部204の色混在判定結果の論理積が「オン」と
なり,論理和の値が「オフ」となり,論理積と論理和が
一致しない場合も,当該ブロックの符号化データの平均
階調指標符号Laの最下位ビットに色混在判定結果の論
理積ビットを,階調分散指標符号Ldの最下位ビットに
論理和ビットを保持する。上記色混在判定結果の論理積
ビット・色混在判定結果の論理和ビットの保持にともな
って,もともと平均階調指標符号La・階調分散指標符
号Ldあった各最下位ビットのデータは消滅する。
On the other hand, when the specific color flag signals in one block are mixed "on" and "off", that is, the logical product of the color mixture determination results of the color mixture determination unit 204 is "on", and the logical sum is obtained. Even if the value of is “off” and the logical product and the logical sum do not match, the logical product bit of the color mixture determination result is gradation distributed to the least significant bit of the average gradation index code La of the encoded data of the block. The logical sum bit is held in the least significant bit of the index code Ld. As the logical product bit of the color mixture determination result and the logical sum bit of the color mixture determination result are held, the data of the least significant bits originally having the average gradation index code La and the gradation dispersion index code Ld disappear.

【0058】また,この場合,画素毎の階調量子化符号
φijの符号データのうち画素毎の下位1ビットを特定
色フラグ信号で置き換える処理をおこなう。すなわち,
変換前の画素毎の階調量子化符号φijは,1ブロック
内に16画素ある各画素がそれぞれ2ビットにより構成
されており,この2ビットの内,上位1ビットのみを残
して,下位1ビットについては,消滅させる。この処理
により,16ビット,すなわち,2バイト分を特定色フ
ラグに当てるようにするものである。これにより,4レ
ベルに量子化された符号データが2レベルの符号データ
へと変換されることになる。
In this case, the lower 1 bit of each pixel of the coded data of the gradation quantization code φij for each pixel is replaced with the specific color flag signal. That is,
In the gradation quantization code φij for each pixel before conversion, each pixel having 16 pixels in one block is composed of 2 bits. Of these 2 bits, only the upper 1 bit is left and the lower 1 bit is left. For, extinguish. By this processing, 16 bits, that is, 2 bytes are applied to the specific color flag. As a result, the code data quantized into 4 levels is converted into the code data of 2 levels.

【0059】図4は,1ブロック内の特定色フラグ信号
が「オン」・「オフ」混在している場合,すなわち,色
混在判定部204の色混在判定結果の論理積が「オン」
となり,論理和の値が「オフ」となることにより,論理
積と論理和が一致しない場合における1ブロック分の符
号データのデータ構成を示す説明図である。図4におい
て,(a)は,変換前の符号化した符号データの構成と
同様の構成を示すものであり,(b)は,上記符号デー
タ変換部205によって変換された符号データの構成を
示すものである。なお,基本的構成は図3と同様であ
り,同一符号は共通の構成を示すため,ここでは異なる
部分のみを説明する。
In FIG. 4, when the specific color flag signals in one block are mixed "on" and "off", that is, the logical product of the color mixture determination results of the color mixture determination unit 204 is "on".
Is a diagram illustrating the data structure of the code data for one block when the logical product and the logical sum do not match because the value of the logical sum is “OFF”. In FIG. 4, (a) shows the same configuration as the encoded code data before conversion, and (b) shows the configuration of the code data converted by the code data conversion unit 205. It is a thing. Note that the basic configuration is the same as that in FIG. 3, and the same reference numerals indicate common configurations, so only different portions will be described here.

【0060】図4(b)において,401は,画素毎の
階調量子化符号φijであり,104は,図1に示した
ように特定色フラグ信号である。
In FIG. 4B, 401 is a gradation quantization code φij for each pixel, and 104 is a specific color flag signal as shown in FIG.

【0061】上述の説明のごとく,平均階調指標符号L
a304の最下位ビットが色混在判定結果の論理積ビッ
ト305に変換されているので,平均階調指標符号La
304のデータ量は1バイト(8ビット)−1ビット=
7ビットとなる。加えて,色混在判定結果の論理積ビッ
ト305が1ビットであるから,あわせて8ビット,す
なわち1バイトとなり,平均階調指標符号La301の
データ量と同一となる。
As described above, the average gradation index code L
Since the least significant bit of a304 is converted to the logical product bit 305 of the color mixture determination result, the average gradation index code La
The data amount of 304 is 1 byte (8 bits) -1 bit =
It is 7 bits. In addition, since the logical product bit 305 of the color mixture determination result is 1 bit, the total is 8 bits, that is, 1 byte, which is the same as the data amount of the average gradation index code La301.

【0062】階調分散指標符号Ld306も同様に,7
ビット+色混在判定結果の論理和ビット307が1ビッ
ト=8ビットとなり,階調分散指標符号Ld302のデ
ータ量と同一となる。
Similarly, the gradation distribution index code Ld306 is 7
The logical sum bit 307 of the bit + color mixture determination result is 1 bit = 8 bits, which is the same as the data amount of the gradation distribution index code Ld302.

【0063】また,画素毎の階調量子化符号φij40
1は,各画素が2ビット毎からなり,1ブロック内に1
6画素あることから,そのデータ量は,2ビット×16
=32ビット(4バイト)である。各画素毎の2ビット
の内,上位1ビットのみを残すことにより,画素毎の階
調量子化符号φijのデータ量は4バイトの1/2であ
る2バイトとなる。特定色フラグ信号104のデータ量
は,1画素あたり1ビットであり,1ブロックあたり1
6画素あるため,1ビット×16=16ビット,すなわ
ち,2バイトとなる。従って,変換後における符号化デ
ータのデータ量は変化しない。
Further, the gradation quantization code φij40 for each pixel
1 means that each pixel consists of 2 bits, and 1 in 1 block
Since there are 6 pixels, the data amount is 2 bits x 16
= 32 bits (4 bytes). By leaving only the upper 1 bit of the 2 bits for each pixel, the data amount of the gradation quantization code φij for each pixel becomes 2 bytes which is 1/2 of 4 bytes. The data amount of the specific color flag signal 104 is 1 bit per pixel, and 1 block per block.
Since there are 6 pixels, 1 bit × 16 = 16 bits, that is, 2 bytes. Therefore, the amount of encoded data after conversion does not change.

【0064】(画像データ格納部の動作)以上の構成に
おいて,本実施例に係る画像データ符号化装置の画像デ
ータ格納部108の動作を説明する。
(Operation of Image Data Storage Unit) The operation of the image data storage unit 108 of the image data encoding apparatus according to the present embodiment having the above configuration will be described.

【0065】図5は,画像データ格納部108の処理の
流れを説明するフローチャートである。図5のフローチ
ャートにおいて,まず,多階調白黒・特定色混在画像デ
ータ格納用4ラインFIFOメモリ201が,多階調白
黒・特定色混在画像データおよび画素毎の特定色フラグ
信号のうち,多階調白黒・特定色混在画像データを4ラ
イン分格納する(S501)。
FIG. 5 is a flow chart for explaining the processing flow of the image data storage unit 108. In the flowchart of FIG. 5, first, the 4-line FIFO memory 201 for storing multi-tone black / white / specific color mixed image data stores multi-tone black / white / specific color mixed image data and multi-level of the specific color flag signal for each pixel. Image data of mixed tonal black and white / specific color for four lines is stored (S501).

【0066】ステップS501において格納されたされ
た多階調白黒・特定色混在画像データは,4×4画素ブ
ロック毎に符号化部202へ取り込まれ,符号化部20
2は,前述のブロック符号化方式にて上記データをブロ
ック内平均階調指標符号La,ブロック内階調分散指標
符号Ld,画素毎の階調量子化符号φijの符号データ
に符号化する(S502)。なお,ステップS502に
おいて符号化されたデータは,符号データ変換部205
に送信される。
The multi-tone black-and-white / specific color mixed image data stored in step S501 is taken into the coding unit 202 for each 4 × 4 pixel block, and the coding unit 20
2 encodes the above-mentioned data into code data of an intra-block average gradation index code La, an intra-block gradation distribution index code Ld, and a gradation quantization code φij for each pixel (S502). ). The data encoded in step S502 is the encoded data conversion unit 205.
Sent to.

【0067】一方,特定色フラグ信号104は,特定色
フラグ信号格納用4ラインFIFOメモリ203を通し
て色混在判定部204に取り込まれ,色混在判定部20
4は,取り込まれた特定色フラグ信号104が,1ブロ
ック内の特定色フラグ信号がすべて「オン」になってい
るか,すべて「オフ」になっているか,「オン」・「オ
フ」が混在しているかを判定する。判定結果を論理積お
よび論理和信号として符号データ変換部205へ送信す
る。
On the other hand, the specific color flag signal 104 is fetched by the color mixing determining unit 204 through the specific color flag signal storing 4-line FIFO memory 203, and the color mixing determining unit 20
No. 4 shows that the fetched specific color flag signals 104 are all "on" or all "off" for the specific color flag signals in one block, or "on" and "off" are mixed. It is determined. The determination result is transmitted to the code data conversion unit 205 as a logical product and a logical sum signal.

【0068】符号データ変換部205は,符号データの
内,平均階調指標符号La301を平均階調指標符号L
a304と色混在判定部204から送信された色混在判
定結果の論理積ビット305に変換し(S503),階
調分散指標符号Ld302を階調分散指標符号Ld30
6と色混在判定結果の論理和ビット307に変換する
(S504)。
The code data conversion unit 205 replaces the average gradation index code La301 with the average gradation index code L of the code data.
a304 and the color mixture determination result transmitted from the color mixture determination unit 204 are converted into the logical product bit 305 (S503), and the tone distribution index code Ld302 is converted to the tone distribution index code Ld30.
6 and the logical sum bit 307 of the color mixture determination result (S504).

【0069】次に,上記色混在判定結果の論理積ビット
305および論理和ビット307が一致するか否かを判
断する(S505)。このステップにおいて,両者が一
致しない場合は,画素毎の階調量子化符号φij303
のうち画素毎の下位1ビットを特定色フラグ信号104
で置き換える処理をおこなう(S506)。その後,符
号メモリ206は,変換した符号データを格納し(S5
07),終了する。
Next, it is determined whether or not the logical product bit 305 and the logical sum bit 307 of the color mixture determination result match (S505). In this step, if they do not match, the gradation quantization code φij303 for each pixel
The lower 1 bit for each pixel of the specific color flag signal 104
The process of replacing with is performed (S506). Thereafter, the code memory 206 stores the converted code data (S5
07), the process ends.

【0070】(本実施例の効果)前述したように本実施
例に係る画像データ符号化方法およびその方法を用いた
画像形成装置によれば,特定色フラグ信号104を蓄積
するための別個のメモリ領域を確保することなく,従来
の符合ブロックデータのメモリ量と同一のメモリ量で,
多階調白黒・特定色混在画像データおよび画素毎の特定
色フラグ信号を蓄積することができる。
(Effect of this Embodiment) As described above, according to the image data encoding method and the image forming apparatus using the method according to this embodiment, a separate memory for accumulating the specific color flag signal 104 is provided. Without allocating an area, with the same memory amount as the conventional code block data,
It is possible to store multi-tone monochrome / specific color mixed image data and a specific color flag signal for each pixel.

【0071】[0071]

【発明の効果】以上説明したように,本発明の画像デー
タ符号化方法(請求項1)にあっては,ブロック内のす
べての画素が白黒画像のみ,あるいは,すべて特定色画
像である場合に,前記置き換えられた平均階調指標デー
タと階調分散指標データと,4レベルに量子化された多
階調画像データとに符号化し,前記ブロック内に白黒画
像および特定色画像が混在している場合に,前記置き換
えられた平均階調指標データと階調分散指標データと,
2レベルに量子化された多階調画像データと,特定色フ
ラグ信号とに符号化するので,従来,ブロック符号デー
タと別に蓄積する必要があった特定色フラグ信号用のメ
モリを削減することができる。
As described above, according to the image data encoding method (claim 1) of the present invention, when all the pixels in the block are only black and white images or all are specific color images. , The replaced average gradation index data, gradation dispersion index data, and multi-gradation image data quantized into four levels are encoded, and a black-and-white image and a specific color image are mixed in the block. In this case, the replaced average gradation index data and gradation distribution index data,
Since the multi-gradation image data quantized into two levels and the specific color flag signal are encoded, it is possible to reduce the memory for the specific color flag signal, which has conventionally needed to be stored separately from the block code data. it can.

【0072】また,本発明の画像形成装置(請求項2)
にあっては,ブロック内のすべての画素が白黒画像の
み,あるいは,すべて特定色画像である場合に,前記置
き換えられた平均階調指標データと階調分散指標データ
と,4レベルに量子化された多階調画像データとに符号
化し,前記ブロック内に白黒画像および特定色画像が混
在している場合に,前記置き換えられた平均階調指標デ
ータと階調分散指標データと,2レベルに量子化された
多階調画像データと,特定色フラグ信号とに符号化する
ので,従来,ブロック符号データと別に蓄積する必要が
あった特定色フラグ信号用のメモリを削減することがで
き,スポット・カラーの画像形成を,単色の画像形成装
置と同一のメモリ量で実現することができる。
An image forming apparatus of the present invention (claim 2)
In this case, when all the pixels in the block are black-and-white images only or all are specific color images, the replaced average gradation index data and gradation dispersion index data are quantized into four levels. When the block contains a black-and-white image and a specific color image, the replaced average gradation index data and gradation dispersion index data and the two-level quantum data are encoded. Since the encoded multi-gradation image data and the specific color flag signal are encoded, it is possible to reduce the memory for the specific color flag signal, which has conventionally been required to be stored separately from the block code data. Color image formation can be realized with the same memory capacity as a monochromatic image forming apparatus.

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

【図1】本実施例に係る画像形成装置の概略を示すブロ
ック構成図である。
FIG. 1 is a block configuration diagram showing an outline of an image forming apparatus according to an embodiment.

【図2】本実施例に係る画像形成装置の画像データ格納
部の内部構成を示すブロック図である。
FIG. 2 is a block diagram illustrating an internal configuration of an image data storage unit of the image forming apparatus according to the present exemplary embodiment.

【図3】1ブロック分の符号データのデータ構成を示す
説明図である。
FIG. 3 is an explanatory diagram showing a data configuration of code data for one block.

【図4】1ブロック分の符号データの別のデータ構成を
示す説明図である。
FIG. 4 is an explanatory diagram showing another data structure of code data for one block.

【図5】本実施例に係る画像形成装置の画像データ格納
部の処理の流れを説明するフローチャートである。
FIG. 5 is a flowchart illustrating a processing flow of an image data storage unit of the image forming apparatus according to the present exemplary embodiment.

【図6】従来技術に係る画像形成装置の概略を示すブロ
ック構成図である。
FIG. 6 is a block diagram showing an outline of an image forming apparatus according to a conventional technique.

【図7】画像データを圧縮削減する符号化方式の一つで
あるブロック符号化方式を示す説明図である。
FIG. 7 is an explanatory diagram showing a block coding method which is one of the coding methods for compressing and reducing image data.

【図8】ブロック符号化するためのアルゴリズムを示す
説明図である。
FIG. 8 is an explanatory diagram showing an algorithm for block coding.

【図9】1ブロック分の画像データの符号化前と符号化
後とのデータ量の比較を示す説明図である。
FIG. 9 is an explanatory diagram showing a comparison of the data amount before and after encoding one block of image data.

【図10】符号化された画像データを復号化するための
アルゴリズムを示す説明図である。
FIG. 10 is an explanatory diagram showing an algorithm for decoding encoded image data.

【図11】原稿データの一例を示す説明図である。FIG. 11 is an explanatory diagram showing an example of document data.

【図12】従来技術に係るスポットカラー画像形成装置
における画像データの切替えの概略を示す説明図であ
る。
FIG. 12 is an explanatory diagram showing an outline of switching of image data in a spot color image forming apparatus according to a conventional technique.

【図13】従来技術に係るスポットカラー画像形成装置
における蓄積する1ブロック分の符号データのデータ構
成を示す説明図である。
FIG. 13 is an explanatory diagram showing a data configuration of accumulated code data of one block in a spot color image forming apparatus according to a conventional technique.

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

101 スキャナ 102 A/D変換部 103 特定色判定部 104 特定色フラグ信号 105 画像データ切替部 106 画像処理部 107 画像出力部 108 画像データ格納部画像入力部 201 多階調白黒・特定色混在画像データ格納用4ラ
インFIFOメモリ 202 符号化部 203 特定色フラグ信号格納用4ラインFIFOメモ
リ 204 色混在判定部 205 符号データ変換部 206 符号メモリ 301 平均階調指標符号La(変換前) 302 階調分散指標符号Ld(変換前) 303 画素毎の階調量子化符号φij(変換前) 304 平均階調指標符号La(変換後) 305 色混在判定結果の論理積ビット 306 階調分散指標符号Ld(変換後) 307 色混在判定結果の論理和ビット 308 画素毎の階調量子化符号φij(変換不実施) 401 画素毎の階調量子化符号φij(変換後)
Reference Signs List 101 scanner 102 A / D converter 103 specific color determination unit 104 specific color flag signal 105 image data switching unit 106 image processing unit 107 image output unit 108 image data storage unit image input unit 201 multi-tone monochrome / specific color mixed image data 4-line FIFO memory for storage 202 Encoding unit 203 4-line FIFO memory for storing specific color flag signal 204 Color mixture determination unit 205 Code data conversion unit 206 Code memory 301 Average gradation index code La (before conversion) 302 Grayscale dispersion index Code Ld (before conversion) 303 Grayscale quantization code for each pixel φij (before conversion) 304 Average grayscale index code La (after conversion) 305 Logical product bit of color mixture determination result 306 Grayscale distribution index code Ld (after conversion) 307 OR bit of the color mixture determination result 308 Gradation quantization code φij (variable for each pixel Tone quantization code φij not performed) 401 for each pixel (after conversion)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 多階調白黒・特定色混在画像データをあ
らかじめ定められた画素数からなるブロックに分割し,
分割されたそれぞれのブロック内の平均階調指標および
階調分散指標を算定し,画素毎における特定色を示す特
定色フラグ信号にもとづいて,前記ブロック内のすべて
の画素が白黒画像であるか,すべて特定色画像である
か,白黒画像および特定色画像が混在しているかを判定
し,判定された結果に関するデータを,前記平均階調指
標データおよび/または前記階調分散指標データの内,
あらかじめ指定されたデータと置換え,前記判定された
結果にもとづいて,前記ブロック内のすべての画素が白
黒画像あるいはすべて特定色画像である場合に,多階調
画像データを4レベルに量子化し,前記ブロック内に白
黒画像および特定色画像が混在している場合に,前記多
階調画像データを2レベルに量子化し,前記ブロック内
のすべての画素が白黒画像のみ,あるいは,すべて特定
色画像である場合に,前記置き換えられた平均階調指標
データと階調分散指標データと,4レベルに量子化され
た多階調画像データとに符号化し,前記ブロック内に白
黒画像および特定色画像が混在している場合に,前記置
き換えられた平均階調指標データと階調分散指標データ
と,2レベルに量子化された多階調画像データと,前記
特定色フラグ信号とに符号化することを特徴とする画像
データ符号化方法。
1. Multi-gradation black-and-white / specific color mixed image data is divided into blocks each having a predetermined number of pixels,
An average gradation index and a gradation dispersion index in each of the divided blocks are calculated, and based on a specific color flag signal indicating a specific color in each pixel, whether all the pixels in the block are black and white images, It is determined whether all the images are specific color images, or a mixture of black-and-white images and specific color images, and the data related to the determined result is the average gradation index data and / or the gradation dispersion index data,
Substituting data designated in advance, and based on the result of the determination, when all the pixels in the block are black and white images or all images of a specific color, multi-tone image data is quantized into four levels, When a black-and-white image and a specific color image are mixed in the block, the multi-tone image data is quantized into two levels, and all pixels in the block are only the black-and-white image or all are the specific color image. In this case, the replaced average gradation index data, gradation dispersion index data, and multi-gradation image data quantized into four levels are coded, and a black-and-white image and a specific color image are mixed in the block. , The replaced average gradation index data and gradation dispersion index data, multi-gradation image data quantized into two levels, and the specific color flag signal Image data encoding method characterized in that encoded into.
【請求項2】 多階調白黒・特定色混在画像データをあ
らかじめ定められた画素数からなるブロックに分割する
ブロック分割手段と,前記ブロック分割手段により分割
されたそれぞれのブロック内の平均階調指標を算定する
平均階調指標算定手段と,前記ブロック分割手段により
分割されたそれぞれのブロック内の階調分散指標を算定
する階調分散指標算定手段と,画素毎における特定色を
示す特定色フラグ信号にもとづいて,前記ブロック分割
手段により分割されたブロック内のすべての画素が白黒
画像であるか,すべて特定色画像であるか,白黒画像お
よび特定色画像が混在しているかを判定する色混在判定
手段と,前記色混在判定手段により判定された結果に関
するデータを,前記平均階調指標算定手段により算定さ
れた平均階調指標データおよび/または前記階調分散指
標算定手段により算定された階調分散指標データの内,
あらかじめ指定されたデータと置換える指標値変更手段
と,前記色混在判定手段により判定された結果にもとづ
いて,前記ブロック内のすべての画素が白黒画像あるい
はすべて特定色画像である場合に,多階調画像データを
4レベルに量子化し,前記ブロック内に白黒画像および
特定色画像が混在している場合に,前記多階調画像デー
タを2レベルに量子化する画像データ量子化手段と,前
記ブロック内のすべての画素が白黒画像のみ,あるい
は,すべて特定色画像である場合に,前記指標変更手段
により置き換えられた平均階調指標データと階調分散指
標データと,前記画像データ量子化手段により4レベル
に量子化された多階調画像データとに符号化し,前記ブ
ロック内に白黒画像および特定色画像が混在している場
合に,前記指標変更手段により置き換えられた平均階調
指標データと階調分散指標データと,前記画像データ量
子化手段により2レベルに量子化された多階調画像デー
タと,前記特定色フラグ信号とに符号化する画像データ
符号化手段とを備えたことを特徴とする画像形成装置。
2. A block dividing means for dividing multi-tone black-and-white / specific color mixed image data into blocks having a predetermined number of pixels, and an average gradation index in each block divided by the block dividing means. Average gradation index calculating means, a gradation distribution index calculating means for calculating a gradation distribution index in each block divided by the block dividing means, and a specific color flag signal indicating a specific color for each pixel On the basis of the above, a color mixture determination for determining whether all the pixels in the block divided by the block dividing means are monochrome images, all are specific color images, or whether monochrome images and specific color images are mixed Means and data relating to the result judged by the color mixture judging means, and the mean gradation index data calculated by the mean gradation index calculating means. Data and / or the gradation dispersion index data calculated by the gradation dispersion index calculation means,
If all the pixels in the block are black-and-white images or all specific-color images, based on the result of the index value changing device that replaces the data specified in advance and the color mixture determining device, Image data quantizing means for quantizing tonal image data into four levels, and quantizing the multi-tone image data into two levels when a black-and-white image and a specific color image are mixed in the block; If all the pixels in the pixel are black-and-white images only or all are specific color images, the average gradation index data and gradation dispersion index data replaced by the index changing means, and the image data quantizing means When the block is encoded with multi-tone image data quantized into levels and a black-and-white image and a specific color image are mixed, the index is changed. An image to be encoded into average gradation index data and gradation dispersion index data replaced by steps, multi-gradation image data quantized to two levels by the image data quantization means, and the specific color flag signal. An image forming apparatus comprising: a data encoding unit.
JP03584696A 1996-01-31 1996-01-31 Image forming apparatus and image data storage method Expired - Fee Related JP3630828B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03584696A JP3630828B2 (en) 1996-01-31 1996-01-31 Image forming apparatus and image data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03584696A JP3630828B2 (en) 1996-01-31 1996-01-31 Image forming apparatus and image data storage method

Publications (2)

Publication Number Publication Date
JPH09214753A true JPH09214753A (en) 1997-08-15
JP3630828B2 JP3630828B2 (en) 2005-03-23

Family

ID=12453364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03584696A Expired - Fee Related JP3630828B2 (en) 1996-01-31 1996-01-31 Image forming apparatus and image data storage method

Country Status (1)

Country Link
JP (1) JP3630828B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014135574A (en) * 2013-01-09 2014-07-24 Konica Minolta Inc Image processing device, encoding method, and decoding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014135574A (en) * 2013-01-09 2014-07-24 Konica Minolta Inc Image processing device, encoding method, and decoding method

Also Published As

Publication number Publication date
JP3630828B2 (en) 2005-03-23

Similar Documents

Publication Publication Date Title
US6118552A (en) Image signal encoding apparatus
US5416606A (en) Method and apparatus for encoding or decoding an image in accordance with image characteristics
US6342950B1 (en) Method and apparatus for encoding image, image decoding apparatus and image forming apparatus
JP3237582B2 (en) Image processing apparatus and image processing method
JP4152724B2 (en) Single pass fit guaranteed data compression method using rate feedback
KR20120065394A (en) Image processing apparatus and processing method therefor
JPH09214753A (en) Method for encoding image data and image forming device using the method
JPS621373A (en) Picture encoding system
JP3340007B2 (en) Image data encoding apparatus and encoding method
JP3281183B2 (en) Image encoding / decoding method and image encoding / decoding device
JP3368125B2 (en) Image data encoding apparatus and encoding method
JP3340015B2 (en) Image data decoding device and decoding method
JPH0575871A (en) Picture processor
JPH09284566A (en) Image data encoding and decoding device and method thereof
JP3864681B2 (en) Image data encoding apparatus, image data encoding method, recording medium, and image forming apparatus
JPH08317220A (en) Encoding and decoding device and method for mixed image of different value bit maps
JP2831954B2 (en) Image encoding / decoding device and image processing device
JP3736107B2 (en) Image processing device
JPH08298589A (en) Image processor of photograph/document mixed image
JP3340006B2 (en) Image processing device
JP3340014B2 (en) Image data encoding apparatus and encoding method
JPS63196173A (en) Method and device for processing color image
JPH1127670A (en) Decoder and decoding method
JPH0575868A (en) Picture processor
JPH0787332A (en) Communicating equipment for irreversible coding data

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040817

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041018

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041215

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20081224

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091224

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101224

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees