JP2004336165A - Image processor - Google Patents
Image processor Download PDFInfo
- Publication number
- JP2004336165A JP2004336165A JP2003125703A JP2003125703A JP2004336165A JP 2004336165 A JP2004336165 A JP 2004336165A JP 2003125703 A JP2003125703 A JP 2003125703A JP 2003125703 A JP2003125703 A JP 2003125703A JP 2004336165 A JP2004336165 A JP 2004336165A
- Authority
- JP
- Japan
- Prior art keywords
- pixels
- unit
- pixel
- image processing
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000011159 matrix material Substances 0.000 claims description 5
- 230000006866 deterioration Effects 0.000 abstract description 9
- 238000000034 method Methods 0.000 description 18
- 238000006243 chemical reaction Methods 0.000 description 16
- 238000011946 reduction process Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 10
- 230000002093 peripheral effect Effects 0.000 description 6
- 230000012447 hatching Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling 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)
- Record Information Processing For Printing (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、複数の画素がマトリクス状に配列された画像から、受け付けた変倍率に基づく位置で、画素を間引き又は補間して、前記画像を縮小又は拡大する画像処理装置に関するものである。
【0002】
【従来の技術】
画像処理装置は、一般に、複数画素を主走査方向及び副走査方向に配置することにより構成される画像に対して、適宜の画素を間引くことにより縮小処理を行ない、また、隣合う画素間に適宜補間画素を挿入することにより拡大処理を行なっている。
しかし、特に、ディザ処理等を行なうことにより白黒の交番で中間調を形成する擬似中間調の画像に、上述したような縮小処理又は拡大処理を行った場合、ディザのパターンが崩れ、モアレと呼ばれる白筋又は黒筋が発生し、画質が劣化することがある。
【0003】
そこで、例えば、画像を縮小する場合に、主走査方向又は副走査方向に複数の画素を配列してなる夫々のライン毎に、間引くべき画素の位置を変更し、又は、間引くべき画素をランダムに決定することにより、主走査方向又は副走査方向に連続した画素が間引かれないようにして、画質の劣化を防止する画像処理装置が提案されている。
このような画像処理装置を用いることにより、連続的な白画素又は黒画素の欠落のみならず、白画素又は黒画素の連結による白筋又は黒筋の発生も防止することができる。
尚、間引かれる画素の位置をランダムに決定する画像処理装置には、特許文献1に示すものがある。
【0004】
【特許文献1】
特開2001−285626号公報
【0005】
【発明が解決しようとする課題】
しかし、上述した特許文献1に示すような画像処理装置は、間引く又は補間する画素の位置をランダムに決定するために乱数を発生させる手段を備えており、発生した乱数に基づき、間引く又は補間する画素の位置を決定するように構成されているため、回路構成が煩雑になるという問題がある。
【0006】
本発明はかかる事情に鑑みてなされたものであり、直線状に配列された複数の画素を1単位として、前記複数の画素の配列方向に垂直な方向に隣合う夫々の単位における間引く又は補間する画素の位置を、前記垂直な方向に連続させないように特定することにより、白筋及び黒筋の発生を防止し、画質の劣化を低減した縮小処理又は拡大処理を行なえるとともに、間引く又は補間する画素の位置をランダムに決定する構成と比較して、回路設計を簡略化することができる画像処理装置を提供することを目的とする。
【0007】
本発明の他の目的は、直線状に配列された複数の画素の配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置、及び該位置の近傍の位置のうちの1つの位置で、画素を間引く又は補間することにより、前記垂直な方向に複数の単位分の間隔を隔てて発生するおそれのある白又は黒の縦筋を防止することができる画像処理装置を提供することにある。
【0008】
本発明の更に他の目的は、受け付けた変倍率に基づき、夫々の単位における間引く又は補間する画素の位置をずらす間隔を設定することにより、変倍率が示す縮小率又は拡大率に応じて、間引く又は補間する画素の位置を適宜設定することができ、画質の劣化を低減した縮小処理又は拡大処理を実現することができる画像処理装置を提供することにある。
【0009】
【課題を解決するための手段】
第1発明に係る画像処理装置は、複数の画素がマトリクス状に配列された画像から、受け付けた変倍率に基づいて、直線状に配列された複数の画素を1単位として各単位毎に1の画素を間引き又は補間して、前記画像を縮小又は拡大する画像処理装置において、前記単位に含まれる複数の画素が配列された配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定する特定手段と、該特定手段が特定した位置で、画素を間引く又は補間する変倍手段とを備えることを特徴とする。
【0010】
第1発明による場合は、直線状に配列された複数の画素を1単位として、前記複数の画素の配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定し、特定した位置で、画素を間引く又は補間して、画像を縮小又は拡大することにより、各単位における間引く又は補間する画素が、前記配列方向に垂直な方向に連続せず、白又は黒の縦筋の発生を防止し、画質の劣化を低減した縮小処理又は拡大処理を行なうことができる。
また、間引く又は補間する画素の位置を、前記配列方向に所定の画素数分の間隔をずらして特定することにより、間引く又は補間する画素の位置をランダムに決定する構成と比較して、回路設計を簡略化することができる。
【0011】
第2発明に係る画像処理装置は、複数の画素がマトリクス状に配列された画像から、受け付けた変倍率に基づいて、直線状に配列された複数の画素を1単位として各単位毎に1の画素を間引き又は補間して、前記画像を縮小又は拡大する画像処理装置において、前記単位に含まれる複数の画素が配列された配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定する特定手段と、該特定手段が特定した位置、及び該位置の画素と前記配列方向に近傍の画素の位置から、間引く又は補間する画素の位置を選択する選択手段と、該選択手段が選択した位置で、画素を間引く又は補間する変倍手段とを備えることを特徴とする。
【0012】
第2発明による場合は、直線状に配列された複数の画素の配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定し、特定した位置、及び該位置の近傍の位置のうちの1つの位置で、画素を間引く又は補間することにより、各単位における間引く又は補間する画素が、前記垂直な方向に連続することを回避するとともに、前記垂直な方向に複数の単位分の間隔を隔てて位置する、間引く又は補間する画素を、前記配列方向に適宜ずらすことができ、前記複数の単位分の間隔を隔てて発生するおそれのある白又は黒の縦筋を防止することができる。
【0013】
第3発明に係る画像処理装置は、前記変倍率に基づき前記所定の画素数を設定する設定手段を備え、前記特定手段は、前記設定手段が設定した画素数分の間隔を隔てて画素の位置を特定するように構成してあることを特徴とする。
【0014】
第3発明による場合は、受け付けた変倍率に基づき、夫々の単位における間引く又は補間する画素の位置をずらす間隔を示す所定の画素数を設定することにより、変倍率が示す縮小率又は拡大率に応じて、間引く又は補間する画素の位置を適宜設定することができ、画質の劣化を低減した縮小処理又は拡大処理を実現することができる。
【0015】
【発明の実施の形態】
以下に、本発明に係る画像処理装置を、複合機による実施の形態を示す図面に基づいて詳述する。
【0016】
(実施の形態1)
図1は本発明に係る複合機の構成例を示すブロック図であり、図中1は複合機を示している。
この複合機1は、制御部10、ROM11、RAM12、NCU(Network Control Unit)13、モデム14、読取部15、表示部16、操作部17、CODEC18、符号メモリ19、画像メモリ20、記録部21、画像処理部22等を備えており、夫々はバス23を介して相互に接続されている。
【0017】
制御部10は、具体的にはCPU(Central Processing Unit)又はMPU(Micro Processor Unit)等で構成されており、バス23を介して上述したようなハードウェア各部を制御すると共に、ROM11に格納されたコンピュータプログラムに従って、種々のソフトウェア的機能を実現する。
ROM11は、本発明の複合機1の動作に必要な種々のコンピュータプログラム等を予め格納している。
【0018】
RAM12は、SRAM又はフラッシュメモリ等で構成され、制御部10によるコンピュータプログラムの実行時に発生するデータ、及び取得した変倍率を一時的に記憶する。尚、RAM12にフラッシュメモリを使用した場合には、停電,複合機1の移動等のために電源が遮断された場合であっても、記憶内容が失われることはない。
モデム14は、ファクシミリ通信が可能なファックスモデムで構成されており、NCU13と直接的にも接続されている。NCU13は、公衆電話回線網Lと接続されており、必要に応じてモデム14を公衆電話回線網Lと接続し、公衆電話回線網Lを介して他のファクシミリ装置との間でのファクシミリ通信を可能としている。
【0019】
表示部16は、液晶ディスプレイ(LCD)等で構成されており、複合機1の動作状況、ユーザへ報知すべきデータ、及び操作部17から入力された文字等を表示する。
操作部17は、複合機1を操作するために必要な各種のファンクションキー、ユーザが変倍率を入力するためのキー等を備えている。尚、表示部16をタッチパネル方式のものとすることにより、操作部17の各種のキーのうちの一部又は全部を代用することも可能である。
【0020】
読取部15は、例えば、CCD(Charge Coupled Device)を利用したスキャナにより原稿を読み取り、読み取った画像データをCODEC18に入力する。
CODEC18は、読取部15により読み取られた画像データを符号化し、符号メモリ19に記憶させる。
【0021】
符号メモリ19は、DRAM等で構成され、読取部15により読み取り、CODEC18により符号化された画像データ、NCU13及びモデム14を介して他のファクシミリ装置から取得した画像データを記憶する。
尚、本実施の形態において、取得する画像データは、各画素を2値データにより特定された擬似中間調の画像データである。また変倍率は、ユーザにより指定されるだけでなく、ユーザにより指定された記録紙等のサイズに基づき算出することもできる。
【0022】
また、CODEC18は、符号メモリ19に記憶してある符号化された画像データを復号するように構成されており、符号メモリ19から読み出した画像データを復号し、制御部10の指示に従って、画像処理部22又は記録部21に入力する。
ここで、制御部10は、ユーザによる変倍率の設定、又はユーザによる記録紙のサイズの設定等に基づき、記録紙等に印刷すべき画像に縮小処理を行なうか、又は拡大処理を行なうかを判断しており、判断した結果に基づき、縮小処理の実行又は拡大処理の実行を指示する指示信号をCODEC18及び画像処理部22に入力している。
【0023】
従って、CODEC18は、制御部10から入力される指示信号が縮小処理又は拡大処理の実行を指示する場合、即ち、設定された変倍率が100%でない場合、復号した画像データを画像処理部22に入力する。また、CODEC18は、制御部10から入力される指示信号が縮小処理及び拡大処理を行なわないことを指示する場合、即ち、設定された変倍率が100%である場合、復号した画像データを記録部21に入力する。
画像処理部22は、後述するような構成をなしており、CODEC18により復号された画像データから、RAM12に記憶してある変倍率に基づく位置にて、画像データを構成する画素データ(画素が有する画素値)を適宜間引き又は補間し、得られた画像データを一旦画像メモリ20に記憶する。
【0024】
画像メモリ20は、DRAM等で構成され、画像処理部22から取得した画像データを記憶しており、制御部10からの制御に基づき、記憶してある画像データを記録部21に入力する。
記録部21は、電子写真方式のプリンタ装置であって、CODEC18から取得した画像データ又は画像メモリ20から取得した画像データに基づく画像を、ハードコピーとしてA3縦,B4縦,A4縦,B5横及びA5横等の各サイズの記録紙又はOHP(Over Head Projector)シートから最適なサイズのものを選択して記録する。
【0025】
図2は実施の形態1に係る画像処理部22の構成例を示すブロック図であり、画像処理部22は、第1レジスタ30、第2レジスタ31、加算器32、解像度変換部33等を備えている。
上述した構成の複合機1においては、制御部10が、RAM12に記憶してある変倍率に基づき、1の画素を間引く又は補間すべき1単位に含まれる画素数を算出しており、算出した画素数を画像処理部22に入力し、画像処理部22は、取得した画素数を第1レジスタ30に記憶させる。
【0026】
具体的に、例えば、縮小率が99%の縮小処理を行なう場合に、制御部10は、100画素中から1画素を間引くべく、前記1単位に含まれる画素数として100を算出し、第1レジスタ30には100が格納される。
同様に、拡大率が101%の拡大処理を行なう場合には、制御部10は、100画素毎に1画素を補間すべく、前記1単位に含まれる画素数として100を算出し、第1レジスタ30に100が格納される。
【0027】
また、制御部10は、取得した変倍率に基づき所定の画素数を設定する設定手段として動作しており、設定した画素数は、画像処理部22の第2レジスタ31に格納される。
画像処理部22は、主走査方向に複数の画素を配列してなる各ラインについて、副走査方向に隣合う各ラインにおける間引く又は補間すべき画素の位置を、第2レジスタ31に格納された画素数分の間隔をずらして特定する特定手段として動作する。
尚、この所定の画素数は、予め設定してROM11に記憶しておいてもよい。
【0028】
加算器32は、第1レジスタ30及び第2レジスタ31に格納してある数値を取得して適宜加算処理を行なうことにより、各単位毎に間引き又は補間すべき画素の位置を算出して解像度変換部33に入力しており、画像処理部22は、加算器32が算出した位置に基づき、間引き又は補間すべき画素を特定する。
【0029】
また、画像処理部22は、制御部10より縮小処理の実行又は拡大処理の実行を指示する指示信号、及びCODEC18より復号された画像データを夫々取得しており、取得した指示信号及び画像データを解像度変換部33に入力する。
解像度変換部33は、制御部10から入力される指示信号に従って、CODEC18から入力される画像データの、加算器32が算出した加算値に基づく位置で、画素を間引く又は補間する変倍手段として動作しており、適宜の画素データを間引く又は補間した画像データを画像メモリ20へ記憶させる。
【0030】
図3は実施の形態1に係る画像処理部22による解像度変換処理を説明するための図であり、図3においては、変倍率が99%の縮小処理について示している。尚、図3(a)は第1レジスタ30に100を、第2レジスタ31に25を格納する画像処理部22による例を、図3(b)は第1レジスタ30に100を、第2レジスタ31に1を格納する画像処理部22による例を夫々示している。
また、図3においては、Xで示す方向を主走査方向とし、Yで示す方向を副走査方向としてあり、画像データに基づく画像の一部を夫々図示している。尚、図中の格子は夫々画像を構成する画素を示している。
【0031】
上述した構成の画像処理部22は、第1レジスタ30に100を、第2レジスタ31に25を格納する場合、図3(a)中のハッチングで示すように、加算器32による加算値に基づき、主走査方向Xに配列された100画素毎に1画素を、また、副走査方向Yに隣合う各ラインにおいては、主走査方向Xに25画素分の間隔をずらして、間引き対象となる画素の位置を特定する。
同様に、第1レジスタ30に100を、第2レジスタ31に1を格納する場合、画像処理部22は、図3(b)に示すように、加算器32による加算値に基づき、主走査方向Xに配列された100画素毎に1画素を、また、副走査方向Yに隣合う各ラインにおいては、主走査方向Xに1画素分の間隔をずらして、間引き対象となる画素の位置を特定する。
【0032】
制御部10から縮小処理の実行を示す指示信号を取得した解像度変換部33は、上述のように特定された位置の画素を順次間引き、画像メモリ20に記憶させる。
このように、主走査方向Xに複数の画素を配列してなる各ラインにおいて、副走査方向Yに隣合うラインにおける間引き画素の位置を、副走査方向Yに連続しないように特定することにより、副走査方向Yに発生する白又は黒の縦筋を防止することができる。
【0033】
尚、制御部10からの指示信号が拡大処理の実行を示している場合、解像度変換部33は、図3にハッチングで示す位置、即ち、加算器32が算出した加算値が示す位置の画素の主走査方向Xに前方又は後方に、補間画素を挿入することにより、拡大処理を実行することができる。
【0034】
(実施の形態2)
以下に、実施の形態2における画像処理部22の構成について説明する。尚、本実施の形態における複合機1の全体構成については、上述した実施の形態1と同様であるため、説明を省略する。また、画像処理部22についても、同様の構成については、同様の符号を付して説明を省略する。
【0035】
図4は実施の形態2に係る画像処理部22の構成例を示すブロック図であり、本実施の形態における画像処理部22は、乱数発生回路34を更に備えている。
本実施の形態に係る画像処理部22は、上述した実施の形態1における画像処理部22と同様に、解像度変換部33は、制御部10から縮小処理又は拡大処理を指示する指示信号を、CODEC18より復号された画像データを、加算器32より算出された加算値を取得しており、更に、乱数発生回路34より発生された乱数も取得している。
【0036】
本実施の形態における乱数発生回路34は、例えば、1,2,3の3つの数値をランダムに発生するものであり、解像度変換部33は、CODEC18から入力される画像データについて、加算器32から入力される位置と、該位置に主走査方向Xに隣合う2つの位置とから、乱数発生回路34から入力される数値に応じた1つの位置を選択する選択手段として動作しており、選択した位置で、制御部10から入力される指示信号に従って、画素を間引く又は補間して画像メモリ20へ記憶させる。
尚、この乱数発生回路34は、3つの数値から1つを選択するものであるため、複雑な回路構成は必要としない。
【0037】
図5は実施の形態2に係る画像処理部22による解像度変換処理を説明するための図であり、図3と同様に、変倍率が99%の縮小処理について示している。また、図5(a)は第1レジスタ30に100を、第2レジスタ31に25を格納する画像処理部22による例を、図5(b)は第1レジスタ30に100を、第2レジスタ31に1を格納する画像処理部22による例を夫々示している。
図5においても、Xで示す方向を主走査方向とし、Yで示す方向を副走査方向としてあり、図中の格子は夫々画像を構成する画素を示している。
【0038】
上述した構成の画像処理部22は、第1レジスタ30に100を、第2レジスタ31に25を格納する場合、主走査方向Xに配列される各画素において、100画素毎に1画素を特定し、また、この1画素と、該1画素に主走査方向Xに隣合う2つの画素との、図5(a)中のハッチングで示す主走査方向Xに隣合う3画素のうちの1画素を、乱数発生回路34から入力された数値に基づき選択し、間引く又は補間する画素の位置を特定する。
また、副走査方向Yに隣合う各ラインにおいては、主走査方向Xに22画素分の間隔から26画素分までの間隔をずらして、間引く又は補間する画素の位置を特定する。
【0039】
同様に、第1レジスタ30に100を、第2レジスタ31に1を格納する場合、主走査方向Xに配列される各画素において、100画素毎に1画素を特定し、また、この1画素と、該1画素に主走査方向Xに隣合う2つの画素との、図5(b)中のハッチングで示す主走査方向Xに隣合う3画素のうちの1画素を、乱数発生回路34から入力された数値に基づき選択し、間引く又は補間する画素の位置として特定する。
【0040】
また、制御部10から縮小処理の実行を示す指示信号を取得した解像度変換部33は、上述のように特定された位置の画素を順次間引き、画像メモリ20に記憶させる。
このように、主走査方向Xに複数の画素を配列してなる各ラインにおいて、副走査方向Yに隣合うラインにおける間引き画素の位置を、主走査方向Xにずらして特定し、特定した位置の近傍から1つの位置を選択し、選択した位置で画素を間引くことにより、間引き画素の位置が斜め方向に連続することを防止するとともに、所定の領域内で間引き画素の位置を柔軟に変更することができる。
【0041】
尚、制御部10からの指示信号が拡大処理の実行を示している場合、解像度変換部33は、上述のように、加算器32が算出した加算値に基づき特定された位置の画素の主走査方向Xに前方又は後方に、補間画素を挿入することにより、拡大処理を実行することができる。
【0042】
上述した各実施の形態では、画像における主走査方向Xの解像度変換処理について説明しているが、副走査方向Yの解像度変換処理についても適用が可能である。また、副走査方向Yに隣合う各ラインについて、主走査方向Xに25画素分又は1画素分の間隔をずらして、間引く又は補間する画素の位置を特定しているが、これらの数値に限られない。
【0043】
【発明の効果】
第1発明による場合は、直線状に配列された複数の画素を1単位として、前記複数の画素の配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定し、特定した位置で、画素を間引く又は補間することにより、各単位における間引く又は補間する画素が、前記配列方向に垂直な方向に連続せず、白又は黒の縦筋の発生を防止することによる画質の劣化を低減した縮小処理又は拡大処理を行なうことができる。
また、夫々の単位において、間引く又は補間する画素の位置を所定の画素数分の間隔をずらして特定することにより、間引く又は補間する画素の位置をランダムに決定する構成と比較して、回路設計を簡略化することができる。
【0044】
第2発明による場合は、直線状に配列された複数の画素の配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定し、特定した位置、及び該位置の近傍の位置のうちの1つの位置で、画素を間引く又は補間することにより、各単位における間引く又は補間する画素が、前記垂直な方向に連続することを回避するとともに、前記垂直な方向に複数の単位分の間隔を隔てて位置する、間引く又は補間する画素を、前記配列方向に適宜ずらすことができ、前記複数の単位分の間隔を隔てて発生するおそれのある白又は黒の縦筋を防止し、画質の劣化を低減した縮小処理又は拡大処理を実現することができる。
【0045】
第3発明による場合は、受け付けた変倍率に基づき、夫々の単位における間引く又は補間する画素の位置をずらす間隔を示す所定の画素数を設定することにより、変倍率が示す縮小率又は拡大率に応じて、間引く又は補間する画素の位置を適宜設定することができ、画質の劣化を低減した縮小処理又は拡大処理を実現することができる。
【図面の簡単な説明】
【図1】本発明に係る複合機の構成例を示すブロック図である。
【図2】実施の形態1に係る画像処理部の構成例を示すブロック図である。
【図3】実施の形態1に係る画像処理部による解像度変換処理を説明するための図である。
【図4】実施の形態2に係る画像処理部の構成例を示すブロック図である。
【図5】実施の形態2に係る画像処理部による解像度変換処理を説明するための図である。
【符号の説明】
1 複合機
10 制御部(設定手段)
22 画像処理部(特定手段)
33 解像度変換部(変倍手段、選択手段)[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus that reduces or enlarges an image by thinning or interpolating pixels at a position based on a received scaling factor from an image in which a plurality of pixels are arranged in a matrix.
[0002]
[Prior art]
Generally, an image processing apparatus performs a reduction process by thinning out appropriate pixels on an image configured by arranging a plurality of pixels in a main scanning direction and a sub-scanning direction, and also appropriately performs image processing between adjacent pixels. The enlargement process is performed by inserting an interpolation pixel.
However, in particular, when the above-described reduction processing or enlargement processing is performed on a pseudo halftone image that forms a halftone with black and white alternation by performing dither processing or the like, the dither pattern is broken, and this is called moiré. White streaks or black streaks may occur and image quality may be degraded.
[0003]
Therefore, for example, when reducing an image, the position of the pixel to be thinned out is changed for each line in which a plurality of pixels are arranged in the main scanning direction or the sub-scanning direction, or the pixel to be thinned out is randomly selected. An image processing apparatus has been proposed in which the determination is made so that pixels continuous in the main scanning direction or the sub-scanning direction are not thinned out, thereby preventing deterioration in image quality.
By using such an image processing apparatus, it is possible to prevent not only continuous loss of white pixels or black pixels but also generation of white streaks or black streaks due to the connection of white pixels or black pixels.
An image processing apparatus that randomly determines the positions of pixels to be decimated is disclosed in Japanese Patent Application Laid-Open Publication No. H11-157421.
[0004]
[Patent Document 1]
JP 2001-285626 A
[Problems to be solved by the invention]
However, the image processing apparatus as disclosed in
[0006]
The present invention has been made in view of such circumstances, and performs thinning or interpolation in each unit adjacent to a plurality of pixels arranged in a straight line in a direction perpendicular to the arrangement direction of the plurality of pixels as one unit. By specifying the positions of the pixels so as not to be continuous in the vertical direction, the generation of white streaks and black streaks is prevented, and a reduction process or an enlargement process with reduced image quality deterioration can be performed, and thinning or interpolation is performed. An object of the present invention is to provide an image processing apparatus capable of simplifying circuit design as compared with a configuration in which pixel positions are determined at random.
[0007]
Another object of the present invention is to provide, for each unit adjacent in the direction perpendicular to the arrangement direction of a plurality of pixels arranged in a straight line, the positions of pixels at intervals of a predetermined number of pixels in the arrangement direction, And by thinning out or interpolating pixels at one of the positions near the position, a white or black vertical streak that may occur at intervals of a plurality of units in the vertical direction is obtained. It is an object of the present invention to provide an image processing apparatus capable of preventing the image processing.
[0008]
Still another object of the present invention is to set an interval for shifting the position of a pixel to be thinned out or interpolated in each unit based on the received scaling factor, thereby performing thinning in accordance with a reduction ratio or an enlargement ratio indicated by the scaling factor. Another object of the present invention is to provide an image processing apparatus capable of appropriately setting the position of a pixel to be interpolated and realizing a reduction process or an enlargement process with reduced image quality deterioration.
[0009]
[Means for Solving the Problems]
The image processing apparatus according to the first invention is configured such that, from an image in which a plurality of pixels are arranged in a matrix, a plurality of pixels arranged in a straight line are defined as one unit based on the received scaling factor, and one unit is used for each unit. In an image processing apparatus that thins or interpolates pixels and reduces or enlarges the image, for each unit adjacent in a direction perpendicular to the arrangement direction in which a plurality of pixels included in the unit are arranged, in the arrangement direction, It is characterized by comprising a specifying means for specifying the position of a pixel at intervals of a predetermined number of pixels, and a scaling means for thinning out or interpolating pixels at the position specified by the specifying means.
[0010]
In the case of the first invention, a plurality of pixels arranged linearly are defined as one unit, and each unit adjacent in a direction perpendicular to the arrangement direction of the plurality of pixels is a predetermined number of pixels in the arrangement direction. Identify the position of the pixel at intervals, at the specified position, thin out or interpolate the pixel, reduce or enlarge the image, the pixel to be thinned or interpolated in each unit, the direction perpendicular to the array direction , The generation of a vertical streak of black or white can be prevented, and a reduction process or an enlargement process with reduced image quality deterioration can be performed.
Further, the circuit design is performed by specifying the positions of the pixels to be thinned or interpolated by shifting the intervals of a predetermined number of pixels in the array direction, thereby comparing the positions of the pixels to be thinned or interpolated randomly. Can be simplified.
[0011]
An image processing apparatus according to a second aspect of the present invention is configured such that, based on a received scaling factor, a plurality of pixels arranged in a straight line form one unit from an image in which a plurality of pixels are arranged in a matrix. In an image processing apparatus that thins or interpolates pixels and reduces or enlarges the image, for each unit adjacent in a direction perpendicular to the arrangement direction in which a plurality of pixels included in the unit are arranged, in the arrangement direction, Specifying means for specifying the position of a pixel at intervals of a predetermined number of pixels; and a pixel to be thinned or interpolated from the position specified by the specifying means, and the position of the pixel at the position and the position of a pixel nearby in the arrangement direction. And a scaling unit for thinning out or interpolating pixels at the position selected by the selection unit.
[0012]
In the case of the second invention, for each unit adjacent in the direction perpendicular to the arrangement direction of the plurality of pixels arranged linearly, the position of the pixel is specified at intervals of a predetermined number of pixels in the arrangement direction. Then, by thinning out or interpolating pixels at the specified position and one of the positions near the position, it is possible to prevent the pixels to be thinned out or interpolated in each unit from continuing in the vertical direction. In addition, the pixels to be thinned or interpolated, which are positioned at intervals of a plurality of units in the vertical direction, can be appropriately shifted in the arrangement direction, and may be generated at intervals of the plurality of units. A white or black vertical streak can be prevented.
[0013]
An image processing apparatus according to a third aspect of the present invention includes a setting unit that sets the predetermined number of pixels based on the scaling factor, and the specifying unit sets a position of the pixel at an interval corresponding to the number of pixels set by the setting unit. Is configured to be specified.
[0014]
In the case of the third aspect, based on the received magnification, a predetermined number of pixels indicating an interval for shifting the position of the pixel to be thinned out or interpolated in each unit is set, so that the reduction ratio or the enlargement ratio indicated by the magnification is set. Accordingly, the positions of the pixels to be thinned out or interpolated can be appropriately set, and a reduction process or an enlargement process with reduced image quality deterioration can be realized.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an image processing apparatus according to the present invention will be described in detail with reference to the drawings showing an embodiment using a multifunction peripheral.
[0016]
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration example of a multifunction peripheral according to the present invention. In the figure,
The
[0017]
The
The ROM 11 stores various computer programs and the like necessary for the operation of the multifunction peripheral 1 of the present invention in advance.
[0018]
The
The modem 14 is constituted by a facsimile modem capable of performing facsimile communication, and is also directly connected to the
[0019]
The
The
[0020]
The
The
[0021]
The
In the present embodiment, the acquired image data is pseudo halftone image data in which each pixel is specified by binary data. Further, the scaling factor can be calculated not only by the user but also based on the size of the recording paper or the like specified by the user.
[0022]
The
Here, the
[0023]
Therefore, when the instruction signal input from the
The
[0024]
The
The
[0025]
FIG. 2 is a block diagram illustrating a configuration example of the
In the
[0026]
Specifically, for example, when performing a reduction process with a reduction ratio of 99%, the
Similarly, when performing the enlargement processing with the enlargement ratio of 101%, the
[0027]
In addition, the
The
The predetermined number of pixels may be set in advance and stored in the ROM 11.
[0028]
The
[0029]
Further, the
The
[0030]
FIG. 3 is a diagram for explaining a resolution conversion process by the
In FIG. 3, the direction indicated by X is the main scanning direction, and the direction indicated by Y is the sub-scanning direction, and a part of the image based on the image data is illustrated. Note that the grids in the figure indicate the pixels that constitute the image.
[0031]
When storing 100 in the
Similarly, when 100 is stored in the
[0032]
The
As described above, in each line formed by arranging a plurality of pixels in the main scanning direction X, by specifying the positions of the thinned pixels in the line adjacent to the sub-scanning direction Y so as not to be continuous in the sub-scanning direction Y, It is possible to prevent white or black vertical streaks occurring in the sub-scanning direction Y.
[0033]
When the instruction signal from the
[0034]
(Embodiment 2)
Hereinafter, the configuration of the
[0035]
FIG. 4 is a block diagram illustrating a configuration example of the
In the
[0036]
The random
Since the random
[0037]
FIG. 5 is a diagram for explaining a resolution conversion process by the
In FIG. 5 as well, the direction indicated by X is the main scanning direction, and the direction indicated by Y is the sub-scanning direction, and the grids in the figure indicate the pixels that constitute the image.
[0038]
When storing 100 in the
In each line adjacent in the sub-scanning direction Y, the positions of pixels to be thinned out or interpolated are specified by shifting the interval from 22 pixels to 26 pixels in the main scanning direction X.
[0039]
Similarly, when 100 is stored in the
[0040]
In addition, the
As described above, in each line in which a plurality of pixels are arranged in the main scanning direction X, the positions of the thinned pixels in the lines adjacent in the sub-scanning direction Y are specified while being shifted in the main scanning direction X, and the specified positions are determined. By selecting one position from the vicinity and thinning out the pixels at the selected position, it is possible to prevent the positions of the thinned pixels from continuing in the oblique direction and to flexibly change the positions of the thinned pixels within a predetermined area. Can be.
[0041]
When the instruction signal from the
[0042]
In each of the embodiments described above, the resolution conversion processing in the main scanning direction X of the image is described, but the resolution conversion processing in the sub-scanning direction Y is also applicable. Further, for each line adjacent in the sub-scanning direction Y, the positions of pixels to be thinned out or interpolated are specified by shifting the interval of 25 pixels or 1 pixel in the main scanning direction X, but these values are limited to these values. I can't.
[0043]
【The invention's effect】
In the case of the first invention, a plurality of pixels arranged linearly are defined as one unit, and each unit adjacent in a direction perpendicular to the arrangement direction of the plurality of pixels is a predetermined number of pixels in the arrangement direction. By specifying the position of the pixel at an interval and by thinning or interpolating the pixel at the specified position, the pixel to be thinned or interpolated in each unit is not continuous in the direction perpendicular to the arrangement direction, and is white or black. It is possible to perform reduction processing or enlargement processing in which deterioration of image quality due to prevention of vertical streaks is reduced.
In each unit, the position of the pixel to be thinned or interpolated is specified at a predetermined number of pixels while being shifted, so that the position of the pixel to be thinned or interpolated is determined at random. Can be simplified.
[0044]
In the case of the second invention, for each unit adjacent in the direction perpendicular to the arrangement direction of the plurality of pixels arranged linearly, the position of the pixel is specified at intervals of a predetermined number of pixels in the arrangement direction. Then, by thinning out or interpolating pixels at the specified position and one of the positions near the position, it is possible to prevent the pixels to be thinned out or interpolated in each unit from continuing in the vertical direction. In addition, the pixels to be thinned or interpolated, which are located at intervals of a plurality of units in the vertical direction, can be appropriately shifted in the arrangement direction, and may be generated at intervals of the plurality of units. It is possible to realize a reduction process or an enlargement process in which a sharp white or black vertical streak is prevented and deterioration of image quality is reduced.
[0045]
In the case of the third aspect, based on the received magnification, a predetermined number of pixels indicating an interval for shifting the position of the pixel to be thinned out or interpolated in each unit is set, so that the reduction ratio or the enlargement ratio indicated by the magnification is set. Accordingly, the positions of the pixels to be thinned out or interpolated can be set as appropriate, and a reduction process or an enlargement process with reduced image quality deterioration can be realized.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration example of a multifunction peripheral according to the present invention.
FIG. 2 is a block diagram illustrating a configuration example of an image processing unit according to the first embodiment.
FIG. 3 is a diagram for explaining resolution conversion processing by an image processing unit according to the first embodiment;
FIG. 4 is a block diagram illustrating a configuration example of an image processing unit according to a second embodiment;
FIG. 5 is a diagram for explaining a resolution conversion process performed by an image processing unit according to the second embodiment.
[Explanation of symbols]
1
22 Image processing unit (specification means)
33 Resolution conversion unit (magnification means, selection means)
Claims (3)
前記単位に含まれる複数の画素が配列された配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定する特定手段と、
該特定手段が特定した位置で、画素を間引く又は補間する変倍手段とを備えることを特徴とする画像処理装置。From an image in which a plurality of pixels are arranged in a matrix, the plurality of pixels arranged in a straight line are taken as one unit, and one pixel in each unit is thinned out or interpolated based on the received magnification, and In an image processing device that reduces or enlarges
For each unit adjacent in the direction perpendicular to the arrangement direction in which a plurality of pixels included in the unit are arranged, identification means for identifying the position of the pixel at an interval of a predetermined number of pixels in the arrangement direction,
An image processing apparatus comprising: a scaling unit that thins out or interpolates pixels at a position specified by the specifying unit.
前記単位に含まれる複数の画素が配列された配列方向に垂直な方向に隣合う夫々の単位について、前記配列方向に所定の画素数分の間隔を隔てて画素の位置を特定する特定手段と、
該特定手段が特定した位置、及び該位置の画素と前記配列方向に近傍の画素の位置から、間引く又は補間する画素の位置を選択する選択手段と、
該選択手段が選択した位置で、画素を間引く又は補間する変倍手段とを備えることを特徴とする画像処理装置。From an image in which a plurality of pixels are arranged in a matrix, the plurality of pixels arranged in a straight line are taken as one unit, and one pixel in each unit is thinned out or interpolated based on the received magnification, and In an image processing device that reduces or enlarges
For each unit adjacent in the direction perpendicular to the arrangement direction in which a plurality of pixels included in the unit are arranged, identification means for identifying the position of the pixel at an interval of a predetermined number of pixels in the arrangement direction,
Selecting means for selecting a position of a pixel to be thinned or interpolated from the position specified by the specifying means, and a position of a pixel at the position and a pixel nearby in the arrangement direction;
An image processing apparatus comprising: a scaling unit that thins out or interpolates pixels at a position selected by the selection unit.
前記特定手段は、前記設定手段が設定した画素数分の間隔を隔てて画素の位置を特定するように構成してあることを特徴とする請求項1又は2に記載の画像処理装置。Setting means for setting the predetermined number of pixels based on the magnification,
3. The image processing apparatus according to claim 1, wherein the specifying unit is configured to specify a pixel position at intervals of the number of pixels set by the setting unit. 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003125703A JP2004336165A (en) | 2003-04-30 | 2003-04-30 | Image processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003125703A JP2004336165A (en) | 2003-04-30 | 2003-04-30 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004336165A true JP2004336165A (en) | 2004-11-25 |
Family
ID=33502884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003125703A Pending JP2004336165A (en) | 2003-04-30 | 2003-04-30 | Image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004336165A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009083472A (en) * | 2007-09-11 | 2009-04-23 | Ricoh Co Ltd | Image forming apparatus, image forming method, image forming program and recording medium |
JP2012065035A (en) * | 2010-09-14 | 2012-03-29 | Ricoh Co Ltd | Image forming apparatus, image formation method, program, and recording medium |
JP2012071575A (en) * | 2010-08-31 | 2012-04-12 | Seiko I Infotech Inc | Recording device and recording method |
EP2040129B1 (en) * | 2007-09-11 | 2018-01-10 | Ricoh Company, Ltd. | Method and apparatus for forming image, and computer program product |
-
2003
- 2003-04-30 JP JP2003125703A patent/JP2004336165A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009083472A (en) * | 2007-09-11 | 2009-04-23 | Ricoh Co Ltd | Image forming apparatus, image forming method, image forming program and recording medium |
JP2014015047A (en) * | 2007-09-11 | 2014-01-30 | Ricoh Co Ltd | Image forming apparatus, image forming method, image forming program and recording medium |
EP2040129B1 (en) * | 2007-09-11 | 2018-01-10 | Ricoh Company, Ltd. | Method and apparatus for forming image, and computer program product |
JP2012071575A (en) * | 2010-08-31 | 2012-04-12 | Seiko I Infotech Inc | Recording device and recording method |
JP2012065035A (en) * | 2010-09-14 | 2012-03-29 | Ricoh Co Ltd | Image forming apparatus, image formation method, program, and recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4476203B2 (en) | Image processing apparatus, program, and image processing method | |
JP2003219116A (en) | Image processing device and its controlling method | |
US8531736B2 (en) | Image processing apparatus and image processing method | |
JP5225201B2 (en) | Image processing device | |
JP2001157042A (en) | Image processor, image processing method and computer- readable recording medium recorded with program for executing computer the method | |
JP2004336165A (en) | Image processor | |
US8416469B2 (en) | Image processing apparatus, image processing method and computer program | |
JP4983947B2 (en) | Halftone image generation apparatus and halftone image generation method | |
JP5326882B2 (en) | Image processing device | |
JP4753253B2 (en) | Image processing device | |
JP2008160250A (en) | Image processing apparatus and image processing program | |
JP2004320258A (en) | Image processing apparatus | |
JP2007110605A (en) | Image forming device | |
JP2020102675A (en) | Image processing device, control method of the same, and program | |
JP3964088B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method | |
JP4863846B2 (en) | Color image forming apparatus and color image processing apparatus | |
JP2007088686A (en) | Image processing apparatus, image processing method and program thereof | |
JP4172410B2 (en) | Image processing method and image processing apparatus | |
JP2006054576A (en) | Apparatus and method of processing image, program and storage medium | |
JP2009060214A (en) | Image processing for reducing image | |
JP2006295301A (en) | Image forming apparatus | |
JP2009290756A (en) | Image processing apparatus, image processing method, program for making computer implement the method, and computer-readable recording medium with the program recorded thereon | |
JP2007311835A (en) | Image processing unit and control method therefor | |
JP2004289232A (en) | Color image processing apparatus | |
JP2004096574A (en) | Image processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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: 20060131 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060322 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060530 |