JP2738685B2 - Scan line density conversion method - Google Patents

Scan line density conversion method

Info

Publication number
JP2738685B2
JP2738685B2 JP62147563A JP14756387A JP2738685B2 JP 2738685 B2 JP2738685 B2 JP 2738685B2 JP 62147563 A JP62147563 A JP 62147563A JP 14756387 A JP14756387 A JP 14756387A JP 2738685 B2 JP2738685 B2 JP 2738685B2
Authority
JP
Japan
Prior art keywords
image signal
magnification
data
interpolation
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.)
Expired - Fee Related
Application number
JP62147563A
Other languages
Japanese (ja)
Other versions
JPS63311865A (en
Inventor
潔 高橋
克雄 中里
博義 土屋
祐二 丸山
俊晴 黒沢
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 Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62147563A priority Critical patent/JP2738685B2/en
Publication of JPS63311865A publication Critical patent/JPS63311865A/en
Application granted granted Critical
Publication of JP2738685B2 publication Critical patent/JP2738685B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4007Interpolation-based scaling, e.g. bilinear interpolation

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、画像の拡大、縮小等の変換を行う際の走査
線密度変換方法に関するものである。 従来の技術 従来、走査線密度変換の方式には次の2方式が紹介さ
れている。 (文献:新井、安田、“ファクシミリ線密度変換の一検
討”、画像電子学会、第7巻、第1号、pp11〜18(1978
年)) 方式1:入力データの繰返しや間引きで拡大、縮小する方
式 方式2:入力データの補間や平均で拡大、縮小する方式 の2方式である。 第7図(A),(B)を用いて、上記2つの方式の拡
大縮小を説明すると、同図(A)において実線丸のデー
タd11,d13,d15,d31,d33,d35を入力データとして方式1
で主・副走査とも2倍に拡大すると、 d11=d12=d21=d22 d13=d14=d23=d24 以下同様 のようになる。一方、方式2では、 d12=(d11+d13)/2, d14=(d13+d15)/2, d32=(d31+d32)/2, d34=(d33+d35)/2, d21=(d11+d31)/2, d22=(d12+d32)/2 以下同様 のようになる。同図(B)で同様に3倍拡大する場合に
は、方式1では、d11=d12=d13=d21=d22=d23=d31
=d32=d33,……であるが、方式2では例えばd22を補間
で演算するには、d11,d14,d41,d43の各入力データをd22
からの空間的距離に逆比例させた重み付けで加算するこ
とになり、演算が複雑になる。縮小の場合は同図
(A),(B)において全データが入力データで実線丸
が縮小データとしたとき、方式1においては点線丸デー
タが間引かれることにより、方式2においては、同図
(A)では、 d11=(d11=d12+d21+d22)/4 同図(B)では、 d11=(d11+d12+d13+d21+d22+d23+d31+d32+d
33)/9 のように平均演算される。 発明が解決しようとする問題点 しかし、方式1は任意倍率変換が簡単なアルゴリズム
で構成できるためハードウエアの演算回路が高速化でき
る反面、変換データの歪が大きい欠点がある。一方、方
式2は変換データの歪が小さく、また2n倍や2-n倍(n
は正の整数)の倍率変換に対しては2倍または1/2倍を
繰返せばよく、演算アルゴリズムが簡単であるが、他の
倍率に対しては複雑となり方式1と比較して演算回路の
高速化が困難である。 本発明は上記問題点を解決するもので、変換データの
歪が小さく、かつ高速処理が可能な走査線密度の任意倍
率交換ができる走査線密度変換方法を提供するものであ
る。 問題点を解決するための手段 本発明は、走査線密度l本/mmの入力画像信号を走査
線密度m本/mmの画像信号に変換する際に、指定倍率M
(但し、m/l)に応じた2n(nは正の整数)の補間倍率
S(但し、S≦m/l)を設定して、前記l本/mmの入力画
像信号を前記補間倍率S倍の加算平均演算で補間してS
・l本/mmの画像信号に変換処理した後、DDA(デジタル
微分解析)に基づいて前記画像信号を新たに入力して出
力するか、あるいは前画像信号を繰り返し出力するかを
決定し、出力する拡大処理により、前記補間倍率S倍で
補間したS・l本/mmの画像信号をM/S倍に拡大し前記m
本/mmの画像信号に変換することにより、上記目的を達
成するものである。 作 用 本発明は上記方法により、任意倍率の走査線密度変換
において入力画像信号を指定倍率に応じた簡単なアルゴ
リズムで高速に、かつ歪の小さい走査線密度データに変
換することができるもので、走査密度変換する際に補間
倍率S(S≦m/l)で一旦S倍に補完変換し、更にその
後簡単なアルゴリズムで指定された走査線密度まで拡大
データ変換することによって、指定倍率の設定領域が広
く歪の少くかつ高速な走査線密度変換を行えるようにし
たものである。 実施例 まず、はじめに上記歪の少ない理由を第6図(A)〜
(D)を用いて簡単のために一次元信号で説明する。同
図(A)〜(D)は3倍拡大の例である。同図(A)の
アナログ画像信号fはS0〜S4の点で量子化すると、斜線
部分の量子化信号が得られる。この量子化信号を前記方
式1で3倍の走査線密度に変換した信号は正規に3倍の
走査線密度で量子化した信号(点線)に比べて歪(誤
差)が大である。同図(B)は前記方式2で3倍の走査
線密度に変換した場合で、歪は小さいが2のべき剰倍の
変換でないため演算回路が複雑になる(特に2次元処理
での演算回路)ことにより、処理に時間がかかることは
前記した通りである。同図(C)〜(D)が本発明の実
施例であり、同図(C)は前記方式で2倍にデータ補間
した信号を示している。同図(D)は同図(C)の信号
に対して前記方式1により3/2倍に拡大し、その信号を
等間隙に書直した図である。同図(D)において正規に
3倍の走査線密度で量子化した信号(点線)に比べて、
本発明による変換信号(斜線部)の歪が小さいことが、
同図(A)と比較して明白である。 さらに、指定倍率の可変領域が広い場合でも歪の小さ
い変換処理ができることを簡単に説明する。指定倍率の
可変領域1.0倍から8.0倍まで広くした場合、この領域内
の全ての指定倍率を満足するためには1.0倍の補間をし
た後、指定倍率まで拡大すれば一応の変換はできる。 しかし、1.0倍(20倍)補間の後、8倍まで前記方式
1により拡大すると、変換信号の歪が大きくなる。これ
は、前記方式1が1倍補間の後3倍まで拡大するのと等
価であることからも明らかである。この変換信号の歪
は、補間する際の連続した繰返し処理の回数による。例
えば、方式1による3倍変換の場合、連続した繰返し処
理の回数は2回ある(第6図(A))。一方、本方式の
実施例である第6図(D)では1回である。この差が歪
の大小につながっている。そこで、この繰返し回数が少
なくなるように、指定倍率に応じて補間倍率を例えば以
下の様に設定すれば、歪の少ない変換信号が得られる。 1.0倍≦M<2.0倍の時 補間倍率は1.0倍(最大連続繰
返し回数1回) 2.0倍≦M<4.0倍の時 補間倍率は2.0倍(最大連続繰
返し回数1回) 4.0倍≦M<8.0倍の時 補間倍率は4.0倍(最大連続繰
返し回数1回) M=8.0倍の時 補間倍率は8.0倍(最大連続繰返し回数
1回) Mは指定倍率である。 以下、本発明の具体的な一実施例について説明する。 第1図は本発明の一実施例における拡大処理による走
査線密度変換方法を実現するための装置のブロック構成
図である。 第1図において、1は主走査方向の指定倍率の入力端
子、2は副走査方向の指定倍率の入力端子、3は主走査
方向の補間倍率設定部、4は副走査方向の補間倍率設定
部、5は量子化した入力画像信号の入力端子、6は副走
査データ補間部、7は主走査データ補間部、8は副走査
データ繰返し部、9は主走査データ繰返し部、10は出力
画像信号の出力端子、11はタイミング信号発生部であ
る。 今、入力画像信号の走査線密度を主、副走査ともl本
/mm、出力画像信号の走査線密度を主、副走査ともm本/
mmとし、主・副走査とも3倍に拡大する場合について、
以下その動作を説明する。 入力端子1および2の指定倍率は、それぞれ主走査補
間倍率設定部3および副走査補間倍率設定部4に入力
し、補間倍率が設定される。本実施例では、指定倍率M
と補間倍率Sとの関係は次のようになっている。 2n≦M<2n+1の時 S=2n、 (ただしnは、n=INT(log2M)で与えられる正の整
数) 今、指定倍率Mは3倍であるので、補間倍率は2倍と
なる。また、補間倍率設定部3,4は、繰返し部8,9に対し
て、繰返し係数(本例では3/2)をそれぞれ出力してい
る。 入力端子5の入力画像信号は副走査データ補間部6に
入力し、副走査方向のデータが、副走査補間倍率設定部
4からの補間倍率によって2倍に増え、主走査データ補
間部7に入力する。主走査データ補間部7では更に主走
査方向のデータが、主走査補間倍率設定部3からの補間
倍率によって2倍に増える。その後、副走査繰返し部8
で副走査方向のデータが幅走査補間倍率設定部4からの
繰返し係数によって3/2に拡大され、主走査繰返し部9
で主走査方向のデータが主走査補間倍率設定部3からの
繰返し係数によって3/2に拡大されて出力端子10の出力
画像信号となる。なお、6〜9の各部は、タイミング信
号発生部11からの各タイミング信号により制御される。
以下、上記各部6〜9の更に詳細な実施例を示す。主走
査方向と副走査方向は、基本的には同じ構成であるの
で、説明を簡単にするために、主走査方向についてのみ
説明する。また、各ブロックの入出力線は信号の流れが
理解できれば良いと考え、簡単にするため1本の線で記
している。 指定倍率Mの可変領域は、説明を簡単にするために1
≦M<8とした。 第2図は、第1図の主走査データ補間部7の詳細な構
成図であり、入力画像データの供給を十分速くすること
ができる場合について示している。また、第3図はその
タイミングを表わしたものである。 第2図において、20は入力画像信号列D0の信号線、2
1,22,26はラッチ回路、23〜25は加算平均回路、27,28は
セレクタ回路、29は出力画像信号列D1の信号線、30〜33
はそれぞれP1,P2,P4,P0のタイミング信号の信号線であ
る。一方、第3図の(1)〜(3)はそれぞれ指定倍率
Mが4≦M<8,2≦M<4,1≦M<2の時の入力画像信号
列D0、(4)はP1信号、(5)はP2信号、(6)はP4
号、(7)〜(12)はそれぞれ指定倍率Mが4≦M<
8、2≦M<4,1≦M<2の時のラッチ21の出力とラッ
チ22の出力、(13)〜(15)はそれぞれ指定倍率Mが4
≦M<8,2≦M<4,1≦M<2の時の出力画像信号列D1
タイミングを表わしている。 上記構成において、以下その動作を説明する。 セレクタ27は、信号線30〜32のタイミング信号P1
P2、P4の内、指定倍率Mによって1≦M<2の時P4、2
≦M<4の時P2、4≦M<8の時P1を選択し信号線34と
して出力するセレクタ回路であり、信号線33の第1図主
走査補間倍率設定部3から供給される補間倍率信号P0
切換えられる。信号線20の入力画像信号列D0{d1,d2,
d3,……}をラッチ21に、ラッチ21の出力をラッチ22に
前記信号線34のタイミング信号の立上がりに同期してセ
ットする(第3図の(7)〜(12))。この時、入力画
像信号列D0の入力タイミングは、指定倍率によって異な
るが(第3図の(1)〜(3))これは、処理をより高
速にするためである。加算平均回路23〜25は2つの入力
画像データの加算平均を求めて出力する回路であり、加
算平均回路23はラッチ21の出力とラッチ22の出力の、加
算平均回路24はラッチ22の出力と加算平均回路23の出力
の、そして、加算平均回路25はラッチ21の出力と加算平
均回路23の出力のそれぞれ加算平均を求めている。今、
ラッチ21の出力をd2、ラッチ22の出力をd1とすると、加
算平均回路23〜25の出力は次のようになる。 加算平均回路23〜25の出力とラッチ22の出力をラッチ
26に信号線34のタイミング信号の立上がりに同期してセ
ットする。セレクタ28は、補間倍率信号P0および信号線
32のタイミング信号P4によってラッチ26の出力を切替え
るセレクタ回路であり、これにより、第3図(13)〜
(15)に示した出力が信号線29の出力画像信号列D1とし
て得られる。すなわち、指定倍率Mが1≦M<2の時に
はラッチ22の出力のみを選択し、2≦M<4の時にはラ
ッチ22の出力と加算平均回路23の出力を選択し、4≦M
<8の時にはラッチ22の出力と加算平均回路23〜25のす
べての出力を補間倍率信号P0で選択して、それぞれ信号
線32のタイミング信号P4の周期で、 1≦M<2の時{d1,d2,d3……} 2≦M<4の時{d1,(d1+d2)/2,d2,(d2+d3)/2,…
…} 4≦M<8の時{d1,(3d1+d2)/4,(d1+d2)/2,(d1
+3d2)/4,d2,……} の順に信号列を出力する。本実施例では、指定倍率Mを
1≦M<8とし、加算平均回路の段数を2段(1段目は
加算平均回路23、2段目は加算平均回路24と25)とした
が、3段目の構成にして加算平均回路を3段目に4つ付
加すれば16倍未満まで可能となり、以下同様にn段の構
成にすれば2n+1倍未満まで可能となる。 上記構成とすることにより、出力画像信号列D1の周期
が指定倍率によらず一定で、補間倍率が小さければ、入
力画像信号列D0の周期を短かくできるので補間処理を高
速に行なうことができる。本実施例では指定倍率Mに対
して、補間倍率を以下の様に設定したが、その結果は、
第3図より明白である。 指定倍率Mが1≦M<2の時、補間倍率は1倍 指定倍率Mが2≦M<4の時、補間倍率は2倍 指定倍率Mが4≦M<8の時、補間倍率は4倍 さて、第4図は、第1図の主走査繰返し部9の動作フ
ローチャートを示している。 繰返し部での拡大処理は、前記従来例の方式1と同様
であるが、第4図の動作フローチャートを使って詳細に
説明する。 第4図において、Rは演算レジスタ、AとBは定数レ
ジスタで、繰返し部の拡大率をA/B(A≧B)で表わ
す。以下、動作フローチャートを順に説明する。41は1
ラインの画像処理演算開始点である。42は初期設定部
で、レジスタRを0クリアし初期設定を行なう。43はレ
ジスタRの内容からレジスタBの内容を減算する減算部
であり、その結果を44の比較部で負であるかどうかの判
定を行なう。本実施例の場合、B>0であるので最初の
処理では必ず減算部43の出力は負となる。比較部44で負
と判定された場合は比較部45へ行き、1ラインの処理が
終了したかを判定する。比較部45の判定が終了であれば
1ラインの画像処理演算終了点49へ行き、終了でなけれ
ば46へ行き、1画素のデータ入力を行なう。最初の処理
では、ここで1画素目のデータを入力し、それ以後はこ
こを通るたびに2画素目、3画素目と順番に入力する。
データ入力の後、処理は加算部47へ行き、レジスタRの
内容にレジスタAの内容を加算した後、48へ行き、1画
素データの出力を行なう。一方、比較部44で負でないと
判定された場合は、48へ行き1画素のデータを出力す
る。すなわち、負でないと判定された場合は1画素デー
タの入力による入力データの更新を行なわないので、前
の処理の入力データをそのまま出力することになる。48
において1画素データを出力した後、処理は減算部43へ
戻る。減算部43から1画素データ出力48までの処理が1
画素の処理単位であり、以下同様に1ラインの画像処理
演算の終了が比較部45で判定されるまで、この処理単位
が繰返えされる。 以上の演算処理は、DDA(デジタル微分解析機:digita
l differential analyzer)に基づいて画像信号を新た
に入力して出力するか、あるいは画像信号を繰り返し出
力するかを決定するもので、比較器44で負と判定した時
のみ入力データの更新がなされ、それ以外の時には、1
画素前の処理で入力したデータが繰り返し出力されるこ
とになり、この繰り返しで拡大処理をすることになる。 第5図に、第4図の動作フローで繰返し拡大をした時
の例を示す。第5図(A)は、拡大率が3/2の時の例で
あり、同図(B)は拡大率が7/4の時の例である。 第5図において、Rの比較内容は第4図の比較部44に
入力するレジスタRの値を示し、入力データ列、出力デ
ータ列はそれぞれ、前記1画素の処理単位ごとの入力デ
ータと出力データを示している。第5図より明らかな様
に、Rの比較内容が負の時には入力データ列がそのまま
出力データ列となり、負でない時には、1画素前の出力
データと同じデータが繰返し出力データ列に出力され
る。 副走査繰返し部8の動作は、基本的には主走査繰返し
部9の動作と同様であるので説明を省く。 発明の効果 以上のように本発明は、走査線密度l本/mmの入力画
像信号を走査線密度m本/mmの画像信号に変換する際
に、指定倍率M(但し、m/l)に応じた2n(nは正の整
数)の補間倍率S(但し、S≦m/l)を設定して、前記
l本/mmの入力画像信号を前記補間倍率S倍の加算平均
演算で補間してS・l本/mmの画像信号に変換処理した
後、DDA(デジタル微分解析)に基づいて前記画像信号
を新たに入力して出力するか、あるいは前画像信号を繰
り返し出力するかを決定し、出力する拡大処理により、
前記補間倍率S倍で補間したS・l本/mmの画像信号をM
/S倍に拡大し前記m本/mmの画像信号に変換することに
より、画像データの任意倍率変換を簡単で高速に、かつ
広範囲にわたる倍率でも歪を小さくでき、その効果は大
きい。更に、指定倍率の可変領域を複数に分割して、そ
れぞれの分割領域に対して2n(nは正の整数)で表すこ
とのできる補間倍率S(S≦m/l)で設定することによ
り、高速処理が実現でき、その効果は大なるものがあ
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a scanning line density conversion method for performing conversion such as enlargement and reduction of an image. 2. Description of the Related Art Conventionally, the following two methods have been introduced as methods of scanning line density conversion. (Literature: Arai, Yasuda, "A Study of Facsimile Linear Density Conversion," The Institute of Image Electronics Engineers of Japan, Vol. 7, No. 1, pp. 11-18 (1978
Year)) Method 1: Enlargement / reduction by repeating or thinning out input data Method 2: Interpolation of input data or enlargement / reduction by average. Figure 7 (A), (B) using the above two will be described scaling method, data d 11 of the solid line circle in Fig (A), d 13, d 15, d 31, d 33, Method 1 with d 35 as input data
If both the main and sub-scans are enlarged by a factor of two, then d 11 = d 12 = d 21 = d 22 d 13 = d 14 = d 23 = d 24 and so on. On the other hand, in the method 2, d 12 = (d 11 + d 13) / 2, d 14 = (d 13 + d 15) / 2, d 32 = (d 31 + d 32) / 2, d 34 = (d 33 + d 35 ) / 2, d 21 = (d 11 + d 31 ) / 2, d 22 = (d 12 + d 32 ) / 2. In the case of a three-fold enlargement in the same manner in FIG. 7B, in the method 1, d 11 = d 12 = d 13 = d 21 = d 22 = d 23 = d 31
= D 32 = d 33 ,... In the method 2, for example, to calculate d 22 by interpolation, each input data of d 11 , d 14 , d 41 , and d 43 is converted to d 22
Therefore, the calculation is complicated by adding the weights in inverse proportion to the spatial distance from In the case of reduction, when all data is input data and solid circles are reduced data in FIGS. 7A and 7B, the dotted circle data is thinned out in the method 1, and in FIG. In (A), d 11 = (d 11 = d 12 + d 21 + d 22 ) / 4 In FIG. (B), d 11 = (d 11 + d 12 + d 13 + d 21 + d 22 + d 23 + d 31 + d 32 + d
33 ) The average is calculated as in / 9. Problems to be Solved by the Invention However, method 1 has a drawback in that, although the arbitrary magnification conversion can be implemented by an easy algorithm, the speed of the hardware operation circuit can be increased, but the distortion of the converted data is large. On the other hand, in method 2, the distortion of the converted data is small, and 2 n times or 2 −n times (n
Is a positive integer), it is sufficient to repeat 2 times or 1/2 times for the magnification conversion, and the operation algorithm is simple. However, for other magnifications, the operation becomes complicated and the operation circuit is compared with the method 1. It is difficult to increase the speed. SUMMARY OF THE INVENTION The present invention solves the above-mentioned problems, and provides a scanning line density conversion method capable of changing a scanning line density at an arbitrary magnification with a small distortion of converted data and capable of high-speed processing. Means for Solving the Problems The present invention provides a method for converting an input image signal having a scanning line density of 1 lines / mm into an image signal having a scanning line density of m lines / mm by using a designated magnification M
(However, an interpolation magnification S (where S ≦ m / l) of 2 n (n is a positive integer) corresponding to m / l) is set, and the l / mm input image signal is subjected to the interpolation magnification. Interpolated by S times averaging operation and S
After converting the image signal to l lines / mm, determine whether to newly input and output the image signal or repeatedly output the previous image signal based on DDA (Digital Differential Analysis) and output. The S / l lines / mm image signal interpolated at the interpolation magnification S times is enlarged to M / S times by the
The above object is achieved by converting the image signal into a book / mm image signal. According to the present invention, in the above-described method, in the scanning line density conversion at an arbitrary magnification, an input image signal can be rapidly converted to scanning line density data with small distortion by a simple algorithm corresponding to a specified magnification. At the time of scanning density conversion, the interpolation magnification S (S≤m / l) is used to temporarily perform complementary conversion to S times, and then to convert the enlarged data to the scanning line density specified by a simple algorithm, thereby setting the designated magnification setting area. However, it is possible to perform high-speed scanning line density conversion with little distortion. Embodiment First, the reason why the distortion is small is shown in FIGS.
For simplicity, a description will be given using a one-dimensional signal using (D). FIGS. 7A to 7D are examples of triple magnification. Analog image signal f in FIG (A) is the quantized in terms of S 0 to S 4, the quantized signals of the shaded area is obtained. The signal obtained by converting the quantized signal into a triple scanning line density by the method 1 has a larger distortion (error) than a signal (dotted line) quantized normally at a triple scanning line density. FIG. 3B shows a case where the scanning line density is converted to three times the scanning line density by the method 2. The distortion is small, but the conversion is not a power-of-two conversion, so that the operation circuit becomes complicated (especially the operation circuit in two-dimensional processing). As described above, the processing takes time. FIGS. 3C to 3D show an embodiment of the present invention, and FIG. 3C shows a signal obtained by performing data interpolation twice in the above-described method. FIG. 3D is a diagram in which the signal of FIG. 3C is enlarged by 3/2 times by the above-mentioned method 1 and the signal is rewritten in an equal gap. Compared to the signal (dotted line) quantized at three times the scanning line density in FIG.
The distortion of the converted signal (shaded area) according to the present invention is small.
It is clear in comparison with FIG. Furthermore, a brief description will be given of the fact that conversion processing with small distortion can be performed even when the variable region of the designated magnification is wide. When the variable area of the designated magnification is widened from 1.0 to 8.0 times, to satisfy all the designated magnifications in this area, interpolation is performed by 1.0 times and then enlarged to the designated magnification to perform the conversion for a while. However, after the 1.0-fold (2 0 times) interpolation, when expanded by the method 1 to 8 times, the distortion of the converted signal increases. This is apparent from the fact that the method 1 is equivalent to the method of expanding the data up to three times after the one-time interpolation. The distortion of the converted signal depends on the number of continuous repetitive processes at the time of interpolation. For example, in the case of the triple conversion according to the method 1, the number of consecutive repetitive processes is two (FIG. 6 (A)). On the other hand, in the example of FIG. This difference leads to the magnitude of the distortion. Therefore, if the interpolation magnification is set as follows according to the specified magnification so that the number of repetitions is reduced, a converted signal with little distortion can be obtained. When 1.0 times ≤ M <2.0 times, the interpolation magnification is 1.0 times (maximum continuous repetition times: 1) When 2.0 times ≤ M <4.0 times, the interpolation magnification is 2.0 times (maximum continuous repetitions: 1 time) 4.0 times ≤ M <8.0 When the interpolation factor is 4.0, the interpolation magnification is 4.0 (maximum continuous repetition frequency is 1). When M = 8.0, the interpolation magnification is 8.0 (maximum continuous repetition frequency is 1). M is the designated magnification. Hereinafter, a specific example of the present invention will be described. FIG. 1 is a block diagram of an apparatus for realizing a scanning line density conversion method by enlargement processing according to an embodiment of the present invention. In FIG. 1, 1 is an input terminal for a designated magnification in the main scanning direction, 2 is an input terminal for a designated magnification in the sub-scanning direction, 3 is an interpolation magnification setting section in the main scanning direction, and 4 is an interpolation magnification setting section in the sub-scanning direction. 5 is an input terminal of a quantized input image signal, 6 is a sub-scan data interpolator, 7 is a main scan data interpolator, 8 is a sub-scan data repeater, 9 is a main scan data repeater, and 10 is an output image signal. Reference numeral 11 denotes a timing signal generator. Now, the scanning line density of the input image signal is set to l
/ mm, the scanning line density of the output image signal is
mm, and when the main and sub-scans are tripled,
The operation will be described below. The designated magnifications of the input terminals 1 and 2 are input to the main scanning interpolation magnification setting unit 3 and the sub-scanning interpolation magnification setting unit 4, respectively, and the interpolation magnification is set. In this embodiment, the designated magnification M
The relationship between and the interpolation magnification S is as follows. When 2 n ≦ M <2 n + 1 , S = 2 n (where n is a positive integer given by n = INT (log 2 M)) Since the specified magnification M is 3 times, the interpolation magnification is Is doubled. Further, the interpolation magnification setting units 3 and 4 output the repetition coefficients (3/2 in this example) to the repetition units 8 and 9, respectively. The input image signal from the input terminal 5 is input to the sub-scanning data interpolation unit 6, and the data in the sub-scanning direction is increased by 2 times by the interpolation magnification from the sub-scanning interpolation magnification setting unit 4, and is input to the main scanning data interpolation unit 7. I do. In the main scanning data interpolation section 7, the data in the main scanning direction is further increased by a factor of 2 by the interpolation magnification from the main scanning interpolation magnification setting section 3. Thereafter, the sub-scanning repetition unit 8
The data in the sub-scanning direction is enlarged to 3/2 by the repetition coefficient from the width-scanning interpolation magnification setting unit 4 and the main-scanning repetition unit 9
Then, the data in the main scanning direction is enlarged to 3/2 by the repetition coefficient from the main scanning interpolation magnification setting unit 3 to become an output image signal of the output terminal 10. Each of the sections 6 to 9 is controlled by each timing signal from the timing signal generation section 11.
Hereinafter, more detailed examples of the respective units 6 to 9 will be described. Since the main scanning direction and the sub-scanning direction have basically the same configuration, only the main scanning direction will be described for the sake of simplicity. In addition, it is considered that the input / output lines of each block need only be able to understand the signal flow, and are represented by one line for simplicity. The variable area of the designated magnification M is 1 for simplicity of explanation.
≦ M <8. FIG. 2 is a detailed configuration diagram of the main scanning data interpolation unit 7 in FIG. 1, and shows a case where the supply of input image data can be sufficiently fast. FIG. 3 shows the timing. In Figure 2, 20 denotes a signal line of the input image signal sequence D 0, 2
1,22,26 latch circuit, the averaging circuit 23 to 25, the selector circuits 27, 29 signal lines of the output image signal sequence D 1, 30 to 33
Are signal lines for timing signals P 1 , P 2 , P 4 and P 0 , respectively. On the other hand, (1) to (3) of FIG. 3 respectively show the input image signal sequence D 0 when the specified magnification M is 4 ≦ M <8, 2 ≦ M <4, 1 ≦ M <2, and (4) P 1 signal, (5) P 2 signal, (6) P 4 signals, (7) - (12), respectively designated magnification M has 4 ≦ M <
8, the output of the latch 21 and the output of the latch 22 when 2 ≦ M <4, 1 ≦ M <2, and (13) to (15) indicate that the designated magnification M is 4
≦ M <represents the timing of the output image signal sequence D 1 of the case of 8,2 ≦ M <4,1 ≦ M < 2. The operation of the above configuration will be described below. The selector 27 outputs the timing signal P 1 of the signal lines 30 to 32,
P 4 , 2 when 1 ≦ M <2 according to designated magnification M among P 2 and P 4
A selector circuit that selects P 2 when ≦ M <4 and P 1 when 4 ≦ M <8 and outputs it as a signal line 34, and is supplied from the main scanning interpolation magnification setting unit 3 in FIG. It is switched in the interpolation magnification signal P 0. The input image signal sequence D 0 {d 1 , d 2 ,
d 3, a ......} to the latch 21 is set in synchronization with the rising timing signal of the signal line 34 to output to the latch 22 of the latch 21 (of FIG. 3 (7) - (12)). At this time, the input timing of the input image signal sequence D 0 may vary depending specified magnification (in FIG. 3 (1) to (3)) which is to handle the faster. The averaging circuits 23 to 25 are circuits for calculating and outputting the averaging of two input image data. The averaging circuit 23 outputs the output of the latch 21 and the output of the latch 22, and the averaging circuit 24 outputs the output of the latch 22. The output of the averaging circuit 23 and the averaging circuit 25 calculate the averaging of the output of the latch 21 and the output of the averaging circuit 23, respectively. now,
Assuming that the output of the latch 21 is d 2 and the output of the latch 22 is d 1 , the outputs of the averaging circuits 23 to 25 are as follows. Latch the outputs of the averaging circuits 23 to 25 and the output of the latch 22
26 is set in synchronization with the rise of the timing signal on the signal line 34. The selector 28 is connected to the interpolation magnification signal P 0 and the signal line
By 32 the timing signal P 4 of a selector circuit for switching the output of the latch 26, thereby, FIG. 3 (13) -
Output shown in (15) is obtained as the output image signal sequence D 1 of the signal line 29. That is, when the designated magnification M is 1 ≦ M <2, only the output of the latch 22 is selected, and when 2 ≦ M <4, the output of the latch 22 and the output of the averaging circuit 23 are selected.
<When the 8 select all the outputs of the averaging circuits 23 to 25 of the latch 22 with the interpolation magnification signal P 0, in the period of the timing signal P 4 each signal line 32, when 1 ≦ M <2 {D 1 , d 2 , d 3 ……} When 2 ≦ M <4 {d 1 , (d 1 + d 2 ) / 2, d 2 , (d 2 + d 3 ) / 2, ...
...} {d 1 when 4 ≦ M <8, (3d 1 + d 2) / 4, (d 1 + d 2) / 2, (d 1
+ 3d 2 ) / 4, d 2 ,. In the present embodiment, the designated magnification M is 1 ≦ M <8, and the number of stages of the averaging circuit is two (the first stage is the averaging circuit 23, and the second stage is the averaging circuits 24 and 25). If four averaging circuits are added to the third stage in the configuration of the third stage, it is possible to reduce the number to less than 16 times, and similarly to the configuration of the nth stage, it is possible to reduce the number to less than 2 n + 1 times. By the above structure, a constant regardless of the period specified magnification of the output image signal sequence D 1, the smaller the interpolation magnification, to perform interpolation processing at a high speed since the period of the input image signal sequence D 0 can short Can be. In the present embodiment, the interpolation magnification is set as follows with respect to the specified magnification M.
It is clear from FIG. When the specified magnification M is 1 ≦ M <2, the interpolation magnification is 1 × When the specified magnification M is 2 ≦ M <4, the interpolation magnification is 2 × When the specified magnification M is 4 ≦ M <8, the interpolation magnification is 4 FIG. 4 shows an operation flowchart of the main scanning repetition section 9 of FIG. The enlargement process in the repetition unit is the same as that of the conventional method 1, but will be described in detail with reference to the operation flowchart of FIG. In FIG. 4, R is an operation register, A and B are constant registers, and the enlargement ratio of the repetition part is represented by A / B (A ≧ B). The operation flowchart will be described below in order. 41 is 1
This is the starting point of the line image processing operation. Reference numeral 42 denotes an initial setting unit for clearing the register R to 0 and performing initial setting. Reference numeral 43 denotes a subtraction unit for subtracting the contents of the register B from the contents of the register R. The comparison unit 44 determines whether the result is negative or not. In the case of the present embodiment, since B> 0, the output of the subtraction unit 43 is always negative in the first processing. If the comparison unit 44 determines that the value is negative, the process goes to the comparison unit 45 to determine whether the processing of one line is completed. If the determination by the comparing section 45 is completed, the process goes to the image processing operation end point 49 for one line, and if not, the process goes to 46 to input data of one pixel. In the first process, the data of the first pixel is input here, and thereafter, the data of the second pixel and the third pixel are sequentially input each time the data passes therethrough.
After the data input, the process goes to the adder 47, where the content of the register A is added to the content of the register R, and then goes to 48 to output one pixel data. On the other hand, if the comparator 44 determines that the value is not negative, the process goes to 48 and outputs data of one pixel. That is, if it is determined that the input data is not negative, the input data is not updated by inputting one pixel data, so that the input data of the previous process is output as it is. 48
After outputting one pixel data in, the process returns to the subtraction unit 43. The processing from the subtraction unit 43 to the one-pixel data output 48 is 1
This processing unit is a pixel, and the same processing unit is repeated until the comparison unit 45 determines that the image processing operation of one line is completed. The above processing is performed by DDA (Digital Differential Analyzer: digita
l differential analyzer) to determine whether to newly input and output the image signal or to repeatedly output the image signal. The input data is updated only when the comparator 44 determines negative, Otherwise, 1
The data input in the process before the pixel is repeatedly output, and the enlargement process is performed by this repetition. FIG. 5 shows an example when the enlargement is repeated in the operation flow of FIG. FIG. 5A shows an example when the enlargement ratio is 3/2, and FIG. 5B shows an example when the enlargement ratio is 7/4. In FIG. 5, the comparison content of R indicates the value of the register R input to the comparison unit 44 in FIG. 4, and the input data sequence and the output data sequence are respectively the input data and the output data for each processing unit of one pixel. Is shown. As is clear from FIG. 5, when the comparison content of R is negative, the input data string becomes the output data string as it is, and when it is not negative, the same data as the output data one pixel before is repeatedly output to the output data string. The operation of the sub-scanning repetition unit 8 is basically the same as the operation of the main-scanning repetition unit 9 and will not be described. As described above, according to the present invention, when an input image signal having a scanning line density of 1 lines / mm is converted into an image signal having a scanning line density of m lines / mm, the designated magnification M (where m / l) is obtained. Then, an interpolation magnification S (where S ≦ m / l) of 2 n (n is a positive integer) is set, and the l / mm input image signal is interpolated by the averaging operation of the interpolation magnification S times. After converting to an image signal of S · l / mm, it is determined whether the image signal is newly input and output or the previous image signal is repeatedly output based on DDA (Digital Differential Analysis). And, by the output enlargement process,
The image signal of S · l lines / mm interpolated at the interpolation magnification S times is M
By converting the image data into the m lines / mm image signal by multiplying the image data by a factor of / S, the distortion can be easily and quickly converted to a small value even at a wide range of magnifications, and the effect is large. Furthermore, by dividing the variable region of the designated magnification into a plurality of regions and setting the interpolation region S (S ≦ m / l) which can be expressed by 2 n (n is a positive integer) for each divided region. , High-speed processing can be realized, and the effect is great.

【図面の簡単な説明】 第1図は本発明の一実施例における走査線密度変換方法
を実現するための装置のブロック結線図第2図,第3図
は同装置における主走査データ補間部のブロック結線図
および同タイミング図、第4図は同装置における主走査
繰返し部の動作フローチャート、第5図(A),(B)
はそれぞれ同装置における繰返しによる拡大のデータを
示す図、第6図(A)〜(D)は本発明によるデータ変
換が歪の少ないことを一次元信号で説明した概念図、第
7図(A)、(B)は従来の走査線密度変換を示す概念
図である。 3……主走査補間倍率設定部、4……副走査補間倍率設
定部、6……副走査データ補間部、7……主走査データ
補間部、8……副走査繰返し部、9……主走査繰返し
部。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an apparatus for realizing a scanning line density conversion method according to an embodiment of the present invention. FIGS. 2 and 3 are diagrams of a main scanning data interpolation unit in the apparatus. FIG. 4 is a block connection diagram and timing chart, and FIG. 4 is an operation flowchart of a main scanning repetition unit in the apparatus, and FIGS. 5 (A) and (B).
FIGS. 6A to 6D are diagrams each showing enlarged data by repetition in the same apparatus, FIGS. 6A to 6D are conceptual diagrams illustrating that the data conversion according to the present invention has little distortion using a one-dimensional signal, and FIGS. 2) and 2 (B) are conceptual diagrams showing conventional scanning line density conversion. 3 main scanning interpolation magnification setting unit 4 sub scanning interpolation magnification setting unit 6 sub scanning data interpolation unit 7 main scanning data interpolation unit 8 sub scanning repetition unit 9 main Scanning repeater.

フロントページの続き (72)発明者 土屋 博義 川崎市多摩区東三田3丁目10番1号 松 下技研株式会社内 (72)発明者 丸山 祐二 川崎市多摩区東三田3丁目10番1号 松 下技研株式会社内 (72)発明者 黒沢 俊晴 川崎市多摩区東三田3丁目10番1号 松 下技研株式会社内 (56)参考文献 特開 昭60−22871(JP,A)Continuation of front page    (72) Inventor Hiroyoshi Tsuchiya               Matsu, 3-10-1 Higashimita, Tama-ku, Kawasaki-shi               Shimogiken Co., Ltd. (72) Inventor Yuji Maruyama               Matsu, 3-10-1 Higashimita, Tama-ku, Kawasaki-shi               Shimogiken Co., Ltd. (72) Inventor Toshiharu Kurosawa               Matsu, 3-10-1 Higashimita, Tama-ku, Kawasaki-shi               Shimogiken Co., Ltd.                (56) References JP-A-60-22871 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.走査線密度l本/mmの入力画像信号を走査線密度m
本/mmの画像信号に変換する際に、指定倍率M(但し、m
/l)に応じた2n(nは正の整数)の補間倍率S(但し、
S≦m/l)を設定して、前記l本/mmの入力画像信号を前
記補間倍率S倍の加算平均演算で補間してS・l本/mm
の画像信号に変換処理した後、DDA(デジタル微分解
析)に基づいて前記画像信号を新たに入力して出力する
か、あるいは前画像信号を繰り返し出力するかを決定
し、出力する拡大処理により、前記補間倍率S倍で補間
したS・l本/mmの画像信号をM/S倍に拡大し前記m本/m
mの画像信号に変換する走査線密度変換方法。
(57) [Claims] An input image signal having a scanning line density of 1 lines / mm is converted to a scanning line density of m
When converting to an image signal of lines / mm, the specified magnification M (where m
/ l) and an interpolation magnification S of 2 n (n is a positive integer) (where
S ≦ m / l), and the l / mm input image signal is interpolated by the averaging operation with the interpolation magnification S times S · l / mm
After converting the image signal into a new image signal, the image signal is newly input and output based on DDA (Digital Differential Analysis), or it is determined whether to repeatedly output the previous image signal. The image signal of S · l lines / mm interpolated at the interpolation magnification S times is expanded to M / S times and the m lines / m
A scanning line density conversion method for converting into an m image signal.
JP62147563A 1987-06-12 1987-06-12 Scan line density conversion method Expired - Fee Related JP2738685B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62147563A JP2738685B2 (en) 1987-06-12 1987-06-12 Scan line density conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62147563A JP2738685B2 (en) 1987-06-12 1987-06-12 Scan line density conversion method

Publications (2)

Publication Number Publication Date
JPS63311865A JPS63311865A (en) 1988-12-20
JP2738685B2 true JP2738685B2 (en) 1998-04-08

Family

ID=15433173

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62147563A Expired - Fee Related JP2738685B2 (en) 1987-06-12 1987-06-12 Scan line density conversion method

Country Status (1)

Country Link
JP (1) JP2738685B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760489B1 (en) 1998-04-06 2004-07-06 Seiko Epson Corporation Apparatus and method for image data interpolation and medium on which image data interpolation program is recorded
US6510254B1 (en) 1998-04-06 2003-01-21 Seiko Epson Corporation Apparatus and method for image data interpolation and medium on which image data interpolation program is recorded
US6768559B1 (en) 1998-04-20 2004-07-27 Seiko Epson Corporation Medium on which printing control program is recorded, printing controller, and printing controlling method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6022871A (en) * 1983-07-18 1985-02-05 Konishiroku Photo Ind Co Ltd Method and apparatus of enlarging and reduction

Also Published As

Publication number Publication date
JPS63311865A (en) 1988-12-20

Similar Documents

Publication Publication Date Title
EP0389164B1 (en) Pixel density converting apparatus
JP3210248B2 (en) Image processing apparatus and method
US4924306A (en) Method of and device for estimating the extent of motion in a picture element of a television picture
JP3076147B2 (en) Image processing method and image processing apparatus
JPH0693246B2 (en) Dither image enlargement / reduction method
JP2001008037A (en) Pixel interpolation method and circuit
JP2738685B2 (en) Scan line density conversion method
KR20020015794A (en) Cubic convolution interpolation factor producing method
JP3212917B2 (en) Scanning line interpolation device and scanning line interpolation method
JPH0779419B2 (en) Scan line density conversion method
JP3001274B2 (en) Image scaling processing method and apparatus
JPH0779422B2 (en) Image scaling device
JP3084096B2 (en) Progressive scanning signal converter
JPH06203148A (en) Method and device for processing image
JPH01290373A (en) Picture signal processing unit
JPH01312671A (en) Picture processor
JPH1011571A (en) Binary picture multi-valuing and reducing processor
JPS63102467A (en) Converting device for resolution of picture data
JPS62176369A (en) Picture signal processor
US5727086A (en) Device and method for picture processing including contraction of toned image
JPH0413882Y2 (en)
JPH0247911B2 (en)
JP2592066B2 (en) Image processing device
JPH1063826A (en) Picture enlargement and reduction processor
JP3169418B2 (en) Frequency converter

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees