JPH07210672A - Method and device for binarization - Google Patents

Method and device for binarization

Info

Publication number
JPH07210672A
JPH07210672A JP6001558A JP155894A JPH07210672A JP H07210672 A JPH07210672 A JP H07210672A JP 6001558 A JP6001558 A JP 6001558A JP 155894 A JP155894 A JP 155894A JP H07210672 A JPH07210672 A JP H07210672A
Authority
JP
Japan
Prior art keywords
pixel
cells
binarization
cell
matrix
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
JP6001558A
Other languages
Japanese (ja)
Inventor
Masashi Kimura
正志 木村
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP6001558A priority Critical patent/JPH07210672A/en
Publication of JPH07210672A publication Critical patent/JPH07210672A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To keep the gradation more than the conventional dither method and to speed up the processing speed more than the error diffusion method in binarizing the multilevel data picture. CONSTITUTION:A pixel division part 401 divides the picture element plane into cells. A cell selecting part 402 decides the noticed cell. Then, a total calculation part 403 obtains the total value SIGMA of the density value of the whole composed pixels of the noticed cell. Then, a subtraction part 404 divides the total value SIGMA by the gradation number such as 256. A pixel selection part 405 takes the quotient obtained by the part 404 in the order of high density value among all pixels of the noticed cell. A binarization part 406 performs binarization.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、二値化手法に関するも
ので、例えばRGB多値画像を二値のCMYKフルカラ
ー画像として出力する際の二値化手法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binarization method, for example, a binarization method when an RGB multi-valued image is output as a binary CMYK full color image.

【0002】[0002]

【従来の技術】従来、熱転写記録、インクジェット記
録、電子写真記録等の記録装置において、RGB多値画
像を二値のCMYKフルカラー画像として出力する際の
カラー画像の階調再現の二値化手法として、多くの方法
が提案されてきた。中でも、組織的ディザ法や誤差拡散
法が通常最も多く用いられていた。
2. Description of the Related Art Conventionally, as a binarizing method for tone reproduction of a color image when outputting an RGB multi-valued image as a binary CMYK full color image in a recording apparatus such as thermal transfer recording, ink jet recording, electrophotographic recording, etc. , Many methods have been proposed. Among them, the systematic dither method and the error diffusion method are usually most frequently used.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来の二値化手法には以下に示す欠点があった。例え
ば組織的ディザ法は装置構成が簡単で複雑な演算を必要
としないために処理速度は速いが、階調性が保たれにく
く、また、誤差拡散法では階調性は保たれるが、複雑な
装置構成及び演算を必要とするため、処理速度が遅い。
However, the above-mentioned conventional binarization method has the following drawbacks. For example, the systematic dither method has a simple device configuration and does not require complicated calculations, and thus has a high processing speed, but it is difficult to maintain gradation, and the error diffusion method maintains gradation, but it is complicated. Since it requires various device configurations and calculations, the processing speed is slow.

【0004】[0004]

【課題を解決するための手段】本発明は上述した課題を
解決することを目的としてなされたものであり、上述し
た課題を解決するための一手段として、以下の構成を備
える。即ち、階調表現の多値データを二値データに変換
する二値化装置であって、前記多値データ画像の画素平
面を所定のマトリクスのセルに分割する画素分割手段
と、前記画素分割手段による分割で得られたセルのうち
処理を行うセルを選択するセル選択手段と、前記セル選
択手段により選択されたセルを構成する全画素の濃度値
の総和を求める総和算出手段と、前記総和算出手段によ
り算出された総和を前記多値データの階調数で割る除算
手段と、前記セル選択手段により選択されたセルを構成
する全画素から前記除算手段により得られた商と同数の
画素を濃度値の大きな順に選択する画素選択手段とを有
し、前記画素選択手段により選択された画素を二値化の
一方とすることを特徴とする。
The present invention has been made for the purpose of solving the above-mentioned problems, and has the following structure as one means for solving the above-mentioned problems. That is, a binarization device for converting multivalued data of gradation expression into binary data, comprising a pixel dividing means for dividing a pixel plane of the multivalued data image into cells of a predetermined matrix, and the pixel dividing means. Cell selecting means for selecting a cell to be processed among cells obtained by the division by, a total sum calculating means for obtaining a total sum of density values of all pixels forming the cell selected by the cell selecting means, and the total sum calculation Dividing means for dividing the total sum calculated by the means by the number of gradations of the multi-valued data, and density of the same number of pixels as the quotient obtained by the dividing means from all the pixels forming the cell selected by the cell selecting means It has a pixel selection means for selecting in descending order of the value, and the pixel selected by the pixel selection means is one of the binarization.

【0005】例えば、前記画素分割手段は前記多値デー
タ画像の画素平面を8×8のマトリクスのセルに分割
し、分割できない画素群が存在した場合8×n(0<n
<8,nは整数)のマトリクスに分割し、分割できない
画素群が存在した場合m×8(0<m<8,mは整数)
のマトリクスに分割し、分割できない画素群が存在した
場合m×nのマトリクスに分割することを特徴とする。
For example, the pixel dividing means divides the pixel plane of the multi-valued data image into cells of an 8 × 8 matrix, and 8 × n (0 <n
<8, n is an integer) and there is a pixel group that cannot be divided m × 8 (0 <m <8, m is an integer)
It is characterized in that it is divided into an m × n matrix when there is a pixel group that cannot be divided.

【0006】[0006]

【作用】以上の構成において、多値データ画像の二値化
処理において、従来のディザ法よりも階調性を保つこと
ができ、誤差拡散法よりも処理速度を上げることが可能
となるという特有の作用効果がある。
With the above construction, in the binarization processing of a multi-valued data image, it is possible to maintain the gradation property more than the conventional dither method, and to increase the processing speed more than the error diffusion method. Has the effect of.

【0007】[0007]

【実施例】以下、図面を参照して本発明に係る一実施例
を詳細に説明する。図1は本実施例のレーザビームプリ
ンタ(LBP)100の内部構造を示す断面図で、この
LBP100は不図示のデータ源(ホストコンピュータ
等)から文字パターンの登録や定型書式(フォームデー
タ)等の登録が行えるように構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described in detail below with reference to the drawings. FIG. 1 is a cross-sectional view showing the internal structure of a laser beam printer (LBP) 100 according to the present embodiment. This LBP 100 is used for registering character patterns from a data source (host computer, etc.) (not shown) and for writing fixed form (form data). It is configured to allow registration.

【0008】図1において、100はLBP本体を示
し、外部に接続されているホストコンピュータ等から供
給される文字情報(文字コード)やフォーム情報或いは
マクロ命令等を入力して記憶するとともに、それらの情
報に従って対応する文字パターンやフォームパターン等
を作成し、記録媒体である記録紙上に像を形成する。3
00は操作のための各種スイッチ及びLED表示器等が
配されている操作パネル、101はLBP100全体の
制御及びホストコンピュータから供給される文字情報等
を解析するプリンタ制御ユニットである。このプリンタ
制御ユニット101は主に文字情報を対応する文字パタ
ーンのビデオ信号に変換してレーザドライバ102に出
力する。
In FIG. 1, reference numeral 100 denotes an LBP main body, which inputs and stores character information (character code) supplied from an externally connected host computer or the like, form information, macro commands, and the like. A corresponding character pattern, form pattern, or the like is created according to the information, and an image is formed on a recording paper, which is a recording medium. Three
Reference numeral 00 is an operation panel on which various switches for operation and LED displays are arranged, and 101 is a printer control unit for controlling the entire LBP 100 and analyzing character information and the like supplied from the host computer. The printer control unit 101 mainly converts character information into a video signal of a corresponding character pattern and outputs it to the laser driver 102.

【0009】レーザドライバ102は半導体レーザ10
3を駆動するための回路であり、入力されたビデオ信号
に応じて半導体レーザをオン・オフ切替している。レー
ザ光104は回転多面鏡105で左右方向に振られて静
電ドラム106上を走査する。これにより、静電ドラム
106上には文字パターンの静電潜像が形成される。こ
の潜像は静電ドラム106の周囲の現像ユニット107
により現像された後、記録紙に転写される。この記録紙
にはカットシートを用い、カセット記録紙はLBP10
0に装着した用紙カセットに収納され、給紙ローラ10
9及び搬送ローラ110と111とにより装置内に取り
込まれて、静電ドラム106に供給される。
The laser driver 102 is a semiconductor laser 10.
3 is a circuit for driving the semiconductor laser 3, and switches the semiconductor laser on and off in accordance with the input video signal. The laser light 104 is swung in the left-right direction by the rotary polygon mirror 105 to scan the electrostatic drum 106. As a result, an electrostatic latent image having a character pattern is formed on the electrostatic drum 106. The latent image is formed on the developing unit 107 around the electrostatic drum 106.
And then transferred to a recording paper. A cut sheet is used for this recording paper, and the LBP10 cassette recording paper is used.
The paper feed roller 10
It is taken into the apparatus by the 9 and the conveyance rollers 110 and 111 and is supplied to the electrostatic drum 106.

【0010】本実施例においては、パーソナルコンピュ
ータなどの情報処理システムにおけるカラーモニタ上の
RGB多値データ画像を、上述したLBP100のプリ
ンタ制御ユニット101において対数変換等の公知の方
法でCMYKの多値データ画像に変換した後の、シアン
画素平面を例として説明を行う。尚、RGB各色の多値
データは256階調で表現されるものとする。
In this embodiment, an RGB multi-valued data image on a color monitor in an information processing system such as a personal computer is converted into CMYK multi-valued data by a known method such as logarithmic conversion in the printer control unit 101 of the LBP 100 described above. The cyan pixel plane after conversion into an image will be described as an example. Note that multi-valued data of each color of RGB is represented by 256 gradations.

【0011】図2に、本実施例として説明を行うシアン
画素平面を示す。図2のシアン画素平面は、各構成画素
を8×8のマトリクスに分割されるが、シアン画素平面
上において主走査方向に剰余画素数n(0<n<8,n
は整数)が、また、副走査方向に剰余画素数m(0<m
<8,mは整数)が発生する。従って、図2のシアン画
素平面において、斜線で示した8×8のセル1、8×n
のセル2、m×8のセル3、m×nのセル4の4パター
ンのマトリクスのセルが生成される。
FIG. 2 shows a cyan pixel plane described as the present embodiment. In the cyan pixel plane of FIG. 2, each constituent pixel is divided into an 8 × 8 matrix, and the number of surplus pixels n (0 <n <8, n in the main scanning direction on the cyan pixel plane.
Is an integer), and the number of surplus pixels m (0 <m
<8, m is an integer) occurs. Therefore, in the cyan pixel plane of FIG. 2, 8 × 8 cells 1 and 8 × n, which are hatched, are shown.
Cells of four patterns of cells 2, cells 3 of m × 8, and cells 4 of m × n are generated.

【0012】本実施例においては、m=n=4として、
以下説明を行う。上述した図2に示す1〜4の4パター
ンのマトリクスのセルの、各構成画素の多値データの例
を図3に示す。図3の(a)は8×8のセルを構成する
多値データ、即ち各画素の濃度値の例を示し、図3の
(b)は8×4のセルを構成する多値データ、即ち各画
素の濃度値の例を示し、図3の(c)は4×8のセルを
構成する多値データ、即ち各画素の濃度値の例を示し、
図3の(d)は4×4のセルを構成する多値データ、即
ち各画素の濃度値の例を示す。従って、図2に示すセル
1が図3の(a)に、セル2が図3の(b)に、セル3
が図3の(c)に、セル4が図3の(d)に、それぞれ
対応している。
In this embodiment, m = n = 4,
The description will be given below. FIG. 3 shows an example of multi-valued data of each constituent pixel in the cells of the four-pattern matrix shown in FIG. 2 described above. 3A shows multi-valued data forming an 8 × 8 cell, that is, an example of the density value of each pixel, and FIG. 3B shows multi-valued data forming an 8 × 4 cell, that is, 3C shows an example of the density value of each pixel, FIG. 3C shows an example of the density value of each pixel, that is, the multi-valued data forming a 4 × 8 cell,
FIG. 3D shows an example of multivalued data forming a 4 × 4 cell, that is, the density value of each pixel. Therefore, the cell 1 shown in FIG. 2 is shown in FIG. 3A, the cell 2 is shown in FIG.
Corresponds to (c) of FIG. 3 and cell 4 corresponds to (d) of FIG.

【0013】以上のようなマトリクスに分割されるシア
ン画素平面において、多値データを二値データ化する方
法について、図4のブロック図を参照して説明する。図
4は、本実施例のLBP100のプリンタ制御ユニット
101内で二値化を行う二値化部のブロック構成図であ
る。図4において401は画素分割部であり、入力され
る画素平面データを例えば8×8のセルに分割し、メモ
リ407に格納する。402はセル選択部であり、画素
分割部401で分割されてメモリ407に格納されてい
る各セルのうち、注目セルを選択する。403は総和算
出部であり、セル選択部402によって選択された注目
セルを構成する画素の濃度値の総和を算出する。404
は徐算部であり、403で得られた濃度値の総和を例え
ば256等の階調数で割り、その商を求める。405は
画素選択部であり、注目セル内で二値化を行う画素を、
徐算部404で得られた商の数だけ選択する。406は
二値化部であり、画素選択部405で選択された注目セ
ル内の各画素を二値化の一方として、変換する。
A method of converting multivalued data into binary data on the cyan pixel plane divided into the above matrix will be described with reference to the block diagram of FIG. FIG. 4 is a block configuration diagram of a binarization unit that performs binarization in the printer control unit 101 of the LBP 100 of this embodiment. In FIG. 4, reference numeral 401 denotes a pixel division unit that divides input pixel plane data into, for example, 8 × 8 cells and stores the cells in the memory 407. A cell selection unit 402 selects a cell of interest from among the cells divided by the pixel division unit 401 and stored in the memory 407. Reference numeral 403 denotes a total sum calculation unit that calculates the total sum of the density values of the pixels forming the cell of interest selected by the cell selection unit 402. 404
Is a division unit, and the sum of the density values obtained in 403 is divided by the number of gradations such as 256 to obtain the quotient. Reference numeral 405 denotes a pixel selection unit, which selects a pixel to be binarized in the cell of interest.
The number of quotients obtained by the division unit 404 is selected. A binarization unit 406 converts each pixel in the cell of interest selected by the pixel selection unit 405 as one of binarization.

【0014】上述したように図4に示すような構成によ
り、メモリ407内に格納された画素平面は、画素分割
部401で分割された各セル毎に二値化される。以上説
明したような本実施例における二値化処理を、図5のフ
ローチャートを参照して、更に詳細に説明する。図5
は、本実施例における二値化処理の流れを表すフローチ
ャートである。
As described above, with the configuration shown in FIG. 4, the pixel plane stored in the memory 407 is binarized for each cell divided by the pixel division unit 401. The binarization process in this embodiment as described above will be described in more detail with reference to the flowchart of FIG. Figure 5
3 is a flowchart showing the flow of binarization processing in this embodiment.

【0015】図5のステップS301において、図4の
画素分割部401では図2に示すシアン画素平面を8×
8のマトリクスへの分割処理を行い、図2の201に示
す8×8のマトリクスのセルを作成し、メモリ407へ
格納する。そしてステップS302において、全ての画
素に対して分割処理が終了すればステップS308に進
むが、8×8に分割できない未処理の画素群が残った場
合には、ステップS303に進む。
In step S301 of FIG. 5, the pixel dividing unit 401 of FIG. 4 sets the cyan pixel plane shown in FIG.
8 is divided into 8 matrices, cells of 8 × 8 matrix 201 shown in FIG. 2 are created, and stored in the memory 407. Then, in step S302, if the division process is completed for all pixels, the process proceeds to step S308, but if an unprocessed pixel group that cannot be divided into 8 × 8 remains, the process proceeds to step S303.

【0016】ステップS303では未処理の画素群に対
して画素分割部401は、8×n,即ち本実施例では8
×4のマトリクスへの分割処理を行い、図2の202に
示す8×4のマトリクスのセルを作成し、メモリ407
に格納する。そして、ステップS304で分割処理が全
て終了したか否かを判定する。ステップS304におい
て、分割終了と判定されればステップS308に進む
が、8×4に分割できない画素群が残った場合、ステッ
プS305に進む。
In step S303, the pixel division unit 401 divides the unprocessed pixel group by 8 × n, that is, 8 in this embodiment.
The division processing into the × 4 matrix is performed to create the cells of the 8 × 4 matrix indicated by 202 in FIG.
To store. Then, in step S304, it is determined whether or not all the division processes have been completed. If it is determined in step S304 that the division is completed, the process proceeds to step S308, but if a pixel group that cannot be divided into 8 × 4 remains, the process proceeds to step S305.

【0017】ステップS305では未処理の画素群に対
して、画素分割部401はm×8,即ち本実施例では4
×8のマトリクスへの分割処理を行い、図2の203に
示す4×8のマトリクスのセルを作成し、メモリ407
へ格納する。ステップS306で全ての画素に対して分
割処理が終了したか否かを判定する。ステップS306
において全ての画素に対して分割処理が終了したと判定
されれば処理はステップS308に進むが、未処理の画
素群が残った場合、ステップS307に進み、画素分割
部401は未処理の画素群で一つのm×n,即ち本実施
例においては図2の204に示す4×4のマトリクスの
セルを作成し、メモリ407に格納する。そして処理は
ステップS308に進む。
In step S305, for the unprocessed pixel group, the pixel division unit 401 has m × 8, that is, 4 pixels in this embodiment.
The division processing into the × 8 matrix is performed to create the cells of the 4 × 8 matrix indicated by 203 in FIG.
Store to. In step S306, it is determined whether the division process has been completed for all pixels. Step S306
If it is determined that the division processing has been completed for all the pixels in step S308, the process proceeds to step S308. However, if an unprocessed pixel group remains, the process proceeds to step S307, and the pixel division unit 401 determines the unprocessed pixel group. Then, one m × n, that is, a cell of a 4 × 4 matrix shown by 204 in FIG. 2 in this embodiment is created and stored in the memory 407. Then, the process proceeds to step S308.

【0018】以上のようにしてステップS301〜ステ
ップS307の処理により、図2に示すようにメモリ4
07にはシアン画素平面が各セルに分割されて格納され
る。ステップS308以降の処理については、図3を参
照して説明を行う。本実施例においては、ステップS3
07までにおいて分割した各セルに対して、それぞれ二
値化していく。まずステップS308において、図2に
示すセル選択部402は二値化処理を行うセルとして、
メモリ407内のセルのうち、注目セルを決定する。本
実施例において、まず図2に示すセル1を注目画素とし
て選択する。この場合のセルの処理順序は特に限定され
るものではなく、あらゆる処理順序が可能であるため、
処理装置のセルの読み込み、書き込み方式に従って、任
意に決定できる。
By the processing in steps S301 to S307 as described above, the memory 4 as shown in FIG.
In 07, the cyan pixel plane is divided and stored in each cell. The processing after step S308 will be described with reference to FIG. In this embodiment, step S3
Each cell divided up to 07 is binarized. First, in step S308, the cell selection unit 402 shown in FIG.
Of the cells in the memory 407, the cell of interest is determined. In this embodiment, first, the cell 1 shown in FIG. 2 is selected as the pixel of interest. The processing order of cells in this case is not particularly limited, and any processing order is possible,
It can be arbitrarily determined according to the reading / writing method of the cell of the processing device.

【0019】次にステップS309において、総和算出
部403は注目セルの全ての多値データ、即ち、全ての
構成画素の濃度値の総和Σを求める。本実施例の場合
は、図2に示すセル1、即ち図3の(a)に示されるセ
ルについて、その構成画素の濃度値の総和Σを求める。
続いて、処理はステップS310に進み、徐算部404
は前段のステップS309で得られた総和Σを、階調数
で割る。本実施例の場合256階調であるため、濃度値
の総和Σを256で割る。
Next, in step S309, the total sum calculation unit 403 obtains all multivalued data of the target cell, that is, the total sum Σ of the density values of all the constituent pixels. In the case of the present embodiment, the sum Σ of the density values of the constituent pixels of the cell 1 shown in FIG. 2, that is, the cell shown in FIG.
Then, a process progresses to step S310 and the division part 404.
Divides the total sum Σ obtained in the previous step S309 by the number of gradations. In the case of this embodiment, since there are 256 gradations, the sum Σ of density values is divided by 256.

【0020】そしてステップS311において、注目セ
ルの全ての構成画素のうち、その濃度値が大きいものか
ら順に、ステップS310の除算により得られた商の数
分を処理画素として、画素選択部405で選択し、二値
化部406で二値化を行う。尚、濃度値の大きな画素か
ら順に選択していく方法としては、公知の種々の方法を
用いて実現できる。
In step S311, the pixel selection unit 405 selects, as processing pixels, the quotient obtained by the division in step S310, in order from the largest density value of all the constituent pixels of the target cell. Then, the binarization unit 406 performs binarization. As a method of selecting pixels in descending order of density value, various known methods can be used.

【0021】以上のステップS308からステップS3
11の動作を数式で説明すると、図3の(a)に示すセ
ル1の全構成画素の濃度値の総和Σは8252であるか
ら、総和Σを階調数256で割ると、以下のようにな
る。8252/256 = 32.2578・・・即
ち、図3の(a)に示すセル1の構成画素のうち、濃度
値の大きいものから32画素を、処理画素として選択す
る。
The above steps S308 to S3
When the operation of 11 is described by a mathematical expression, the sum Σ of the density values of all the constituent pixels of the cell 1 shown in FIG. 3A is 8252, and therefore, when the sum Σ is divided by the number of gradations 256, it is as follows. Become. 8252/256 = 32.2578 ... That is, among the constituent pixels of the cell 1 shown in FIG. 3A, 32 pixels having the largest density value are selected as the processing pixels.

【0022】図5において、最後にステップS312に
おいて、全てのセルについての処理が終了したか否かを
判定する。ステップS312において全てのセルについ
ての処理が終了したと判定されれば本実施例における二
値化処理は終了するが、未処理のセルが残っているので
あればステップS308に戻り、次に二値化処理を行う
セルを決定する。
In FIG. 5, finally, in step S312, it is determined whether the processing has been completed for all cells. If it is determined in step S312 that the processing has been completed for all cells, the binarization processing in this embodiment ends, but if there are unprocessed cells, the process returns to step S308, and then the binary processing is performed. The cell to be processed is determined.

【0023】以上説明したようにして、図2のセル1の
ような8×8のセル全てについての二値化処理が終了す
れば、次に例えば図2のセル1のような8×nのセル全
てについての二値化処理を行う。そして、次に図2のセ
ル3のようなm×8のセル全てについての二値化処理を
行い、最後に図2のセル4のm×nの二値化処理を行
い、全てのセルの二値化を終了する。
When the binarization process is completed for all 8 × 8 cells such as cell 1 in FIG. 2 as described above, then, for example, 8 × n cells such as cell 1 in FIG. Binarization processing is performed for all cells. Then, the binarization process is performed on all m × 8 cells such as the cell 3 in FIG. 2, and finally the m × n binarization process on the cell 4 in FIG. 2 is performed. Complete the binarization.

【0024】図3の(a)〜(d)の各セルを本実施例
の二値化方法を用いて処理した例を、図6の(a)〜
(d)にそれぞれ示す。例えば、図6の(a)は、図3
の(a)に示すセル1において、上述した過程に基づい
て選択された32画素を示すものであり、図中丸印を付
された画素が、選択された画素である。図6の(b)〜
(d)についても、丸印を付された画素が本実施例の二
値化方法により選択された画素である。
An example in which the cells of FIGS. 3A to 3D are processed by the binarization method of this embodiment is shown in FIGS.
Each is shown in (d). For example, (a) of FIG.
In the cell 1 shown in (a) of FIG. 3, the 32 pixels selected based on the above-described process are shown, and the pixels circled in the figure are the selected pixels. FIG. 6B-
Also in (d), the pixels marked with circles are the pixels selected by the binarization method of this embodiment.

【0025】以上説明したようにして、本実施例のシア
ン画素平面において分割した全てのセルについて、二値
化処理を行う。また、マゼンタ、イエローの画素平面に
ついても、シアン画素平面と同様にして、二値化を行う
ことができる。以上説明したように本実施例によれば、
多値データ画像の二値化処理において、従来のディザ法
よりも階調性を保つことができ、誤差拡散法よりも処理
速度を上げることが可能である。
As described above, the binarization process is performed on all the cells divided in the cyan pixel plane of this embodiment. Further, with respect to the magenta and yellow pixel planes, binarization can be performed in the same manner as the cyan pixel plane. As described above, according to this embodiment,
In the binarization processing of a multi-valued data image, it is possible to maintain the gradation property as compared with the conventional dither method, and it is possible to increase the processing speed as compared with the error diffusion method.

【0026】尚、本実施例においては、画素平面を8×
8のマトリクスに分割して処理を行ったが、本発明はも
ちろんこの例に限定されるものではなく、画像処理装置
に応じて適切な分割方法を採用できる。また、本実施例
においては256階調の多値データにおける二値化処理
の例を説明したが、他の階調数でも本実施例は適用可能
である。
In the present embodiment, the pixel plane is 8 ×
Although the processing is performed by dividing the matrix into eight matrices, the present invention is not limited to this example, and an appropriate dividing method can be adopted according to the image processing apparatus. Further, although the example of the binarization processing in the multi-valued data of 256 gradations has been described in the present embodiment, the present embodiment can be applied to other gradation numbers.

【0027】また、本発明ではレーザビームプリンタに
ついての説明を行ったが、本発明はもちろんプリンタの
例に限定されるものではなく、例えば複写機やファクシ
ミリ装置等、多値画像データを二値化する必要のある装
置全てにおいて、適用可能である。尚、本発明は、複数
の機器から構成されるシステムに適用しても1つの機器
から成る装置に適用しても良い。また、本発明は、シス
テム或は装置にプログラムを供給することによって達成
される場合にも適用できることはいうまでもない。
Further, although the present invention has been described with respect to the laser beam printer, the present invention is not limited to the example of the printer as a matter of course, and binarizes multi-valued image data such as a copying machine or a facsimile machine. It is applicable to all devices that need to be installed. The present invention may be applied to a system including a plurality of devices or an apparatus including one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0028】[0028]

【発明の効果】以上説明したように本発明によれば、多
値データ画像の二値化処理において、従来のディザ法よ
りも階調性を保つことができ、誤差拡散法よりも処理速
度を上げることが可能である。
As described above, according to the present invention, in the binarization processing of a multi-valued data image, gradation can be maintained more than the conventional dither method, and the processing speed is higher than that of the error diffusion method. It is possible to raise.

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

【図1】本発明に係る一実施例におけるレーザビームプ
リンタの断面を示す図である。
FIG. 1 is a diagram showing a cross section of a laser beam printer in an embodiment according to the present invention.

【図2】本実施例における二値化前のシアン画素平面を
セルに分割した様子を示す図である。
FIG. 2 is a diagram showing a state in which a cyan pixel plane before binarization in this embodiment is divided into cells.

【図3】本実施例における二値化前のシアン画素平面の
各セルにおける濃度値の例を示す図である。
FIG. 3 is a diagram showing an example of density values in each cell of a cyan pixel plane before binarization in the present embodiment.

【図4】本実施例における二値化部の構成を示すブロッ
ク図である。
FIG. 4 is a block diagram showing a configuration of a binarization unit in this embodiment.

【図5】本実施例における二値化方法を示すフローチャ
ートである。
FIG. 5 is a flowchart showing a binarization method in this embodiment.

【図6】本実施例における各セルを二値化した例を示す
図である。
FIG. 6 is a diagram showing an example in which each cell in this embodiment is binarized.

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

401 画素分割部 402 セル選択部 403 総和算出部 404 徐算部 405 画素選択部 406 二値化部 407 メモリ 401 pixel division unit 402 cell selection unit 403 total sum calculation unit 404 division unit 405 pixel selection unit 406 binarization unit 407 memory

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/40 103 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location H04N 1/40 103 A

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 階調表現の多値データを二値データに変
換する二値化装置における二値化方法であって、 前記多値データ画像の画素平面を所定のマトリクスのセ
ルに分割する画素分割行程と、 前記画素分割行程による分割で得られたセルのうち処理
を行うセルを選択するセル選択行程と、 前記セル選択行程により選択されたセルを構成する全画
素の濃度値の総和を求める総和算出行程と、 前記総和算出行程により算出された総和を前記多値デー
タの階調数で割る除算行程と、 前記セル選択行程により選択されたセルを構成する全画
素から前記除算行程により得られた商と同数の画素を濃
度値の大きな順に選択する画素選択行程とを有し、 前記画素選択行程により選択された画素を二値化の一方
とすることを特徴とする二値化方法。
1. A binarization method in a binarization device for converting multivalued data of gradation expression into binary data, wherein a pixel for dividing a pixel plane of the multivalued data image into cells of a predetermined matrix. A division process, a cell selection process for selecting a cell to be processed among the cells obtained by the division by the pixel division process, and a sum total of density values of all pixels forming the cell selected by the cell selection process Total sum calculation step, a division step of dividing the total sum calculated by the total sum calculation step by the number of gradations of the multi-valued data, and obtained by the division step from all the pixels constituting the cells selected by the cell selection step. A pixel selection step of selecting the same number of pixels as the quotient in descending order of density value, and the pixel selected by the pixel selection step is one of the binarization methods.
【請求項2】 前記画素分割行程は前記多値データ画像
の画素平面を8×8のマトリクスのセルに分割すること
を特徴とする請求項1記載の二値化方法。
2. The binarization method according to claim 1, wherein the pixel division step divides the pixel plane of the multi-valued data image into cells of an 8 × 8 matrix.
【請求項3】 前記画素分割行程は前記多値データ画像
の画素平面においてセルに分割できない画素群が存在し
た場合8×n(0<n<8,nは整数)のマトリクスに
分割することを特徴とする請求項2記載の二値化方法。
3. The pixel dividing step is to divide into a matrix of 8 × n (0 <n <8, n is an integer) when there is a pixel group that cannot be divided into cells in the pixel plane of the multi-valued data image. The binarization method according to claim 2, which is characterized in that.
【請求項4】 前記画素分割行程は前記多値データ画像
の画素平面においてセルに分割できない画素群が存在し
た場合m×8(0<m<8,mは整数)のマトリクスに
分割することを特徴とする請求項3記載の二値化方法。
4. The pixel dividing step divides into a matrix of m × 8 (0 <m <8, m is an integer) when there is a pixel group that cannot be divided into cells in the pixel plane of the multi-valued data image. The binarization method according to claim 3, which is characterized in that
【請求項5】 前記画素分割行程は前記多値データ画像
の画素平面においてセルに分割できない画素群が存在し
た場合m×nのマトリクスに分割することを特徴とする
請求項4記載の二値化方法。
5. The binarization according to claim 4, wherein the pixel division process is divided into an m × n matrix when there is a pixel group that cannot be divided into cells in a pixel plane of the multi-valued data image. Method.
【請求項6】 階調表現の多値データを二値データに変
換する二値化装置であって、 前記多値データ画像の画素平面を所定のマトリクスのセ
ルに分割する画素分割手段と、 前記画素分割手段による分割で得られたセルのうち処理
を行うセルを選択するセル選択手段と、 前記セル選択手段により選択されたセルを構成する全画
素の濃度値の総和を求める総和算出手段と、 前記総和算出手段により算出された総和を前記多値デー
タの階調数で割る除算手段と、 前記セル選択手段により選択されたセルを構成する全画
素から前記除算手段により得られた商と同数の画素を濃
度値の大きな順に選択する画素選択手段とを有し、 前記画素選択手段により選択された画素を二値化の一方
とすることを特徴とする二値化装置。
6. A binarization device for converting multivalued data of gradation expression into binary data, comprising a pixel dividing means for dividing a pixel plane of the multivalued data image into cells of a predetermined matrix, Cell selecting means for selecting a cell to be processed among the cells obtained by the division by the pixel dividing means, and a sum total calculating means for obtaining the sum of the density values of all the pixels forming the cell selected by the cell selecting means, A division unit that divides the total sum calculated by the total sum calculation unit by the number of gradations of the multi-valued data, and a quotient equal to the quotient obtained by the division unit from all the pixels that constitute the cell selected by the cell selection unit. A binarization device comprising: a pixel selection unit that selects pixels in descending order of density value, and the pixel selected by the pixel selection unit is one of binarization.
【請求項7】 前記画素分割手段は前記多値データ画像
の画素平面を8×8のマトリクスのセルに分割すること
を特徴とする請求項6記載の二値化装置。
7. The binarization device according to claim 6, wherein the pixel dividing unit divides the pixel plane of the multi-valued data image into cells of an 8 × 8 matrix.
【請求項8】 前記画素分割手段は前記多値データ画像
の画素平面においてセルに分割できない画素群が存在し
た場合8×n(0<n<8,nは整数)のマトリクスに
分割することを特徴とする請求項7記載の二値化装置。
8. The pixel dividing means divides into a matrix of 8 × n (0 <n <8, n is an integer) when there is a pixel group that cannot be divided into cells in a pixel plane of the multi-valued data image. The binarization device according to claim 7, which is characterized in that.
【請求項9】 前記画素分割手段は前記多値データ画像
の画素平面においてセルに分割できない画素群が存在し
た場合m×8(0<m<8,mは整数)のマトリクスに
分割することを特徴とする請求項8記載の二値化装置。
9. The pixel dividing means divides into a matrix of m × 8 (0 <m <8, m is an integer) when there is a pixel group that cannot be divided into cells in the pixel plane of the multi-valued data image. 9. The binarization device according to claim 8, which is characterized in that.
【請求項10】 前記画素分割手段は前記多値データ画
像の画素平面においてセルに分割できない画素群が存在
した場合m×nのマトリクスに分割することを特徴とす
る請求項9記載の二値化装置。
10. The binarization according to claim 9, wherein the pixel dividing means divides into a matrix of m × n when there is a pixel group which cannot be divided into cells in a pixel plane of the multi-valued data image. apparatus.
JP6001558A 1994-01-12 1994-01-12 Method and device for binarization Pending JPH07210672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6001558A JPH07210672A (en) 1994-01-12 1994-01-12 Method and device for binarization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6001558A JPH07210672A (en) 1994-01-12 1994-01-12 Method and device for binarization

Publications (1)

Publication Number Publication Date
JPH07210672A true JPH07210672A (en) 1995-08-11

Family

ID=11504862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6001558A Pending JPH07210672A (en) 1994-01-12 1994-01-12 Method and device for binarization

Country Status (1)

Country Link
JP (1) JPH07210672A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005109851A1 (en) * 2004-05-06 2005-11-17 Seiko Epson Corporation Image processing device, image processing method, and program
US7474441B2 (en) 2003-01-09 2009-01-06 Seiko Epson Corporation Image processing device, method, program and recording medium recording the program
JP2021111319A (en) * 2019-12-31 2021-08-02 北京百度網訊科技有限公司 Matrix storage method, matrix access method, device, electronic apparatus and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7474441B2 (en) 2003-01-09 2009-01-06 Seiko Epson Corporation Image processing device, method, program and recording medium recording the program
WO2005109851A1 (en) * 2004-05-06 2005-11-17 Seiko Epson Corporation Image processing device, image processing method, and program
JP2021111319A (en) * 2019-12-31 2021-08-02 北京百度網訊科技有限公司 Matrix storage method, matrix access method, device, electronic apparatus and storage medium
US11635904B2 (en) 2019-12-31 2023-04-25 Kunlunxin Technology (Beijing) Company Limited Matrix storage method, matrix access method, apparatus and electronic device

Similar Documents

Publication Publication Date Title
US4651287A (en) Digital image processing algorithm for output devices with discrete halftone gray scale capability
US6130661A (en) Seamless parallel neighborhood process halftoning
US6678426B1 (en) Programmable mapping of lower resolution digital data to a higher resolution for output on a lower resolution device
JPH0725064A (en) Picture forming equipment of electrophotographic printer
US6445404B1 (en) Methods of providing lower resolution format data into a higher resolution format
JPS62220072A (en) Processing method for halftone digital color image
JPH11298716A (en) Image processor
JPH07210672A (en) Method and device for binarization
EP1241868A1 (en) Image processing apparatus
JP2621856B2 (en) Digital color image reproduction processing method and apparatus
US6356360B1 (en) Apparatus and method for rendering halftone dot structures using grey level dots
JP5678501B2 (en) Image processing apparatus and image processing method
JPH05324931A (en) Color printer and color display device
JPS61148971A (en) Image processing system
JP3353078B2 (en) Image processing apparatus and method
JP3003133B2 (en) Image outline extraction device
JPH07242027A (en) Printer
JP3314196B2 (en) Image processing apparatus and method
JPH09247438A (en) Multi-gradation printer
JP2958984B2 (en) Image processing device
JPH11331603A (en) Image processing method and image processing unit
JP3092959B2 (en) Image synthesis device
JPH11146201A (en) Correction data generating device and error processor
JP2000083168A (en) Image processor, image processing method and storage medium
JPH09312763A (en) Image processing unit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000331