JPH06178108A - Image processor - Google Patents

Image processor

Info

Publication number
JPH06178108A
JPH06178108A JP43A JP35110192A JPH06178108A JP H06178108 A JPH06178108 A JP H06178108A JP 43 A JP43 A JP 43A JP 35110192 A JP35110192 A JP 35110192A JP H06178108 A JPH06178108 A JP H06178108A
Authority
JP
Japan
Prior art keywords
image information
gradation
gradations
image
comparators
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
JP43A
Other languages
Japanese (ja)
Inventor
Kazumasa Koike
和正 小池
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP43A priority Critical patent/JPH06178108A/en
Publication of JPH06178108A publication Critical patent/JPH06178108A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To make it possible to arbitrarily change the number of gradation of image information to be taken out according to processing contents by converting the multi- level image information to the image information of a designated number of gradation when an operator designates the number of gradation of image information. CONSTITUTION:An operator sets an original to a scanner 1 and designates a desired processing and the number of gradation of image information to be taken out in a non-illustrated operation part. Thus, the scanner 1 reads original image information one line by one line and outputs image information one picture element by one picture element. An adder 21 inputs the image information and adds the correction value calculated in an error distribution calculation part 25. The image information to which the correction value is added is inputted in comparators 221 to 221. A selection part 228 selects the comparators to be operated of the comparators 221 to 227 according to the designated number of gradation. Namely, when eight number of gradation is designated, the comparators 221 to 221 are operated, in the case of four number of gradation, the comparators 222, 224 and 226 are operated, in the case of two number of gradation, the only comparator 224 is operated, and input image information can be expressed by a small designated number of gradation.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、入力した多階調の画情
報をより小さい一定階調数の画情報に変換して出力する
画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for converting input multi-tone image information into smaller fixed tone image information and outputting the image information.

【0002】[0002]

【従来の技術】ファクシミリ装置など、多くの画像処理
装置には、白と黒との2階調で画像を記録するプロッタ
が使用されている。このため、これらの装置では、画情
報を必ず2値化して記録したり伝送したりしている。
2. Description of the Related Art In many image processing apparatuses such as facsimile machines, a plotter for recording an image with two gradations of white and black is used. Therefore, in these devices, the image information is always binarized and recorded or transmitted.

【0003】一方、近年、例えば4階調あるいは8階調
というように、ある程度濃淡画像を記録することができ
るプロッタが開発されている。そして、このようなプロ
ッタを備え、多階調の画情報を記録したり伝送したりす
る画像処理装置も実用されている。
On the other hand, in recent years, a plotter has been developed which can record a grayscale image to some extent, for example, 4 or 8 gradations. An image processing apparatus equipped with such a plotter for recording and transmitting multi-gradation image information is also in practical use.

【0004】ところで、絵や写真などの濃淡画像を扱う
場合には、画情報を多階調で処理する方が、画像の再現
性がよい。一方、文字画像のような濃淡のない画像を伝
送する場合、2階調の画情報の方が、データ量が少な
く、短時間で通信できるという利点がある。
By the way, when a grayscale image such as a picture or a photograph is handled, it is better to process the image information with multiple gradations so that the reproducibility of the image is better. On the other hand, in the case of transmitting an image without light and shade such as a character image, the image information of two gradations has an advantage that the data amount is small and communication can be performed in a short time.

【0005】[0005]

【発明が解決しようとする課題】このように、2階調の
画情報も多階調の画情報も、それぞれ特徴があるが、従
来の各種画像処理装置は、常に一定の階調数で画情報を
処理していたため、オペレータが処理内容に応じて階調
数を変更できないという問題があった。
As described above, although both the two-gradation image information and the multi-gradation image information have their respective characteristics, the conventional various image processing apparatuses always generate images with a constant number of gradations. Since the information is processed, there is a problem that the operator cannot change the number of gradations according to the processing content.

【0006】本発明は、上記の問題を解決し、取り出す
画情報の階調数を任意に変更することができる画像処理
装置を提供することを目的とする。
It is an object of the present invention to solve the above problems and provide an image processing apparatus capable of arbitrarily changing the number of gradations of image information to be extracted.

【0007】[0007]

【課題を解決するための手段】このために本発明は、オ
ペレータが、出力する画情報の階調数を任意に指定する
と、画像処理装置は、多階調の画情報を指定された階調
数の画情報に変換して出力するようにしたことを特徴と
するものである。
To this end, according to the present invention, when an operator arbitrarily designates the number of gradations of image information to be output, the image processing apparatus causes the image information of multi-gradation to be designated gradations. It is characterized in that it is converted into a number of image information and outputted.

【0008】[0008]

【作用】これにより、オペレータは、処理内容に応じ
て、取り出す画情報の階調数を任意に変更することがで
きるようになる。
As a result, the operator can arbitrarily change the number of gradations of the image information to be extracted according to the processing content.

【0009】[0009]

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

【0010】図1は、本発明の一実施例に係る画像処理
装置のブロック構成図を示したものである。図におい
て、スキャナ1は、例えば64階調というような比較的
大きい階調数で、原稿画像を読み取るものである。誤差
拡散処理部2は、多階調の画情報を誤差拡散処理によ
り、例えば2〜8階調の画情報に変換するものである。
切換回路3は、変換された画情報をプロッタ4に出力す
るか、送信部5に出力するかを切り換えるものである。
プロッタ4は、画像を記録紙に記録するもので、例えば
8階調という一定階調で濃淡画像を記録する機能を有し
ている。送信部5は、処理された画情報を通信相手先に
送信するものである。
FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to an embodiment of the present invention. In the figure, a scanner 1 reads an original image with a relatively large number of gradations, such as 64 gradations. The error diffusion processing unit 2 converts multi-tone image information into image information of, for example, 2 to 8 tone by error diffusion processing.
The switching circuit 3 switches whether to output the converted image information to the plotter 4 or the transmission unit 5.
The plotter 4 records an image on recording paper, and has a function of recording a grayscale image at a fixed gradation of 8 gradations, for example. The transmission unit 5 transmits the processed image information to the communication partner.

【0011】誤差拡散処理部2内において、加算器21
は、画情報の注目画素に補正値を加算するものである。
量子化部22は、入力される画情報を一定階調数の画情
報に量子化するものである。誤差検出部23は、量子化
の際に生じる量子化誤差を検出するものである。記憶部
24は、注目画素の周囲一定範囲の各画素の量子化誤差
を記憶するものである。誤差配分算出部25は、注目画
素に加算する上記補正値を算出するものである。この誤
差配分算出部25内には、参照する周囲画素位置と、補
正値を算出するための係数とを示す誤差拡散フィルタが
設定されている。
In the error diffusion processing unit 2, an adder 21
Is to add a correction value to the pixel of interest of the image information.
The quantizer 22 quantizes input image information into image information having a certain number of gradations. The error detection unit 23 detects a quantization error that occurs during quantization. The storage unit 24 stores the quantization error of each pixel in a fixed range around the target pixel. The error distribution calculation unit 25 calculates the correction value to be added to the pixel of interest. An error diffusion filter indicating the surrounding pixel position to be referred to and a coefficient for calculating a correction value is set in the error distribution calculation unit 25.

【0012】図2は、量子化部22のブロック構成図を
示している。図において、比較器221〜227は、そ
れぞれ入力する画情報の濃度レベルと、予め設定されて
いるしきい値とを比較するものである。選択部228
は、比較器221〜227を全部あるいはその一部を選
択的に動作させるものである。エンコーダ229は、比
較器221〜227の比較結果に基ずいて一定階調数の
2進数の画情報データを生成するものである。
FIG. 2 shows a block diagram of the quantizer 22. In the figure, comparators 221 to 227 are for comparing the density level of the image information to be respectively input with a preset threshold value. Selection unit 228
Is for selectively operating all or part of the comparators 221 to 227. The encoder 229 is for generating binary image information data having a fixed number of gradations based on the comparison result of the comparators 221 to 227.

【0013】以上の構成で、オペレータは、本実施例の
画像処理装置を使用する場合、スキャナ1に原稿をセッ
トし、図示せぬ操作部で、所望の処理と取り出す画情報
の階調数とを指定する。この階調数は、例えば、原稿画
像が濃淡画像である場合、8階調に指定する。また、原
稿画像が文字画像の場合、2階調に指定する。また、濃
淡画像でも通信相手先に短時間で送信したい場合、4階
調あるいは2階調に指定する。そして、画像処理装置を
起動する。
With the above configuration, when the operator uses the image processing apparatus of this embodiment, the operator sets a document on the scanner 1 and uses an operation unit (not shown) to perform desired processing and the number of gradations of image information to be extracted. Is specified. For example, when the original image is a grayscale image, the number of gradations is designated as 8 gradations. If the original image is a character image, two gradations are designated. Further, when it is desired to transmit even a grayscale image to the communication partner in a short time, 4 gradations or 2 gradations are designated. Then, the image processing device is activated.

【0014】これにより、スキャナ1は、原稿画像を1
ラインずつ読み取って画情報を1画素ずつ出力する。加
算器21は、その画情報を入力して、誤差配分算出部2
5で算出される補正値を加算する。補正値が加算された
画情報は、比較器221〜227に入力される。
As a result, the scanner 1 scans the original image one by one.
Each line is read and image information is output pixel by pixel. The adder 21 inputs the image information, and the error distribution calculation unit 2
The correction value calculated in 5 is added. The image information to which the correction value has been added is input to the comparators 221 to 227.

【0015】ここで、画情報の濃度0から最大濃度のま
での区間を一定間隔で8分割したときの7つの境界レベ
ルをしきい値S1〜S7とすると、比較器221には、
予めしきい値S1が設定されている。比較器221は、
入力した画情報の濃度レベルと、そのしきい値S1とを
比較する機能を有している。同様に、比較器222〜2
27にも、それぞれ一定のしきい値S2〜S7が設定さ
れており、入力した画情報の濃度レベルと、設定されて
いる各しきい値S1〜S7とを比較する機能を有してい
る。
Here, assuming that the seven boundary levels when the section from the density 0 of the image information to the maximum density is divided into 8 at constant intervals are threshold values S1 to S7, the comparator 221
The threshold value S1 is set in advance. The comparator 221 is
It has a function of comparing the density level of the input image information with the threshold value S1. Similarly, the comparators 222-2
Also in 27, constant threshold values S2 to S7 are respectively set, and it has a function of comparing the density level of the input image information with the set threshold values S1 to S7.

【0016】選択部228は、指定された階調数に応じ
て、上記比較器221〜227の内から動作させるもの
を選択する。すなわち、8階調数に指定された場合、比
較器221〜227の全てを動作させる。また、4階調
数に指定された場合、比較器222,224および22
6を動作させる。また、2階調数に指定された場合、比
較器224だけ動作させる。
The selection unit 228 selects one of the comparators 221 to 227 to be operated according to the designated gradation number. That is, when the number of gray scales is specified, all the comparators 221 to 227 are operated. Further, when the number of gradations is designated to four, the comparators 222, 224 and 22
6 is operated. Further, when the number of gray scales is designated, only the comparator 224 is operated.

【0017】これにより、比較器221〜227の比較
結果は、入力された多階調の画情報を指定された一定階
調数で表すことになる。エンコーダ229は、その比較
結果を一定階調の2進数の画情報データに変換する。こ
れにより、64階調の画情報が、2〜8階調の画情報に
量子化される。
As a result, the comparison result of the comparators 221 to 227 represents the input multi-gradation image information by the designated constant gradation number. The encoder 229 converts the comparison result into binary-numbered image information data having a constant gradation. Thereby, the image information of 64 gradations is quantized into the image information of 2 to 8 gradations.

【0018】誤差検出部23は、画情報1画素ごとに量
子化の際に生じた量子化誤差を検出する。記憶部24
は、検出された量子化誤差を画素位置別に一時記憶す
る。誤差配分算出部25は、加算器21に入力されてい
る画情報の1画素に注目して、その注目画素に対する補
正値を算出する。この補正値は、誤差拡散フィルタによ
り指示される周囲画素の量子化誤差を、指示される割合
で合計することにより算出する。加算器21は、このよ
うに算出された補正値を注目画素に加算して濃度補正す
ることになる。
The error detection unit 23 detects a quantization error generated in the quantization for each pixel of image information. Storage unit 24
Temporarily stores the detected quantization error for each pixel position. The error distribution calculation unit 25 pays attention to one pixel of the image information input to the adder 21, and calculates a correction value for the pixel of interest. This correction value is calculated by summing the quantization errors of the surrounding pixels designated by the error diffusion filter at the designated ratio. The adder 21 adds the correction value thus calculated to the pixel of interest to correct the density.

【0019】誤差拡散処理部2は、以上のような誤差拡
散法により一定階調数に変換した画情報を出力する。
The error diffusion processing unit 2 outputs the image information converted into a fixed number of gradations by the above error diffusion method.

【0020】切換回路3は、その画情報を、画像記録す
る場合にはプロッタ4に出力し、画像送信する場合に
は、送信部5に出力する。
The switching circuit 3 outputs the image information to the plotter 4 when the image is recorded, and to the transmitter 5 when the image is transmitted.

【0021】プロッタ4は、画情報が入力された場合、
その画情報の階調数で画像記録する。また、送信部5
は、画情報が入力された場合、その画情報を通信相手先
に送信する。
The plotter 4, when image information is input,
An image is recorded with the number of gradations of the image information. Also, the transmitter 5
When the image information is input, transmits the image information to the communication partner.

【0022】以上のように、本実施例では、オペレータ
が画情報の階調数を指定すると、原稿から読み取った多
階調の画情報を、指定された階調数に変換して、記録あ
るいは送信するようにしている。
As described above, in this embodiment, when the operator specifies the number of gradations of image information, the multi-gradational image information read from the original is converted into the specified number of gradations for recording or recording. I am trying to send it.

【0023】これにより、例えば、プロッタ4で画像記
録する場合には8階調で記録して、濃淡のある良好な画
像を記録し、送信部5で画像送信する場合には、2階調
で送信して通信時間を短縮するというように、オペレー
タは、処理内容に応じて、取り出す画情報の階調数を任
意に変更することができるようになる。
Thus, for example, when the image is recorded by the plotter 4, it is recorded at 8 gradations, and when the image is transmitted by the transmitting unit 5, it is recorded at 8 gradations. The operator can arbitrarily change the number of gradations of the extracted image information according to the processing content such as transmitting and shortening the communication time.

【0024】また、各階調数の画情報を得る場合、比較
器221〜227の内の必要なものを選択的に使用する
ようにしたので、1つの量子化部22で各階調数の画情
報を得ることができる。
Further, when the image information of each gradation number is obtained, a necessary one of the comparators 221 to 227 is selectively used. Therefore, one quantizing unit 22 can generate the image information of each gradation number. Can be obtained.

【0025】なお、上記実施例では、誤差拡散処理部2
から得た画情報は、記録または送信という2通りの処理
しか実行しなかったが、例えば、表示装置で表示したり
記憶装置に蓄積したりするなど、他の処理を実行するよ
うにしてもよい。この場合、それらの処理に応じて所望
の階調数の画情報を取り出すようにすればよい。
In the above embodiment, the error diffusion processing unit 2
The image information obtained from the above-mentioned processing is only executed in two kinds of processing, that is, recording or transmission, but other processing such as displaying on a display device or accumulating in a storage device may be executed. . In this case, it suffices to extract the image information of a desired number of gradations according to the processing.

【0026】また、以上の実施例では、画像処理装置と
いうことで説明したが、ファクシミリ装置で、このよう
な装置構成をとることができる。ファクシミリ装置でこ
のような構成をとった場合、原稿画像をコピーするとき
には、階調数を大きくして良好な記録画像を得、原稿画
像を送信するときには、2階調で送信して短時間で通信
するということができる。
In the above embodiments, the image processing apparatus has been described, but a facsimile apparatus can have such an apparatus configuration. When the facsimile apparatus has such a configuration, when the original image is copied, the number of gradations is increased to obtain a good recorded image, and when the original image is transmitted, the original image is transmitted with two gradations in a short time. Can be said to communicate.

【0027】次に、本発明の第2の実施例を説明する。Next, a second embodiment of the present invention will be described.

【0028】本実施例の画像処理装置は、図1と同一構
成で、量子化部22を、図3に示すように、除算器23
0により構成する。
The image processing apparatus of this embodiment has the same configuration as that of FIG. 1, and the quantizing unit 22 has a divider 23 as shown in FIG.
It consists of 0.

【0029】この構成で、量子化部22には、前記実施
例と同様に、64階調の画情報が入力されるものとす
る。本実施例では、図4に示すように、取り出す画情報
が8階調と指定された場合、除数iとして「8」、4階
調と指定された場合、除数iとして「16」、2階調数
と指定された場合、除数iとして「8」が、それぞれ除
算器230に入力される。
With this configuration, it is assumed that the quantizing unit 22 is input with image information of 64 gradations, as in the above embodiment. In this embodiment, as shown in FIG. 4, when the image information to be extracted is designated as 8 gradations, the divisor i is “8”, and when the gradation information is designated as 4 gradations, the divisor i is “16”, the second floor. When designated as a key, “8” is input to the divider 230 as the divisor i.

【0030】除算器230は、入力される画情報の濃度
をfとすると、濃度fを除数iで割算し、得られた商g
を濃度とする画情報を出力する。なお、商gが、小数に
なる場合には、小数点以下の切上げまたは切下げにより
整数値を得る。これにより、64階調の画情報が、2,
4あるいは8階調の画情報に変換されることになる。
The divider 230 divides the density f by the divisor i, where f is the density of the input image information, and the obtained quotient g
The image information having the density of is output. When the quotient g is a decimal number, an integer value is obtained by rounding up or down after the decimal point. As a result, the image information of 64 gradations is 2,
It is converted into image information of 4 or 8 gradations.

【0031】このように、量子化部22を除算器230
で構成することにより、除数を変えるだけの簡単な処理
で、各階調の画情報を取り出すことができるようにな
る。
In this way, the quantizer 22 is divided by the divider 230.
With this configuration, the image information of each gradation can be extracted by a simple process of changing the divisor.

【0032】次に、本発明の第3の実施例を説明する。Next, a third embodiment of the present invention will be described.

【0033】本実施例の画像処理装置は、図1と同一構
成で、誤差配分算出部25は、2種類の誤差拡散フィル
タを備えているものとする。
The image processing apparatus of the present embodiment has the same configuration as that of FIG. 1, and the error distribution calculation unit 25 is provided with two types of error diffusion filters.

【0034】この構成で、本実施例では、図5に示すよ
うに、取り出す画情報が2階調または4階調の場合、誤
差配分算出部25は、一方の誤差拡散フィルタ25aに
より補正値を算出する。
With this configuration, in the present embodiment, as shown in FIG. 5, when the image information to be extracted has 2 or 4 gradations, the error distribution calculation unit 25 uses one of the error diffusion filters 25a to obtain the correction value. calculate.

【0035】同図「*」は、注目画素を示し、各数字
は、参照する周囲画素の位置と、補正値を算出するため
の係数とを示している。例えば、誤差拡散フィルタ25
aでは、各数字の和は「16」になるが、数字が「1」
の画素ついては、その画素で生じた量子化誤差の1/1
6を注目画素に対する補正値として算出することにな
る。取り出す画情報が2階調または4階調の場合、この
誤差拡散フィルタ25aに従って、7つの周囲画素につ
いて、それぞれの補正値を算出して注目画素に加算する
ことになる。
In the figure, "*" indicates the pixel of interest, and each number indicates the position of the surrounding pixel to be referred to and the coefficient for calculating the correction value. For example, the error diffusion filter 25
In a, the sum of each number is "16", but the number is "1"
For the pixel of, 1/1 of the quantization error that occurred in that pixel
6 will be calculated as the correction value for the pixel of interest. When the image information to be extracted has 2 gradations or 4 gradations, the correction values of the seven surrounding pixels are calculated and added to the target pixel according to the error diffusion filter 25a.

【0036】一方、取り出す画情報が8階調の場合、誤
差配分算出部25は、他方の誤差拡散フィルタ25bに
より補正値を算出する。この場合、隣接する2画素で生
じた量子化誤差をそれぞれ1/2ずつ補正値として注目
画素に加算することになる。
On the other hand, when the image information to be taken out has 8 gradations, the error distribution calculating section 25 calculates the correction value by the other error diffusion filter 25b. In this case, the quantization error generated in two adjacent pixels is added to the target pixel as a correction value of 1/2.

【0037】誤差拡散処理部2は、このように、取り出
す画情報の階調数により、使用する誤差拡散フィルタを
切り換えて、画情報を変換する。
The error diffusion processing unit 2 converts the image information by switching the error diffusion filter to be used according to the number of gradations of the extracted image information.

【0038】いま、誤差拡散処理部2に入力される画情
報が64階調であるとすると、画情報の濃度は0〜63
で表される。この画情報を、例えば8階調に変換する場
合、濃度を8で割ることに等しいので、その割算の余り
に相当する0〜7のレベルが量子化誤差として生じるこ
とになる。ここで、この0〜7という量子化誤差に対し
て、誤差拡散フィルタ25aに従って、補正値を算出す
ると、多く場合、算出値が1以下になってしまう。従っ
て、小数点以下を切下げる場合、注目画素を補正でき
ず、算出値を1に切上げてしまうと、補正量が過大にな
る。
If the image information input to the error diffusion processing unit 2 has 64 gradations, the density of the image information is 0 to 63.
It is represented by. When converting this image information into, for example, 8 gradations, it is equivalent to dividing the density by 8, so that a level of 0 to 7 corresponding to the remainder of the division will occur as a quantization error. Here, when the correction value is calculated according to the error diffusion filter 25a for the quantization error of 0 to 7, the calculated value becomes 1 or less in many cases. Therefore, when rounding down below the decimal point, the target pixel cannot be corrected, and if the calculated value is rounded up to 1, the correction amount becomes excessive.

【0039】この場合、本実施例では、誤差拡散フィル
タ25bに従って、各画素の補正値を算出するので、算
出値が1以下になることは比較的少なくなる。これによ
り、注目画素をより正しく補正することができる。
In this case, in this embodiment, since the correction value of each pixel is calculated according to the error diffusion filter 25b, the calculated value is relatively less than 1 or less. As a result, the pixel of interest can be corrected more accurately.

【0040】一方、画情報を2階調に変換する場合に
は、0〜31のレベルが量子化誤差として生じることに
なる。この場合、誤差拡散フィルタ25aに従って、補
正値を算出しても、算出値が1以下になることは比較的
少ない。また、この場合、周囲の7画素から注目画素に
誤差配分するので、注目画素をより正しく補正すること
ができる。
On the other hand, when the image information is converted into 2 gradations, the levels 0 to 31 occur as a quantization error. In this case, even if the correction value is calculated according to the error diffusion filter 25a, the calculated value rarely becomes 1 or less. Further, in this case, since the error is distributed from the seven surrounding pixels to the target pixel, the target pixel can be corrected more correctly.

【0041】このように、本実施例では、取り出す画情
報の階調数が、8階調というように大きい場合には、参
照する周囲画素は2画素というように少なくすると共
に、各画素からの誤差配分の割合を大きくしている。ま
た、階調数が4階調以下というように小さい場合には、
参照する周囲画素を7画素というように多くして、各画
素からの誤差配分の割合を小さくするようにしている。
これにより、誤差拡散処理がより正確に実行され、取り
出す画情報の画質が向上するようになる。
As described above, in this embodiment, when the number of gradations of the image information to be extracted is as large as 8 gradations, the number of surrounding pixels to be referred to is reduced to 2 pixels, and at the same time, the reference pixels from each pixel are reduced. The ratio of error distribution is increased. When the number of gradations is as small as 4 gradations or less,
The number of surrounding pixels to be referred to is increased to 7 pixels to reduce the ratio of error distribution from each pixel.
As a result, the error diffusion process is executed more accurately, and the image quality of the image information to be extracted is improved.

【0042】次に、本発明の第4の実施例を説明する。Next, a fourth embodiment of the present invention will be described.

【0043】本実施例の画像処理装置は、図1と同一構
成で、誤差配分算出部25には、図6に示すように、誤
差拡散フィルタ25aを1つ備える。
The image processing apparatus of this embodiment has the same configuration as that of FIG. 1, and the error distribution calculating section 25 is provided with one error diffusion filter 25a as shown in FIG.

【0044】この構成で、本実施例では、取り出す画情
報が2階調または4階調の場合、誤差配分算出部25
は、誤差拡散フィルタ25aの全体A1から各数字を読
み取って、前述した第3の実施例と同様に画情報を処理
する。
With this configuration, in the present embodiment, when the image information to be extracted has 2 gradations or 4 gradations, the error distribution calculating section 25.
Reads each number from the entire A1 of the error diffusion filter 25a and processes the image information in the same manner as in the third embodiment.

【0045】一方、取り出す画情報が8階調の場合、誤
差配分算出部25は、誤差拡散フィルタ25aの一部の
領域A2から2つの数字を読み取って同様に画情報を処
理する。この場合、その特定領域A2の2つの数字は、
どちらも「4」であるので、図5の誤差拡散フィルタ2
5bを用いる場合と同一の補正値を算出して、同様に処
理することがができる。
On the other hand, when the image information to be extracted has 8 gradations, the error distribution calculation unit 25 reads two numbers from the partial area A2 of the error diffusion filter 25a and processes the image information in the same manner. In this case, the two numbers in the specific area A2 are
Since both are "4", the error diffusion filter 2 of FIG.
The same correction value as in the case of using 5b can be calculated and processed in the same manner.

【0046】このように、取り出す画情報の階調数に応
じて、誤差拡散フィルタの読取領域を変えることによ
り、前述の第3の実施例と同様の処理が実行できると共
に、備える誤差拡散フィルタは1つだけでよくなる。
In this way, by changing the reading area of the error diffusion filter according to the number of gradations of the image information to be taken out, the same processing as that of the third embodiment can be executed, and the error diffusion filter provided is Only one is enough.

【0047】次に、本発明の第5の実施例を説明する。Next, a fifth embodiment of the present invention will be described.

【0048】本実施例の画像処理装置は、図1と同一構
成で、誤差配分算出部25を、図7に示すように構成す
る。すなわち、周囲画素位置指示部251は、図8に示
すように、注目画素「*」の周囲の7つの各画素位置を
指示するものである。演算回路252,253は、それ
ぞれ各画素の量子化誤差を因子とする一定の演算を実行
するものである。加算器254は、演算回路252と2
53の算出値を加算するものである。ビットシフト回路
255,256は、入力データを一定ビット数シフトす
るものである。
The image processing apparatus of this embodiment has the same configuration as that of FIG. 1, and the error distribution calculating unit 25 is configured as shown in FIG. That is, as shown in FIG. 8, the surrounding pixel position designating section 251 designates each of the seven pixel positions around the target pixel “*”. The arithmetic circuits 252 and 253 each perform a constant arithmetic operation with the quantization error of each pixel as a factor. The adder 254 includes the arithmetic circuits 252 and 2
The calculated value of 53 is added. The bit shift circuits 255 and 256 are for shifting the input data by a fixed number of bits.

【0049】この構成で、演算回路252と253に
は、記憶部24から注目画素周囲の各画素の量子化誤差
が入力される。ここで、図8に示すように、周囲画素位
置指示部251が指示する7つの周囲画素の量子化誤差
がA〜Gであるとすると、演算回路252は変数X1、
演算回路253は変数X2をそれぞれ次式により算出す
る。 X1=4C+4G X2=A+2B+2D+E+2F そして、加算器254は、算出された変数X1とX2と
加算する。
With this configuration, the quantization error of each pixel around the target pixel is input from the storage unit 24 to the arithmetic circuits 252 and 253. Here, as shown in FIG. 8, assuming that the quantization errors of the seven surrounding pixels designated by the surrounding pixel position designating unit 251 are A to G, the arithmetic circuit 252 sets the variable X1,
The arithmetic circuit 253 calculates the variable X2 by the following equations. X1 = 4C + 4G X2 = A + 2B + 2D + E + 2F Then, the adder 254 adds the calculated variables X1 and X2.

【0050】演算回路252で算出された変数X1は2
進数のデータとしてビットシフト回路255に入力され
る。また、加算器254で算出された(X1+X2)の
値も、2進数のデータとしてビットシフト回路256に
入力される。
The variable X1 calculated by the arithmetic circuit 252 is 2
It is input to the bit shift circuit 255 as data of a base number. The value of (X1 + X2) calculated by the adder 254 is also input to the bit shift circuit 256 as binary data.

【0051】本実施例では、ビットシフト回路255
は、取り出す画情報の階調数が8階調の場合に動作し、
ビットシフト回路256は、2階調または4階調の場合
にが動作する。
In this embodiment, the bit shift circuit 255
Operates when the number of gradations of the extracted image information is eight,
The bit shift circuit 256 operates when there are two gradations or four gradations.

【0052】いま、ビットシフト回路255が動作した
とすると、ビットシフト回路255は、変数X1のデー
タの各ビットを下位方向に3ビットシフトする。このビ
ットシフトにより、変数X1の値が1/8になる。変数
X1は、(4C+4G)という値であったので、これに
より、図5の誤差拡散フィルタ25bに基ずいて算出し
た補正値と同一値が得られる。
Now, assuming that the bit shift circuit 255 operates, the bit shift circuit 255 shifts each bit of the data of the variable X1 by 3 bits in the lower direction. By this bit shift, the value of the variable X1 becomes 1/8. Since the variable X1 has a value of (4C + 4G), the same value as the correction value calculated based on the error diffusion filter 25b of FIG. 5 is obtained.

【0053】一方、ビットシフト回路256が動作した
とすると、ビットシフト回路256は、(X1+X2)
のデータの各ビットを下位方向に4ビットシフトする。
このビットシフトにより、そのデータ値が1/16にな
る。これにより、図5の誤差拡散フィルタ25aに基ず
いて算出した補正値と同一値が得られる。
On the other hand, if the bit shift circuit 256 operates, the bit shift circuit 256 operates as (X1 + X2).
4 bits of each bit of the data are shifted downward.
This bit shift reduces the data value to 1/16. As a result, the same value as the correction value calculated based on the error diffusion filter 25a of FIG. 5 is obtained.

【0054】以上のように、本実施例では、2種類の算
出方法で補正値を算出するが、それぞれの演算におい
て、演算部252を共用するようにしたので、ハードウ
ェアを削減することができる。
As described above, in the present embodiment, the correction value is calculated by two kinds of calculation methods, but since the calculation unit 252 is shared in each calculation, the hardware can be reduced. .

【0055】なお、以上の各実施例では、注目画素の補
正値の算出方法は、2種類に設定したが、3種類以上に
設定してもよいことは当然である。
In each of the above embodiments, the calculation method of the correction value of the pixel of interest is set to two types, but it is natural that it may be set to three or more types.

【0056】また、取り出す画情報の階調数は、2,4
あるいは8階調の3種類に固定したが、任意の階調数を
設定するようにしてもよい。また、スキャナ1では、6
4階調で原稿画像を読み取るようにしだか、この階調数
も任意に設定できることはいうまでもない。
The number of gradations of the image information to be extracted is 2, 4
Alternatively, the number of gradations is fixed to three, but the number of gradations may be set arbitrarily. Also, in the scanner 1, 6
It goes without saying that the number of gradations can also be set arbitrarily, whether or not the original image is read in four gradations.

【0057】[0057]

【発明の効果】以上のように、本発明によれば、オペレ
ータが画情報の階調数を指定すると、多階調の画情報が
指定された階調数の画情報に変換されるので、処理内容
に応じて、取り出す画情報の階調数を任意に変更するこ
とができるようになる。
As described above, according to the present invention, when the operator specifies the gradation number of the image information, the multi-gradation image information is converted into the image information of the specified gradation number. It is possible to arbitrarily change the number of gradations of the extracted image information according to the processing content.

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

【図1】本発明の第1の実施例に係る画像処理装置のブ
ロック構成図である。
FIG. 1 is a block configuration diagram of an image processing apparatus according to a first embodiment of the present invention.

【図2】量子化部のブロック構成図である。FIG. 2 is a block configuration diagram of a quantization unit.

【図3】本発明の第2の実施例における量子化部のブロ
ック構成図である。
FIG. 3 is a block configuration diagram of a quantization unit in a second exemplary embodiment of the present invention.

【図4】上記量子化部の制御方法を示す説明図である。FIG. 4 is an explanatory diagram showing a method of controlling the quantizer.

【図5】本発明の第3の実施例における誤差拡散フィル
タの切り換え方法の説明図である。
FIG. 5 is an explanatory diagram of an error diffusion filter switching method according to a third embodiment of the present invention.

【図6】本発明の第4の実施例における誤差拡散フィル
タの使用方法の説明図である。
FIG. 6 is an explanatory diagram of a method of using the error diffusion filter according to the fourth embodiment of the present invention.

【図7】本発明の第5の実施例における誤差配分算出部
のブロック構成図である。
FIG. 7 is a block configuration diagram of an error distribution calculation unit in a fifth embodiment of the present invention.

【図8】参照する周囲画素位置の説明図である。FIG. 8 is an explanatory diagram of surrounding pixel positions for reference.

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

1 スキャナ 2 誤差拡散処理部 3 切換回路 4 プロッタ 5 送信部 21,254 加算器 22 量子化部 23 誤差検出部 24 記憶部 25 誤差配分算出部 25a,25b 誤差拡散フィルタ 221〜227 比較器 228 選択部 229 エンコーダ 230 除算器 251 周囲画素位置指示部 252,253 演算回路 255,256 ビットシフト回路 1 Scanner 2 Error Diffusion Processing Section 3 Switching Circuit 4 Plotter 5 Transmission Section 21,254 Adder 22 Quantization Section 23 Error Detection Section 24 Storage Section 25 Error Distribution Calculation Section 25a, 25b Error Diffusion Filter 221-227 Comparator 228 Selection Section 229 Encoder 230 Divider 251 Surrounding pixel position designator 252, 253 Arithmetic circuit 255, 256 bit shift circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 多階調の画情報をより小さい一定階調数
の画情報に変換して出力する画像処理装置において、出
力する画情報の階調数を任意に指定する階調数指定手段
と、上記多階調の画情報を指定された上記階調数の画情
報に変換する階調数変換手段を備えていることを特徴と
する画像処理装置。
1. An image processing apparatus for converting multi-gradation image information into smaller fixed gradation number of image information and outputting the image information, the gradation number designating unit arbitrarily specifying the gradation number of the image information to be output. And an image number conversion means for converting the multi-tone image information into image information of the specified number of tones.
【請求項2】 誤差拡散法により多階調の画情報をより
小さい一定階調数の画情報に変換して出力する画像処理
装置において、出力する画情報の階調数を指定する階調
数指定手段と、個々の周囲画素で発生した量子化誤差を
設定した割合で注目画素に加算する誤差拡散処理を実行
する際に、出力する画情報の階調数が大きい場合には上
記周囲画素の数を少なくして上記割合を大きい値に設定
する一方、上記階調数が小さい場合には、上記周囲画素
の数を多くして上記割合を小さい値に設定する誤差配分
変更手段を備えていることを特徴とする画像処理装置。
2. An image processing apparatus for converting multi-gradation image information into smaller fixed gradation number of image information by an error diffusion method and outputting the image information, the gradation number specifying the gradation number of the image information to be output. When performing the error diffusion process of adding the quantizing error generated in the individual surrounding pixels to the target pixel at a set ratio when the gradation number of the image information to be output is large, An error distribution changing means is provided to decrease the number and set the ratio to a large value, while increasing the number of the surrounding pixels to set the ratio to a small value when the gradation number is small. An image processing device characterized by the above.
【請求項3】 多階調の画情報をより少ない一定階調数
の画情報に変換して出力する画像処理装置において、上
記多階調の画情報の各画素濃度と予め設定されたしきい
値とを比較する複数の比較器と、出力する画情報の階調
数を指定する階調数指定手段と、上記複数の比較器の内
から指定された上記階調数より1つ少ない特定の比較器
から比較結果を取り出す比較器選択手段と、取り出した
比較結果を指定された上記階調数の画情報に変換するエ
ンコーダとを備えていることを特徴とする画像処理装
置。
3. An image processing apparatus for converting multi-gradation image information into image information having a smaller number of fixed gradations and outputting the image information, wherein each pixel density of the multi-gradation image information and a preset threshold value. A plurality of comparators that compare the values with each other; a gradation number designating unit that specifies the number of gradations of the image information to be output; and a specific one less than the number of gradations designated from the plurality of comparators. An image processing apparatus comprising: a comparator selecting unit that extracts a comparison result from a comparator; and an encoder that converts the extracted comparison result into image information of the specified gradation number.
【請求項4】 多階調の画情報をより少ない一定階調数
の画情報に変換して出力する画像処理装置において、変
換する画情報の階調数を指定する階調数指定手段と、上
記多階調の画情報の各画素濃度を指定された上記階調数
に応じて定められた除数で除算することにより指定され
た上記階調数の画情報を得る除算手段とを備えているこ
とを特徴とする画像処理装置。
4. An image processing device for converting multi-gradation image information into image information having a smaller fixed number of gradations and outputting the image information, and a gradation number specifying means for specifying the number of gradations of the image information to be converted, And dividing means for obtaining image information of the specified gradation number by dividing each pixel density of the multi-gradation image information by a divisor determined according to the specified gradation number. An image processing device characterized by the above.
JP43A 1992-12-07 1992-12-07 Image processor Pending JPH06178108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP43A JPH06178108A (en) 1992-12-07 1992-12-07 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP43A JPH06178108A (en) 1992-12-07 1992-12-07 Image processor

Publications (1)

Publication Number Publication Date
JPH06178108A true JPH06178108A (en) 1994-06-24

Family

ID=18415062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP43A Pending JPH06178108A (en) 1992-12-07 1992-12-07 Image processor

Country Status (1)

Country Link
JP (1) JPH06178108A (en)

Similar Documents

Publication Publication Date Title
JP2794281B2 (en) Code decoding processor for dither signal
JPS62216476A (en) Picture processor
US6330075B1 (en) Image processing method and apparatus
EP0613290B1 (en) Method and apparatus for binary image data compression
JP2756371B2 (en) Image processing device
JPH06178108A (en) Image processor
JPH01115271A (en) Image processor
JPH07302190A (en) Divider and image signal reader using the same
JP2570890B2 (en) Image processing device
JP2900907B2 (en) Image processing device
JPS5814673A (en) Gradation signal restoring system
JPH09102886A (en) Method and device for image processing
JP3051144B2 (en) Halftone image processing device
JP3549475B2 (en) Image processing method
JP3157870B2 (en) Image processing method
JPH06233122A (en) Image processor
JPS632517B2 (en)
KR910002773B1 (en) Quast-medium picture data procossing method
JP3315705B2 (en) Image processing device
JP3732329B2 (en) Pseudo halftone image encoding apparatus and encoding method
JPS5812472A (en) Picture signal processor
JPH07273990A (en) Image processor
JPH0397370A (en) Linear density converter for binary picture
JP2001136389A (en) Picture processor
JPH06334863A (en) Picture processing unit