JPH03219780A - Picture processing system - Google Patents

Picture processing system

Info

Publication number
JPH03219780A
JPH03219780A JP2013583A JP1358390A JPH03219780A JP H03219780 A JPH03219780 A JP H03219780A JP 2013583 A JP2013583 A JP 2013583A JP 1358390 A JP1358390 A JP 1358390A JP H03219780 A JPH03219780 A JP H03219780A
Authority
JP
Japan
Prior art keywords
data
density
pixel
binary
value
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
JP2013583A
Other languages
Japanese (ja)
Inventor
Jiyunichi Shishizuka
順一 宍塚
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 JP2013583A priority Critical patent/JPH03219780A/en
Publication of JPH03219780A publication Critical patent/JPH03219780A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To keep an edge of a picture and to obtain the picture with less unsharp or the like by outputting any of a multi-value data latched by 1st and 2nd latch means in response to the state of an inputted noticed binarized picture element data so as to form a binarizing picture. CONSTITUTION:A selector 105 selects either of registers 103 (storing density 50) and 104 (storing density 200) depending on a level ('0' or '1') of a signal line 102 being an output signal from an input section 101 and outputs the result to a binarizing section 106 as an 8-bit signal. Naturally, when the level of the signal line 102 is '0' (=OFF picture element), the register 103 is selected and when the level of the signal 102 is '1' (=ON picture element), the register 104 is selected. That is, when a picture element of density '0' is received as a binary photoelectric conversion section data from an input section 101, a picture element of density '50' is outputted and when a picture element of density '255' is received as a binary photoelectric conversion section data from the input section 101, a picture element of density '200 is outputted. A binarizing section 106 applies binarizing processing using the density conservation type error spread method to a binary picture (density is '50' or '200') subjected to density conversion processing.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は2値画像を受けて階調処理を施す画像処理方式
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing method that receives a binary image and performs gradation processing.

[従来の技術] 従来、多値画像を2値化した後に、その画像に対して画
像処理を施すということはほとんど考えられていなかっ
たが、2値画像を再び多値画像に変換して、階調変換し
た後に、2値化処理を施して2値画像を得るという手法
はある。
[Prior Art] Conventionally, it has been rarely considered to perform image processing on a multi-valued image after it has been converted into a binary image. There is a method of performing binarization processing after gradation conversion to obtain a binary image.

ここで、2値画像を多値画像に変換する一般的手法は、
以下の如(である。
Here, the general method for converting a binary image into a multivalued image is as follows:
It is as follows.

ある大きさのウィンドウを設け、2値画像を走査する。A window of a certain size is provided and a binary image is scanned.

そして、そのウィンドウ内に打たれているドツトの数を
カウントし、ウィンドウの全領域のドツト数に対する面
積率を求める。その面積率により、注目画素を多値のデ
ータを持った画素に変換する。
Then, the number of dots placed within the window is counted, and the area ratio of the total area of the window to the number of dots is determined. Depending on the area ratio, the pixel of interest is converted into a pixel with multi-value data.

例えば、ウィンドウサイズが4X4(=16)画素を持
っているものとした時で、ウィンドウ内に8個のドツト
が打たれていて、多値濃度を8ビツト(256階調)で
表す場合、注目画素は256X (8/16)=128 という濃度を持つとする。
For example, if the window size is 4 x 4 (=16) pixels, there are 8 dots in the window, and the multilevel density is represented by 8 bits (256 gradations), then It is assumed that the pixel has a density of 256×(8/16)=128.

以上の様にして、2値の画像から元の多値の画像を推定
することができる。次に画像全体の濃度を一様に高(し
たい場合、例えば、先程得られた多値濃度に一様にある
値を減じて、再び誤差拡散などの2値化処理を行えば、
結果として濃度が高(なった2値画像が得られる。尚、
ここでは、多値データの値が低い程、濃度が高い(濃い
)と定義している。
In the manner described above, the original multivalued image can be estimated from the binary image. Next, if you want to uniformly increase the density of the entire image (for example, if you want to uniformly subtract a certain value from the multilevel density obtained earlier and perform binarization processing such as error diffusion again,
As a result, a binary image with high density is obtained.
Here, it is defined that the lower the value of the multivalued data, the higher (deeper) the density.

[発明が解決しようとしている課題] しかしながら、前述の従来技術では各領域毎に平均的な
濃度を算出するになり、手法的には、平滑化フィルタを
通した画像と同じものが得られる。そのため、画像のエ
ツジ部分や画像全体がボケでしまうという問題が発生す
る。また、多値化を行うためにハード規模が太き(なっ
てしまう欠点もある。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional technology, the average density is calculated for each region, and the same method as an image obtained by passing through a smoothing filter is obtained. Therefore, a problem arises in that the edge portions of the image or the entire image become blurred. In addition, there is also the drawback that the hardware scale becomes large due to multi-value processing.

本発明はかかる従来技術に鑑みなされたものであり、簡
単な構成でもって2値画像を階調変換し、しかも階調変
換したデータに基づく2値画像形成しても良好なものと
することを可能にする画像処理方式を提供しようとする
ものである。
The present invention has been made in view of such prior art, and it is an object of the present invention to perform gradation conversion of a binary image with a simple configuration, and to form a binary image based on the gradation-converted data. The aim is to provide an image processing method that makes it possible.

[課題を解決するための手段] この課題を解決する本発明の画像処理方式は、例えば以
下に示す構成を備える。すなわち、2値画素データを入
力する入力手段と、2値画素データの最大濃度値に対応
する、少なくとも多値データとして最大濃度を示すデー
タ以下の多値データMを記憶保持する第1の保持手段と
、2値画素データの最淡濃度値に対応する、少なくとも
多値データとして最淡濃度を示すデータ以上の多値デー
タNを記憶保持する第2の保持手段と、前記入力手段で
入力された注目画素データの状態に応じて前記第1.第
2の保持手段の一方に保持された多値データを出力する
出力手段とを備える。
[Means for Solving the Problem] The image processing method of the present invention that solves this problem includes, for example, the following configuration. That is, an input means for inputting binary pixel data, and a first holding means for storing and holding multi-value data M corresponding to the maximum density value of the binary pixel data and at least less than the data indicating the maximum density as multi-value data. and a second holding means for storing and holding multi-valued data N corresponding to the lightest density value of the binary pixel data and at least equal to or greater than the data indicating the lightest density as multi-valued data; According to the state of the target pixel data, the first. and output means for outputting the multivalued data held in one of the second holding means.

[作用] かかる本発明に構成において、入力手段で入力した注目
2値画素データの状態に応じて第1、第2の保持手段で
保持された多値データのいずれかを出力手段で出力する
。そして、この出力手段で出力した多値データに基づい
て2値画像を形成させる。
[Operation] In the configuration according to the present invention, either of the multivalued data held by the first or second holding means is outputted by the outputting means depending on the state of the binary pixel data of interest inputted by the inputting means. Then, a binary image is formed based on the multivalued data outputted by this output means.

[実施例] 以下、添付図面に従って本発明に係る実施例を詳細に説
明する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は、本実施例の画像処理装置のブロック構成図で
ある。
FIG. 1 is a block diagram of the image processing apparatus of this embodiment.

2値画像データ(多値データを2値化したデータ)が外
部から本装置に取り込まれると、先ず、入力部101内
のRAMに格納される。この後、入力部101に格納さ
れた2値画像の各画素データを主走査方向に順次読み出
し、信号線102(1ビツト)上に出力する。尚、入力
部101に格納されている2値画像であるが、取り得る
値は“0”か“1”かである、“0”の画素を実際の印
字時されない画素であるので、以下では“OFF画素”
、逆に“1”の画素を“ON画素”という。また、実施
例の画像処理で再現する階調数を“256(=88ビツ
ト記)”としたとき、“OFF画素”は濃度“0”ON
画素”は濃度が“255”の2値をとる。
When binary image data (data obtained by converting multivalued data into binary data) is imported into this apparatus from the outside, it is first stored in the RAM within the input unit 101 . Thereafter, each pixel data of the binary image stored in the input section 101 is sequentially read out in the main scanning direction and output onto the signal line 102 (1 bit). Note that although this is a binary image stored in the input unit 101, the possible values are either "0" or "1".Since "0" pixels are pixels that are not printed during actual printing, they will be explained below. “OFF pixel”
, conversely, a pixel that is "1" is called an "ON pixel". Also, when the number of gradations reproduced by the image processing in the example is "256 (=88 bits)", the "OFF pixel" has a density of "0" and is ON.
"Pixel" has a binary density of "255".

レジスタ103には、濃度“0”の画素(=OFF画素
)に成る値(C,)を加えたときの濃度値が、また、レ
ジスタ104には濃度”255”の画素(=ON画素)
から成る値を減じたときの濃度値が予め格納されている
。実施例では、レジスタ103に“5o”、レジスタ1
04に“200”が格納されているものとする。
The register 103 contains the density value when adding the value (C,) that makes the pixel with density "0" (=OFF pixel), and the register 104 contains the density value of the pixel with density "255" (=ON pixel).
The density value obtained by subtracting the value consisting of is stored in advance. In the embodiment, "5o" is stored in the register 103, and "5o" is stored in the register 103.
Assume that "200" is stored in 04.

セレクタ105は、入力部101からの出力信号である
信号線102のレベル(“0”か“l”)によって、レ
ジスタ103,104の一方を選択し、8ビット信号と
して2値化部106に出力する。勿論、このとき信号性
102のレベルが”0(=OFF画素)”のときレジス
タ103を選択し、レベルが“’l (=ON画素)”
のときレジスタ104を選択する。つまり、2値画素デ
ータとして濃度“O”の画素を入力部101より受けた
ときには濃度°“50”の画素を出力し、濃度“255
”の画素を入力したときには濃度“200”の画素デー
タを出力する。
The selector 105 selects one of the registers 103 and 104 according to the level (“0” or “l”) of the signal line 102, which is the output signal from the input section 101, and outputs it to the binarization section 106 as an 8-bit signal. do. Of course, at this time, when the level of the signal property 102 is "0 (=OFF pixel)", the register 103 is selected, and the level is "'l (=ON pixel)".
Then register 104 is selected. That is, when a pixel with a density of "O" is received from the input unit 101 as binary pixel data, a pixel with a density of "50" is output, and a pixel with a density of "255" is output.
”, pixel data with a density of “200” is output.

2値化部106では濃度変換処理が行なわれた2値画像
(濃度値“50”か“200”)に対して、2値化処理
を行う。実施例における2値化処理は、濃厚保存型の誤
差拡散法を用いる。
The binarization unit 106 performs a binarization process on the binary image (density value "50" or "200") that has been subjected to the density conversion process. The binarization process in the embodiment uses a dense preservation type error diffusion method.

この誤差拡散法を簡単に説明すると以下の通りである。A brief explanation of this error diffusion method is as follows.

成る画素に対する2値化処理を行ったときに発生した誤
差を、その2値化した画素位置近傍に位置する未2値化
画素群位置に所定の重みを付けて分散(分配)させる。
The error generated when the binarization process is performed on the pixel consisting of the following pixels is distributed (distributed) by giving a predetermined weight to the positions of the unbinarized pixel group located in the vicinity of the binarized pixel position.

ここで、各々の未2値化画素群のそれぞれにはそれまで
2値化処理で分散された誤差が累積されていくことにな
る。そして、今、注目画素を2値化するときには、外部
から入力した注目画素の濃度値に、その注目画素位置に
それまでに累積された誤差値を加えた値を基にして2値
化するというものである。
Here, errors that have been distributed in the binarization process up to that point are accumulated in each non-binarized pixel group. Now, when a pixel of interest is binarized, it is binarized based on the density value of the pixel of interest input from the outside, plus the error value accumulated up to that point at the pixel of interest position. It is something.

尚、誤差拡散法によらず、デイザ法、濃度パターン法を
採用しても良い。いずれにせよ、2値化部106の2値
化処理によって本願発明が限定されるものではない。
Note that, instead of using the error diffusion method, a dither method or a density pattern method may be employed. In any case, the present invention is not limited to the binarization processing by the binarization unit 106.

さて、2値化部106からは出力部106が再現し得る
最淡濃度(=OFF画素)或いは最大濃度(=ON画素
)を示す信号が出力る。
Now, the binarization unit 106 outputs a signal indicating the lightest density (=OFF pixel) or maximum density (=ON pixel) that the output unit 106 can reproduce.

以上の様に実施例によれば、入力濃度として0.255
の2値画像を濃度変換処理して、濃度50.200を持
つ2値画像に変換し、そしてこの変換した2値画像を多
値画像とみなして誤差拡散法で再2値化して濃度0.2
55を持つ2値画像にドツトの再配置することにより、
画像の階調を変えることができる。しかも、従来の様に
平滑処理を一切行っていないので、画像のエツジ部分や
画像全体がボケてしまうといった不具合も発生しない。
As described above, according to the embodiment, the input density is 0.255.
The binary image is subjected to density conversion processing to convert it into a binary image with a density of 50.200, and this converted binary image is regarded as a multivalued image and re-binarized using the error diffusion method to have a density of 0.200. 2
By rearranging the dots into a binary image with 55,
You can change the gradation of the image. Moreover, unlike conventional methods, no smoothing processing is performed, so problems such as blurring of the edges of the image or the entire image do not occur.

更には、その効果を極めて簡単な構成で実現できるとい
うメリットもある。
Furthermore, there is also the advantage that this effect can be achieved with an extremely simple configuration.

尚、原理的には、第2図に示すフローチャートの如く処
理すれば良い。
Note that, in principle, processing may be performed as shown in the flowchart shown in FIG.

簡単に説明すると、先ず、ステップSlにおいて“O”
か“1”の2値画素を入力し、それを“0”か”255
”の2値画素に変換する。この後、ステップS2に進み
、“0”の画素を“50”255”の画素を“200”
の濃度値に変換する。つまり、“50”か“200″か
のいずれか1つである2値画素に変換する。次に、ステ
ップS3に進み、この“50”か200″かのいずれし
かとれない2値画素データを、“0〜255”の値を取
り得る画素データとして、つまり多値画素データとして
誤差拡散法により2値化する。そして、ステップS4で
2値化データが得られるわけであるから、それに基づい
て可視画像等を形成させる。
To explain briefly, first, in step Sl, “O”
Input a binary pixel of either “1” or “0”
”. After that, proceed to step S2, and convert the pixel “0” to “50” and the pixel “255” to “200”.
Convert to concentration value. That is, it is converted into a binary pixel that is either "50" or "200". Next, proceeding to step S3, the binary pixel data that can only take either "50" or 200" is treated as pixel data that can take values "0 to 255", that is, multivalued pixel data, using error diffusion method. Then, since the binarized data is obtained in step S4, a visible image or the like is formed based on it.

〈第2の実施例の説明〉 第3図は本発明の原理に基づ(、第2の実施例について
説明したものである。
<Description of Second Embodiment> FIG. 3 illustrates a second embodiment based on the principle of the present invention.

第2の実施例に右いては、R(レッド)、G(グリーン
)、B(ブルー)の3色の2値画像から構成されるカラ
ー画像について、それぞれ階調変換を施すことを考える
In the second embodiment, consider performing gradation conversion on a color image composed of binary images of three colors: R (red), G (green), and B (blue).

図示において、入力信号線301,302,303から
は、それぞれR,G、Bの2値データが入って(る。R
,G、Bのそれぞれの流れ及びセレクタ310〜312
.2値化部313〜315は第1の実施例の場合と同様
なので省略する。
In the illustration, binary data of R, G, and B are input from input signal lines 301, 302, and 303, respectively.
, G, and B and the selectors 310 to 312
.. Since the binarization units 313 to 315 are the same as in the first embodiment, their explanation will be omitted.

レジスタ304〜309に種々な濃度値をセットするこ
とによって、画像全体のコントラストを変化させたり、
ある色の色調を変化させたり、自由に画像の調子を調整
することができる。例えば、第4図の様にレジスタ30
4〜309に値をセットする場合を考えてみる。
By setting various density values in registers 304 to 309, the contrast of the entire image can be changed,
You can change the tone of a certain color or freely adjust the tone of an image. For example, as shown in Figure 4, the register 30
Let us consider the case where a value is set to 4 to 309.

i、)パターンP1を選択したとき、カラー画像全体の
コントラストが低下する。
i,) When pattern P1 is selected, the contrast of the entire color image decreases.

if、 )パターンP2のときは画像全体が黄色味を帯
びる。
if, ) In the case of pattern P2, the entire image has a yellowish tinge.

iff、)パターンP3のときは画像全体が晴くなる。If, ) pattern P3, the entire image becomes clear.

このように画像をコントロールすることができる。You can control the image in this way.

また、この考えを一歩進めて、各々のレジスタに格納さ
れる値を、例えばオペレータの所望とする値に変更でき
るようにしても良い(例えば゛調整つまみ”を装置外部
に設ける)。
Furthermore, this idea may be taken a step further by allowing the operator to change the value stored in each register to a value desired by the operator (for example, an "adjustment knob" may be provided outside the device).

本実施例においては、加法混色に基いて、R2O,Bの
画像データを用いたが、減法混色に基いてC(シアン)
9M(マゼンタ)、Y(イエロー)のデータを用いても
構わないことは勿論である。
In this example, image data of R2O and B was used based on additive color mixture, but C (cyan) was used based on subtractive color mixture.
Of course, data of 9M (magenta) and Y (yellow) may be used.

く第3の実施例の説明〉 第5図に第3の実施例における画像処理装置のブロック
構成を示す。
Description of Third Embodiment> FIG. 5 shows a block configuration of an image processing apparatus in a third embodiment.

2値画像のデータ(多値データを2値化したときのデー
タ)は、ラスク順次に入力線501から入力され、ライ
ンバッファ502に格納される。
Binary image data (data obtained when multivalued data is binarized) is input from an input line 501 in rask order and stored in a line buffer 502.

第6図に示す様に、ラインバッファ502は主走査方向
に4ライン分の2値画素データを記憶保持するFIFO
メそ9601〜604から構成され、順次不図示の画素
クロックに同期してシフトしていく。例えば、FIFO
メモリ602から出力される2値化データに着目した場
合、入力線101から入力された2値化データは2ライ
ン分後のものであり、FIFOメモリ601からは1ラ
イン分後のデータが出力されることになる。また、FI
FOメモリ603からはlライン分前のデータが、FI
FOメモリ604からは2ライン分前のデータが出力さ
れることになる。つまり、ラインバッファ102からは
主走査方向に対しては同位置で、副走査方向に対しては
連続する5画素分の2値化データが周辺判定回路503
に出力される。周辺判定回路503は注目画素位置を中
心とした5X5のマトリクスウィンドウの中に幾つのド
ツトが打たれているか、すなわち″ON画素”の数をカ
ウントして出力する処理を行う。
As shown in FIG. 6, the line buffer 502 is a FIFO that stores and holds binary pixel data for four lines in the main scanning direction.
It is composed of meso 9601 to 604, and is sequentially shifted in synchronization with a pixel clock (not shown). For example, FIFO
When focusing on the binarized data output from the memory 602, the binarized data input from the input line 101 is the data after two lines, and the data after one line is output from the FIFO memory 601. That will happen. Also, FI
From the FO memory 603, data from l lines before is transferred to the FI
The FO memory 604 will output data for two lines before. In other words, from the line buffer 102, binarized data for five pixels at the same position in the main scanning direction and continuous in the sub-scanning direction is sent to the peripheral determination circuit 502.
is output to. The peripheral determination circuit 503 performs a process of counting and outputting the number of dots placed in a 5×5 matrix window centered on the pixel position of interest, that is, the number of "ON pixels".

“ON画素”の最大数は25個であるので、5ビツトの
信号を階調変換ルックアップテーブルテーブル504に
出力する。また、これと同時に注目画素のレベル(“0
′か“l”)信号を信号線508を介して後述する加算
回路506に出力する。
Since the maximum number of "ON pixels" is 25, a 5-bit signal is output to the gradation conversion lookup table 504. At the same time, the level of the pixel of interest (“0
' or "l") signal is outputted via a signal line 508 to an adder circuit 506, which will be described later.

さて、階調変換ルックアップテーブル504では、周辺
判定回路503の出力するデータにしたがって、テーブ
ルの内容を参照してデータ(8ビツト)を出力する。ま
たレジスタ505には注目画素(5×5の中心)が“O
N画素”の場合に、足されるデータ(この場合、255
)が格納されている。勿論、CPU等の制御手段により
データを変換することは可能である。
Now, in the gradation conversion lookup table 504, according to the data output from the peripheral determination circuit 503, data (8 bits) is output by referring to the contents of the table. The register 505 also indicates that the pixel of interest (center of 5×5) is “O”.
The data to be added in the case of "N pixels" (in this case, 255
) are stored. Of course, it is possible to convert the data using a control means such as a CPU.

加算回路506は、基本的には、階調変換ルックアップ
テーブル504の出力する値と、レジスタ505の出力
する値を加算する。また信号線508のレベルであるが
、注目画素が“ON画素”のとき“1”、“OFF画素
”のとき“0”になっている。加算器回路506はこの
信号線508のレベルに応じて出力を切り換える。すな
わち、信号線508が“l”のときには加算した結果を
出力し、それが“0”のときには加算結果に関係な(“
O”を出力する。2値化回路507は加算回路506の
出力した値を受け、誤差拡散法等により2値信号に変換
し、出力信号線509に出力する。
Addition circuit 506 basically adds the value output from gradation conversion lookup table 504 and the value output from register 505. The level of the signal line 508 is "1" when the pixel of interest is an "ON pixel" and is "0" when the pixel is an "OFF pixel." Adder circuit 506 switches its output according to the level of signal line 508. That is, when the signal line 508 is "L", the result of addition is output, and when it is "0", the result of addition is output ("
The binary conversion circuit 507 receives the value output from the addition circuit 506, converts it into a binary signal using an error diffusion method, etc., and outputs it to the output signal line 509.

次に、第7図を用いて周辺判定回路503を説明する。Next, the peripheral determination circuit 503 will be explained using FIG.

ラインバッファ502からの出力は加算部701〜70
5に入力される。各加算部にはラッチ707.708,
709,710及び加算器706が有り、画素転送りロ
ックCLK711の立ち上り毎に1画素ずつシフトされ
、加算器706で水平ライン中の5つの連続した画素の
合計が加算される。この様にして各加算部701〜70
5ではそれぞれ連続する5画素群中の“ON画素”の数
を計数される。そしてそれらは加算器712に取り込ま
れ、結局、注目画素を中心とする5×5画素の領域内に
打たれているドツトの数が計算される。尚、図示で、注
目画素の2値化データは加算部703の中のラッチ70
8の出力であるから、その信号が信号線508として出
力されている。
The output from the line buffer 502 is added to the adders 701 to 70.
5 is input. Each adder has latches 707 and 708,
709, 710 and an adder 706, the pixel is shifted by one pixel each time the pixel transfer lock CLK 711 rises, and the adder 706 adds the sum of five consecutive pixels in the horizontal line. In this way, each addition section 701 to 70
5, the number of "ON pixels" in each consecutive five pixel group is counted. These are then taken into an adder 712, and the number of dots placed within a 5×5 pixel area centered on the pixel of interest is calculated. In the figure, the binarized data of the pixel of interest is stored in the latch 70 in the adder 703.
8, the signal is output as the signal line 508.

次に、階調変換ルックアップテーブル504について詳
述する。
Next, the gradation conversion lookup table 504 will be explained in detail.

周辺判定回路503より出力される5X5のウィンドウ
内の“ON画素”数のデータ(O〜25)は、第8図に
示される様な変換テーブルによりデータ変換が施され、
加算回路506に入力される。例えば、“ON画素”数
として“5”を入力したケースを考えると、変換テーブ
ルにより“15”というデータが出力される。このルッ
クアップテーブルはRAMやROMで構成され、書き換
えが可能であり、内容を書き換えることにより種々な階
調変換を実行できる。
The data on the number of "ON pixels" (0 to 25) within the 5×5 window output from the peripheral determination circuit 503 is subjected to data conversion using a conversion table as shown in FIG.
It is input to an adder circuit 506. For example, if we consider a case where "5" is input as the number of "ON pixels", the conversion table outputs data "15". This lookup table is composed of RAM or ROM and can be rewritten, and by rewriting the contents, various gradation conversions can be performed.

さらに、2値化回路507については、誤差拡散法等の
濃度が保存される2値化手法を用いればよく、本発明に
おいては説明を省略する。
Furthermore, as for the binarization circuit 507, a binarization method that preserves density, such as an error diffusion method, may be used, and the description thereof will be omitted in the present invention.

以上の処理概要を踏まえて、実際に、データがどのよう
に流れるかを説明する。
Based on the above processing outline, we will explain how data actually flows.

第9図において、901の様な2値画像をラスクスキャ
ンして、1画素ずつ画素クロックに同期して入力信号線
501から入力したとする。尚、図示で斜線画素が“O
N画素”、それ以外の白い部分が“OFF画素”を示し
ている。
In FIG. 9, it is assumed that a binary image such as 901 is scanned by raster scanning, and each pixel is input from the input signal line 501 in synchronization with the pixel clock. In addition, in the illustration, the shaded pixels are “O”.
"N pixels", and the other white parts indicate "OFF pixels".

さて、今、注目画素が2値画像901のうち、番号90
3で示される位置番とあるとする。すなわち、注目画素
が“ON画素”であり、それ中心とする5X5のウィン
ドウ905を考える。このとき、そのウィンドウ905
内に含まれる“ON画素”の個数は周辺判定回路503
にて計算され、“5”が加算回路506に出力される。
Now, the pixel of interest is number 90 of the binary image 901.
Assume that the position number is 3. That is, consider a 5×5 window 905 in which the pixel of interest is an “ON pixel” and is centered thereon. At this time, the window 905
The number of “ON pixels” included in the peripheral judgment circuit 503
, and “5” is output to the adder circuit 506.

さらに階調変換ルックアップテーブル504により、第
8図の変換テーブルに基いて“15”というデータに変
換される。
Furthermore, it is converted into data "15" by the gradation conversion lookup table 504 based on the conversion table shown in FIG.

加算回路506においては、レジスタ505にセットさ
れたデータ“255”と先程の“15”というデータが
加算され、結果として“270”というデータを得る。
In the adder circuit 506, the data "255" set in the register 505 and the previous data "15" are added, resulting in data "270".

この時、注目画素は先に説明したように“ON画素”で
あるので、その“270”という値が2値化回路507
に出力されるのである。
At this time, since the pixel of interest is an "ON pixel" as explained earlier, the value "270" is the value of the binarization circuit 507.
It is output to .

また、注目画素が904のときであるが、5×5のウィ
ンドウ906の中には6個の“ON画素”が含まれてい
るので階調変換ルックアップテーブル504からは“2
5”というデータが出力されるが、注目画素904は“
OFF画素”であるので、信号線508は“0”レベル
となり、“0”というデータが2値化回路507に出力
される。
Furthermore, when the pixel of interest is 904, the 5×5 window 906 includes 6 “ON pixels”, so the gradation conversion lookup table 504 shows “2
5" is output, but the pixel of interest 904 is "
Since the pixel is an OFF pixel, the signal line 508 is at the "0" level, and data "0" is output to the binarization circuit 507.

以上の様にして、加算回路506から出力されたデータ
を、2値化回路で2値化すると階調変換された画像が得
られる。
As described above, when the data output from the adder circuit 506 is binarized by the binarization circuit, a gradation-converted image is obtained.

く第4の実施例の説明〉 第10図を用いて第4の実施例を説明する。Description of the fourth embodiment> A fourth embodiment will be described using FIG. 10.

2値画像データは、ラスク順次に入力線501から入力
され、ラインバッファ502に入り、注目画素を含む5
水平ラインは周辺判定回路503に入力され、第3の実
施例と同様に5X5のウィンドウ内の“ON画素”の数
と注目画素信号が信号線508に出力される。
Binary image data is input from the input line 501 in rask order, enters the line buffer 502, and is divided into five groups including the pixel of interest.
The horizontal line is input to the peripheral determination circuit 503, and the number of "ON pixels" within the 5×5 window and the pixel signal of interest are output to the signal line 508, as in the third embodiment.

また、階調変換ルックアップテーブル1003では周辺
判定回路503の出力するデータに従って、テーブルの
内容を参照しデータを出力する。
Further, the gradation conversion lookup table 1003 outputs data by referring to the contents of the table in accordance with the data output from the peripheral determination circuit 503.

また、このときレジスタ1001の内容をCPU等の制
御回路から設定することにより、テーブルを切り換える
ことができる。
Further, at this time, the table can be switched by setting the contents of the register 1001 from a control circuit such as a CPU.

また、第3の実施例においては注目画素が” OF F
画素”の場合−様に、°゛0”を出力したが、水弟4の
実施例ではレジスタ1002に値を設定して階調をコン
トロールすることができる。
Furthermore, in the third embodiment, the pixel of interest is "OF
As in the case of pixel ",", "0" is output, but in the embodiment of Sui-Tei 4, the gradation can be controlled by setting a value in the register 1002.

セレクタ1004は、信号線508のレベルに応じて以
下の様にレジスタ1002からの出力と1階調変換ルッ
クアップテーブルの出力を切り換える。
The selector 1004 switches between the output from the register 1002 and the output from the 1-gradation conversion lookup table as follows, depending on the level of the signal line 508.

すなわち、注目画素が“OFF画素”であるとき(信号
線508が“O”)のとき、レジスタ1002からの出
力を選択し、“ON画素”であるならば階調変換ルック
アップテーブル1003がらの出力を選択する。更に、
2値化回路507では、セレクタ1004の出力した値
を、誤差拡散法等の濃度保存可能な2値化手法により、
2値信号に変換して出力信号線509に出力する。
That is, when the pixel of interest is an "OFF pixel" (signal line 508 is "O"), the output from the register 1002 is selected, and when it is an "ON pixel", the output from the gradation conversion lookup table 1003 is selected. Select output. Furthermore,
The binarization circuit 507 converts the value output from the selector 1004 into a binarization method that allows density preservation, such as an error diffusion method.
It is converted into a binary signal and output to the output signal line 509.

ラインバッファ502及び周辺判定回路503について
は、第3の実施例と同様なので詳述はしない。
The line buffer 502 and the peripheral determination circuit 503 are the same as those in the third embodiment, so a detailed description thereof will not be given.

階調変換ルックアップテーブル1003とレジスタ10
01について説明をする。
Gradation conversion lookup table 1003 and register 10
01 will be explained.

階調変換ルックアップテーブル1003には2つのデー
タが入力される。1つは、周辺判定回路503からO〜
25の“ON画素”の個数データ(5ビツト)であり、
もう1っはレジス1001からの3ビツトデータである
。レジスタ1001からのデータによって第11図に示
しであるテーブル内どのテーブルを用いて階調変換をす
るかを選択することが可能である。
Two pieces of data are input to the gradation conversion lookup table 1003. One is O~ from the peripheral determination circuit 503.
This is the number data (5 bits) of 25 “ON pixels”,
The other is 3-bit data from register 1001. Depending on the data from the register 1001, it is possible to select which table among the tables shown in FIG. 11 is used for tone conversion.

階調変換ルックアップテーブル10o3のメモリアドレ
スは第12図に示すようにマツピングされていて、レジ
スタ1001に0〜4°°のいずれかの値をセットする
と、それぞれテーブルTl、テーブルT2.テーブルT
3.テーブルT4.テーブルT5が選択される。
The memory addresses of the gradation conversion lookup table 10o3 are mapped as shown in FIG. table T
3. Table T4. Table T5 is selected.

例を掲げて説明すると、テーブルT4に基づいて階調変
換させる場合には、レジスタ1001には3゛°をセッ
トすれば良い。このとき、ウィンドウ内に6個の“ON
画素”を含まれていると、階調変換ルックアップテーブ
ル1003は、“66H(Hは16進数)”のアドレス
が指され、結果として“280”というデータが出力さ
れ、階調変換が施される。
To explain with an example, when performing gradation conversion based on table T4, it is sufficient to set 3° in register 1001. At this time, there are 6 “ON” in the window.
If "pixel" is included, the gradation conversion lookup table 1003 points to the address "66H (H is a hexadecimal number)", and as a result, data "280" is output and gradation conversion is performed. Ru.

以上述べたように、第4の実施例のように構成すると、
多種類の階調変換を簡単に切り換えることができる。
As described above, when configured as in the fourth embodiment,
You can easily switch between many types of gradation conversion.

〈第5の実施例の説明〉 第5の実施例を第13図に基づいて説明する。<Description of the fifth embodiment> A fifth embodiment will be described based on FIG. 13.

本第5の実施例においては、R(レッド)、G(グリー
ン)、B(ブルー)の3色の2値画像から構成されるカ
ラー画像について、それぞれ階調変換を施すことを考え
る。
In the fifth embodiment, it is considered that tone conversion is performed on a color image composed of binary images of three colors: R (red), G (green), and B (blue).

入力信号線1301,1302.1303より、それぞ
れR,G、Bの2値データが入ってくる。R信号処理部
1307.G信号処理部130B、B信号処理部130
9の構成及びデータの流れは、第3の実施例の場合と同
様なので省略する。
Binary data of R, G, and B comes in from input signal lines 1301, 1302, and 1303, respectively. R signal processing section 1307. G signal processing section 130B, B signal processing section 130
The configuration and data flow of 9 are the same as those of the third embodiment, so their description will be omitted.

各R,G、B信号処理部1307,1308゜1309
内のレジスタ505、階調変換ルックアップテーブル5
04の内容を種々書き換えることにより、画像全体のコ
ントラストを変化させたり、色調を変化させたり、自由
に画像の調子を調整することができる。
Each R, G, B signal processing unit 1307, 1308° 1309
register 505, gradation conversion lookup table 5
By rewriting the contents of 04 in various ways, it is possible to change the contrast of the entire image, change the color tone, and freely adjust the tone of the image.

本第5の実施例においては、加法混色に基いて、R,G
、Bの画像データを用いたが、減法混色に基いて、C(
シアン)9M(マゼンタ)、Y(イエロー)のデータを
用いても構わない。
In the fifth embodiment, based on additive color mixture, R, G
, B was used, but based on subtractive color mixture, C(
Data for cyan), 9M (magenta), and Y (yellow) may also be used.

また、本第5の実施例においては、R信号処理部、G信
号処理部、B信号処理部の3つの処理部を設け、パラレ
ルにデータを流したが、処理部を1つにして、時分割に
R,G、Bデータを流すことによってもカラー画像の階
調変換を行うことができる。
In addition, in the fifth embodiment, three processing sections, the R signal processing section, the G signal processing section, and the B signal processing section, were provided to flow data in parallel. Tone conversion of a color image can also be performed by sending R, G, and B data to the division.

[発明の効果] 以上説明したように本発明によれば、簡単な構成でもっ
て2値画像を階調変換し、しかも階調変換したデータに
基づ(2値画像形成しても画像のエツジが保存され、し
かもボケ等の少ない良好なものとすることが可能になる
[Effects of the Invention] As explained above, according to the present invention, a binary image is gradation-converted with a simple configuration, and based on the gradation-converted data (even if the binary image is formed, the edges of the image are not is preserved, and it is possible to obtain a good image with less blur.

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

第1図は第1の実施例における画像処理装置のブロック
構成図、 第2図は第1の実施例における処理の手順を示すフロー
チャート、 第3図は第2の実施例における画像処理装置のブロック
構成図、 第4図は第2の実施例におけるレジスタに設定する数値
のパターンを示す図、 第5図は第3の実施例における画像処理装置のブロック
構成図、 第6図は第5図におけるラインバッファの詳細を示す図
、 第7図は第5図の周辺判定回路の詳細を示す図、 第8図は第5図の階調変換ルックアップテーブルの変換
特性を示す図、 第9図は第3の実施例における処理概要を説明するため
の図、 第10図は第4の実施例における画像処理装置のブロッ
ク構成図、 第11図は第10図の階調変換ルックアップテーブルの
変換特性を示す図、 第12図は第1O図の階調変換ルックアップテーブルの
各変換特性毎のテーブルデータの格納状態を示す図、 第13図は第5の実施例における画像処理装置のブロッ
ク構成図である。 図中、101・・・入力部、102・・・信号線、10
3.104,304〜309,505.1001及び1
002・・・レジスタ、105,310,311及び3
12・・・セレクタ、106及び313〜315・・・
2値化部、107・・・出力部、301〜303・・・
データ入力線、316〜318・・・データ出力線、5
01・・・入力線、502・・・ラインバッファ、50
3・・・周辺判定回路、504.1003・・・階調変
換ルックアップテーブル、506・・・加算回路、50
7・・・2値化回路、1307・・・R信号処理部、1
308・・・G信号処理部、1309・・・B信号処理
部である。 弔 図 ^→− 弔 図 弔 図 第 7 図 01 弔 図 第 図 第 1 図
FIG. 1 is a block configuration diagram of an image processing device in the first embodiment, FIG. 2 is a flowchart showing the processing procedure in the first embodiment, and FIG. 3 is a block diagram of the image processing device in the second embodiment. 4 is a block diagram showing the pattern of numerical values set in the register in the second embodiment. FIG. 5 is a block diagram of the image processing device in the third embodiment. Figure 7 is a diagram showing details of the line buffer, Figure 7 is a diagram showing details of the peripheral determination circuit in Figure 5, Figure 8 is a diagram showing conversion characteristics of the gradation conversion lookup table in Figure 5, and Figure 9 is a diagram showing details of the peripheral determination circuit in Figure 5. Figure 10 is a block configuration diagram of the image processing device in the fourth embodiment; Figure 11 is the conversion characteristic of the gradation conversion lookup table in Figure 10. FIG. 12 is a diagram showing the storage state of table data for each conversion characteristic of the gradation conversion lookup table in FIG. 1O. FIG. 13 is a block configuration diagram of an image processing device in the fifth embodiment. It is. In the figure, 101...input section, 102...signal line, 10
3.104,304-309,505.1001 and 1
002...Register, 105, 310, 311 and 3
12...Selector, 106 and 313-315...
Binarization section, 107... Output section, 301 to 303...
Data input lines, 316-318...Data output lines, 5
01...Input line, 502...Line buffer, 50
3... Peripheral determination circuit, 504.1003... Gradation conversion lookup table, 506... Addition circuit, 50
7... Binarization circuit, 1307... R signal processing section, 1
308...G signal processing section, 1309...B signal processing section. Funeral map ^→- Funeral map Funeral map No. 7 Figure 01 Funeral map No. 1

Claims (3)

【特許請求の範囲】[Claims] (1)2値画素データを入力する入力手段と、2値画素
データの最大濃度値に対応する、少なくとも多値データ
として最大濃度を示すデータ以下の多値データMを記憶
保持する第1の保持手段と、 2値画素データの最淡濃度値に対応する、少なくとも多
値データとして最淡濃度を示すデータ以上の多値データ
Nを記憶保持する第2の保持手段と、 前記入力手段で入力された注目画素データの状態に応じ
て前記第1、第2の保持手段の一方に保持された多値デ
ータを出力する出力手段とを備えることを特徴とする画
像処理方式。
(1) An input means for inputting binary pixel data, and a first storage for storing and holding multivalued data M corresponding to the maximum density value of the binary pixel data and at least less than the data indicating the maximum density as multivalued data. means, a second holding means for storing and holding multivalued data N corresponding to the lightest density value of the binary pixel data and at least more than the data indicating the lightest density as multivalued data; an output means for outputting the multivalued data held in one of the first and second holding means according to the state of the pixel data of interest.
(2)B0、B1の2つの状態のいずれかを持つ2値画
素データを入力する入力手段と、該入力手段で入力され
た注目2値画素データがB1状態のとき、注目画素近傍
の2値画素データ群の2値状態に応じて、当該注目画素
データの値を多値データ化して補正する補正手段と、 前記入力手段で入力した注目2値画素データがB0状態
にあるときには、当該注目画素データの状態に対応する
多値データに変換する変換手段と、 前記入力手段で入力された注目画素データの状態に応じ
て前記補正手段で補正された多値データ或いは前記変換
手段で変換された多値データの一方を出力する出力手段
を備えることを特徴とする画像処理方式。
(2) An input means for inputting binary pixel data having either of the two states B0 or B1, and when the binary pixel data of interest inputted by the input means is in the B1 state, the binary value near the pixel of interest a correction means for correcting the value of the pixel data of interest by converting it into multi-value data according to the binary state of the pixel data group; and when the binary pixel data of interest inputted by the input means is in the B0 state, the pixel of interest is a conversion means for converting into multi-value data corresponding to the state of the data; and a conversion means for converting the multi-value data into multi-value data corresponding to the state of the data; An image processing method characterized by comprising an output means for outputting one of value data.
(3)前記補正手段は複数の補正テーブルと、個々の補
正テーブルのうちで所望とする補正テーブルを指定する
指定手段を備えることを特徴とする請求項第2項に記載
の画像処理方式。
(3) The image processing method according to claim 2, wherein the correction means includes a plurality of correction tables and a designation means for specifying a desired correction table among the individual correction tables.
JP2013583A 1990-01-25 1990-01-25 Picture processing system Pending JPH03219780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013583A JPH03219780A (en) 1990-01-25 1990-01-25 Picture processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013583A JPH03219780A (en) 1990-01-25 1990-01-25 Picture processing system

Publications (1)

Publication Number Publication Date
JPH03219780A true JPH03219780A (en) 1991-09-27

Family

ID=11837204

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013583A Pending JPH03219780A (en) 1990-01-25 1990-01-25 Picture processing system

Country Status (1)

Country Link
JP (1) JPH03219780A (en)

Similar Documents

Publication Publication Date Title
JPH0730772A (en) Image processor
JPH05241550A (en) Color picture converting method
JPH04219073A (en) Image recorder
JPH03219780A (en) Picture processing system
JP3015048B2 (en) Image processing method
JPH01270456A (en) Color image processing method
JPH02210962A (en) Picture processor
JPH02210960A (en) Picture processor
KR100490244B1 (en) Error diffusion method using variable threshold value in image processing system
JP2952329B2 (en) Image processing method
JPH0537775A (en) Pseudo intermediate tone processing method and its device
JPH0668250A (en) Image processor
JPH0691605B2 (en) Image processing device
JP3291015B2 (en) Image processing device
JPS6115466A (en) Halftone picture display device
JPH05169720A (en) Color image forming apparatus
JP3332433B2 (en) Pseudo color gradation expression method
JP2954317B2 (en) Image processing device
JPS62107572A (en) Image processor
JPS61123272A (en) Intermediate tone picture data converting system
JPS63132571A (en) Image read processor
JPH0334772A (en) Picture processing unit
JPH0213174A (en) Intermediate tone picture binarizing processing system
JPS63312150A (en) Binary circuit for contrast image
JPH03219781A (en) Picture processing unit