JP3368125B2 - Image data encoding apparatus and encoding method - Google Patents

Image data encoding apparatus and encoding method

Info

Publication number
JP3368125B2
JP3368125B2 JP32173895A JP32173895A JP3368125B2 JP 3368125 B2 JP3368125 B2 JP 3368125B2 JP 32173895 A JP32173895 A JP 32173895A JP 32173895 A JP32173895 A JP 32173895A JP 3368125 B2 JP3368125 B2 JP 3368125B2
Authority
JP
Japan
Prior art keywords
specific color
block
image data
value
white
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
JP32173895A
Other languages
Japanese (ja)
Other versions
JPH09163151A (en
Inventor
元 市村
好道 神田
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 JP32173895A priority Critical patent/JP3368125B2/en
Publication of JPH09163151A publication Critical patent/JPH09163151A/en
Application granted granted Critical
Publication of JP3368125B2 publication Critical patent/JP3368125B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

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 coding apparatus and a coding method for compressing and storing image data by block coding.

【0002】[0002]

【従来の技術】画像処理装置の一つに画像データをデジ
タル信号として取り扱うデジタル複写機が知られてい
る。この手段のデジタル複写機の構成を簡単に示すと図
3のようになる。すなわち、スキャナ31で画像データ
を読み取り、A/D変換部32でデジタル信号に変換
し、画像処理部33でガンマ変換、画質補正などの画像
処理を行い、画像出力部34で画像データを紙上に画素
毎に印字して画像を出力する。
2. Description of the Related Art A digital copying machine that handles image data as a digital signal is known as one of image processing apparatuses. The structure of the digital copying machine of this means is briefly shown in FIG. That is, the scanner 31 reads the image data, the A / D conversion unit 32 converts it into a digital signal, the image processing unit 33 performs image processing such as gamma conversion and image quality correction, and the image output unit 34 outputs the image data on paper. The image is output by printing for each pixel.

【0003】デジタル信号として画像を取り扱う複写機
では、メモリに画像を蓄えておくことが可能である。画
像データをメモリに蓄えることができれば、一度取り込
んだ画像を何度も利用したり、また、入出力のアドレス
を変えて画像の回転などの加工や編集を行うことができ
る。ただし、画像の情報量は多く、そのままメモリに蓄
えると多くのメモリ容量が必要になり(例えば A4サ
イズの原稿を1画素256階調として読み取り解像度4
00dpiで読み取ると、約16メガバイトにな
る。)、メモリの単価は高いことから、全体のコストが
割高になってしまう。そこで、画像データをそのまま蓄
積するのではなく、一度符号化してデータ量を圧縮して
メモリに蓄える方法が一般的に採られている。すなわ
ち、データを圧縮してメモリに蓄えることができるよう
にし、必要なメモリ量を減らしてコストを抑えるように
している。
In a copying machine that handles an image as a digital signal, the image can be stored in a memory. If the image data can be stored in the memory, the image once captured can be used many times, and the input and output addresses can be changed to perform processing and editing such as image rotation. However, the amount of information of an image is large, and if it is stored in the memory as it is, a large memory capacity is required (for example, an A4 size original document is read with 256 gradations per pixel and a resolution of 4).
Read at 00 dpi, it will be about 16 megabytes. ), Because the unit price of the memory is high, the overall cost becomes expensive. Therefore, a method is generally adopted in which the image data is not stored as it is, but is encoded once and the data amount is compressed and stored in a memory. That is, the data can be compressed and stored in the memory, and the required memory amount is reduced to reduce the cost.

【0004】画像データ圧縮方式であるブロック符号
化方式は図4に示すように画像をブロックごとに分解し
てブロック内の1バイトの濃度値Lijを図5に示すアル
ゴリズムで平均値La (1バイト)、階調幅指標Ld
(1バイト)、画素ごとの符号φij(2ビット×16画
素)にデータの圧縮を行うものである。この符号化方式
により、図6に示すように画素の1バイトの4×4画素
ブロックのデータ量16バイトが6バイトになり、3/
8のデータ量に圧縮が行える。図5のQj は復号時の量
子化代表値で図7に示すように各符号が復号時に割り当
てられる階調値である。
In a block coding method which is a compression method of image data, an image is decomposed into blocks as shown in FIG. 4, and a density value Lij of 1 byte in the block is averaged by La (1 Byte), gradation range index Ld
(1 byte), data is compressed into a code φij (2 bits × 16 pixels) for each pixel. By this encoding method, as shown in FIG. 6, the data amount of 16 bytes of a 4 × 4 pixel block of 1 byte of pixels becomes 6 bytes, and 3 /
It is possible to compress to the data amount of 8. Qj in FIG. 5 is a quantized representative value at the time of decoding and is a gradation value to which each code is assigned at the time of decoding as shown in FIG.

【0005】ところで、最近のデジタル複写機には、画
像データに赤などの特定色が含まれている場合、当該特
定色の画素を判別して当該特定色を出力するものがあ
る。例えば図8に示すように領域41が赤で、それ以外
の領域42が白黒である原稿のコピーをとった場合に、
赤が原稿のままコピーとして出力される。このようなコ
ピーにおいて、赤画像のデータも白黒画像と同じように
多値のデータとして扱うと情報量が多くなるので、特定
色(赤色や青色であるものが多い。)を扱って出力でき
るように構成された複写機をここではフルカラー複写機
と区別するために、便宜上、スポットカラー複写機と呼
ぶ。このようすスポットカラー複写機の構成を図9に示
す。この構成では、まず、スキャナ51ではR,G,B
のラインセンサで画像データを画素ごとのR,G,B信
号を読み込み、A/D変換部52で8ビットのデジタル
信号に変換し、特定色信号判定部53で画素毎のR,
G,B信号同士の差などからその画素の色を判定し、特
定色であると判定すると、特定色フラグ信号54をオン
にし、そうでないと判定すると、特定色フラグ信号54
をオフにする。この特定色フラグ信号54を受けて画像
データ切替部55では、特定色フラグ信号54がオンで
あればR,G,B信号から変換された特定色階調データ
を、オフであればR,G,B信号から変換された白黒階
調データをそれぞれ画素単位に切り替え、特定色フラグ
信号データとともに画像処理部56に送り、画像処理部
56でγ変換などの画像処理を行った後、画像出力部5
7でこれらのデータから特定色と白黒画像からなる画像
を出力する。
By the way, there is a recent digital copying machine which, when the image data includes a specific color such as red, discriminates the pixel of the specific color and outputs the specific color. For example, as shown in FIG. 8, when a copy is made of a document in which the area 41 is red and the other areas 42 are black and white,
The original in red is output as a copy. In such a copy, if the data of the red image is treated as multi-valued data similarly to the black-and-white image, the amount of information increases, so that it is possible to output by handling a specific color (often red or blue). For the sake of convenience, the copying machine configured as described above is referred to as a spot color copying machine in order to distinguish it from a full-color copying machine. The construction of such a spot color copying machine is shown in FIG. In this configuration, first, the scanner 51 uses R, G, B
Image sensor reads the R, G, B signals for each pixel, the A / D converter 52 converts the image data into an 8-bit digital signal, and the specific color signal determiner 53 converts the R, G, B for each pixel.
The color of the pixel is determined from the difference between the G and B signals, and if it is determined to be the specific color, the specific color flag signal 54 is turned on. If not determined, the specific color flag signal 54
Turn off. In response to the specific color flag signal 54, the image data switching unit 55 outputs the specific color gradation data converted from the R, G, B signals when the specific color flag signal 54 is on, and the R, G when it is off. , B signals converted from the black-and-white gradation data are switched pixel by pixel and sent to the image processing unit 56 together with the specific color flag signal data. After the image processing unit 56 performs image processing such as γ conversion, the image output unit 5
In step 7, an image consisting of a specific color and a black and white image is output from these data.

【0006】次いで、画像データ格納部58に画像デー
タを符号化して蓄積し、符号データを復号して画像デー
タを出力する場合について説明する。
Next, a case will be described in which the image data is encoded and stored in the image data storage unit 58, the encoded data is decoded, and the image data is output.

【0007】スキャナ51、A/D変換部52、特定色
信号判定部53、画像データ切替部55までの動作は前
述の場合と同様である。画像データ切替部55から送ら
れてきた多階調白黒・特定色混在画像は、前述のブロッ
ク符号化方式によって符号化され、画像データ格納部5
8に蓄積されるとともに、画素毎の特定色フラグ信号は
そのまま2値のデータとして画像データ格納部58に蓄
積される。これにより蓄積すべき1ブロック分のデータ
は図10に示すようにブロック符号6バイトに特定色フ
ラグ信号2バイト(1ビット×16画素)を加えたもの
になる。画像データ格納部58から読み出すときは、蓄
積された符号が復号されて多階調白黒・特定色混在デー
タに戻され、これに画素毎の特定色フラグ信号が付加さ
れた形で画像処理部56に送られ、画像出力部57でこ
れらのデータから特定色と白黒画像からなる画像を出力
する。
The operations up to the scanner 51, the A / D conversion section 52, the specific color signal determination section 53, and the image data switching section 55 are the same as in the above case. The multi-gradation black-and-white / specific color mixed image sent from the image data switching unit 55 is coded by the block coding method described above, and the image data storage unit 5
8 and the specific color flag signal for each pixel is directly stored in the image data storage unit 58 as binary data. As a result, the data for one block to be stored is the block code 6 bytes plus the specific color flag signal 2 bytes (1 bit × 16 pixels) as shown in FIG. When reading from the image data storage unit 58, the accumulated code is decoded and returned to multi-tone black and white / specific color mixed data, and a specific color flag signal for each pixel is added to this, and the image processing unit 56 is added. The image output unit 57 outputs an image composed of a specific color and a monochrome image from these data.

【0008】[0008]

【発明が解決しようとする課題】しかし、このような方
式を採用すると、画像データ格納部58には本来の画像
データのみならず、画素毎の特定色フラグ信号も2値デ
ータとして蓄積する必要があるので、所要メモリ量が増
して画像メモリ部を実現するためのコストがかる。な
お、メモリの増大量はA4サイズ、解像度400dpi
の画像の場合で2メガバイトとなる。前述のように赤画
像信号用にメモリ量を増やす必要があり、メモリ量を増
やすと、当然コストは上昇する。
However, if such a system is adopted, it is necessary to accumulate not only the original image data but also the specific color flag signal for each pixel as binary data in the image data storage unit 58. Therefore, the required memory amount is increased and the cost for realizing the image memory unit is increased. Note that the amount of memory increase is A4 size and resolution is 400 dpi.
In case of the image, it becomes 2 megabytes. As described above, it is necessary to increase the memory amount for the red image signal, and if the memory amount is increased, the cost naturally rises.

【0009】本発明は、かかる点に鑑みてなされたもの
で、その目的は、単色複写と同じメモリ量で特定色の
複写が行えるスポットカラー複写を実現することがで
きる画像データ符号化装置および方法を提供することに
ある。
The present invention has been made in view of the above points, and an object thereof is an image data encoding apparatus capable of realizing a spot color copying machine capable of copying a specific color with the same memory capacity as a monochromatic copying machine. And to provide a method.

【0010】[0010]

【0011】[0011]

【課題を解決するための手段】の手段は、多階調白
黒、特定色混在画像データを符号化する画像データ符号
化装置において、多階調白黒、特定色混在画像データを
あらかじめ設定した画素数からなるブロックに分割する
手段と、ブロック分割された多階調白黒・特定色混在画
像データのうち、多階調特定色画素であることを示すフ
ラグ信号が立っている画素値をあらかじめ設定した閾値
と比較し、当該閾値よりも高い画素値の場合は白画像の
画素値に変更し、閾値よりも低い画素値の場合はその画
素の前記フラグ信号を下ろす特定色画素を変更する手段
と、当該変更する手段によって処理された多階調白黒・
特定色混在画像データの1ブロック内の平均階調値を求
める手段と、前記変更する手段によって処理された前記
フラグ信号を調べ、多階調白黒・特定色混在画像データ
の1ブロック内で画素ごとの階調値がどれだけばらつい
ているかを示す階調分散指標値を求める手段と、前記変
更する手段によって処理された前記フラグ信号を調べ、
多階調白黒・特定色混在画像データの1ブロック内に特
定色が存在するか否かを判定する手段と、特定色がブロ
ック内に存在する場合は前記平均階調値と前記階調分散
指標値とを用いてブロック内多階調白黒・特定色混在画
像データを2レベルに量子化し、特定色がブロック内に
存在しない場合は4レベルに量子化する手段と、前記判
定する手段によって判定された結果を前記階調分散指標
値のあらかじめ設定された位置に埋め込む手段とを備
え、前記多階調白黒・特定色混在画像データを前記平均
階調値と前記判定する手段によって判定された結果を有
する前記階調分散指標値とにブロック単位で符号化し、
特定色が存在するブロックでは前記量子化する手段によ
って得られた2レベル量子化値および前記フラグ信号
と、特定色が存在しないブロックでは前記量子化する手
段によって得られた4レベル量子化値とにブロック単位
で符号化することを特徴とする。
A first means is to preset multi-tone black and white and specific color mixed image data in an image data encoding device which encodes multi-tone black and white and specific color mixed image data. A means for dividing into blocks composed of the number of pixels and a pixel value for which a flag signal indicating a multi-tone specific color pixel is set in the block-divided multi-tone monochrome / specific color mixed image data is set in advance. And a means for changing the pixel value of the white image when the pixel value is higher than the threshold value, and changing the specific color pixel for lowering the flag signal of the pixel when the pixel value is lower than the threshold value. , Multi-tone black and white processed by the changing means
The means for obtaining the average gradation value in one block of the specific color mixed image data and the flag signal processed by the changing means are checked, and each pixel in one block of the multi-tone monochrome / specific color mixed image data is examined. Means for obtaining a gradation dispersion index value indicating how much the gradation value of the above is varied, and the flag signal processed by the changing means,
Means for determining whether or not a specific color exists in one block of multi-tone black-and-white / specific color mixed image data, and the average gradation value and the gradation dispersion index when the specific color exists in the block. The value is used to quantize the multi-tone black-and-white / specific color mixed image data in the block into two levels, and when the specific color does not exist in the block, it is quantized into four levels And a means for embedding the result at the preset position of the gradation dispersion index value, and the result judged by the means for judging the multi-tone black and white / specific color mixed image data as the average gradation value. The gradation dispersion index value having is encoded in block units,
In the block in which the specific color exists, the 2-level quantized value and the flag signal obtained by the quantizing means, and in the block in which the specific color does not exist, the 4-level quantized value obtained by the quantizing means. It is characterized by encoding in block units.

【0012】[0012]

【0013】第の手段は、多階調白黒、特定色混在画
像データを符号化する画像データ符号化方法において、
多階調白黒、特定色混在画像データをあらかじめ設定し
た画素数からなるブロックに分割し、ブロック分割され
た多階調白黒・特定色混在画像データのうち、多階調特
定色画素であることを示すフラグ信号が立っている画素
値をあらかじめ設定した閾値と比較し、当該閾値よりも
高い画素値の場合は白画像の画素値に変更し、閾値より
も低い画素値の場合はその画素の前記フラグ信号を下ろ
し、このようにして処理された多階調白黒・特定色混在
画像データの1ブロック内の平均階調値を求め、前記変
更する手段によって処理された前記フラグ信号を調べ、
多階調白黒・特定色混在画像データの1ブロック内で画
素ごとの階調値がどれだけばらついているかを示す階調
分散指標値を求め、前記フラグ信号を調べ、多階調白黒
・特定色混在画像データの1ブロック内に特定色が存在
するか否かを判定し、特定色がブロック内に存在する場
合は前記平均階調値と前記階調分散指標値とを用いてブ
ロック内多階調白黒・特定色混在画像データを2レベル
に量子化し、特定色がブロック内に存在しない場合は4
レベルに量子化し、前記判定結果を前記階調分散指標値
のあらかじめ設定された位置に埋め込み、前記多階調白
黒・特定色混在画像データを、ブロック内平均階調値
と、前記判定結果を有する前記ブロック内階調分散指標
値とにブロック単位で符号化し、特定色が存在するブロ
ックでは前記2レベル量子化値および前記フラグ信号
と、特定色が存在しないブロックでは前記4レベル量子
化値にブロック単位で符号化することを特徴とする。
The second means is an image data encoding method for encoding multi-tone black and white, specific color mixed image data,
Multi-tone black-and-white and specific color mixed image data is divided into blocks of a preset number of pixels, and the multi-tone black and white and specific color mixed image data is divided into multi-tone specific color pixels. The pixel value for which the flag signal is set is compared with a preset threshold value, if the pixel value is higher than the threshold value, it is changed to the pixel value of the white image, and if the pixel value is lower than the threshold value, the pixel The flag signal is lowered, the average gradation value in one block of the multi-gradation black-and-white / specific color mixed image data processed in this way is obtained, and the flag signal processed by the changing means is examined,
Multi-tone black-and-white / specific color A gray-scale dispersion index value indicating how much the gray-scale value of each pixel varies in one block of mixed image data, and the flag signal is checked to check the multi-tone black-and-white / specific color. It is determined whether or not a specific color exists in one block of the mixed image data, and if the specific color exists in the block, the average gradation value and the gradation dispersion index value are used to determine the multi-level in the block. Quantize mixed tone black and white / specific color image data into 2 levels, and 4 if no specific color exists in the block.
Quantize to a level, embed the judgment result in a preset position of the gradation dispersion index value, and have the multi-gradation black-and-white / specific color mixed image data with an average gradation value within a block and the judgment result. The gradation dispersion index value within the block is coded in block units, and the block having a specific color has the 2-level quantized value and the flag signal, and the block having no specific color has the 4-level quantized value. It is characterized by encoding in units.

【0014】[0014]

【発明の実施の形態】以下、図面を参照し、本発明の実
施の形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0015】〔第1の実施形態〕なお、本実施形態にお
ける構成は図9に示した構成と同等なので、以下の説明
においても前述の従来例と同等な各部には同一の参照符
号を付し、重複する説明は適宜省略する。
[First Embodiment] Since the configuration of this embodiment is the same as that shown in FIG. 9, the same reference numerals are allotted to the same parts as in the above-described conventional example in the following description. The overlapping description will be appropriately omitted.

【0016】本発明の特徴は、図9における画像データ
格納部58の内部構成にあり、その詳細を図1に示す。
図1において、多階調白黒・特定色混在画像データおよ
び画素毎の特定色フラグ信号のうち、多階調白黒・特定
色混在画像データは4ラインFIFO1で4ライン分の
データが一度格納されてから4×4画素ブロックの形で
データ分離部2に送られる。このとき同時に特定色フラ
グ信号54が4ラインFIFOメモリ3を通してデータ
分離部2および色混在判定部4に送られる。データ分離
部2では、特定色フラグ信号54を用いて多階調白黒・
特定色混在画像データを白黒データと特定色データとに
分け、それぞれぞ白黒データ符号化部5および特定色デ
ータ符号化部6に送る。これらは別々に前述のブロック
符号化方式で符号化され、La 、Ld 、φijの符号デー
タが符号データ変換部7に送られる。同時に色混在判定
部4では、1ブロック内の特定色フラグ信号54が全て
オンになっているか、全てオフになっているか、オンオ
フが混在しているかを調べる。これはブロック内の各画
素の特定色フラグ信号54全ての論理積と論理和を取る
ことで実現することができる。1ブロック内の特定色フ
ラグ信号54がすべてオンになっている場合は、その論
理積も論理和もオンとなる。1ブロック内の特定色フラ
グ信号54がすべてオフになっている場合は、その論理
積も論理和もオフとなる。1ブロック内の特定色フラグ
信号54がオンオフ混在している場合には、その論理積
はオフであるが論理和はオンとなる。このように論理積
と論理和の2ビットの判定結果が符号データ変換部7に
送られる。符号データ変換部7では、色混在判定部4の
判定結果に基づき、1ブロック内の特定色フラグ信号5
4がすべてオンになっているか、すべてオフになってい
る場合には、その値によって白黒データ符号化部5もし
くは特定色データ符号化部6から送られてきた符号化デ
ータを選択し、Ld の最下位ビットを色混在判定部4の
論理和結果で置き換える。1ブロック内の特定色フラグ
信号54がオンオフ混在している場合、すなわち、色混
在判定部4の判定結果の論理積と論理和の値が異なる場
合は、白黒データ符号化部5から送られてきた符号デー
タLa の上位4ビットと特定色データ符号化部6から送
られてきた符号データLa の上位4ビットとを連結し、
それを新しいLa として符号メモリ7に蓄積する。同様
に白黒データ符号化部5から送られてきた符号データL
d の上位4ビットと特定色データ符号化部6から送られ
てきた符号データLd の上位4ビットとを連結し、それ
を新しいLd とし、さらにLd の最下位ビットを色混在
判定部4の論理和結果で置き換えて符号メモリ7に蓄積
する。
The feature of the present invention resides in the internal structure of the image data storage unit 58 in FIG. 9, the details of which are shown in FIG.
In FIG. 1, of the multi-tone black and white / specific color mixed image data and the multi-tone black / white / specific color mixed image data of the pixel-specific color flag signals, four lines of data are stored once by the 4-line FIFO 1. To the data separation unit 2 in the form of a 4 × 4 pixel block. At this time, at the same time, the specific color flag signal 54 is sent to the data separation section 2 and the color mixture determination section 4 through the 4-line FIFO memory 3. The data separation unit 2 uses the specific color flag signal 54 to perform multi-tone black and white
The specific color mixed image data is divided into black and white data and specific color data and sent to the black and white data encoding unit 5 and the specific color data encoding unit 6, respectively. These are separately coded by the block coding method described above, and the code data of La, Ld, and φij are sent to the code data conversion unit 7. At the same time, the color mixture determination unit 4 checks whether all the specific color flag signals 54 in one block are on, all are off, or whether on-off is mixed. This can be realized by taking the logical product and the logical sum of all the specific color flag signals 54 of each pixel in the block. When all the specific color flag signals 54 in one block are turned on, both the logical product and the logical sum are turned on. When all the specific color flag signals 54 in one block are off, both the logical product and the logical sum are off. When the specific color flag signals 54 in one block are mixed on and off, the logical product is off but the logical sum is on. In this way, the 2-bit determination result of the logical product and the logical sum is sent to the code data conversion unit 7. In the code data conversion unit 7, the specific color flag signal 5 in one block is based on the determination result of the color mixture determination unit 4.
If all 4 are turned on or all are turned off, the coded data sent from the black-and-white data coding unit 5 or the specific color data coding unit 6 is selected according to the value, and Ld The least significant bit is replaced with the logical sum result of the color mixture determination unit 4. When the specific color flag signals 54 in one block are mixed on and off, that is, when the values of the logical product and the logical sum of the determination results of the color mixing determination unit 4 are different, they are sent from the monochrome data encoding unit 5. The upper 4 bits of the code data La and the upper 4 bits of the code data La sent from the specific color data encoding unit 6 are connected,
It is stored in the code memory 7 as a new La. Similarly, the code data L sent from the monochrome data coding unit 5
The upper 4 bits of d and the upper 4 bits of the code data Ld sent from the specific color data encoding unit 6 are concatenated to make a new Ld, and the least significant bit of Ld is the logic of the color mixture determination unit 4. The sum result is replaced and stored in the code memory 7.

【0017】さらにφデータについては、白黒データ符
号化部5から送られてきた符号データφijの上位1ビッ
トと特定色データ符号化部6から送られてきた符号デー
タφijの上位1ビットとを組み合わせることによって新
しいφijデータとして符号メモリ7に蓄積する。
For φ data, the upper 1 bit of the code data φij sent from the monochrome data coding unit 5 and the upper 1 bit of the code data φij sent from the specific color data coding unit 6 are combined. As a result, new φij data is stored in the code memory 7.

【0018】このような処理で格納された符号データ
は、1ブロック内の特定色フラグ信号54が全てオンに
なっているか全てオフになっている場合は、単にLd の
最下位ビットを色混在判定部4の論理和結果の1ビット
で置き換えたのみなので、通常のブロック符号化を行っ
た場合と同一の符号量となる。また、1ブロック内の特
定色フラグ信号がオンオフ混在している場合も、前述の
ようにLa 、Ld を4ビット(Ld の一部は最下位ビッ
トを色混在判定部904の論理和結果の1ビットで置き
換えるので、3ビットに削減される。)に削減したもの
を連結して蓄積し、かつ、φijも1ビットずつに削減し
て連結するので、同様に通常のブロック符号化を行った
場合と同一の符号量となる。
In the code data stored by such processing, when the specific color flag signals 54 in one block are all on or all are off, the least significant bit of Ld is simply judged as a color mixture. Since only one bit of the logical sum result of the unit 4 is replaced, the code amount is the same as in the case of performing normal block coding. Even when the specific color flag signals in one block are mixed on and off, as described above, La and Ld are 4 bits (the least significant bit of a part of Ld is the logical sum result of the color mixture determination unit 904). Since it is replaced by bits, it is reduced to 3 bits.) The reduced one is concatenated and accumulated, and φij is also concatenated by reducing 1 bit at a time. And the code amount is the same.

【0019】〔第2の実施形態〕なお、本実施形態にお
ける構成は図9に示した構成と同等なので、以下の説明
においても前述の従来例と同等な各部には同一の参照符
号を付し、重複する説明は適宜省略する。
Second Embodiment Since the configuration of this embodiment is the same as the configuration shown in FIG. 9, the same reference numerals will be given to the same parts as in the above-mentioned conventional example in the following description. The overlapping description will be appropriately omitted.

【0020】本発明の特徴は、図9における画像データ
格納部705の内部構成にあり、その詳細を図2に示
す。図2において、多階調白黒・特定色混在画像データ
および画素毎の特定色フラグ信号のうち、多階調白黒・
特定色混在画像データは4ラインFIFO21で4ライ
ン分のデータが一度格納されてから4×4画素フロック
の形で特定色画素変更部22に送られる。このとき同時
に特定色フラグ信号54が4ラインFIFOメモリ23
を通して特定色画素変更部22に送られる。
The feature of the present invention resides in the internal configuration of the image data storage unit 705 in FIG. 9, the details of which are shown in FIG. In FIG. 2, among the multi-tone black and white / specific color mixed image data and the specific color flag signal for each pixel,
The specific color mixed image data is stored in the 4-line FIFO 21 once for 4 lines and then sent to the specific color pixel changing unit 22 in the form of a 4 × 4 pixel block. At this time, the specific color flag signal 54 is simultaneously sent to the 4-line FIFO memory 23.
Through the specific color pixel changing unit 22.

【0021】特定色画素変更部22では、特定色フラグ
信号54を用いて多階調白黒・特定色混在画像データか
ら特定色データのみに対してあらかじめ設定された閾値
レジスタ24の値との比較を行い、閾値より高い画素値
の場合は、その特定色データを白画像の画素値に変更
し、閾値より低い画素値の場合は、その画素の特定色フ
ラグ信号54をオフにする。
The specific color pixel changing section 22 uses the specific color flag signal 54 to compare the multi-tone monochrome / specific color mixed image data with the preset value of the threshold value register 24 for only the specific color data. If the pixel value is higher than the threshold value, the specific color data is changed to the pixel value of the white image, and if the pixel value is lower than the threshold value, the specific color flag signal 54 of the pixel is turned off.

【0022】次に、特定色画素変更部22を通った画像
データは符号化部25に送られ、前述のブロック符号化
方式によって符号化され、La 、Ld 、φijの符号デー
タが符号データ変換部26に送られる。同時に特定色フ
ラグ信号が色混在判定部27に送られ、1ブロック内の
特定色フラグ信号54が全てオフになっているか、オフ
になっていないかを判定する。これはブロック内の各画
素の特定色フラグ信号54全ての論理和を取ることで実
現することができる。1ブロック内の特定色フラグ信号
54がすべてオフになっている場合は、その論理和もオ
フとなる。1ブロック内の特定色フラグ信号54が全て
オンになっている場合、およびオンオフ混在している場
合には、その論理和はオンとなる。このように論理和の
1ビットの判定結果が符号データ変換部26に送られ
る。
Next, the image data passing through the specific color pixel changing unit 22 is sent to the encoding unit 25 and encoded by the block encoding method described above, and the encoded data of La, Ld and φij are converted into the encoded data converting unit. Sent to 26. At the same time, the specific color flag signal is sent to the color mixing determination unit 27, and it is determined whether all the specific color flag signals 54 in one block are off or not off. This can be realized by taking the logical sum of all the specific color flag signals 54 of each pixel in the block. When the specific color flag signals 54 in one block are all off, the logical sum is also off. When all the specific color flag signals 54 in one block are on, and when both on and off are mixed, the logical sum is on. In this way, the 1-bit result of the logical sum is sent to the code data conversion unit 26.

【0023】符号データ変換部26では、色混在判定部
27の判定結果に基づき、1ブロック内の特定色フラグ
信号54がすべてオフになっている場合には、符号化部
25から送られてきたLd の最下位ビットを色混在判定
部27の論理和結果で置き換える。1ブロック内の特定
色フラグが全てオンになっているか、オンオフ混在して
いる場合には、Ld の最下位ビットを色混在判定部27
の論理和結果で置き換えると同時にφijの符号データの
うち画素毎の下位1ビットを特定色フラグ信号54で置
き換える処理を行う。このようにして変換された符号デ
ータが符号メモリ28に格納される。
In the code data conversion unit 26, when all the specific color flag signals 54 in one block are turned off based on the judgment result of the color mixture judgment unit 27, it is sent from the coding unit 25. The least significant bit of Ld is replaced with the logical sum result of the color mixture determination unit 27. If all of the specific color flags in one block are on or there is a mixture of on and off, the least significant bit of Ld is the color mixture determination unit 27.
At the same time, the lower 1 bit of each pixel in the code data of φij is replaced with the specific color flag signal 54. The code data thus converted is stored in the code memory 28.

【0024】[0024]

【発明の効果】以上のように、本発明によれば、次のよ
うな効果を奏する。
As described above, according to the present invention, the following effects can be obtained.

【0025】[0025]

【0026】請求項および記載の発明によれば、符
号化する画像データの個々のブロック内に特定色が存在
する場合には、ブロック符号化の処理内容を通常の符号
化方法と切り替えて符号化し、符号化されたブロック符
号に特定色フラグ信号も含めることによってブロック符
号データと別に蓄積する必要がなくなり、これによって
特定色フラグ信号用のメモリを削減することができるの
で、スポットカラー複写機が単色複写機と同一のメモリ
量で実現することができる。その際、特定色の階調性が
重要でなければ、特定色を2値化してメモリに蓄積する
ことができ、白黒画像の符号化への影響を小さくするこ
とができる。また、これによって階調性の重要性に応じ
て、適宜処理内容を切り換えることができる。
According to the first and second aspects of the present invention, when the specific color exists in each block of the image data to be encoded, the processing content of the block encoding is switched to the normal encoding method. By encoding and including the specific color flag signal in the encoded block code, it is not necessary to store the block code data separately from the block code data, thereby reducing the memory for the specific color flag signal. Can be implemented with the same amount of memory as a monochromatic copying machine. At that time, if the gradation of the specific color is not important, the specific color can be binarized and stored in the memory, and the influence on the encoding of the monochrome image can be reduced. Further, this makes it possible to switch the processing contents as appropriate according to the importance of gradation.

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

【図1】本発明の第1の実施形態に係る画像データ格納
部の内部構成と処理の手順を示す図である。
FIG. 1 is a diagram showing an internal configuration of an image data storage unit and a processing procedure according to a first embodiment of the present invention.

【図2】本発明の第2の実施形態に係る画像データ格納
部の内部構成と処理の手順を示す図である。
FIG. 2 is a diagram showing an internal configuration of an image data storage unit and a procedure of processing according to a second embodiment of the present invention.

【図3】実施形態および従来例に係るデジタル複写機の
概略構成を示すブロック図である。
FIG. 3 is a block diagram showing a schematic configuration of a digital copying machine according to an embodiment and a conventional example.

【図4】ブロック符号化方式の画像データ圧縮方式を示
す説明図である。
FIG. 4 is an explanatory diagram showing an image data compression method of a block coding method.

【図5】ブロック符号化方式の画像データ圧縮方式のア
ルゴリズムを示す説明図である。
FIG. 5 is an explanatory diagram showing an algorithm of an image data compression method of a block coding method.

【図6】ブロック符号化方式で画像データを圧縮したと
きの状態を示す説明図である。
FIG. 6 is an explanatory diagram showing a state when image data is compressed by a block coding method.

【図7】復号時の濃度値を示す説明図である。FIG. 7 is an explanatory diagram showing density values at the time of decoding.

【図8】赤および黒の画像を有する原稿を示す図であ
る。
FIG. 8 is a diagram showing a document having red and black images.

【図9】メモリに画像を圧縮して格納する機能を有する
2色出力が可能な複写機の概略構成を示すブロック図で
ある。
FIG. 9 is a block diagram showing a schematic configuration of a copying machine capable of two-color output having a function of compressing and storing an image in a memory.

【図10】1ブロック分の画像データを格納状態を示す
説明図である。
FIG. 10 is an explanatory diagram showing a storage state of image data for one block.

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

1,3,21,23 4ラインFIFO 2 データ分離部 4 色混在判定部 5 白黒データ符号化部 6 特定色データ符号化部 7,26 符号データ変換部 8,28 符号メモリ 22 特定色画素変更部 24 閾値レジスタ 25 符号化部 27 色混在判定部 51 スキャナ 52 A/D変換部 53 特定色判定部 54 特定色フラグ信号 55 画像データ切替部 56 画像処理部 57 画像出力部 58 画像データ格納部 1,3,21,23 4-line FIFO 2 Data separation unit 4 color mixture determination section 5 Black and white data encoder 6 Specific color data encoder 7,26 Code data converter 8,28 Code memory 22 Specific color pixel change unit 24 threshold register 25 Encoder 27-color mixture determination section 51 scanner 52 A / D converter 53 Specific color determination unit 54 Specific color flag signal 55 Image data switching unit 56 Image processing unit 57 Image output section 58 Image data storage

フロントページの続き (56)参考文献 特開 平9−163150(JP,A) 特開 平9−163149(JP,A) 特開 平8−307691(JP,A) 特開 平8−51547(JP,A) 特開 平6−334870(JP,A) 特開 平5−110869(JP,A) 特開 平5−308529(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 Continuation of the front page (56) Reference JP-A-9-163150 (JP, A) JP-A-9-163149 (JP, A) JP-A-8-307691 (JP, A) JP-A-8-51547 (JP , A) JP-A-6-334870 (JP, A) JP-A-5-110869 (JP, A) JP-A-5-308529 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB) Name) H04N 1/41-1/419

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 多階調白黒、特定色混在画像データを符
号化する画像データ符号化装置において、 多階調白黒、特定色混在画像データをあらかじめ設定し
た画素数からなるブロックに分割する手段と、ブロック分割された多階調白黒・特定色混在画像データ
のうち、多階調特定色画素であることを示すフラグ信号
が立っている画素値をあらかじめ設定した閾値と比較
し、当該閾値よりも高い画素値の場合は白画像の画素値
に変更し、閾値よりも低い画素値の場合はその画素の前
記フラグ信号を下ろす特定色画素を変更する手段と、 当該変更する手段によって処理された多階調白黒・特定
色混在画像データの1ブロック内の平均階調値を求める
手段と、 前記変更する手段によって処理された前記フラグ信号を
調べ、多階調白黒・特定色混在画像データの1ブロック
内で画素ごとの階調値がどれだけばらついているかを示
す階調分散指標値を求める手段と、 前記変更する手段によって処理された前記フラグ信号を
調べ、多階調白黒・特定色混在画像データの1ブロック
内に特定色が存在するか否かを判定する手段と、 特定色がブロック内に存在する場合は前記平均階調値と
前記階調分散指標値とを用いてブロック内多階調白黒・
特定色混在画像データを2レベルに量子化し、特定色が
ブロック内に存在しない場合は4レベルに量子化する手
段と、 前記判定する手段によって判定された結果を前記階調分
散指標値のあらかじめ設定された位置に埋め込む手段
と、 を備え、前記多階調白黒・特定色混在画像データを前記
平均階調値と前記判定する手段によって判定された結果
を有する前記階調分散指標値とにブロック単位で符号化
し、特定色が存在するブロックでは前記量子化する手段
によって得られた2レベル量子化値および前記フラグ信
号と、特定色が存在しないブロックでは前記量子化する
手段によって得られた4レベル量子化値とにブロック単
位で符号化することを特徴とする画像データ符号化装
置。
1. An image data encoding device for encoding multi-tone black-and-white and specific color mixed image data, and means for dividing the multi-tone black-and-white and specific color mixed image data into blocks each having a preset number of pixels. Multi-tone black and white / specific color mixed image data divided into blocks
Flag signal indicating that the pixel is a multi-gradation specific color pixel
Compare the pixel value for which is set with a preset threshold value
However, if the pixel value is higher than the threshold, the pixel value of the white image
If the pixel value is lower than the threshold value,
The means for changing the specific color pixel for lowering the flag signal, and the multi-tone black / white / specification processed by the changing means
Obtaining the average gradation value in one block of color mixed image data
Means and the flag signal processed by the changing means
1 block of multi-tone black and white / specific color mixed image data
Shows how much the gradation value of each pixel varies within
Means for obtaining a gradation dispersion index value and the flag signal processed by the changing means.
1 block of multi-tone black and white / specific color mixed image data
Means for determining whether or not a specific color exists in the block, and the average gradation value when the specific color exists in the block.
Using the gradation distribution index value, multi-gradation black and white in a block
The specific color mixed image data is quantized into two levels, and the specific color is
If it does not exist in the block, it can be quantized into 4 levels.
Wherein the stage, and means for embedding the result determined by said determining means to a preset position of the gradation distribution indicator value comprises, the multi-tone black-and-white-specific color mixed image data
The result determined by the determining means as the average gradation value
With the gradation distribution index value having
In the block in which the specific color exists, the quantization means
The two-level quantized value obtained by
And a 4-level quantized value obtained by the quantizing means in a block in which a specific color does not exist are coded in block units.
【請求項2】 多階調白黒、特定色混在画像データを符
号化する画像データ符号化方法において、 多階調白黒、特定色混在画像データをあらかじめ設定し
た画素数からなるブロックに分割、 ブロック分割された多階調白黒・特定色混在画像データ
のうち、多階調特定色画素であることを示すフラグ信号
が立っている画素値をあらかじめ設定した閾値と比較
し、当該閾値よりも高い画素値の場合は白画像の画素値
に変更し、閾値よりも低い画素値の場合はその画素の前
記フラグ信号を下ろこのようにして 処理された多階調白黒・特定色混在画像
データの1ブロック内の平均階調値を求、 前記変更する手段によって処理された前記フラグ信号を
調べ、多階調白黒・特定色混在画像データの1ブロック
内で画素ごとの階調値がどれだけばらついているかを示
す階調分散指標値を求 記フラグ信号を調べ、多階調白黒・特定色混在画像デ
ータの1ブロック内に特定色が存在するか否かを判定
、 特定色がブロック内に存在する場合は前記平均階調値と
前記階調分散指標値とを用いてブロック内多階調白黒・
特定色混在画像データを2レベルに量子化し、特定色が
ブロック内に存在しない場合は4レベルに量子化、 前記判定結果を前記階調分散指標値のあらかじめ設定さ
れた位置に埋め込 記多階調白黒・特定色混在画像データを、ブロック内
平均階調値と、前記判定結果を有する前記ブロック内
調分散指標値とにブロック単位で符号化し、 特定色が存在するブロックでは前記2レベル量子化値お
よび前記フラグ信号と、特定色が存在しないブロックで
は前記4レベル量子化値にブロック単位で符号化するこ
とを特徴とする画像データ符号化方法
2. An image data encoding method for encoding multi-tone black-and-white and specific color mixed image data, wherein the multi-tone black-and-white and specific color mixed image data is divided into blocks each having a preset number of pixels. Of the divided multi-tone black-and-white / specific color mixed image data, the pixel value for which a flag signal indicating a multi-tone specific color pixel is set is compared with a preset threshold value, and a pixel higher than the threshold value is compared. change the pixel value of the white image in the case of the value, to the case of low pixel values than the threshold Kudaro the flag signal of the pixel, thus treated multi tone monochrome-specific color mixed image data Me seek average gradation value in one block, the examined changes the flag signal processed by means of the gradation value of each pixel within a block of multi-tone black-and-white-specific color mixed image data is how If For it has either a tone distribution indicator value determined Me a showing, before Symbol examine a flag signal, determines whether a specific color exists in the multi-tone black-and-white-specific color within one block of the mixed image data
And, if a particular color are present in the block blocks in the multi-tone black and white using said gradation distribution indicator value and the average gradation value
Quantizes the specific color mixed image data to the two levels, if a particular color is not present in the block is quantized into four levels, embed the-size Teiyui result a preset position of the gradation distribution indicator value look, the front SL multi-tone black-and-white-specific color mixed image data, encodes the block <br/> average gradation value, the said block gradation distribution indicator value with the determination result in block units, the specific before Symbol 2 level quantized value and the flag signal is a block of color present, the image data encoding method characterized in that encoded in block units to 4 level quantized value before Symbol is a block that does not exist specific color .
JP32173895A 1995-12-11 1995-12-11 Image data encoding apparatus and encoding method Expired - Fee Related JP3368125B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32173895A JP3368125B2 (en) 1995-12-11 1995-12-11 Image data encoding apparatus and encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32173895A JP3368125B2 (en) 1995-12-11 1995-12-11 Image data encoding apparatus and encoding method

Publications (2)

Publication Number Publication Date
JPH09163151A JPH09163151A (en) 1997-06-20
JP3368125B2 true JP3368125B2 (en) 2003-01-20

Family

ID=18135899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32173895A Expired - Fee Related JP3368125B2 (en) 1995-12-11 1995-12-11 Image data encoding apparatus and encoding method

Country Status (1)

Country Link
JP (1) JP3368125B2 (en)

Also Published As

Publication number Publication date
JPH09163151A (en) 1997-06-20

Similar Documents

Publication Publication Date Title
US4974071A (en) Color image data encoding apparatus having improved resolution/efficiency 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
JP3843581B2 (en) Image encoding device, image decoding device, image processing device, image encoding method, image decoding method, and image processing method
US5267330A (en) Image processing apparatus
JPH09200532A (en) Multilevel image data transmitter
JP2000125111A (en) Picture compression method, picture restoration method, picture compression device, picture reader, picture compression program storage medium and picture restoration program storage medium
JP3368125B2 (en) Image data encoding apparatus and encoding method
JPS621373A (en) Picture encoding system
JP3340007B2 (en) Image data encoding apparatus and encoding method
JPH04238462A (en) Picture processor
JP3340015B2 (en) Image data decoding device and decoding method
JP3630828B2 (en) Image forming apparatus and image data storage method
JPH09284566A (en) Image data encoding and decoding device and method thereof
JP3281183B2 (en) Image encoding / decoding method and image encoding / decoding device
JP3340014B2 (en) Image data encoding apparatus and encoding method
JP3340006B2 (en) Image processing device
JPH08298589A (en) Image processor of photograph/document mixed image
JPH08317220A (en) Encoding and decoding device and method for mixed image of different value bit maps
JPH1127670A (en) Decoder and decoding method
JPH08307666A (en) Data processing unit for multi-gradation image with document and photograph in existence in mixture
JP3374002B2 (en) Decoding device and decoding method
KR910008524B1 (en) Black puttern repeadly encoding method for fax
JP3432104B2 (en) Image decoding device and image decoding method
JP3793357B2 (en) Image coding apparatus and method

Legal Events

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

Free format text: PAYMENT UNTIL: 20071108

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081108

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees