[go: up one dir, main page]

JPH06205201A - Binary picture magnification/reduction device - Google Patents

Binary picture magnification/reduction device

Info

Publication number
JPH06205201A
JPH06205201A JP4360152A JP36015292A JPH06205201A JP H06205201 A JPH06205201 A JP H06205201A JP 4360152 A JP4360152 A JP 4360152A JP 36015292 A JP36015292 A JP 36015292A JP H06205201 A JPH06205201 A JP H06205201A
Authority
JP
Japan
Prior art keywords
image
binary
value
reduced
enlarged
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
JP4360152A
Other languages
Japanese (ja)
Inventor
Toshiaki Arai
俊明 荒井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP4360152A priority Critical patent/JPH06205201A/en
Publication of JPH06205201A publication Critical patent/JPH06205201A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

(57)【要約】 【目的】 2値化画像を縮小および拡大しても良好な画
像が得られるようにする。 【構成】 2値画像を直接縮小又は拡大せずに、一度、
2値・多値変換回路1にて多値に変換する。そして、多
値画像に変換された多値画像信号を縮小・拡大回路2に
て縮小又は拡大を行い、そして、縮小又は拡大された多
値画像信号を誤差拡散法又はディザ法等を採用した中間
調表現式2値化回路3にて中間調処理を行い、2値に変
換して出力する。これにより、黒潰れや白潰れが起こり
難くなり、良好な2値化画像が得られる。
(57) [Abstract] [Purpose] A good image can be obtained even if a binarized image is reduced or enlarged. [Structure] Without directly reducing or enlarging the binary image,
The binary / multi-value conversion circuit 1 converts into multi-value. Then, the multi-valued image signal converted into the multi-valued image is reduced or enlarged by the reduction / enlargement circuit 2, and the reduced or enlarged multi-valued image signal is subjected to an error diffusion method or a dither method or the like. The tone expression binarization circuit 3 performs halftone processing, converts it into a binary value, and outputs it. As a result, black crushing and white crushing are less likely to occur, and a good binary image can be obtained.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、2値画像を拡大および
縮小する機能を有するイメージスキャナ、ファクシミリ
およびディジタルコピー等に用いて好適な2値画像拡大
縮小装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image enlarging / reducing apparatus suitable for use in an image scanner, a facsimile, a digital copy, etc., having a function of enlarging and reducing a binary image.

【0002】[0002]

【従来の技術】従来より、上述したイメージスキャナ、
ファクシミリおよびディジタルコピー等のディジタル画
像処理を行う機器は画像の拡大および縮小を行う装置を
有している。この従来の2値画像拡大縮小装置は、同じ
データを数回(例えば2回)使用することで画像拡大
し、データを間引くことで画像縮小するようにしてい
る。例えば画像を1/2に縮小する場合、画像データの
奇数行と奇数列を抽出する。一方、従来の2値画像にお
ける中間調は周知の誤差拡散法やディザ法等のドット密
度による階調で表現するようにしている。
2. Description of the Related Art Conventionally, the above-mentioned image scanner,
Equipment for digital image processing such as facsimile and digital copying has a device for enlarging and reducing an image. This conventional binary image enlarging / reducing device enlarges an image by using the same data several times (for example, twice), and reduces the image by thinning out the data. For example, when the image is reduced to 1/2, odd rows and columns of the image data are extracted. On the other hand, the halftone in the conventional binary image is represented by the gradation according to the dot density such as the well-known error diffusion method or the dither method.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述した従
来の2値画像拡大縮小装置にあっては、ドット密度によ
る階調で中間調を表現するようにしているが、2値画像
を拡大および縮小すると、ドット密度が変ってしまい、
黒潰れや白潰れが生じ不明瞭な2値画像になるという問
題点があった。
By the way, in the above-described conventional binary image enlarging / reducing device, the halftone is expressed by the gradation according to the dot density, but the binary image is enlarged and reduced. Then, the dot density changes,
There is a problem that an unclear binary image occurs due to black crushing and white crushing.

【0004】例えば、図7(a)のように8×8ドット
のマトリクスで表現される斜線の画像((0,7)、(1,6)、
(2,5)、(3,4)、(4,3)、(5,2)、(6,1)、(7,0)の各々が
「1」で、残りが「0」で構成される画像)の奇数行と
奇数列を抽出して1/2に縮小すると、同図(b)に示
すように全て「0」の4×4ドットのマトリクスで構成
された画像になる。この図(b)に示すように、縮小す
ることによって意味の無い2値画像になってしまう。
For example, as shown in FIG. 7 (a), diagonally shaded images ((0,7), (1,6),
Each of (2,5), (3,4), (4,3), (5,2), (6,1), (7,0) is "1" and the rest is "0" When the odd rows and the odd columns of the (images to be displayed) are extracted and reduced to 1/2, an image is formed by a matrix of 4 × 4 dots of “0” as shown in FIG. As shown in this figure (b), it becomes a meaningless binary image by reducing.

【0005】そこで本発明は、2値画像を拡大および縮
小しても黒潰れや白潰れが起こり難く、これによって良
好な2値画像が得られる2値画像拡大縮小装置を提供す
ることを目的としている。
Therefore, an object of the present invention is to provide a binary image enlarging / reducing device in which black crushing and white crushing are unlikely to occur even when a binary image is enlarged or reduced, and thereby a good binary image can be obtained. There is.

【0006】[0006]

【課題を解決するための手段】上記目的達成のため、本
発明による2値画像拡大縮小装置は、2値画像を多値画
像に変換する多値変換手段と、前記多値変換手段により
多値画像に変換された多値画像信号を拡大あるいは縮小
処理する拡大縮小手段と、前記拡大縮小手段により拡大
あるいは縮小された多値画像信号を2値化する2値化手
段とを備えたことを特徴とする。
In order to achieve the above object, a binary image enlarging / reducing device according to the present invention comprises a multi-value converting means for converting a binary image into a multi-valued image, and the multi-value converting means. The image forming apparatus is characterized by comprising enlargement / reduction means for enlarging or reducing the multi-valued image signal converted into an image, and binarization means for binarizing the multi-valued image signal enlarged or reduced by the enlarging / reducing means. And

【0007】[0007]

【作用】本発明では、2値画像の拡大または縮小が行わ
れる前に、一度、多値に変換される。そして、多値に変
換された後、拡大または縮小が行われ、その後、2値に
戻される。したがって、黒潰れや白潰れ等が起こり難く
なり、良好な2値画像が得られる。
According to the present invention, the binary image is once converted into a multi-value image before being enlarged or reduced. Then, after being converted into a multi-value, it is enlarged or reduced, and then returned to a binary value. Therefore, black crushing, white crushing, etc. are less likely to occur, and a good binary image can be obtained.

【0008】[0008]

【実施例】以下、図面を参照して本発明の一実施例につ
いて説明する。図1は本発明に係る2値画像拡大縮小装
置の概略構成を示すブロック図である。この図におい
て、1は2値・多値変換回路であり、供給される2値デ
ータを多値に変換し、出力する。ここで、例として図2
に示す(a,b)点を多値変換する場合について説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a binary image scaling device according to the present invention. In this figure, reference numeral 1 is a binary / multi-value conversion circuit, which converts the supplied binary data into multi-value and outputs it. Here, as an example, FIG.
A case where the (a, b) point shown in (1) is converted into multi-value will be described.

【0009】ドット密度で中間調を表現する場合、その
点を含めて周囲の点を合わせた密度がその点の輝度と考
えられる。そこで、(a,b)点の階調を求めるのにそ
の点と周囲の3×3ドットで考えると、(a,b)点の
階調Ya,bは次式で与えられる。
When the halftone is expressed by the dot density, the density of the surrounding points including that point is considered to be the luminance at that point. Therefore, when the gradation at the point (a, b) is obtained by considering that point and surrounding 3 × 3 dots, the gradation Y a, b at the point (a, b) is given by the following equation.

【0010】 Ya,b=n0・Ya-1,b-1+n1・Ya-1,b+n2・Ya-1,b+1 +n3・Ya,b-1+n4・Ya,b+n5・Ya,b+1 +n6・Ya+1,b-1+n7・Ya+1,b+n8・Ya+1,b+1 …(1) 但し、n0、n1、…、n8は経験上得られる係数であ
る。
Y a, b = n 0 · Y a-1, b-1 + n 1 · Y a-1, b + n 2 · Y a-1, b + 1 + n 3 · Y a, b-1 + n 4・ Y a, b + n 5・ Y a, b + 1 + n 6・ Y a + 1, b-1 + n 7・ Y a + 1, b + n 8・ Y a + 1, b + 1 (1) , N 0 , n 1 , ..., N 8 are coefficients obtained empirically.

【0011】このようにして(a,b)点以外の各点に
ついて同様の計算を行うことにより、多値化することが
できる。なお、3×3ドットのマトリクスに限定される
ことなく、例えば4×3ドットや4×4ドット等でも良
い。
In this way, by performing similar calculations for each point other than the point (a, b), it is possible to multivalue. The matrix is not limited to 3 × 3 dots, and may be, for example, 4 × 3 dots or 4 × 4 dots.

【0012】図1に戻り、2は縮小・拡大回路であり、
上記2値・多値変換回路1より出力される多値データを
入力し、データ数の変換を行い、出力する。3は中間調
表現式2値化回路であり、周知の誤差拡散法等による中
間調処理を行い、2値に変換して出力する。
Returning to FIG. 1, 2 is a reduction / enlargement circuit,
The multi-valued data output from the binary / multi-valued conversion circuit 1 is input, the number of data is converted and output. Reference numeral 3 denotes a halftone expression type binarization circuit, which performs halftone processing by a well-known error diffusion method or the like, converts it into a binary value, and outputs it.

【0013】上記2値・多値変換回路1は多値変換手段
に対応し、上記縮小・拡大回路2は拡大縮小手段に対応
する。また、上記中間調表現式2値化回路3は2値化手
段に対応する。
The binary / multivalue conversion circuit 1 corresponds to multivalue conversion means, and the reduction / enlargement circuit 2 corresponds to enlargement / reduction means. Further, the halftone expression type binarizing circuit 3 corresponds to a binarizing means.

【0014】次に、図3を参照して一連の処理内容につ
いて説明する。この説明において、2値・多値変換回路
1には図3(a)に示す8×8ドットのマトリクスで表
現される斜線の2値画像が供給されるものとする。ま
ず、上記斜線の2値画像の2値データが2値・多値変換
回路1に供給されると、同回路1で図3(b)に示す上
記(1)式に基づく3×3ドットのマトリクスで表現さ
れる多値変換テーブルを通して多値に変換される。図3
(c)に示す8×8ドットのマトリクスは多値変換され
た結果である。
Next, a series of processing contents will be described with reference to FIG. In this description, it is assumed that the binary / multi-value conversion circuit 1 is supplied with a shaded binary image represented by a matrix of 8 × 8 dots shown in FIG. First, when the binary data of the shaded binary image is supplied to the binary / multi-value conversion circuit 1, the 3 × 3 dots based on the equation (1) shown in FIG. It is converted into multi-value through a multi-value conversion table represented by a matrix. Figure 3
The 8 × 8 dot matrix shown in (c) is the result of multi-value conversion.

【0015】2値・多値変換回路1より多値変換された
結果が出力されると、縮小・拡大回路2に入力され、同
回路2で奇数行と奇数列が抽出されて1/2に縮小され
る。図3(d)に示す4×4ドットのマトリクスは縮小
された結果である。この縮小された結果が中間調表現式
2値化回路3に入力され、同回路3で誤差拡散処理が行
われ、2値に変換される。図3(e)は2値変換された
4×4ドットのマトリクスを示す。この図(e)からわ
かるように、図3(a)の斜線の画像を略1/2に縮小
した画像が得られる。
When the result of multi-value conversion is output from the binary / multi-value conversion circuit 1, it is input to the reduction / enlargement circuit 2, and odd-numbered rows and odd-numbered columns are extracted by the same circuit 2 to be halved. It is reduced. The matrix of 4 × 4 dots shown in FIG. 3D is the result of reduction. The reduced result is input to the halftone expression binarization circuit 3, and the circuit 3 performs error diffusion processing to convert it to binary. FIG. 3E shows a matrix of 4 × 4 dots which has been binary-converted. As can be seen from FIG. 3E, an image obtained by reducing the hatched image in FIG.

【0016】このように、2値・多値変換した後、拡大
・縮小し、そして、2値化する。この処理により2値画
像を拡大・縮小しても黒潰れ、白潰れが起こり難くな
り、良好な2値画像を得ることができる。したがって、
イメージスキャナ、ファクシミリおよびディジタルコピ
ー等のディジタル画像処理機器における画質向上を図る
ことができる。
In this way, after the binary / multi-value conversion, the image is enlarged / reduced and then binarized. By this processing, black crushing and white crushing hardly occur even if the binary image is enlarged or reduced, and a good binary image can be obtained. Therefore,
It is possible to improve image quality in digital image processing devices such as image scanners, facsimiles, and digital copies.

【0017】なお、上記実施例では、2値・多値変換、
拡大・縮小および2値化処理をハード的に行うようにし
たが、マイクロコンピュータを使用してソフト的に処理
することも可能である。以下、ソフト的に処理する場合
の一例を図4に示すフローチャートを参照しながら説明
する。
In the above embodiment, binary / multivalue conversion,
Although the enlargement / reduction and the binarization processing are performed by hardware, it is also possible to perform the processing by software using a microcomputer. Hereinafter, an example of the case of processing by software will be described with reference to the flowchart shown in FIG.

【0018】まず、ステップS1で2値画像データの読
み込みを行う。次いで、ステップS2で読み込んだ2値
画像データを多値化する。すなわち、多値化する各点に
ついて隣接8方向の各点との2値データの和をとる。こ
れは次式で与えられる。
First, in step S1, binary image data is read. Next, the binary image data read in step S2 is multivalued. That is, for each multivalued point, the sum of the binary data with each point in the adjacent eight directions is calculated. This is given by

【0019】 但し、bij:位置(i,j)での多値化データ aij:位置(i,j)での2値化データ wkl:位置(k,l)での多値化の際の重みの値[0019] However, b ij : multi-valued data at the position (i, j) a ij : binarized data at the position (i, j) w kl : weight for multi-valued conversion at the position (k, l) The value of the

【0020】多値化処理を終了した後、拡大・縮小処理
に移る。まず、ステップS3でy方向に1/α倍縮小ま
たは拡大される。これは次式で与えられる。 y´n=[y´n-1+α] …(3) 次いで、ステップS4でy´n行の画像データの読み込
みを行う。この読み込みを行った後、ステップS5でx
方向に1/α倍縮小または拡大される。これは次式で与
えられる。 x´n=[x´n-1+α] …(4)
After the multi-value conversion process is completed, the process proceeds to the enlargement / reduction process. First, in step S3, the image is reduced or expanded by 1 / α times in the y direction. This is given by y ′ n = [y ′ n−1 + α] (3) Next, in step S4, the image data of y ′ n rows is read. After performing this reading, x in step S5
Direction is reduced or expanded by 1 / α times. This is given by x'n = [x'n-1 + α] ... (4)

【0021】次いで、ステップS6でx´n行の多値化
画像データの読み出しを行う。そして、ステップS7で
x方向の拡大・縮小の終了を判定し、終了しない場合は
ステップS5に戻り、終了する場合はステップS8に進
み、y方向の拡大・縮小の終了を判定する。y方向の拡
大・縮小を終了しない場合はステップS4に戻り、終了
する場合はステップS9に進む。
[0021] Next, reading of multilevel image data of x'n rows in step S6. Then, in step S7, the end of the enlargement / reduction in the x direction is determined. If not completed, the process returns to step S5. When the enlargement / reduction in the y direction is not completed, the process returns to step S4, and when it is completed, the process proceeds to step S9.

【0022】ステップS9では、誤差拡散法による2値
化が行われる。そして、2値化処理を終了した後、拡大
または縮小した画像を表示する。そして、必要あれば保
存する。
In step S9, binarization is performed by the error diffusion method. After the binarization process is completed, the enlarged or reduced image is displayed. Then save it if necessary.

【0023】次に、図5は誤差拡散法による2値化処理
を示すフローチャートである。まず、ステップS20で
データの最大値および最小値の検出を行う。次いで、ス
テップS21でAGC(自動利得制御)値の決定を行
い、次いで、ステップS22で中間調画素データの読み
込みを行う。このデータの読み込み後、ステップS23
に進み、読み込んだ中間調画素データを2値化する。こ
の場合、中間値を閾値と比較して2値変換する。次い
で、ステップS24で中間値(元の値)から2値×a
(出力値)を引き、誤差を求める。この場合、“a”は
中間調画素データの取り得る最大値のことであり、例え
ば4ビットの場合は0〜7の“7”が最大値になる。
Next, FIG. 5 is a flowchart showing the binarization processing by the error diffusion method. First, in step S20, the maximum value and the minimum value of data are detected. Next, in step S21, an AGC (automatic gain control) value is determined, and then in step S22, halftone pixel data is read. After reading this data, step S23
Then, the read halftone pixel data is binarized. In this case, the intermediate value is compared with the threshold value and binary conversion is performed. Next, in step S24, binary value × a from the intermediate value (original value)
(Output value) is subtracted to obtain the error. In this case, “a” is the maximum value that the halftone pixel data can take. For example, in the case of 4 bits, “7” of 0 to 7 is the maximum value.

【0024】次いで、誤差拡散フィルタによる誤差拡散
を行う。図6に誤差拡散フィルタの一例を示す。この誤
差拡散フィルタは、「●」部の誤差を隣接場所に数値
(正確にはこれらの数値を1/16した値)で示す割合
で拡散させるものであり、言い換えれば「●」部の誤差
を周囲に振り分けるものである。この誤差拡散処理を終
了した後、ステップS26でデータの読み込みを行う。
そして、誤差収集後、ステップS23に戻り、ステップ
S23〜27を繰り返す。
Then, error diffusion is performed by the error diffusion filter. FIG. 6 shows an example of the error diffusion filter. This error diffusion filter diffuses the error in the "●" part to adjacent places at a rate indicated by a numerical value (correctly, a value obtained by dividing these numerical values by 1/16). In other words, the error in the "●" part is diffused. It is to distribute to the surroundings. After this error diffusion processing is completed, data is read in step S26.
After the error is collected, the process returns to step S23 and steps S23 to S27 are repeated.

【0025】[0025]

【発明の効果】本発明によれば、2値・多値変換をした
後、縮小・拡大し、その後、2値化するようにしたの
で、2値画像を縮小・拡大しても黒つぶれ、白つぶれが
起こり難くなり、良好な2値画像が得られるという効果
が得られる。
According to the present invention, after the binary / multi-value conversion, the image is reduced / enlarged and then binarized. It is possible to obtain the effect that white crushing is less likely to occur and a good binary image is obtained.

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

【図1】本発明に係る2値画像拡大縮小装置の概略構成
を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a binary image scaling device according to the present invention.

【図2】同実施例の2値・多値変換の原理を説明するた
めの図である。
FIG. 2 is a diagram for explaining the principle of binary / multivalue conversion of the same embodiment.

【図3】同実施例の動作を説明するための図である。FIG. 3 is a diagram for explaining the operation of the embodiment.

【図4】同実施例の動作を説明するためのフローチャー
トである。
FIG. 4 is a flowchart for explaining the operation of the embodiment.

【図5】同実施例の動作を説明するためのフローチャー
トである。
FIG. 5 is a flowchart for explaining the operation of the embodiment.

【図6】同実施例の動作を説明するための図である。FIG. 6 is a diagram for explaining the operation of the embodiment.

【図7】従来の2値画像拡大縮小における問題点を説明
するための図である。
FIG. 7 is a diagram for explaining a problem in conventional binary image scaling.

【符号の説明】 1 2値・多値変換回路(多値変換手段) 2 縮小・拡大回路(拡大縮小手段) 3 中間調表現式2値化回路(2値化手段)[Explanation of reference numerals] 1 binary / multi-value conversion circuit (multi-value conversion means) 2 reduction / enlargement circuit (enlargement / reduction means) 3 halftone expression binarization circuit (binarization means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2値画像を多値画像に変換する多値変換
手段と、 前記多値変換手段により多値画像に変換された多値画像
信号を拡大あるいは縮小処理する拡大縮小手段と、 前記拡大縮小手段により拡大あるいは縮小された多値画
像信号を2値化する2値化手段と、 を備えたことを特徴とする2値画像拡大縮小装置。
1. A multi-value converting means for converting a binary image into a multi-valued image, an enlarging / reducing means for enlarging or reducing the multi-valued image signal converted into the multi-valued image by the multi-valued converting means, A binary image enlarging / reducing device comprising: a binarizing unit that binarizes a multi-valued image signal that has been enlarged or reduced by the enlarging / reducing unit.
JP4360152A 1992-12-29 1992-12-29 Binary picture magnification/reduction device Pending JPH06205201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4360152A JPH06205201A (en) 1992-12-29 1992-12-29 Binary picture magnification/reduction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4360152A JPH06205201A (en) 1992-12-29 1992-12-29 Binary picture magnification/reduction device

Publications (1)

Publication Number Publication Date
JPH06205201A true JPH06205201A (en) 1994-07-22

Family

ID=18468133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4360152A Pending JPH06205201A (en) 1992-12-29 1992-12-29 Binary picture magnification/reduction device

Country Status (1)

Country Link
JP (1) JPH06205201A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6621588B1 (en) 1996-03-19 2003-09-16 Canon Kabushiki Kaisha Output control method and apparatus, and output system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6621588B1 (en) 1996-03-19 2003-09-16 Canon Kabushiki Kaisha Output control method and apparatus, and output system

Similar Documents

Publication Publication Date Title
JP3585703B2 (en) Image processing device
JPH04286465A (en) Picture processor
JP2756371B2 (en) Image processing device
JPH06205201A (en) Binary picture magnification/reduction device
JP3117331B2 (en) Image data processing device
JP3212339B2 (en) Image magnification device
JP2900907B2 (en) Image processing device
JPH08116454A (en) Image processing unit
JPS60136476A (en) Picture processor
JPH09200499A (en) Image processor
JPH04270561A (en) Picture processor
JPH07212573A (en) Resolution conversion device for binary picture
JP2934971B2 (en) Image binarization processing device
JP2730775B2 (en) Image processing device
JP3178077B2 (en) Binarization processing method
JPH06225122A (en) Image forming device
JPH0638038A (en) Smoothing processing method for binary image
JPH08265569A (en) Pseudo halftone processor
JPH10126613A (en) Image processor
JPH05207273A (en) Picture reduction method
JPH0474062A (en) Picture processing method
JPH0413370A (en) Picture processor
JPH0778830B2 (en) Image signal processor
JPS63191475A (en) Image data compressing device
JPH09121285A (en) Image processing device