JPH0435164A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0435164A
JPH0435164A JP2133848A JP13384890A JPH0435164A JP H0435164 A JPH0435164 A JP H0435164A JP 2133848 A JP2133848 A JP 2133848A JP 13384890 A JP13384890 A JP 13384890A JP H0435164 A JPH0435164 A JP H0435164A
Authority
JP
Japan
Prior art keywords
error
binarization
picture
data
printing
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
JP2133848A
Other languages
Japanese (ja)
Inventor
Seiichi Ito
誠一 伊藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2133848A priority Critical patent/JPH0435164A/en
Publication of JPH0435164A publication Critical patent/JPH0435164A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the reproducibility of a character and a line drawing with modulation by binarizing a picture by a least mean error or an error spread method and setting an error to 0 definitely when the absolute value of binarization error is a prescribed value or below. CONSTITUTION:A picture input section reads and quantizes an original and inputs it to a binarizing means. A noted picture element being an object of binarization processing at present is set to an m-th line and an n-th dot in a picture space and an original data of the n-th dot is set to Dm,n. At first, line image sensors arranged by N dots in the main scanning direction of the picture input section read the picture and the original picture data quantized in response to the picture density is inputted to a binarization means. The original picture data is stored to a position corresponding to the original data line buffer 201. On the other hand, a binarization error E generated at picture elements already binarized around the noted picture element is read from an error data line memory 203 and inputted to a mean error arithmetic section 204 to obtain a weight mean of the binarization error. Thus, whether a picture element is a white picture element or a black picture element is discriminated. Only when the absolute value of the binarization error Em,n is small, a binarization error limit section 209 applies replacement of Em,n=0 and the result is stored in a position corresponding to the memory 203.

Description

【発明の詳細な説明】 〔概 要〕 多階調量子化された入力画像データを平均誤差最小法若
しくは誤差拡散法等の濃度保存型の2値化方式により2
値化し、疑似中間調画像を得る画像処理方法に関し、 2値化誤差が所定の範囲のときにその誤差を一義的に0
として処理し、輪郭を明瞭にした画像品質を得ることを
目的とし、 前段にて多階調量子化された入力画像データを平均誤差
最小法若しくは誤差拡散法により2値化する平均誤差最
小法/誤差拡散法2値化手段吉、前記平均誤差最小法/
誤差拡散法2値化手段の2値化データを受け印字を制御
する制御手段と、前記平均誤差最小法/誤差拡散法2値
化手段の2値出力データを前記制御手段の制御のもとに
入力し用紙に印字する印字手段を備える画像処理装置に
おいて、前記平均誤差最小法/誤差拡散法2値化手段は
、2値化誤差が所定の範囲のときに、前記2値化誤差を
一義的に0として処理する2値化誤差制限部を具備する
ように構成する。
[Detailed Description of the Invention] [Summary] Multi-tone quantized input image data is digitized using a density-preserving binarization method such as the minimum average error method or the error diffusion method.
Regarding the image processing method to obtain a pseudo-halftone image by converting the binarization error into a predetermined range, the error can be uniquely reduced to 0.
In order to obtain image quality with clear outlines, the input image data, which has been multi-tone quantized in the previous stage, is binarized using the minimum average error method or the error diffusion method. Error diffusion method binarization method, said minimum average error method/
control means for receiving the binary data of the error diffusion method binarization means and controlling printing; and controlling the binary output data of the average error minimum method/error diffusion method binarization means under the control of the control means. In an image processing apparatus equipped with a printing means for inputting data and printing it on paper, the average error minimum method/error diffusion method binarization means uniquely converts the binarization error when the binarization error is within a predetermined range. It is configured to include a binarization error limiting unit that processes the data as 0.

〔産業上の利用分野〕[Industrial application field]

本発明は多階調量子化された入力画像データを平均誤差
最小法若しくは誤差拡散法等の濃度保存型の2値化方式
により2値化し、疑似中間調画像を得る画像処理方法に
関し、例えば、ファクシミリ装置やイメージスキャナ装
置に用いる画像処理装置の疑似中間調画像を得る方法の
改善に関する。
The present invention relates to an image processing method for obtaining a pseudo-halftone image by binarizing multi-tone quantized input image data using a density-preserving binarization method such as the minimum average error method or the error diffusion method. The present invention relates to an improvement in a method for obtaining a pseudo-halftone image of an image processing device used in a facsimile machine or an image scanner device.

〔従来の技術〕[Conventional technology]

画像処理装置における疑似中間調表示として、−船釣に
デイザ法が知られている。デイザ法は各画素の濃度値を
画素毎に変化するしきい値で2値化する方法であり、原
画の画素と表現の画素が1対1で対応する。そして、デ
イザ法の一種に組織的デイザ法があり、しきい値の配列
の相違により[3ayer形、網点形、渦巻形等がある
、さらに、これらの形式は白点が集中しているか分散し
ているかによりドツト集中型(渦巻形)とドツト分散型
(Bayer形、網点形)に分類することができる。
As a pseudo halftone display in an image processing device, a dither method is known for boat fishing. The dither method is a method of binarizing the density value of each pixel using a threshold value that changes for each pixel, and the pixels of the original image correspond to the pixels of the expression on a one-to-one basis. One type of dithering method is the systematic dithering method, which is divided into three ayer shapes, halftone dot shapes, spiral shapes, etc. due to differences in the arrangement of threshold values. Depending on the shape of the dots, they can be classified into dot concentrated type (spiral type) and dot dispersed type (Bayer type, halftone dot type).

具体的には組織的デイザ法は画面をη×nドツトのサブ
マトリクスの集合と見なし、このサブマトリクス内の画
像情報のみによってそのサブマトリクス内のしきい値を
定めるものである。
Specifically, the systematic dither method regards the screen as a set of submatrices of η×n dots, and determines the threshold value within the submatrix based only on the image information within the submatrix.

組織的デイザ法は上述のように2値記録であるため記録
が簡単で記録の安定性が良い等の特徴があり、かつ2値
化のためハードウェア構成が簡単なため、比較的低価格
で装置の実現が可能であるという利点も有する。
As mentioned above, the systematic dither method uses binary recording, so it is easy to record and has good recording stability.Also, because it is binary, the hardware configuration is simple, so it is relatively inexpensive. It also has the advantage that it is possible to implement the device.

一方、デイザ法のさらに他の種類として、Manf r
ed、R,5chroeder (米ベル研)、 rI
mages fromComputers J 、 I
tEEE Spectrum、 Vol、6. pp6
6−78゜1969で発表され、その後、J、 F、 
Javris、 C9N、 Judice。
On the other hand, as yet another type of dither method, Manfr
ed, R, 5chroeder (Bell Labs, USA), rI
images from Computers J, I
tEEE Spectrum, Vol. 6. pp6
6-78゜1969, followed by J, F,
Javris, C9N, Judice.

and W、 H,N1nke(米ベル研)等によって
改良され、rA 5urvey of Techniq
ues for the Display ofCon
tinuous Tone Pictures on 
B11evel Displays」Computer
 Graphics and Image Proce
ssing、Vol5、 pp13−40.1976で
論文発表された平均誤差最小法がある。平均誤差最小法
は参照画素の読取濃度と表示濃度との誤差を注目画素と
の距離で重み付けして平均した誤差を、注目画素に加え
て一定しきい値で2値化する方法である。即ち、後述す
るように注目画素の濃度データを周辺画素で発生した2
値化誤差の加重平均値で補正することにより、原画像と
出力画像の濃度が等しくなるようにしたものである。
and W, H, N1nke (Bell Labs, USA), etc., and rA 5urvey of Techniq
ues for the Display ofCon
Tiny Tone Pictures on
B11evel Displays”Computer
Graphics and Image Process
There is a minimum average error method that was published in a paper published in Vol. ssing, Vol. 5, pp. 13-40.1976. The minimum average error method is a method in which the error between the read density and display density of a reference pixel is weighted by the distance to the pixel of interest, and the averaged error is added to the pixel of interest and binarized using a constant threshold. That is, as will be described later, the density data of the pixel of interest is generated by the surrounding pixels.
The density of the original image and the output image are made equal by correcting using the weighted average value of the conversion errors.

この平均誤差最小法では上述の組織的デイザ法のように
マトリクスサイズで一義的に表現階調数が決定されるこ
とがなく、また周期的な縞模様である所謂モアレが発生
しない等の階調性や、解像度の点で優れた方式である。
In this minimum average error method, unlike the systematic dither method described above, the number of expressed gradations is not uniquely determined by the matrix size, and the number of gradations that are expressed in a periodic striped pattern does not occur. This method is superior in terms of performance and resolution.

さらに、デイザ法の一種として、R,l’1.Floy
d andL Steinberg rAn Adap
tive Algorithm for 5patia
lGrey 5CaleJ 1975 SID Int
ernational SymposiumDiges
t of Techical Papers、4.3.
 pp36−37(Apr。
Furthermore, as a type of dither method, R, l'1. Floy
d andL Steinberg rAn Adap
tive Algorithm for 5patia
lGrey 5CaleJ 1975 SID Int
ernational Symposium Diges
to of Technical Papers, 4.3.
pp36-37 (Apr.

1975)で論文発表された誤差拡散法がある。誤差拡
散法は平均誤差最小法と同様に、中間濃度の画素を最大
濃度又は最小濃度の画素と同じく2値化した際の差分を
周辺画素の濃度を修正し補うことにより、原画像濃度と
出力画像濃度が等しくなるようにしたものであり、組織
的デイザ法のようにマトリクスサイズにより一義的に表
現階調数が決まってしまうことがなく、モアレも発生し
ない等階調性、解像度の点で優れた方式である。
There is an error diffusion method that was published in a paper in 1975). Similar to the minimum average error method, the error diffusion method corrects the density of surrounding pixels to compensate for the difference when a pixel with an intermediate density is binarized in the same way as a pixel with a maximum density or minimum density, so that the original image density and the output are The image density is made to be equal, and the number of expressed gradations is not determined uniquely by the matrix size, as is the case with organized dithering methods. This is an excellent method.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、組織的デイザ法には以下のような短所がある
。即ち、 ■原稿が印刷等の網点画像の場合、出力画像において原
稿には存在しないモアレが発生する、■2値のため文字
、線画等の処理結果が切れ切れになり階調性が悪く、従
って、著しく再現品質が悪い、そして ■多階調を得るにはマトリクスサイズを大きくし、高解
像度を得るためにはマトリクスサイズを小さくする、と
いう相反する性質があり、多階調と高解像度とを両立す
ることはできない、等である。
By the way, the systematic dither method has the following disadvantages. In other words, ■ If the original is a halftone image such as a printed image, moiré, which does not exist in the original, will occur in the output image. ■ Because the original is binary, the processing results of characters, line drawings, etc. will be cut off and the gradation will be poor. , reproduction quality is extremely poor, and ■ To obtain multiple gradations, the matrix size must be increased, and to obtain high resolution, the matrix size must be decreased. For example, they cannot be compatible.

一方、平均誤差最小法には以下に示す短所がある。即ち
、 ■単純2値化処理い比べると、まだ文字、線画の再現性
が劣る。即ち、原画像の微小なノイズも誤差として処理
され、黒、白の部分に粒状性ノイズが目立つ、 ■濃度が低い部分ではドツトの出現に空間的な遅れが生
じる。また、−様濃度の部分を処理すると近傍ドツトが
繋がった独特の縞パターンが発生し不快な感じを与えて
しまう、 等である。
On the other hand, the minimum average error method has the following disadvantages. That is, (1) Compared to simple binarization processing, the reproducibility of characters and line drawings is still inferior. That is, minute noise in the original image is also treated as an error, and granular noise is noticeable in black and white areas. (2) In areas with low density, there is a spatial delay in the appearance of dots. Furthermore, when processing a part with --like density, a unique striped pattern in which neighboring dots are connected occurs, giving an unpleasant feeling.

本発明の目的はこれらの問題点を解決し、平均誤差最小
法若しくは誤差拡散法の処理の中で2値化誤差の絶対値
を所定値と比較し、所定値以下の誤差を一義的にOとし
て処理し、文字、線画部と写真、中間調部の両方とも良
好な疑似中間調の画像を得る画像処理方法を提供するこ
とにある。
The purpose of the present invention is to solve these problems, and to compare the absolute value of the binarization error with a predetermined value during processing of the minimum average error method or error diffusion method, and to uniquely reduce the error below the predetermined value. It is an object of the present invention to provide an image processing method that can obtain a pseudo-halftone image with good quality in both characters, line drawings, photographs, and halftones.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理構成図である。 FIG. 1 is a diagram showing the principle configuration of the present invention.

本発明は、前段にて多階調量子化された入力画像データ
を平均誤差最小法により2値化する平均誤差最小法2値
化手段11と、前記平均誤差最小法2値化手段11の2
値化データを受け印字を制御する制御手段12と、前記
平均誤差最小法2値化手段11の2値出力データを前記
制御手段12の制御のちとに入力し用紙に印字する印字
手段13を備える画像処理装置において、若しくは 前段にて多階調量子化された入力画像データを誤差拡散
法により2値化する誤差拡散法2値化手段11と、前記
誤差拡散法2値化手段11の2値化データを受け印字を
制御する制御手段12と、前記誤差拡散法2値化手段1
1の2値出力データを前記制御手段12の制御のもとに
入力し用紙に印字する印字手段13を備える画像処理装
置において、前記平均誤差最小法2値化手段11は、2
値化誤差が所定の範囲のときに、前記2値化誤差を一義
的に0として処理する2値化誤差制限部209又は30
5を具備することを特徴とする。
The present invention comprises an average error minimum method binarization means 11 that binarizes input image data that has been multi-gradation quantized in the previous stage by an average error minimum method, and two parts of the average error minimum method binarization means 11.
It includes a control means 12 for receiving digitized data and controlling printing, and a printing means 13 for inputting the binary output data of the minimum average error method binarization means 11 after the control of the control means 12 and printing it on paper. an error diffusion method binarization means 11 that binarizes input image data multi-gradation quantized in the image processing device or at a previous stage by an error diffusion method; and a binary method of the error diffusion method binarization means 11. a control means 12 for receiving conversion data and controlling printing; and the error diffusion method binarization means 1.
In the image processing apparatus, the image processing apparatus includes a printing means 13 that inputs binary output data of 1 under the control of the control means 12 and prints it on a sheet of paper.
A binarization error limiting unit 209 or 30 that uniquely processes the binarization error as 0 when the binarization error is within a predetermined range.
5.

〔作 用〕[For production]

本発明によれば、入力画像データを平均誤差最小法若し
くは誤差拡散法により2値化する2値化手段と、前記2
値化手段からの2値デークに基づき、例えば、サーマル
ヘッドにより印字を行う印字手段とを設け、2値化手段
における平均誤差最小法若しくは誤差拡散法による処理
の中で、2値化誤差が所定の範囲の場合、誤差を一義的
に0として処理し、これによりメリハリがあり、粒状性
ノイズ及び独特の縞パターンの発生を抑制し、良好な出
力画像を得るようにしたものである。
According to the present invention, the binarization means binarizes input image data by the minimum average error method or the error diffusion method;
Based on the binary data from the digitizing means, for example, a printing means for printing using a thermal head is provided, and the binarization error is determined to be a predetermined value during processing by the minimum average error method or error diffusion method in the binarizing means. In the case of the range, the error is treated as 0, thereby producing a sharp, grainy noise and unique striped pattern, thereby obtaining a good output image.

〔実施例〕〔Example〕

第2図は本発明の一実施例ブロック構成図である。第2
図において、画像入力部1(11では図示しない原稿の
画像情報を読み取り、最小濃度(白)が0、最大濃度(
黒)が255となるように量子化し、原画データとして
2値化手段102へ入力する。
FIG. 2 is a block diagram of an embodiment of the present invention. Second
In the figure, an image input unit 1 (11) reads image information of a document (not shown), and the minimum density (white) is 0 and the maximum density (
(black) is quantized to 255, and inputted to the binarization means 102 as original image data.

2値化手段102は平均誤差最小法若しくは誤差拡散法
により2値化を行うものでその方法については後述する
The binarization means 102 performs binarization using the minimum average error method or the error diffusion method, and the method will be described later.

得られた2値デークはCPU、 RO)、l、 RAM
等から構成された主制御部1(13の制御と、オペレー
タによる操作部104の指示に基づき、自装置の印字部
105に送られる。印字部が分離されている場合には通
信制御部106に送られ通信回線りを経て受信側装置1
07内の印字部108に送られる。
The obtained binary data is CPU, RO), l, RAM
Based on the control of the main control unit 1 (13), which is composed of It is sent to the receiving device 1 via the communication line.
It is sent to the printing unit 108 in 07.

まず、平均誤差最小法による2値化処理を説明する。今
、画像空間上の主走査方向の第nドツト、副走査方向の
第mライン目の画素に注目し2値化する場合を想定し、
各画素の濃度を表す原画データは最小濃度から最大濃度
を示す値に量子化されて入力されるものとする。
First, the binarization process using the minimum average error method will be explained. Now, assume that the pixel of the n-th dot in the main scanning direction and the m-th line in the sub-scanning direction in the image space is to be focused and binarized.
It is assumed that the original image data representing the density of each pixel is input after being quantized from the minimum density to the maximum density.

まず、予め記憶しておいた既に2値化済の周辺画素で発
生した2値化誤差を読み出し、所定の重み付は係数を基
に加重平均を求必る。この値を注目画素の原画データに
加算し補正データを求め、所定のしいき値(中間濃度)
と比較することにより、2値化(一義的に最大濃度又は
最小濃度と等価な値とする)を行い2値データを得る。
First, the pre-stored binarization errors generated in the binarized surrounding pixels are read out, and a weighted average is calculated based on the predetermined weighting coefficients. This value is added to the original image data of the pixel of interest to obtain correction data, and a predetermined threshold value (intermediate density) is calculated.
By comparing it with , binarization (a value uniquely equivalent to the maximum density or minimum density) is performed to obtain binary data.

ここで2値化の際に発生した差分を2値化誤差として記
憶する。以上を画像空間全域に渡り繰り返し行うことに
より平均誤差最小法によって2値化処理された2値デー
タが得られ、表示、印字することにより疑似中間調画像
が得られる。
Here, the difference generated during binarization is stored as a binarization error. By repeating the above steps over the entire image space, binary data binarized by the minimum average error method is obtained, and by displaying and printing, a pseudo halftone image is obtained.

次に、誤差拡散法による2値化処理を説明する。Next, the binarization process using the error diffusion method will be explained.

先ず、既に2値化済の周辺画素で発生した2値化誤差に
より修正された補正データ(原画データと誤差配分値の
総和との和)を所定のしきい値(中間濃度)と比較し、
2値化(一義的に最大濃度又は最小濃度と等価な値とす
る)を行い2値デークを得る。ここで、2値化の際に発
生した差分を2値化誤差として未処理の周辺画素に所定
の重み付けで配分し、原画データに加算して行く。この
−連の処理を画像空間全域に渡り繰り返し行い、得られ
た2値デークを表示、印字することにより疑似中間調画
像を得る。
First, the correction data (the sum of the original image data and the total error distribution value) corrected by the binarization error generated in the peripheral pixels that have already been binarized is compared with a predetermined threshold (intermediate density).
Binarization (a value uniquely equivalent to the maximum density or minimum density) is performed to obtain a binary data. Here, the difference generated during binarization is distributed as a binarization error to unprocessed peripheral pixels with a predetermined weight, and added to the original image data. This series of processes is repeated over the entire image space, and the resulting binary data is displayed and printed to obtain a pseudo-halftone image.

本発明は平均誤差最小法若しくは誤差拡散法による2値
化の際に発生した誤差を、記憶、配分する前に、その絶
対値を所定値と比較し、所定値以下ならば一義的に0と
するOのであり、一部の処理を追加するだけで良好な疑
似中間調画像が得られるものである。
The present invention compares the absolute value of the error generated during binarization using the minimum average error method or the error diffusion method with a predetermined value before storing and distributing it, and if it is less than the predetermined value, it is uniquely treated as 0. A good pseudo-halftone image can be obtained by simply adding some processing.

第3図は2値化手段102にて行われる平均誤差最小法
を行う構成ブロック図である。前述のように画像入力部
1(11で原稿の画像を読み取り、最小濃度(白)がO
1最大濃度(黒)が255となるように量子化し、原画
データとして2値化手段102へ入力する。
FIG. 3 is a block diagram of the configuration for performing the minimum average error method performed by the binarization means 102. As mentioned above, the image input unit 1 (11) reads the image of the original, and the minimum density (white) is O.
The image data is quantized so that the maximum density (black) becomes 255, and is input to the binarization means 102 as original image data.

第3図において、現在の2値化処理の対象となる注目画
素を画像空間内の第mライン、第nドツトの位置とし、
この第nドツトの原画データをD□9.、とする。なお
、m、  nは正の整数であり、■≦n≦Nとする。
In FIG. 3, the pixel of interest that is the target of the current binarization process is located at the m-th line and n-th dot in the image space, and
The original image data of this nth dot is D□9. , and so on. Note that m and n are positive integers, and ■≦n≦N.

先ず、第2図図示の画像入力部1(11にて画像を主走
査方向にN (Nは整数)ドツト並んだライン・イメー
ジセンサで読み取り、画像濃度に応じて量子化された原
画データ(最小濃度:(11最高濃度:255の整数)
を2値化手段102に入力する。この原画データは本発
明のための原画データラインバッファ2(11の対応す
る位置に格納される。
First, an image is read by an image input unit 1 (11) shown in FIG. 2 with a line image sensor in which N (N is an integer) dots are arranged in the main scanning direction. Concentration: (11 maximum concentration: 255 integer)
is input to the binarization means 102. This original image data is stored in a corresponding position of the original image data line buffer 2 (11) for the present invention.

この原画データラインバッファ2(11 はRAM等で
構成され、処理する注目画素とその前後の合計3ライン
分の原画データを蓄積するものである。
The original image data line buffer 2 (11) is composed of a RAM, etc., and stores original image data for a pixel of interest to be processed and a total of three lines before and after it.

一方、最初に注目画素の周辺の2値化済の画素(ここで
は4画素としたが、これに限るものではなく、更に広範
囲を参照してもよい)で発生した2値化誤差Eを誤差デ
ータラインメモ1J2(13から読み出し、一方、各画
素位置に対応した所定の重み付は係数Kを重み付は係数
マ) IJクス202から読み出す。
On the other hand, first, the binarization error E generated in the binarized pixels (here, 4 pixels are used, but it is not limited to this, and a wider range may be referred to) around the pixel of interest is calculated as the error. Data line memo 1J2 (read from 13; on the other hand, predetermined weighting corresponding to each pixel position is coefficient K and weighting is coefficient M) is read from IJ box 202.

これらを平均誤差演算部204に入力し2値化誤差の加
重平均を求める。この加重平均を補正値C1,9として
演算式を表すと以下のようになる。
These are input to the average error calculation unit 204 to obtain a weighted average of the binarization errors. When this weighted average is used as the correction value C1,9, the calculation formula is expressed as follows.

分子−Km−1rh−1・Em l+。−、+に、−+
、。・E m −1+。
Molecule-Km-1rh-1·Em l+. -, +, -+
,.・E m −1+.

+ Km −1+ h+ l ’ E m−1+ n+
 l + Km、h −1・Eo、。
+ Km -1+ h+ l'E m-1+ n+
l + Km, h −1·Eo,.

分母−Km−1+ h−1+ Km−1,n 十Km−
It n+ l + Km、 n −Cm、。−分子/
分母 次に、原画データラインノ\ツファ2(11 内の注目
画素の原画データD。、hと、前記平均誤差演算部20
4での演算結果C1,nとが加算器205に入力されこ
れらのデータが加算され加算結果凰、7′を得る。
Denominator -Km-1+ h-1+ Km-1,n 10Km-
It n+ l + Km, n −Cm,. -molecule/
Next, the denominator is the original image data D., h of the pixel of interest in the original image data line no.
The calculation result C1,n in step 4 is input to the adder 205, and these data are added to obtain the addition result 凰,7'.

加算結果り。、。′は2値化部206及び加算器208
へ送られ、先ず2値化部206では所定のしきい値、例
えば、128と比較することにより、(1)補正データ
Dm、h’>Lきい値T=128のとき→2値データ○
。、。=255 (黒画素)(2)補正データDIll
r h” ≦しきい値T=128のとき→2値データ0
...=0(白画素)というように、黒画素か白画素か
の判定を行い2値デ一タOm+、、を得る。この2値デ
一クOm+ 1’1は2値データ出力部207へ送られ
、「1」 (黒画素)又は「0」 (白画素)として出
力されると同時に加算器208へ入力される。
Addition result. ,. ' is the binarization unit 206 and the adder 208
First, the binarization unit 206 compares it with a predetermined threshold value, for example, 128. (1) When correction data Dm, h'>L threshold T=128 → binary data ○
. ,. =255 (black pixel) (2) Correction data DIll
r h" ≦Threshold value T=128 → binary data 0
.. .. .. = 0 (white pixel), it is determined whether the pixel is a black pixel or a white pixel, and binary data Om+, . This binary data Om+1'1 is sent to the binary data output section 207, outputted as "1" (black pixel) or "0" (white pixel), and simultaneously inputted to the adder 208.

加算器208では2値化部206の入力データD。。The adder 208 receives the input data D of the binarization section 206. .

′ と出力データ(11.。との差分を求め注目画素の
2値化により発生した2値化誤差 E、、、 −り、、。 −Oo、。
′ and the output data (11..) and the binarization error E generated by binarizing the pixel of interest.

を求め、2値化誤差制限分209へ入力する。is calculated and input to the binarization error limit 209.

2値化誤差制限部209では所定の黒側基準値又は白側
基準値と比較し、2値化誤差E1,9の絶対値が小さい
場合だけE、、、。−〇の置換を行い、2値化誤差デー
タラインバツフア2(13の対応する位置に格納する。
The binarization error limiting unit 209 compares it with a predetermined black side reference value or white side reference value, and only when the absolute value of the binarization error E1,9 is small, E is set. -0 is replaced and stored in the corresponding position of the binarization error data line buffer 2 (13).

以上を主走査方向、副走査方向に順次繰り返し2値デー
タ出力部207からの2値データを印字手段へ転送する
ことにより2値化処理された疑似中間調画像が得られる
By sequentially repeating the above steps in the main scanning direction and the sub-scanning direction and transferring the binary data from the binary data output section 207 to the printing means, a binary-processed pseudo halftone image is obtained.

また、平均誤差演算部204での2値化誤差の参照範囲
、最小濃度O1最大濃度255及び2値化しきい値12
8もこれに限られるものではない。
In addition, the reference range of the binarization error in the average error calculation unit 204, the minimum density O1, the maximum density 255, and the binarization threshold 12
8 is not limited to this.

第4図は誤差拡散法の説明図である。第4図において、
先ず、画像入力部1(11から画像を主走査方向にN 
(Nは整数)ドツト並んだライン型イメージセンサ等で
読み取られ、濃度に応じて量子化された原画データ(最
小濃度:(11最高濃度:255)が入力され濃度デー
タラインバッファ3(11の対応する位置に格納される
FIG. 4 is an explanatory diagram of the error diffusion method. In Figure 4,
First, the image is inputted from the image input unit 1 (11) in the main scanning direction.
(N is an integer) The original image data (minimum density: (11), maximum density: 255) read by a line-type image sensor etc. lined with dots and quantized according to the density is input to the density data line buffer 3 (correspondence of 11). is stored in the specified location.

今、現在の2値化処理の対象となる注目画素を画像空間
内の第m′ライン、第nドツトの位置とし、この第nド
ツトの原画データをDm+h とする。なお、m、nは
正の整数であり、1≦n≦Nとする。
Now, the pixel of interest to be subjected to the current binarization process is set to the m'th line, nth dot in the image space, and the original image data of this nth dot is set to Dm+h. Note that m and n are positive integers, and 1≦n≦N.

2値化部302では濃度データD1,9を所定の2値化
しきい値Tと比較し、 (1)i!m度テーデー−、h ’  > 2値化しき
い値Tのとき→2値データ○□、、、=255 (黒画
素)(2)濃度データD1.。”≦2値化しきい値Tの
とき→2値データ○、、h=O,(白画素)というよう
に、黒画素か白画素かの判定を行い2値データOII、
!、を得る。この2値デ一クOm+ +’1は2値デー
タ出力部3(13へ送られ、「1」 (黒画素)又は「
0」 (白画素)として出力されると同時に加算器30
4へ入力される。
The binarization unit 302 compares the density data D1 and D9 with a predetermined binarization threshold T, and calculates (1) i! When m degree T, h'> binarization threshold T → binary data ○□, ,, = 255 (black pixel) (2) Density data D1. . ” When ≦binarization threshold T → binary data ○, h=O, (white pixel), it is determined whether it is a black pixel or a white pixel, and the binary data OII,
! , get . This binary data Om+ +'1 is sent to the binary data output unit 3 (13) and is either "1" (black pixel) or "
0'' (white pixel) and at the same time the adder 30
4.

加算器304では2値化部302の入力データD。。The adder 304 receives the input data D of the binarization section 302. .

、と出力データOm、、、との差分を求め2値化誤差E
□+ h =Dmr。−(11,。
Find the difference between , and output data Om, , and calculate the binarization error E
□+h=Dmr. -(11,.

が得られる。is obtained.

2値化誤差制限部305では所定の黒側基準値又は白側
基準値と比較し、2値化誤差Em、nの絶対値が小さい
場合だけEm、。−〇の置換を行い、誤差配分値演算部
306へ入力する。誤差配分値演算部306では2値化
誤差E□2.、を誤差拡散マトリクス307に示す所定
の重み付は係数により未処理の周辺画素に加重配分する
。2値化誤差E。、nの配分前後で周辺画素の濃度デー
タは以下のように修正される。
The binarization error limiting unit 305 compares it with a predetermined black reference value or white reference value, and only when the absolute value of the binarization error Em,n is small, Em. −0 is replaced and input to the error distribution value calculation unit 306. The error distribution value calculation unit 306 calculates the binarization error E□2. The predetermined weighting shown in the error diffusion matrix 307 distributes weights to unprocessed peripheral pixels using coefficients. Binarization error E. , n are distributed before and after the density data of the surrounding pixels are modified as follows.

但し、 以上を主走査方向、副走査方向に順次繰り返し、2値デ
一ク出力部3(13からの2値データを印字手段へ転送
することにより本発明により2値化処理された疑似中間
画像が得られる。
However, by repeating the above steps sequentially in the main scanning direction and the sub-scanning direction and transferring the binary data from the binary data output section 3 (13) to the printing means, a pseudo intermediate image which has been binarized according to the present invention can be obtained. is obtained.

第5図は本発明の印字部に適用するサーマルヘラドの回
路ブロック図である。サーマルヘッドはセラミック基板
4(11上に形成された各画素に対応した発熱抵抗体4
02に電流を流すことによりジュール熱を発生し、この
熱を感熱記録紙、熱転写フィルム等に熱伝達し、記録紙
上に黒ドツトを形成する。
FIG. 5 is a circuit block diagram of a thermal helad applied to the printing section of the present invention. The thermal head includes a heating resistor 4 corresponding to each pixel formed on a ceramic substrate 4 (11).
By passing a current through 02, Joule heat is generated, and this heat is transferred to thermal recording paper, thermal transfer film, etc., and black dots are formed on the recording paper.

即ち、システムバスに接続されたサーマルプリントヘッ
ド制御回路4(13から出力される各種の信号ST、 
LA、 SD、 5CLKと、発熱抵抗体402へ流す
電流を供給する電源部404によって、ドツトのオン(
黒ドツト)及びオフく白ドツト)を制御する。
That is, various signals ST output from the thermal print head control circuit 4 (13) connected to the system bus,
The dot is turned on (
(black dots) and off-white dots).

具体的には、まず、主走査方向の1ライン分のシリアル
デークSO1即ち、画素データ(旧gh:印字、しOW
:非印字)を、シフトクロック5CLKの立ち上がりエ
ツジに同期してシフトレジスタ405に取り込む。次に
、ラッチ信巳の10νJレベルにおいて、ラッチ回路4
06で画素データを保持し、同時に各発熱抵抗体に対応
する2入力NAND回路407の一方に入力する。
Specifically, first, serial data SO1 for one line in the main scanning direction, that is, pixel data (old GH: printing,
: non-printing) is taken into the shift register 405 in synchronization with the rising edge of the shift clock 5CLK. Next, at the 10νJ level of the latch Nobumi, the latch circuit 4
06, the pixel data is held and simultaneously input to one of the two-input NAND circuits 407 corresponding to each heating resistor.

以上が完了した時点でストローブ信号STをHighレ
ベルとすることにより発熱抵抗体に電流が流れ、発生す
るジュール熱が用紙に伝達され対応する画素位置に黒ド
ツトが形成される。これで、1ライン分の処理が終了し
図示しないステップモータ等により所定副走査ピッチ分
記録紙を搬送し、同様の処理を繰り返すことにより画像
を得るものである。
When the above is completed, the strobe signal ST is set to High level, so that a current flows through the heating resistor, and the generated Joule heat is transmitted to the paper, forming a black dot at the corresponding pixel position. This completes the processing for one line, and the recording paper is conveyed by a predetermined sub-scanning pitch using a step motor (not shown), and the same processing is repeated to obtain an image.

第6図はサーマルヘッドのドツトサイズの説明図である
。図示から明らかなように、本発明の着目点はここで形
成された黒ドツトの大きさが、各々近傍の画素が黒ドツ
トであるか否かによって影響され変化することである。
FIG. 6 is an explanatory diagram of the dot size of the thermal head. As is clear from the illustration, the point of interest of the present invention is that the size of the black dots formed here is influenced and changes depending on whether or not neighboring pixels are black dots.

つまり、近傍の画素が黒ドツトである程注目画素の黒ド
ツトが大きく広がりを持ったものになるということであ
る。この現象はサーマルヘッドが熱エネルギーを扱うも
のであり、この熱は発熱抵抗体に蓄積され、かつ多方面
に発散されることに起因する。レーザープリンタでは発
熱抵抗体を有しないためこのような現象は生じない。
In other words, the black dot of the pixel of interest becomes wider as the neighboring pixels are black. This phenomenon is caused by the fact that the thermal head handles thermal energy, and this heat is accumulated in the heating resistor and radiated in many directions. This phenomenon does not occur in a laser printer because it does not have a heating resistor.

第6図に示すように、同じ黒ドツトでも近傍に黒ドツト
が多い部分程ドツトサイズが大きくなり、逆に黒ドツト
が隣接しない部分ではドツトサイズが小さくなり繋がり
を持たなくなることである。
As shown in FIG. 6, even for the same black dot, the dot size becomes larger in areas where there are more black dots nearby, and conversely, in areas where black dots are not adjacent, the dot size becomes smaller and there is no connection.

即ち、平均誤差最小法や誤差拡散法の短所として挙げた
粒状性ノイズや近傍ドツトが繋がった独特の縞パターン
も、サーマルヘッドを用いて印字出力を得ることにより
抑制され、階調性、解像度の優れた良好な疑似中間調画
像の印字出力が得られる。
In other words, the granular noise and unique striped patterns in which adjacent dots are connected, which were cited as disadvantages of the minimum average error method and the error diffusion method, are suppressed by obtaining print output using a thermal head, and the gradation and resolution are improved. An excellent quality pseudo-halftone image can be printed out.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、平均誤差最小法
若しくは誤差拡散法により2値化し、疑似中間調画像を
得る画像処理方法において、発生した2値化誤差の絶対
値が所定値以下の場合、義的に0とすることにより、メ
リハリのある文字、線画部の再現性を向上できるとと共
に、濃度が低い部分での粒状性ノイズを除去し、文字、
線画部と写真、中間調部の両方とも良好な疑似中間調画
像を得ることができる。
As explained above, according to the present invention, in an image processing method for obtaining a pseudo halftone image by binarizing using the minimum average error method or error diffusion method, the absolute value of the generated binarization error is less than or equal to a predetermined value. By setting it to 0, it is possible to improve the reproducibility of sharp characters and line drawings, as well as remove grainy noise in areas with low density.
Good pseudo-halftone images can be obtained in both line drawings, photographs, and halftone areas.

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

第1図は本発明の原理構成図、 第2図は本発明の一実施例プロ・ツク構成図、第3図は
本発明の平均誤差最小法2値化部のブロック構成図、 第4図は本発明の誤差拡散法2値化部のプロ・ツク構成
図、 第5図はサーマルヘッド印字→→プロ・ツク構成図、及
び 第6図はサーマルヘッドによる印字ド・ソトの説明図で
ある。 (符号の説明) 1(11・・・画像入力部、 102・・・平均誤差最小法/誤差拡散法2値化部、1
(13・・・主制御部、 104・・・操作部、 105、108・・・印字部、 106・・・通信制御部、 107・・・受信制御部、 204・・・平均誤差演算部、 205、208・・・加算部、 206・・・2値化部、 207・・・2値デ一ク出力部、 209・・・2値化誤差制限部、 305・・・2値化誤差制限部、 306・・・誤差配分値演算部、 402・・・発熱抵抗体、 4(13・・・サーマルヘッド制御回路。
Fig. 1 is a block diagram of the principle of the present invention; Fig. 2 is a block diagram of a program according to an embodiment of the present invention; Fig. 3 is a block diagram of the binarization unit using the minimum average error method of the present invention; 5 is a block diagram of the program of the error diffusion method binarization unit of the present invention, FIG. 5 is a block diagram of the thermal head printing → → program, and FIG. 6 is an explanatory diagram of printing and sorting by the thermal head. . (Explanation of symbols) 1 (11... image input section, 102... average error minimum method/error diffusion method binarization section, 1
(13... Main control section, 104... Operation section, 105, 108... Printing section, 106... Communication control section, 107... Reception control section, 204... Average error calculation section, 205, 208...Addition section, 206...Binarization section, 207...Binary decoder output section, 209...Binarization error limitation section, 305...Binarization error limitation 306...Error distribution value calculation unit, 402...Heating resistor, 4 (13...Thermal head control circuit.

Claims (1)

【特許請求の範囲】 1、前段にて多階調量子化された入力画像データを平均
誤差最小法により2値化する平均誤差最小法2値化手段
(11)と、前記平均誤差最小法2値化手段(11)の
2値化データを受け印字を制御する制御手段(12)と
、前記平均誤差最小法2値化手段(11)の2値出力デ
ータを前記制御手段(12)の制御のもとに入力し用紙
に印字する印字手段(13)を備える画像処理装置にお
いて、 前記平均誤差最小法2値化手段(11)は、2値化誤差
が所定の範囲のときに、前記2値化誤差を特定した値と
して処理する2値化誤差制限部(209)を具備するこ
とを特徴とする画像処理装置。 2、前記印字手段(13)は発熱抵抗体に電流を流して
印字するサーマルヘッドである請求項1に記載の画像処
理装置。 3、前段にて多階調量子化された入力画像データを誤差
拡散法により2値化する誤差拡散法2値化手段(11)
と、 前記誤差拡散法2値化手段(11)の2値化データを受
け印字を制御する制御手段(12)と、 前記誤差拡散法2値化手段(11)の2値出力データを
前記制御手段(12)の制御のもとに入力し用紙に印字
する印字手段(13)を備える画像処理装置であって、
前記誤差拡散法2値化手段(11)は、2値化誤差が所
定の範囲のときに、前記2値化誤差を特定した値として
処理する2値化誤差制限部(305)を具備することを
特徴とする画像処理装置。 4、前記印字手段は、発熱抵抗体に電流を流して印字す
るサーマルヘッドである請求項3に記載の画像処理装置
。 5、多階調量子化した後に2値化する手段として、平均
誤差最小法又は誤差拡散法の少なくともいずれかを備え
た請求項3に記載の画像処理装置。
[Claims] 1. Minimum average error binarization means (11) for binarizing input image data multi-gradation quantized in the previous stage by the minimum average error method; and the minimum average error method 2. A control means (12) receives the binarized data of the digitization means (11) and controls printing, and the control means (12) controls the binary output data of the minimum average error binarization means (11). In the image processing apparatus, the image processing apparatus includes a printing means (13) for inputting data and printing it on paper, wherein the minimum average error binarization means (11) detects the two-dimensional image when the binarization error is within a predetermined range. An image processing device characterized by comprising a binarization error limiting unit (209) that processes a digitization error as a specified value. 2. The image processing apparatus according to claim 1, wherein the printing means (13) is a thermal head that prints by passing a current through a heating resistor. 3. Error diffusion binarization means (11) that binarizes input image data that has been multi-gradation quantized in the previous stage by error diffusion method.
and a control means (12) for receiving the binary data of the error diffusion method binarization means (11) and controlling printing, and controlling the binary output data of the error diffusion method binarization means (11). An image processing apparatus comprising a printing means (13) for inputting and printing on paper under the control of the means (12),
The error diffusion method binarization means (11) may include a binarization error limiting unit (305) that processes the binarization error as a specified value when the binarization error is within a predetermined range. An image processing device characterized by: 4. The image processing apparatus according to claim 3, wherein the printing means is a thermal head that prints by passing a current through a heating resistor. 5. The image processing apparatus according to claim 3, further comprising at least one of an average error minimum method and an error diffusion method as means for binarizing after multi-tone quantization.
JP2133848A 1990-05-25 1990-05-25 Picture processor Pending JPH0435164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2133848A JPH0435164A (en) 1990-05-25 1990-05-25 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2133848A JPH0435164A (en) 1990-05-25 1990-05-25 Picture processor

Publications (1)

Publication Number Publication Date
JPH0435164A true JPH0435164A (en) 1992-02-05

Family

ID=15114450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2133848A Pending JPH0435164A (en) 1990-05-25 1990-05-25 Picture processor

Country Status (1)

Country Link
JP (1) JPH0435164A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7884969B2 (en) 2006-12-07 2011-02-08 Canon Kabushiki Kaisha Image processing apparatus, printing apparatus and image processing method
US7940427B2 (en) 2006-12-07 2011-05-10 Canon Kabushiki Kaisha Image processing apparatus, printing apparatus and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7884969B2 (en) 2006-12-07 2011-02-08 Canon Kabushiki Kaisha Image processing apparatus, printing apparatus and image processing method
US7940427B2 (en) 2006-12-07 2011-05-10 Canon Kabushiki Kaisha Image processing apparatus, printing apparatus and image processing method

Similar Documents

Publication Publication Date Title
US4651287A (en) Digital image processing algorithm for output devices with discrete halftone gray scale capability
US5353127A (en) Method for quantization gray level pixel data with extended distribution set
US5543935A (en) Halftoning method using space filling curves
US5325448A (en) Image treatment method and apparatus with error dispersion and controllable quantization
US5729663A (en) Method and apparatus for gray screening
EP0201674B1 (en) A method for reproducing multi-level digital images on a bi-level printer of fixed dot size
JP3381755B2 (en) Method and apparatus for improved adaptive filtering and thresholding to reduce image graininess
EP0603167B1 (en) Image processing method and apparatus
US5226096A (en) Digital halftoning with selectively applied dot-to-dot error diffusion
JPH06233121A (en) Picture processing system
JPH08107500A (en) Error diffusion halfton processing system and method of using homogeneous response of high/low brightness picture area
JP2000333010A (en) Gradation dependent type error spread half tone processing method
JPH05308514A (en) Method for quantizing pixel value
JP2974363B2 (en) Image processing device
US6307647B1 (en) Digital halftoning with error diffusion
JP3396992B2 (en) Image processing method and apparatus
Fan Dot-to-dot error diffusion
EP0696131B1 (en) A method and system for processing image information using screening and error diffusion
US6697169B1 (en) Enhanced error diffusion using a correlated chromatic noise pattern
EP0814600A2 (en) Method and system for processing image data
JPH0435164A (en) Picture processor
US5825509A (en) Image processing device with error-diffusion quantization function
JP2003110852A (en) Halftone processing method and processor
US5583661A (en) Method of and apparatus for processing an image
JP2898836B2 (en) Image processing method