JP3904892B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP3904892B2
JP3904892B2 JP2001334805A JP2001334805A JP3904892B2 JP 3904892 B2 JP3904892 B2 JP 3904892B2 JP 2001334805 A JP2001334805 A JP 2001334805A JP 2001334805 A JP2001334805 A JP 2001334805A JP 3904892 B2 JP3904892 B2 JP 3904892B2
Authority
JP
Japan
Prior art keywords
output
pixel
image
image processing
processing apparatus
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
JP2001334805A
Other languages
Japanese (ja)
Other versions
JP2003143398A (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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2001334805A priority Critical patent/JP3904892B2/en
Publication of JP2003143398A publication Critical patent/JP2003143398A/en
Application granted granted Critical
Publication of JP3904892B2 publication Critical patent/JP3904892B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、画像処理装置に関し、特に、入力画像サイズを変換して出力するための機能を備えたデジタル複写機等の画像処理装置に関する。
【0002】
【従来の技術】
従来の画像処理装置には、主走査方向に入力画像サイズを変更して出力するための電子変倍処理部を備えたものがあった。このような従来の電子変倍処理部では、同一ライン中で変倍率を変更して出力する場合に、出力画素間隔が部分毎に異なるため、全ての出力画素の座標を予めCPU等により計算し、メモリに記憶しておく必要があった。
【0003】
まず、図9を用いて従来の電子変倍処理部の構成を説明する。図9は、従来の電子変倍処理部の概略構成を示すブロック図である。
従来の画像処理装置における電子変倍処理部50は、図9に示すように、拡大用ラインメモリ51、出力画像濃度算出部52、出力座標位置記憶メモリ53および縮小用ラインメモリ54を備えて構成されている。
この電子変倍処理部50では、フィルター処理部によりフィルター処理が行われた画像データが、拡大用ラインメモリ51に記憶される。拡大用画像データ(画素濃度)は、必要に応じて読み出されて出力画像濃度算出部52に入力され、出力画像の濃度算出に使用される。
拡大処理を行う場合には、拡大用ラインメモリ51ヘの読み出し信号は間引いて出力されるが、等倍処理または縮小処理を行う場合には、このような間引き制御を受けずに、読み出し信号がそのまま出力画像濃度算出部52に出力される。
【0004】
出力画像濃度算出部52は、出力座標位置記憶メモリ53から出力画素の座標を求めるとともに、拡大用ラインメモリ51から読み出された画像データ(画素濃度)に基づいて演算を行い、出力画素の画素濃度を算出する。算出された画像データ(画素濃度)は、縮小用ラインメモリ54に書き込まれる。また、拡大処理を行う場合には、書き込み制御を受けずにそのまま書き込まれるが、縮小処理を行う場合には、縮小率に応じて書き込み間引きが行われる。
【0005】
次に、図10を用いて、上述した電子変倍処理部50をさらに詳しく説明する。図10は、図9に示す従来の電子変倍処理部50を構成する出力画像濃度算出部52の構成を示すブロック図である。
従来の電子変倍処理部50を構成する出力画像濃度算出部52は、図10に示すように、出力座標位置記憶メモリ53、ライン検知部61、入力画素位置記憶部62、入力画素濃度記憶部63、出力画素濃度計算部64、出力間引き作成部65および入力画素取り込み部66を備えて構成されている。
【0006】
変倍率を変更するには、ユーザーがパネル等の操作部を操作し、変倍率および変倍率を変更するための座標を入力する。画像処理装置を構成するCPU60は、入力された値に基づいて、水平同期信号入力位置を原点とする出力画素座標軸上に、変倍後の補間された画素の出力位置を計算する。計算された出力画素位置は、出力座標位置記憶メモリ53に記憶される。
すなわち、出力座標位置記憶メモリ53には、出力画素一つ一つの座標が1ライン分だけ記憶されることになる。この出力座標位置記憶メモリ53としては、一般にラインメモリが用いられる。
【0007】
また、ライン検知部61により水平同期信号が検知されると、入力画素位置記憶部62に記憶された入力画素座標がリセットされる。
一つの入力画素の処理が終了すると、拡大用ラインメモリ51(図9参照)から次の入力画素が読み込まれる。読み込まれる値は、入力画素の画素濃度である。ここで、入力画素の読み込み間隔は、倍率によって異なっている。例えば、200%の倍率であれば、1画素の入力から2画素の出力を得るので、2出力に対して1回の読み込みを行うことになる。また、50%の倍率であれば、2画素の入力から1画素の出力を得るので、1出力に対して2回の読み込みを行うことになる。
【0008】
このような入力画素取り込み間隔の調整は、入力画素取り込み部66で行う。入力画素取り込み部66は、作成した取り込み間隔で拡大用ラインメモリ51(図9参照)に対して読み込み信号を出力する。
現在どの入力画素が使用されているかは、入力画素位置記憶部62に記憶される。また、読み込まれた入力画素の濃度は、ラインメモリ等からなる入力画素濃度記憶部63に記憶され、出力画素の画像濃度の算出に使用される。
【0009】
出力画素濃度計算部64は、入力画素濃度と出力座標とに基づいて、出力画素濃度を算出する。具体的には、出力画素を挟む両側の入力画素の画像濃度と、入力画素位置に対する出力画素位置の内分比を用いた一次補間処理により、出力画素の濃度を算出する。
【0010】
次に、図11を参照して、出力画素濃度の算出方法を説明する。
出力画素濃度を算出するには、以下の式を用いる。
(出力画素Cの濃度)=(入力画素Aの濃度)×(B−C)/(B−A)+(入力画素Bの濃度)×(C−A)/(B−A)
【0011】
ここで、Cは水平同期信号を原点とする出力画素の座標であるが、これはCPU60によって計算され、出力座標位置記憶メモリ53に記憶されていた値を用いる。
なお、出力画素濃度は、水平同期信号を原点とする座標を用いずに、各出力画素の内分比(D(=C−A)とする)を用いて算出してもよい。
【0012】
すなわち、出力画素濃度は、以下の式を用いて算出することもできる。
(出力画素Cの濃度)=(入力画素Aの濃度)×(B−A−D)/(B−A)+(入力画素Bの濃度)×D/(B−A)
【0013】
このようにして算出された出力画素濃度は、縮小用ラインメモリ54に書き込まれる。縮小用ラインメモリ54ヘの書き込みは、縮小処理を行う場合、間引いて書き込まれるが、この間引き信号は出力間引き作成部65により作成される。なお、縮小間引きでは、予めCPU60で計算した間引き間隔を、出力間引き作成部65に記憶しておいてもよいし、出力座標位置記憶メモリ53に記憶されている出力画素位置と現在の出力位置とを比較器を用いて比較することにより間引き間隔を作成してもよい。
【0014】
【発明が解決しようとする課題】
しかしながら、上述した従来の画像処理装置では、以下に示す問題点があった。すなわち、電子変倍処理において同一ライン上で部分的に変倍率を変更するためには、部分的に出力画素間隔が異なるため、水平同期信号を原点とする座標軸上における各出力画素の位置を全て記憶しておく必要があった。
したがって、1ライン分の画素の出力座標を記憶するために、ラインメモリ等の大規模な記憶装置が必要であり、回路規模とコストの増大を招くという問題があった。
【0015】
本発明は、上述した問題点に鑑み提案されたもので、入力画像サイズを変換して出力する変倍処理機能を備えたデジタル複写機等の画像処理装置において、補間出力位置座標記憶用のラインメモリを用いることなく、1ライン中の任意の位置で主走査方向に変倍率を変更可能とし、座標記憶用のメモリを削除して、回路規模を縮小するとともに、製造コストを低減することを目的とする。
【0016】
【課題を解決するための手段】
本発明に係る画像処理装置は、上述した目的を達成するため、主走査方向に変更可能な複数の変倍率を用意し、任意の位置で変倍率を入れ替えられる回路を導入した。また、N−1画素目の出力位置に対して、上記変倍率に基づく演算を行うことにより、N画素目の出力座標を算出する回路を導入した。
【0017】
すなわち、本発明に係る画像処理装置は、画像データを主走査方向に電子変倍するための電子変倍手段を備えた画像処理装置において、出力画像位置の座標を逐次計算するための出力座標算出手段と、出力画像濃度を逐次算出するための出力画像濃度算出手段と、を備え、該出力座標算出手段は、任意の位置における拡大又は縮小する画像領域のユーザにより入力される入力情報又は自動的に該画像領域の画像特性により算出される情報を考慮して、前記画像領域の大きさと出力用紙幅とから拡大又は縮小のための変倍率を算出しておき、出力座標を逐次算出する際に、前記算出した変倍率に変更させて、1頁の入力座標全てが出力画像1頁に収まるようにしたことを特徴とする。
【0018】
また、前記画像処理装置において、前記出力座標算出手段は、N−1画素目の出力画素の出力座標に定数を加算することによりN画素目の出力画素の出力座標を算出するように構成する。
【0019】
また、前記画像処理装置において、出力画像濃度を算出するための出力画像濃度算出手段を備え、
該出力画像濃度算出手段は、出力画素を挟む二つの入力画素濃度と、該二つの入力画素に対する前記出力画素の位置とを用いた一次補間処理により出力画像濃度を算出するように構成する。
【0020】
また、前記画像処理装置において、前記出力座標算出手段は、出力座標に加算する定数を複数用意し、同一ラインにおける処理の途中で、前記複数の定数のうちの任意の一つを選択して変更可能に構成する。
【0023】
また、画像処理装置において、前記出力座標算出手段は、加算する定数を変更する座標付近において、前記加算する定数を徐々に変更するための緩衝用座標領域を有し、該緩衝用座標領域内で緩やかに前記定数が変化するように構成する。
【0024】
また、前記画像処理装置において、前記出力座標算出手段は、前記緩衝用座標領域の幅を任意に変更可能に構成する。
【0025】
また、前記画像処理装置において、前記出力座標算出手段は、前記定数の移動平均に基づいて前記緩衝用座標領域内で緩やかに前記定数を変化させるように構成する。
【0026】
また、前記画像処理装置において、1ライン中における所定の領域で拡大処理を行った場合に、残余の領域において縮小処理を行うように構成する。
【0027】
また、前記画像処理装置において、1ライン中における所定の領域で縮小処理を行った場合に、残余の領域において拡大処理を行うように構成する。
【0028】
また、前記画像処理装置において、領域分離処理を用いて、写真領域を判定した場合には縮小処理を行い、文字部分を判定した場合には拡大処理を行うように構成する。
【0029】
このように、本発明に係る画像処理装置は、1画素前の出力座標位置から演算によって次の出力画素位置を算出する構成となっているため、演算係数(変倍率)を入れ替えることにより、各画素毎の出力座標間隔を変更し、出力座標位置を逐次計算することができる。なお、このような構成とすることにより逐次計算のための回路が増加するが、この回路の増加は、ラインメモリの回路規模に比較して無視できる程度のものである。
【0030】
【発明の実施の形態】
以下、図面に示す具体的な実施例を用いて、本発明に係る画像処理装置の実施形態を説明する。
【0031】
図1は、本発明に係る画像処理装置の一実施形態であるデジタル複写機の概略構成を示すブロック図である。
本発明に係る画像処理装置1は、図1に示すように、画像取り込み部2、画像処理部3、画像メモリ4および画像形成部5を備えて構成されている。
【0032】
画像取り込み部2はCCD6を備えており、この画像取り込み部2により画像の取り込みを行う。画像取り込み部2のCCD6から読み込まれた画像データは、画像処理部3に送られる。
画像処理部3は、シェーディング補正部7、自動露光部8、領域分離・フィルター処理部9、電子変倍処理部10および誤差拡散部11により構成されている。
【0033】
画像処理部3では、シェーディング補正部7によりCCD6が取り込んだ画像に対してシェーディング補正を行い、CCD6の素子バラツキの補正を行う。続いて、シェーディング補正が施された画像データは、自動露光部8に送られ、下地除去および明るさ補正が行われる。続いて、自動露光処理が施された画像データは、領域分離・フィルター処理部9に送られ、文字、写真等の画像に応じたフィルター処理が施される。続いて、フィルター処理が施された画像データは、電子変倍処理部10に送られ、拡大、縮小の変倍処理が行われる。
【0034】
続いて、電子変倍処理後の画像データは、誤差拡散部11に送られ、2値化されて、画像メモリ4に記憶される。さらに、画像メモリ4から読み出された画像データは、画像形成部(LSUユニット等)5に送られ、用紙にプリントアウトされる。
なお、図示していないが、画像処理装置1は、操作内容を入力するための操作パネル部、操作内容を表示するための表示部、画像処理装置全体の制御を行うための制御部等を備えている。
【0035】
次に、図2を参照して、電子変倍処理と入出力座標変換処理について説明する。図2は、電子変倍処理および入出力座標変換処理の説明図である。
電子変倍処理は、入力された画素数を変換して出力するための処理である。ここで、図2の上段に示す直線は入力座標軸を示し、図2の下段に示す直線は出力座標軸を示す。なお、図2に示す例では、2倍の拡大を行っている。
【0036】
電子変倍処理では、入力座標軸上にある画素の数を変換して、出力座標上に出力する。出力画素の作成間隔は変倍率によって決定される。すなわち、拡大率が大きいほど密に作成され、画素数が増える。一方、縮小率が大きいほど疎に作成され、画素数が減る。例えば、8倍の拡大を行う場合には、1入力画素に対して8出力画素が作成される。また、8分の1の縮小を行う場合には、8入力画素に対して1出力画素が作成される。
出力画素の画素濃度は、当該出力画素を挟む両側の入力画素の濃度、および当該出力画素を挟む両側の入力画素との距離に応じて作成される。
【0037】
次に、図3を用いて、電子変倍処理部をさらに詳しく説明する。図3は、図2に示す電子変倍処理部10を構成する出力画像濃度算出部の構成を示すブロック図である。なお、図3に示す出力画像濃度算出部では、従来存在していた出力座標位置記憶メモリが存在しないが、これは本実施形態において出力画像濃度算出部を回路に置き換えて構成したためである。
【0038】
出力画像濃度算出部20は、図3に示すように、変倍率計算部21、入力画素取り込み部22、ライン検知部23、倍率変更位置記憶部24、変倍率記憶部25、出力座標計算部26、出力座標記憶部27、補間内分比計算部28、入力画素位置記憶部29、入力画素濃度記憶部30、出力画素濃度計算部31および出力間引き作成部32を備えて構成されている。
【0039】
この出力画像濃度算出部20では、ユーザーがキー等の入力デバイスを使用して入力した変倍率は、変倍率記憶部25に記憶される。変倍率記憶部25には、1回のコピー出力に使用される変倍率の全てが記憶される。すなわち、部分的に50%でコピーし、残りの部分を150%でコピーする場合には、50%(変倍率α)と150%(変倍率β)の変倍率が記憶される。
【0040】
また、同様に入力デバイスを使用して入力された倍率の変更位置は、倍率変更位置記憶部24に記憶される。倍率変更位置記憶部24には、1回のコピー出力に使用される倍率変更位置の全てが記憶される。すなわち、部分Aで50%(位置a)でコピーし、部分Bを150%(位置b)でコピーする場合には、部分Aの境界と部分Bの境界が記憶される。記憶される位置情報は、水平同期信号を原点とする座標軸上の位置である。
【0041】
また、領域分離結果によって自動的に変倍率を調整する場合、すなわち写真を小さく変倍するとともに文字を大きく変倍する場合には、領域分離・フィルター処理部から得られる領域分離情報に基づいて、変倍率計算部21が変倍率を計算する。この場合、写真と文字の境界は、倍率変更位置記憶部24に記憶される。
【0042】
ライン検知部23は、水平同期信号を検知する。ライン検知部23に水平同期信号が入力されると、リセット信号が出力座標計算部26に入力され、出力画素座標がリセットされる。また、リセット信号は入力画素位置記憶部29にも入力され、入力画素座標がリセットされる。
【0043】
入力画素位置記憶部29には、現在の出力画素濃度の算出に用いられている入力画素の水平同期信号からの位置が記憶されている。なお、出力画素の算出には、出力画素座標を挟む両側の入力画素が必要なため、入力画素位置記憶部29には2画素分の入力座標が記憶されていることになる。
【0044】
出力座標計算部26は、出力画素の座標算出を行う。出力座標計算部26では、出力座標記憶部27に記憶されている1画素前の出力座標(N−1)に対して、変倍率記憶部25に記憶されている変倍率(α、β)のうちの適切な変倍率を選択し加算して、出力座標(N)を作成する。
【0045】
ここで、変倍率には、ユーザーが設定した倍率の逆数が入力されている。例えば、入力画素間隔が8192入力座標分である場合に、ユーザーが50%(0.5倍)を設定したとすると、変倍率として8192/0.5=16384が設定される。また、200%(2倍)を設定したとすると、8192/2=4096が設定される。このように逆数を設定することにより、縮小率が大きければ出力座標間隔が長くなって出力画素数が減り、反対に拡大率が大きくなれば出力画素間隔が短くなって出力画素数が多くなる。
出力座標(N)が算出されると、出力座標記憶部は(N−1)を(N)に置き換える。
【0046】
また、出力座標が倍率変更位置記憶部24に記憶されている値を超えると、出力座標の作成に用いられる変倍率の入れ替えが行われる。ここで、倍率変更位置記憶部24の記憶内容は、任意に変更することができる。また、変倍率の入れ替えは、前述したように、出力座標位置を比較して行ってもよいし、入力座標位置を比較して行ってもよい。
【0047】
補間内分比計算部28では、入力画素位置と出力画素位置とに基づいて、入力画素に対する出力画素の相対的な位置、すなわち出力画素が入力画素を内分する比を算出する。例えば、出力画素が入力2画素を1:3で内分する点に作成されたとすると、出力画素濃度算出部31により内分比に応じた出力画素濃度が作成される。
【0048】
入力画素は、拡大用ラインメモリから読み込まれる。この拡大用ラインメモリヘの読み出し制御信号は、入力画素取り込み部22により作成される。拡大用ラインメモリから読み込まれるのは、入力画素の画素濃度である。
【0049】
入力画素取り込み部22は、入力画素の取り込み制御を行う部分であり、拡大用ラインメモリヘの読み込み許可信号を制御して出力する。入力画素の取り込みタイミングは変倍率によって異なるので、変倍率に依存したタイミングで入力画素の取り込みを行う。すなわち、変倍率50%の時には、出力1画素に対して2画素を読み込む。また、変倍率200%の時には、出力2画素に対して1画素を読み込む。読み込まれた画素は、入力画素濃度記憶部30により、その濃度が記憶される。入力画素濃度記憶部30には、出力画素を挟む両側の2画素分の入力画素の濃度が記憶される。
【0050】
出力画素濃度計算部31では、出力画素の濃度を算出する。すなわち、入力画素濃度と補間内分比とに基づいて、以下の式を用いて出力濃度を算出する。
補間内分比計算部28により補間内分比「ア」および補間内分比「イ」が作成されたとすると、
出力画素濃度=入力画素濃度A×補間内分比「ア」+入力画素濃度B×補間内分比「イ」
となる。
ただし、補間内分比「ア」と補間内分比「イ」は、補間内分比「ア」+補間内分比「イ」=1の関係を満たす。
この出力画素濃度の算出は、上記一次補間によって行われる。
【0051】
算出された出力画素濃度は、縮小用ラインメモリに書き込まれる。縮小処理を行う場合には、縮小用ラインメモリヘの書き込みが間引かれる。この間引き信号は、出力間引き作成部32により生成される。出力間引き作成部32は、縮小率に応じた間引き信号を作成して縮小用ラインメモリへ出力する。すなわち、現在の座標と出力座標計算部26が出力する出力画素位置を比較し、出力が必要なタイミングで書き込み信号を出力する。
【0052】
次に、図4を用いて、本発明に係る画像処理装置における処理の手順を説明する。図4は、本発明に係る画像処理装置における処理の手順を示すフローチャートである。
【0053】
本発明に係る画像処理装置において処理が開始されると、図4に示すように、ユーザーによる変倍率や主走査方向における変倍率の変更位置が、キー入力により設定される(S1)。
キー入力が終了すると、ページ信号がページ領域の開始を示すまで、処理が待機状態となる(S2)。そして、ページが有効領域となると、水平同期信号(sync)の入力を判定する(S3)。
【0054】
ここで、水平同期信号(sync)が入力されると、入出力画素位置が「0」にリセットされる(S4)。一方、水平同期信号(sync)が入力されなかった場合には、出力画素位置(N−1)に対して変倍率が加算され、出力画素位置(N)が算出される(S5)。
続いて、出力画素位置が、ユーザーが設定した変倍率の変更位置と等しいかどうを判定する(S6)。ここで、出力画素位置が変更位置と等しい場合には、変倍率の入れ替えを行う(S7)。この変更により、同一ページ内であっても、部分的に変倍率を変更することが可能となる。
【0055】
続いて、算出された出力画素位置と入力画素位置の相対的な位置関係、すなわち入力画素に対する出力画素の内分比を算出する(S8)。続いて、出力画素濃度計算部31により、入力画素濃度と内分比とに基づく一次補間により、出力画素濃度が算出される(S9)。
出力画素濃度が算出されると、ページ信号の有無が判定される(S10)。ここで、ページ信号が終了していれば処理を終了し、ページ信号が有効であれば水平同期信号の検知処理(S3)以後の処理が繰り返される。
【0056】
次に、図5および図12を用いて、本発明に係る画像処理装置おける出力座標記憶部の記憶内容と従来の画像処理装置における出力座標記憶部(出力座標位置記憶メモリ)の記憶内容との相違を説明する。図5は、本発明に係る画像処理装置おける出力座標記憶部の記憶内容の説明図、図12は、従来の画像処理装置における出力座標記憶部(出力座標位置記憶メモリ)の記憶内容の説明図である。
【0057】
まず、従来の画像処理装置における出力画素位置記憶部(出力座標位置記憶メモリ)の記憶内容を説明する。
図12の上段には画素と出力画素位置の関係を示してあり、下段には出力画素位置記憶部(出力座標位置記憶メモリ)に記憶される内容を示してある。
【0058】
図12の上段において、その左端が水平同期信号の位置、すなわち、出力画素位置の原点であり、中央部が変倍率の変更点である。従来の出力画素位置記憶部(出力座標位置記憶メモリ)には、水平同期信号からの距離が各画素毎に全て記憶されている。出力画素位置の算出は、各出力画素毎に位置をメモリから読み出す処理により行う。
【0059】
次に、本発明の画像処理装置おける出力画素位置記憶部の記憶内容を説明する。
図5の上段には画素と出力画素位置の関係を示してあり、下段左側には出力画素位置記憶部の記憶内容が示してあり、下段中央には倍率変更位置記憶部の記憶内容が示してあり、下段右側には変倍率記憶部の記憶内容が示してある。
【0060】
図5上段において、その左端が水平同期信号の位置、すなわち、出力画素位置の原点であり、中央部が変倍率の変更点である。本発明の画像処理装置における出力画素位置記憶部には、変倍率、すなわち、前回の出力画素位置からの加算すべき数が記憶されている。出力画素位置の算出は、前回の出力画素に変倍率を加算する処理により行われる。変倍率記憶部は、同一処理中に変倍率を変更できるように複数の変倍率を記憶し、変倍率の変更が指示された場合には値を入れ替える。また、変倍率の変更点は、倍率変更位置記憶部に記憶されている。
【0061】
次に、図6を用いて、緩衝用座標領域について説明する。図6は、緩衝用座標領域の説明図である。
同一の処理中に急激な倍率変化がある場合には、境界線付近で画像が読み取りにくくなる不具合が生じることがある。そこで、本発明に係る画像処理装置では、変倍率が変化する境界近辺に緩衝用領域を設け、その緩衝用領域内で緩やかに変倍率を変化させている。
【0062】
図6において、ラインは左側から右側へ向かって流れているものとする。図6に示すように、ラインの初期には2倍の変倍処理を行っているが、ラインの途中で8倍の処理へ変更する場合を考える。図6に示す例では、2倍からいきなり8倍の変倍率に変更するのではなく、2倍、3倍、5倍、8倍と段階的に変倍率を変更している。このような処理を行うことにより、境界部分で急激な画像変化が発生することを防止できる。
【0063】
ここで、緩衝用の領域の幅は任意とすることができ、倍率変更が可能な領域の幅を変更できるものとする。この幅を広く取れば、より緩やかな画質変化を得ることができる。変倍率を緩やかに変化させる手段としては、例えば、変倍率の移動平均を取る方法が考えられる。
【0064】
次に、出力領域の調整方法を説明する。図7は、出力領域の調整方法の実施例1を示す説明図であり、図8は、出力領域の調整方法の実施例2を示す説明図である。
【0065】
まず、出力領域の調整方法の実施例1を説明する。
図7(a)において、中央部分(領域B)の画像を拡大したいとする。ここで、画像は左端(領域A側)から入力されているので、左部分を等倍のまま中央部分を拡大すると、領域Cの画像は出力画像からはみ出して欠損することになる。
【0066】
そこで、図7(b)に示すように、中央部分を拡大し、そのほかの部分(領域A,C)は縮小を行って、画像の欠損が発生しないようにする。ここで、ユーザーは、キー設定により領域Bの変倍率と領域Bの領域幅を設定する。残りの領域A,Cの変倍率と倍率変更位置は、図3における変倍率計算部21と倍率変更位置記憶部24によって計算されるものとする。A,Cの領域と倍率は、Bの倍率と領域および出力用紙幅から算出することができる。
【0067】
次に、出力領域の調整方法の実施例2を説明する。
図8(a)に示すように、写真と文字が混在した原稿があったとする。ここで、写真領域は縮小しても全体のイメージを損ないにくいので、写真部分を縮小し、文字部分を拡大することにする(図8(b))。このような処理を行うことにより、全体のイメージを損なうことなく文字部分を読み易くすることができる。ここで、写真、文字の領域分離処理は、図1における領域分離・フィルター処理部9の領域分離処理結果を用いることにする。
【0068】
【発明の効果】
本発明に係る画像処理装置は、上述した構成を有するため、以下の効果を奏することができる。
【0069】
すなわち、本発明に係る画像処理装置によれば、出力座標算出手段により出力画像位置の座標を逐次計算し、任意の位置で変倍率を変更可能としている。このため、部分的に変倍率を変更することにより、同じ原稿上であっても情報の重要度に応じて見やすさを調整することができる。例えば、文字と写真が混在した原稿を処理する場合には、文字部分だけを拡大して読みやすくすることが可能となる。また、出力画像位置を逐次算出することにより、大規模な記憶装置を必要としない。
【0070】
また、本発明に係る画像処理装置によれば、N−1画素目の出力画素の出力座標に定数を加算することによりN画素目の出力画素の出力座標を算出することができる。このため、出力座標算出のために記憶する座標を節約することができる。すなわち、1ライン分の出力座標の全てを記憶することなく、N−1画素目からN画素目を算出することにより、N−1画素目の座標のみの記憶容量しか必要としない。
【0071】
また、本発明に係る画像処理装置によれば、出力画素を挟む入力画素濃度と、入力画素に対する出力画素の位置とを用いた一次補間処理により出力画像濃度を算出する。このため、入力画素濃度と出力画素位置のみから出力画像濃度を算出することができ、回路規模を小さくすることができる。
【0072】
また、本発明に係る画像処理装置によれば、出力座標に加算する定数を複数用意し、同一ラインにおける処理の途中で、前記複数の定数のうちの任意の一つを選択して変更可能としている。このため、同一ライン中で変倍率を変更することにより、部分的に独立した変倍を実行することができる。
【0075】
また、本発明に係る画像処理装置によれば、加算する定数を変更する座標付近において、加算する定数を徐々に変更するための緩衝用座標領域を有し、この緩衝用座標領域内で緩やかに定数が変化するようにしている。このため、急激な変倍率の変化を発生させずに、違和感なくなめらかに変倍率を変更することができる。
【0076】
また、本発明に係る画像処理装置によれば、緩衝用座標領域の幅を任意に変更可能としている。このため、急激な変倍率の変化がある場合であっても、緩衝領域の幅を大きくとることにより、境界点のなめらかさを調整することができる。
【0077】
また、本発明に係る画像処理装置によれば、定数の移動平均に基づいて緩衝用座標領域内で緩やかに定数を変化させる。このため、簡単な構成でなめらかに変倍率を変更することができる。
【0078】
また、本発明に係る画像処理装置によれば、1ライン中における所定の領域で拡大処理を行った場合に、残余の領域において縮小処理を行う。このため、拡大を指定していない原稿領域であっても、縮小して原稿全域を出力することができる。
【0079】
また、本発明に係る画像処理装置によれば、1ライン中における所定の領域で縮小処理を行った場合に、残余の領域において拡大処理を行う。このため、出力に余白部分を作ることなく、一部分にのみ縮小処理を行うことができる。
【0080】
また、本発明に係る画像処理装置によれば、領域分離処理を用いて、写真領域を判定した場合には縮小処理を行い、文字部分を判定した場合には拡大処理を行う。このため、写真領域を縮小し、文字領域を拡大することにより、全体のイメージを損なわずに読みやすい文字出力を行うことができる。
【図面の簡単な説明】
【図1】本発明に係る画像処理装置の概略構成を示すブロック図である。
【図2】電子変倍処理および入出力座標変換処理の説明図である。
【図3】電子変倍処理部の構成を示すブロック図である。
【図4】本発明に係る画像処理装置における処理の手順を示すフローチャートである。
【図5】本発明に係る画像処理装置おける出力座標記憶部の記憶内容の説明図である。
【図6】緩衝用座標領域の説明図である。
【図7】出力領域の調整方法の実施例1を示す説明図である。
【図8】出力領域の調整方法の実施例2を示す説明図である。
【図9】従来の電子変倍処理部の概略構成を示すブロック図である。
【図10】従来の電子変倍処理部を構成する出力画像濃度計算部の構成を示すブロック図である。
【図11】出力画素濃度の算出方法の説明図である。
【図12】従来の画像処理装置における出力座標位置記憶メモリの記憶内容の説明図である。
【符号の説明】
1 画像処理装置
2 画像取り込み部
3 画像処理部
4 画像メモリ
5 画像形成部
6 CCD
7 シェーディング補正部
8 自動露光部
9 領域分離・フィルター処理部
10 電子変倍処理部
11 誤差拡散部
20 出力画像濃度算出部
21 変倍率計算部
22 入力画素取り込み部
23 ライン検知部
24 倍率変更位置記憶部
25 変倍率記憶部
26 出力座標計算部
27 出力座標記憶部
28 補間内分比計算部
29 入力画素位置記憶部
30 入力画素濃度記憶部
31 出力画素濃度計算部
32 出力間引き作成部
50 電子変倍処理部
51 拡大用ラインメモリ
52 出力画像濃度算出部
53 出力座標位置記憶メモリ
54 縮小用ラインメモリ
53 出力座標位置記憶メモリ
60 CPU
61 ライン検知部
62 入力画素位置記憶部
63 入力画素濃度記憶部
64 出力画素濃度計算部
65 出力間引き作成部
66 入力画素取り込み部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus such as a digital copying machine having a function for converting an input image size and outputting it.
[0002]
[Prior art]
Some conventional image processing apparatuses include an electronic scaling unit for changing and outputting an input image size in the main scanning direction. In such a conventional electronic scaling processing unit, when changing the scaling factor in the same line and outputting, since the output pixel interval differs for each part, the coordinates of all the output pixels are calculated in advance by the CPU or the like. Needed to be stored in memory.
[0003]
First, the configuration of a conventional electronic scaling unit will be described with reference to FIG. FIG. 9 is a block diagram showing a schematic configuration of a conventional electronic scaling unit.
As shown in FIG. 9, the electronic scaling unit 50 in the conventional image processing apparatus includes an enlargement line memory 51, an output image density calculation unit 52, an output coordinate position storage memory 53, and a reduction line memory 54. Has been.
In the electronic scaling processing unit 50, the image data subjected to the filter processing by the filter processing unit is stored in the enlargement line memory 51. The enlargement image data (pixel density) is read out as necessary and input to the output image density calculation unit 52, and is used for density calculation of the output image.
When the enlargement process is performed, the readout signal to the enlargement line memory 51 is thinned out and output. However, when the same magnification process or the reduction process is performed, the readout signal is not subjected to such a thinning control. It is output to the output image density calculation unit 52 as it is.
[0004]
The output image density calculation unit 52 obtains the coordinates of the output pixel from the output coordinate position storage memory 53 and performs an operation based on the image data (pixel density) read from the enlargement line memory 51 to obtain a pixel of the output pixel. Calculate the concentration. The calculated image data (pixel density) is written in the reduction line memory 54. Further, when the enlargement process is performed, the data is written as it is without being subjected to the write control. However, when the reduction process is performed, the writing thinning is performed according to the reduction ratio.
[0005]
Next, the electronic scaling processing unit 50 described above will be described in more detail with reference to FIG. FIG. 10 is a block diagram showing a configuration of an output image density calculation unit 52 constituting the conventional electronic scaling processing unit 50 shown in FIG.
As shown in FIG. 10, the output image density calculation unit 52 constituting the conventional electronic scaling processing unit 50 includes an output coordinate position storage memory 53, a line detection unit 61, an input pixel position storage unit 62, and an input pixel density storage unit. 63, an output pixel density calculation unit 64, an output thinning creation unit 65, and an input pixel capture unit 66.
[0006]
In order to change the magnification, the user operates an operation unit such as a panel and inputs the magnification and coordinates for changing the magnification. The CPU 60 constituting the image processing device calculates the output position of the interpolated pixel after scaling on the output pixel coordinate axis with the horizontal synchronization signal input position as the origin, based on the input value. The calculated output pixel position is stored in the output coordinate position storage memory 53.
That is, the output coordinate position storage memory 53 stores the coordinates of each output pixel for one line. As the output coordinate position storage memory 53, a line memory is generally used.
[0007]
When the line detection unit 61 detects a horizontal synchronization signal, the input pixel coordinates stored in the input pixel position storage unit 62 are reset.
When the processing of one input pixel is completed, the next input pixel is read from the enlargement line memory 51 (see FIG. 9). The value read is the pixel density of the input pixel. Here, the input pixel reading interval varies depending on the magnification. For example, when the magnification is 200%, since an output of 2 pixels is obtained from an input of 1 pixel, reading is performed once for 2 outputs. In addition, if the magnification is 50%, one pixel output is obtained from two pixel inputs, so that two readings are performed for one output.
[0008]
Such adjustment of the input pixel capturing interval is performed by the input pixel capturing unit 66. The input pixel capture unit 66 outputs a read signal to the enlargement line memory 51 (see FIG. 9) at the created capture interval.
Which input pixel is currently used is stored in the input pixel position storage unit 62. The read density of the input pixel is stored in the input pixel density storage unit 63 including a line memory and used for calculating the image density of the output pixel.
[0009]
The output pixel density calculation unit 64 calculates the output pixel density based on the input pixel density and the output coordinates. Specifically, the density of the output pixel is calculated by primary interpolation processing using the image density of the input pixels on both sides sandwiching the output pixel and the internal division ratio of the output pixel position to the input pixel position.
[0010]
Next, a method for calculating the output pixel density will be described with reference to FIG.
The following equation is used to calculate the output pixel density.
(Density of output pixel C) = (Density of input pixel A) × (BC) / (B−A) + (Density of input pixel B) × (C−A) / (B−A)
[0011]
Here, C is the coordinates of the output pixel with the horizontal synchronization signal as the origin, and this is a value calculated by the CPU 60 and stored in the output coordinate position storage memory 53.
Note that the output pixel density may be calculated using the internal division ratio (D (= C−A)) of each output pixel without using the coordinates with the horizontal synchronization signal as the origin.
[0012]
That is, the output pixel density can be calculated using the following equation.
(Density of output pixel C) = (Density of input pixel A) × (B−A−D) / (B−A) + (Density of input pixel B) × D / (B−A)
[0013]
The output pixel density calculated in this way is written into the reduction line memory 54. When the reduction process is performed, the writing to the reduction line memory 54 is thinned and written, and this thinning signal is created by the output thinning creation unit 65. In the reduction thinning, the thinning interval calculated in advance by the CPU 60 may be stored in the output thinning creation unit 65, or the output pixel position stored in the output coordinate position storage memory 53 and the current output position. By using a comparator, the thinning interval may be created.
[0014]
[Problems to be solved by the invention]
However, the conventional image processing apparatus described above has the following problems. In other words, in order to partially change the scaling factor on the same line in the electronic scaling process, since the output pixel interval is partially different, all the positions of the output pixels on the coordinate axis with the horizontal synchronization signal as the origin are all I had to remember it.
Therefore, in order to store the output coordinates of the pixels for one line, a large-scale storage device such as a line memory is necessary, which causes a problem of increasing the circuit scale and cost.
[0015]
The present invention has been proposed in view of the above-described problems. In an image processing apparatus such as a digital copying machine having a scaling processing function for converting an input image size and outputting the line, an interpolation output position coordinate storage line is provided. The objective is to make it possible to change the scaling factor in the main scanning direction at any position in one line without using a memory, to eliminate the memory for storing coordinates, to reduce the circuit scale, and to reduce the manufacturing cost And
[0016]
[Means for Solving the Problems]
In order to achieve the above-described object, the image processing apparatus according to the present invention prepares a plurality of magnifications that can be changed in the main scanning direction, and introduces a circuit that can change the magnifications at arbitrary positions. In addition, a circuit for calculating the output coordinates of the Nth pixel was introduced by performing an operation based on the above-described scaling factor for the output position of the (N-1) th pixel.
[0017]
That is, the image processing apparatus according to the present invention provides an output coordinate calculation for sequentially calculating the coordinates of the output image position in an image processing apparatus having an electronic scaling unit for electronic scaling of image data in the main scanning direction. Means, Output image density calculation means for sequentially calculating the output image density, The output coordinate calculation means In consideration of input information input by a user of an image area to be enlarged or reduced at an arbitrary position or information automatically calculated by image characteristics of the image area, the size of the image area and the output paper width Then, a scaling factor for enlargement or reduction is calculated from the above, and when calculating the output coordinates sequentially, the calculated scaling factor is changed so that all the input coordinates on one page fit on one page of the output image. It is characterized by that.
[0018]
In the image processing apparatus, the output coordinate calculation unit is configured to calculate the output coordinates of the Nth output pixel by adding a constant to the output coordinates of the (N-1) th output pixel.
[0019]
The image processing apparatus further comprises output image density calculation means for calculating output image density,
The output image density calculation means is configured to calculate the output image density by linear interpolation processing using two input pixel densities sandwiching the output pixel and the position of the output pixel with respect to the two input pixels.
[0020]
In the image processing apparatus, the output coordinate calculation means prepares a plurality of constants to be added to the output coordinates, and selects and changes any one of the plurality of constants during the process on the same line. Configure as possible.
[0023]
Further, in the image processing apparatus, the output coordinate calculation means has a buffer coordinate area for gradually changing the constant to be added in the vicinity of the coordinate to change the constant to be added. The constant is changed slowly.
[0024]
In the image processing apparatus, the output coordinate calculation unit is configured to be able to arbitrarily change the width of the buffer coordinate area.
[0025]
In the image processing apparatus, the output coordinate calculation means is configured to change the constant gently within the buffer coordinate area based on the moving average of the constant.
[0026]
The image processing apparatus is configured such that when the enlargement process is performed in a predetermined area in one line, the reduction process is performed in the remaining area.
[0027]
In the image processing apparatus, when the reduction process is performed in a predetermined area in one line, the enlargement process is performed in the remaining area.
[0028]
Further, the image processing apparatus is configured to use a region separation process to perform a reduction process when a photograph area is determined and to perform an enlargement process when a character portion is determined.
[0029]
As described above, the image processing apparatus according to the present invention is configured to calculate the next output pixel position by calculation from the output coordinate position of the previous pixel, so that by replacing the calculation coefficient (magnification factor), The output coordinate position can be sequentially calculated by changing the output coordinate interval for each pixel. Although such a configuration increases the number of circuits for sequential calculation, the increase in this circuit is negligible compared to the circuit scale of the line memory.
[0030]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of an image processing apparatus according to the present invention will be described below using specific examples shown in the drawings.
[0031]
FIG. 1 is a block diagram showing a schematic configuration of a digital copying machine which is an embodiment of an image processing apparatus according to the present invention.
As shown in FIG. 1, the image processing apparatus 1 according to the present invention includes an image capturing unit 2, an image processing unit 3, an image memory 4, and an image forming unit 5.
[0032]
The image capturing unit 2 includes a CCD 6, and the image capturing unit 2 captures an image. Image data read from the CCD 6 of the image capturing unit 2 is sent to the image processing unit 3.
The image processing unit 3 includes a shading correction unit 7, an automatic exposure unit 8, a region separation / filter processing unit 9, an electronic scaling processing unit 10, and an error diffusion unit 11.
[0033]
In the image processing unit 3, shading correction is performed on the image captured by the CCD 6 by the shading correction unit 7, and element variation of the CCD 6 is corrected. Subsequently, the image data that has undergone the shading correction is sent to the automatic exposure unit 8, where background removal and brightness correction are performed. Subsequently, the image data that has been subjected to the automatic exposure processing is sent to the region separation / filter processing unit 9 and subjected to filter processing according to an image such as a character or a photograph. Subsequently, the image data that has been subjected to the filter processing is sent to the electronic scaling processing unit 10, and enlargement / reduction scaling processing is performed.
[0034]
Subsequently, the image data after the electronic scaling process is sent to the error diffusion unit 11, binarized, and stored in the image memory 4. Further, the image data read from the image memory 4 is sent to an image forming unit (LSU unit or the like) 5 and printed out on paper.
Although not shown, the image processing apparatus 1 includes an operation panel unit for inputting operation content, a display unit for displaying the operation content, a control unit for controlling the entire image processing device, and the like. ing.
[0035]
Next, electronic scaling processing and input / output coordinate conversion processing will be described with reference to FIG. FIG. 2 is an explanatory diagram of the electronic scaling process and the input / output coordinate conversion process.
The electronic scaling process is a process for converting and outputting the number of input pixels. Here, the straight line shown in the upper part of FIG. 2 shows the input coordinate axis, and the straight line shown in the lower part of FIG. 2 shows the output coordinate axis. In the example shown in FIG. 2, enlargement is performed twice.
[0036]
In the electronic scaling process, the number of pixels on the input coordinate axis is converted and output on the output coordinates. The creation interval of the output pixels is determined by the scaling factor. That is, the larger the enlargement ratio, the denser the pixels are created and the number of pixels increases. On the other hand, the larger the reduction ratio, the sparsely created and the number of pixels decreases. For example, when enlargement is performed 8 times, 8 output pixels are created for 1 input pixel. Further, in the case of performing reduction by 1/8, one output pixel is created for eight input pixels.
The pixel density of the output pixel is created according to the density of the input pixels on both sides of the output pixel and the distance from the input pixels on both sides of the output pixel.
[0037]
Next, the electronic scaling processing unit will be described in more detail with reference to FIG. FIG. 3 is a block diagram illustrating a configuration of an output image density calculation unit included in the electronic scaling processing unit 10 illustrated in FIG. In the output image density calculation unit shown in FIG. 3, there is no output coordinate position storage memory that exists in the past, but this is because the output image density calculation unit is replaced with a circuit in this embodiment.
[0038]
As shown in FIG. 3, the output image density calculation unit 20 includes a scaling factor calculation unit 21, an input pixel capturing unit 22, a line detection unit 23, a magnification change position storage unit 24, a scaling factor storage unit 25, and an output coordinate calculation unit 26. , An output coordinate storage unit 27, an interpolation ratio calculation unit 28, an input pixel position storage unit 29, an input pixel density storage unit 30, an output pixel density calculation unit 31, and an output thinning creation unit 32.
[0039]
In the output image density calculation unit 20, the scaling factor input by the user using an input device such as a key is stored in the scaling factor storage unit 25. The variable magnification storage unit 25 stores all the variable magnifications used for one copy output. That is, when a partial copy is made at 50% and the remaining part is copied at 150%, the magnifications of 50% (magnification α) and 150% (magnification β) are stored.
[0040]
Similarly, the magnification change position input using the input device is stored in the magnification change position storage unit 24. The magnification change position storage unit 24 stores all of the magnification change positions used for one copy output. That is, when copying at 50% (position a) in part A and copying at 150% (position b) in part B, the boundary of part A and the boundary of part B are stored. The stored position information is a position on the coordinate axis with the horizontal synchronization signal as the origin.
[0041]
In addition, when automatically adjusting the scaling factor according to the region separation result, that is, when the photograph is reduced to a small size and the character is greatly changed, based on the region separation information obtained from the region separation / filter processing unit, A scaling factor calculation unit 21 calculates a scaling factor. In this case, the boundary between the photograph and the character is stored in the magnification change position storage unit 24.
[0042]
The line detection unit 23 detects a horizontal synchronization signal. When a horizontal synchronization signal is input to the line detection unit 23, a reset signal is input to the output coordinate calculation unit 26, and the output pixel coordinates are reset. The reset signal is also input to the input pixel position storage unit 29, and the input pixel coordinates are reset.
[0043]
The input pixel position storage unit 29 stores the position of the input pixel used for calculation of the current output pixel density from the horizontal synchronization signal. In addition, since the input pixels on both sides sandwiching the output pixel coordinates are necessary for calculating the output pixels, the input coordinates for two pixels are stored in the input pixel position storage unit 29.
[0044]
The output coordinate calculation unit 26 calculates the coordinates of the output pixel. In the output coordinate calculation unit 26, the scaling factor (α, β) stored in the scaling factor storage unit 25 with respect to the output coordinate (N−1) one pixel before stored in the output coordinate storage unit 27. Appropriate scaling factors are selected and added to create output coordinates (N).
[0045]
Here, the reciprocal of the magnification set by the user is input to the variable magnification. For example, if the input pixel interval is 8192 input coordinates and the user sets 50% (0.5 times), 8192 / 0.5 = 16384 is set as the scaling factor. If 200% (twice) is set, 8192/2 = 4096 is set. By setting the reciprocal in this way, if the reduction ratio is large, the output coordinate interval becomes long and the number of output pixels decreases. Conversely, if the enlargement ratio becomes large, the output pixel interval becomes short and the number of output pixels increases.
When the output coordinate (N) is calculated, the output coordinate storage unit replaces (N−1) with (N).
[0046]
When the output coordinates exceed the value stored in the magnification change position storage unit 24, the magnification used for creating the output coordinates is changed. Here, the contents stored in the magnification change position storage unit 24 can be arbitrarily changed. Further, as described above, the change of the magnification ratio may be performed by comparing the output coordinate positions or by comparing the input coordinate positions.
[0047]
The interpolated internal ratio calculation unit 28 calculates a relative position of the output pixel with respect to the input pixel, that is, a ratio at which the output pixel internally divides the input pixel, based on the input pixel position and the output pixel position. For example, if an output pixel is created at a point that internally divides two input pixels by 1: 3, the output pixel density calculation unit 31 creates an output pixel density corresponding to the internal division ratio.
[0048]
The input pixel is read from the enlargement line memory. A read control signal to the expansion line memory is generated by the input pixel capturing unit 22. What is read from the expansion line memory is the pixel density of the input pixel.
[0049]
The input pixel capturing unit 22 is a part that performs input pixel capturing control, and controls and outputs a read permission signal to the enlargement line memory. Since the input pixel capture timing varies depending on the magnification, the input pixel is captured at a timing depending on the magnification. That is, when the zoom ratio is 50%, two pixels are read for one output pixel. When the zoom ratio is 200%, one pixel is read for every two output pixels. The input pixel density storage unit 30 stores the density of the read pixel. The input pixel density storage unit 30 stores the density of input pixels for two pixels on both sides of the output pixel.
[0050]
The output pixel density calculation unit 31 calculates the density of the output pixel. That is, the output density is calculated using the following formula based on the input pixel density and the interpolation internal ratio.
When the interpolation internal ratio calculation unit 28 creates the interpolation internal ratio “a” and the interpolation internal ratio “a”,
Output pixel density = input pixel density A × interpolation internal ratio “A” + input pixel density B × interpolation internal ratio “A”
It becomes.
However, the interpolation internal ratio “a” and the interpolation internal ratio “a” satisfy the relationship of interpolation internal ratio “a” + interpolation internal ratio “a” = 1.
The calculation of the output pixel density is performed by the primary interpolation.
[0051]
The calculated output pixel density is written in the reduction line memory. When the reduction process is performed, the writing to the reduction line memory is thinned out. This thinning signal is generated by the output thinning creation unit 32. The output decimation creating unit 32 creates a decimation signal corresponding to the reduction rate and outputs it to the reduction line memory. That is, the current coordinate and the output pixel position output by the output coordinate calculation unit 26 are compared, and a write signal is output at a timing when output is necessary.
[0052]
Next, a processing procedure in the image processing apparatus according to the present invention will be described with reference to FIG. FIG. 4 is a flowchart showing a processing procedure in the image processing apparatus according to the present invention.
[0053]
When the processing is started in the image processing apparatus according to the present invention, as shown in FIG. 4, the magnification ratio changed by the user and the change position of the magnification ratio in the main scanning direction are set by key input (S1).
When the key input is completed, the process is in a standby state until the page signal indicates the start of the page area (S2). When the page becomes an effective area, the input of the horizontal synchronization signal (sync) is determined (S3).
[0054]
Here, when the horizontal synchronization signal (sync) is input, the input / output pixel position is reset to "0" (S4). On the other hand, when the horizontal synchronization signal (sync) is not input, the scaling factor is added to the output pixel position (N-1), and the output pixel position (N) is calculated (S5).
Subsequently, it is determined whether the output pixel position is equal to the change position of the scaling factor set by the user (S6). Here, when the output pixel position is equal to the change position, the magnification is changed (S7). By this change, it is possible to partially change the magnification even within the same page.
[0055]
Subsequently, the relative positional relationship between the calculated output pixel position and the input pixel position, that is, the internal division ratio of the output pixel to the input pixel is calculated (S8). Subsequently, the output pixel density calculation unit 31 calculates the output pixel density by linear interpolation based on the input pixel density and the internal division ratio (S9).
When the output pixel density is calculated, the presence / absence of a page signal is determined (S10). If the page signal has ended, the process ends. If the page signal is valid, the process after the horizontal sync signal detection process (S3) is repeated.
[0056]
Next, using FIG. 5 and FIG. 12, the storage contents of the output coordinate storage section in the image processing apparatus according to the present invention and the storage contents of the output coordinate storage section (output coordinate position storage memory) in the conventional image processing apparatus. Explain the difference. FIG. 5 is an explanatory diagram of the storage contents of the output coordinate storage unit in the image processing apparatus according to the present invention, and FIG. 12 is an explanatory diagram of the storage contents of the output coordinate storage unit (output coordinate position storage memory) in the conventional image processing apparatus. It is.
[0057]
First, the contents stored in the output pixel position storage unit (output coordinate position storage memory) in the conventional image processing apparatus will be described.
The upper part of FIG. 12 shows the relationship between the pixel and the output pixel position, and the lower part shows the contents stored in the output pixel position storage unit (output coordinate position storage memory).
[0058]
In the upper part of FIG. 12, the left end is the position of the horizontal synchronizing signal, that is, the origin of the output pixel position, and the central part is the changing point of the magnification. A conventional output pixel position storage unit (output coordinate position storage memory) stores all distances from the horizontal synchronization signal for each pixel. The calculation of the output pixel position is performed by a process of reading the position from the memory for each output pixel.
[0059]
Next, the contents stored in the output pixel position storage unit in the image processing apparatus of the present invention will be described.
The upper part of FIG. 5 shows the relationship between the pixel and the output pixel position, the lower left part shows the storage contents of the output pixel position storage unit, and the lower part center shows the storage contents of the magnification change position storage part. Yes, on the right side of the lower row, the contents stored in the scaling factor storage unit are shown.
[0060]
In the upper part of FIG. 5, the left end is the position of the horizontal synchronizing signal, that is, the origin of the output pixel position, and the central part is the change point of the scaling factor. The output pixel position storage unit in the image processing apparatus of the present invention stores a scaling factor, that is, the number to be added from the previous output pixel position. The calculation of the output pixel position is performed by a process of adding a scaling factor to the previous output pixel. The scaling factor storage unit stores a plurality of scaling factors so that the scaling factor can be changed during the same process, and replaces the values when an instruction to change the scaling factor is given. Further, the change point of the variable magnification is stored in the magnification change position storage unit.
[0061]
Next, the buffer coordinate area will be described with reference to FIG. FIG. 6 is an explanatory diagram of the buffer coordinate area.
If there is a sudden change in magnification during the same process, there may be a problem that the image is difficult to read near the boundary line. Therefore, in the image processing apparatus according to the present invention, a buffering area is provided in the vicinity of the boundary where the scaling ratio changes, and the scaling ratio is gradually changed within the buffering area.
[0062]
In FIG. 6, it is assumed that the line flows from the left side to the right side. As shown in FIG. 6, the scaling process is doubled at the initial stage of the line, but the case where the process is changed to the process of 8 times in the middle of the line is considered. In the example shown in FIG. 6, the magnification is not changed from 2 times to 8 times suddenly, but the magnification is changed step by step to 2 times, 3 times, 5 times, and 8 times. By performing such processing, it is possible to prevent a sudden image change from occurring at the boundary portion.
[0063]
Here, the width of the buffer area can be set arbitrarily, and the width of the area where the magnification can be changed can be changed. If this width is wide, a more gradual change in image quality can be obtained. As a means for slowly changing the scaling factor, for example, a method of taking a moving average of the scaling factor can be considered.
[0064]
Next, an output area adjustment method will be described. FIG. 7 is an explanatory diagram illustrating Example 1 of the output region adjustment method, and FIG. 8 is an explanatory diagram illustrating Example 2 of the output region adjustment method.
[0065]
First, a first embodiment of the output region adjustment method will be described.
In FIG. 7A, it is assumed that the image of the central portion (region B) is to be enlarged. Here, since the image is input from the left end (region A side), if the central portion is enlarged with the left portion being the same magnification, the image of region C will be protruded from the output image and lost.
[0066]
Therefore, as shown in FIG. 7B, the central portion is enlarged, and the other portions (regions A and C) are reduced so as not to cause image loss. Here, the user sets the magnification ratio of the area B and the area width of the area B by key setting. It is assumed that the magnification and magnification change positions of the remaining areas A and C are calculated by the magnification calculation unit 21 and the magnification change position storage unit 24 in FIG. The areas A and C and the magnification can be calculated from the magnification and area B and the output paper width.
[0067]
Next, a second embodiment of the output region adjustment method will be described.
As shown in FIG. 8A, it is assumed that there is a document in which photographs and characters are mixed. Here, even if the photo area is reduced, it is difficult to damage the entire image. Therefore, the photo portion is reduced and the character portion is enlarged (FIG. 8B). By performing such processing, it is possible to make the character portion easy to read without damaging the entire image. Here, the region separation processing of the photograph and character uses the region separation processing result of the region separation / filter processing unit 9 in FIG.
[0068]
【The invention's effect】
Since the image processing apparatus according to the present invention has the above-described configuration, the following effects can be obtained.
[0069]
That is, according to the image processing apparatus of the present invention, the output coordinate calculation means sequentially calculates the coordinates of the output image position, and the scaling factor can be changed at an arbitrary position. For this reason, by changing the magnification ratio partially, it is possible to adjust the visibility according to the importance of information even on the same document. For example, when processing a document in which characters and photos are mixed, it is possible to enlarge only the character portion for easy reading. In addition, by sequentially calculating the output image position, a large-scale storage device is not required.
[0070]
Further, according to the image processing apparatus of the present invention, the output coordinates of the Nth output pixel can be calculated by adding a constant to the output coordinates of the (N−1) th output pixel. For this reason, the coordinates memorized for calculating the output coordinates can be saved. That is, by calculating the Nth pixel from the (N-1) th pixel without storing all the output coordinates for one line, only the storage capacity of the coordinates of the N-1th pixel is required.
[0071]
Further, according to the image processing apparatus of the present invention, the output image density is calculated by the primary interpolation process using the input pixel density sandwiching the output pixel and the position of the output pixel with respect to the input pixel. Therefore, the output image density can be calculated only from the input pixel density and the output pixel position, and the circuit scale can be reduced.
[0072]
In addition, according to the image processing apparatus of the present invention, a plurality of constants to be added to the output coordinates are prepared, and any one of the plurality of constants can be selected and changed during the processing on the same line. Yes. For this reason, it is possible to execute partially independent scaling by changing the scaling ratio in the same line.
[0075]
Further, the image processing apparatus according to the present invention has a buffer coordinate area for gradually changing the constant to be added in the vicinity of the coordinate to change the constant to be added. The constant is changed. For this reason, it is possible to smoothly change the magnification without causing a sense of incongruity without causing a sudden change in the magnification.
[0076]
Further, according to the image processing apparatus of the present invention, the width of the buffer coordinate area can be arbitrarily changed. For this reason, even if there is a sudden change in magnification, the smoothness of the boundary point can be adjusted by increasing the width of the buffer region.
[0077]
Further, according to the image processing apparatus of the present invention, the constant is gradually changed in the buffer coordinate area based on the moving average of the constant. For this reason, the scaling factor can be changed smoothly with a simple configuration.
[0078]
Further, according to the image processing apparatus of the present invention, when the enlargement process is performed in a predetermined area in one line, the reduction process is performed in the remaining area. For this reason, even in a document area for which enlargement is not designated, the entire document area can be reduced and output.
[0079]
Further, according to the image processing apparatus of the present invention, when the reduction process is performed in a predetermined area in one line, the enlargement process is performed in the remaining area. For this reason, the reduction process can be performed on only a part without creating a blank part in the output.
[0080]
Further, according to the image processing apparatus of the present invention, using the region separation process, the reduction process is performed when the photograph area is determined, and the enlargement process is performed when the character portion is determined. Therefore, by reducing the photo area and enlarging the character area, easy-to-read character output can be performed without losing the entire image.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus according to the present invention.
FIG. 2 is an explanatory diagram of an electronic scaling process and an input / output coordinate conversion process.
FIG. 3 is a block diagram showing a configuration of an electronic scaling processing unit.
FIG. 4 is a flowchart showing a processing procedure in the image processing apparatus according to the present invention.
FIG. 5 is an explanatory diagram of contents stored in an output coordinate storage unit in the image processing apparatus according to the present invention.
FIG. 6 is an explanatory diagram of a buffer coordinate area.
FIG. 7 is an explanatory diagram illustrating Example 1 of an output region adjustment method.
FIG. 8 is an explanatory diagram illustrating Example 2 of an output region adjustment method.
FIG. 9 is a block diagram showing a schematic configuration of a conventional electronic scaling unit.
FIG. 10 is a block diagram showing a configuration of an output image density calculation unit constituting a conventional electronic scaling processing unit.
FIG. 11 is an explanatory diagram of a calculation method of output pixel density.
FIG. 12 is an explanatory diagram of storage contents of an output coordinate position storage memory in a conventional image processing apparatus.
[Explanation of symbols]
1 Image processing device
2 Image capture unit
3 Image processing section
4 Image memory
5 Image forming section
6 CCD
7 Shading correction part
8 Automatic exposure section
9 Region separation / filter processing section
10 Electronic magnification processing section
11 Error diffusion section
20 Output image density calculator
21 Variable magnification calculator
22 Input pixel capture unit
23 Line detector
24 Magnification change position storage unit
25 Variable magnification memory
26 Output coordinate calculator
27 Output coordinate storage unit
28 Interpolation internal ratio calculation part
29 Input pixel position storage unit
30 Input pixel density storage
31 Output pixel density calculator
32 Output decimation generator
50 Electronic scaling unit
51 Line memory for expansion
52 Output image density calculator
53 Output coordinate position memory
54 Line memory for reduction
53 Output coordinate position memory
60 CPU
61 Line detector
62 Input pixel position storage unit
63 Input pixel density storage unit
64 Output pixel density calculator
65 Output thinning creation section
66 Input pixel capture unit

Claims (8)

画像データを主走査方向に電子変倍するための電子変倍手段を備えた画像処理装置において、
出力画像位置の座標を逐次計算するための出力座標算出手段と、
出力画像濃度を逐次算出するための出力画像濃度算出手段と、
を備え、
該出力座標算出手段は、任意の位置における拡大又は縮小する画像領域のユーザにより入力される入力情報又は自動的に該画像領域の画像特性により算出される情報を考慮して、前記画像領域の大きさと出力用紙幅とから拡大又は縮小のための変倍率を算出しておき、出力座標を逐次算出する際に、前記算出した変倍率に変更させて、1頁の入力座標全てが出力画像1頁に収まるようにしたことを特徴とする画像処理装置。
In an image processing apparatus provided with an electronic scaling unit for electronic scaling of image data in the main scanning direction,
Output coordinate calculation means for sequentially calculating the coordinates of the output image position;
Output image density calculating means for sequentially calculating output image density;
With
The output coordinate calculation means considers input information input by a user of an image area to be enlarged or reduced at an arbitrary position or information automatically calculated based on image characteristics of the image area, and determines the size of the image area. A scaling factor for enlargement or reduction is calculated from the output width and the output paper width, and when the output coordinates are calculated sequentially, the calculated scaling factor is changed so that all the input coordinates of one page are one page of the output image. An image processing apparatus characterized in that it fits in
前記出力座標算出手段は、N−1画素目の出力画素の出力座標に定数を加算することによりN画素目の出力画素の出力座標を算出することを特徴とする請求項1記載の画像処理装置。2. The image processing according to claim 1 , wherein the output coordinate calculation unit calculates the output coordinates of the output pixel of the Nth pixel by adding a constant to the output coordinates of the output pixel of the (N−1) th pixel. apparatus. 前記出力画像濃度算出手段は、出力画素を挟む二つの入力画素濃度と、該二つの入力画素に対する前記出力画素の位置とを用いた一次補間処理により出力画像濃度を算出することを特徴とする請求項1記載の画像処理装置。The output image density calculating means calculates an output image density by linear interpolation processing using two input pixel densities sandwiching an output pixel and a position of the output pixel with respect to the two input pixels. Item 8. The image processing apparatus according to Item 1. 前記出力座標算出手段は、出力座標に加算する定数を複数用意し、同一ラインにおける処理の途中で、前記複数の定数のうちの任意の一つを選択して変更可能としたことを特徴とする請求項2に記載の画像処理装置。  The output coordinate calculation means prepares a plurality of constants to be added to the output coordinates, and can select and change any one of the plurality of constants during the processing in the same line. The image processing apparatus according to claim 2. 前記出力座標算出手段は、加算する定数を変更する座標付近において、前記加算する定数を徐々に変更するための緩衝用座標領域を有し、該緩衝用座標領域内で緩やかに前記定数が変化するようにしたことを特徴とする請求項2に記載の画像処理装置。 The output coordinate calculation means has a buffer coordinate area for gradually changing the constant to be added in the vicinity of the coordinate to change the constant to be added, and the constant gradually changes in the buffer coordinate area. The image processing apparatus according to claim 2, which is configured as described above. 前記出力座標算出手段は、前記緩衝用座標領域の幅を任意に変更可能としたことを特徴とする請求項5に記載の画像処理装置。The image processing apparatus according to claim 5, wherein the output coordinate calculation unit can arbitrarily change a width of the buffer coordinate area . 前記出力座標算出手段は、前記定数の移動平均に基づいて前記緩衝用座標領域内で緩やかに前記定数を変化させることを特徴とする請求項5に記載の画像処理装置。The image processing apparatus according to claim 5, wherein the output coordinate calculation unit gently changes the constant in the buffer coordinate area based on a moving average of the constant . 領域分離処理を用いて、写真領域を判定した場合には縮小処理を行い、文字部分を判定した場合には拡大処理を行うことを特徴とする請求項1に記載の画像処理装置。The image processing apparatus according to claim 1, wherein a reduction process is performed when a photograph area is determined using an area separation process, and an enlargement process is performed when a character portion is determined .
JP2001334805A 2001-10-31 2001-10-31 Image processing device Expired - Fee Related JP3904892B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001334805A JP3904892B2 (en) 2001-10-31 2001-10-31 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001334805A JP3904892B2 (en) 2001-10-31 2001-10-31 Image processing device

Publications (2)

Publication Number Publication Date
JP2003143398A JP2003143398A (en) 2003-05-16
JP3904892B2 true JP3904892B2 (en) 2007-04-11

Family

ID=19149883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001334805A Expired - Fee Related JP3904892B2 (en) 2001-10-31 2001-10-31 Image processing device

Country Status (1)

Country Link
JP (1) JP3904892B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4670403B2 (en) * 2005-03-08 2011-04-13 セイコーエプソン株式会社 Image processing apparatus, image processing method, display controller, and electronic apparatus
JP4813953B2 (en) * 2006-04-14 2011-11-09 株式会社リコー Image forming apparatus

Also Published As

Publication number Publication date
JP2003143398A (en) 2003-05-16

Similar Documents

Publication Publication Date Title
US8009337B2 (en) Image display apparatus, method, and program
JPH07220061A (en) Picture interpolation device
JPH01141460A (en) Image processing unit
JP2010098662A (en) Imaging device and control method of imaging device
JP3904892B2 (en) Image processing device
JP2000232589A (en) Image reader
JP2005130379A (en) Method for variably magnifying image and photographic printer for executing same
JPS63187769A (en) Image reader
JP3698196B2 (en) Image processing apparatus and image input apparatus
JP2537192B2 (en) Image playback device
JP3877054B2 (en) Image reduction scaling device
EP1241864A1 (en) Image processing device and image reading apparatus using the image processing device
JPH10294859A (en) Image processing unit, image processing method, image reader, copying machine and recording medium
JP2960732B2 (en) Image forming device
JP2005020521A (en) Imaging apparatus and cellular phone equipped with the same imaging apparatus
JP3788566B2 (en) Density converter
JPH0622128A (en) Picture processing unit
JP2002290716A (en) Image processing device
JP2000196868A (en) Image processor
JP2005033385A (en) Digital copying machine
JPH06311341A (en) Picture input device
JP2001036726A (en) Image processing method and system and recording medium storing image processing program
JP2000332966A (en) Scanning device and method for displaying preview image
JPH05191636A (en) Picture processor
JPH0771182B2 (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060410

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070109

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070110

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120119

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130119

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees