JPH04220084A - Picture coding system - Google Patents

Picture coding system

Info

Publication number
JPH04220084A
JPH04220084A JP2412215A JP41221590A JPH04220084A JP H04220084 A JPH04220084 A JP H04220084A JP 2412215 A JP2412215 A JP 2412215A JP 41221590 A JP41221590 A JP 41221590A JP H04220084 A JPH04220084 A JP H04220084A
Authority
JP
Japan
Prior art keywords
gradation
area
image
encoding
gradation area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2412215A
Other languages
Japanese (ja)
Inventor
Toshio Shirasawa
寿夫 白沢
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 JP2412215A priority Critical patent/JPH04220084A/en
Publication of JPH04220084A publication Critical patent/JPH04220084A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To apply compression processing to a gradation area extracted from an input picture by means of ADCT and to apply coding to a non-gradation area by using an arithmetic code expanded in multi-level processing. CONSTITUTION:A color conversion section 2 converts an input picture signal into a luminance component.and a color difference component. Only the luminance component is inputted to a gradation area extraction section 3, in which a gradation area is extracted from a picture data, a coding section 4 uses an ADCT to apply compression processing to the extracted gradation area. After areas except the gradation area in the input picture are subject to color limit processing, the gradation area is set to 0 by a flag processing section 6 and the data of the areas subjected to color limit processing and the gradation area set to 0 are coded at a coding section 7 by using an arithmetic code expanded to a multi-level.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、電子ファイル等の画像
記録装置における画像符号化方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding system for an image recording device such as an electronic file.

【0002】0002

【従来の技術】近年、マルチ・メディア化の進展に伴い
、オフィス文書の中にもカラー画像で表現された文書が
増加しつつある。このようなカラー文書画像は、従来の
モノクロ2値の文書に比べてそのデータ量が非常に多く
、光ディスク等の大容量の記憶媒体を用いてもカラー文
書画像を蓄積する際には、データ量を削減するために圧
縮処理が必要となる。
2. Description of the Related Art In recent years, with the development of multimedia, an increasing number of office documents are expressed in color images. Such color document images have a much larger amount of data than conventional monochrome binary documents, and even when storing color document images using a large-capacity storage medium such as an optical disk, the amount of data is extremely large. Compression processing is required to reduce this.

【0003】ところで、一般的にカラー文書画像には、
文字領域の如き2値画像と絵柄の如き階調領域が混在し
ていて、しかもこれらの領域は、その画像の周波数特性
が異なるため、同一の符号化処理によって処理すると効
率が良くないので、従来は各領域に対してそれぞれ適し
た圧縮方法を用いることによってカラー文書データを圧
縮処理している。
By the way, in general, color document images include:
Binary images such as character areas and gradation areas such as pictures coexist, and since these areas have different frequency characteristics, it is not efficient to process them using the same encoding process. compresses color document data by using a compression method suitable for each area.

【0004】すなわち、文字を対象にした白黒2値画像
領域に対しては1次元符号化(Modified Hu
ffman符号化方式、MH)あるいは2次元逐次処理
符号化(ModifiedMR 符号化方式、MMR)
等の可逆圧縮を行い、2値画像一般に対してはPRES
+算術符号で符号化し、自然静止画像領域に対してはA
DCT(AdaptiveDiscrete Cosi
ne Transformer、適用離散コサイン変換
)によって圧縮を行っている。
[0004] That is, one-dimensional encoding (Modified Hu
ffman encoding system, MH) or two-dimensional sequential processing encoding (ModifiedMR encoding system, MMR)
For general binary images, PRES
+ encoded with arithmetic code, A for natural still image areas
DCT (Adaptive Discrete Cosi
Compression is performed using ne Transformer (applied discrete cosine transform).

【0005】このように、一般に2値のエッジ成分の多
い画像に対しては可逆符号化方式を用い、階調成分の多
い画像に対しては非可逆の圧縮方式を用いている。斯る
符号化方式の特性の相違から、特性の異なる画像が混在
する所謂マルチメディア画像では、領域を分割し、各領
域毎に適応符号化処理を行っている。例えば、2値領域
として文字領域を抽出し、文字領域に対してMMRで符
号化し、残余の領域に対してADCTによって圧縮を行
う符号化方式が提案されている(平成2年度画像電子学
会全国大会予稿31,P131−136)。
[0005] As described above, in general, a reversible encoding method is used for an image having many binary edge components, and an irreversible compression method is used for an image having many tone components. Because of the differences in the characteristics of such encoding methods, in so-called multimedia images in which images with different characteristics coexist, the regions are divided and adaptive encoding processing is performed for each region. For example, an encoding method has been proposed in which a character region is extracted as a binary region, the character region is encoded by MMR, and the remaining region is compressed by ADCT (1990 National Conference of the Institute of Image Electronics Engineers). Proceedings 31, P131-136).

【0006】[0006]

【発明が解決しようとする課題】上記した符号化方式に
おける領域の分離方法は、文字領域のみを対象として領
域を分離しているためカタログのような複雑な画像の場
合、文字と絵柄の分離が困難になるという問題があった
。これを解決する従来の領域分離の手法として、例えば
エッジ要素に注目してブロック属性を判定し、背景濃度
に着目してブロック属性を判定することにより、ブロッ
クの統合を行い濃淡領域を抽出するアルゴリズムがある
(電子情報通信学会論文誌‘87/1  Vol.J7
0−BNo.1pp88−95)。しかし、このアルゴ
リズムでは背景濃度を用いているため、画像中に複数の
色背景領域が存在している場合、背景濃度を決定するこ
とが難しいという問題があった。
[Problems to be Solved by the Invention] The region separation method in the above-mentioned encoding system separates regions only for text regions, so in the case of complex images such as catalogs, it is difficult to separate text and pictures. The problem was that it was difficult. Conventional region separation methods to solve this problem include, for example, an algorithm that focuses on edge elements to determine block attributes, focuses on background density to determine block attributes, and then integrates blocks to extract light and shade regions. (IEICE Journal '87/1 Vol. J7
0-BNo. 1pp88-95). However, since this algorithm uses background density, there is a problem in that it is difficult to determine the background density when multiple color background regions exist in an image.

【0007】本発明の目的は、入力画像から階調領域を
抽出し、階調領域に対してはADCTによって圧縮処理
し、非階調領域に対しては多値に拡張した算術符号を用
いて符号化する画像符号化方式を提供することにある。
An object of the present invention is to extract tone regions from an input image, compress the tone regions by ADCT, and compress the non-gradation regions by using arithmetic codes expanded to multi-values. The object of the present invention is to provide an image encoding method for encoding.

【0008】[0008]

【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、カラー画像を符号化する
画像符号化方式において、入力画像から階調領域を抽出
する手段と、該階調領域に対して符号化する第1の符号
化手段と、前記入力画像の内、階調領域を除く領域に対
して限定色化する手段と、前記階調領域を所定の属性値
に設定する手段と、前記限定色化された領域と該属性値
に設定された階調領域を符号化する第2の手段とを備え
たことを特徴としている。
Means for Solving the Problems In order to achieve the above object, the invention according to claim 1 provides an image encoding method for encoding a color image, which includes means for extracting a gradation region from an input image; a first encoding means for encoding a gradation region; a means for converting a region of the input image excluding the gradation region into a limited color; and setting the gradation region to a predetermined attribute value. and second means for encoding the limited color area and the gradation area set to the attribute value.

【0009】請求項2記載の発明では、前記階調領域を
抽出する手段は、局所領域におけるエッジ成分と濃淡画
像の近似平面の法線ベクトル方向を参照することにより
領域の階調性を判定することを特徴としている。
In the invention according to claim 2, the means for extracting the gradation area determines the gradation of the area by referring to the edge component in the local area and the normal vector direction of the approximate plane of the grayscale image. It is characterized by

【0010】請求項3記載の発明では、前記近似平面を
求める際に必要な画素領域の大きさを、エッジ画素を含
まないように動的に変化させることを特徴としている。 請求項4記載の発明では、前記エッジ画素数が所定の閾
値以下で、かつ前記法線ベクトルがZ軸に対して所定の
角度以上傾いている局所領域を階調領域と判定すること
を特徴としている。
The invention according to claim 3 is characterized in that the size of the pixel area necessary for determining the approximate plane is dynamically changed so as not to include edge pixels. The invention according to claim 4 is characterized in that a local area in which the number of edge pixels is less than or equal to a predetermined threshold and the normal vector is inclined at a predetermined angle or more with respect to the Z axis is determined to be a gradation area. There is.

【0011】[0011]

【作用】本発明の画像符号化方式によれば、入力画像信
号を色変換部によって輝度成分と色差成分に変換し、こ
の内、輝度成分のみが階調領域抽出部に入力されて、画
像データから階調領域を抽出し、抽出された階調領域に
対して、符号化部はADCTによって圧縮処理する。入
力画像の内、階調領域を除く領域に対して、限定色化し
てから、階調領域をフラグ処理部で値0に設定し、限定
色化された領域と値0に設定された階調領域を符号化部
で多値に拡張した算術符号を用いて符号化する。従って
、本発明によれば、多値のカラー原稿から階調領域を抽
出し、階調領域と非階調領域に対して符号化方式を切り
分けているので、形状が限定できないような色文字や色
背景を含んでいる場合でも、それら領域の形状を認識す
ることなく非階調領域に対して同一の符号化処理によっ
て圧縮することができ、領域情報によるオーバーヘッド
を増大させることはない。
[Operation] According to the image encoding method of the present invention, the input image signal is converted into a luminance component and a color difference component by the color conversion section, and only the luminance component is inputted to the gradation region extraction section, and the image data is A gradation region is extracted from the gradation region, and the encoding unit performs compression processing on the extracted gradation region by ADCT. After converting the input image into a limited color for the area excluding the gradation area, the gradation area is set to a value of 0 in the flag processing section, and the limited color area and the gradation set to the value 0 are set. The region is encoded using an arithmetic code expanded to multi-value in the encoding section. Therefore, according to the present invention, the gradation area is extracted from a multi-level color original, and the encoding method is divided into the gradation area and the non-gradation area, so that color characters whose shapes cannot be defined, etc. Even when a color background is included, non-gradation areas can be compressed by the same encoding process without recognizing the shapes of those areas, and overhead due to area information does not increase.

【0012】また、画像の局所階調性をエッジ情報と法
線ベクトルの傾きによって判定しているので、画像の背
景色を確定できないような原稿においても階調領域を抽
出することができ、また、網点画像のように疑似中間調
表現された画像に対しても同一の処理によって画像の階
調性を判定することができる。更に、大域処理によって
局所処理の判定結果をチェックしているので、広い範囲
にわたって緩やかに階調変化しているような領域でも抽
出することができる。
Furthermore, since the local gradation of an image is determined based on edge information and the slope of the normal vector, it is possible to extract gradation areas even in documents where the background color of the image cannot be determined. The same process can be used to determine the gradation of an image expressed in pseudo-halftones, such as a halftone image. Furthermore, since the determination results of the local processing are checked by the global processing, it is possible to extract even areas where the gradation gradually changes over a wide range.

【0013】マスクの大きさをエッジ画素を含まないよ
うに適応的に切り換えているので、エッジ周辺での平面
近似の推定誤差を小さくすることができ、また、エッジ
画素が少なく、かつ法線ベクトルがZ軸に対して所定の
角度以上傾いているブロックを階調領域と判定している
ので、高精度に局所領域の階調性を判定することができ
る。
Since the size of the mask is adaptively switched so as not to include edge pixels, it is possible to reduce the estimation error of plane approximation around the edges, and also to reduce the number of edge pixels and normal vectors. Since a block that is tilted by a predetermined angle or more with respect to the Z axis is determined to be a gradation area, it is possible to determine the gradation of a local area with high accuracy.

【0014】[0014]

【実施例】以下、本発明の一実施例を図面を用いて具体
的に説明する。例えばカタログのような複雑な構造を有
するカラー文書画像の符号化においては、符号化方式が
出来るだけ少ないほうが処理が単純化され、また蓄積あ
るいは伝送するときのヘッダ情報も少なくなる点を考慮
して、本発明では、画像の階調性に注目してカラー文書
画像を階調領域と非階調領域の2種類の領域に分離し、
それぞれの領域を符号化する方式を採っている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. For example, when encoding a color document image with a complex structure such as a catalogue, the fewer encoding methods are used, the simpler the processing will be, and the less header information will be required when storing or transmitting. In the present invention, a color document image is separated into two types of areas, a gradation area and a non-gradation area, focusing on the gradation of the image.
A method is used to encode each area.

【0015】図1は、本発明の一実施例に係る画像符号
化装置のブロック構成図である。入力画像は、多階調の
画像入力部1によって読み取られ、読み取られた画像デ
ータはR、G、B信号に分解されて(各色が256階調
)、色変換部2に入力される。色変換部2では、R、G
、B信号を線形変換した輝度成分Yと色差成分Cr,C
bに変換する。この内、輝度成分Yのみが階調領域抽出
部3に入力されて、後述するように画像データから階調
領域を抽出する。このように、本発明では画像の階調性
に着目しているので輝度成分のみから階調領域を抽出す
ることができる。次いで、階調領域符号化部4において
、抽出された階調領域に対してラスタースキャンのよう
に左上から右下に順にブロック単位にADCT方式で符
号化される。なお、階調領域の符号化方式であるADC
T方式では、8画素×8画素を1ブロックとして符号化
するが、色差成分Cr,Cbは水平方向(または垂直方
向を含む)を1/2に間引きするため、符号化処理ブロ
ックの単位は16画素×16画素となる。従って、階調
領域の抽出単位も1ブロックが16画素×16画素とな
る。
FIG. 1 is a block diagram of an image encoding apparatus according to an embodiment of the present invention. An input image is read by a multi-gradation image input section 1, and the read image data is decomposed into R, G, and B signals (each color has 256 gradations) and input to a color conversion section 2. In the color conversion section 2, R, G
, the luminance component Y and the color difference components Cr, C obtained by linearly converting the B signal.
Convert to b. Of these, only the luminance component Y is input to the gradation region extraction section 3, which extracts the gradation region from the image data as described later. In this way, since the present invention focuses on the gradation of an image, it is possible to extract a gradation region from only the luminance component. Next, in the gradation region encoding unit 4, the extracted gradation region is encoded block by block sequentially from the upper left to the lower right like raster scanning using the ADCT method. Note that ADC, which is a gradation domain encoding method,
In the T method, 8 pixels x 8 pixels are encoded as one block, but the color difference components Cr and Cb are thinned out to 1/2 in the horizontal direction (or vertical direction), so the unit of encoding processing block is 16 The number of pixels is 16 pixels. Therefore, one block has 16 pixels x 16 pixels in the extraction unit of the gradation region.

【0016】一方、階調領域の符号化処理後に、非階調
領域に対して符号化処理を行うが、その前処理として、
原画像における非階調領域の限定色化処理と階調領域の
フラグ処理を行う。すなわち、原画像の状態では同一の
文字の内部あるいは同一の背景における隣接する画素間
であってもノイズ等の影響によって濃度値が安定してい
ないので、画像の限定色化を行う必要がある。限定色化
処理部5では、非階調画像全体の濃度ヒストグラムをと
り、255色の代表色でマッピングする。
On the other hand, after the encoding process of the gradation area, the encoding process is performed on the non-gradation area, but as pre-processing,
Performs color limiting processing for non-gradation areas and flag processing for gradation areas in the original image. That is, in the state of the original image, density values are not stable even within the same character or between adjacent pixels on the same background due to the influence of noise, so it is necessary to perform limited colorization of the image. The limited color processing unit 5 takes a density histogram of the entire non-gradation image and maps it with 255 representative colors.

【0017】ところで、非階調領域は画素間の相関が非
常に強いため一般に階調領域よりも高圧縮が可能であり
、画像全体を符号化しても符号化データ量は小さい。 そこで、本発明では、原画像全体を符号化し、ヘッダ情
報の増加を抑える。この時、先に抽出した階調領域を識
別するために、フラグ処理部6は階調領域の部分を属性
値0のフラグで置き換える(フラグに値0を用いている
ので、前述した代表色は1−255の値の範囲で設定さ
れる)。このようにして生成されたフラグ情報を含む非
階調画像に対して、非階調符号化処理部7は多値に拡張
した算術符号(この符号については、例えば、画像電子
学会誌,12,3pp219−226  1983に記
載されている)を用いて符号化する。図2(a)は、写
真等の階調領域を含む原画像を示し、図2(b)は、写
真部をフラグ0に置き換えて全体が非階調画像として符
号化される画像である。
By the way, since the correlation between pixels in a non-gradation area is very strong, higher compression is generally possible than in a gradation area, and even if the entire image is encoded, the amount of encoded data is small. Therefore, in the present invention, the entire original image is encoded to suppress the increase in header information. At this time, in order to identify the previously extracted gradation area, the flag processing unit 6 replaces the gradation area part with a flag with an attribute value of 0 (since the value 0 is used for the flag, the representative color described above is (set in the range of values 1-255). For the non-gradation image containing flag information generated in this way, the non-gradation encoding processing unit 7 applies an arithmetic code expanded to a multi-value (this code is described in, for example, Journal of the Institute of Image Electronics Engineers, 12, 3pp 219-226 1983). FIG. 2(a) shows an original image including a gradation area such as a photograph, and FIG. 2(b) shows an image in which the photograph part is replaced with flag 0 and the entire image is encoded as a non-gradation image.

【0018】図3は、階調領域抽出部3における階調領
域の抽出処理手順を示すフローチャートである。以下、
本発明による階調領域の抽出処理を詳細に説明する。
FIG. 3 is a flowchart showing the procedure of the gradation area extraction process in the gradation area extraction section 3. below,
The gradation region extraction process according to the present invention will be explained in detail.

【0019】エッジ抽出(ステップ31);エッジの抽
出は、Sobelオペレータを用いて抽出する。エッジ
か否かを判定するための閾値を値250に設定すること
によって、べた文字あるいは背景のエッジが抽出される
。また、印刷物のように網点で表現される絵柄部分では
、スキャナーで入力した場合濃度変化があまり大きく現
われないため、ほとんどエッジを生じない。従って、印
刷物であっても、エッジ画素が多く存在している場合に
は、文字領域のような非階調領域である可能性が高いこ
とになる。
Edge extraction (step 31): Edges are extracted using the Sobel operator. By setting the threshold value for determining whether or not an edge is an edge to a value of 250, edges of solid characters or background are extracted. Furthermore, in the case of a pattern expressed by halftone dots such as in a printed matter, when input using a scanner, density changes do not appear very large, so edges hardly occur. Therefore, even in a printed matter, if there are many edge pixels, there is a high possibility that it is a non-gradation area such as a character area.

【0020】法線ベクトルの計算(ステップ32);上
記ステップで抽出されたエッジ画素以外の画素について
、法線ベクトルを求める。すなわち、輝度成分値による
濃淡画像を立体図形とみて、法線を求める点Pの接平面
に垂直な直線を点Pの法線といい、その方向ベクトルを
法線ベクトルという。濃淡画像における法線ベクトルは
、注目画素を取り囲む小領域を面素と考え、この小領域
を平面とみなすことによって近似される。そして、この
近似された平面の法線ベクトルをその面素における法線
ベクトルとする(図4)。具体的には、平面方程式をa
x+by+cz=1とし、小領域中の画素の空間座標を
用いて最小二乗法によって近似する。なお、近似平面が
原点(0,0,0)付近を通ると推定誤差が増えるので
、空間座標値としては、xに画素の水平アドレス、yに
画素の垂直アドレス、zに輝度成分値+256を用いて
、近似平面が原点を通らないように水平移動する。
Calculation of normal vector (step 32); Normal vectors are calculated for pixels other than the edge pixels extracted in the above step. That is, considering a grayscale image based on luminance component values as a three-dimensional figure, a straight line perpendicular to the tangential plane of the point P for which the normal is to be found is called the normal to the point P, and its direction vector is called the normal vector. The normal vector in a grayscale image is approximated by considering a small region surrounding a pixel of interest as a surface element, and by regarding this small region as a plane. Then, the normal vector of this approximated plane is taken as the normal vector of that plane element (FIG. 4). Specifically, the plane equation is a
With x+by+cz=1, approximation is performed using the least squares method using the spatial coordinates of pixels in the small area. Note that the estimation error increases when the approximate plane passes near the origin (0, 0, 0), so the spatial coordinate values are: x is the horizontal address of the pixel, y is the pixel's vertical address, and z is the luminance component value + 256. to move the approximate plane horizontally so that it does not pass through the origin.

【0021】また、近似平面を求める際に必要な画素領
域の大きさ(マスクサイズという)は、最大マスクサイ
ズと最小マスクサイズを決めておき、その間で動的に変
化させる。すなわち、図5(a)、(b)に示すように
、計算の精度を上げるために、エッジ以外は最大マスク
サイズを用い、エッジ近傍では最小マスクサイズを用い
る。最小マスクサイズにしてもエッジを含む場合は、法
線ベクトル計算不可能画素とする。
Furthermore, the size of the pixel area (referred to as mask size) necessary for finding an approximate plane is determined by determining a maximum mask size and a minimum mask size, and dynamically changing the size between them. That is, as shown in FIGS. 5A and 5B, in order to improve calculation accuracy, the maximum mask size is used for areas other than edges, and the minimum mask size is used near edges. If an edge is included even if the mask size is set to the minimum size, the pixel is treated as a pixel for which the normal vector cannot be calculated.

【0022】階調ブロックの判定(ステップ33);上
記ステップで求められたエッジと法線ベクトルを参照し
て、ブロック毎に階調領域の判定を行う。すなわち、エ
ッジ画素の割合が所定の閾値以上の場合には、文字エッ
ジである可能性が高く、法線ベクトルが一様にZ軸と平
行ならば、局所的に非階調領域と判定されることから、
ブロック内のエッジ画素の割合が例えば6%(すなわち
15画素、これは実測値による)以下で、且つそのブロ
ック内の法線ベクトルとZ軸との空間角度が5度以上傾
いていれば、そのブロックを階調領域と判定する。
Determination of gradation block (step 33): With reference to the edges and normal vectors obtained in the above step, the gradation area is determined for each block. In other words, if the percentage of edge pixels is above a predetermined threshold, there is a high possibility that it is a character edge, and if the normal vector is uniformly parallel to the Z axis, it is determined that it is a locally non-gradation area. Therefore,
If the proportion of edge pixels in a block is, for example, 6% or less (that is, 15 pixels, based on actual measurements), and the spatial angle between the normal vector in that block and the Z axis is tilted by 5 degrees or more, then Determine the block as a gradation area.

【0023】領域の分割(ステップ34);上記ステッ
プによってブロック単位での階調領域の抽出が行われる
が、カラーの文書画像では広範囲にわたって緩やかなグ
ラジュエーションを持っている場合がある。そこで、本
発明では、画像全体の領域分割を行い、分割された各領
域毎の階調性を判定している。すなわち、領域分割は、
法線ベクトル計算可能な画素の割合が1ブロック内で6
0%以上で、しかも全ての法線ベクトルがZ軸とほぼ平
行(空間角度で5度以内)であるブロックを対象として
行う。そして、4近傍の対象ブロックを同一領域として
併合していく。このように分割された各グループの階調
性を再度チェックすることにより、大域的に領域の属性
を判定する。
Region division (step 34): In the above step, gradation regions are extracted on a block-by-block basis, but a color document image may have a gradual gradation over a wide range. Therefore, in the present invention, the entire image is divided into regions, and the gradation of each divided region is determined. In other words, the region division is
The percentage of pixels for which normal vectors can be calculated is 6 within one block.
0% or more, and all normal vectors are approximately parallel to the Z axis (within 5 degrees in spatial angle). Then, four neighboring target blocks are merged as the same area. By checking the gradation of each group divided in this way again, the attribute of the region is determined globally.

【0024】領域単位の階調判定(ステップ35);上
記ステップでグループ化された各領域毎の濃度ヒストグ
ラムの移動平均をとり、移動平均の最大値が全画素数の
90%を越えるならば、そのグループの領域全体を単一
濃度すなわち非階調領域であると判定し、その平均濃度
を全画素値の濃度値とする。50%−90%の場合には
、非階調領域と階調領域が混在している状態であり、ブ
ロック毎にピークの濃度範囲にあるものを非階調領域と
判定する。50%以下の場合には全体的にグラジュエー
ションが存在するものとして、そのグループの全領域を
階調領域として判定する。これにより、大域的な階調領
域の判定が行われた。
Gradation determination for each area (step 35): Take the moving average of the density histogram for each area grouped in the above step, and if the maximum value of the moving average exceeds 90% of the total number of pixels, The entire area of the group is determined to be a single density area, that is, a non-gradation area, and its average density is set as the density value of all pixel values. In the case of 50% to 90%, the non-gradation area and the gradation area are mixed, and the area within the peak density range for each block is determined to be the non-gradation area. If it is 50% or less, it is assumed that gradation exists overall, and the entire area of the group is determined to be a gradation area. As a result, a global gradation region was determined.

【0025】領域の統合(ステップ36);最終的に、
階調領域と非階調領域が細分化されすぎないように領域
の統合を行う。すなわち、4近傍を階調領域によって囲
まれた非階調領域を階調領域に変更することにより、統
合処理する。上述したように、本発明では、画像の階調
性を法線ベクトルの傾きによって判定しているので、網
点領域における誤判定を抑えることができる。
Integration of regions (step 36); finally,
The areas are integrated so that the gradation area and the non-gradation area are not segmented too much. That is, the integration process is performed by changing the non-gradation area surrounded by the gradation areas in the four neighborhoods to the gradation area. As described above, in the present invention, since the gradation of an image is determined based on the slope of the normal vector, it is possible to suppress erroneous determination in halftone dot areas.

【0026】[0026]

【発明の効果】以上、説明したように、本発明によれば
、以下に記載されるような効果を奏することができる。 すなわち、請求項1に記載の発明によれば、多値のカラ
ー原稿から階調領域を抽出し、階調領域と非階調領域に
対して符号化方式を切り分けているので、形状が限定で
きないような色文字や色背景を含んでいる場合でも、そ
れら領域の形状を認識することなく非階調領域に対して
同一の符号化処理によって圧縮することができ、従って
、領域情報によるオーバーヘッドを増大させることはな
い。
[Effects of the Invention] As explained above, according to the present invention, the following effects can be achieved. That is, according to the invention set forth in claim 1, the gradation area is extracted from a multivalued color original, and the encoding method is divided into the gradation area and the non-gradation area, so that the shape cannot be limited. Even if the image contains colored characters or colored backgrounds, it is possible to compress the non-tone areas using the same encoding process without recognizing the shape of those areas, thus increasing the overhead due to area information. I won't let you.

【0027】請求項2に記載の発明によれば、画像の局
所階調性をエッジ情報と法線ベクトルの傾きによって判
定しているので、画像の背景色を確定できないような原
稿においても階調領域を抽出することができ、また、網
点画像のように疑似中間調表現された画像に対しても同
一の処理によって画像の階調性を判定することができる
。さらに、大域処理によって局所処理の判定結果をチェ
ックしているので、広い範囲にわたって緩やかに階調変
化しているような領域でも抽出することができる。
According to the second aspect of the invention, since the local gradation of an image is determined based on the edge information and the slope of the normal vector, the gradation can be determined even in an original where the background color of the image cannot be determined. Regions can be extracted, and the gradation of an image can be determined by the same processing even for an image expressed in pseudo halftones, such as a halftone image. Furthermore, since the determination results of the local processing are checked by the global processing, it is possible to extract even areas where the gradation gradually changes over a wide range.

【0028】請求項3に記載の発明によれば、マスクの
大きさをエッジ画素を含まないように適応的に切り換え
ているので、エッジ周辺での平面近似の推定誤差を小さ
くすることができる。
According to the third aspect of the invention, since the size of the mask is adaptively changed so as not to include edge pixels, it is possible to reduce estimation errors in plane approximation around edges.

【0029】請求項4に記載の発明によれば、エッジ画
素が少なく、かつ法線ベクトルがZ軸に対して所定の角
度以上傾いているブロックを階調領域と判定しているの
で、高精度に局所領域の階調性を判定することができる
According to the fourth aspect of the invention, a block having a small number of edge pixels and whose normal vector is tilted at a predetermined angle or more with respect to the Z axis is determined to be a gradation area, so that high precision can be achieved. It is possible to determine the gradation of a local area.

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

【図1】本発明の一実施例に係る画像符号化装置のブロ
ック構成図である。
FIG. 1 is a block diagram of an image encoding device according to an embodiment of the present invention.

【図2】(a)は写真等の階調領域を含む原画像を示す
。(b)は写真部をフラグ0に置き換えて全体が非階調
画像として符号化される画像である。
FIG. 2(a) shows an original image including a gradation area such as a photograph. (b) is an image in which the photographic part is replaced with flag 0 and the entire image is encoded as a non-gradation image.

【図3】本発明の階調領域抽出部における階調領域の抽
出処理手順を示すフローチャートである。
FIG. 3 is a flowchart illustrating a gradation region extraction processing procedure in a gradation region extraction section of the present invention.

【図4】平面近似された平面の法線ベクトルを示す図で
ある。
FIG. 4 is a diagram showing normal vectors of a plane approximated to a plane.

【図5】(a)は最大マスクサイズと最小マスクサイズ
を説明するための領域の平面図である。 (b)は最大マスクサイズと最小マスクサイズを説明す
るための領域の濃度断面図である。
FIG. 5(a) is a plan view of a region for explaining maximum mask size and minimum mask size. (b) is a concentration cross-sectional view of a region for explaining the maximum mask size and the minimum mask size.

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

1  画像入力部 2  色変換部 3  階調領域抽出部 4  階調領域符号化部 5  限定色化処理部 6  フラグ処理部 7  非階調領域符号化部 1 Image input section 2 Color conversion section 3 Gradation area extraction part 4 Gradation domain encoding unit 5 Limited colorization processing section 6 Flag processing section 7 Non-gradation area encoding unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  カラー画像を符号化する画像符号化方
式において、入力画像から階調領域を抽出する手段と、
該階調領域に対して符号化する第1の符号化手段と、前
記入力画像の内、階調領域を除く領域に対して限定色化
する手段と、前記階調領域を所定の属性値に設定する手
段と、前記限定色化された領域と該属性値に設定された
階調領域を符号化する第2の手段とを備えたことを特徴
とする画像符号化方式。
1. In an image encoding method for encoding a color image, means for extracting a gradation region from an input image;
a first encoding means for encoding the gradation area; a means for converting an area of the input image excluding the gradation area into limited colors; and a first encoding means for encoding the gradation area; An image encoding method comprising: a means for setting; and a second means for encoding the limited color area and the gradation area set to the attribute value.
【請求項2】  前記階調領域を抽出する手段は、局所
領域におけるエッジ成分と濃淡画像の近似平面の法線ベ
クトル方向を参照することにより領域の階調性を判定す
ることを特徴とする請求項1記載の画像符号化方式。
2. The means for extracting the gradation region determines the gradation of the region by referring to the edge component in the local region and the normal vector direction of the approximate plane of the grayscale image. Image encoding method according to item 1.
【請求項3】  前記近似平面を求める際に必要な画素
領域の大きさを、エッジ画素を含まないように動的に変
化させることを特徴とする請求項2記載の画像符号化方
式。
3. The image encoding method according to claim 2, wherein the size of the pixel area required for determining the approximate plane is dynamically changed so as not to include edge pixels.
【請求項4】  前記エッジ画素数が所定の閾値以下で
、かつ前記法線ベクトルがZ軸に対して所定の角度以上
傾いている局所領域を階調領域と判定することを特徴と
する請求項2記載の画像符号化方式。
4. A local area in which the number of edge pixels is less than or equal to a predetermined threshold and the normal vector is tilted at a predetermined angle or more with respect to the Z axis is determined to be a gradation area. The image encoding method described in 2.
JP2412215A 1990-12-19 1990-12-19 Picture coding system Pending JPH04220084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2412215A JPH04220084A (en) 1990-12-19 1990-12-19 Picture coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2412215A JPH04220084A (en) 1990-12-19 1990-12-19 Picture coding system

Publications (1)

Publication Number Publication Date
JPH04220084A true JPH04220084A (en) 1992-08-11

Family

ID=18521085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2412215A Pending JPH04220084A (en) 1990-12-19 1990-12-19 Picture coding system

Country Status (1)

Country Link
JP (1) JPH04220084A (en)

Similar Documents

Publication Publication Date Title
US6556711B2 (en) Image processing apparatus and method
JP3373008B2 (en) Image area separation device
JP3293920B2 (en) Image processing apparatus and method
US5432870A (en) Method and apparatus for compressing and decompressing images of documents
US5535013A (en) Image data compression and expansion apparatus, and image area discrimination processing apparatus therefor
US6307962B1 (en) Document data compression system which automatically segments documents and generates compressed smart documents therefrom
US8417029B2 (en) Image processing apparatus and method, including fill-up processing
US20050018903A1 (en) Method and apparatus for image processing and computer product
EP1173003A2 (en) Image processing method and image processing apparatus
JP2001223903A (en) Method for compressing scanned document with color and gray scale
JP3193086B2 (en) Adaptive encoding apparatus and decoding apparatus for color document image
JP2005275854A (en) Image processor, image processing method, image processing program and recording medium with this program stored thereon
JP2000013605A (en) Image processor, method and record medium recording image processing program
JP2910000B2 (en) Encoding method for binary natural image mixed still image
JP3108133B2 (en) Adaptive coding of color document images
JPH04236574A (en) Picture coding system
Barthel et al. New technology for raster document image compression
JPH04220084A (en) Picture coding system
JP3931468B2 (en) Image area separating apparatus and method
JPH04248766A (en) Image area separation system
JP3062224B2 (en) Image coding method
JPH08298589A (en) Image processor of photograph/document mixed image
JP4035696B2 (en) Line segment detection apparatus and image processing apparatus
JPH08307666A (en) Data processing unit for multi-gradation image with document and photograph in existence in mixture
Fung et al. Color, complex document segmentation and compression