JPS63181569A - Picture processing method - Google Patents

Picture processing method

Info

Publication number
JPS63181569A
JPS63181569A JP62013688A JP1368887A JPS63181569A JP S63181569 A JPS63181569 A JP S63181569A JP 62013688 A JP62013688 A JP 62013688A JP 1368887 A JP1368887 A JP 1368887A JP S63181569 A JPS63181569 A JP S63181569A
Authority
JP
Japan
Prior art keywords
density
picture elements
block
data
error
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.)
Granted
Application number
JP62013688A
Other languages
Japanese (ja)
Other versions
JP2608404B2 (en
Inventor
Akihiro Katayama
昭宏 片山
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 JP62013688A priority Critical patent/JP2608404B2/en
Priority to US07/145,593 priority patent/US5008950A/en
Publication of JPS63181569A publication Critical patent/JPS63181569A/en
Application granted granted Critical
Publication of JP2608404B2 publication Critical patent/JP2608404B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Color, Gradation (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To eliminate a characteristic texture in a part monotonous in a density change by binarizing (nXn) picture elements as one block and reallocating error data generated in this binarization processing to adjacent blocks. CONSTITUTION:The sum of the density of picture data is obtained, and then, the number of black picture elements N=[S/Q] and a remainder E=S-NXQ are obtained. In this case, [ ] indicates a Gauss' notation and Q is a prescribed picture signal level. Then, only N picture elements are transformed to the black picture elements in the series of size and a residual elements are decided to white picture elements, thereby, the density of Q is obtained. The error E is weighted to reallocate to the blocks on the circumference of remarkable blocks Bi, j. Thereby, the black picture elements are converged on the higher density to generate an edge emphasizing effect.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、画像処理方法に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to an image processing method.

[従来の技術] 中間調を有する画像をドツトマトリクスプリンタで出力
する場合、その画像データの二値化処理を行なう心安が
ある。この二値化処理方法は各種発表されているが、誤
差拡散法(ErrorDiffu+ion )と呼ばれ
る二値化方法が他の方法よりも画質の点で優れている。
[Prior Art] When outputting an image having halftones using a dot matrix printer, it is safe to perform binarization processing on the image data. Various binarization processing methods have been announced, but a binarization method called the error diffusion method (Error Diff+ion) is superior to other methods in terms of image quality.

しかし、この方法゛は、独特のテクスチャーが発生し、
濃淡変化が単調な場合、そのテクスチャーが著しく目立
つという問題がある。
However, this method produces a unique texture,
When the grayscale changes are monotonous, there is a problem in that the texture is extremely noticeable.

[発明の目的] 本発明は、上記従来方法における問題点に着目してなさ
れたもので、濃度変化の単調な部分において、独特のテ
クスチャーをなくすことができる画像処理方法を提供す
ることを目的とするものである。
[Object of the Invention] The present invention has been made in view of the problems in the conventional methods described above, and an object of the present invention is to provide an image processing method that can eliminate unique textures in areas where density changes are monotonous. It is something to do.

[発明の実施例] 第1rAは、本9.明の一実施例を示すブロック図であ
る。
[Embodiments of the Invention] The 1st rA is based on Book 9. FIG. 2 is a block diagram showing one embodiment of the present invention.

この実施例において、画像入力装2tlと、画像人力装
mlからの画像データと再配分回路6からのIIf配分
された誤差とを加えるデータ加算回路2と、データ加算
回路2からのデータの濃度総和に基いて黒画素数を決定
する黒画素数決定回路3と、画像入力装置1からの画像
データを濃度の大きい順に並びかえる順位付回路4と、
データ加算回路2からのデータの濃度の総和と二値化回
路7からの黒画素数とに基いて誤差を求めて補正する誤
差補正回路5と、この誤差補正回路5によって補正され
た画素を再配分する再配分回路6と、二値化回路7と、
画像出力装置8とが設けられている。
In this embodiment, an image input device 2tl, a data addition circuit 2 which adds the image data from the image input device ml and the IIf allocated error from the redistribution circuit 6, and a density summation of the data from the data addition circuit 2 are used. a black pixel number determining circuit 3 that determines the number of black pixels based on; a ranking circuit 4 that sorts the image data from the image input device 1 in descending order of density;
An error correction circuit 5 that calculates and corrects an error based on the sum of the density of data from the data addition circuit 2 and the number of black pixels from the binarization circuit 7; A redistribution circuit 6 for distributing, a binarization circuit 7,
An image output device 8 is provided.

エイ1化回路7は1人力したデータについて、決定され
た黒画素数だけ、大きい順から黒にし、その残りを白に
して二値化する回路である。
The A1 converting circuit 7 is a circuit that converts data created by one person into black pixels by the determined number of black pixels in descending order of magnitude, and converts the remaining pixels into white to binarize the data.

第2図(1)、(2)は、上記実施例における再配分回
路6の動作説明図である。
FIGS. 2(1) and 2(2) are explanatory diagrams of the operation of the redistribution circuit 6 in the above embodiment.

第2図(1)中のBはブロックを示し、Bi、jは注目
しているブロックを示す、また第2図(2)は、注目ブ
ロックBi、jの画素を示す図である。ブロックBは、
一般的にはnXn画素で構成されているが、第2図にお
いては4×4画素で構成されている。
In FIG. 2(1), B indicates a block, Bi,j indicates the block of interest, and FIG. 2(2) shows the pixels of the block of interest Bi,j. Block B is
Generally, it is made up of nXn pixels, but in FIG. 2 it is made up of 4×4 pixels.

次に、上記実施例の動作について説明する。Next, the operation of the above embodiment will be explained.

第3図は、上記実施例における動作を示すフローチャー
トである。
FIG. 3 is a flowchart showing the operation in the above embodiment.

まず、第2図(2)に示すような画像データの濃度の総
和Sを求める(S t) 、第2図に示す実施例の場合
、nXnのn=4であるから総和法に、黒画素数Nと余
りEとを求める (S2)。
First, calculate the sum S of the density of the image data as shown in FIG. 2 (2) (S t). In the case of the example shown in FIG. The number N and the remainder E are determined (S2).

N= [S/Q]・・・・・・・・・・・・(1)E=
S−NXQ・・・・・・・・・・・・(2)ただし、[
]は、ガウス記号([]内の整数部のみを求める記号)
であり、Qは、所定の画信号レベルである。
N= [S/Q]・・・・・・・・・・・・(1) E=
S-NXQ・・・・・・・・・・・・(2) However, [
] is a Gaussian symbol (a symbol that calculates only the integer part within [])
, and Q is a predetermined image signal level.

次に、第2図(2)に示す画像データの大5さ順を調べ
る。このときに同じ値のものは、予め定められた順位に
従って決める。上記のように調べられた大きさ順に、N
個だけ黒画素に変換しその残りは白画素に決定する(S
3)、つまり、濃度がQになる。
Next, the order of magnitude of the image data shown in FIG. 2 (2) is examined. At this time, items having the same value are determined according to a predetermined order. In order of size investigated as above, N
are converted to black pixels, and the rest are determined to be white pixels (S
3), that is, the concentration becomes Q.

そして、上記(2)式で求められた誤差Eを、屯み付し
て、第2図(1)に示した注目ブロックBi、jの周囲
のブロックに再配分する(S4)。
Then, the error E obtained by the above equation (2) is collected and redistributed to the blocks around the block of interest Bi, j shown in FIG. 2 (1) (S4).

上記のようにすることによって、濃度のより高い方に黒
画素が集り、これによって、エツジ強調効果が生じる。
By doing the above, black pixels are concentrated in areas with higher density, thereby producing an edge enhancement effect.

また、入力画像と出力画像の平均濃度が、走査している
ブロックサイズにおいてほぼ等しいので、モワレが発生
しない。
Further, since the average density of the input image and the output image are approximately equal in the block size being scanned, moire does not occur.

第4図は、本発明における他の実施例を示すブロック図
である。
FIG. 4 is a block diagram showing another embodiment of the present invention.

この実施例は、画像入力装置9と、画像入力装置9から
の入力データと再配分回路13から再配分された誤差と
を加えあわせるデータ加算回路10と、データ加算回路
10に接続され、ブロック内の黒画素数を仮に決定する
黒画素数仮決定回路11と、ブロック内の黒画素数を正
式に決定する黒画素数決定回路12と、補正された誤差
を再配分する再配分回路13と、デ:り加算回路lOか
らのデータと二値化回路16からの二値化データとの誤
差を補正する誤差補正回路14と、画像人力装置9から
の入力データを大きい順に順位付する順位付回路15と
、入力データを黒または白に決定する二値化回路16と
、二値化されたデータを出力する画像出力装置17とを
有する。
This embodiment is connected to an image input device 9, a data addition circuit 10 that adds input data from the image input device 9, and an error redistributed from a redistribution circuit 13, and is connected to the data addition circuit 10. A black pixel number provisional determination circuit 11 that temporarily determines the number of black pixels in a block, a black pixel number determination circuit 12 that officially determines the number of black pixels in a block, and a redistribution circuit 13 that redistributes the corrected error. D: An error correction circuit 14 that corrects the error between the data from the addition circuit IO and the binarized data from the binarization circuit 16, and a ranking circuit that ranks the input data from the image processing device 9 in descending order of magnitude. 15, a binarization circuit 16 that determines input data to be black or white, and an image output device 17 that outputs the binarized data.

次に、第4図に示す実施例の動作について説明する。Next, the operation of the embodiment shown in FIG. 4 will be explained.

第5図は、第4図に示す実施例の動作を示すフローチャ
ートである。
FIG. 5 is a flowchart showing the operation of the embodiment shown in FIG.

まず、ブロック内の画像データの濃度の総和Sを求める
(S l 1) 、上記の場合、4×4の画像データで
あるため、 次に、黒画素数Nと余りEとを求める (S 12) 。
First, calculate the sum S of the density of the image data in the block (S l 1). In the above case, since the image data is 4 x 4, next calculate the number N of black pixels and the remainder E (S 12 ).

N= [S/Ql・・・・・・・・・・・・(3)E=
S−QXN・・・・・・・・・・・・(4)ただし、[
]はガウス記号であり、その記号の中の整数部分のみを
求めるものである。またQは、所定の画信号レベルであ
り1通常は、原画像の階調数と同じ値をとるが、それに
限定されることがない。
N= [S/Ql・・・・・・・・・・・・(3) E=
S-QXN・・・・・・・・・・・・(4) However, [
] is a Gaussian symbol, which calculates only the integer part of the symbol. Further, Q is a predetermined image signal level and usually takes the same value as the number of gradations of the original image, but is not limited thereto.

次に、上記(4)式で求めた余りEを使って、閾値Zと
比較し、その結果、余りEが閾(I 2以上ならば(5
13)、黒画素数Nを1インクリメントI、(Si2)
、余りEを(E−Q)に置き換える(S 15) 。
Next, using the remainder E obtained by the above equation (4), it is compared with the threshold Z, and as a result, if the remainder E is greater than or equal to the threshold (I 2), then (5
13), Increment the number of black pixels N by 1, (Si2)
, the remainder E is replaced with (E-Q) (S15).

この場合、閾値Zを固定してもよいが、たとえばブロッ
ク内の平均濃度が高い場合は、閾値Zを小さくシ、ブロ
ック内の平均濃度が高い場合は、閾値Zを大きくすると
いうように、可変間イ1にしてもよい。
In this case, the threshold Z may be fixed, but it may be variable, such as decreasing the threshold Z if the average concentration in the block is high, and increasing the threshold Z if the average concentration in the block is high. You can also set the interval to 1.

次に、ブロック内のデータを大きい順に、N個だけ黒画
素と決定する(S 16) 、ただし、データの大きさ
が等しい場合は予め定められた順位をとるものとし、そ
の順位に従って、黒画素を決定する。
Next, N pieces of data in the block are determined to be black pixels in descending order (S16).However, if the data sizes are equal, a predetermined rank is taken, and according to that rank, black pixels Determine.

そして、二値化したときの誤差Eを周囲のブロックに重
み付して再配分する(S l 7) 、このときの配分
例としては、主走査、副走査方向に接っしているブロッ
クと、斜め方向に接っしているブロックとの配分比を、
2対lにする方法がある。
Then, the error E when binarized is weighted and redistributed to the surrounding blocks (S l 7). An example of the distribution at this time is between blocks that are adjacent to each other in the main scanning and sub-scanning directions. , the distribution ratio with the blocks that are in contact with the diagonal direction,
There is a way to make it 2:1.

しかし、他の配分方法を採用してもよい。However, other allocation methods may be adopted.

このようにして、1ブロツク内の二値化が終了し、次の
ブロック内をエイ1化する場合、再配分された誤差とブ
ロック内のC度データとの総和をSにし、丑記処理を緑
返す、これを全ブロックに対して行なうことによって、
全データのエイ1化を行なうことができる。
In this way, when the binarization in one block is completed and the next block is to be binarized, the sum of the redistributed error and the C degree data in the block is set to S, and the process described above is performed. Return green. By doing this for all blocks,
All data can be converted to ray 1.

上記のように、画像データをブロックに分割し、ブロッ
ク内の平均濃度が二値化前とエイ1化後とでほぼ等しく
なるように、二値化前と二値化後との誤差を周囲のブロ
ックに屯み付して配分することによって、モワレを抑制
し、しかもエツジ強調効果が発揮される。
As mentioned above, the image data is divided into blocks, and the error between before and after binarization is adjusted so that the average density within the block is almost the same before and after binarization. By distributing it to the blocks, moiré can be suppressed and an edge enhancement effect can be achieved.

[発明の効果] 本発明によれば、濃度変化の単調な部分において、独特
のテクスチャーをなくすことができるという効果を有す
る。
[Effects of the Invention] According to the present invention, there is an effect that a unique texture can be eliminated in a monotonous portion of density change.

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

第1図は、本発明の一実施例を示すブロック図である。 第2図(1)は、注目ブロックの誤差の配分先を示す図
である。 第2図(2)は、注目ブロックBi、jにおける各画素
の濃度を示す図である。 第3図は、上記実施例の動作を示すフローチャートであ
る。 第4図は、本発明の他の実施例を示すブロック。 図である。 第5図は、第4図に示す実施例の動作を示すフローチャ
ートである。 l、9・・・画像人力装置、 3.12・・・黒画素数決定回路、 ll・・・黒画素数仮決定回路。 4.15・・・順位付回路、 5.14・・・誤差補正回路、 6.13・・・再配分回路、 7.16・・・エイ1化回路。 特許出願人  キャノン株式会社 同代理人   用久保  新 − 第1図 第2図 (2) B1.j 第3図 第4図
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2(1) is a diagram showing where the error of the block of interest is allocated. FIG. 2(2) is a diagram showing the density of each pixel in the block of interest Bi,j. FIG. 3 is a flowchart showing the operation of the above embodiment. FIG. 4 is a block diagram showing another embodiment of the present invention. It is a diagram. FIG. 5 is a flowchart showing the operation of the embodiment shown in FIG. l, 9... Image human power device, 3.12... Black pixel number determination circuit, ll... Black pixel number provisional determination circuit. 4.15... Ranking circuit, 5.14... Error correction circuit, 6.13... Redistribution circuit, 7.16... Stingray 1 circuit. Patent applicant Canon Co., Ltd. Agent Arata Yokubo - Figure 1 Figure 2 (2) B1. j Figure 3 Figure 4

Claims (1)

【特許請求の範囲】 画像入力装置で得られた中間調を有する画像データを、
誤差拡散法に基づいて二値化処理する画像処理方法にお
いて、 nXn画素を1つのブロックとして二値化処理し、この
二値化処理で発生した誤差データを、隣接するブロック
に再配分することを特徴とする画像処理方法。
[Claims] Image data having halftones obtained by an image input device,
In an image processing method that performs binarization processing based on the error diffusion method, nXn pixels are binarized as one block, and the error data generated in this binarization processing is redistributed to adjacent blocks. Featured image processing method.
JP62013688A 1987-01-22 1987-01-22 Image processing device Expired - Lifetime JP2608404B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62013688A JP2608404B2 (en) 1987-01-22 1987-01-22 Image processing device
US07/145,593 US5008950A (en) 1987-01-22 1988-01-19 Image processing method and apparatus for error-dispersion digitization without moire or spurious stripe formation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62013688A JP2608404B2 (en) 1987-01-22 1987-01-22 Image processing device

Publications (2)

Publication Number Publication Date
JPS63181569A true JPS63181569A (en) 1988-07-26
JP2608404B2 JP2608404B2 (en) 1997-05-07

Family

ID=11840128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62013688A Expired - Lifetime JP2608404B2 (en) 1987-01-22 1987-01-22 Image processing device

Country Status (1)

Country Link
JP (1) JP2608404B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007202148A (en) * 2006-01-26 2007-08-09 Xerox Corp System and method for highly addressable binary image generation

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60196067A (en) * 1984-03-19 1985-10-04 Matsushita Electric Ind Co Ltd Method and device for processing picture signal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60196067A (en) * 1984-03-19 1985-10-04 Matsushita Electric Ind Co Ltd Method and device for processing picture signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007202148A (en) * 2006-01-26 2007-08-09 Xerox Corp System and method for highly addressable binary image generation

Also Published As

Publication number Publication date
JP2608404B2 (en) 1997-05-07

Similar Documents

Publication Publication Date Title
US5201013A (en) Dither processing method
US4821334A (en) Image processing apparatus
KR960014303B1 (en) Image processing device for resolution conversion
JPS6342902B2 (en)
JPS62216476A (en) Picture processor
EP0382581A2 (en) Image processing apparatus
JPS63181569A (en) Picture processing method
Singh Generalized error diffusion method for halftoning
JP3015049B2 (en) Image data processing method
JPS5814673A (en) Gradation signal restoring system
JPH0451378A (en) Picture processor
JPH0197066A (en) Picture processing method
JPS63245570A (en) Picture processor
JPH03243063A (en) Method for binarizing multilevel image
JPH0426277A (en) Image processing method
JPS62107572A (en) Image processor
JPH02285771A (en) Picture processing unit
JPH03187677A (en) Image processor
JPH02285773A (en) Picture processing unit
JPH0465974A (en) Image processor
JPH0818783A (en) Picture processor
JP2000059623A (en) Threshold processing circuit and method for image data
JPH09102869A (en) Image processor
JPS61118071A (en) Picture processing device
JPH04362871A (en) Image processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term