JPH0247911B2 - - Google Patents
Info
- Publication number
- JPH0247911B2 JPH0247911B2 JP58129245A JP12924583A JPH0247911B2 JP H0247911 B2 JPH0247911 B2 JP H0247911B2 JP 58129245 A JP58129245 A JP 58129245A JP 12924583 A JP12924583 A JP 12924583A JP H0247911 B2 JPH0247911 B2 JP H0247911B2
- Authority
- JP
- Japan
- Prior art keywords
- pixels
- pixel
- input
- adder
- digital
- 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.)
- Expired - Lifetime
Links
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
【発明の詳細な説明】
<技術分野>
本発明は原画像の画素数に対する出力画素数を
2M/2n+1(M、nは正の整数)倍に変換処理す
る画像処理装置に関し、特にその変換処理を加算
器とセレクタにより行なう画像処理装置に関す
る。[Detailed Description of the Invention] <Technical Field> The present invention provides a method for determining the number of output pixels relative to the number of pixels of an original image.
The present invention relates to an image processing apparatus that performs conversion processing by a factor of 2 M /2n+1 (M, where n is a positive integer), and particularly relates to an image processing apparatus that performs the conversion processing using an adder and a selector.
<従来技術の説明>
従来より、記録手段の主走査方向、或は副走査
方向における原画素数に対する記録画素数の倍率
比が、N(Nは正の整数)で表わされる場合には、
例えば実公昭58−27590号公報に示される如く、
同じ原画素を主走査、副走査方向に対してN回記
録画素として用いればよい。又、前記倍率比が
1/Nで表わされる場合には、N個の原画素の内
1個のみを記録画素として用いればよい。<Description of Prior Art> Conventionally, when the magnification ratio of the number of recording pixels to the number of original pixels in the main scanning direction or sub-scanning direction of a recording means is expressed by N (N is a positive integer),
For example, as shown in Utility Model Publication No. 58-27590,
The same original pixel may be used as a recording pixel N times in the main scanning and sub-scanning directions. Further, when the magnification ratio is expressed as 1/N, only one of the N original pixels may be used as a recording pixel.
しかしながら、前記倍率比がN又は1/N等で
表わせない場合には、原画素をそのまま記録画素
として用いることは不可能となり、割り算等の特
殊演算が必要となる。従つてこれを実現する為に
は複雑な回路が必要となつてしまう。 However, if the magnification ratio cannot be expressed as N or 1/N, it is impossible to use the original pixels as they are as recording pixels, and special operations such as division are required. Therefore, in order to realize this, a complicated circuit is required.
<発明の目的>
本発明は上述従来例の欠点に鑑み、倍率比が整
数比で表わせない2M/2n+1(M、nは正の整
数)倍の時に出力画素の値を加算器とセレクタに
よる簡単な回路構成でしかも原画情報に忠実に求
めることができる画像処理装置の提供を目的とし
ている。<Purpose of the Invention> In view of the drawbacks of the conventional example described above, the present invention has been proposed to calculate the value of an output pixel using an adder and a selector when the magnification ratio is 2 M /2n + 1 (M and n are positive integers) which cannot be expressed as an integer ratio. The object of the present invention is to provide an image processing device which has a simple circuit configuration and can faithfully obtain original image information.
<実施例の説明>
第1図を用いて前記倍率比を4/3とした場合
の変換の一例を示す。<Description of Examples> An example of conversion when the magnification ratio is set to 4/3 will be shown using FIG. 1.
図においてαは不図示の記録装置の主走査方向
を示す。A,B,C,Dは原画素で夫々a,b,
c,dの画素レベルを持つ。イ,ロ,ハ,ニ,ホ
は記録画素である。 In the figure, α indicates the main scanning direction of a recording device (not shown). A, B, C, and D are original pixels a, b, and
It has pixel levels c and d. A, B, C, D, and H are recording pixels.
記録画素イは原画素Aと同一位置に対応するの
で画素レベルはa、記録画素ロは原画素Bからの
距離を1とした時原画素Aからの距離は3なので
画素レベルはaとbを1:3で加重平均をとつた
値a+3b/4、記録画素ハは原画素B、Cの中間に
位置するので画素レベルはb+c/2、記録画素ニ
は原画素Cからの距離を1とした時原画素dから
の距離は3なので画素レベルはcとdを3:1で
加重平均をとつた値3c+d/4、記録画素ホは原画
素Dと同一位置に対応する画素レベルはdであ
る。以下図中の周期Tを繰に返すことによりすべ
ての記録画素の画素レベルが求められる。このよ
うにして3個の原画素を4個の記録画素に変換す
ることができ、原画素をそのまま記録画素として
記録した時の記録密度と同じ記録密度で記録した
場合には主走査方向に4/3倍の画像を得ることが
できる。副走査方向にも同様な処理が可能であ
る。 Recording pixel A corresponds to the same position as original pixel A, so the pixel level is a. Recording pixel B, when the distance from original pixel B is 1, the distance from original pixel A is 3, so the pixel level is a and b. The weighted average value of 1:3 is a+3b/4. Recording pixel C is located between original pixels B and C, so the pixel level is b+c/2, and recording pixel D has a distance of 1 from original pixel C. Since the distance from the original pixel d is 3, the pixel level is 3c + d/4, which is the weighted average of c and d at a ratio of 3:1, and the pixel level of the recording pixel E corresponding to the same position as the original pixel D is d. . By repeating the cycle T in the figure, the pixel levels of all recorded pixels can be found. In this way, three original pixels can be converted into four recording pixels, and if recording is performed at the same recording density as when the original pixels are recorded as recording pixels, there will be four recording pixels in the main scanning direction. /You can get 3 times more images. Similar processing is also possible in the sub-scanning direction.
第2図に3原画素を4記録画素に変換する具体
的回路を示す。尚、原画素及び記録画素の画素レ
ベルは8ビツトのデジタル値で示されるものとす
る。X,Yは入力原画素の8ビツトのデジタル値
で両画素は主走査方向に隣接している。Zは補間
された記録画素の出力デジタル値である。 FIG. 2 shows a concrete circuit for converting three original pixels into four recording pixels. It is assumed that the pixel levels of the original pixels and recorded pixels are represented by 8-bit digital values. X and Y are 8-bit digital values of input original pixels, and both pixels are adjacent in the main scanning direction. Z is the output digital value of the interpolated recording pixel.
図において1はX,Yどちらかを選択して出力
するセレクタ、2,3,4,5は4ビツト加算器
で入力端子A1〜A4,B1〜B4、出力端子S1〜S4、
およびキヤリー入力端子Cin、キヤリー出力端子
Coutを有する。6は入力X,Y,V,Wの一つ
を選択するセレクタ、7はラインメモリ、ta,tb
はセレクタ1,6の切換タイミング信号である。 In the figure, 1 is a selector that selects and outputs either X or Y, 2, 3, 4, and 5 are 4-bit adders with input terminals A1 to A4 , B1 to B4 , and output terminals S1 to S. Four ,
and carry input terminal Cin, carry output terminal
Has Cout. 6 is a selector for selecting one of the inputs X, Y, V, W, 7 is line memory, ta, tb
is a switching timing signal for selectors 1 and 6.
尚、セレクタ1はRCA社製CD4019を2個用い
ることにより、加算器2〜5は同社製CD4008で、
又セレクタ6は同社製CD4052を4個用いること
により構成できる。 In addition, selector 1 uses two CD4019s manufactured by RCA, and adders 2 to 5 are CD4008s manufactured by RCA.
Further, the selector 6 can be constructed by using four CD4052 manufactured by the same company.
以下、回路動作を順次説明する。 Hereinafter, the circuit operation will be sequentially explained.
(1) 今Xの値が第1図のa、Yの値が第1図のb
とすると、セレクタ6はX即ちaをZとして出
力する。この出力はラインメモリ7に記憶され
る。(1) The current value of X is a in Figure 1, and the value of Y is b in Figure 1.
Then, the selector 6 outputs X, that is, a as Z. This output is stored in line memory 7.
(2) 次に加算器2,3は両方で8ビツト加算器と
して動作し、a+bの演算を行う。その出力の
うち最下位ビツト(カウンタ2のSi)は用いな
い(1ビツトシフトしている)ので結局加算器
2,3の出力はa+b/2となる。a+b/2は加算
器4,5の一方に入力される。そしてセレクタ
1はこの時Yを選択しているので、加算器4,
5はa+b/2+bの演算を行う。そして加算器
4,5は2,3と同様にその最下位ビツトを出
力しないので出力は結局a+3b/4となり、セレ
クタ6が入力Wを選択してラインメモリ7に貯
えられる。(2) Next, adders 2 and 3 both operate as 8-bit adders and perform the a+b operation. Of the outputs, the least significant bit (Si of counter 2) is not used (shifted by 1 bit), so the outputs of adders 2 and 3 become a+b/2. a+b/2 is input to one of adders 4 and 5. Since selector 1 selects Y at this time, adder 4,
5 performs the calculation a+b/2+b. Then, like adders 2 and 3, adders 4 and 5 do not output their least significant bits, so the output becomes a+3b/4, and selector 6 selects input W and stores it in line memory 7.
(3) 次に入力Xの値がbとなり、入力Yの値がc
となる。そして加算器2,3は前述した様に
b+c/2の演算を行い、セレクタ6が入力Vを
選択してb+c/2の値をラインメモリ7に貯え
る。(3) Next, the value of input X becomes b, and the value of input Y becomes c
becomes. Then, the adders 2 and 3 perform the calculation of b+c/2 as described above, and the selector 6 selects the input V and stores the value of b+c/2 in the line memory 7.
(4) 次に入力Xの値がcとなり、入力Yの値がd
となる。そして加算器2,3がc+d/2の演算
を行い、その出力は加算器4,5に入力され
る。加算器4,5はセレクタ1で選択されたc
とc+d/2の加算を行い、結局3c+d/4の値がセ
レクタ6の入力Wに入力され、セレクタ6は入
力Wを選択し、3c+d/4をラインメモリ7に格
納する。(4) Next, the value of input X becomes c, and the value of input Y becomes d
becomes. Adders 2 and 3 then perform the calculation c+d/2, and the output thereof is input to adders 4 and 5. Adders 4 and 5 select c selected by selector 1.
and c+d/2 are added, and the value 3c+d/4 is finally input to the input W of the selector 6, which selects the input W and stores 3c+d/4 in the line memory 7.
以上の(1)〜(4)の動作を繰り返すことにより、倍
率比4/3の場合の原画素から記録画素への変換
が可能である。第3図は第2図のタイミング図
で、各タイミングにおけるX,Yの値、セレクタ
1,6の選択入力、タイミング信号Ta,Tb、及
びタイミング信号Ta,Tbを形成する為のクロツ
クC1,CK2を示している。かかるタイミング
信号Ta,TbはクロツクCK1,CK2から当業者
であれば容易に形成できる。 By repeating the operations (1) to (4) above, it is possible to convert original pixels to recording pixels when the magnification ratio is 4/3. Figure 3 is a timing diagram of Figure 2, including the X and Y values at each timing, the selection inputs of selectors 1 and 6, the timing signals Ta and Tb, and the clocks C1 and CK2 for forming the timing signals Ta and Tb. It shows. Those skilled in the art can easily form such timing signals Ta and Tb from the clocks CK1 and CK2.
ラインメモリ7に記憶されたデータは例えば一
主走査線毎に記録装置へ転送される。 The data stored in the line memory 7 is transferred to the recording device for each main scanning line, for example.
以上は倍率比4/3の場合について述べたが、
倍率比が2/3、8/3、16/3、2/5、4/
5、8/5、16/5、2/7、4/7、8/7、
16/7等の場合にもビツトシフト法と加算器を用
いることにより記録画素を求めることができる。
即ち倍率比が2M/2n+1、但しM、nは正の整
数と表わせる場合には加算器とビツトシフトを用
いることにより原画素のデジタル値を記録画素の
デジタル値に変換することが可能となる。 The above has been described for the case of a magnification ratio of 4/3, but
Magnification ratio is 2/3, 8/3, 16/3, 2/5, 4/
5, 8/5, 16/5, 2/7, 4/7, 8/7,
Even in the case of 16/7 etc., recording pixels can be found by using the bit shift method and an adder.
In other words, if the magnification ratio is 2 M /2n + 1, where M and n are positive integers, it is possible to convert the digital value of the original pixel to the digital value of the recording pixel by using an adder and bit shift. .
第4図に倍率比が8/7の場合の例を示す。図
においてA′,B′…,H′は原画素で夫々画素レベ
ルはa′,b′,…,h′であり、イ′,ロ′,…,リ′
は記録画素であり、夫々図の右端に示した如き画
素レベルに変換される。8/7の場合には4/3
の場合よりも更に1回多くのビツトシフト操作に
より1/8の情報を形成すればよい。つまりMと
同じ回数のシフト操作を行えばよい。 FIG. 4 shows an example where the magnification ratio is 8/7. In the figure, A', B'..., H' are original pixels, and their pixel levels are a', b',..., h', and A', B',..., R'
are recording pixels, and each is converted to a pixel level as shown at the right end of the figure. 4/3 in case of 8/7
It is sufficient to form 1/8 of the information by performing one more bit shift operation than in the case of . In other words, it is sufficient to perform the shift operation the same number of times as M.
<効果の説明>
以上説明した如く本発明に依れば原画素の2M/
2n+1(M、nは正の整数)倍への変換、即ち、
整数比ではない倍率への変換を割り算器等特殊演
算器を用いることなく加算器とセレクタによる簡
単な回路構成により行なうことができ、しかも入
力したデジタル量を変換画素の一部に用いる様に
したため原画情報に忠実な変倍処理が可能とな
る。<Explanation of effects> As explained above, according to the present invention, the original pixel is 2 M /
Conversion to 2n+1 (M, n is a positive integer) times, i.e.
Conversion to a magnification that is not an integer ratio can be performed with a simple circuit configuration consisting of an adder and a selector without using a special arithmetic unit such as a divider, and the input digital amount is used as a part of the converted pixel. Enables scaling processing that is faithful to the original image information.
第1図は倍率比が4/3の場合の画素変換の説
明図、第2図は第1図の画素変換を行う為の回路
図、第3図は第2図の各部のタイミング図、第4
図は倍率比が8/7の場合の画素変換の説明図で
ある。
図において1,6はセレクタ、2,3,4,5
は4ビツト加算器を夫々示す。
Figure 1 is an explanatory diagram of pixel conversion when the magnification ratio is 4/3, Figure 2 is a circuit diagram for performing the pixel conversion of Figure 1, Figure 3 is a timing diagram of each part of Figure 2, and 4
The figure is an explanatory diagram of pixel conversion when the magnification ratio is 8/7. In the figure, 1 and 6 are selectors, 2, 3, 4, 5
indicate a 4-bit adder, respectively.
Claims (1)
対する出力画素数を2M/2n+1(M、nは正の整
数)倍に変換する画像処理装置であつて、 主走査若しくは副走査方向に連続する複数画素
のデジタル量を入力する入力手段と、 前記入力した複数画素のデジタル量を加算し、
その加算結果をビツトシフトし1/2倍のデジタル
量として出力する第1の加算器と 前記入力手段により入力したデジタル量と前記
第1の加算器からの出力を加算し、その加算結果
をビツトシフトし1/2倍のデジタル量として出力
する第2の加算器と、 前記入力手段により入力したデジタル量、前記
第1又は第2の加算器からのデジタル量を変換後
の画素位置に応じて選択する選択手段と、 前記選択手段により選択されたデジタル量を変
換後の画素のデジタル量として出力する出力手段
とを有することを特徴とする画像処理装置。[Scope of Claims] 1. An image processing device that converts the number of output pixels relative to original pixels in the main scanning or sub-scanning direction by 2 M /2n+1 (M and n are positive integers), which an input means for inputting a digital amount of a plurality of pixels continuous in a direction; and an input means for adding the input digital amounts of a plurality of pixels;
a first adder that bit-shifts the addition result and outputs it as a 1/2 digital amount; and a first adder that adds the digital amount input by the input means and the output from the first adder, and bit-shifts the addition result. a second adder that outputs a 1/2-fold digital amount; and selecting the digital amount input by the input means and the digital amount from the first or second adder according to the pixel position after conversion. An image processing apparatus comprising: a selection means; and an output means for outputting the digital quantity selected by the selection means as a digital quantity of a converted pixel.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58129245A JPS6020680A (en) | 1983-07-15 | 1983-07-15 | Image processing device |
| US06/586,189 US4658300A (en) | 1983-03-08 | 1984-03-05 | System and method for processing image signals |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58129245A JPS6020680A (en) | 1983-07-15 | 1983-07-15 | Image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6020680A JPS6020680A (en) | 1985-02-01 |
| JPH0247911B2 true JPH0247911B2 (en) | 1990-10-23 |
Family
ID=15004783
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58129245A Granted JPS6020680A (en) | 1983-03-08 | 1983-07-15 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6020680A (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS623372A (en) * | 1985-06-27 | 1987-01-09 | インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション | Image converter |
| JPS6218168A (en) * | 1985-07-17 | 1987-01-27 | Hitachi Ltd | Picture input device |
| US4933775A (en) * | 1988-03-31 | 1990-06-12 | Fuji Photo Film Co., Ltd. | Image enlarging or contracting method |
| JP2006230541A (en) * | 2005-02-23 | 2006-09-07 | Win Tec:Kk | Paper money identification device and game medium dispenser |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5776979A (en) * | 1980-10-30 | 1982-05-14 | Hitachi Ltd | Signal processing circuit for television receiver |
| JPS57162571A (en) * | 1981-03-30 | 1982-10-06 | Matsushita Electric Ind Co Ltd | Picture signal processing system |
| JPS57161780A (en) * | 1981-03-30 | 1982-10-05 | Tokyo Shibaura Electric Co | Picture display unit |
-
1983
- 1983-07-15 JP JP58129245A patent/JPS6020680A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6020680A (en) | 1985-02-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6123468A (en) | Picture processor | |
| EP1067774A2 (en) | Pixel interpolation method and circuit | |
| US4710823A (en) | Density conversion in image reproduction | |
| JPH0247911B2 (en) | ||
| JPH05207271A (en) | Picture magnification equipment | |
| JPH0681243B2 (en) | Image processing method | |
| JP3113090B2 (en) | Video signal processing device | |
| JPH0771301B2 (en) | Color video signal conversion method | |
| JPS61224661A (en) | Image reading device | |
| JPS63102467A (en) | Image data resolution conversion device | |
| JP2762290B2 (en) | Digital scan converter | |
| JP3876067B2 (en) | Data signal path connection method and signal path connector | |
| JPH0537773A (en) | Image scaling device | |
| JPH0351353B2 (en) | ||
| JPH054876B2 (en) | ||
| JP2638842B2 (en) | Decoder circuit | |
| JP2520607B2 (en) | Composite television signal processor | |
| JPH0628372B2 (en) | Image reader | |
| JPS58182366A (en) | Enlarging or contracting circuit of picture | |
| JP2556746B2 (en) | Image storage | |
| JPS63155947A (en) | Image signal processing device | |
| KR950002657B1 (en) | Line interpolation signal generator and method using line memory and TTL | |
| JP2752287B2 (en) | Video signal processing circuit | |
| JP2520606B2 (en) | Composite television signal processor | |
| JPS63102468A (en) | Converting device for resolution of picture data |