JPH09307747A - Resolution converter - Google Patents

Resolution converter

Info

Publication number
JPH09307747A
JPH09307747A JP8118721A JP11872196A JPH09307747A JP H09307747 A JPH09307747 A JP H09307747A JP 8118721 A JP8118721 A JP 8118721A JP 11872196 A JP11872196 A JP 11872196A JP H09307747 A JPH09307747 A JP H09307747A
Authority
JP
Japan
Prior art keywords
grid
image
pixel
line
original
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
JP8118721A
Other languages
Japanese (ja)
Inventor
Hitoshi Horie
等 堀江
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems 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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP8118721A priority Critical patent/JPH09307747A/en
Publication of JPH09307747A publication Critical patent/JPH09307747A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To attain a high speed reduction processing by approximating an area discriminated to be a very small area among areas in a way of including the very small area to its adjacent area to extend a setting range of a reduction rate up to a range in excess of the reduction rate depending on a given picture element number or a line memory number. SOLUTION: A high-order 8-bit as a result of product sum result being an output of a projection filter 9 (assuming 256 gradation herein) is obtained from an adder 14. In the binarization processing, when the filter output is higher than a threshold level, a comparator 15 provides an output of '1' as a black level picture element and when not, the comparator 15 provides an output of '0' as a white level picture element. Contents of reference shift registers 10-12 are shifted left by an X-shift bit and a content of a counter is decremented simultaneously and when the count of the counter reaches 0, image data are given to low-order bytes of the reference shift registers. The processing above is repeated for several number of times, then one byte of reduced image data is generated and written in an image memory 13. Then 0-bits are filled to reduced image data less than one byte at the end of each line and the resulting byte data are written in the memory 13. Thus, one line of the reduced image is generated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はファクシミリ装置や
ディジタル複写機などで画像を縮小する際に用いられる
解像度変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a resolution conversion device used for reducing an image in a facsimile machine, a digital copying machine or the like.

【0002】[0002]

【従来の技術】ファクシミリ装置では、スキャナから画
像データを入力して2値化処理、圧縮処理を施して一時
的にメモリに蓄積し、送信時に相手の能力に合わせるた
めに、例えばB4版からA4版に画像を縮小することが
ある。また、定形紙記録紙を使ったファクシミリ装置で
は、記録紙の範囲内に記録画像を納めるために縮小を行
うこともある。
2. Description of the Related Art In a facsimile machine, image data is input from a scanner, binarized and compressed, and temporarily stored in a memory. The image may be reduced to the plate. Further, in a facsimile machine using a standard size recording paper, the size of the recording paper may be reduced in order to fit the recording image within the range of the recording paper.

【0003】従来からこのような用途で画像を縮小する
方法の一つとして投影法が用いられている。投影法は、
図7に示すように、変換画像を表す格子(以下、生成格
子と呼び実線で示す)に投影される原画像を表す格子
(以下、オリジナル格子と呼び波線で示す)の面積をフ
ィルタ係数として生成画素を出力する2次元フィルタで
ある。このとき主走査方向の縮小率は生成格子の幅に対
するオリジナル格子の幅で表される。図中X_rati
oが主走査変換率を表す。副走査方向についても同様で
ある。
Conventionally, a projection method has been used as one of methods for reducing an image for such an application. The projection method is
As shown in FIG. 7, the area of a lattice (hereinafter, referred to as an original lattice and a nominal wavy line) representing an original image projected on a lattice that represents a converted image (hereinafter, referred to as a generation lattice and a solid line) is generated as a filter coefficient. It is a two-dimensional filter that outputs pixels. At this time, the reduction ratio in the main scanning direction is represented by the width of the original grid with respect to the width of the generation grid. X_rati in the figure
o represents the main scanning conversion rate. The same applies to the sub-scanning direction.

【0004】例えば、図中の網掛け画素に対するフィル
タ出力は、 FilOut=(P2,2×S00+P2,3×S01
+P3,2×S10+P3,3×S11) で表される。
For example, the filter output for the shaded pixels in the figure is FilOut = (P2,2 × S00 + P2,3 × S01
+ P3,2 × S10 + P3,3 × S11)

【0005】ここで、P2,2などは原画素を表し、こ
こでは黒画素は”255”、白画素は”0”の値をとる
ものとする。S00は生成格子内部のP2,2の格子の
占める面積である。他の面積も同様である。FilOu
tは多値の信号として得られるので、それをしきい値T
hと比べて2値画像を得る。すなわち、 FilOut ≧ Th → ”黒画素” FilOut < Th → ”白画素” しきい値は、あらかじめ定められた定数で原画素が25
6階調であれば、中間値の”128”とする。
Here, P2, 2 and the like represent original pixels, and black pixels have a value of "255" and white pixels have a value of "0". S00 is the area occupied by the lattice of P2, 2 inside the generation lattice. The same applies to other areas. FilOu
Since t is obtained as a multivalued signal, it is set as a threshold value T
A binary image is obtained compared to h. That is, FilOut ≧ Th → “black pixel” FilOut <Th → “white pixel” The threshold value is a predetermined constant and the original pixel is 25
If there are 6 gradations, the intermediate value is set to "128".

【0006】[0006]

【発明が解決しようとする課題】しかし、上述のように
構成された解像度変換装置は、縮小の度合いを大きくす
ると参照画素の範囲が広がるため、特に副走査方向では
ラインメモリ数が多くなり回路規模が増大する。またラ
インメモリが多くなると画像メモリからのリード回数お
よび、生成格子の分割領域が多くなり処理時間が増大す
るという問題もある。
However, in the resolution conversion apparatus configured as described above, the range of reference pixels expands as the degree of reduction increases, so the number of line memories increases, especially in the sub-scanning direction, and the circuit scale increases. Will increase. Further, when the line memory increases, there is a problem that the number of times of reading from the image memory and the divided area of the generation grid increase and the processing time increases.

【0007】本発明は、回路規模が増大させることな
く、縮小率の設定範囲を広げることができ、また、積和
演算の回数の削減が可能な高速化に適した解像度変換装
置を提供することを目的とする。
The present invention provides a resolution converter suitable for speeding up, which can widen the setting range of the reduction ratio without increasing the circuit scale and can reduce the number of product-sum operations. With the goal.

【0008】[0008]

【課題を解決するための手段】本発明は、原画像を表す
格子が変換画像の作る格子に投影する領域の大きさを原
画素の重みとして変換画素の値を計算する解像度変換装
置において、前記領域のうち微少と判断できる領域をそ
の隣接領域に含めるよう近似させ、与えられた画素数ま
たはラインメモリ数で決まる縮小率を越えた範囲まで解
像度変換装置の動作範囲を広げるようにする。
According to the present invention, there is provided a resolution conversion device for calculating a value of a conversion pixel by using a size of an area projected by a grid representing an original image on the grid formed by the conversion image as a weight of the original pixel. A region that can be judged to be minute among the regions is approximated to be included in the adjacent region, and the operation range of the resolution conversion device is expanded to a range exceeding the reduction ratio determined by the given number of pixels or the number of line memories.

【0009】[0009]

【発明の実施の形態】本発明は、以下の理論に基づいて
いる。
The present invention is based on the following theory.

【0010】すなわち、nを整数として縮小率が1/
(n−1)までの範囲であればn本の参照ラインがあれ
ば充分である。例えば、縮小率が1/2までは参照ライ
ンは3本で充分であり、縮小率が1/2よりわずかに下
回ると生成格子とオリジナル格子の位相状態によっては
4本のラインメモリが必要になる。ところが、設定され
た縮小率と1/2との差が小さければ、4本のラインメ
モリが必要な場合に、生成格子内にオリジナル格子が作
る最初の格子幅、または最後の格子幅は小さく、それら
の格子に対応する画素の影響も小さいと考えられる。
That is, the reduction ratio is 1 / where n is an integer.
In the range up to (n-1), it is sufficient to have n reference lines. For example, if the reduction ratio is 1/2, three reference lines are sufficient, and if the reduction ratio is slightly less than 1/2, four line memories are required depending on the phase states of the generation grating and the original grating. . However, if the difference between the set reduction ratio and 1/2 is small, the initial grid width or the final grid width created by the original grid in the generated grid is small when four line memories are required, It is considered that the influence of the pixels corresponding to those grids is small.

【0011】そこで、本発明では上記の例のような場合
に、生成格子内の最初または最後の小さい格子面積を隣
接する格子領域に含め、3ラインの画像を参照しながら
近似的に4ライン必要とされる縮小範囲まで動作できる
ように構成したものである。画像は2次元相関が強いの
でこのように近似しても近似範囲が小さければ大きな画
質劣化は避けることができる。
Therefore, in the present invention, in the case of the above example, the first or last small grid area in the generation grid is included in the adjacent grid area, and approximately four lines are required while referring to the image of three lines. It is configured so that it can operate up to the reduction range. Since the image has a strong two-dimensional correlation, even if such an approximation is performed, a large image quality deterioration can be avoided if the approximation range is small.

【0012】[0012]

【実施例】以下、本発明の実施例を図面を参照して説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0013】図1は、本発明の実施例を示す解像度変換
装置のブロック図である。本実施例では、副走査方向の
縮小率が1.0〜0.5の場合を示している。主走査方
向の縮小率の範囲は1.0〜0.33とする。従って、
生成格子内に入るオリジナル格子の数は主走査方向(以
下、X方向)で最大4本、副走査方向(以下、Y方向)
で最大3本と仮定している。
FIG. 1 is a block diagram of a resolution converting apparatus showing an embodiment of the present invention. In this embodiment, the reduction ratio in the sub-scanning direction is 1.0 to 0.5. The range of the reduction ratio in the main scanning direction is 1.0 to 0.33. Therefore,
The maximum number of original grids in the generated grid is four in the main scanning direction (hereinafter, X direction), and the sub scanning direction (hereinafter, Y direction).
It is assumed that the maximum is 3.

【0014】まず、本実施例の構成要素を説明し、次に
処理フロー図に従って動作を説明する。1は解像度変換
装置全体を制御する制御部であり、シーケンス制御回路
1a、算術論理演算回路1b(ALU)、各種の制御パ
ラメータを格納するパラメータレジスタ1cから構成さ
れる。レジスタ2〜5はX方向の格子幅を格納するレジ
スタである。同様にレジスタ6〜8はY方向の格子幅を
格納するレジスタである。投影フィルタ9は3個の積和
演算回路9a〜9cによって構成される。投影フィルタ
9への入力はX方向、Y方向の格子幅と参照画素であ
る。参照画素は3ラインの画像データを同時に参照でき
る構成である。それらは参照画素シフトレジスタ10〜
12に格納される。10は第jライン目の参照画像デー
タを画像メモリ13から入力する。画像データは、この
レジスタの下位側に入力される。11、12についても
同一の構成である。14は各積和演算回路の出力を加算
する加算器である。加算器14の出力がフィルタの出力
である。15は比較器であり、フィルタ出力をしきい値
であるレジスタ16の出力と比較して2値化する。シフ
トレジスタ17は、2値化した画素が生成される毎に1
ビットシフトし、バイトデータにパッキングする回路で
ある。8画素生成される毎に、画像データバス18を通
して画像メモリ13に転送する。
First, the components of this embodiment will be described, and then the operation will be described with reference to the process flow diagram. Reference numeral 1 denotes a control unit that controls the entire resolution conversion apparatus, and includes a sequence control circuit 1a, an arithmetic logic operation circuit 1b (ALU), and a parameter register 1c that stores various control parameters. Registers 2 to 5 are registers that store the grid width in the X direction. Similarly, the registers 6 to 8 are registers for storing the lattice width in the Y direction. The projection filter 9 is composed of three product-sum operation circuits 9a to 9c. Inputs to the projection filter 9 are a grid width in the X and Y directions and a reference pixel. The reference pixel has a configuration capable of simultaneously referring to image data of three lines. They are the reference pixel shift registers 10
12 is stored. 10 receives the reference image data of the j-th line from the image memory 13. The image data is input to the lower side of this register. The same configuration is applied to 11 and 12. Reference numeral 14 is an adder that adds the outputs of the product-sum operation circuits. The output of the adder 14 is the output of the filter. A comparator 15 binarizes the filter output by comparing it with the output of the register 16 which is a threshold value. The shift register 17 is set to 1 every time a binarized pixel is generated.
This is a circuit for bit shifting and packing into byte data. Every time 8 pixels are generated, they are transferred to the image memory 13 through the image data bus 18.

【0015】図2は、積和演算回路9aの構成例を示し
たものである。構成要素は乗算器21、セレクタ22の
組み合わせを4組有している。セレクタ22は参照画素
が黒画素であれば”ff”を、白画素であれば”0”を
出力する。
FIG. 2 shows a configuration example of the product-sum calculation circuit 9a. The constituent element has four combinations of the multiplier 21 and the selector 22. The selector 22 outputs "ff" if the reference pixel is a black pixel, and outputs "0" if it is a white pixel.

【0016】図3は、算術論理演算回路1bとパラメー
タレジスタ1cの内容を示したものである。レジスタの
意味については動作説明のところで必要に応じて説明す
る。
FIG. 3 shows the contents of the arithmetic logic operation circuit 1b and the parameter register 1c. The meaning of the register will be described in the operation description as necessary.

【0017】図4乃至図6は、本発明による近似処理の
説明図である。本実施例では近似処理は副走査方向のみ
を対象とした。縮小率を0.5以下にすると生成格子と
オリジナル格子の位相関係によっては、図4のように4
ラインの画像データを参照する状態が現れる。しかし、
縮小率の0.5からの差が小さければ面積S00、S0
1、S02、S03は次のラインが作る分割領域S1
0、S11などに比べて小さい。図5は、生成格子の最
初の格子幅における近似の方法を示したものである。図
4と比較すると、S00をS10の中に含めている。別
の見方をすると第jラインを参照すべきところを次のラ
インである第(j+1)ラインで代用している。図4に
示した幅の細い部分は生成格子の最初か最後に現れる。
図5と同様に図6は生成格子の最後の部分をその手前の
ラインで近似する様子を示したものである。このように
近似することによって4ラインのメモリは必要なところ
を3ラインで処理することができる。特に、文書画像で
は相関が強く、第jラインも第(j+1)ラインも似た
ような画素配列を持つ場合が多く近似度が小さければ大
きな画質劣化は避けれる。 次に、図9によって動作を
説明する。まず、フロー図に表れるシンボルを図8によ
って説明する。X_initialは生成格子内の最初
の格子幅、X_ratioは縮小率であり、Rxは最後
の格子幅である。Y方向についても同様にシンボルを定
義する。参照ラインは上から第jライン、第(j+1)
ライン、第(j+2)ラインとする。生成格子がオリジ
ナル格子によって分割される領域の面積は添え字を付け
てS00のように表す。それ以外のシンボルは必要に応
じて説明する。
4 to 6 are explanatory views of the approximation processing according to the present invention. In this embodiment, the approximation processing is targeted only in the sub-scanning direction. If the reduction ratio is set to 0.5 or less, depending on the phase relationship between the generation lattice and the original lattice, as shown in FIG.
The state of referring to the image data of the line appears. But,
Areas S00 and S0 if the difference from the reduction ratio of 0.5 is small
1, S02, S03 are divided areas S1 created by the next line
It is smaller than 0 and S11. FIG. 5 shows an approximation method in the initial grid width of the generation grid. Compared with FIG. 4, S00 is included in S10. From another point of view, the place where the j-th line should be referred to is substituted with the next line, the (j + 1) -th line. The narrow portion shown in FIG. 4 appears at the beginning or end of the generator grid.
Similar to FIG. 5, FIG. 6 shows a state in which the last part of the generation grid is approximated by the line before it. By approximating in this way, the 4-line memory can process the required area with 3 lines. In particular, in a document image, the correlation is strong, and the j-th line and the (j + 1) -th line often have similar pixel arrangements, and if the degree of approximation is small, large image quality deterioration can be avoided. Next, the operation will be described with reference to FIG. First, the symbols appearing in the flow chart will be described with reference to FIG. X_initial is the initial grid width in the generation grid, X_ratio is the reduction ratio, and Rx is the final grid width. A symbol is similarly defined for the Y direction. The reference line is the j-th line from the top, the (j + 1) -th line
The line is the (j + 2) th line. The area of the region in which the generation grid is divided by the original grid is represented by S00 with a subscript. Other symbols will be explained as necessary.

【0018】図7において、加算、減算は算術論理演算
回路1bによって実行されるものとする。
In FIG. 7, it is assumed that addition and subtraction are executed by the arithmetic logic operation circuit 1b.

【0019】図9において、処理101はページの先頭
におけるレジスタの初期化として、Y方向のオリジナル
格子のアドレスを計算するレジスタであるYlatti
ceRegとY_initialをクリアする。図3に
示すように、これらのレジスタはパラメータレジスタ1
cに含まれている。
In FIG. 9, a process 101 is a Ylatti which is a register for calculating an address of an original lattice in the Y direction as initialization of a register at the head of a page.
Clear ceReg and Y_initial. These registers are parameter registers 1 as shown in FIG.
It is included in c.

【0020】処理102は参照画素シフトレジスタ1
0、11、12に参照画像データを入力する。まず、シ
フトレジスタ10の下位バイトに第1ライン(j=1)
の先頭のバイトデータを画像メモリ13から入力し、そ
れを8ビット左にシフトする。シフト操作はシフト信号
Sf1を8回入力する。シフト信号Sf1はシーケンス
制御回路1aから出力される制御信号の一部である。そ
の後再度、下位バイトに次の1バイトを入力する。シフ
トレジスタ11には第2ラインの参照画像データを、1
2には第3ラインの参照画像データを同様にして入力す
る。
Process 102 is the reference pixel shift register 1
Reference image data is input to 0, 11, and 12. First, in the lower byte of the shift register 10, the first line (j = 1)
The byte data at the head of is input from the image memory 13 and is shifted to the left by 8 bits. For the shift operation, the shift signal Sf1 is input eight times. The shift signal Sf1 is a part of the control signal output from the sequence control circuit 1a. After that, the next 1 byte is input to the lower byte again. The shift register 11 stores the reference image data of the second line in 1
The reference image data of the third line is similarly input to 2.

【0021】処理103は処理101同様に、X方向の
オリジナル格子のアドレスを計算するレジスタXlat
ticeRegとX_initialをクリアする。C
Tはカウンタ値であり、初期値は8を設定する。
The process 103 is similar to the process 101, and is a register Xlat for calculating the address of the original lattice in the X direction.
Clear theiceReg and X_initial. C
T is a counter value, and 8 is set as the initial value.

【0022】処理104はY方向の格子アドレスを計算
し、その値から格子幅を計算しレジスタ6〜8に設定す
る。
In process 104, the lattice address in the Y direction is calculated, and the lattice width is calculated from the calculated value and set in the registers 6-8.

【0023】図11,12に処理104の詳細を示す。
処理300はY_shiftとY_numをクリアす
る。Y_shiftは生成格子に含まれるオリジナル格
子数であり、Y_numは生成格子にかかる参照ライン
数である。図8を例にすると、Y_shift=2、Y
_num=3となる。
11 and 12 show details of the process 104.
The process 300 clears Y_shift and Y_num. Y_shift is the number of original grids included in the generation grid, and Y_num is the number of reference lines applied to the generation grid. Taking FIG. 8 as an example, Y_shift = 2, Y
_Num = 3.

【0024】処理301の判断でY_initial
が”0”でなければ処理302でワークレジスタにY_
initialの値を書き込み、処理303でY_sh
ift、Y_numをインクリメントする。ページの先
頭では、Y_initialは”0”であるから、これ
らの処理は行われない。
Y_initial is determined in the processing 301.
Is not “0”, the work register is set to Y_ in process 302.
The initial value is written, and in step 303 Y_sh
Increment ift, Y_num. At the beginning of the page, Y_initial is "0", so these processes are not performed.

【0025】処理304でY_initiaとY方向の
縮小率Y_ratioの加算を算術論理演算回路1bに
よって行い、演算結果はアキュムレータ(acca)に
一時的に格納される。生成格子の幅は10000Hに正
規化し、縮小率は生成格子の幅に対するオリジナル格子
の幅と定義する。例えば、縮小率が0.9であれば、6
5536×0.9=58982=E666Hであるか
ら、パラメータレジスタY_ratioには、あらかじ
めE666Hを設定しておく。X方向についても同様で
ある。処理304の結果、処理305でオーバフローを
示すキャリー信号がONするかどうかの判断を行う。キ
ャリー信号は、加算結果が10000Hに等しいか、越
えた場合にONとなる。これは算術論理演算回路1bか
ら出力する状態信号の一部である(図1、図3)。キャ
リー信号がOFFの間は、オリジナル格子が生成格子の
内部にあることを示している。処理306では、処理3
04の結果をYlatticeRegに格納する。処理
307ではY_ratioをワークレジスタに書き込
む。処理308ではY_shiftとY_numをイン
クリメントする。
In process 304, the addition of Y_initia and the reduction ratio Y_ratio in the Y direction is performed by the arithmetic logic operation circuit 1b, and the operation result is temporarily stored in the accumulator (acca). The width of the generation grid is normalized to 10000H, and the reduction ratio is defined as the width of the original grid with respect to the width of the generation grid. For example, if the reduction ratio is 0.9, 6
Since 5536 × 0.9 = 58982 = E666H, E666H is set in advance in the parameter register Y_ratio. The same applies to the X direction. As a result of the process 304, it is determined whether or not the carry signal indicating the overflow is turned on in the process 305. The carry signal is turned on when the addition result is equal to or exceeds 10000H. This is a part of the status signal output from the arithmetic logic operation circuit 1b (FIGS. 1 and 3). While the carry signal is OFF, it indicates that the original lattice is inside the generation lattice. In process 306, process 3
The result of 04 is stored in YlatticeReg. In process 307, Y_ratio is written in the work register. In process 308, Y_shift and Y_num are incremented.

【0026】処理305の判断で処理309に移ったと
する。処理309は生成格子とオリジナル格子が重なる
かどうか判断する。重ならなければ、処理311で最終
の格子幅Ryを求め、ワークレジスタに書き込む。格子
が重なるときには、最終幅はY_ratioに等しいの
で処理314で、これをワークレジスタに書き込む。処
理312と処理315では、Y_shiftの値が”
1”だけ異なる。格子が重なるときは、Y_shift
=Y_numであるが、普通はY_num=Y_shi
ft+1である。処理316で次の生成格子内の演算の
初期値Y_initialを更新する。以上で格子アド
レスの計算が終わる。例えば、縮小率0.9とすると、
第1ライン目ではこれらの値は次のようになる。
It is assumed that the process shifts to the process 309 by the determination of the process 305. Process 309 determines whether the generated grid and the original grid overlap. If they do not overlap with each other, the final grid width Ry is obtained in step 311 and written in the work register. When the grids overlap, the final width is equal to Y_ratio, so in step 314, this is written in the work register. In process 312 and process 315, the value of Y_shift is "
1 ". When the lattices overlap, Y_shift
= Y_num, but normally Y_num = Y_shi
ft + 1. In process 316, the initial value Y_initial of the calculation in the next generation grid is updated. This completes the calculation of the lattice address. For example, if the reduction ratio is 0.9,
On the first line, these values are as follows.

【0027】Y_ratio =E666H Ywork#[0]=E666H Ywork#[1]=199aH Ywork#[2]=0 Y_initial=ccccH Y_shift =1 Y_num =2 処理319〜処理321で上記の格子幅を、格子幅レジ
スタ6、7、8に設定する。処理318で生成格子のY
方向の分割数が2のときには、格子幅レジスタ8に”
0”が書き込まれるようにしている。
Y_ratio = E666H Ywork # [0] = E666H Ywork # [1] = 199aH Ywork # [2] = 0 Y_initial = ccccH Y_shift = 1 Y_num = 2 The widths of the processing 319 to the processing 321 are the widths of the grids 319 to 321. Set in registers 6, 7, and 8. In process 318, the Y of the generated grid
When the number of divisions in the direction is 2, the grid width register 8
0 "is written.

【0028】処理322の判断でY_numが4のとき
は、処理323で生成格子内の最初の格子幅(Ywor
k#[0])と最後の格子幅(Ywork#[3])を
比較しどちら側で近似処理を行うかの判断をする。処理
324〜処理327は最初の格子幅を近似した場合であ
り、図5に対応する。処理328〜処理331は最後の
格子幅を近似する場合であり、図6に相当する。以上が
図9の処理704の内容である。
When Y_num is 4 in the judgment of the process 322, the first grid width (Ywor) in the generated grid is calculated in the process 323.
k # [0]) and the last grid width (Ywork # [3]) are compared to determine which side is to perform the approximation process. Processes 324 to 327 are a case where the initial grid width is approximated, and correspond to FIG. Processes 328 to 331 are for approximating the final grid width and correspond to FIG. The above is the contents of the process 704 of FIG.

【0029】図9中、処理105〜処理111までが1
ラインの処理である。処理105では処理104同様
に、X方向の格子幅を計算し格子幅レジスタ2〜5に設
定する。詳細は図11で近似処理の部分を除いてYをX
と読み替えたものとほぼ同一である。
In FIG. 9, processing 105 to processing 111 is 1
This is line processing. In process 105, as in process 104, the grid width in the X direction is calculated and set in the grid width registers 2-5. For details, refer to FIG.
It is almost the same as

【0030】処理106はフィルタ計算、しきい値処
理、2値化処理である。フィルタ計算は、従来例で説明
した積和演算を行う。図2の構成要素は既に説明したと
おりである。フィルタ出力は、ここでは256階調(8
ビット)を仮定しているので、積和演算結果の上位8ビ
ットが図1の加算器14から得られる。2値化は比較器
15によってフィルタ出力がしきい値より大きければ黒
画素として”1”、そうでなければ白画素”0”とす
る。
Process 106 is filter calculation, threshold value process, and binarization process. For the filter calculation, the sum of products operation described in the conventional example is performed. The components of FIG. 2 are as described above. The filter output here is 256 gradations (8
Since the upper 8 bits of the product-sum operation result are obtained from the adder 14 of FIG. For binarization, if the filter output by the comparator 15 is larger than the threshold value, it is set to "1" as a black pixel, and otherwise set to a white pixel "0".

【0031】処理107はシフト信号Sf2をONし
て、2値化画素1ビットをシフトレジスタ17に書き込
む。以上で1画素のフィルタ処理が終了する。
In the process 107, the shift signal Sf2 is turned on and one bit of the binarized pixel is written in the shift register 17. This completes the filtering process for one pixel.

【0032】処理108では、参照画素シフトレジスタ
10〜12をX_shiftビットだけ左にシフトし、
同時にカウンタCTを減算し、これが”0”になったら
参照画素シフトレジスタの下位バイトに画像データを入
力する。詳細は図10の処理200〜208に示した通
りである。
In process 108, the reference pixel shift registers 10 to 12 are shifted to the left by X_shift bits,
At the same time, the counter CT is subtracted, and when it becomes "0", the image data is input to the lower byte of the reference pixel shift register. The details are as shown in processes 200 to 208 of FIG.

【0033】処理105〜108を8回繰り返すと縮小
画像データが1バイト生成される。これを処理110で
画像メモリ13に書き込む。処理105〜110を1ラ
イン分繰り返す。処理112ではライン端の1バイトに
満たない縮小画像データに”0”ビットを詰めてバイト
データとしてメモリ13に書き込む。以上で縮小画像が
1ライン生成される。
By repeating the processes 105 to 108 eight times, one byte of reduced image data is generated. This is written in the image memory 13 in process 110. The processes 105 to 110 are repeated for one line. In process 112, the reduced image data of less than 1 byte at the line end is padded with "0" bits and written in the memory 13 as byte data. As described above, one line of the reduced image is generated.

【0034】次のラインを生成するには参照ラインを更
新する必要がある。Y_shiftに相当するライン数
は次のラインの処理には使用しないので、それをもとに
してリードすべき画像メモリ13のアドレスを更新すれ
ばよい。以上の処理を原画像のライン数分繰り返せば1
ページの処理が終了する。本実施例では副走査方向のみ
近似処理を行ったが同様の考えを主走査方向の処理に適
用することもできる。また本実施例は2値画像から2値
画像への変換であるが、近似処理自体は多値画像から多
値画像への解像度変換でも同じように適用できる。
The reference line needs to be updated to generate the next line. Since the number of lines corresponding to Y_shift is not used for the processing of the next line, the address of the image memory 13 to be read may be updated based on it. If the above process is repeated for the number of lines of the original image, 1
Processing of the page ends. In this embodiment, the approximation processing is performed only in the sub-scanning direction, but the same idea can be applied to the processing in the main scanning direction. Further, although the present embodiment is a conversion from a binary image to a binary image, the approximation processing itself can be similarly applied to the resolution conversion from a multivalued image to a multivalued image.

【0035】縮小率の設定範囲とラインメモリの本数に
ついて説明を補足する。ラインメモリの本数をn、副走
査方向の縮小率Y_ratioは0から1.0の値をと
るものとする。この場合に従来の投影フィルタで設定可
能な縮小率の最小値は次の状況で決定される。つまり、
ある生成格子がオリジナル格子と一致し、次の生成格子
がn本目の原画像に僅かにかかる場合である。この僅か
にかかる幅をεとし、生成格子の幅を1.0として、こ
のときの関係を式で表すと、 (n−1)×Y_ratio+ε=1.0 となる。縮小率を16ビットで表すとεの最小値は2の
マイナス16乗である。これは算術論理演算器の演算精
度から決まる定数である。したがって、 Y_ratio ≧ (1.0−2-16)/(n−1) が従来の動作範囲となる。本発明ではnを(n+1)で
置き換えて考えると画質劣化が許容できる範囲で、動作
範囲を (1.0−2-16)/(n−1)より小さく、
(1.0−2-16)/nより大きい範囲内まで広げるこ
とができる。
A supplementary explanation will be given on the setting range of the reduction ratio and the number of line memories. It is assumed that the number of line memories is n and the reduction ratio Y_ratio in the sub-scanning direction is a value of 0 to 1.0. In this case, the minimum value of the reduction ratio that can be set by the conventional projection filter is determined in the following situation. That is,
This is the case where one generation grid matches the original grid and the next generation grid slightly covers the nth original image. If this slightly applied width is ε, and the width of the generation grid is 1.0, the relationship at this time is expressed by an equation: (n−1) × Y_ratio + ε = 1.0. When the reduction rate is expressed by 16 bits, the minimum value of ε is 2 minus 16. This is a constant determined by the arithmetic precision of the arithmetic logic unit. Therefore, Y_ratio ≧ (1.0−2 −16 ) / (n−1) is the conventional operating range. In the present invention, when n is replaced with (n + 1), the image quality deterioration is acceptable, and the operation range is smaller than (1.0-2 −16 ) / (n−1).
It can be expanded to a range larger than (1.0-2 -16 ) / n.

【0036】[0036]

【発明の効果】以上の説明から明らかなように、生成格
子の最初または最後の格子幅を隣のラインの面積に含め
るよう近似して、縮小率の設定範囲を広げることがで
き、また、近似することによって、分割領域数が少なく
なるので積和演算の回数が減るので、縮小処理の高速化
を図ることができるという効果を有する。
As is apparent from the above description, the setting range of the reduction ratio can be expanded by approximating the first or last grid width of the generation grid to be included in the area of the adjacent line, and By doing so, the number of divided regions is reduced and the number of product-sum operations is reduced, so that there is an effect that the reduction processing can be speeded up.

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

【図1】本発明の実施例のブロック構成図FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】積和演算回路の詳細ブロック図FIG. 2 is a detailed block diagram of a product-sum calculation circuit.

【図3】パラメータレジスタ1cと算術論理演算回路1
bの周辺を示すブロック図
FIG. 3 shows a parameter register 1c and an arithmetic logic operation circuit 1
Block diagram showing the vicinity of b

【図4】本発明の近似処理の説明図FIG. 4 is an explanatory diagram of an approximation process of the present invention.

【図5】本発明の近似処理の説明図FIG. 5 is an explanatory diagram of an approximation process of the present invention.

【図6】本発明の近似処理の説明図FIG. 6 is an explanatory diagram of an approximation process of the present invention.

【図7】投影法による縮小処理の説明図FIG. 7 is an explanatory diagram of reduction processing by a projection method.

【図8】シンボルの定義を表わす説明図FIG. 8 is an explanatory diagram showing the definition of symbols.

【図9】本発明の動作を説明する処理フロー図FIG. 9 is a process flow chart for explaining the operation of the present invention.

【図10】本発明の動作を説明する詳細処理フロー図FIG. 10 is a detailed process flow chart for explaining the operation of the present invention.

【図11】本発明の動作を説明する詳細処理フロー図FIG. 11 is a detailed process flow chart for explaining the operation of the present invention.

【図12】本発明の動作を説明する詳細処理フロー(続
き)図
FIG. 12 is a detailed process flow diagram (continuation) illustrating the operation of the present invention.

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

1 制御部 1a シーケンス制御回路 1b 算術論理演算回路 1c パラメータレジスタ 2 レジスタ 3 レジスタ 4 レジスタ 5 レジスタ 6 レジスタ 7 レジスタ 8 レジスタ 9 投影フィルタ 9a 積和演算回路 9b 積和演算回路 9c 積和演算回路 10 参照画素シフトレジスタ 11 参照画素シフトレジスタ 12 参照画素シフトレジスタ 13 画像メモリ 14 加算器 15 比較器 16 レジスタ 17 シフトレジスタ 18 画像データバス 1 control unit 1a sequence control circuit 1b arithmetic logic operation circuit 1c parameter register 2 register 3 register 4 register 5 register 6 register 7 register 8 register 9 projection filter 9a product sum operation circuit 9b product sum operation circuit 9c product sum operation circuit 10 reference pixel Shift register 11 reference pixel shift register 12 reference pixel shift register 13 image memory 14 adder 15 comparator 16 register 17 shift register 18 image data bus

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 原画像を表す格子が投影される変換画像
の作る格子の領域の大きさを原画素の重みとして変換画
素の値を計算する解像度変換装置において、前記領域の
うち微少と判断できる領域をその隣接領域に含めるよう
近似させることを特徴とする解像度変換装置。
1. A resolution conversion device that calculates the value of a conversion pixel by using the size of the area of the grid formed by the conversion image onto which the grid representing the original image is projected, as the weight of the original pixel, and determines that the area is minute. A resolution conversion device characterized by approximating a region to be included in an adjacent region.
【請求項2】 原画像を表す格子が投影される変換画像
の作る格子の領域の大きさを原画素の重みとして変換画
素の値を計算し、それを予め定めたしきい値と比較する
ことによって2値化画像を得る解像度変換装置におい
て、前記変換画像の格子内に入る原画像の画素数が予め
定めた値より大きいときには、前記変換画像の格子内で
微少と判断される領域をその隣接領域に含めるよう近似
させることを特徴とする解像度変換方式。
2. A value of a conversion pixel is calculated by using a size of a region of a grid formed by a conversion image onto which a grid representing the original image is projected, as a weight of the original pixel, and the value of the conversion pixel is compared with a predetermined threshold value. In a resolution conversion device for obtaining a binarized image by means of the above, when the number of pixels of the original image in the grid of the converted image is larger than a predetermined value, the area determined to be minute in the grid of the converted image is adjacent to the adjacent area. A resolution conversion method characterized by approximating to include in the area.
【請求項3】 原画像を表す格子が投影される変換画像
の作る格子の領域の大きさを原画素の重みとして変換画
素の値を計算し、それを予め定めたしきい値と比較する
ことによって2値化画像を得る解像度変換装置におい
て、前記変換画像の格子内に入る原画像のライン数が予
め定めた値より大きいときには、前記変換画像の格子内
の最初または最後の分割幅をその隣接領域に含めるよう
近似させることを特徴とする解像度変換装置。
3. A value of a conversion pixel is calculated using the size of a region of a grid formed by a conversion image onto which a grid representing the original image is projected, as a weight of the original pixel, and the value is compared with a predetermined threshold value. In a resolution conversion device for obtaining a binarized image by means of the above, when the number of lines of the original image in the grid of the converted image is larger than a predetermined value, the first or last division width in the grid of the converted image is adjacent to the adjacent division width. A resolution conversion device characterized by approximating to include in a region.
【請求項4】 原画像を表す格子が変換される変換画像
の作る格子の領域の大きさを原画素の重みとして変換画
素の値を計算する解像度変換装置において、ラインメモ
リの本数をn本、εを表現可能な縮小率の最小精度とす
るとき、縮小動作の範囲が(1.0−ε)/(n−1)
よりも小さいことを特徴とする解像度変換装置。
4. A resolution conversion device for calculating a value of a conversion pixel by using a size of a region of a grid formed by a conversion image in which a grid representing an original image is converted, as a weight of the original pixel, and n in the number of line memories, When ε is the minimum precision of the reduction rate that can be expressed, the range of reduction operation is (1.0−ε) / (n−1)
Resolution conversion device characterized by being smaller than.
JP8118721A 1996-05-14 1996-05-14 Resolution converter Pending JPH09307747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8118721A JPH09307747A (en) 1996-05-14 1996-05-14 Resolution converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8118721A JPH09307747A (en) 1996-05-14 1996-05-14 Resolution converter

Publications (1)

Publication Number Publication Date
JPH09307747A true JPH09307747A (en) 1997-11-28

Family

ID=14743447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8118721A Pending JPH09307747A (en) 1996-05-14 1996-05-14 Resolution converter

Country Status (1)

Country Link
JP (1) JPH09307747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996390A (en) * 2010-10-20 2011-03-30 中兴通讯股份有限公司 Image copying method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996390A (en) * 2010-10-20 2011-03-30 中兴通讯股份有限公司 Image copying method and device

Similar Documents

Publication Publication Date Title
US5202670A (en) Image processing apparatus
JPH05268462A (en) Picture processor
EP0143533B1 (en) Image data expanding and/or contracting method and apparatus
US5499111A (en) Image signal processing apparatus
US6222950B1 (en) Image processing with conversion from N-value to M-value data
JPH0393354A (en) Pseudo gradation generator
JPH09307747A (en) Resolution converter
US5960122A (en) Method of and apparatus for processing digital image data
JPH0799543B2 (en) Image processing device
KR100242028B1 (en) Image enlargement and reduction method using interpolation formula
US6057934A (en) Method and apparatus of correcting image data levels
JP3209396B2 (en) Image data compression method and apparatus
JPH09312760A (en) Resolution converter
JPH09312761A (en) Resolution converter
JPH09261452A (en) Resolution converter
JP2872334B2 (en) Color image encoding device
JPH06348834A (en) Image processing device
JPH0540826A (en) Picture element density conversion system
JP3200287B2 (en) Image processing method and apparatus
JP2831573B2 (en) Pseudo halftone image processing system
JPH11355575A (en) Image processor
JP3506848B2 (en) Image processing device
JPH0668250A (en) Image processor
JPH0823887B2 (en) Image processing device
JPS63234773A (en) Binarization processing device