JPH0311878A - Picture element density converter - Google Patents

Picture element density converter

Info

Publication number
JPH0311878A
JPH0311878A JP1145476A JP14547689A JPH0311878A JP H0311878 A JPH0311878 A JP H0311878A JP 1145476 A JP1145476 A JP 1145476A JP 14547689 A JP14547689 A JP 14547689A JP H0311878 A JPH0311878 A JP H0311878A
Authority
JP
Japan
Prior art keywords
image
processing
pixels
binarization
output
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
JP1145476A
Other languages
Japanese (ja)
Inventor
Yasunori Hashimoto
康訓 橋本
Masami Kato
政美 加藤
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 JP1145476A priority Critical patent/JPH0311878A/en
Priority to US07/492,490 priority patent/US5289293A/en
Priority to DE69020202T priority patent/DE69020202T2/en
Priority to EP90302677A priority patent/EP0389164B1/en
Publication of JPH0311878A publication Critical patent/JPH0311878A/en
Priority to US08/159,206 priority patent/US5351137A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To attain excellent picture element density conversion with an optional multiple by using 1st and 2nd devices so as to binarize a picture subject to pseudo intermediate processing with the processing method not specific and a picture in which characters and line drawings exist in mixture. CONSTITUTION:A picture whose original picture elements are character or line drawings or subject to pseudo intermediate processing is inputted to a picture information input device 1. Picture element number of a multiple of one over an integral number is decreased in the main scanning direction and the subscanning direction at a majority decision processing section 2 and a thinned-out processing section 3 interleaves a line synchronizing signal. Then a signal led to a projection method processing section 5 via a multiplexer 4 is subject to picture element density conversion by the projection method and the average density or the average brightness is calculated. The output is binarized at a prescribed threshold level by a simple binarizing circuit 7 and the average density or average brightness corrected by a quantization error attended with binarization of surrounding picture elements binarized already is subject to binarization error diffusion processing 6. The excellent picture element density conversion is applied by selecting and outputting the signals with a multiplexer 8.

Description

【発明の詳細な説明】 し産業上の利用分りjチ] 本発明は画素密度変換装置、特(二不特定の処理法によ
り疑似中間調処理された画像と文字や図形等の2値画像
とを共に拡大縮小する画素密度変換装置に関するもので
ある。
[Detailed Description of the Invention] Industrial Applicability] The present invention is a pixel density conversion device, which is particularly applicable to images that have been subjected to pseudo-halftone processing using an unspecified processing method, and binary images such as characters and graphics. This invention relates to a pixel density conversion device that scales up and down both.

[従来の技術] 解像度の異なるファクシミリ間での通信や画像編集装置
等でイメージデータの拡大、縮小を行う場合には、画像
の画素密度変換を必要とする。
[Prior Art] When communicating between facsimiles of different resolutions or enlarging or reducing image data using an image editing device, etc., it is necessary to convert the pixel density of the image.

従来、2値画像に対する画素密度変換法としてSPC法
、論理和法、9分割法、投影法、線形補間法、距離反比
例法等様乃な方式が提案されている(情報処理学会誌\
10126  k5 )。
Conventionally, various methods have been proposed as pixel density conversion methods for binary images, such as the SPC method, the logical sum method, the 9-division method, the projection method, the linear interpolation method, and the distance inverse proportional method (Information Processing Society of Japan Journal
10126 k5).

[発明が解決しようとする課題] しかしながら、これらの方式はいずれも文字や図形を対
象として提案されたものであり、デイザ法等により疑似
中間調処理された画像に適用した場合には、干′iy1
.・がゴー、しる等の雨雪劣化が激しい。
[Problems to be Solved by the Invention] However, all of these methods have been proposed for characters and figures, and when applied to images that have been subjected to pseudo-halftone processing using dithering methods, etc., they are difficult to solve. iy1
..・Severe deterioration due to rain and snow, such as sagging and sagging.

一方、デイザ処理された画像に対する変換処理としては
、平均値フィルタ等によりデイザ処理前の多値データを
推定し、多値データで画素密度変換を行い再2値化する
方法(特開昭62−281673号等)が知られている
が、正確な2値化前の多値データ推定は困難であh、フ
ィルタリングに3よる解像度C′、)低]≧・8゛・階
調の変化等が生じる等の問題点があり、更に同一処理を
文字や図形を含む画像に適用することもできない。
On the other hand, as a conversion process for a dithered image, there is a method of estimating the multivalued data before dithering using an average value filter, etc., performing pixel density conversion on the multivalued data, and re-binarizing the data (Japanese Patent Application Laid-Open No. 1983-1992-1). No. 281673, etc.), but it is difficult to accurately estimate multivalued data before binarization, and the resolution C' due to filtering is Furthermore, the same processing cannot be applied to images containing characters or figures.

又、紡織デイザにより処理された画像でデイザマトリク
スが既知の場合にと、いて、元の多値画像を良好に推定
して疑似中間調処理された画像と文字や図形の混在した
画像処理可能とする方式(特開昭62−157468号
)も提案されているが、不特定の画像でデイザラ1−リ
クスが未知の場合や、誤差拡散法等のように条件付決定
法のデイザ法により2値化された画像には適用できない
、1 以上のように、従来提案されている方式では、不特定の
処理法により疑似中間調処理された画像と文字や図形の
混在した画像を良好に画素密度変換することは困難であ
る。
In addition, when the dither matrix is known for an image processed by Textile Dither, it is possible to estimate the original multivalued image well and process an image containing a mixture of pseudo-halftone processed images and characters and figures. A method (Japanese Patent Application Laid-open No. 157468/1982) has been proposed, but when the dithering 1-risk is unknown for an unspecified image, or by using a dithering method using a conditional decision method such as an error diffusion method, Cannot be applied to digitalized images.1 As mentioned above, the conventionally proposed methods are able to improve the pixel density of images that have been subjected to pseudo-halftone processing using unspecified processing methods, and images that contain text and graphics. It is difficult to convert.

本発明は、このような点に鑑みてなされたものであり、
不特定の処理法により疑似中間調処理された画像と文字
や線画の混在した画像を任意の倍率で良好に画素密度変
換する画素密度変換装置を提供することを目的としてい
る。
The present invention has been made in view of these points,
It is an object of the present invention to provide a pixel density conversion device that can satisfactorily convert the pixel density of an image that has been subjected to pseudo-halftone processing using an unspecified processing method and an image that includes characters and line drawings at an arbitrary magnification.

[課題を解決するための手段] この課題を解決するために、本発明の画素密度変換装置
は5画素数の増加或は減少により画素密度 を変換する
画素密度変換装置であっ゛て、原画像が文字や線画が或
は疑似中間調処理された画像であるかを入力する画像情
報入力手段と、投影法により画素密度変換後の平均濃度
或は平均輝度を演算する演算手段と1.前記演算手段よ
りの平均濃度或は平均輝度を一定しきい値で2値化する
第1の2値化手段と、既に2値化された周囲画素の2値
化に伴う量子化誤差により補正された平均濃度或は平均
輝庫を2値化する第2の2値化手段と、前記画像情報入
力手段より入力された画像情報に対応して、前記第1の
2値化手段と第2の2値化手段とを選択する選択手段と
を備える。
[Means for Solving the Problem] In order to solve this problem, the pixel density conversion device of the present invention is a pixel density conversion device that converts the pixel density by increasing or decreasing the number of pixels. 1. an image information input means for inputting whether the image is a character, a line drawing, or an image subjected to pseudo-halftone processing; and a calculation means for calculating the average density or average brightness after pixel density conversion using a projection method; a first binarization unit that binarizes the average density or average luminance from the calculation unit using a constant threshold; and a quantization error that is corrected by the binarization of surrounding pixels that have already been binarized. a second binarizing means for binarizing the average density or average brightness; and a first binarizing means and a second binarizing means corresponding to image information input from the image information input means and a selection means for selecting the binarization means.

ここで、前記画像情報入力手段は、同一原画像上の文字
や線画の領域と疑似中間調処理された領域とを入力する
領域入力手段を備える。
Here, the image information input means includes an area input means for inputting a character or line drawing area and a pseudo-halftone-processed area on the same original image.

[作用コ かかる構成において、投影法による演算結果を2値化す
る場合に、一定しきい値で2値化する第1の2値化手段
と既に2値化された周囲画素の2値化に伴う量子化誤差
により補正された平均濃度或は平均輝度を2値化する第
2の2値化手段とを、画像情報人力手段より入力された
画像情報に対応して選択することにより、不特定の処理
法により疑似中間調処理された画像と文字や線画の混在
した画像を任意の倍率で良好に画素密度変換する。
[Operation] In such a configuration, when the calculation result by the projection method is binarized, the first binarization means binarizes with a constant threshold and the binarization of the surrounding pixels that have already been binarized is performed. A second binarization means that binarizes the average density or average brightness corrected by the accompanying quantization error is selected in accordance with the image information input from the image information manual means. Using this processing method, an image that has been subjected to pseudo halftone processing and an image containing a mixture of characters and line drawings can be converted to a good pixel density at an arbitrary magnification.

[実施例] 以下、添付図面を診照して本発明の−・実施例を詳細に
説明する・ 第1図は本実施例の画素密度変換装置の構成を示すブロ
ック図である。本図において、■は2値画像を蓄えてい
て所定の同期信号に同期して画像を出力する画像出力装
置、2は整数分の−の画素数減少を行う場合に減少後の
1画素に対応する原画像の白画素数と黒画素数を比較し
て多い方の色あるいは等しい場合は黒色を減少後の画素
の色とする多数決処理部、3は整数分の−の画素数減少
を行う場合に原画像を周期的に間引いて画素数を減少す
る間引き処理部、4は多数決処理部2と間引き処理部3
との出力信号を選択するマルチプレクサ、5は投影法を
用いて任意の倍率で画素数の増減を行い多値信号を出力
する投影法処理部、6は投影法処理部5から出力される
多値信号に対し誤差拡散処理を行う誤差拡散処理部、7
は投影法処理部5から出力される多値1°S号に対し一
定のスレショルドレベルC2値化を行’l 1+1純2
値化回路、8は誤差拡散処理部6と単純2値化回路7ど
の2値出カイ;1号を選択すうマルチプレクサである。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. Fig. 1 is a block diagram showing the configuration of a pixel density conversion device of this embodiment. In this figure, ■ corresponds to an image output device that stores a binary image and outputs the image in synchronization with a predetermined synchronization signal, and 2 corresponds to one pixel after the reduction when the number of pixels is reduced by an integer. A majority decision processing unit that compares the number of white pixels and the number of black pixels of the original image to be used and selects the larger color or, if they are equal, the color of the pixels after reduction, and 3 is when the number of pixels is reduced by an integer. A thinning processing section that periodically thins out the original image to reduce the number of pixels; 4 is a majority decision processing section 2 and a thinning processing section 3;
5 is a projection method processing unit that increases or decreases the number of pixels at an arbitrary magnification using a projection method and outputs a multi-value signal; 6 is a multi-value signal output from the projection method processing unit 5; an error diffusion processing unit that performs error diffusion processing on the signal, 7
1+1 pure 2
The digitizing circuit 8 is a multiplexer which selects the binary output number 1 between the error diffusion processing section 6 and the simple binarizing circuit 7.

9はマルチプレクサ4及び8のセレクト信号を出力する
モード切換スイッチである。
Reference numeral 9 denotes a mode changeover switch that outputs select signals for the multiplexers 4 and 8.

1.0は基本動作クロックを発生する水晶発振器である
1.0 is a crystal oscillator that generates a basic operating clock.

以Fに各部の詳細な説明を行)。Detailed explanations of each part are given below).

く画像出力装置〉 画像出力装置1は第2図に示すタイミングで内部に蓄積
している画像データを出力する。尚、画像出力装置lに
蓄積している画像データは画像読取装置から読み取った
ものでも外部から送信されたものであってもよい0画像
出力装置は入力信号、読出しクロックの立上りエツジに
同期して動作する。まず1回目のライン読出しパルスが
人力されると、ページ同期信号を旧ghにすると同時に
1ライ=目の画像信号を出力する。 2 C’l ’;
’4以降のライ:、ノ8売出し、パルスに対してはそれ
ぞれ1ライン分の画像信号を出力する。1ペ一ジ分の画
像信号を出力し終えた場合は次のライン読出しパルスで
ページ同期信号をLowにする。1ライン分の画像信号
は読出しクロックをそのまま出力した画像クロック及び
ライン同期信号に同期して出力される。
Image Output Device> The image output device 1 outputs internally stored image data at the timing shown in FIG. The image data stored in the image output device may be read from an image reading device or transmitted from an external source. Operate. First, when the first line read pulse is input manually, the page synchronization signal is set to the old gh, and at the same time, the 1st line image signal is output. 2 C'l';
One line worth of image signals is output for each of '4 and later lines:, No8 sales, and pulses. When the output of the image signal for one page is finished, the page synchronization signal is made low with the next line read pulse. The image signal for one line is output in synchronization with the image clock and the line synchronization signal, which are output directly from the read clock.

く多数決処理部〉 多数決処理部では主走査方向、副走査方向で、それぞれ
整数分の−の倍率の画素数の減少を行う。第3図は多数
決処理部の一構成例を示すブロック図である。図中、2
01.202203はラインバッファ、204〜219
はDフリップフロップ、220は画像クロック制御部、
221は多数決データROM、222はライン同期信号
制御部である。
Majority Decision Processing Unit> The majority decision processing unit reduces the number of pixels by an integer minus magnification in the main scanning direction and the sub-scanning direction, respectively. FIG. 3 is a block diagram showing an example of the configuration of the majority decision processing section. In the figure, 2
01.202203 is line buffer, 204-219
is a D flip-flop; 220 is an image clock control unit;
221 is a majority decision data ROM, and 222 is a line synchronization signal control section.

本多数決処理部ではまず、ラインバッファ201〜20
3により3ライン分の画像データをバッファリングし、
入力中のラインを含めて合計4ライン分の画像データを
参照し、さらに各々のDフリップフロップでデータをシ
フトして4×4の166画素参照する。166画素デー
タは多数決データROM221に入力され画像信号を出
力する。ROMデータの内容はアドレス線に入力した1
66画素ついて“1“が”O“より多いか等しいときデ
ータどして′1”を出力し、“1゛が“O″より少ない
どき、“O゛を出力するように書き込まねでいる9また
アドレス線にはモード信号も入力されており、様々な変
換のデータを同一のト;OMに入れて干−ド信号を切り
換えるだけで、倍率を変えることが可能である。
In the main majority decision processing section, first, the line buffers 201 to 20
3 to buffer 3 lines of image data,
A total of 4 lines worth of image data including the line being input is referred to, and the data is further shifted using each D flip-flop to refer to 166 4×4 pixels. The 166 pixel data is input to the majority data ROM 221 and outputs an image signal. The contents of the ROM data are the 1 input to the address line.
For 66 pixels, when "1" is more than or equal to "O", the data is output as '1', and when "1" is less than "O", it is written as "O".9 A mode signal is also input to the address line, and it is possible to change the magnification simply by putting data of various conversions into the same register OM and switching the mode signal.

画像り11ツタ制御部220ではモード信号で選択され
た主走査方向倍率げ合わせて、画像クロックを間引く1
1例えば2分の1倍ならば画像クロックをlクロックお
きに間引き、4分の1倍ならば3クロック分間引いてl
クロックを出力する。
The image clock control unit 220 thins out the image clock according to the main scanning direction magnification selected by the mode signal.
1 For example, if it is 1/2 times the image clock, the image clock will be thinned out every l clocks, and if it is 1/4 times the image clock, it will be subtracted by 3 clocks and l
Output clock.

ライン同期信号制御部222では、モード信号で選択さ
れた副走査方向倍率に合わせてライン同期信号を間引く
The line synchronization signal control unit 222 thins out the line synchronization signals in accordance with the magnification in the sub-scanning direction selected by the mode signal.

以上、主走査方向4分の1倍、副走査方向4分の1倍迄
縮小がFi」能な構成で説明を行つ、たが、ラインバッ
ファ及びDフリップフロップをさらに用いて縮小率を高
めても良い3又、多数決データROM22+を、*理(
ξ・j路で構成しても良い。
The above explanation is based on a configuration that can be reduced up to 1/4 times in the main scanning direction and 1/4 times in the sub-scanning direction, but the reduction rate can be increased by further using a line buffer and a D flip-flop. The three-pronged majority data ROM22+ that can be used is
It may also be composed of ξ/j paths.

く間引き処理部”〉 第4図は間引き処理部の一構成例を示すブロック図であ
る。図中、301は画像クロック制御部、302はライ
ン同期信号制御部、303はDフリップフロップである
。画像クロパ、′り制御部301は、モート信号に合わ
せて画像クロックを間引く制御を行う9この間引いた画
像クロックなりフリップフロップ303に入力し、画像
信号に対して同期をとる。また、ライン同期信号制御部
302はモード信号に合わせてライン同期信号を間引く
制御を行う。
Figure 4 is a block diagram showing an example of the configuration of the thinning processing section. In the figure, 301 is an image clock control section, 302 is a line synchronization signal control section, and 303 is a D flip-flop. The image cropper control unit 301 performs control to thin out the image clock in accordance with the mote signal.The thinned out image clock is input to the flip-flop 303 and synchronized with the image signal. The control unit 302 performs control to thin out line synchronization signals in accordance with the mode signal.

第5図は前記多数決処理部及び間引き処理部での副走査
方向で2分の1に画素数を減少させる場合のタイミング
チャートである。同図において出力するライン同期信号
及び画像信号を間引くことによりライン数を2分の1に
減少させる。
FIG. 5 is a timing chart when the number of pixels is reduced by half in the sub-scanning direction in the majority decision processing section and the thinning processing section. In the figure, the number of lines is reduced by half by thinning out the line synchronization signal and image signal to be output.

また、第6図は主走査方向で2分の1に画素数を減少さ
せる場合のタイミングチャートである。
Furthermore, FIG. 6 is a timing chart when the number of pixels is reduced by half in the main scanning direction.

同図においては出力1゛る画像クロックを間引くことに
より画素数を2分の1に減少させる。
In the figure, the number of pixels is reduced by half by thinning out the image clock with an output of 1.

第71×j i、;t l′+1も像jか刃装置Z4・
に出力さハイ・画像情報の例である。第8 A図は第7
図の画像情報を多数決処理部2で処理した出力画像であ
る。
The 71st x j i, ;t l'+1 is also the image j or the blade device Z4
This is an example of high image information output to. Figure 8 A is Figure 7
This is an output image obtained by processing the image information shown in the figure by the majority decision processing section 2.

主走査方向、副走査方向共に2分の1の画素数減少であ
る。第8A図の1画素に対応する第7図の画素は4画素
存在するが、多数決処理部2では原画像の黒画素の数が
0或は1の場合に出力は白とし、黒画素の数が2,3或
は4の場合に出力は黒としている。第8B図は第7図の
画像情報に対して間引き処理部3で間引き処理を行った
出力画像である。間引き処理部3では変換後の1画素に
対応する変換前の4画素の常に同じ位置の画像を出力す
る。第8B図では第7図の各変換前の4画素の右下の画
素を出力した場合の出力画像である。
The number of pixels is reduced by half in both the main scanning direction and the sub-scanning direction. There are four pixels in FIG. 7 corresponding to one pixel in FIG. 8A, but the majority decision processing unit 2 outputs white if the number of black pixels in the original image is 0 or 1, and the number of black pixels is is 2, 3, or 4, the output is black. FIG. 8B is an output image obtained by performing thinning processing on the image information shown in FIG. 7 by the thinning processing unit 3. The thinning processing unit 3 outputs an image of four pixels before conversion corresponding to one pixel after conversion always at the same position. FIG. 8B shows an output image when the lower right pixel of the four pixels before each conversion in FIG. 7 is output.

く投影法処理部〉 投影法処理部5では主走査方向、副走査方向共に任意の
倍率で画素数の増加、減少を行う。
Projection Processing Unit> The projection processing unit 5 increases or decreases the number of pixels at an arbitrary magnification in both the main scanning direction and the sub-scanning direction.

第9図は投影法の変換前の画素と変換後の画素を表す図
である。投影法は変換前の画素の形状を正方形とみなし
く第9図における破線)主走査方向、副走査方向共に変
換前の画素の辺の長さに変換倍率の逆数を掛けた長さの
辺を持つ長方形(第9図における実線)を変換前の画素
に重ねて、その長方形に含まれる黒領域の割合を濃度情
報とする方法である。本投影法処理部5ではij記多数
決処理部21間引き処理部3での整数倍あるいは整数分
の1倍の密度変換を除いた端数の密度変換を行う。
FIG. 9 is a diagram showing pixels before and after projection method conversion. In the projection method, the shape of the pixel before conversion is assumed to be a square, and the side length is the length of the side of the pixel before conversion multiplied by the reciprocal of the conversion magnification in both the main scanning and sub-scanning directions (dotted line in Figure 9). This method involves superimposing a rectangle (solid line in FIG. 9) on the pixel before conversion, and using the proportion of the black area included in the rectangle as density information. The present projection processing section 5 performs density conversion of fractions other than the density conversion of an integer multiple or a fraction of an integer in the ij majority decision processing section 21 and the thinning processing section 3.

第10図は投影法処理部の一構成例を示すブロック図で
ある。
FIG. 10 is a block diagram showing an example of the configuration of the projection processing section.

図中、101は主走査方向の倍率を設定するレジスタ、
102は主走査方向の変換が拡大であるか縮小であるか
を設定するレジスタであり、拡大のときは“1゛°縮小
のときはO”とする。
In the figure, 101 is a register for setting the magnification in the main scanning direction;
Reference numeral 102 is a register for setting whether the conversion in the main scanning direction is enlargement or reduction, and for enlargement, it is set to "O" for 1° reduction.

103は副走査方向の倍率を設定するレジスタ、104
は副走査方向の変換が拡大であるか縮小であるかを設定
するレジスタであり、拡大のときは” 1 ”縮小のと
きは0”とする。なおレジスタ101〜104は、図示
しないCPUにより設定する。JO5は主走査方向の縮
小の演算部、106は主走査方向の拡大の演算部、10
7ば副走査方向の縮小の演算部、108は副走査方向の
拡大の演算部、109は水晶発振器からの信号を分周し
てライン同期信号を発生するう・イン同期信号発生部5
110は水晶発振器からの信号な分周して読出しパルス
を発生する読出しパルス発生部、111はlノジスタ1
02の出力が0°゛のとき主走査方向縮小演算部105
からの信号を、“1″′のとき主走査方向拡大演算部1
06からの信号を出力するマルチプレクサである。
103 is a register for setting the magnification in the sub-scanning direction; 104
is a register for setting whether the conversion in the sub-scanning direction is enlargement or reduction, and is set to "1" for enlargement and "0" for reduction.Registers 101 to 104 are set by a CPU (not shown). JO5 is a calculation unit for reduction in the main scanning direction, 106 is a calculation unit for expansion in the main scanning direction, and 10
7 is an arithmetic unit for reduction in the sub-scanning direction, 108 is an arithmetic unit for expansion in the sub-scanning direction, and 109 is an in-sync signal generation unit 5 that divides the frequency of the signal from the crystal oscillator to generate a line sync signal.
110 is a read pulse generator that divides the frequency of a signal from a crystal oscillator and generates a read pulse; 111 is an l-noister 1;
When the output of 02 is 0°, the main scanning direction reduction calculation unit 105
When the signal from
This is a multiplexer that outputs the signal from 06.

112はレジスタ104の出力が“0”のとき副走査方
向縮小演算部107からの信号を、°′1“のとき副走
査方向拡大演算部108からの信号を出力するマルチプ
レクサである。
A multiplexer 112 outputs a signal from the sub-scanning direction reduction calculation unit 107 when the output of the register 104 is “0”, and outputs a signal from the sub-scanning direction enlargement calculation unit 108 when the output of the register 104 is “0”.

113はインバータ、114はANDゲート、115は
ORゲート、116はANDゲート、117はORゲー
トである。また、118はインバータ、119はAND
ゲート、120はORゲート、121はANDゲート、
122はORゲートである。123,124は定数25
6を出力する定数部、125.126はラインバッファ
であり、ダブルバッファを構成する。127は125,
1.26の出力を切り換えるマルチプレクサ、128は
ライン同期信号フjイ人力される如にトグル動作する1
゛・グルフリップフロップ、129 130.131.
132はDフリップフロップである。
113 is an inverter, 114 is an AND gate, 115 is an OR gate, 116 is an AND gate, and 117 is an OR gate. Also, 118 is an inverter, 119 is an AND
gate, 120 is an OR gate, 121 is an AND gate,
122 is an OR gate. 123 and 124 are constants 25
The constant part 125 and 126 outputting 6 are line buffers, which constitute a double buffer. 127 is 125,
1. A multiplexer that switches the output of 26, 128 toggles as the line synchronization signal input is input.
゛・Guru flip flop, 129 130.131.
132 is a D flip-flop.

まず、主走査方向縮小演算部105の動作について説明
する。
First, the operation of the main scanning direction reduction calculation unit 105 will be explained.

倍率は200/256の場合である。そのときの変換前
、変換後の辺の重なりを第11図に示す。主走査方向縮
小演算部105は主走査方向倍率レジスタ101に設定
された倍率にしたがって処理を行う。また動作の基準と
なるクロックは水晶発振器10からのクロック人力であ
る。
The magnification is 200/256. FIG. 11 shows the overlap of the sides before and after the conversion at that time. The main scanning direction reduction calculation unit 105 performs processing according to the magnification set in the main scanning direction magnification register 101. Further, the clock serving as a reference for operation is a clock input from the crystal oscillator 10.

各ラインの処理はライン同期信号発生部109から入力
される信号に同期して行われる。主走査方向縮小演算部
105から出力される信号は、画像クロック制御信号及
び辺の長さの出力である。画像クロック制御信号は負論
理の信号で0”のとき画像クロックがイネーブルとなる
Processing of each line is performed in synchronization with a signal input from line synchronization signal generation section 109. The signals output from the main scanning direction reduction calculation unit 105 are an image clock control signal and a side length output. The image clock control signal is a negative logic signal, and when it is 0'', the image clock is enabled.

また、辺の長さは1〜256の範囲の値であり、9ビツ
トのパラレル信号である。変換倍率が2007256で
あるので、主走査方向拡大/縮小レジスタには°0”を
設定する。従って、マルチプレクサ111は主走査方向
縮小演算部105の辺の長さを選択して出力する。また
、ANDゲート114の下側の入力は旧ghになり、画
像クロックが制御される。ANDゲート116の下側の
入力はLowになり、ORゲート117の下側の入力は
Lowとなるので、読出しクロック出力は水晶発振器か
らのクロック入力がそのまま出力される。
Further, the length of the side is a value in the range of 1 to 256, and it is a 9-bit parallel signal. Since the conversion magnification is 2007256, the main scanning direction enlargement/reduction register is set to 0". Therefore, the multiplexer 111 selects and outputs the side length of the main scanning direction reduction calculation unit 105. The lower input of AND gate 114 becomes old gh, which controls the image clock.The lower input of AND gate 116 becomes Low, and the lower input of OR gate 117 becomes Low, so the readout clock The clock input from the crystal oscillator is output as is.

第12図は主走査方向の200/256縮小処理のタイ
ミングチャートである。
FIG. 12 is a timing chart of 200/256 reduction processing in the main scanning direction.

次に、実際の辺の演算法を第11図に沿って説明する。Next, the actual calculation method for edges will be explained with reference to FIG.

まず、■画素目の辺の長さは、200を出力する。以下
、順に辺の長さは、 200− (256−200)=144200−(25
6−144)=88 200− (256−88)=32となる。
First, the length of the side of the ■th pixel is output as 200. Below, the lengths of the sides are 200- (256-200) = 144200-(25
6-144)=88 200-(256-88)=32.

次の辺の長さは同じ演算によれば、 200− (256−32)=−24となり、負になっ
てしまうが、これは第11図の辺eを見るとわかるよう
に、変換後画素に変換前画素が3画素重なっていること
を表す。
According to the same calculation, the length of the next side is 200-(256-32)=-24, which is negative, but as you can see from side e in Figure 11, this is the length of the converted pixel. indicates that three pixels overlap before conversion.

従って13辺の長さは、 一24+200=176となる。Therefore, the length of the 13 sides is -24+200=176.

なお、このとき変換後置素数を合わせるために第12図
に示すように、画像処理装置クロック制御信号を水晶発
振器からのクロックの1クロック分の間Highにして
、画像クロック出力を間引く処理を行う。
At this time, in order to match the post-conversion prime numbers, as shown in FIG. 12, the image processing device clock control signal is set to High for one clock of the clock from the crystal oscillator, and the image clock output is thinned out. .

次の辺の長さは、 200− (256−176)=120となり、以降の
処理を繰り返す。
The length of the next side is 200-(256-176)=120, and the subsequent processing is repeated.

なお、辺の演算処理は画像クロック出力に同期して行わ
れる。
Note that the side calculation processing is performed in synchronization with the image clock output.

次に、主走査方向拡大演算部106の動作について説明
する。
Next, the operation of the main scanning direction enlargement calculation section 106 will be explained.

倍率は700/256の場合で、そのときの変換前、変
換後の辺の重なりを第13図に示す。
The magnification is 700/256, and FIG. 13 shows the overlap of the sides before and after conversion.

主走査方向拡大演算部106は、主走査方向倍率レジス
タ101に設定された倍率に従って処理を行う。また動
作の基準となるクロックは水晶発振器からのクロック人
力である。各ラインの処理はライン同期信号発生部10
9から人力される信号に同期して行われる。主走査方向
拡大演算部105から出力される信号は、読出しクロッ
ク制御信号及び辺の長さの出力である。読出しクロック
制御信号は負論理の信号でOのとき、読出しクロックが
イネーブルとなる。また辺の長さは1〜256の範囲の
値であり、9ビツトのパラレル信号である。変換倍率が
7007256であるの、主走査方向拡大/縮小レジス
タには1を設定する。従って、マルチプレクサ111は
主走査方向拡大演算部106の辺の長さを選択。
The main scanning direction enlargement calculation unit 106 performs processing according to the magnification set in the main scanning direction magnification register 101. The clock that serves as the reference for operation is a clock manually generated from a crystal oscillator. Each line is processed by the line synchronization signal generator 10.
This is done in synchronization with the human input signal from 9. The signals output from the main scanning direction enlargement calculation section 105 are a read clock control signal and a side length output. The read clock control signal is a negative logic signal, and when it is O, the read clock is enabled. The side length is a value in the range of 1 to 256, and the signal is a 9-bit parallel signal. Since the conversion magnification is 7007256, 1 is set in the main scanning direction enlargement/reduction register. Therefore, the multiplexer 111 selects the length of the side of the main scanning direction enlargement calculation section 106.

出力する。また、ANDゲート114の下側の入力はL
owになり、ORゲート115の下側の入力はLowに
なるので、画像クロック出力は水晶発振器からのクロッ
ク人力がそのまま出力される。
Output. Also, the lower input of the AND gate 114 is L
Since the lower input of the OR gate 115 becomes Low, the image clock output is the clock input from the crystal oscillator as it is.

第14図は主走査方向の700/256拡大処理のタイ
ミングチャートである。
FIG. 14 is a timing chart of 700/256 enlargement processing in the main scanning direction.

次に実際の辺の演算法を第13図に沿って説明する。ま
ず、1画素目の辺の長さは256を出力する。次の辺の
長さは、 700−256=444>256であるので、256を
出力する。前記の不等号が〉のときは読出しクロック制
御信号は“1“ (ディセーブル)とする。次の辺の長
さは、 444−256=188≦256であるので、188を
出力する。ここで、読出しクロック制御信号を“O”に
して読出しクロックをイネーブルにして、画像出力装置
1に次の画素のデータを要求する。
Next, the actual calculation method for edges will be explained with reference to FIG. First, the length of the side of the first pixel is output as 256. The length of the next side is 700-256=444>256, so 256 is output. When the above inequality sign is >, the read clock control signal is set to "1" (disabled). Since the length of the next side is 444-256=188≦256, 188 is output. Here, the read clock control signal is set to "O" to enable the read clock and request data for the next pixel from the image output device 1.

次の辺の長さは、 (188+700)−25’6=632>256である
ので、256を出力する。次の辺の長さは632−23
5=376>256であるので、256を出力する。以
降、同様の処理を繰り返す。なお、辺の演算処理は水晶
発振器からのクロック入力に同期して行われる。
The length of the next side is (188+700)-25'6=632>256, so 256 is output. The length of the next side is 632-23
Since 5=376>256, 256 is output. Thereafter, the same process is repeated. Note that the side arithmetic processing is performed in synchronization with the clock input from the crystal oscillator.

以上、主走査方向縮小及び主走査方向拡大の辺の演算に
ついて説明を行ったが、副走査方向に関しても同ような
方法で演算を行・つている。
The calculations for the sides of reduction in the main scanning direction and expansion in the main scanning direction have been described above, but calculations are also performed in a similar manner in the sub-scanning direction.

ブロック図、タイミングチャート上においては、主走査
を副走査に、水晶発振器からのクロック入力を読出しパ
ルスに画像クロックをライン同期信号に、辺演算結果A
、BをそれぞれC,Dに読出しクロックをライン読出し
パルスに置き代えて考えれば良い。
On the block diagram and timing chart, the main scanning is used as the sub-scanning, the clock input from the crystal oscillator is used as the readout pulse, the image clock is used as the line synchronization signal, and the side calculation result A
, B can be replaced with C and D, respectively, and the read clock can be replaced with a line read pulse.

次に、画像データ制御及び画像信号の演算について説明
する9画像データはラインバッファ125.126によ
りダブルバッファ制御され、1ライン分遅延した画像デ
ータがDフリップフロップ129に入力される。Dフリ
ップフロップ129のデータはDフリップフロップ13
1により1画素分遅延する。また、画像信号入力はその
ままDフリップフロップ130に入力される。Dフリッ
プフロップ130のデータはDフリップフロップ132
に入力され1画素分遅延する。
Next, nine image data, which will be described with reference to image data control and image signal computation, are double-buffered by line buffers 125 and 126, and image data delayed by one line is input to the D flip-flop 129. The data in D flip-flop 129 is transferred to D flip-flop 13.
1 causes a delay of one pixel. Further, the image signal input is inputted as is to the D flip-flop 130. The data of D flip-flop 130 is transferred to D flip-flop 132.
is input and delayed by one pixel.

尚、画像出力装置1よりの出力画像データと投影法処理
部5の処理との同期は、投影法処理部5より画像出力装
置1へのライン読出しパルス及び読出しクロックにより
なされる。
Note that the output image data from the image output device 1 and the processing by the projection method processing section 5 are synchronized by a line read pulse and a read clock sent from the projection method processing section 5 to the image output device 1.

以上の処理により2×2の4画素を参照する。Through the above processing, four pixels of 2×2 are referred to.

第15図に示すように、主走査方向の辺演算結果A、B
及び副走査方向の辺演算結果C,Dのそれぞれを掛は合
わせた面積、AXC,BXCΔXD、BXDを求めて、
さらにそれぞれに対応する画像データv、w、x、yを
掛は合わせた後、加算した値が変換後画素の濃度レベル
となる。9ビツトの辺のデータをすべてのビットを演算
すると17ビツトとなる。18ビツトにならない理由は
、9ビツトの辺のデータの最大値は100Hexである
ためである。画像信号出力は演算結果の17ビツトのう
ち上位から必要なビット数を採用すれば良い。
As shown in FIG. 15, the side calculation results A and B in the main scanning direction
Multiply each of the side calculation results C and D in the sub-scanning direction to find the combined area, AXC, BXCΔXD, BXD,
Further, the corresponding image data v, w, x, and y are multiplied together, and the added value becomes the density level of the pixel after conversion. When all bits of the 9-bit side data are operated, the result is 17 bits. The reason why it is not 18 bits is because the maximum value of 9-bit side data is 100Hex. For the image signal output, the necessary number of bits from the higher order of the 17 bits of the calculation result may be adopted.

以上、画素数減少の場合で説明したように、画素数の倍
率が2分の1倍以上1倍未満の場合には、変換後の画素
の一辺に対し変換前の画素が3画素重なることがあり、
主走査方向、副走査方向共にこの倍率で変換を行う場合
は、変換後の1画素に対し変換前の画素が最大9圃素重
なる。
As explained above in the case of a reduction in the number of pixels, if the magnification of the number of pixels is 1/2 or more but less than 1, it is possible for 3 pixels before conversion to overlap one side of the pixel after conversion. can be,
When conversion is performed at this magnification in both the main scanning direction and the sub-scanning direction, the pixel before conversion overlaps one pixel after conversion by a maximum of nine square elements.

また、倍率が2分の1倍未満の場合はさらに多くの画素
が重なってくる。これらの画素すべてに対し、演算を行
うことはハード規模の増加になる。
Further, when the magnification is less than 1/2, even more pixels overlap. Performing calculations on all these pixels increases the hardware scale.

そこで、本実施例の投影法処理部5では、参照画素は主
走査方向2画素、副走査方向2画素の計4画素までとし
ている。従って、参照画素が4画素を超える場合は近似
処理が行われている。
Therefore, in the projection method processing section 5 of this embodiment, the reference pixels are up to four pixels in total, two pixels in the main scanning direction and two pixels in the sub-scanning direction. Therefore, when the number of reference pixels exceeds four pixels, approximation processing is performed.

例えば、第16図に示す主走査方向、副走査方向共25
6分の136の倍率の画素数の減少の場合の変換前画素
と変換後画素の対応の例で説明する。変換後画素Pに重
なる変換前画素は9画素分あるが、この領域をa、b、
c、d、e、f。
For example, in both the main scanning direction and the sub-scanning direction shown in FIG.
An example of correspondence between pre-conversion pixels and post-conversion pixels when the number of pixels is reduced by a magnification of 136/6 will be explained. There are 9 pixels before conversion that overlap pixel P after conversion, and this area is divided into a, b,
c, d, e, f.

g、h、iで表わす。a−iの面積をS、−Si、a”
iの色を■、〜■、とする。■は黒のときl°°白のと
き“O“とする。近似方法は領域Cは領域すと同色、領
域gは領域dと同色、領域f、h、iは領域eと同色で
あると近似する。この方法にによれば画素Pの濃度■2
は次のようになる。
Represented by g, h, i. Let the area of a-i be S, -Si, a”
Let the color of i be ■, ~■. ② is black when it is l°° white when it is “O”. The approximation method approximates that region C is the same color as the other regions, region g is the same color as region d, and regions f, h, and i are the same color as region e. According to this method, the density of pixel P ■2
becomes as follows.

1、  =  (S、−1,+  (St、+Sc)・
To  +  (Sd+S、)=Id(S、÷Sr”S
h”Si)弓。)/256・256・((136+40
)・80 + (136+40)・(+36+40) 
)725B・256 0.6875 となる。
1, = (S, -1, + (St, +Sc)・
To + (Sd+S,)=Id(S,÷Sr”S
h”Si) Bow.)/256・256・((136+40
)・80 + (136+40)・(+36+40)
)725B・256 0.6875.

一方、画素数増加の場合には、如何なる倍率でも変換後
の1画素に対し重なる変換前の画素は4画素以下である
ため近似の必要はない。
On the other hand, in the case of an increase in the number of pixels, there is no need for approximation because the number of pixels before conversion that overlap one pixel after conversion is four or less, regardless of the magnification.

尚、変換後の一辺の長さは256に限るわけではなく任
意の値で演算して良い。しかしながら、辺の長さは2n
にすると濃度演算するとき除算はシフト処理で済むため
、ハードで構成しやすくハード規模を小さくするばかり
でなく、処理速度を高める効果もある。又、本例では参
照画素の位置を限定して近似を行ったが、例えば、重な
りの大きい画素から2つを参照画素として取り出しても
よい。更に、参照画素は2×2には限定されず、再生画
像の再現性とハード規模及び処理速度との兼ね合いによ
る。
Note that the length of one side after conversion is not limited to 256, and may be calculated using any value. However, the side length is 2n
By doing so, when calculating the density, division can be done by a shift process, which not only makes it easier to configure the hardware and reduces the scale of the hardware, but also has the effect of increasing the processing speed. Further, in this example, approximation was performed by limiting the positions of reference pixels, but for example, two pixels with large overlap may be extracted as reference pixels. Furthermore, the reference pixels are not limited to 2×2, but depend on the balance between the reproducibility of the reproduced image, the hardware scale, and the processing speed.

く誤差拡散処理部〉 次に誤差拡散処理部について説明する。投影法をデイザ
法等により疑似中間調処理された画像に適用した場合、
その演算結果を単純2値化(即ち一定閾値で2値化)す
ると、量子化誤差の為にモアレが強調され画質劣化が激
しい。本実施例ではこのような量子化誤差による画質劣
化を防ぐ為に誤差拡散法による2値化処理を行う。
Error Diffusion Processing Unit> Next, the error diffusion processing unit will be explained. When the projection method is applied to an image that has undergone pseudo-halftone processing using the dither method, etc.,
When the calculation result is simply binarized (that is, binarized using a fixed threshold value), moiré is emphasized due to the quantization error, resulting in severe deterioration of image quality. In this embodiment, in order to prevent image quality deterioration due to such quantization errors, binarization processing is performed using an error diffusion method.

第17図に誤差拡散処理部の一購成例を示すブロック図
を示す。投影法出力の画素濃度或は輝度IAは、一画素
遅延素子51a〜51d、1ラインより3画素少ない遅
延素子53及び加算器52a〜52dを通過する間にそ
れ以前に周囲画素で生じた2値化誤差e、’ye4が加
算される。この周辺画素の2値化誤差を含む濃度値又は
輝度を、2値化処理部54により一定閾値で2値化した
値が求める画素の濃度或は輝度となる。
FIG. 17 is a block diagram showing an example of purchasing an error diffusion processing section. The pixel density or brightness IA of the projection method output is the binary value generated in the surrounding pixels before passing through one pixel delay elements 51a to 51d, a delay element 53 with three pixels less than one line, and adders 52a to 52d. The conversion errors e and 'ye4 are added. The density value or luminance including the binarization error of the surrounding pixels is binarized by the binarization processing unit 54 using a constant threshold value, and the value becomes the density or luminance of the pixel to be determined.

次に、この2値化で生じた量子化誤差を2値化誤差算出
部55で求め、誤差分配処理部56でe+〜e4として
分配する。2値化誤差算出部56では、2値化誤差をe
、2値化処理部への人力濃度をIo、閾値をT、2値化
出力を“1“又は°゛0”とすると、 又、誤差分配部56では例えば次のようにe、〜e4が
演算される。
Next, the quantization error caused by this binarization is calculated by the binarization error calculation section 55 and distributed as e+ to e4 by the error distribution processing section 56. The binarization error calculation unit 56 calculates the binarization error by e.
, the manual concentration to the binarization processing unit is Io, the threshold value is T, and the binarization output is “1” or °゛0. Also, in the error distribution unit 56, e, ~e4 are calculated as follows, for example. Calculated.

e1〜e4は第18図に示すように注目画素の周囲画素
へ分配されることになる。
As shown in FIG. 18, e1 to e4 are distributed to surrounding pixels of the pixel of interest.

尚、第17図及び第18図に示す例では誤差を周囲4画
素に拡散させた場合であるが、本発明はこれに限るわけ
ではなく、画質と回路規模を考慮して決定すればよい。
Note that although the examples shown in FIGS. 17 and 18 are cases in which the error is diffused to four surrounding pixels, the present invention is not limited to this, and the determination may be made in consideration of image quality and circuit scale.

但しモアレを良好に消去させる為には2値化誤差を10
0%周囲へ拡散させる必要がある。即ちΣen=E (
n :誤差を分配させる周囲画素の数)を満たすように
enを決定する。
However, in order to eliminate moiré well, the binarization error should be set to 10.
0% needs to be diffused to the surrounding area. That is, Σen=E (
en is determined so as to satisfy n: the number of surrounding pixels to which the error is distributed.

く平均誤差最小法による2値化処理〉 又、誤差拡散処理部の代わりに平均誤差最小法による2
値化処理部を用いても同じである。
Binarization processing using the minimum average error method> Also, instead of the error diffusion processing section, the
The same is true even if a value processing section is used.

第19図は平均誤差最小法による濃度保存2値化部の構
成を示すブロック図である。補間法による変換画素の濃
度には、エラーバッファメモリ60に保存されている以
前に発生した入力データXI、と出力データYl、との
誤差データε1゜に、重みづけ発生器61により指定さ
れた重み係数αIJをかけた値が規格化され、加算器6
2で加算される。これを式で書くと以下のようになる。
FIG. 19 is a block diagram showing the configuration of a density preserving binarization section using the minimum average error method. The density of a pixel converted by the interpolation method is determined by applying a weight specified by a weighting generator 61 to error data ε1° between previously generated input data XI and output data Yl stored in an error buffer memory 60. The value multiplied by the coefficient αIJ is standardized, and the adder 6
2 is added. Writing this as a formula is as follows.

重み付は係数の一例を第20図に示す。An example of weighting coefficients is shown in FIG.

次に補正データx1.′は2値化回路63でしきい値と
比較され、出力データY1Jを出力する。ここでYI、
はY mawまたはy、、n (例えば1と○)のよう
に2値化されたデータとなっている。
Next, correction data x1. ' is compared with a threshold value in the binarization circuit 63, and output data Y1J is output. Here YI,
is binary data such as Y maw or y, , n (for example, 1 and ○).

一方、演算器64では、補正データXI、と出力データ
YIJの差分ε1.が演算され、この結果はエラーバッ
ファメモリ60の対応する画素位置65に保存される。
On the other hand, the arithmetic unit 64 calculates the difference ε1. between the correction data XI and the output data YIJ. is calculated, and the result is stored in the corresponding pixel location 65 of the error buffer memory 60.

この操作を繰返すことにより、平均誤差最小法による2
値化処理が実行される。
By repeating this operation, 2
Value processing is executed.

く一定しきい値による2値化処理〉 単純2値化処理部7では、投影法あるいは投影法によっ
て得られた変換画素の濃度が一定しきい値で2値化され
る。
Binarization Process Using a Constant Threshold In the simple binarization processing section 7, the density of the converted pixel obtained by the projection method or the projection method is binarized using a constant threshold.

以上各ブロックの説明を行なった。Each block has been explained above.

くマルチプレクサ4.8の切換え〉 信号の全体の流れは、画像出力装置1から出力される画
像の性質に依りモード切換スイッチ9で切換える。
Switching of multiplexer 4.8> The overall flow of signals is switched by the mode changeover switch 9 depending on the nature of the image output from the image output device 1.

画像出力装置lから出力される画像がデイザ法や誤差拡
散法などの疑似中間調処理された画像の場合は、マルチ
プレクサ4は間引き処理部3から出力される信号°を選
択する。また画像出力装置1から出力される画像が単純
2値化された画像の場合は、マルチプレクサ4は多数決
処理部2から出力される信号を選択する。これは第8A
図。
If the image output from the image output device l is an image subjected to pseudo-halftone processing such as the dither method or the error diffusion method, the multiplexer 4 selects the signal ° output from the thinning processing section 3. Furthermore, when the image output from the image output device 1 is a simple binarized image, the multiplexer 4 selects the signal output from the majority processing section 2. This is the 8th A
figure.

第8B図から分かるように、疑似中間調処理された画像
に対して整数分の−の画素数の減少を行なう場合、間引
き処理を行なった方が多数決処理を行なった場合よりも
一定の領域内の白画素と黒画素の数の割合に変化が少な
いことによる。
As can be seen from Figure 8B, when reducing the number of pixels by an integer on an image that has undergone pseudo-halftone processing, it is better to perform thinning processing within a certain area than to perform majority processing. This is because there is little change in the ratio of the number of white pixels to black pixels.

このため階調性が保存される。また、単純2値化された
画素に対して整数分の−の画素数の減少を行なう場合、
単純2値化された画像の原稿は文字や図の場合が多いた
め、多数決処理を行なった方が間引き処理を行った場合
より細線の抜けや途切れが少なく適切である。
Therefore, gradation is preserved. Also, when reducing the number of pixels by an integer for simple binarized pixels,
Since manuscripts of images that have been simply binarized are often characters or figures, majority decision processing is more appropriate than thinning processing because fewer missing or broken thin lines occur.

マルチプレクサ8は画像出力装置1から出力される画像
が疑似中間調処理された画像の場合は、誤差拡散処理部
6から出力される信号を選択する。また、画像出力装置
1から出力される画像が単純2値化された画像の場合は
、単純2値化回路7から出力される信号を選択する。疑
似中間調処理された画像に対して投影法処理部で整数倍
でない端数の倍率の変換を行なった場合、単純2値化回
路7で処理すると、モアレが発生する。
If the image output from the image output device 1 is an image subjected to pseudo-halftone processing, the multiplexer 8 selects the signal output from the error diffusion processing section 6. Furthermore, if the image output from the image output device 1 is a simple binarized image, the signal output from the simple binarization circuit 7 is selected. If the projection processing unit converts the image that has been subjected to pseudo-halftone processing to a fractional magnification that is not an integer multiple, moiré will occur if the image is processed by the simple binarization circuit 7.

このため誤差拡散処理部6で処理を行なってモアレの発
生を防ぐ。また単純2値化された画像に対して投影法処
理部で端数倍の変換を行なった場合、誤差拡散処理部6
で処理を行なうと文字のエツジ部に突起が発生したり、
エツジ部がぼやける場合がある。このため単純2値化さ
れた画像に対しては単純2値化回路7で処理を行ない文
字部の画質劣化を防ぐ。
For this reason, the error diffusion processing section 6 performs processing to prevent the occurrence of moiré. Furthermore, when the projection processing unit performs fractional multiplication on a simple binarized image, the error diffusion processing unit 6
If you process with
Edges may become blurred. Therefore, the simple binarized image is processed by the simple binarization circuit 7 to prevent image quality deterioration in the text portion.

以上、処理する画像の性質に依るマルチプレクサ4.8
の切換を説明したが、マルチプレクサの切換えはオペレ
ーションパネル(図示せず)から切換えても良いし、C
PU等が画像出力装置1から出力される画像の特性を管
理して、その情報からCPUが制御信号を出力して切換
えても良い。例えば、変化点数やパターンの構造等から
疑似中間調処理部分と単純2値化部分とを分離する方法
が考えられる。
As mentioned above, the multiplexer 4.8 depends on the nature of the image to be processed.
Although we have explained how to switch the multiplexer, you can switch the multiplexer from the operation panel (not shown) or from the C
The PU or the like may manage the characteristics of the image output from the image output device 1, and the CPU may output a control signal and switch based on the information. For example, a method of separating the pseudo halftone processing part and the simple binarization part based on the number of change points, pattern structure, etc. can be considered.

く画像情報入力部〉 第21図はマルチプレクサ8の切換えを画像情報入力部
9′により入力された情報により行う場合の、構成例を
示すブロック図である。
Image Information Input Unit> FIG. 21 is a block diagram showing an example of the configuration when switching the multiplexer 8 based on information input by the image information input unit 9'.

ここで、画像情報入力部は、前述したようなページ単位
に画像を判定して切換えるモード切換えスイッチ9でな
く、第22図に示すようにCRT等に表示させた画像上
で、キーボードやマウス等の入力装置によりページ内の
領域情報とその座標A(Xl、yl)、B(xa、y2
)を入力し、ページ内で分離選択するものである。
Here, the image information input section is not the mode changeover switch 9 that determines and switches the image on a page-by-page basis as described above, but the image information input section that uses the keyboard, mouse, etc. With the input device, area information within the page and its coordinates A (Xl, yl), B (xa, y2
) and select them separately within the page.

上記画像情報入力部9′の構成例を第23図に、動作タ
イミングを第24図に示す。キーボードやマウス等92
から領域座標及び内容情報入力部91を通して入力され
た座標情報及びその領域の画像情報から、選択信号タイ
ミング制御部93により画像クロック及びライン同期信
号に同期した選択信号が得られる。なお、第24図の選
択信号で、Highは擬似中間良画像、Lowは文字或
はは線画である。
FIG. 23 shows an example of the configuration of the image information input section 9', and FIG. 24 shows its operation timing. Keyboard, mouse, etc. 92
The selection signal timing control section 93 obtains a selection signal synchronized with the image clock and the line synchronization signal from the coordinate information and image information of the area input through the area coordinate and content information input section 91. In addition, in the selection signal shown in FIG. 24, High indicates a pseudo intermediate good image, and Low indicates a character or line drawing.

以上説明した様に、本発明では投影法により求められた
変換画素の平均濃度或は平均輝度を誤差拡散法を用いて
2値化処理を行なう事で、疑似中間調処理された画像に
対して処理した場合に生じるモワレにより画質劣化を防
ぐ事が可能となる。
As explained above, in the present invention, by performing binarization processing on the average density or average brightness of converted pixels obtained by the projection method using the error diffusion method, It is possible to prevent image quality deterioration due to moiré that occurs during processing.

更に、単純2値化処理部を儲は画像の性質によって選択
を行なう事で変換画像の画素密度が低い場合の変換時に
問題となるエツジ劣化や細線の点線化を防ぐことが可能
となる。
Furthermore, by selecting the simple binarization processing section depending on the nature of the image, it is possible to prevent edge deterioration and dotted thin lines, which are problems during conversion when the pixel density of the converted image is low.

[発明の効果] 本発明により、不特定の処理法により疑似中間調処理さ
れた画像と文字や線画の混在した画像を任意の倍率で良
好に画素密度変換する画素密度変換装置を提供できる。
[Effects of the Invention] According to the present invention, it is possible to provide a pixel density conversion device that satisfactorily converts the pixel density of an image that has been subjected to pseudo-halftone processing using an unspecified processing method and an image that includes characters and line drawings at an arbitrary magnification.

詳細には、 (1)変換する2値画像が疑似中間調処理された画像の
場合、投影法処理及び誤差拡散処理を行うことにより端
数倍の倍率の変換においてもモアレの発生を少なく押え
る効果がある。
In detail, (1) If the binary image to be converted is an image that has been subjected to pseudo-halftone processing, projection processing and error diffusion processing are effective in suppressing the occurrence of moiré even when converting fractional magnifications. be.

(2)変換する2値画像が単純2値化処理された画像の
場合、投影法処理及び単純2値化処理を行うことにより
文字或は図のエツジ部の劣化を押える効果がある。
(2) When the binary image to be converted is an image that has been subjected to simple binarization processing, performing the projection method processing and the simple binarization processing has the effect of suppressing deterioration of the edge portions of characters or figures.

(3)画素数減少の倍率が2分の1倍以下のとき、間引
き処理部或は多数決処理部及び投影法処理を併用するこ
とにより、投影法処理の負担を軽減し、ハードを小規模
にできる効果がある。
(3) When the magnification for reducing the number of pixels is 1/2 or less, by using the thinning processing section or majority processing section and projection processing together, the burden of projection processing can be reduced and the hardware can be made smaller. There is an effect that can be done.

(4)(3)の場合において、変換する2値画像が疑似
中間調処理された画像の場合、間引き処理を行うことに
より、白画素、黒画素の数の割合の変化を押え中間調を
保存する効果がある。
(4) In the case of (3), if the binary image to be converted is an image that has been subjected to pseudo-halftone processing, by performing thinning processing, the change in the ratio of the number of white pixels and black pixels is suppressed and the halftone is preserved. It has the effect of

(5)(3)の場合において変換する2値画像が単純2
値化処理された画像である場合は、多数決処理を行うこ
とにより、細線の抜けや途切れを最小限に押える効果が
ある。
(5) In the case of (3), the binary image to be converted is simple 2
If the image has been digitized, performing majority voting has the effect of minimizing missing or discontinuous thin lines.

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

第1図は本実施例の画素密度変換装置の構成を示すブロ
ック図、 第2図は画像出力装置の入力出力信号のタイミングチャ
ート、 第3図は多数決処理部の構成例を示すブロック図、 第4図は間引き処理部の構成例を示すブロック図、 第5図は副走査方向で2分の1に画素数を減少させる場
合の多数決処理部及び間引き処理部の入力出力信号のタ
イミングチャート、 第6図は主走査方向で2分の1に画素数を減少させる場
合の多数決処理部及び間引き処理部の入力出力信号のタ
イミングチャート、 第7図は画素出力装置から出力された画素情報の例を示
す図、 第8A図は第7図の画像情報を多数決処理部で処理した
出力画像を示す図、 第8B図は第7図の画像情報を間引き処理部で処理した
出力画像を示す図、 第9図は投影法の原理を示す図、 第10図は投影法処理部の構成を示すプリッタ図、 第11図は投影法の画素数減少の場合の変換前画素と変
換後画素の辺の重なりを示す図、第12図は投影法処理
部での画素数減少の場合のタイミングチャート、 第13図は投影法の画素数増加の場合の変換前画素と変
換後画素の辺の重なりを示す図、第14図は投影法処理
部の画素数増加の場合のタイミングチャート、 第15図は投影法処理部での近似された参照画素を示す
図、 第16図は主走査方向及び副走査方向に256分の13
6の倍率の画素数減少の場合の変換前画素と変換後画素
の対応の例を示す図、第17図は誤差拡散処理部の構成
を示すブロック図、 第18図は誤差拡散処理部の拡散マトリクスの例を示す
図、 第19図は平均誤差最小法による2値化処理部の構成を
示すブロック図、 第20図は平均誤差最小法の重み付はマトリクスの例を
示す図である。 第21図は画像情報入力部を備える構成を示すブロック
図、 第22図はCRT等に表示させた疑似中間調領域と文字
線画領域の混存した原稿を示す図、第23図及び第24
図は画像情報入力部の構成とそのタイムチャートを示す
図である。 1・・・画像出力装置、2・・・多数決処理部、3・・
・間引き処理部、4・・・マルチプレクサ、5・・・投
影法処理部、6・・・誤差拡散処理部(平均誤差最小法
による2値化処理部)、7・・・単純2値化回路、8・
・・マルチプレクサ、9・・・モード切換スイッチ、あ
る。 ・・・画像情報入力部、 O・・・水晶発振器で 第8A図 第8B図 第9 図 第15 図 第16 図 第22図 第23図
FIG. 1 is a block diagram showing the configuration of the pixel density conversion device of this embodiment, FIG. 2 is a timing chart of input/output signals of the image output device, and FIG. 3 is a block diagram showing an example of the configuration of the majority decision processing section. 4 is a block diagram showing an example of the configuration of the thinning processing section, and FIG. 5 is a timing chart of input and output signals of the majority processing section and the thinning processing section when the number of pixels is reduced by half in the sub-scanning direction. Figure 6 is a timing chart of input and output signals of the majority processing unit and thinning processing unit when the number of pixels is reduced by half in the main scanning direction, and Figure 7 is an example of pixel information output from the pixel output device. 8A is a diagram showing an output image obtained by processing the image information in FIG. 7 by a majority processing unit; FIG. 8B is a diagram showing an output image obtained by processing the image information in FIG. Figure 9 is a diagram showing the principle of the projection method, Figure 10 is a splitter diagram showing the configuration of the projection processing unit, and Figure 11 is the overlap of the sides of the pre-conversion pixels and post-conversion pixels when the number of pixels is reduced in the projection method. Figure 12 is a timing chart when the number of pixels is decreased in the projection processing section. Figure 13 is a diagram showing the overlap of the sides of the pre-conversion pixels and post-conversion pixels when the number of pixels is increased in the projection method. , Fig. 14 is a timing chart when the number of pixels in the projection method processing section is increased, Fig. 15 is a diagram showing approximated reference pixels in the projection method processing section, and Fig. 16 is a timing chart in the case of increasing the number of pixels in the projection method processing section. 13/256
A diagram showing an example of the correspondence between pre-conversion pixels and post-conversion pixels when the number of pixels is reduced by a magnification of 6. Fig. 17 is a block diagram showing the configuration of the error diffusion processing section. Fig. 18 is a diffusion diagram of the error diffusion processing section. FIG. 19 is a block diagram showing the configuration of a binarization processing unit based on the minimum average error method. FIG. 20 is a diagram showing an example of a weighting matrix using the minimum average error method. FIG. 21 is a block diagram showing a configuration including an image information input section, FIG. 22 is a diagram showing a document displaying a mixed halftone area and text/line drawing area on a CRT, etc., and FIGS. 23 and 24.
The figure is a diagram showing the configuration of an image information input section and its time chart. 1... Image output device, 2... Majority decision processing unit, 3...
- Thinning processing unit, 4...Multiplexer, 5...Projection method processing unit, 6...Error diffusion processing unit (binarization processing unit using the minimum average error method), 7...Simple binarization circuit , 8・
...Multiplexer, 9...There is a mode changeover switch. ...Image information input unit, O...Crystal oscillator, Fig. 8A, Fig. 8B, Fig. 9, Fig. 15, Fig. 16, Fig. 22, Fig. 23

Claims (2)

【特許請求の範囲】[Claims] (1)画素数の増加或は減少により画素密度を変換する
画素密度変換装置であって、 原画像が文字や線画か或は疑似中間調処理された画像で
あるかを入力する画像情報入力手段と、投影法により画
素密度変換後の平均濃度或は平均輝度を演算する演算手
段と、 前記演算手段よりの平均濃度或は平均輝度を一定しきい
値で2値化する第1の2値化手段と、既に2値化された
周囲画素の2値化に伴う量子化誤差により補正された平
均濃度或は平均輝度を2値化する第2の2値化手段と、 前記画像情報入力手段より入力された画像情報に対応し
て、前記第1の2値化手段と第2の2値化手段とを選択
する選択手段とを備えることを特徴とする画素密度変換
装置。
(1) A pixel density conversion device that converts pixel density by increasing or decreasing the number of pixels, and an image information input means for inputting whether the original image is a character, a line drawing, or an image subjected to pseudo halftone processing. a calculation means for calculating the average density or average brightness after pixel density conversion using a projection method; and a first binarization for binarizing the average density or average brightness from the calculation means using a constant threshold value. means, a second binarization means for binarizing the average density or average luminance corrected by the quantization error accompanying the binarization of the surrounding pixels that have already been binarized; and the image information inputting means. A pixel density conversion device comprising: a selection means for selecting the first binarization means and the second binarization means in accordance with input image information.
(2)前記画像情報入力手段は、同一原画像上の文字や
線画の領域と疑似中間調処理された領域とを入力する領
域入力手段を備えることを特徴とする請求項1記載の画
素密度変換装置。
(2) The pixel density conversion according to claim 1, wherein the image information input means includes an area input means for inputting an area of characters or line drawings and an area subjected to pseudo halftone processing on the same original image. Device.
JP1145476A 1989-03-14 1989-06-09 Picture element density converter Pending JPH0311878A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP1145476A JPH0311878A (en) 1989-06-09 1989-06-09 Picture element density converter
US07/492,490 US5289293A (en) 1989-03-14 1990-03-12 Pixel density conversion and processing
DE69020202T DE69020202T2 (en) 1989-03-14 1990-03-13 Device for converting the pixel density.
EP90302677A EP0389164B1 (en) 1989-03-14 1990-03-13 Pixel density converting apparatus
US08/159,206 US5351137A (en) 1989-03-14 1993-11-30 Pixel density converting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1145476A JPH0311878A (en) 1989-06-09 1989-06-09 Picture element density converter

Publications (1)

Publication Number Publication Date
JPH0311878A true JPH0311878A (en) 1991-01-21

Family

ID=15386134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1145476A Pending JPH0311878A (en) 1989-03-14 1989-06-09 Picture element density converter

Country Status (1)

Country Link
JP (1) JPH0311878A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268462A (en) * 1992-03-19 1993-10-15 Mitsubishi Electric Corp Picture processor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6273865A (en) * 1985-09-27 1987-04-04 Toshiba Corp Line density converting device
JPS63155956A (en) * 1986-12-19 1988-06-29 Matsushita Electric Ind Co Ltd Picture signal processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6273865A (en) * 1985-09-27 1987-04-04 Toshiba Corp Line density converting device
JPS63155956A (en) * 1986-12-19 1988-06-29 Matsushita Electric Ind Co Ltd Picture signal processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268462A (en) * 1992-03-19 1993-10-15 Mitsubishi Electric Corp Picture processor

Similar Documents

Publication Publication Date Title
EP0389164B1 (en) Pixel density converting apparatus
JPH05268462A (en) Picture processor
JPH1127517A (en) Image-processing apparatus
EP0505113B1 (en) Image processing apparatus
JPH06105160A (en) Image controller
JPH07131634A (en) Image processor
JP3026706B2 (en) Image processing device
JPH08287244A (en) Resolution conversion device and method therefor
JPH0311878A (en) Picture element density converter
JP3262425B2 (en) Image processing device
JP2714140B2 (en) Pixel density converter
JP2833670B2 (en) Pixel density conversion method
JPH0311478A (en) Picture element density converter
JPH0575863A (en) Picture signal processing system
JP2714141B2 (en) Pixel density converter
JP2851724B2 (en) Image processing device
JP3581460B2 (en) Image processing method and apparatus
JPH0540826A (en) Picture element density conversion system
JPH0311880A (en) Picture element density converter
JPH01312671A (en) Picture processor
JP2845376B2 (en) Pixel density converter
JP3347395B2 (en) Image processing apparatus and method
JPH10126609A (en) Image processor
JP2833669B2 (en) Pixel density conversion method
JPH06348834A (en) Image processing device