JPH08294002A - Image division method and image division device - Google Patents

Image division method and image division device

Info

Publication number
JPH08294002A
JPH08294002A JP7098373A JP9837395A JPH08294002A JP H08294002 A JPH08294002 A JP H08294002A JP 7098373 A JP7098373 A JP 7098373A JP 9837395 A JP9837395 A JP 9837395A JP H08294002 A JPH08294002 A JP H08294002A
Authority
JP
Japan
Prior art keywords
reference block
value
block
color
block size
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
JP7098373A
Other languages
Japanese (ja)
Other versions
JP3424197B2 (en
Inventor
Masahiro Ueno
雅浩 上野
Masao Sakai
昌男 酒井
Nobuyoshi Izawa
伸芳 井沢
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP09837395A priority Critical patent/JP3424197B2/en
Publication of JPH08294002A publication Critical patent/JPH08294002A/en
Application granted granted Critical
Publication of JP3424197B2 publication Critical patent/JP3424197B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Processing (AREA)
  • Character Discrimination (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PURPOSE: To provide the image division method in which a block in a 2-color image area is discriminated as a 2-color image area independently of a size of a character and a graphic and an image is divided without limiting colors of a 2-color image. CONSTITUTION: A 2-color multi-color discrimination means 115 discriminates whether or not a block to be discriminated is a 2-color block on the basis of the similarity from a duplicate classification output means 114 and provides an output of 2-color/multi-color. A reference block size discrimination means 116 uses a 2-color/multi-color discrimination value and a reference block size outputted from a 2-color/multi-color criterion and a reference block size to discriminate whether or not main reference block data and a block size of a sub reference block at present is proper and provides an output of the criterion. A reference block size generating means 119 provides an output of a reference block size indicating a similar size to the block to be discriminated as an initial value. Furthermore, when a reference block size criterion outputted from the means 116 is not proper, a reference block size larger than the current size is outputted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像分割方法および画
像分割装置に係わり、特に、文字図面などの2色画像
(白黒2色など)と自然画像などの多色画像とが混在す
る画像データをブロック単位で2色画像領域と多色画像
領域に分割する画像分割方法および画像分割装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image dividing method and an image dividing apparatus, and more particularly to image data in which a two-color image such as a character drawing (two-color black and white) and a multicolor image such as a natural image are mixed. The present invention relates to an image dividing method and an image dividing apparatus for dividing a block into a two-color image area and a multicolor image area.

【0002】[0002]

【従来の技術】文字図面などの2色画像(白黒2色な
ど)と自然画像などの多色画像とが混在する画像データ
の符号化蓄積において、2色画像領域と多色画像領域と
に分割し、それぞれに適した符号化手法を用いて圧縮す
ることが、圧縮率の観点から有効であることが知られて
いる。
2. Description of the Related Art In coded storage of image data in which a two-color image such as a character drawing (two-color black and white) and a multicolor image such as a natural image coexist, the image data is divided into a two-color image region and a multicolor image region. However, it is known that it is effective from the viewpoint of compression rate to perform compression using a coding method suitable for each.

【0003】従来、2色画像画像と多色画像とが混在す
る画像データを、2色画像領域と多色画像領域とに分割
する方法として、下記文献(イ)ないし(ハ)に記載さ
れた方法が知られている。
Conventionally, as a method for dividing image data in which a two-color image image and a multi-color image are mixed into a two-color image region and a multi-color image region, the following documents (a) to (c) are described. The method is known.

【0004】(イ) 勝野,遠藤:“カラーファクシミ
リのための高能率ハイブリッド符号化方式の提案”,信
学技法,Vol.91, No.390, IE91-96, pp.13-20(1991) (ロ) 勝野,小池:“量子化誤差に基づく適応的ハイ
ブリッド符号化方式”,信学秋季全大,D-192(1993) (ハ) 片山,安田:“文字・写真混在文書の一符号化
方式”,画電誌,第20巻,第6号,pp.643-651(1991) 前記文献(イ)に記載されている方法は、ブロック分割
した画像におけるブロック内画素値の最大値と最小値を
用いる方法(以下、「最大値/最小値によるブロック判
別方法」と称す。)とブロック内画素値の分布による方
法(以下、「画素値の分布によるブロック判別方法」と
称す。)を組み合わせた方法である。
(A) Katsuno, Endo: "Proposal of High Efficiency Hybrid Coding Scheme for Color Facsimile", Technical Report, Vol.91, No.390, IE91-96, pp.13-20 (1991) (B) Katsuno, Koike: "Adaptive Hybrid Coding Method Based on Quantization Error", Shin-Gaku Autumn Univ., D-192 (1993) (c) Katayama, Yasuda: "One encoding of text / photo mixed document Method ", Electronic Magazine, Volume 20, No. 6, pp.643-651 (1991) The method described in the above document (a) is the maximum and minimum pixel values in a block in an image divided into blocks. A method that uses a value (hereinafter, referred to as “a block determination method based on a maximum value / a minimum value”) and a method that uses a pixel value distribution within a block (hereinafter referred to as a “block determination method based on a pixel value distribution”) are combined. It is a method.

【0005】「最大値/最小値によるブロック判別方
法」は、ブロック内の最大値(Smax)と最小値(Smi
n)との差(F;F=Smax−Smin)がある閾値(T)
より大きければ、エッジがブロック内に存在すると判断
し、そのブロックには2色画像が含まれるとする方法で
ある。
The "block discrimination method based on the maximum value / minimum value" is the maximum value (Smax) and the minimum value (Smi) in the block.
n) the difference (F; F = Smax-Smin) with a certain threshold (T)
If it is larger, it is determined that the edge exists within the block, and the block includes a two-color image.

【0006】「画素値の分布によるブロック判別方法」
は、画素値のヒストグラムの分布のピーク値が1つまた
は2つある場合は、そのブロックは2色画像であると判
別する方法である。
“Block discrimination method based on pixel value distribution”
Is a method of determining that the block is a two-color image when there are one or two peak values in the distribution of the histogram of pixel values.

【0007】「画素値の分布によるブロック判別方法」
は、「最大値/最小値による方法」の判別精度を向上さ
せる目的で使用される。
“Block discrimination method based on pixel value distribution”
Is used for the purpose of improving the discrimination accuracy of the “method by maximum value / minimum value”.

【0008】即ち、「最大値/最小値による方法」にお
いて、閾値(T)付近にブロック内最大値と最小値の差
(F)があり、2色画像ブロックか否かが明確ではない
場合に、この「画素値の分布による方法」を用いて判別
することにより、判別精度を向上させることができる。
That is, in the "maximum / minimum value method", when there is a difference (F) between the maximum value and the minimum value in the block near the threshold value (T), it is not clear whether it is a two-color image block or not. The discrimination accuracy can be improved by discriminating using the “method based on the distribution of pixel values”.

【0009】具体的には、「最大値/最小値によるブロ
ック判別方法」において、閾値(T)の代わりにW1と
W2(W1<W2)とを定め、以下のようにする。
Specifically, in the "block discrimination method based on maximum / minimum value", W1 and W2 (W1 <W2) are set instead of the threshold value (T), and the following is performed.

【0010】 W2<F then 2色領域 W1<F<=W2 and ピーク値が1つまたは2つ then 2色領域 W1<F<=W2 and ピーク値が3つ以上 then 多色領域 F<=W1 then 多色領域 また、前記文献(ロ)に記載されている方法は、画像デ
ータの直交変換で得られる変換係数データの量子化で生
ずる量子化誤差を用いる方法(以下、「直交変換の量子
化誤差によるブロック判別方法」と称す。)である。
W2 <F then two-color area W1 <F <= W2 and one or two peak values then two-color area W1 <F <= W2 and three or more peak values then multicolor area F <= W1 Then the multicolor region The method described in the above-mentioned document (b) is a method using a quantization error generated in the quantization of transform coefficient data obtained by orthogonal transform of image data (hereinafter, "quantization of orthogonal transform"). This is referred to as "a block determination method based on an error").

【0011】これは、DCT(Descrete Cosine Tra
nsform)などの画像圧縮で用いられる直交変換の変換係
数分布は、2色画像と多色画像では異なる、という性質
を利用している。
This is a DCT (Descrete Cosine Tra)
The transform coefficient distribution of the orthogonal transform used for image compression such as nsform) is different between a two-color image and a multicolor image.

【0012】即ち、多色画像では低周波係数の強度が大
きくなり、2色画像では比較的に高周波係数の強度が大
きくなる。
That is, the intensity of the low frequency coefficient becomes large in the multicolor image, and the intensity of the high frequency coefficient becomes relatively large in the two color image.

【0013】そのため、多色画像に対する変換係数の量
子化と2色画像に対する変換係数の量子化の際に、同一
の量子化テーブルを用いると、量子化誤差が異なり、特
に、多色画像に適した量子化テーブルを用いると、多色
画像の量子化誤差よりも2色画像の量子化誤差の方が大
きくなる。
Therefore, when the same quantization table is used in the quantization of the transform coefficient for the multicolor image and the quantization of the transform coefficient for the two color image, the quantization error is different, which is particularly suitable for the multicolor image. If a different quantization table is used, the quantization error of the two-color image becomes larger than that of the multicolor image.

【0014】したがって、このような量子化テーブルを
用いて、あるブロックを直交変換し量子化した場合の誤
差(E)が閾値(T)より大きい場合は、そのブロック
は2色画像を含むと判断できる。
Therefore, when an error (E) when a certain block is orthogonally transformed and quantized using such a quantization table is larger than a threshold value (T), it is determined that the block includes a two-color image. it can.

【0015】さらに、前記文献(ハ)に記載されている
方法は、2色画像に使用される色の一つとしてを黒に限
定して黒画素を抽出する方法(以下、「黒文字検出によ
る画素判別方法」と称す。)とラプラシアンのようなフ
ィルタによって2色画像領域を判別する方法(以下、
「ラプラシアンライクなフィルタによるブロック判別方
法」と称す。)の組み合わせによる方法である。
Further, the method described in the above-mentioned document (C) is a method of extracting a black pixel by limiting black as one of the colors used for a two-color image (hereinafter, "pixel by black character detection"). And a method of discriminating a two-color image area by a filter such as Laplacian (hereinafter, referred to as “discrimination method”)
It is called a “block discrimination method using a Laplacian-like filter”. ) Is a combination method.

【0016】「黒文字検出による画素判別方法」は、2
色画像のほとんどが白と黒で構成されている文書に対す
る、2色多色判別方法である。
"Pixel discrimination method by black character detection" is 2
This is a two-color multicolor discrimination method for a document in which most of color images are composed of white and black.

【0017】ある画素の赤、緑、青の画素値をそれぞれ
r、g、bとするとき、閾値th1、th2を用いて、以下
の式を満たす画素を2色画素(黒画素)として判別す
る。
When the red, green, and blue pixel values of a pixel are r, g, and b, threshold values th1 and th2 are used to determine a pixel satisfying the following expression as a two-color pixel (black pixel). .

【0018】[0018]

【数1】 [Equation 1]

【0019】「ラプラシアンライクな計算によるブロッ
ク判別方法」は、画素位置(i,j)の輝度値をY
(i,j)=0.299r+0.587g+0.144
b、閾値をth3とした場合、以下の式を満たす画素を持
つブロックには2色画素が含まれるとする方法である。
In the "block discrimination method by Laplacian-like calculation", the luminance value at the pixel position (i, j) is set to Y.
(I, j) = 0.299r + 0.587g + 0.144
When the threshold is b and the threshold value is th3, it is a method in which a block having pixels satisfying the following equation includes two-color pixels.

【0020】[0020]

【数2】 [Equation 2]

【0021】「黒文字検出による画素判別方法」と「ラ
プラシアンライクな計算によるブロック判別方法」の組
み合わせ方は、以下のように行う。
The combination of the "pixel discrimination method by black character detection" and the "block discrimination method by Laplacian-like calculation" is performed as follows.

【0022】即ち、「ラプラシアンライクな計算による
ブロック判別方法」を用いて2色画像ブロックと判別さ
れたブロックについて「黒文字検出による画素判別方
法」を使用して2色画素を判別する。
That is, with respect to a block which has been discriminated as a two-color image block by using the "block discrimination method by Laplacian-like calculation", two-color pixels are discriminated by using the "pixel discrimination method by black character detection".

【0023】[0023]

【発明が解決しようとする課題】しかしながら、前記文
献(イ)に記載された方法は、あるブロックが2色画像
領域内にあり、そのブロック内の全ての画素が2色のう
ちの1色で染まってしまった場合、そのブロックにはエ
ッジがまったく存在しないと判断されるため、このブロ
ックを2色画像領域と判別できないという問題を有して
いる。
However, in the method described in the above-mentioned document (a), a certain block is in the two-color image area, and all pixels in the block are one of two colors. When the block is dyed, it is determined that the block has no edge at all, so that there is a problem that this block cannot be discriminated as a two-color image area.

【0024】即ち、ブロックより大きな2色画像領域の
文字図形などは、その全体を2色画像領域として判別で
きないという問題点があった。
That is, there is a problem in that a character graphic in a two-color image area larger than a block cannot be discriminated as a whole in a two-color image area.

【0025】そのため、2色画像領域を多色画像領域と
して符号化するため、蓄積情報に無駄ができるという問
題点があった。
Therefore, since the two-color image area is encoded as a multi-color image area, there is a problem that the stored information can be wasted.

【0026】前記文献(ロ)に記載された方法は、2色
画像に多く含まれるエッジが画像信号の高周波成分のレ
ベルを大きくしているという性質を利用しているが、2
色画像領域における高周波成分と多色画像領域における
高周波成分と区別することができないため、画像によっ
ては2色多色判別の精度が落ちるという問題点があっ
た。
The method described in the above-mentioned document (b) utilizes the property that the edges, which are often included in the two-color image, increase the level of the high frequency component of the image signal.
There is a problem that the high-frequency component in the color image area and the high-frequency component in the multi-color image area cannot be distinguished from each other, so that the accuracy of the two-color / multi-color discrimination is lowered depending on the image.

【0027】そのため、多色画像領域を2色画像領域と
誤判定する可能性が高く、このような場合再生画が著し
く劣化するという問題点があった。
Therefore, there is a high possibility that a multicolor image area is erroneously determined as a two-color image area, and in such a case, a reproduced image is significantly deteriorated.

【0028】前記文献(ハ)に記載された方法は、2色
画像の持つエッジが画像信号の高周波成分を生みだす性
質を利用しているが、多色画像領域にある高周波成分と
区別することができないため、画像によっては2色多色
判別の精度が落ちるという問題点があった。
The method described in the above-mentioned document (C) utilizes the property that the edges of the two-color image generate the high-frequency components of the image signal, but it can be distinguished from the high-frequency components in the multicolor image region. Therefore, there is a problem that the accuracy of the two-color / multi-color discrimination decreases depending on the image.

【0029】また、2色画素の検出に関して言えば、あ
らかじめ限定した色の2色画素しか検出できないという
問題点があった。
Regarding the detection of the two-color pixels, there is a problem that only the two-color pixels of a predetermined limited color can be detected.

【0030】そのため、2色画像の色をあらかじめ決め
ておく必要があり、それ以外の2色画像を検出できない
という問題点があった。
Therefore, there is a problem that it is necessary to determine the colors of the two-color image in advance, and the other two-color image cannot be detected.

【0031】本発明は、前記従来技術の問題点を解決す
るためになされたものであり、本発明の目的は、画像分
割方法において、2色画像領域の文字図形の大きさに依
らず2色画像領域内のブロックを2色画像領域と判別
し、また、多色画像領域の高周波成分と2色画像領域の
エッジを区別し、さらに、2色画像画像の色を限定しな
いで画像を分割することが可能となる技術を提供するこ
とにある。
The present invention has been made in order to solve the above-mentioned problems of the prior art, and an object of the present invention is to provide an image dividing method in which two colors are used regardless of the size of a character graphic in a two-color image area. The block in the image area is discriminated as a two-color image area, the high frequency component of the multi-color image area and the edge of the two-color image area are distinguished, and the image is divided without limiting the colors of the two-color image image. It is to provide a technology that makes it possible.

【0032】本発明の他の目的は、画像分割装置におい
て、2色画像領域の文字図形の大きさに依らず2色画像
領域内のブロックを2色画像領域と判別し、また、多色
画像領域の高周波成分と2色画像領域のエッジを区別
し、さらに、2色画像の色を限定しないで画像を分割す
ることが可能となる技術を提供することにある。
Another object of the present invention is to discriminate a block in a two-color image area as a two-color image area regardless of the size of a character graphic in the two-color image area in the image division device, and to provide a multicolor image. It is an object of the present invention to provide a technique capable of distinguishing a high frequency component of a region from an edge of a two-color image region and further dividing the image without limiting the colors of the two-color image.

【0033】本発明の前記目的並びにその他の目的及び
新規な特徴は、本明細書の記載及び添付図面によって明
らかにする。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

【0034】[0034]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
下記の通りである。
Of the inventions disclosed in the present application, a representative one will be briefly described below.
It is as follows.

【0035】(1)2色画像と多色画像とが混在する画
像データを2色画像領域と多色画像領域とに分割する画
像分割方法において、(a)2色画像領域か、あるい
は、多色画像領域かを判別しようとしている被判別ブロ
ックを中心として、その近傍のブロックを含んだブロッ
ク内の画素値の集合データからなり、参照ブロックサイ
ズ値により設定されるブロックサイズの主参照ブロック
データと、前記被判別ブロックを中心に持たない複数の
ブロック内の画素値の集合データからなり、参照ブロッ
クサイズ値により設定されるブロックサイズの副参照ブ
ロックデータとを生成するステップと、(b)前記主参
照ブロックデータおよび前記副参照ブロックデータを各
ブロック内の平均値を閾値として2値化するステップ
と、(c)前記2値化された主参照ブロックデータおよ
び副参照ブロックデータの重複している部分の類似性を
数値化した類似度値を生成するステップと、(d)前記
類似度値を用いて被判別ブロックが2色画像領域か、あ
るいは、多色画像領域かを判別して2色多色判別値を生
成するステップと、(e)前記2色多色判別値と、前記
主参照ブロックおよび副参照ブロックのブロックサイズ
を設定するための参照ブロックサイズ値とを用いて、前
記主参照ブロックのブロックサイズおよび副参照ブロッ
クのブロックサイズが適正か否かを判定して参照ブロッ
クサイズ判定値を生成するステップと、(f)前記参照
ブロックサイズ判定値が不適正の時に参照ブロックサイ
ズ値を現在の参照ブロックサイズ値よりも大きい参照ブ
ロックサイズ値に変更して前記(a)ないし(e)のス
テップを繰り返すステップと、(g)前記参照ブロック
サイズ判定値が適正の時に前記2色多色判別値に基づい
て被判別ブロックを2色画像領域、あるいは、多色画像
領域に分割するステップとからなることを特徴とする。
(1) In an image dividing method of dividing image data in which a two-color image and a multi-color image are mixed into a two-color image region and a multi-color image region, (a) a two-color image region or a multi-color image region Main reference block data of the block size set by the reference block size value, which consists of aggregated data of pixel values in the block including blocks in the vicinity of the block to be discriminated to determine whether it is a color image area And (b) generating sub-reference block data having a block size set by a reference block size value, the sub-reference block data being composed of aggregated data of pixel values in a plurality of blocks not having the identified block as a center. Binarizing the reference block data and the sub-reference block data by using an average value in each block as a threshold; and (c) binarizing The step of generating a similarity value by digitizing the similarity between the overlapped portions of the main reference block data and the sub reference block data, and (d) the judged block is a two-color image using the similarity value. Determining a region or a multicolor image region to generate a two-color multicolor discriminant value, (e) the two-color multicolor discriminant value, and the block sizes of the main reference block and the sub-reference block Generating a reference block size determination value by determining whether or not the block size of the main reference block and the block size of the sub-reference block are appropriate using the reference block size value for setting; and (f). When the reference block size determination value is incorrect, the reference block size value is changed to a reference block size value larger than the current reference block size value, and And (g) when the reference block size judgment value is appropriate, the block to be judged is changed to a two-color image area or a multicolor image area based on the two-color multicolor judgment value. And a dividing step.

【0036】(2)2色画像と多色画像とが混在する画
像データを2色画像領域と多色画像領域とに分割する画
像分割装置において、2色画像領域か、あるいは、多色
画像領域かを判別しようとしている被判別ブロックを中
心とし、その近傍のブロックを含んだブロック内の画素
値の集合データからなり、参照ブロックサイズ値により
設定されるブロックサイズの主参照ブロックデータを生
成する主参照ブロック生成手段と、前記被判別ブロック
を中心に持たない複数のブロック内の画像値の集合デー
タからなり、参照ブロックサイズ値により設定されるブ
ロックサイズの副参照ブロックデータを生成する副参照
ブロック生成手段と、前記参照ブロックサイズ値により
設定されるブロックサイズ毎の主参照ブロックデータお
よび副参照ブロックデータをブロック内の平均値を閾値
として2値化する2値化手段と、前記2値化手段で2値
化された前記参照ブロックサイズ値により設定されるブ
ロックサイズ毎の主参照ブロックデータおよび副参照ブ
ロックデータの重複している部分の類似性を数値化した
類似度値を出力する重複部分類似度出力手段と、前記重
複部分類似度出力手段から出力される前記参照ブロック
サイズ値毎の類似度値を用いて被判別ブロックが2色画
像領域か、あるいは、多色画像領域かを判別し2色多色
判別値を出力する2値多色判別手段と、前記2値多色判
別手段から出力される2色多色判別値と参照ブロックサ
イズ値とを用いて前記主参照ブロックおよび副参照ブロ
ックのブロックサイズが適正か否かを判定して参照ブロ
ックサイズ判定値を出力する参照ブロックサイズ判定手
段と、前記参照ブロックサイズ判定手段から出力される
参照ブロックサイズ判定値が適正である時に前記2色多
色判別値に基づいて被判別ブロックを2色画像領域、あ
るいは、多色画像領域に分割する分割手段と、参照ブロ
ックサイズ値の初期値、および、前記参照ブロックサイ
ズ判定手段から出力される参照ブロックサイズ判定値が
不適正である時に現在の参照ブロックサイズ値よりも大
きい参照ブロックサイズ値を出力する参照ブロックサイ
ズ生成手段とから構成されることを特徴とする。
(2) In an image dividing device that divides image data in which a two-color image and a multi-color image are mixed into a two-color image region and a multi-color image region, a two-color image region or a multi-color image region Mainly generates the main reference block data of the block size set by the reference block size value, which is composed of the aggregated data of the pixel values in the block including the block in the vicinity of the block to be discriminated A sub-reference block generation unit that includes reference block generation means and aggregate data of image values in a plurality of blocks that do not have the discriminated block as a center, and generates sub-reference block data having a block size set by the reference block size value. And a main reference block data and a sub reference block for each block size set by the reference block size value. Binarizing means for binarizing the data using the average value in the block as a threshold value, and main reference block data and sub-blocks for each block size set by the reference block size value binarized by the binarizing means. Overlapping partial similarity output means for outputting a similarity value which is a numerical value of the similarity of overlapping parts of reference block data, and similarity for each reference block size value output from the overlapping partial similarity output means A binary multicolor discriminator that discriminates whether the block to be discriminated is a two-color image region or a multicolor image region by using a value, and outputs a two-color multicolor discriminant value; A reference block for determining whether or not the block sizes of the main reference block and the sub-reference block are proper using the two-color multicolor discrimination value and the reference block size value, and outputting the reference block size determination value. And the reference block size determination value output from the reference block size determination unit is appropriate, the block to be determined is a two-color image area or a multicolor image area based on the two-color multicolor determination value. Dividing unit for dividing into, an initial value of the reference block size value, and a reference block size larger than the current reference block size value when the reference block size determination value output from the reference block size determination unit is incorrect. And a reference block size generation means for outputting a value.

【0037】[0037]

【作用】前記各手段によれば、2色画像と多色画像とが
混在する画像データを2色画像領域と多色画像領域とに
分割する際に、被判別ブロックを中心として、その近傍
のブロックを含んだブロック内の画素値の集合データか
らなり、参照ブロックサイズ値により設定されるブロッ
クサイズの主参照ブロックデータと、前記被判別ブロッ
クを中心に持たない複数のブロック内の画素値の集合デ
ータからなり、参照ブロックサイズ値により設定される
ブロックサイズの副参照ブロックデータとを生成する。
According to each of the above-mentioned means, when the image data in which the two-color image and the multi-color image are mixed is divided into the two-color image region and the multi-color image region, the block to be discriminated is centered in the vicinity thereof. Main reference block data of a block size set by a reference block size value, and a set of pixel values in a plurality of blocks that do not have the discriminated block at the center And sub-reference block data having a block size set by the reference block size value.

【0038】次に、主参照ブロックデータおよび副参照
ブロックデータを各ブロック内の平均値を閾値として2
値化し、2値化された主参照ブロックデータおよび副参
照ブロックデータの重複している部分の類似性を数値化
した類似度値を生成する。
Next, the main reference block data and the sub reference block data are set to 2 using the average value in each block as a threshold value.
A similarity value is generated by digitizing the similarity between overlapping portions of the binarized and binarized main reference block data and sub reference block data.

【0039】次に、類似度値を用いて被判別ブロックが
2色画像領域か、あるいは、多色画像領域かを判別し
て、2色多色判別値を生成する。
Next, using the similarity value, it is determined whether the block to be discriminated is a two-color image region or a multicolor image region, and a two-color multicolor discriminant value is generated.

【0040】次に、2色多色判別値と、主参照ブロック
および副参照ブロックのブロックサイズを設定するため
の参照ブロックサイズ値を用いて、主参照ブロックのブ
ロックサイズおよび副参照ブロックのブロックサイズが
適正か否かを判定して参照ブロックサイズ判定値を生成
する。
Next, using the two-color multicolor discrimination value and the reference block size value for setting the block sizes of the main reference block and the sub reference block, the block size of the main reference block and the block size of the sub reference block are used. Is determined to be a reference block size determination value.

【0041】参照ブロックサイズ判定値が不適正の時に
は、参照ブロックサイズ値を現在の参照ブロックサイズ
値よりも大きい参照ブロックサイズ値に変更して前記の
ステップを繰り返す。
When the reference block size judgment value is incorrect, the reference block size value is changed to a reference block size value larger than the current reference block size value, and the above steps are repeated.

【0042】また、参照ブロックサイズ判定値が適正の
時には、2色多色判別値に基づいて被判別ブロックを2
色画像領域、あるいは、多色画像領域に分割する。
When the reference block size judgment value is proper, the judgment target block is set to 2 based on the two-color multicolor judgment value.
It is divided into a color image area or a multicolor image area.

【0043】本発明では、被判別ブロックが、2色画像
か、あるいは、多色画像かを判別する際に、画像データ
の周波数分布を使用することなく、2色画像のもつエッ
ジとその周りの情報である2値化画像の類似性で判別す
るようにしたので、多色画像に高周波成分がある場合に
おいても、多色画像を2色画像と誤判別することを回避
することが可能である。
In the present invention, when determining whether the block to be discriminated is a two-color image or a multi-color image, the edge of the two-color image and its surroundings are used without using the frequency distribution of the image data. Since the discrimination is made based on the similarity of the binarized image which is information, it is possible to avoid erroneously discriminating the multicolor image as a two-color image even when the multicolor image has a high frequency component. .

【0044】さらに、本発明では、特別な色に特化した
2色画像領域の抽出は行っていないので、どのような色
を持つ2色画像領域の抽出も可能である。
Further, in the present invention, since the two-color image area specialized for a special color is not extracted, the two-color image area having any color can be extracted.

【0045】また、本発明では、2色画像領域、あるい
は、多色画像領域を判別するための参照ブロックを適宜
大きくして判別するようにしたので、これにより、被判
別ブロックよりも広い範囲を使用した、被判別ブロック
の2色多色判別が可能となり、2色画像領域の文字図形
の大きさに依らず2色画像領域内のブロックを2色画像
領域と判別することが可能となる。
Further, in the present invention, the reference block for discriminating the two-color image region or the multi-color image region is appropriately enlarged so as to discriminate, so that a wider range than the block to be discriminated can be obtained. Two-color multicolor discrimination of the used block to be discriminated can be performed, and the block in the two-color image region can be discriminated as the two-color image region regardless of the size of the character graphic in the two-color image region.

【0046】[0046]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0047】なお、実施例を説明するための全図におい
て、同一機能を有するものは同一符号を付け、その繰り
返しの説明は省略する。
In all the drawings for explaining the embodiments, parts having the same functions are designated by the same reference numerals, and the repeated description thereof will be omitted.

【0048】図1は、本発明の一実施例である画像分割
装置の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an image dividing apparatus which is an embodiment of the present invention.

【0049】図1において、101はブロック分割手
段、102は被判別ブロック指定手段、103は分割蓄
積手段、104は主参照ブロック生成手段、105〜1
08は副参照ブロック生成手段、109〜113は2値
化手段、114は重複部分類似度出力手段、115は2
色多色判別手段、116は参照ブロックサイズ判定手
段、117は転送路開閉手段、118は被判別ブロック
位置生成手段、119は参照ブロックサイズ生成手段で
ある。
In FIG. 1, 101 is a block dividing means, 102 is a discriminated block designating means, 103 is a division accumulating means, 104 is a main reference block generating means, 105-1.
Reference numeral 08 is a sub-reference block generation means, 109 to 113 are binarization means, 114 is an overlapping partial similarity output means, and 115 is 2
Multi-color discrimination means, 116 is a reference block size determination means, 117 is a transfer path opening / closing means, 118 is a discriminated block position generation means, and 119 is a reference block size generation means.

【0050】ブロック分割手段101は、画像データを
ブロックに分割し、ブロック分割画像データを出力す
る。
The block dividing means 101 divides the image data into blocks and outputs the block divided image data.

【0051】被判別ブロック指定手段102は、前記ブ
ロック分割手段101から出力されるブロック分割画像
データの中から被判別ブロックを選び出し、被判別ブロ
ックデータを出力する。
The discriminated block designating means 102 selects a discriminated block from the block divided image data outputted from the block dividing means 101 and outputs the discriminated block data.

【0052】分割蓄積手段103は、画像データと同じ
大きさの2値画像用バッファと多値画像用バッファを持
ち、2色多色判別値にしたがってバッファを選択しなが
ら、バッファ内の被判別ブロック位置データが示す位置
に、被判別ブロックデータを格納し、全画像データの判
別処理が終わった時点で2値画像データと多値画像デー
タをそれぞれ別々に出力する。
The dividing / accumulating means 103 has a binary image buffer and a multivalued image buffer of the same size as the image data, and selects the buffer according to the two-color multicolor discrimination value while determining the block to be discriminated in the buffer. The block data to be discriminated is stored at the position indicated by the position data, and the binary image data and the multivalued image data are separately output when the discrimination processing of all the image data is completed.

【0053】主参照ブロック生成手段104は、被判別
ブロック位置データで示される位置に、参照ブロックサ
イズで示されるブロックサイズの主参照ブロックデータ
を出力する。
The main reference block generation means 104 outputs the main reference block data of the block size indicated by the reference block size to the position indicated by the discriminated block position data.

【0054】副参照ブロック生成手段105〜108
は、被判別ブロック位置データで示される位置に、参照
ブロックサイズで示されるブロックサイズの副参照ブロ
ックデータを出力する。
Sub-reference block generation means 105-108
Outputs the sub-reference block data having the block size indicated by the reference block size to the position indicated by the determined block position data.

【0055】2値化手段109〜113は、主参照ブロ
ックデータおよび副参照ブロックデータをブロック内の
平均値を閾値として2値化した2値化主参照ブロックデ
ータおよび副参照ブロックデータを出力する。
The binarizing means 109 to 113 output binarized main reference block data and sub reference block data obtained by binarizing the main reference block data and the sub reference block data by using the average value in the block as a threshold value.

【0056】重複部分類似度出力手段114は、主参照
ブロックの領域における、2値化主参照ブロックデータ
および副参照ブロックデータの重複部分の類似度を算出
し、その類似度値を出力する。
The overlapping part similarity output means 114 calculates the similarity of the overlapping part of the binarized main reference block data and the sub reference block data in the area of the main reference block, and outputs the similarity value.

【0057】2色多色判別手段115は、前記重複部分
類似度出力手段114から出力される類似度値に基づい
て、被判別ブロックが2色ブロックであるか否かを判別
し、その判別結果を示す2色多色判別値を出力する。
The two-color multicolor discriminating means 115 discriminates whether or not the block to be discriminated is a two-color block based on the similarity value outputted from the overlapping part similarity output means 114, and the discrimination result. A two-color multicolor discrimination value indicating is output.

【0058】参照ブロックサイズ判定手段116は、前
記2色多色判別手段115から出力される2色多色判別
値と参照ブロックサイズ値を用いて、現在の主参照ブロ
ックデータおよび副参照ブロックのブロックサイズが適
正か否かを判定し、その結果を示す参照ブロックサイズ
判定値を出力する。
The reference block size determining means 116 uses the two-color / multi-color determining value and the reference block size value output from the two-color / multi-color determining means 115 to determine the current main reference block data and sub-reference block block. It is determined whether or not the size is appropriate, and the reference block size determination value indicating the result is output.

【0059】転送路開閉手段117は、前記参照ブロッ
クサイズ判定手段116から出力される参照ブロックサ
イズ判定値を用いて、2色多色判別値を分割蓄積手段1
03へ通す信号路を開閉する。
The transfer path opening / closing means 117 uses the reference block size judgment value output from the reference block size judgment means 116 to divide the two-color multicolor judgment value into the divided storage means 1.
Open and close the signal path to 03.

【0060】被判別ブロック位置生成手段118は、こ
れから判別するブロックである被判別ブロックの位置を
示す被判別ブロック位置データを出力する。
The discriminated block position generation means 118 outputs discriminated block position data indicating the position of the discriminated block which is a block to be discriminated from now on.

【0061】参照ブロックサイズ生成手段119は、初
期値として被判別ブロックと同様な大きさを示す参照ブ
ロックサイズ値を出力し、また、前記参照ブロックサイ
ズ判定手段116から出力される参照ブロックサイズ判
定値が不適正の場合には、現在よりも大きなブロックサ
イズを示す参照ブロックサイズ値を出力する。
The reference block size generation means 119 outputs a reference block size value having the same size as the discriminated block as an initial value, and the reference block size determination value output from the reference block size determination means 116. Is incorrect, a reference block size value indicating a block size larger than the current one is output.

【0062】図2は、図1に示すブロック分割手段10
1によって分割される画像データのブロックのようすを
示す図であり、図2に示す1つ1つの升目が被判別ブロ
ックとなる。
FIG. 2 is a block division means 10 shown in FIG.
FIG. 3 is a diagram showing a state of a block of image data divided by 1, and each square shown in FIG. 2 is a block to be discriminated.

【0063】図3は、図1に示す主参照ブロック生成手
段104、および、副参照ブロック生成手段105〜1
08によって生成される主参照ブロック、および、副参
照ブロックと、被参照ブロックとの位置関係を示す図で
ある。
FIG. 3 shows the main reference block generating means 104 and the sub reference block generating means 105-1 shown in FIG.
FIG. 10 is a diagram showing a positional relationship between a main reference block, a sub reference block, and a referenced block generated by 08.

【0064】図3において、302は主参照ブロック、
303〜306は副参照ブロックである。
In FIG. 3, 302 is a main reference block,
Reference numerals 303 to 306 are sub-reference blocks.

【0065】次に、本実施例の画像分割方法の原理につ
いて、図4ないし図7を用いて説明する。
Next, the principle of the image dividing method of this embodiment will be described with reference to FIGS.

【0066】なお、図4ないし図7においては、説明を
簡単にするため、1次元の画像データを用いて説明す
る。
In FIG. 4 to FIG. 7, one-dimensional image data will be used for simplification of description.

【0067】図5(a)に示すように、2色画像は、そ
の位置に対する階調特性において、鋭いエッジがあり、
そのエッジの周りには平面的な領域があるという特徴を
持っている。
As shown in FIG. 5A, the two-color image has a sharp edge in the gradation characteristic with respect to the position,
It has the feature that there is a planar area around the edge.

【0068】このため、図5(b)に示すように、2色
画像領域で主参照ブロック(B)のデータと副参照ブロ
ック(A,C)のデータを2値化手段により2値化する
と、エッジが鋭く、かつ、その周りは一定値をとる2色
画像の位置に対する階調特性により、それぞれのブロッ
クの平均値は異なるにもかかわらず、また、主参照ブロ
ック(B)と副参照ブロック(A,C)の位置がずれて
いるために、その2値化された2値化主参照ブロック
(B)のデータと2値化副参照ブロック(A,C)のデ
ータとの重なる部分については、ほぼ同一のデータとな
り、類似性の高いデータが得られる。
Therefore, as shown in FIG. 5B, when the data of the main reference block (B) and the data of the sub reference block (A, C) are binarized by the binarizing means in the two-color image area. , The main reference block (B) and the sub-reference block are different even though the average value of each block is different due to the gradation characteristics with respect to the position of the two-color image in which the edge is sharp and has a constant value around it. Since the position of (A, C) is deviated, the overlapped portion between the data of the binarized main reference block (B) and the data of the binarized sub-reference block (A, C) Are almost the same data, and highly similar data can be obtained.

【0069】一方、図4(a)に示すように、多色画像
は、その位置に対する階調特性において、一般にエッジ
がなく、なだらかな傾斜をもつか、あるいはエッジがあ
ってもその周りは一定ではないという特徴を持ってい
る。
On the other hand, as shown in FIG. 4 (a), the multicolor image generally has no edge and has a gentle slope in the gradation characteristic with respect to the position, or even if there is an edge, the surroundings are constant. It has the characteristic of not being.

【0070】このため、図4(b)に示すように、多色
画像領域で主参照ブロック(B)のデータと副参照ブロ
ック(A,C)のデータを2値化手段により2値化する
と、2値化主参照ブロック(B)のデータと2値化副参
照ブロック(A,C)のデータとの重なる部分について
は、類似性の低いデータが得られる。
Therefore, as shown in FIG. 4B, when the data of the main reference block (B) and the data of the sub reference block (A, C) are binarized by the binarizing means in the multicolor image area. Data having low similarity can be obtained in the overlapping portion of the data of the binarized main reference block (B) and the data of the binarized sub reference block (A, C).

【0071】このことから、被判別ブロックが、2色画
像か、あるいは、多色画像かは、2値化画像の類似性で
判断することが可能である。
From this, it is possible to judge whether the block to be discriminated is a two-color image or a multicolor image based on the similarity of the binarized image.

【0072】このように、被判別ブロックが、2色画像
か、あるいは、多色画像かを、2値化画像の類似性で判
断する方法は、画像データの周波数分布を使用すること
なく、2色画像のもつエッジとその周りの情報を使用す
るので、多色画像に高周波成分がある場合において多色
画像を2色画像と誤判別することを回避することが可能
である。
As described above, the method of determining whether the block to be discriminated is a two-color image or a multicolor image based on the similarity of the binarized image, without using the frequency distribution of the image data, Since the edge of the color image and the information around the edge are used, it is possible to avoid misidentifying the multicolor image as a two-color image when the multicolor image has high-frequency components.

【0073】また、この方法は、特別な色に特化した2
色画像領域の抽出は行っていないので、どのような色を
持つ2色画像領域の抽出も可能である。
This method is also specialized in special colors.
Since the color image area is not extracted, it is possible to extract a two-color image area having any color.

【0074】ただし、図6(a)に示すように、主参照
ブロック(B)のブロックサイズにより、画像の構造を
的確に把握できない場合があり、また、2色画像領域中
に大きな文字図形があり、ある被判別ブロックが2色の
うちの1色に塗りつぶされている場合に、主参照ブロッ
ク(B)および副参照ブロック(A,C)のブロックサ
イズの初期値は被判別ブロックのブロックサイズと同等
のため、初期の段階には、この被判別ブロックを多色画
像ブロックと誤って判別してしまう可能性がある。
However, as shown in FIG. 6A, there are cases where the structure of the image cannot be accurately grasped due to the block size of the main reference block (B), and large character graphics are present in the two-color image area. Yes, when a certain discriminated block is filled with one of two colors, the initial block size of the main reference block (B) and the sub-reference block (A, C) is the block size of the discriminated block. Therefore, in the initial stage, the block to be discriminated may be erroneously discriminated as a multicolor image block.

【0075】そこで、図7(a)に示すように、主参照
ブロック(B)内に微細な構造を持たない最小ブロック
サイズにおける類似度を算出し、類似度が別に定めた閾
値以上の場合は主参照ブロック(B)を2値画像と判定
し、また、類似度が別に定めた閾値より小さい場合は、
類似度が別に定めた閾値以下になるまで、図7(b)に
示す(A′),(B′),(C′)のように、主参照ブ
ロック(B)と副参照ブロック(A,C)とを拡大し、
被判別ブロックが、2色画像か、あるいは、多色画像か
を判定する。
Therefore, as shown in FIG. 7A, the similarity in the minimum block size having no fine structure in the main reference block (B) is calculated, and when the similarity is equal to or larger than a separately determined threshold value, If the main reference block (B) is determined to be a binary image, and the degree of similarity is smaller than a separately set threshold,
Until the similarity becomes equal to or less than a separately determined threshold, as shown in (A ′), (B ′), and (C ′) of FIG. 7B, the main reference block (B) and the sub reference block (A, Expand C) and
It is determined whether the block to be discriminated is a two-color image or a multicolor image.

【0076】これにより、被判別ブロックよりも広い範
囲を使用した、被判別ブロックの2色多色判別が可能と
なり、2色画像領域の文字図形の大きさに依らず2色画
像領域内のブロックを2色画像領域と判別することが可
能となる。
As a result, it is possible to discriminate the two-color multicolor of the block to be discriminated by using a wider range than the block to be discriminated, and the blocks within the two-color image area can be obtained regardless of the size of the character graphic in the two-color image area. Can be discriminated as a two-color image area.

【0077】次に、本実施例の画像分割装置により、画
像を分割する手順について説明する。
Next, a procedure for dividing an image by the image dividing apparatus of this embodiment will be described.

【0078】(a)画像データ(I)は、ブロック分割
手段101によって、図2に示すように四角く区切られ
たブロック分割画像データ(Id)とされる。
(A) The image data (I) is made into block divided image data (Id) by the block dividing means 101, which is divided into squares as shown in FIG.

【0079】また、被判別ブロック位置生成手段118
からは、被判別ブロックの位置を示す被判別ブロック位
置データ(P)が出力される。
The discriminated block position generating means 118 is also provided.
Outputs the discrimination block position data (P) indicating the position of the discrimination block.

【0080】これにより、被判別ブロック指定手段10
2は、ブロック分割画像データ(Id)から前記被判別
ブロック位置データ(P)が示すデータを被判別ブロッ
クデータ(Ibs)として出力する。
As a result, the discriminated block designating means 10
2 outputs the data indicated by the discriminated block position data (P) from the block divided image data (Id) as discriminated block data (Ibs).

【0081】(b)一方、参照ブロックサイズ生成手段
119からは、初期値として被判別ブロックと同様な大
きさを示す参照ブロックサイズ値(Sc)が出力され
る。
(B) On the other hand, the reference block size generating means 119 outputs a reference block size value (Sc) having the same size as the block to be discriminated as an initial value.

【0082】これにより、主参照ブロック生成手段10
4、および、副参照ブロック生成手段(105〜10
8)において、前記被判別ブロック位置データ(P)か
ら被判別ブロックの位置を、また、前記参照ブロックサ
イズ値(Sc)から主参照ブロックおよび副参照ブロッ
クのブロックサイズを得ることにより、画像データ
(I)から図3に示すような位置関係の主参照ブロック
(Ibm)、および、副参照ブロックデータ(Ibs1〜
4)を生成して出力する。
As a result, the main reference block generation means 10
4 and sub-reference block generation means (105-10
In 8), the position of the discriminated block is obtained from the discriminated block position data (P), and the block size of the main reference block and the sub-reference block is obtained from the reference block size value (Sc) to obtain the image data ( I) to the main reference block (Ibm) and the sub-reference block data (Ibs1 to 1b1) having the positional relationship shown in FIG.
4) is generated and output.

【0083】(c)前記主参照ブロック(Ibm)、およ
び、副参照ブロックデータ(Ibs1〜4)は、2値化手
段(109〜113)において、ブロック内の平均値を
閾値として2値化され、2値化手段(109〜113)
から2値化主参照ブロックデータ(Ibmb)、および、
2値化副参照ブロックデータ(Ibsb1〜4)が出力さ
れる。
(C) The main reference block (Ibm) and the sub reference block data (Ibs1 to 4) are binarized by the binarizing means (109 to 113) using the average value in the block as a threshold. Binarization means (109-113)
To the binarized main reference block data (Ibmb), and
The binarized sub-reference block data (Ibsb1-4) is output.

【0084】(d)重複部分類似度出力手段114おい
て、主参照ブロック範囲における2値化主参照ブロック
データ(Ibmb)と、2値化副参照ブロックデータ(Ib
sb1〜4)との類似度(S)を、以下の式にしたがって
算出し出力する。
(D) In the overlapping part similarity output means 114, binarized main reference block data (Ibmb) and binarized sub-reference block data (Ib) in the main reference block range
The similarity (S) with sb1 to 4) is calculated and output according to the following formula.

【0085】[0085]

【数3】 (Equation 3)

【0086】ただし、 k:副参照ブロックの種類、 bm:主参照ブロックの範囲、 i:画像位置、 Ibmb(i):2値化主参照ブロックデータの位置iにお
ける値、 Ibsbk(i):2値化副参照ブロックkのデータの位置
iにおける値、 Nbm:主参照ブロックの範囲bm内の画素数、 ^:排他的論理和、 バーx:xのインバース(x=Ibmb(i)^Ibsbk
(i)) である。
However, k: type of sub-reference block, bm: range of main reference block, i: image position, Ibmb (i): value at position i of binarized main reference block data, Ibsbk (i): 2 Value at position i of data of binarized sub-reference block k, Nbm: number of pixels in range bm of main reference block, ^: exclusive OR, bar x: inverse of x (x = Ibmb (i) ^ Ibsbk
(I)).

【0087】なお、排他的論理和^を算出する際には、
正論理を使って行う。
When calculating the exclusive OR,
Do it using positive logic.

【0088】即ち、ここでいう排他的論理和は以下のよ
うに算出する。
That is, the exclusive OR used here is calculated as follows.

【0089】 A^B=C A B C 0 0 0 0 0以外 1 0以外 0 1 0以外 0以外 0 また、インバースx(バーx)の計算は以下のように行
う。
A ^ B = C A B C 0 0 0 0 0 0 other than 1 0 other than 0 1 0 other than 0 0 Inverse x (bar x) is calculated as follows.

【0090】 x バーx 0 1 1 0 (e)2色多色判別手段115おいて、類似度値(S)
を予め設定しておいた閾値(Ts)と比較することによ
り、以下のように判別し、判別結果を示す2色多色判別
値(Dbm)を出力する。
X bar x 0 1 1 0 (e) In the two-color multicolor discrimination means 115, the similarity value (S)
Is compared with a preset threshold value (Ts) to make the following determination, and the two-color multicolor determination value (Dbm) indicating the determination result is output.

【0091】 if S>=Ts then Dbm=2色判別 if S<Ts then Dbm=多色判別 (f)参照ブロックサイズ判定手段116おいて、参照
ブロックサイズ値(Sc)と2色多色判別値(Dbm)を
用いて、以下のように現在の判別に利用している主参照
ブロックおよび副参照ブロックのブロックサイズが適正
か否かを判断し、参照ブロックサイズ判定値(Ds)を
出力する。
If S> = Ts then Dbm = two-color discrimination if S <Ts then Dbm = multicolor discrimination (f) In the reference block size determination means 116, the reference block size value (Sc) and the two-color multicolor discrimination value (Dbm) is used to determine whether or not the block sizes of the main reference block and the sub-reference block currently used for the determination are appropriate, and the reference block size determination value (Ds) is output.

【0092】 if Dbm=2色判別 then Ds=適正 if Dbm=多色判別 and Sc<画像データIのサイズ then Ds=不適正 if Dbm=多色判別 and Sc>=画像データIのサイズ then Ds=適正 (g)ここで、参照ブロックサイズ判定値(Ds)が不
適正の場合は、参照ブロックサイズ生成手段119によ
って、現在よりも大きなブロックサイズを示す参照ブロ
ックサイズ値(Sc)を出力し、前記(b)〜(f)を
繰り返す。
If Dbm = two-color discrimination then Ds = appropriate if Dbm = multicolor discrimination and Sc <size of image data I then Ds = improper if Dbm = multicolor discrimination and Sc> = size of image data I then Ds = Appropriate (g) If the reference block size determination value (Ds) is incorrect, the reference block size generation means 119 outputs a reference block size value (Sc) indicating a block size larger than the present, and (B) to (f) are repeated.

【0093】(h)また、参照ブロックサイズ判定値
(Ds)が適正の場合は、転送路開閉手段117が閉
じ、2色多色判別値(Dbm)が分割蓄積手段103に入
力される。
(H) When the reference block size judgment value (Ds) is proper, the transfer path opening / closing means 117 is closed and the two-color multicolor judgment value (Dbm) is input to the division storage means 103.

【0094】(i)分割蓄積手段103には、画像デー
タ(I)と同じ大きさで、2値画像データ用と多値画像
データ用との2つのバッファがあり、2色多色判別値
(Dbm)にしたがいそれぞれのバッファへ、被判別ブロ
ック位置データ(P)が示す位置に被判別ブロックデー
タ(Ibs)を格納する。
(I) The dividing and accumulating means 103 has two buffers of the same size as the image data (I), one for binary image data and one for multivalued image data. Dbm), the discriminated block data (Ibs) is stored at the position indicated by the discriminated block position data (P) in each buffer.

【0095】すべてのブロックについて判別が終了する
と、2値画像データ(Ibin)と多値画像データ(Imu
l)とを出力する。
When the determination is completed for all blocks, the binary image data (Ibin) and the multi-valued image data (Imu
l) and are output.

【0096】前記手順(b)において、参照ブロックサ
イズ値(Sc)が示すブロックの大きさが、文字図形と
比較して小さい場合、2色画像領域中にある主参照ブロ
ックのいくつかは、2色のうちの1色に塗りつぶされ、
その結果(e)において本来2色画像と判別すべき被判
別ブロックを多色画像と誤判別する可能性がある。
In the procedure (b), when the size of the block indicated by the reference block size value (Sc) is smaller than that of the character graphic, some of the main reference blocks in the two-color image area are Filled with one of the colors,
As a result, in (e), there is a possibility that the discriminated block, which should originally be discriminated as a two-color image, is erroneously discriminated as a multicolor image.

【0097】しかしながら、前記手順(f)において、
多色画像と判別した被判別ブロックに対し、参照ブロッ
クサイズを拡大することにより、そのような参照ブロッ
クが小さいことによる誤判定の障害を取り除くことが可
能となる。
However, in the procedure (f),
By enlarging the reference block size for the block to be discriminated as a multicolor image, it is possible to eliminate the obstacle of misjudgment due to such a small reference block.

【0098】即ち、2色画像領域の文字図形の大きさに
依らず2色画像領域内のブロックを2色画像領域と判別
することが可能となる。
That is, it is possible to discriminate a block in the two-color image area as a two-color image area regardless of the size of the character graphic in the two-color image area.

【0099】前記手順(b)〜(g)は、ある被判別ブ
ロックに対するある大きさの主参照ブロック内が2色画
像か否かを判別する方法であるが、ここの画像処理で
は、エッジとその周りが平坦になるという情報のみを使
い、画像信号の周波数分布の特性を使用していない。
The steps (b) to (g) are methods for judging whether or not the inside of the main reference block of a certain size with respect to a certain block to be judged is a two-color image. Only the information that the surrounding area becomes flat is used, and the characteristics of the frequency distribution of the image signal are not used.

【0100】したがって、高周波成分が多く含まれる多
色画像ブロックを2色画像と誤判定することを回避する
ことが可能となる。
Therefore, it is possible to avoid erroneously determining a multicolor image block containing many high frequency components as a two-color image.

【0101】前記手順(b)〜(g)においては、特別
な色に特化した2色画像ブロックの判別は行っていな
い。
In steps (b) to (g), the two-color image block specialized for a special color is not discriminated.

【0102】したがって、あらゆる色を持つ2色画像ブ
ロックの抽出が可能である。
Therefore, it is possible to extract a two-color image block having any color.

【0103】以上、本発明者によってなされた発明を、
前記実施例に基づき具体的に説明したが、本発明は、前
記実施例に限定されるものではなく、その要旨を逸脱し
ない範囲において種々変更可能であることは勿論であ
る。
The inventions made by the present inventors are as follows.
Although the present invention has been specifically described based on the above-mentioned embodiments, the present invention is not limited to the above-mentioned embodiments, and it goes without saying that various modifications can be made without departing from the scope of the invention.

【0104】[0104]

【発明の効果】本願において開示される発明のうち代表
的なものによって得られる効果を簡単に説明すれば、下
記の通りである。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.

【0105】(1)本発明によれば、2色画像領域、あ
るいは、多色画像領域を判別するための参照ブロックを
適宜大きくして判別するので、2色画像領域の文字図形
の大きさに依らず2色画像領域内のブロックを2色画像
領域と判別することが可能となる。
(1) According to the present invention, the reference block for discriminating the two-color image region or the multi-color image region is appropriately enlarged and discriminated. It is possible to discriminate a block in the two-color image area as a two-color image area without depending.

【0106】(2)本発明によれば、2色画像領域、あ
るいは、多色画像領域の判別の処理には周波数特性を使
用しないので、高周波成分が多く含まれる多色画像ブロ
ックを2色画像ブロックと誤判別することを防止するこ
とが可能となる。
(2) According to the present invention, since the frequency characteristic is not used in the process of discriminating the two-color image area or the multi-color image area, the multi-color image block containing a large amount of high frequency components is processed into the two-color image. It is possible to prevent erroneous determination as a block.

【0107】(3)本発明によれば、特別な色に特化し
た2色画像領域、あるいは、多色画像領域の判別は行わ
ないので、あらゆる色を持つ2色画像ブロックの抽出が
可能となる。
(3) According to the present invention, since a 2-color image area specialized for a special color or a multi-color image area is not discriminated, a 2-color image block having any color can be extracted. Become.

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

【図1】本発明の一実施例である画像分割装置の概略構
成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an image division device that is an embodiment of the present invention.

【図2】図1に示すブロック分割手段101によって分
割される画像データのブロックのようすを示す図であ
る。
FIG. 2 is a diagram showing a state of a block of image data divided by a block dividing unit 101 shown in FIG.

【図3】図1に示す主参照ブロック生成手段104、お
よび、副参照ブロック生成手段105〜108によって
生成される主参照ブロック、および、副参照ブロック
と、被参照ブロックとの位置関係を示す図である。
FIG. 3 is a diagram showing a positional relationship between a main reference block generation unit 104 and main reference blocks generated by sub reference block generation units 105 to 108 shown in FIG. 1, and sub reference blocks, and referenced blocks. Is.

【図4】本発明の原理を説明するための図であり、多色
画像における階調の変化と、それを重複するブロック毎
に2値化した結果を1次元の画像データで示す図であ
る。
FIG. 4 is a diagram for explaining the principle of the present invention, and is a diagram showing, as one-dimensional image data, a change in gradation in a multicolor image and a result of binarizing the change in each overlapping block. .

【図5】本発明の原理を説明するための図であり、2色
画像画像における階調の変化と、それを重複するブロッ
ク毎に2値化した結果を1次元の画像データで示す図で
ある。
FIG. 5 is a diagram for explaining the principle of the present invention, and is a diagram showing a change in gradation in a two-color image image and the result of binarizing the change in each overlapping block as one-dimensional image data. is there.

【図6】本発明の原理を説明するための図であり、ブロ
ックサイズによっては画像を的確に把握できないことを
1次元の画像データで示す図である。
FIG. 6 is a diagram for explaining the principle of the present invention, and is a diagram showing one-dimensional image data that an image cannot be accurately grasped depending on the block size.

【図7】本発明の原理を説明するための図であり、ブロ
ックサイズの決定方法を1次元の画像データで示す図で
ある。
FIG. 7 is a diagram for explaining the principle of the present invention, and is a diagram showing a block size determination method with one-dimensional image data.

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

101…ブロック分割手段、102…被判別ブロック指
定手段、103…分割蓄積手段、104…主参照ブロッ
ク生成手段、105〜108…副参照ブロック生成手
段、109〜113…2値化手段、114…重複部分類
似度出力手段、115…2色多色判別手段、302…主
参照ブロック、303〜306…副参照ブロック。
101 ... Block dividing means, 102 ... Discriminated block designating means, 103 ... Divided accumulating means, 104 ... Main reference block generating means, 105-108 ... Sub reference block generating means, 109-113 ... Binarizing means, 114 ... Duplication Partial similarity output means, 115 ... Two-color multicolor discrimination means, 302 ... Main reference block, 303-306 ... Sub reference block.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 2色画像と多色画像とが混在する画像デ
ータを2色画像領域と多色画像領域とに分割する画像分
割方法において、(a)2色画像領域か、あるいは、多
色画像領域かを判別しようとしている被判別ブロックを
中心として、その近傍のブロックを含んだブロック内の
画素値の集合データからなり、参照ブロックサイズ値に
より設定されるブロックサイズの主参照ブロックデータ
と、前記被判別ブロックを中心に持たない複数のブロッ
ク内の画素値の集合データからなり、参照ブロックサイ
ズ値により設定されるブロックサイズの副参照ブロック
データとを生成するステップと、(b)前記主参照ブロ
ックデータおよび前記副参照ブロックデータを各ブロッ
ク内の平均値を閾値として2値化するステップと、
(c)前記2値化された主参照ブロックデータおよび副
参照ブロックデータの重複している部分の類似性を数値
化した類似度値を生成するステップと、(d)前記類似
度値を用いて被判別ブロックが2色画像領域か、あるい
は、多色画像領域かを判別して2色多色判別値を生成す
るステップと、(e)前記2色多色判別値と、前記主参
照ブロックおよび副参照ブロックのブロックサイズを設
定するための参照ブロックサイズ値とを用いて、前記主
参照ブロックのブロックサイズおよび副参照ブロックの
ブロックサイズが適正か否かを判定して参照ブロックサ
イズ判定値を生成するステップと、(f)前記参照ブロ
ックサイズ判定値が不適正の時に参照ブロックサイズ値
を現在の参照ブロックサイズ値よりも大きい参照ブロッ
クサイズ値に変更して前記(a)ないし(e)のステッ
プを繰り返すステップと、(g)前記参照ブロックサイ
ズ判定値が適正の時に前記2色多色判別値に基づいて被
判別ブロックを2色画像領域、あるいは、多色画像領域
に分割するステップとからなることを特徴とする画像分
割方法。
1. An image division method for dividing image data in which a two-color image and a multi-color image coexist into a two-color image region and a multi-color image region, comprising: (a) a two-color image region or a multi-color image region. Mainly the reference block data of the block size set by the reference block size value, which consists of the aggregated data of the pixel values in the block including the blocks in the vicinity of the block to be discriminated which is to be discriminated from the image area, Generating sub-reference block data having a block size set by a reference block size value, the sub-reference block data consisting of aggregated data of pixel values in a plurality of blocks not having the identified block as a center; Binarizing the block data and the sub-reference block data by using an average value in each block as a threshold value;
(C) generating a similarity value that is a numerical representation of the similarity of overlapping portions of the binarized main reference block data and sub-reference block data; and (d) using the similarity value. Generating a two-color multi-color discrimination value by discriminating whether the block to be discriminated is a two-color image area or a multi-color image area, (e) the two-color multi-color discrimination value, the main reference block, and A reference block size determination value is generated by determining whether or not the block size of the main reference block and the block size of the sub reference block are appropriate by using the reference block size value for setting the block size of the sub reference block. And (f) changing the reference block size value to a reference block size value larger than the current reference block size value when the reference block size determination value is incorrect. And (g) repeat the steps (a) to (e), and (g) when the reference block size determination value is appropriate, the block to be determined is a two-color image region based on the two-color multicolor determination value, or And a step of dividing into multicolor image areas.
【請求項2】 2色画像と多色画像とが混在する画像デ
ータを2色画像領域と多色画像領域とに分割する画像分
割装置において、2色画像領域か、あるいは、多色画像
領域かを判別しようとしている被判別ブロックを中心と
し、その近傍のブロックを含んだブロック内の画素値の
集合データからなり、参照ブロックサイズ値により設定
されるブロックサイズの主参照ブロックデータを生成す
る主参照ブロック生成手段と、前記被判別ブロックを中
心に持たない複数のブロック内の画像値の集合データか
らなり、参照ブロックサイズ値により設定されるブロッ
クサイズの副参照ブロックデータを生成する副参照ブロ
ック生成手段と、前記参照ブロックサイズ値により設定
されるブロックサイズ毎の主参照ブロックデータおよび
副参照ブロックデータをブロック内の平均値を閾値とし
て2値化する2値化手段と、前記2値化手段で2値化さ
れた前記参照ブロックサイズ値により設定されるブロッ
クサイズ毎の主参照ブロックデータおよび副参照ブロッ
クデータの重複している部分の類似性を数値化した類似
度値を出力する重複部分類似度出力手段と、前記重複部
分類似度出力手段から出力される前記参照ブロックサイ
ズ値毎の類似度値を用いて被判別ブロックが2色画像領
域か、あるいは、多色画像領域かを判別し2色多色判別
値を出力する2値多色判別手段と、前記2値多色判別手
段から出力される2色多色判別値と参照ブロックサイズ
値とを用いて前記主参照ブロックおよび副参照ブロック
のブロックサイズが適正か否かを判定して参照ブロック
サイズ判定値を出力する参照ブロックサイズ判定手段
と、前記参照ブロックサイズ判定手段から出力される参
照ブロックサイズ判定値が適正である時に前記2色多色
判別値に基づいて被判別ブロックを2色画像領域、ある
いは、多色画像領域に分割する分割手段と、参照ブロッ
クサイズ値の初期値、および、前記参照ブロックサイズ
判定手段から出力される参照ブロックサイズ判定値が不
適正である時に現在の参照ブロックサイズ値よりも大き
い参照ブロックサイズ値を出力する参照ブロックサイズ
生成手段とから構成されることを特徴とする画像分割装
置。
2. An image dividing device for dividing image data in which a two-color image and a multi-color image coexist into a two-color image region and a multi-color image region. Main reference that generates the main reference block data of the block size set by the reference block size value, which consists of the aggregated data of the pixel values in the block including the block in the vicinity of the block to be determined A sub-reference block generation means that includes block generation means and aggregate data of image values in a plurality of blocks that do not have the discriminated block as a center and that generates sub-reference block data having a block size set by a reference block size value. And the main reference block data and the sub reference block data for each block size set by the reference block size value. Data is binarized by using the average value in the block as a threshold value, and main reference block data and sub-data for each block size set by the reference block size value binarized by the binarizing means. Overlapping partial similarity output means for outputting a similarity value which is a numerical value of the similarity of overlapping parts of reference block data, and similarity for each reference block size value output from the overlapping partial similarity output means A binary multicolor discriminator that discriminates whether the block to be discriminated is a two-color image region or a multicolor image region by using a value, and outputs a two-color multicolor discriminant value; Block for determining whether the block sizes of the main reference block and the sub-reference block are proper using the two-color multicolor discrimination value and the reference block size value, and outputting the reference block size determination value Size determining means and the reference block size determining value output from the reference block size determining means are appropriate, the block to be determined is a two-color image area or a multicolor image area based on the two-color multicolor determining value. Dividing unit for dividing into, an initial value of the reference block size value, and a reference block size larger than the current reference block size value when the reference block size determination value output from the reference block size determination unit is incorrect. An image dividing device comprising: a reference block size generating means for outputting a value.
JP09837395A 1995-04-24 1995-04-24 Image division method and image division device Expired - Fee Related JP3424197B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09837395A JP3424197B2 (en) 1995-04-24 1995-04-24 Image division method and image division device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09837395A JP3424197B2 (en) 1995-04-24 1995-04-24 Image division method and image division device

Publications (2)

Publication Number Publication Date
JPH08294002A true JPH08294002A (en) 1996-11-05
JP3424197B2 JP3424197B2 (en) 2003-07-07

Family

ID=14218086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09837395A Expired - Fee Related JP3424197B2 (en) 1995-04-24 1995-04-24 Image division method and image division device

Country Status (1)

Country Link
JP (1) JP3424197B2 (en)

Also Published As

Publication number Publication date
JP3424197B2 (en) 2003-07-07

Similar Documents

Publication Publication Date Title
US8155437B2 (en) Perceptually lossless color compression
US6389162B2 (en) Image processing apparatus and method and medium
JP4242532B2 (en) Digital image data classification method
Luo et al. Robust detection of region-duplication forgery in digital image
US7783117B2 (en) Systems and methods for generating background and foreground images for document compression
US6556711B2 (en) Image processing apparatus and method
US5995665A (en) Image processing apparatus and method
US7411699B2 (en) Method and apparatus to enhance digital image quality
US10699110B2 (en) Image processing apparatus, image processing method, and non-transitory recording medium storing program for causing computer to execute image processing method
JP6743092B2 (en) Image processing apparatus, image processing control method, and program
US9948824B2 (en) Image compressing device, image forming apparatus, image compressing method, and recording medium
JP3745069B2 (en) Image processing apparatus and method
JP2004229261A (en) Image-compressing method, image-compressing device, program, and recording media
JP3644716B2 (en) Image region separation method and image region separation device, and image processing method and image processing device
JP3424197B2 (en) Image division method and image division device
KR100369370B1 (en) Block-based Image Histogram Generation Method
JPH08331391A (en) Image processing unit and method therefor
JP3062224B2 (en) Image coding method
US7702154B2 (en) Method and apparatus indentifying halftone regions within a digital image
JP6641982B2 (en) Image processing apparatus, image processing method, and program
RU2737001C1 (en) Image processing device and method and data medium
JP2004242075A (en) Image processing apparatus and method therefor
JPH02199588A (en) Image area identifying device
JPH06266897A (en) Processing system for extracting character string image from character string with background
KR100514734B1 (en) Method and apparatus for improvement of digital image quality

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees