JPH07123246A - Binary picture reduction device - Google Patents

Binary picture reduction device

Info

Publication number
JPH07123246A
JPH07123246A JP5264825A JP26482593A JPH07123246A JP H07123246 A JPH07123246 A JP H07123246A JP 5264825 A JP5264825 A JP 5264825A JP 26482593 A JP26482593 A JP 26482593A JP H07123246 A JPH07123246 A JP H07123246A
Authority
JP
Japan
Prior art keywords
picture element
block
reduced
pixel
image
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
JP5264825A
Other languages
Japanese (ja)
Inventor
Hideaki Yamada
英明 山田
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP5264825A priority Critical patent/JPH07123246A/en
Publication of JPH07123246A publication Critical patent/JPH07123246A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To prevent deterioration in picture quality due to error spread of a line drawing by calculating a 1st tentative reduction picture element value of a picture element block based on a counted black picture element number and a reduction rate and calculating a 2nd tentative reduced picture element based on an exception processing condition. CONSTITUTION:An adder section 2 counts number of block picture elements Gxy in a picture element block of a line buffer 1. A comparator section 3 compares the number of block picture elements Gxy with a preset threshold level T to set a 1st tentative reduced picture element Txy of the picture element block as Txy=1 (black level) in the case of Gxxy>=T and (to set the 1st tentative reduced picture element T., of the picture element block as Txy=0 (white level) in the case of Gxy<T. An except processing section 4 uses a conversion picture element block already converted and a picture element block processed at present to discriminate whether or not the picture element block has an except pattern. When the picture element block is the except pattern, a 2nd tentative picture element value Exy is set to 0 (white level) to provide an except discrimination signal s=0 and when not the except pattern, an exception discrimination signal s-1 is outputted. A reduced picture element decision section 5 sets the conversion picture element Qxy to be Txy in the case of s=1 and sets the conversion picture element Qxy to be Exy in the case of s=0.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、0または1の値を有す
る画素からなる二値画像を縮小する二値画像縮小装置に
関し、より詳細には、ファクシミリ画像をディスプレイ
に表示するソフトfaxに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image reducing apparatus for reducing a binary image consisting of pixels having a value of 0 or 1, and more particularly to a software fax for displaying a facsimile image on a display.

【0002】[0002]

【従来の技術】従来より用いられている多くの2値画像
変換法では、変換画素の値を決定するのにその周囲の原
画素の値を参照する。ここでは、その代表例であるSP
C法、投影法、ETP法について説明する。以下、画素
の値は、黒画素を1、白画素を0とする。
2. Description of the Related Art In many conventionally used binary image conversion methods, the value of an original pixel around the converted pixel is referred to determine the value of the converted pixel. Here, a typical example is SP
The C method, the projection method, and the ETP method will be described. Hereinafter, the pixel value is set to 1 for black pixels and 0 for white pixels.

【0003】SPC法においては、変換画素に最も近い
原画素の値を変換画素の値としたもので、図2には、原
画に変換画を投影したものを示し、矢印の付いた原画素
が変換画素に採用される。
In the SPC method, the value of the original pixel closest to the converted pixel is used as the value of the converted pixel, and FIG. 2 shows a projected image of the converted image on the original image. It is used for conversion pixels.

【0004】また、投影法においては、図3に示すよう
に点線で示される原画素、実線で示される変換画素を矩
形の領域とし、変換画素の領域のなかに占める面積比に
よって、白画素、黒画素を決定するものである。
Further, in the projection method, as shown in FIG. 3, the original pixel indicated by a dotted line and the conversion pixel indicated by a solid line are rectangular regions, and white pixels are determined depending on the area ratio of the conversion pixels. It determines a black pixel.

【0005】具体的には、原画素の占める面積Si,j
重みとした原画素の値Pi,j の総和Iがある閾値T以上
なら、変換画素の値Qを1、閾値より小さければ、0と
する。これを式で表すと、 I=S1,11,1 +・・・+S1,m1,m (1) (1,m≧0) I≧T ならば Q=1 I<T ならば Q=0 となる。
Specifically, if the sum I of the original pixel values P i, j weighted by the area S i, j occupied by the original pixels is greater than or equal to a certain threshold T, the value Q of the converted pixel should be 1 and smaller than the threshold. If it is 0. When this is expressed by an equation, I = S 1,1 P 1,1 + ... + S 1, m P 1, m (1) (1, m ≧ 0) If I ≧ T, then Q = 1 I <T Then Q = 0.

【0006】更にETP法は、SPC法を改良し細線が
消失することを防止した縮小法であり、細線の判定条件
の一例と、その消失の防止法を図4を用いて説明する。
Further, the ETP method is a reduction method which is an improvement of the SPC method and prevents the disappearance of fine lines. An example of conditions for determining fine lines and a method of preventing the disappearance will be described with reference to FIG.

【0007】図4は、現画素と変換画素との位置関係を
示している。
FIG. 4 shows the positional relationship between the current pixel and the converted pixel.

【0008】以下に、変換画素Q-1、Q0 に最も近い画
素P-1、P0 の間に線幅2の細線判定の論理式を示す。
The following is a logical formula for determining a thin line having a line width of 2 between the pixels P -1 , P 0 closest to the converted pixels Q -1 , Q 0 .

【0009】 (P0,0=P-3,0=〜P-1,0=〜P-2,0)=(〜P-1,0+〜P-1,-1+〜P-2,-1 +〜P-3,-1)=(〜P0,1 +〜P-1,1 +〜P-2,1 +〜P-3,1) (2) 上式を満たせば、線幅2の細線があると判定する。[0009] (P 0,0 = P -3,0 = ~P -1,0 = ~P -2,0) = (~P -1,0 + ~P -1, -1 + ~P -2 , -1 + to P -3, -1 ) = (to P 0,1 + to P -1,1 + to P -2,1 + to P -3,1 ) (2) If the above equation is satisfied, It is determined that there is a thin line with a line width of 2.

【0010】ここで、+,Pi,j,〜Pi,jはそれぞれ、
論理和(or)、画素、反転画素(Pi,j=1ならば〜
i,j=0、Pi,j=0ならば〜Pi,j=1)を表す。
Here, +, P i, j , and P i, j are respectively
Logical sum (or), pixel, inverted pixel (if P i, j = 1
If P i, j = 0 and P i, j = 0, then ~ P i, j = 1) is represented.

【0011】図4において、上記した細線の判定条件に
より線幅2の黒の細線があると判定された場合でもSP
C法では、変換画素Q-1、Q0 とも白になり、縮小画に
おいて黒の細線が消えてしまうが、ETP法では、Q0
を黒に変換することにより細線が保存される。
In FIG. 4, even if it is determined that there is a black thin line with a line width of 2 according to the above-described thin line determination condition, SP
In the C method, both the converted pixels Q −1 and Q 0 become white, and the black thin line disappears in the reduced image, but in the ETP method, Q 0
The thin lines are preserved by converting to black.

【0012】[0012]

【発明が解決しようとする課題】文字や図形などを2値
化するときは一定の閾値で行うが、写真などの中間調画
像を2値化するときは、黒画素の密度で階調を表現する
ように、閾値を変化させるディザ法が使われる。ディザ
法のひとつである誤差拡散法は、解像度、階調数とも大
きく、更にモアレも発生せず高品質な二値画像を得られ
るので現在、主流となっている。
When binarizing a character or figure, a certain threshold is used, but when binarizing a halftone image such as a photograph, gradation is expressed by the density of black pixels. A dither method that changes the threshold is used. The error diffusion method, which is one of the dither methods, is currently in the mainstream because it has a large resolution and a large number of gradations and can produce a high-quality binary image without moire.

【0013】したがって、以下では線画と誤差拡散画像
の縮小について述べる。
Therefore, the reduction of the line image and the error diffusion image will be described below.

【0014】ここで、誤差拡散画像の一例を拡大して図
6に示す。
An example of the error diffusion image is enlarged and shown in FIG.

【0015】二値画像の縮小画像の品質を論じる上で、
文字や図形などの線画とディザ画像の縮小画像ではそれ
ぞれ次のことが重要になる。
In discussing the reduced image quality of a binary image,
The following matters are important for line images such as characters and figures and reduced images of dither images.

【0016】(a)線画の縮小画像 細線を保存する。このことによって、ヌケやツブレを防
ぐ。
(A) Reduced image of line drawing A thin line is saved. This prevents missing and blurring.

【0017】(b)誤差拡散画像の縮小画像 階調を出す。原画との濃度の反転が起こらないようにす
る。原画像のように画素の連結を少なくする。
(B) Reduced image of error diffusion image The gradation is output. Make sure that the density of the original image is not reversed. Pixel connection is reduced as in the original image.

【0018】次に、従来の縮小法を線画に適用したとき
にどうなるかを説明していく。
Next, what happens when the conventional reduction method is applied to a line drawing will be described.

【0019】SPC法では、変換画素の間に黒い線があ
っても白画素が選ばれるため、ヌケが生じてしまう。
In the SPC method, a white pixel is selected even if there is a black line between converted pixels, so that missing occurs.

【0020】投影法では、閾値Tが大きいとヌケが生
じ、逆に小さいと線が太くなってしまう。
In the projection method, when the threshold value T is large, blanks occur, and when the threshold value T is small, the line becomes thick.

【0021】ETP法では、変換画素の間の細線は保存
される。
In the ETP method, thin lines between converted pixels are preserved.

【0022】次に誤差拡散画像の縮小について見てみ
る。
Next, let us look at the reduction of the error diffusion image.

【0023】SPC法では、誤差拡散画像は黒画素の配
置に周期性がないため、変換画素に選ばれる原画素の色
がランダムになる。したがって、縮小画像では黒画素が
かたまるところができるため、画質が劣化してしまう。
In the SPC method, since the error diffusion image has no periodicity in the arrangement of black pixels, the color of the original pixel selected as the conversion pixel becomes random. Therefore, in the reduced image, some black pixels are formed, and the image quality deteriorates.

【0024】投影法においては、変換画素のなかの黒画
素の面積を、閾値で処理するため、縮小画像においても
濃度を表すことができ、極端な画質の劣化はない。
In the projection method, since the area of the black pixel among the converted pixels is processed by the threshold value, the density can be expressed even in the reduced image, and the image quality is not extremely deteriorated.

【0025】ETP法では、基本的にはSPC法と同様
に、黒画素がかたまった縮小画像ができる。細線保存の
処理のかかったところは、SPC法とは色が逆転するた
めに原画像とくらべて階調が反転するところができてし
まう。
In the ETP method, basically, as in the SPC method, a reduced image with black pixels is formed. Where the thin line saving process is performed, the color is reversed from that of the SPC method, and therefore, the gradation is reversed compared to the original image.

【0026】上記した従来の縮小法による縮小画像の特
徴を、まとめて表1に示す。
Table 1 summarizes the features of the reduced image according to the above-described conventional reduction method.

【0027】[0027]

【表1】 [Table 1]

【0028】表1に示す様に、従来より用いられている
縮小法において線画と誤差拡散画像の両方にたいして有
効なものはなかった。
As shown in Table 1, none of the conventional reduction methods are effective for both line drawing and error diffusion image.

【0029】本発明は以上の点に鑑みなされたものであ
り、線画と誤差拡散画像の両方にたいして画質の劣化の
ない二値画像縮小装置を提供することにある。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a binary image reducing apparatus that does not deteriorate the image quality of both a line drawing and an error diffusion image.

【0030】[0030]

【課題を解決するための手段】上記した本発明の目的
は、二値画像である原画像から縮小率に応じて予め定め
られた大きさの画素ブロックを抽出する抽出手段と、前
記抽出手段によって抽出された該画素ブロック内の黒画
素数の計数を行う計数手段と、前記計数手段によって計
数された黒画素数と縮小率に応じて予め設定されている
閾値とを比較しその結果に応じて該画素ブロックの第1
の仮の縮小画素値を算出する第1の算出手段と、該画素
ブロックとすでに縮小画像値が決定している画素ブロッ
クを用いて該画素ブロックが縮小率に応じて予め設定さ
れている例外処理条件に該当するか判断を行う判断手段
と、前記判断手段によって例外処理条件と判断された場
合に該画素ブロックの第2の仮の縮小画素値を算出する
第2の算出手段と、前記判断手段による判断結果に応じ
て前記第1の仮の縮小画素値と前記第2の仮の縮小画素
値のいずれか一方を該画素ブロックの縮小画素値として
選択する選択手段とを備えることを特徴とする二値画像
縮小装置によって達成される。
An object of the present invention described above is to provide an extracting means for extracting a pixel block having a predetermined size according to a reduction rate from an original image which is a binary image, and the extracting means. Counting means for counting the number of black pixels in the extracted pixel block is compared with the number of black pixels counted by the counting means and a threshold value set in advance according to the reduction ratio, and according to the result. The first of the pixel blocks
First calculating means for calculating the provisional reduced pixel value of the pixel block and an exceptional process in which the pixel block and the pixel block for which the reduced image value has already been determined are preset for the pixel block according to the reduction rate. Determining means for determining whether the condition is met, second calculating means for calculating a second provisional reduced pixel value of the pixel block when the determining means determines that the condition is an exceptional processing condition, and the determining means. The selection means selects one of the first temporary reduced pixel value and the second temporary reduced pixel value as the reduced pixel value of the pixel block in accordance with the determination result by This is achieved by a binary image reduction device.

【0031】[0031]

【作用】抽出手段は、二値画像である原画像から縮小率
に応じて予め定められた大きさの画素ブロックを抽出す
る。
The extracting means extracts a pixel block having a predetermined size according to the reduction rate from the original image which is a binary image.

【0032】計数手段は、前記抽出手段によって抽出さ
れた画素ブロック内の黒画素数を計数する。
The counting means counts the number of black pixels in the pixel block extracted by the extracting means.

【0033】第一の算出手段は、前記計数手段によって
計数された黒画素数と縮小率に応じた予め設定された閾
値との比較を行い、その結果に応じて該画素ブロックの
第1の仮の縮小画素値を算出する。
The first calculating means compares the number of black pixels counted by the counting means with a preset threshold value according to the reduction rate, and according to the result, the first temporary value of the pixel block is compared. The reduced pixel value of is calculated.

【0034】判断手段は、該画素ブロックとすでに縮小
画像値が決定している画素ブロックを用いて該画素ブロ
ックが縮小率に応じて予め設定されている例外処理条件
に該当するか判断を行う。
The determining means determines whether or not the pixel block meets an exception processing condition preset according to the reduction rate, using the pixel block and the pixel block for which the reduced image value has already been determined.

【0035】第2の算出手段は、前記判断手段によって
例外処理条件と判断された場合に該画素ブロックの第2
の仮の縮小画素値の算出を行う。
The second calculating means determines the second value of the pixel block when the judging means judges that the condition is an exceptional processing condition.
The provisional reduced pixel value of is calculated.

【0036】選択手段は、前記判断手段による判断結果
に応じて前記第1の仮の縮小画素値と前記第2の仮の縮
小画素値のいずれか一方を該画素ブロックの縮小画素値
として選択し、次段へ出力する。
The selecting means selects one of the first tentative reduced pixel value and the second tentative reduced pixel value as the reduced pixel value of the pixel block according to the determination result of the determining means. , Output to the next stage.

【0037】[0037]

【実施例】以下、図面を参照して本発明による二値画像
縮小装置の好適な1実施例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of a binary image reducing apparatus according to the present invention will be described in detail below with reference to the drawings.

【0038】図1に本発明による二値画像縮小装置の一
実施例を示す。
FIG. 1 shows an embodiment of a binary image reduction device according to the present invention.

【0039】本実施例による二値画像縮小装置には、ラ
イン単位で入力される二値原画像データを格納するため
ラインバッファ1が接続されている。
A line buffer 1 is connected to the binary image reducing apparatus according to the present embodiment for storing binary original image data input line by line.

【0040】本実施例による二値画像縮小装置は、前記
ラインバッファ1に接続されており縮小率に応じて予め
定められている画素ブロックを前記ラインバッファ1よ
り抽出し該画素ブロック内に含まれる黒画素数の計数を
行う加算部2と、前記加算部2で計数された黒画素数と
縮小率に応じて定められている閾値とを比較しその結果
に応じて第1の仮の縮小画素値Tx,y を算出する比較部
3と、該画素ブロックと変換済みの変換画素ブロックと
を用いて該画素ブロックが例外かどうかを縮小率に応じ
て判断しその判断結果を示す例外判断信号sと第2の仮
の縮小画素値Ex,y を算出して出力する例外処理部4
と、前記例外処理部4から出力される例外判断信号sの
値によって前記第1の仮の縮小画素値Tx,y と前記第2
の仮の画素値Ex,y のいづれか一方を縮小画素値として
選択し出力する縮小画素値決定部5とから構成される。
The binary image reducing apparatus according to this embodiment extracts from the line buffer 1 a pixel block which is connected to the line buffer 1 and which is predetermined according to the reduction ratio, and is included in the pixel block. The addition unit 2 that counts the number of black pixels is compared with the number of black pixels counted by the addition unit 2 and a threshold value determined according to the reduction ratio, and the first provisional reduced pixel is obtained according to the result. An exception determination signal indicating whether or not the pixel block is an exception based on the reduction rate using the comparison unit 3 that calculates the value T x, y and the pixel block and the converted pixel block that has been converted, and that indicates the determination result. Exception processing unit 4 for calculating and outputting s and the second provisional reduced pixel value E x, y
And the value of the exception determination signal s output from the exception processing unit 4, the first temporary reduced pixel value T x, y and the second
And a reduced pixel value determination unit 5 that selects and outputs one of the temporary pixel values E x, y as a reduced pixel value.

【0041】前記縮小画素値決定部5から出力される縮
小画素値は、格納するラインバッファ7に格納される。
The reduced pixel value output from the reduced pixel value determination unit 5 is stored in the line buffer 7 for storing.

【0042】また、外部から入力される縮小率を前記加
算部2、前記比較部3、前記例外処理部4の各々に供給
するため縮小率設定部6が接続されている。
Further, a reduction rate setting section 6 is connected so as to supply the reduction rate inputted from the outside to each of the adding section 2, the comparing section 3 and the exception processing section 4.

【0043】以下、縮小率1/n(nは2以上の整数と
する)の場合を例にとって、上記構成にてなる二値画像
縮小装置の動作を説明する。
The operation of the binary image reducing apparatus having the above configuration will be described below by taking the case of a reduction rate 1 / n (n is an integer of 2 or more) as an example.

【0044】ラインバッファ1には、ライン単位で入力
される二値原画像データが格納されている。
The line buffer 1 stores binary original image data input line by line.

【0045】加算部2は、前記ラインバッファ1のn×
nの画素ブロックgx,y 内にある黒画素数cx,y を計数
する。
The adder unit 2 has n × of the line buffer 1.
n pixel block g x, the number of black pixels in the y c x, counts the y.

【0046】一例として、図8にn=3の場合を例に示
す。
As an example, FIG. 8 shows the case where n = 3.

【0047】実線でしめされる画素ブロックgx,y 内の
黒画素数Gx,y を数えた後、次に点線で示される主走査
線方向右隣の画素ブロックgx+1 ,y 内の黒画素数G
x+1 ,yを数える。
The pixel block g x indicated by the solid line, the number of black pixels in the y G x, after counting the y, then the main scanning direction right adjacent pixel blocks g x + 1, the y indicated by a dotted line Number of black pixels G
Count x + 1, y .

【0048】以下同様に、画素ブロックは順次n(=
3)ずつ、主走査方向、または副走査線方向に移動して
いく。
Similarly, the pixel blocks are sequentially n (=
3) Moving in the main scanning direction or the sub-scanning line direction one by one.

【0049】比較部3は、黒画素数Gx,y と予め設定さ
れている閾値Tとを比較して、画素ブロックgx,yの第
1の仮の縮小画素値Tx,yを Gx,y ≧Tなら Tx,y =1(黒) Gx,y <Tなら Tx,y =0(白) として設定する。
The comparator 3, number of black pixels G x, is compared with a threshold value T set in advance and y, the pixel block g x, a first temporary reduced pixel values T x of y, a y G If x, y ≧ T, T x, y = 1 (black), and if G x, y <T, set T x, y = 0 (white).

【0050】尚、縮小率1/nのときは、閾値T=n
と、低めに設定することにより線のヌケを防止する。
When the reduction ratio is 1 / n, the threshold value T = n
By setting a low value, you can prevent missing lines.

【0051】例外処理部4では、文字や図形の太線化の
防止のため、現在処理を行っているn×n画素ブロック
とすでに変換済みの変換画素ブロックを用いて、該画素
ブロックが例外パターンかどうかの判断を行う。
In order to prevent thickening of characters and figures, the exception processing unit 4 uses the n × n pixel block currently being processed and the converted pixel block that has already been converted to determine whether the pixel block is an exceptional pattern. Make a decision.

【0052】該画素ブロックが、黒画素を3個含む場合
でも、図9(a),(b) に示す様に黒画素ブロックの横に位
置する例外パターンの時には、第2の仮の画素値Ex,y
=0(白)とし、例外処理にかかったかどうかを示す例
外判断信号s=0を出力する。
Even if the pixel block includes three black pixels, the second tentative pixel value is used in the case of an exceptional pattern located beside the black pixel block as shown in FIGS. 9 (a) and 9 (b). Ex, y
= 0 (white), and an exception determination signal s = 0 indicating whether or not exception processing has been performed is output.

【0053】また、該画素ブロックと変換済みの画素ブ
ロックからなるパターンが、例外パターンではない場合
にはs=1を出力する。
If the pattern composed of the pixel block and the converted pixel block is not an exceptional pattern, s = 1 is output.

【0054】ここで、例外判断信号sと第2の仮の画素
値Ex,yとは同じ値であっても良い。
Here, the exception judgment signal s and the second temporary pixel value E x, y may be the same value.

【0055】縮小画素値決定部5では、s=1のとき
は、変換画素値Qx,y =Tx,y とし、s=0のときは、
変換画素値Qx,y =Ex,y とする。
In the reduced pixel value determination unit 5, when s = 1, the converted pixel value Q x, y = T x, y is set, and when s = 0,
The converted pixel value Q x, y = E x, y .

【0056】まず、本実施例の画像縮小装置を線画に適
用した場合について他の縮小法と比較しながら以下に述
べていく。
First, the case where the image reducing apparatus of the present embodiment is applied to a line drawing will be described below in comparison with other reducing methods.

【0057】例として図5(a)に示す画像を原画像と
し、この画像を縮小率1/3にて縮小した場合について
述べていく。
As an example, the case where the image shown in FIG. 5A is used as an original image and this image is reduced at a reduction ratio of 1/3 will be described.

【0058】SPC法では、図5の(b)に示す様に、
変換画素の間に黒い線があっても白画素が選ばれるため
ヌケが生じてしまう。
In the SPC method, as shown in FIG.
Even if there is a black line between the converted pixels, white pixels are selected, resulting in missing.

【0059】投影法では、閾値Tが大きいとヌケが生
じ、逆に小さいと線が太くなってしまう。ここで、1/
3縮小時には、変換画素のなかに原画素は3×3の9個
おさまるので、(1)式のIは黒画素数になる。
In the projection method, when the threshold value T is large, blanks occur, and when it is small, the line becomes thick. Where 1 /
At the time of reduction by 3, the number of original pixels in the converted pixels is 3 × 3, which is nine. Therefore, I in the equation (1) is the number of black pixels.

【0060】従って、閾値T=4、つまり変換画素のな
かの黒の原画素が4個以上だと、図5の(c)に示す様
に、ヌケが生じてしまう。一方、T=3以下なら、図5
の(d)に示す様に、逆に線が太くなる。
Therefore, when the threshold value T = 4, that is, when there are four or more black original pixels among the converted pixels, as shown in (c) of FIG. 5, missing occurs. On the other hand, if T = 3 or less, FIG.
On the contrary, as shown in (d) of FIG.

【0061】ETP法では、図5の(e)に示す様に、
変換画素の間の細線を保存する。
In the ETP method, as shown in FIG.
Preserve thin lines between transformed pixels.

【0062】一方、本実施例においては、図5(f)に
示す様に、閾値処理よりヌケがないと共に、例外処理に
より線が太くならない画像が得られる。
On the other hand, in the present embodiment, as shown in FIG. 5 (f), an image is obtained that is clearer than the threshold processing and the line is not thickened by the exceptional processing.

【0063】次に、誤差拡散画像に本実施例の画像縮小
装置を適用した場合について、例として図7(a)に示
す画像を原画像とし、縮小率1/3にて縮小する場合に
ついて、他の縮小法と比較しながら以下に述べていく。
Next, in the case where the image reducing apparatus of this embodiment is applied to the error diffusion image, the image shown in FIG. 7A is used as an original image, and the image is reduced at a reduction ratio of 1/3. It will be described below in comparison with other reduction methods.

【0064】SPC法では、誤差拡散画像は図7の
(b)に示す様に、黒画素の配置に周期性がないため、
変換画素に選ばれる原画素の色がランダムになる。した
がって、縮小画像では黒画素がかたまるところができて
しまい、画質が劣化する。
In the SPC method, since the error diffusion image has no periodicity in the arrangement of black pixels as shown in FIG. 7B,
The color of the original pixel selected as the conversion pixel becomes random. Therefore, in the reduced image, some black pixels are formed, which deteriorates the image quality.

【0065】投影法においては、図7の(c)に示す様
に、変換画素のなかの黒画素の面積を、閾値で処理する
ため、縮小画像においても濃度を表すことができ、極端
な画質の劣化はない。
In the projection method, as shown in FIG. 7C, the area of the black pixel in the converted pixels is processed by the threshold value, so that the density can be expressed even in the reduced image, and the extreme image quality can be obtained. There is no deterioration.

【0066】一方、ETP法では、図7の(d)に示す
様に、基本的にはSPC法と同様に、黒画素がかたまっ
た縮小画像ができる。細線保存の処理のかかったところ
は、SPC法とは色が逆転するため原画像とくらべて階
調が反転するところができてしまう。本実施例において
は、図7の(e)に示す様に、例外処理にかかる割合が
すくないので実質的に閾値T=nの投影法となり、階調
を表し、画質の劣化のない縮小画像が得られる。
On the other hand, in the ETP method, as shown in (d) of FIG. 7, a reduced image in which black pixels are formed is basically formed as in the SPC method. Where the thin line storage processing is performed, the color is reversed from that of the SPC method, so that the gradation is reversed in some areas as compared with the original image. In the present embodiment, as shown in (e) of FIG. 7, since the ratio of the exceptional processing is small, the projection method with the threshold value T = n is substantially used, and a reduced image that represents gradation and has no deterioration in image quality is obtained. can get.

【0067】[0067]

【発明の効果】本発明による2値画像縮小装置による
と、線画においては、ヌケがないとともに、線の太くな
らない画像が得られる。また、誤差拡散画像において
は、階調を表すとともに、画質の劣化のない縮小画像が
得ることが可能となる。
According to the binary image reducing apparatus of the present invention, an image having no missing lines and no thick lines can be obtained in a line drawing. Further, in the error diffusion image, it is possible to obtain a reduced image that represents gradation and has no deterioration in image quality.

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

【図1】本発明による値画像縮小装置の一実施例のブロ
ック図である。
FIG. 1 is a block diagram of an embodiment of a value image reducing device according to the present invention.

【図2】SPC法の説明図である。FIG. 2 is an explanatory diagram of an SPC method.

【図3】投影法の説明図である。FIG. 3 is an explanatory diagram of a projection method.

【図4】ETP法の細線判定条件の説明に用いる図であ
る。
FIG. 4 is a diagram used for explaining a thin line determination condition of the ETP method.

【図5】線画の縮小率1/3の縮小画像の例である。FIG. 5 is an example of a reduced image with a line image reduction ratio of 1/3.

【図6】誤差拡散画像の拡大図である。FIG. 6 is an enlarged view of an error diffusion image.

【図7】誤差拡散画像の縮小率1/3の縮小画像の例で
ある。
FIG. 7 is an example of a reduced image with a reduction rate of 1/3 of the error diffusion image.

【図8】縮小率1/3のときの画素ブロック内の黒画素
数の例である。
FIG. 8 is an example of the number of black pixels in a pixel block when the reduction ratio is 1/3.

【図9】例外処理のパターンを示す。FIG. 9 shows a pattern of exception processing.

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

1、7 ラインバッファ 2 加算部 3 比較部 4 例外処理部 5 縮小画素値決定部 6 縮小率設定部 1, 7 Line buffer 2 Addition unit 3 Comparison unit 4 Exception processing unit 5 Reduced pixel value determination unit 6 Reduction ratio setting unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 0または1の値を有する画素からなる二
値画像を縮小する二値画像縮小装置であって、 二値画像である原画像から縮小率に応じて予め定められ
た大きさの画素ブロックを抽出する抽出手段と、 前記抽出手段によって抽出された該画素ブロック内の黒
画素数の計数を行う計数手段と、 前記計数手段によって計数された黒画素数と縮小率に応
じて予め設定されている閾値とを比較しその結果に応じ
て該画素ブロックの第1の仮の縮小画素値を算出する第
1の算出手段と、 該画素ブロックとすでに縮小画像値が決定している画素
ブロックを用いて該画素ブロックが縮小率に応じて予め
設定されている例外処理条件に該当するかを判断する判
断手段と、 前記判断手段によって例外処理条件と判断された場合に
は該画素ブロックの第2の仮の縮小画素値を算出する第
2の算出手段と、 前記判断手段による判断結果に応じて前記第1の仮の縮
小画素値と前記第2の仮の縮小画素値のいずれか一方を
該画素ブロックの縮小画素値として選択する選択手段と
を備えることを特徴とする二値画像縮小装置。
1. A binary image reducing apparatus for reducing a binary image composed of pixels having a value of 0 or 1, which has a predetermined size from an original image which is a binary image according to a reduction rate. Extraction means for extracting a pixel block, counting means for counting the number of black pixels in the pixel block extracted by the extraction means, and preset according to the number of black pixels counted by the counting means and the reduction rate And a threshold value that has been determined, and a first calculation unit that calculates a first provisional reduced pixel value of the pixel block according to the result, and the pixel block and the pixel block whose reduced image value has already been determined. Determining means for determining whether the pixel block corresponds to a preset exceptional processing condition according to the reduction ratio, and if the determining means determines the exceptional processing condition, Two Second calculating means for calculating a temporary reduced pixel value, and one of the first temporary reduced pixel value and the second temporary reduced pixel value depending on the judgment result by the judging means. A binary image reduction device, comprising: a selecting unit that selects as a reduced pixel value of a block.
JP5264825A 1993-10-22 1993-10-22 Binary picture reduction device Pending JPH07123246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5264825A JPH07123246A (en) 1993-10-22 1993-10-22 Binary picture reduction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5264825A JPH07123246A (en) 1993-10-22 1993-10-22 Binary picture reduction device

Publications (1)

Publication Number Publication Date
JPH07123246A true JPH07123246A (en) 1995-05-12

Family

ID=17408735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5264825A Pending JPH07123246A (en) 1993-10-22 1993-10-22 Binary picture reduction device

Country Status (1)

Country Link
JP (1) JPH07123246A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011005257A1 (en) * 2009-07-09 2011-01-13 Hewlett-Packard Development Company, L.P. Counterfeit detection system
JP2011119824A (en) * 2009-12-01 2011-06-16 Fuji Xerox Co Ltd Image processor and image processing program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011005257A1 (en) * 2009-07-09 2011-01-13 Hewlett-Packard Development Company, L.P. Counterfeit detection system
US8798313B2 (en) 2009-07-09 2014-08-05 Hewlett-Packard Development Company, L.P. Counterfeit detection system
JP2011119824A (en) * 2009-12-01 2011-06-16 Fuji Xerox Co Ltd Image processor and image processing program
KR101369394B1 (en) * 2009-12-01 2014-03-05 후지제롯쿠스 가부시끼가이샤 Image processing apparatus, computer readable recording medium storing image processing program, and image processing method

Similar Documents

Publication Publication Date Title
JP3585703B2 (en) Image processing device
US6587115B2 (en) Method of an apparatus for distinguishing type of pixel
US5491564A (en) Data compression method and apparatus for binary image using Markov model encoding
US5760921A (en) Method of and apparatus for image processing
US5717793A (en) High quality image size change
JP2784278B2 (en) Image scaling processor
JPH07123246A (en) Binary picture reduction device
JP2941288B2 (en) Image processing system
JPH0775395B2 (en) Image processing device
JP3183787B2 (en) Halftone area determination device
JP3216963B2 (en) Halftone area determination device
JP2525768B2 (en) Image reduction conversion method
JP2845376B2 (en) Pixel density converter
JP3245586B2 (en) Pole pixel detection device
JP2777378B2 (en) Halftone area detection method
JP2972171B2 (en) Halftone area detection method
JP2777380B2 (en) Halftone area detection method
JP2778669B2 (en) Halftone area detection method
JPH0937072A (en) Image magnifying device
JP3004245B2 (en) Halftone area detection method
JP2836992B2 (en) Image scaling processor
JP2001111836A (en) Image processing unit
JPH05176168A (en) Adaptive halftone processing system
JPH0937073A (en) Dot area separating device
JP3136650B2 (en) Image processing device