JP3673558B2 - Image processing method and apparatus - Google Patents
Image processing method and apparatus Download PDFInfo
- Publication number
- JP3673558B2 JP3673558B2 JP14872995A JP14872995A JP3673558B2 JP 3673558 B2 JP3673558 B2 JP 3673558B2 JP 14872995 A JP14872995 A JP 14872995A JP 14872995 A JP14872995 A JP 14872995A JP 3673558 B2 JP3673558 B2 JP 3673558B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- resolution
- image
- reading
- recording
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【0001】
【産業上の利用分野】
本発明は画像処理方法およびその装置に関し、例えば、入力された画像データの画素密度に比べて出力する画素密度が高い場合に、その画素密度を変換する画像処理方法およびその装置に関するものである。
【0002】
【従来の技術】
感熱や熱転写記録を用いたファクシミリ装置では、画像読取デバイスであるCCD(固体撮像素子)またはCS(コンタクトセンサ)の主走査解像度、および、記録デバイスであるサーマルヘッドの主走査解像度は、ともにITU-Tの規格である203.3dpi(8pel/mm相当)で構成されている。
【0003】
【発明が解決しようとする課題】
しかし、上述した技術においては、次のような問題点がある。
近年、記録方式は感熱方式や熱転写方式から、LBP(レーザビームプリンタ)記録方式やインクジェット記録方式へ変化してきており、感熱方式などに比べて低価格で高解像度の記録装置が、ファクシミリの記録装置として使用されるようになった。例えば、LBP記録では記録解像度は300,400,600dpiが、インクジェット記録では記録解像度は360dpiのものが主流であるが、読取解像度が低いため、充分に高い記録解像度を有効に活かせなかった。
【0004】
また、ファクシミリ装置もファクシミリ専用から、コピー機能の充実したものへ移行してきており、この面からもより高画質化の要求が高まってきている。
【0005】
すなわち、主走査方向203.3dpiで読取った画像データを、高解像度な記録装置に合わせて解像度変換する必要があるが、この解像度変換により画質が劣化してしまうことがあった。例えば、送信を行いたい場合、読取モードとしてハーフトーンモードを選択し、読取解像度としてファインモードを選択すると、主走査方向203.3dpi、副走査方向195.58dpiの解像度で原稿画像を読取り、誤差拡散法や平均誤差最小法などにより擬似中間調処理を施して二値化し送信する。コピーモードでも同様に二値化するが、記録装置の解像度に合わせて高解像度への解像度変換を行うと、誤差拡散法などの中間調処理によるパターンが崩れたり、縞模様が目立ってしまうなど、画質の劣化が生じてしまう。
【0006】
また、記録装置の解像度に合わせて高解像度の読取装置を設けると高価になってしまうといった問題がある。
【0007】
本発明は、上述の問題を解決するためのものであり、記録装置の解像度を活かした高品位な画像を記録することを目的とする。
【0008】
また、本発明は、解像度変換に伴う画質の劣化を防止することを目的とする。
【0009】
【課題を解決するための手段】
本発明は、前記の目的を達成する一手段として、以下の構成を備える。
【0010】
本発明の画像処理方法は、所定の解像度の画像データを送信する送信手段、原稿画像を読み取り、前記原稿画像を表す画像データを前記所定の解像度、かつ、一画素当り多値のデータとして出力する読取手段、並びに、前記読取手段が出力する画像データを二値化したデータに基づく画像を、前記所定の解像度とは異なる記録解像度で記録する記録手段を有する画像処理装置の画像処理方法であって、前記読取手段が出力する画像データに基づく画像を前記記録手段に記録させるコピーモードが選択されると、前記読取手段が出力する画像データを前記記録解像度に変換してから二値化し、前記読取手段が出力する画像データを前記送信手段に送信させる送信モードが選択されると、前記解像度の変換をスキップして、前記読取手段が出力する画像データを二値化することを特徴とする。
【0011】
本発明の画像処理装置は、モードを選択する選択手段と、所定の解像度の画像データを送信する送信手段と、原稿画像を読み取り、前記原稿画像を表す画像データを前記所定の解像度、かつ、一画素当り多値のデータとして出力する読取手段と、前記読取手段が出力する画像データの解像度を変換する変換手段と、前記読取手段が出力する画像データを二値データに変換する二値化手段と、前記二値化手段により二値化された画像データに基づく画像を、前記第一の解像度とは異なる第二の解像度で記録する記録手段と、前記選択手段により、前記読取手段が出力する画像データに基づく画像を前記記録手段で記録させるコピーモードが選択されると、前記読取手段が出力する画像データを、前記変換手段により前記所定の解像度とは異なる記録解像度に変換してから前記二値化手段により二値化し、前記選択手段により、前記読取手段が出力する画像データを前記送信手段に送信させる送信モードが選択されると、前記変換手段による解像度変換をスキップして、前記読取手段が出力する画像データを前記二値化手段により二値化する制御手段とを有することを特徴とする。
【0016】
【実施例】
以下、本発明にかかる一実施例の画像処理装置を図面を参照して詳細に説明する。なお、以下では、本発明にかかる一実施例の画像処理装置を備えたファクシミリ装置を説明するが、本発明はファクシミリ装置に限定されるものではなく、画像データを扱う任意の画像処理装置に適用できることは言うまでもない。
【0017】
まずはじめに、画素密度変換について簡単に説明する。
【0018】
画素密度変換は、入力される画像データの画素数を、出力装置の解像度に応じて増加または減少させることであり、基本的に画像の拡大縮小と同じである。例えば、A4サイズで画素数が1728×2287画素,解像度が主走査203.2dpi(8pel/mm相当),副走査195.58dpi(7.7line/mm相当)の画像データを、主走査406.4dpi(16pel/mm相当),副走査391.16dpi(15.4line/mm相当)の解像度の画像データに画素密度変換するには、一画素を四画素に変換処理して総画素数3456×4575画素にすればよく、これは正に各走査方向へ二倍の拡大処理をすることと同じである。以降の説明において、解像度変換,拡大縮小,画素密度変換などの処理は、すべてディジタル的な拡大縮小処理をさすものとして取扱う。
【0019】
次に、ファクシミリ装置における画像データ処理のどの段階で、画素密度変換を実施するかについて説明する。
【0020】
通常、G3,G4ファクシミリは、画像データの蓄積および送受信において二値データを取り扱う。従って、既に画像ファイルとしてメモリに蓄積された画像データや、回線を通して受信された画像データは二値画像であるため、これらの二値画像データに画素密度変換や拡大縮小を施すには、二値画像に対する手法が用いられることになる。これらの手法として、SPC法,九分割法,投影法などが提案されている。本実施例は、ファクシミリ用の画像データとして画像ファイルに蓄積される以前の、つまり二値化される前の多値画像データに対して画素密度変換などの処理を施す。
【0021】
また、二値化手法は、疑似階調を表現するための誤差拡散法や平均誤差最小法などの中間調処理を施す場合を対象にする。
【0022】
誤差拡散などを用いた二値画像による疑似階調手法は、濃度を単位面積あたりの白黒ドットの数の比率で表現する。例えば、64階調中の濃度16を表現する場合は、8×8画素のブロックの中に中間調処理によるパターンによって平均16個の黒ドットが存在することになる。入力画像データのレベルと所定の閾値との誤差を二次元的に拡散していく誤差拡散法は、ディザ法に比べて解像度と階調性が両立された二値化手法であるが、その反面、一画素を表現する画素サイズが大きい場合、つまりG3ファクシミリのように比較的記録解像度が粗い場合は、周期的なドットパターンによる独自の縞模様が目立つようになる。
【0023】
従って、誤差拡散法の利点を生かすためには、誤差拡散法で二値化処理される前に画素密度変換を施して、高解像度データとしてから二値化を行う必要がある。しかし、従来は、例え406.4dpiの解像度の記録装置を備えたファクシミリ装置でも、送受信データとの関係からコピー時も含むすべての場合において、203.2dpiの解像度で二値化処理を行い、記録時に四倍に拡大し記録している。
【0024】
そこで本実施例では、コピーを行うなど、記録装置が高解像度であることが予めわかっている場合は、二値化する前の多値データの段階で画素密度変換を行った後、誤差拡散法で二値化することにより、誤差拡散の表示解像度を高解像度にして、濃度表示するための一画素のサイズを小さくする。これにより、誤差拡散法独自の縞模様が目立たない印刷画像を得ることが可能になる。また、誤差拡散処理によるパターンを崩さないので、画質の劣化を防ぐことができる。
【0025】
図1は記録解像度が主副それぞれ倍異なる場合の誤差拡散による二値化画像のサンプルであり、図1(b)に示す画像は、図1(a)より1ドットの画素サイズ小さく、より均一な印象を受ける。
【0026】
また、図2はエッジ部をもつ線画の一部を拡大した図であるが、図2(b)に示す画像は、画素密度変換した後に誤差拡散することで、図2(a)に比べてエッジ部のノッチが小さくなり、エッジのシャープな画像を得ることができる。
【0027】
また本実施例は、CCDで読取った画像データに対して、解像度補償であるエッジ強調を行った後に画素密度変換を行う。ここでエッジ強調処理は、画像データに対して二次元の二階微分を施したものを着目画像データに加算することである。エッジ強調後に画素密度変換を行う理由は、もし、画素密度変換を単純な重複処理として実施した後、エッジ強調を施すと、重複処理された画像空間でのラプラシアン演算により高周波成分が重畳され、画像のエッジ部に疑似輪郭を発生させてしまうからである。
【0028】
図3は疑似輪郭が発生した画像例を示す図で、正方形の全黒の画像を、単純重複処理により主走査副走査ともに二倍に拡大した後、エッジ強調を施して二値化したものであり、疑似輪郭が発生した様子を示している。
【0029】
図4は疑似輪郭が発生する過程を説明するための図である。説明を簡易化するために、ここでは画像データを一次元で考える。また、エッジ強調フィルタの係数を図5に示すように[-1,2,-1]とする。
【0030】
図4の上段は、単純重複処理により二倍拡大した後、図5のフィルタでエッジ強調処理をした場合の結果を示している。下段は、同フィルタでエッジ強調処理した後、単純重複処理をした場合の結果を示している。二値化閾値を30とした場合、図4の上段に示す処理では、エッジ部の画像データD2はエッジ強調処理により白になり、重複処理により生成された画像データD2'は黒になる。この結果は疑似細線として現れる。一方、下段に示す処理では、このような不具合は発生しない。
【0031】
以上の理由から、本実施例では、出力解像度が高解像度であることが予めわかっている場合、入力された多値画像データを次の処理フローで二値化する。
【0032】
(1)入力された多値画像データに対して解像度補償のためのエッジ強調を行う
【0033】
(2)エッジ強調された画像データに対して、出力解像度に合わせた画素密度変換を行う
【0034】
(3)画素密度変換された画像データを誤差拡散法などで二値化する
【0035】
ところで、以下では、エッジ強調の後で輝度濃度変換を行う例を説明するが、上記の説明から明らかなように、輝度濃度変換処理は、エッジ強調処理と二値化処理との間で行えばよく、拡大処理の後に実施してもよい。
【0036】
次に、画像データ量について説明する。
【0037】
これまでに説明したように、画像品位を向上されるためには、二値化前に画素密度変換を実施することが望ましいが、反面、二値化後の画像データが高解像度の画像データとして出力されるためデータ量が増加する欠点がある。とくに、画像データをMH,MR,MMRなどの符号化方式で符号化して蓄積する場合、誤差拡散処理により得られた画像データは符号化により逆に増加することから、さらにデータ量が問題になる。
【0038】
そこで本実施例は、一般的なファクシミリ装置などに対してデータ量増加の問題を軽減するため、コピー時や、通信プロトコルにより相手機を認識した後読込みを開始するダイレクト送信など、出力解像度が高解像度であると予めわかっている場合だけ、二値化前に画素密度変換を実施する。
【0039】
以下、本実施例における画像データの流れおよび二値化処理部の具体的な構成例について詳細に説明する。
【0040】
図6は本発明にかかる一実施例の画像処理装置を備えたファクシミリ装置の構成例を示すブロック図である。
【0041】
同図において、100はCPUで、ROM110に格納されたプログラムに従って、システムバス260を介して、本実施例全体の制御や画像処理などを行う。また、ROM110には、操作部130へ表示する情報およびレポート出力のための、フォントデータや表示データが予め記録されている。120はRAMで、CPU100の作業用データの蓄積、符号化された画像データ、および、受信した画像データなどの画像ファイル蓄積のために使用される。
【0042】
130は操作部で、本実施例のファクシミリ装置のユーザインタフェイスとして機能する部分で、LCDなどの表示器とキーボードやタッチパネルなどを備え、CPU100から送られてきた本実施例のファクシミリ装置の動作状態や設定条件を表示し、ユーザからの指示をCPU100へ入力する。
【0043】
また、操作部130により各種モードを選択可能である。つまり、コピーモードや送信モードの選択が可能であり、コピーモードでは原稿一枚に対して、一枚のコピーを行うシングルコピーモードと、複数枚のコピーを行うマルチコピーモードとを選択することができる。また、送信モードでは、原稿を読取りながら送信するダイレクト送信モードと、全送信原稿を一旦メモリに格納してから送信するメモリ送信モードとを選択することができる。
【0044】
また、操作部130により読取モード(画質)も選択可能であり、文字や図形からなる原稿を読取るための文字モード、写真などの中間調原稿を読取るための写真モード(ハーフトーンモード)を選択することができる。文字モードにおいては、読取った画像データを、必要に応じて、解像度変換し、一画素ずつ所定の閾値と比較して、その大小により二値化を行う単純二値化法を用いる。写真モードにおいては、読取った画像データを、必要に応じて、解像度変換し、所定の閾値と比較して、その大小により注目画素の二値化を行い、ここで生じた誤差を所定の重み付けマトリクスに従って拡散して行く周知の誤差拡散法を用いる。
【0045】
また、操作部130により原稿画像を読取る際の副走査方向の解像度(読取ピッチ)を選択することができる。つまり、標準モードである97.79dpi(3.85line/mm相当)、ファインモードである195.58dpi(7.7line/mm相当)、スーパファインモードである391.16dpi(15.4line/mm相当)を選択することができる。また、特殊な場合として、ウルトラファインモード406.4dpi×391.16dpiによる送信も可能である。
【0046】
なお、本実施例においては、写真モードを選択している場合について説明する。
【0047】
また、原稿読取時の解像度は、オペレータの選択により、主走査方向203.2dpi、副走査方向は上記三種類の何れかであるが、写真モードでかつメモリ送信モードを選択した場合は、標準モード(203.2dpi×97.79dpi)あるいはファインモード(203.2dpi×195.58dpi)の二種類のみを選択可能とする。
【0048】
これは、一般的にファクシミリ装置は、標準モード,ファインモードで送信された画像を受信し記録することは可能であるが、スーパファインモードで送信された画像の受信および記録はできないものがある。そのため、スーパファインモードで原稿を読取り中間調処理を施してメモリに格納して、送信しようとしたときに、相手先のファクシミリ装置がスーパファインモードに対応していなかった場合は、送信側において間引き処理などにより解像度変換を行うことになる。しかし、中間調処理により二値化した画像に間引き処理などの解像度変換を施すと、中間調処理によるパターンを崩すことになり、画質の劣化を招いてしまう。そこで、標準モードとファインモードだけを選択可能にしておけば、二値化後に解像度変換されることがなく、画質の劣化を防ぐことができる。さらに、中間調画像は、比較的符号化効率が悪いので、スーパファインモードを用いないことにより、データ量を減らしてメモリ使用量の節約を図ることもできる。
【0049】
なお、コピーモードでの読取解像度は、予め設定しておいてもよいし、オペレータにより選択可能にしておいてもよい。
【0050】
140はMODEMで、符号化された画像データを変調し、受信されたデータを復調する。150はNCUで、回線280と本実施例のファクシミリ装置とのインタフェイスを行う。
【0051】
170はモータコントローラで、CPU100の指示に応じて、原稿を移動させるためのモータ160を駆動制御する。例えば、モータ160はステッピングモータであり、モータコントローラ170は相切替制御信号を送出してモータ160を制御する。これにより、副走査方向の読取ピッチ(解像度)を制御する。
【0052】
180は複数の受光素子からなるCCD(電荷結合素子)で、送信またはコピーなどの際に原稿の画像を1ラインずつ203.2dpiの解像度で読取って画像信号を出力する。190はアナログ補正処理部で、CCD180から入力された画像信号に、シェーディング補正や原稿の下地濃度に関する補正処理を行い、不図示のA/Dコンバータによって、例えば6ビット/画素の64段階のディジタル画像信号を出力する。
【0053】
200は二値化処理部で、アナログ補正処理部190から入力された203.2dpiの解像度の6ビット/画素のディジタル画像信号を二値化して、画像バス270に出力する。また、二値化処理部200は、コピーなど記録解像度が予めわかっている場合は、記録解像度に合わせた画素密度変換を行う。例えば、通常のメモリ送信時は203.2dpiの解像度で二値化を行い、コピーなどの時は、記録解像度に合わせて406.4dpiの解像度に画素密度変換を行った後、二値化する。
【0054】
210はRAMで、画像バス270に接続されていて、二値化された画像データや復号された画像データを一時的に蓄積するラインバッファとして使用される。220はLBP(レーザビームプリンタ)で、RAM210に展開された二値画像データを印刷出力する。230は符号器で、RAM210に展開された画像データを入力し符号化した後、符号化データをシステムバス260を介してRAM120へ転送する。240は復号器で、RAM120に蓄積された符号化データをシステムバス260を介して入力し復号した後、復号した画像データをRAM210に展開する。また、MMR方式で符号化されて蓄積されている画像をMH方式で送信しようとする場合など、RAM120に既に蓄積されている符号化データと送信しようとする符号化方式とが異なる場合は、符号器230,復号器240,RAM210を用いて、その符号化方式に合わせた符号化変換を行う。
【0055】
250はバスアービタで、CPU100が送信画像のヘッダ画像や付加するフッタ画像をRAM210に展開する際などに、画像バス270とシステムバス260の調停を行う。
【0056】
次に、コピー,送信といった原稿の読取に関わる処理の流れについて、図13と図14に示すフローチャートを用いて説明する。なお、これらの処理は、CPU100の命令に基づき実行されるものである。
【0057】
まず、ステップS701で操作部130を介してなされた指示がコピー指示であるかどうかを判断する。コピー指示であればステップS702で、同一原稿を複数枚コピーするマルチコピーが指示されているかどうかを判断する。ここで、マルチコピーは指示されていないと判断されれば、コピーを一枚作成する場合であり、ステップS703へ進んで、CCD180による読取を開始する。ここでの読取解像度は、例えば203.2dpi×391.16dpiに設定されているとする。読み取られた画像データは、アナログ補正処理部190によりシェーディング補正などの前処理が施される。次に、ステップS704で、二値化処理部200により二値化を行うが、この場合、出力解像度は既知であるので、二値化処理部200は、入力された画像データをLBP220の記録解像度に合わせて解像度変換した後、二値化して出力する。高解像度の二値画像データは、一旦、RAM210にライン毎に蓄積され、同期を取ってLBP220へ出力され、ステップS705で記録紙へ印刷される。
【0058】
一方、ステップS702でマルチコピーであると判断すれば、ステップS706でCCD180による読取りを開始する。そして、所定の解像度で読取った画像データを、二値化処理部200で記録解像度に合わせて二値化処理するところ(ステップS707)までは、上述した一枚コピーの場合と同じであり、その詳細説明を省略する。
【0059】
マルチコピーの場合は、同一画像データを複数回出力処理するため、一頁分の画像データを装置内部に蓄積する必要がある。そのため、符号器220により二値画像データを符号化して、RAM120に一頁分の符号データの蓄積を試みる。つまり、ステップS708でメモリオーバフローを起こさず、一頁分の画像データが蓄積されると、LBP220を起動して、蓄積された符号データを復号器240により復号しながら、復号した画像データをRAM210を介してLBP220へ転送し、ステップS705で一枚目を印刷出力する。二枚目以降も、RAM120に蓄積された符号データを用いて、一枚目と同様に出力する。そして、希望枚数のコピーが終了すると、RAM120に蓄積された符号データをクリアする。
【0060】
また、ここで、符号データを蓄積するメモリの容量が小さい場合や、符号化効率の悪い画像(例えば、高解像度に解像度変換された後、二値化された画像データの情報量は大きくなる)の場合は、RAM120に一頁分の符号データを蓄積することができないことがある。この場合、つまり、ステップS708でメモリがほぼ満杯(ニアフル)状態になった場合はステップS709へ進み、メモリフルによりマルチコピーできない旨のメッセージを操作部130に表示する。そして、ステップS710で、RAM120がメモリフル状態になる前に、読取動作を一旦停止して、ステップS711で記録動作を開始する。この記録動作によりRAM120に空きが生じるので、ステップS706で読取り動作を再開して、一枚のコピーが終了するまでこれらの処理を繰り返し、同期コピーによる一枚コピーを行う。
【0061】
また、ステップS701でコピー動作ではないと判断されれば、送信動作の場合であり、ステップS801に進んで、読取った画像データを一旦メモリに格納してから送信するメモリ送信が指示されたかどうかを判断する。ここで、メモリ送信ではないと判断されれば、原稿画像を読取りながら送信するダイレクト送信を指示された場合である。この場合は、まず通信相手先との接続を実行し、ファクシミリのプロトコルにより相手先の記録解像度を確認する。つまりステップS802で、相手先の主走査記録解像度が406.4dpiなどの高解像度であり、ウルトラファインモードによる通信が可能か否かを判断する。
【0062】
相手先の主走査記録解像度が高解像度ではなく203.2dpi(8dot/mm)の場合は、オペレータが選択した解像度(標準,ファインまたはスーパファイン)によりステップS803で読取を開始する。つまり、CCD180により読取られた原稿の画像データは、アナログ補正処理部190を介して二値化処理部200へ入力される。なお、標準,ファイン,スーパファインなど副走査方向の解像度の調整は、モータ160の1ライン当りの駆動ステップ数により調整する。
【0063】
次に、ステップS804で、二値化処理部200により、画像データを解像度変換せずに二値化する。二値化された画像データは、一旦、RAM210に蓄積され、順次、符号器230で符号化されて、その符号データはRAM120に蓄積される。次に、ステップS805で、RAM120に蓄積された符号データは、MODEM140により変調され、NCU150と回線280を介して、相手先へ送信される。
【0064】
そして、ステップS806で終了と判断されるまで、以上の処理を繰り返す。
【0065】
一方、ステップS802において、相手先の主走査方向記録解像度が高解像度であり、ウルトラファインモードでの通信が可能であると判断したならば、ステップS807で原稿画像の読取り(主走査方向203.2dpi,副走査方向391.16dpi)を開始し、ステップS808で二値化処理部200により相手先の記録解像度に合わせて高解像度に変換してから二値化する。続いて、ステップS809では、この二値化された画像データを前述した手順で送信する。
【0066】
また、ステップS801でメモリ送信であると判断した場合は、ステップS811で原稿の読取りを開始する。ここでは、写真モードによる読取りを前提にしているので、オペレータが選択できる副走査方向の解像度は97.79dpi(標準)と195.58dpi(ファイン)の何れかであり、391.16dpi(スーパファイン)の選択は禁止する。これは、操作部130の表示により確認することができる。オペレータにより選択された解像度で読取った画像データは、ステップS812で、二値化処理部200において解像度変換を行わずに二値化し、順次RAM120に蓄積する。この画像データは符号器230で符号化された後、RAM120に蓄積される。ステップS813で送信原稿すべての読取りが終了するまで、上記の処理を繰り返す。すべての符号データがRAM120に蓄積されると、ステップS814で、前述した手順により相手先へ送信する。
【0067】
次に、受信動作について説明する。なお、これは従来と同様の手順であるから、図示は省略する。
【0068】
NCU150を介して回線280から受信された符号データは、MODEM140により復調されて、一旦、RAM120に蓄積される。CPU100は、出力すべき符号データがRAM120に存在する場合、LBP220を起動し、復号器240により符号データを復号して、一旦、RAM210に復号された画像データを展開した後、LBP220へ画像データを送って印刷出力する。
【0069】
ここで、受信画像の解像度と出力解像度とが異なる場合は、投影法もしくはSPC法を用いたLBP220内の処理によって、画素密度変換が行われる。
【0070】
このように、出力解像度が予めわかっているコピーモードや、通信相手先の出力解像度が既知のダイレクト送信の場合は、出力解像度を最大限に生かすため、二値化処理部200により二値化前に画素密度変換を行って、高解像度で二値化された画像データを出力する。
【0071】
次に、二値化処理部200を詳細に説明する。
【0072】
図7は二値化処理部200の詳細な構成例を示すブロック図である。なお、本実施例の二値化処理部200は、高密度画像への変換機能をもたないファクシミリ装置の二値化処理部へ、小規模の機能ブロックを追加することにより、同変換機能を追加できるように考慮されている。
【0073】
図7において、2001はエッジ強調部、2002は輝度濃度変換部、2003は主走査変倍部、2004は誤差拡散部、2005はセレクタおよびマスク処理部を含むクロック制御部、2006はORゲートである。
【0074】
図8はエッジ強調部2001の詳細な構成例を示すブロック図である。
【0075】
同図において、3001はラインメモリ制御部で、CPU100より発行される起動トリガに応じて、それぞれ画像データを1ライン分を記憶するラインメモリ3002,3003の制御を切替える。3004は画素単位で画像データを記憶するラッチ群、3005はエッジ強調フィルタ演算を行うエッジ強調演算部である。
【0076】
次に、二値化処理部200の動作について詳細に説明する。
【0077】
CCD180により読取られ画像データは、アナログ補正処理やA/D変換され、例えば6ビット/画素64階調のディジタル画像データとして、二値化処理部200へ入力される。なお、入力される画像データの主走査解像度は、CCDおよび光学系で決定され、203.2dpiである。また、入力される画像データは、ライン単位でライン同期信号に同期し、かつ画素単位で画素クロックMCLK/2の立下がりに同期して入力される。またここでは、アナログ補正処理部190とのハンドリングを考慮して、画像データはMCLK/2に同期し連続して入力されるものとする。
【0078】
アナログ補正処理部190から出力された画像データは、まずエッジ強調処理部2001へ入力される。エッジ強調処理部2001は、CPU100より発行された処理起動トリガA,Bに応じて、画像データをライン同期信号に同期して、順次、ラインメモリ3002,3003にライン単位に転送蓄積する。ここで起動トリガがA,B二種類あるのは、副走査方向において、モータ駆動制御とトリガA,Bとを組合わせることにより、重複されたエッジ強調後の画像データを取出すためであり、この機構により、副走査方向のエッジ強調処理後のライン重複処理を実現する。
【0079】
トリガAにより二値化処理が起動された場合、アナログ補正処理部190から出力された画像データは、ラッチ群3004のラッチEへ入力される。また同時に、画像データは、ラッチEを介してラインメモリ3002に順次転送される。
【0080】
ラインメモリ3002は、入力された画像データによりその記憶内容を順次更新し、かつ新しい画像データによりその記憶内容が更新される前に、その記憶内容をラッチDへ出力する。同様に、ラインメモリ3003は、ラッチDを介してラインメモリ3002から入力された画像データにより、その記憶内容を順次更新し、かつ更新前にその記憶内容をラッチCへ出力する。このように2ラインのラインバッファ、ラインメモリ3002,3003により、同時に3ライン分の画像データをラッチ群3004へ入力する。
【0081】
ラッチ群3004は、アナログ補正処理部190から入力された画像データ、ラインメモリ3002から入力された画像データ、ラインメモリ3003から入力された画像データを、それぞれ画素クロックMCLK/2に同期してシフトすることで、3×3のマトリックデータをエッジ強調演算部3005へ出力する。ここで各ラッチに付された符号A〜HおよびXは、図9(a)に示すエッジ強調フィルタの参照および着目画素位置に対応する。
【0082】
エッジ強調演算部3005は、ラッチ群3004から得られたマトリクスデータを用いてエッジ強調演算を行い、その結果を輝度濃度変換部2002に出力する。エッジ強調演算部3005は、二次元の二階微分演算であるラプラシアンにより得られる演算結果に対して、一定の重み付けを行った結果を、着目画素Xに加算することで解像度補償を行う。図9(b)はエッジ強調演算部3005のフィルタ係数の一例を示す図である。また、重み付けは画素密度変換の倍率に応じて任意に変更される。
【0083】
一方、トリガBにより二値化処理が起動された場合は、トリガAの場合とは異なり、ラインメモリ3002,3003の更新は行わず、ラインメモリに対して読取動作のみを行う。従って、図10に一例を示すように、モータ160による1ステップの原稿送りに対して、トリガBとAを交互に使用することで、ラインバッファから同一のラインデータが二度読出されることになり、重複したエッジ強調演算後のデータをエッジ強調部2001から取出すことができる。
【0084】
これにより、モータ160の1ステップに対して、副走査方向の画素密度をエッジ強調後二倍に拡大した画像データを出力させることができる。なお、二倍以上の高解像度の場合は、モータ160の1ステップに対して、その倍率に応じてトリガBを複数回立上げればよい。また、副走査方向の1ステップが出力解像度と同じならば、トリガAのみを使用することで、副走査方向に等倍の画像データを得ることができる。さらに、縮小する場合は、モータ160の送りに対して、トリガAによる二値化処理の起動の割合を、その縮小率に応じて間引けばよい。
【0085】
輝度濃度変換部2002は、エッジ強調部2001で解像度補償された画像データを、変換テーブルによって輝度データから濃度データに変換する。ここで、変換テーブルは、CCD180の特性および二値化され記録される画像データの記録性に基づいて決定されるものである。とくにLBPやインクジェットなどの記録装置は、解像度により二値画像の記録特性が異なるので、出力解像度に応じて輝度濃度変換テーブルの値を変化させて、記録濃度を一定に保つように調整する必要がある。なお、この変換テーブルは、輝度濃度変換部2002に内蔵されるROMに予め記憶されている、または、CPU100によって、例えばROM110から読出されたテーブルが輝度濃度変換部2002に内蔵されるRAMに設定されたものである。
【0086】
輝度濃度変換部2002で濃度データに変換された6ビット/画素の画像データは、主走査変倍部2003において、クロック制御部2005のクロック制御により、その主走査方向の画素密度がCPU 100により指示された倍率で変換される。ここで図11を用いて、主走査方向に203.2dpiの解像度の画像データを、406.4dpiの解像度で5/7倍に縮小する場合、つまり10/7倍に拡大する変倍処理について説明する。
【0087】
本実施例における主走査方向の画素密度変換は、クロック間引きにより実現するものであり、単純な画素重複処理によるものである。ここで倍率制御は、入力画素クロックMCLK/2と出力画素クロックCLK2の制御により行う。
【0088】
CPU 100により100〜200%の変倍処理が指示されると、クロック制御部2005内のセレクタ2005aは、MCLK/2の二倍の周波数であるMCLKを選択して、マスク処理部2005bへMCLKを供給する。また、100%未満の倍率が指示された場合は、二値化処理部200の入力画素レートと同じMCLK/2をマスク処理部2005bへ供給する。マスク処理部2005bは、入力されたクロックに対して、設定された倍率に応じたマスク操作を行いCLK2を生成する。生成されたCLK2は、主走査変倍部2003および誤差拡散部2004へ、駆動クロックとして供給される。
【0089】
図11に示すように、主走査変倍部2003において、MCLK/2の立下がりに同期して転送される画像データD0, D1, D2, …は、CLK2の立上がりで再度サンプリングされることで、設定された倍率の画像データD00, D01, D10, D20, …に変換される。
【0090】
主走査方向に画素密度変換された画像データは、CLK2に同期して誤差拡散部2004に入力されて、1ビット/画素に二値化された二値画像データとして出力される。なお、ここでは誤差拡散処理の詳細な説明は省略する。
【0091】
以上のように、主走査方向においては、クロック制御により輝度濃度変換後の重複および間引き処理を、副走査方向においては、二値化処理部200へ与える二種類のトリガを、モータ160の原稿送りに対して使い分けることにより、エッジ強調後のライン重複処理を行い、変倍された画像データを誤差拡散部で二値化して出力することができる。
【0092】
上述した実施例においては、図9(b)に示すエッジ強調フィルタ係数を用いる例を説明したが、このエッジ強調フィルタ係数を、図12(a)および(b)に示すものにすれば、エッジ強調の副作用を抑制することが可能である。この場合、着目画素は図9(a)に示したFになり、また2ライン前の画素を参照することになる。このため、エッジ強調演算のためのデータ参照を同一ラインのデータに対し行うことがなく、重複処理後のエッジ強調による副作用を抑制できる。
【0093】
以上説明したように、本実施例によれば、読取った画像データを、単位面積当り黒ドット数で濃度を表現する誤差拡散法により二値画像に変換して出力する場合、二値画像に二値化する前に画素密度変換を施すことにより、濃度表現の1ドットの面積を小さくすることができ、比較的濃度傾斜の緩やかな部分では、ハーフトーン処理固有のテクスチャを目立ち難くする効果がある。さらに、文字や線画部分のエッジ部のノッチを小さくすることで、文字や線画のエッジ部の切れを向上するなど、画質を向上することができる。
【0094】
また、簡単なクロック制御部と、エッジ強調のためのラインバッファ制御用の異なる二つのトリガとによって、画素密度変換機能を実現することで、副走査方向に拡大するためのラインバッファを新設することなく二値化処理部を構成することができる。さらに、簡単な制御回路の追加および必要な拡大画像のための誤差バッファの追加のみで、高密度な二値画像を得る二値化処理部を構成することができる。
【0095】
勿論、エッジ強調後に拡大処理を行うことで、同一データをエッジ強調前に重複させることによって生じる、図3に示したような画像エッジ部の二重化(高い周波波成分の重畳により生じる)を防いだ良好な拡大画像を得ることが可能である。
【0096】
また、エッジ強調に必要なラインバッファは、203.2dpiの解像度の画像が蓄積できるサイズでよく、機能追加に伴うメモリの増加も最小限に抑えることが可能である。
【0097】
さらに、二値化処理部の主走査方向の拡大処理における各演算ブロックの画像転送クロックは、エッジ強調および輝度濃度変換処理では連続クロックを使用し、誤差拡散処理はエッジ強調に使用したクロックの正数倍のクロックを間引いたものにすることで、画像転送クロックの制御のみで任意拡大処理を実現することができる。かつ、エッジ強調処理の画像転送クロックが連続クロックであることにより、CCDおよびアナログ補正処理回路との接続性を良好にし、エッジ強調部のラインバッファは参照ライン数に対して1ライン分少なくて済む。
【0098】
さらに、解像度により二値画像の記録特性が異なる記録装置の濃度特性を考慮して、変換する画素密度に応じて輝度濃度変換テーブルを変化させることで、記録濃度を一定に保つことができる。
【0099】
また、メモリ送信モードによる送信を行う場合、写真モードで原稿を読取るときはスーパファインモード(203.2dpi×391.16dpi)による読取りを禁止するので、二値化後の解像度変換を行わないようにすることができる。
【0100】
【他の実施例】
前述した実施例においては、コピーモードの他に、ダイレクト送信モードにおいて相手先とウルトラファインモードで通信することが可能な場合に、二値化する前に解像度変換するようにしたが、送信時は解像度変換せずに二値化する設定にしておけば、直に原稿の読取りを開始することができて効率的である。この場合、ウルトラファインモードの選択を禁止する。また、スーパファインモードの選択は、宛先毎にワンタッチキーに対応させて相手側の受信能力を登録しておき、相手先でスーパファインモードによる受信が可能な場合に選択が可能になるようにし、それ以外の宛先への送信において、さらに写真モードが選択された場合は、スーパファインモードの選択を禁止するように設定しておく。
【0101】
このようにすれば、オペレータが原稿をセットしてから、その原稿を持ち去るまでの時間を短縮することができて効率的である。また、このとき、読取解像度の選択を制御するので、解像度変換による画質の劣化を防止できる。
【0102】
また、上述した各実施例においては、各種モードに応じたプロセスで二値化を行うことにより、コピーモードでは画質の劣化を伴うことなく原稿の複写が可能になり、送信モードにおいても、解像度変換による画質の劣化や、処理の効率低下を防ぐことができる。
【0103】
また、ファクシミリ用の読取装置(203.2dpi)を用いることにより、安価に構成し、送信時の主走査方向の解像度は読取ったまま(解像度変換を行わずに)送信することができる。また、上記処理により、記録解像度よりも低い解像度の読取装置を用いても、高画質なコピー画像を得ることができ、プリンタの高解像度を最大限に活かしたファクシミリ装置を安価に構成できる。また、この場合の処理のための追加機能を最小限に抑えることにより、従来に比べても、大幅な回路修正を必要としない、
【0104】
また、上記した実施例においては、中間調処理として誤差拡散法を例に説明したが、他にも、平均誤差最小法などの濃度保存性の良い中間調処理を適用することができるのは言うまでもない。
【0105】
なお、本発明は、複数の機器から構成されるシステムに適用しても、一つの機器からなる装置に適用してもよい。
【0106】
また、本発明は、システムあるいは装置に、記憶媒体に記録されたプログラムを供給することによって達成される場合にも適用できることはいうまでもない。プログラムを供給するための記録媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,CD-ROM,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。
【0107】
【発明の効果】
以上説明したように、本発明によれば、記録装置の解像度を活かした高品位な画像を記録することができる。また、解像度変換に伴う画質の劣化を防止することができる。
【図面の簡単な説明】
【図1】記録解像度が主副それぞれ倍異なる場合の誤差拡散による二値化画像例を示す図、
【図2】エッジ部をもつ線画の一部を拡大した図、
【図3】疑似輪郭が発生した画像例を示す図、
【図4】疑似輪郭が発生する過程を説明するための図、
【図5】エッジ強調フィルタの一例を示す図、
【図6】本発明にかかる一実施例の画像処理装置を備えたファクシミリ装置の構成例を示すブロック図、
【図7】図6の二値化処理部の詳細な構成例を示すブロック図、
【図8】図7のエッジ強調部の詳細な構成例を示すブロック図、
【図9】図8のエッジ強調演算部が実行するエッジ強調フィルタの参照および着目画素位置およびフィルタ係数を示す図、
【図10】本実施例における副走査方向の変倍処理を説明する図、
【図11】本実施例における主走査方向の変倍処理を説明する図、
【図12】図8のエッジ強調演算部に設定するエッジ強調フィルタ係数の他の例を示す図、
【図13】コピー,送信といった原稿の読取に関わる処理の流れを示すフローチャート、
【図14】コピー,送信といった原稿の読取に関わる処理の流れを示すフローチャートである。
【符号の説明】
100 CPU
110 ROM
120 RAM
130 操作部
140 MODEM
150 NCU
160 モータ
170 モータコントローラ
180 CCD
190 アナログ補正処理部
200 二値化処理部
210 RAM
220 LBP
230 符号器
240 復号器
250 バスアービタ
260 システムバス
270 画像バス[0001]
[Industrial application fields]
The present invention relates to an image processing method and apparatus, and more particularly to an image processing method and apparatus for converting the pixel density when the output pixel density is higher than the pixel density of input image data.
[0002]
[Prior art]
In facsimile machines using thermal and thermal transfer recording, the main scanning resolution of the CCD (solid-state image sensor) or CS (contact sensor) as the image reading device and the main scanning resolution of the thermal head as the recording device are both ITU- It consists of 203.3dpi (equivalent to 8pel / mm), which is the T standard.
[0003]
[Problems to be solved by the invention]
However, the above-described technique has the following problems.
In recent years, the recording method has changed from the thermal method and the thermal transfer method to the LBP (laser beam printer) recording method and the ink jet recording method, and a low-cost and high-resolution recording device is a facsimile recording device. Came to be used as. For example, the mainstream of recording resolution is 300,400,600 dpi for LBP recording and 360 dpi for inkjet recording, but the reading resolution is low, so a sufficiently high recording resolution cannot be effectively utilized.
[0004]
In addition, the facsimile apparatus has been shifted from a dedicated facsimile apparatus to one having a full copy function. From this aspect, the demand for higher image quality is increasing.
[0005]
That is, it is necessary to convert the resolution of image data read in the main scanning direction 203.3 dpi in accordance with a high-resolution recording apparatus. However, this resolution conversion sometimes deteriorates the image quality. For example, if you want to send, select the halftone mode as the reading mode and select the fine mode as the reading resolution, then scan the original image at a resolution of 203.3 dpi in the main scanning direction and 195.58 dpi in the sub-scanning direction. A pseudo halftone process is performed by the average error minimum method or the like, and binarized and transmitted. In the copy mode, binarization is performed in the same way, but when resolution conversion to high resolution is performed according to the resolution of the recording device, the pattern due to halftone processing such as error diffusion method collapses, and stripes become conspicuous. Degradation of image quality will occur.
[0006]
In addition, there is a problem that if a high-resolution reading device is provided in accordance with the resolution of the recording device, it becomes expensive.
[0007]
SUMMARY An advantage of some aspects of the invention is to record a high-quality image utilizing the resolution of a recording apparatus.
[0008]
Another object of the present invention is to prevent image quality deterioration associated with resolution conversion.
[0009]
[Means for Solving the Problems]
The present invention has the following configuration as one means for achieving the above object.
[0010]
The image processing method of the present invention is a transmitting means for transmitting image data of a predetermined resolution, reads an original image, and outputs the image data representing the original image as the multi-valued data per pixel with the predetermined resolution. An image processing method for an image processing apparatus comprising: a reading unit; and a recording unit that records an image based on binarized image data output from the reading unit at a recording resolution different from the predetermined resolution. When a copy mode for recording an image based on the image data output by the reading unit is selected by the recording unit, the image data output by the reading unit is converted into the recording resolution and then binarized, and the reading is performed. When the transmission mode for transmitting the image data output by the means to the transmission means is selected, the resolution conversion is skipped and the reading means outputs Characterized by binarizing the image data.
[0011]
An image processing apparatus according to the present invention includes a selection unit that selects a mode, a transmission unit that transmits image data having a predetermined resolution, an original image that is read, and image data that represents the original image is stored at the predetermined resolution. Reading means for outputting as multivalued data per pixel, conversion means for converting the resolution of image data output by the reading means, and binarization means for converting image data output by the reading means into binary data , An image based on the image data binarized by the binarization unit, a recording unit that records the image at a second resolution different from the first resolution, and an image output by the reading unit by the selection unit When a copy mode in which an image based on data is recorded by the recording unit is selected, the image data output by the reading unit differs from the predetermined resolution by the converting unit. When the transmission mode for converting the recording resolution to binarization by the binarization unit and the selection unit transmitting the image data output by the reading unit to the transmission unit is selected, the resolution by the conversion unit Control means for skipping the conversion and binarizing the image data output from the reading means by the binarizing means.
[0016]
【Example】
Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described in detail with reference to the drawings. In the following, a facsimile apparatus provided with an image processing apparatus according to an embodiment of the present invention will be described. However, the present invention is not limited to a facsimile apparatus, and can be applied to any image processing apparatus that handles image data. Needless to say, you can.
[0017]
First, the pixel density conversion will be briefly described.
[0018]
Pixel density conversion is to increase or decrease the number of pixels of input image data in accordance with the resolution of the output device, and is basically the same as image enlargement / reduction. For example, image data of A4 size with 1728 x 2287 pixels, resolution of main scanning 203.2dpi (equivalent to 8pel / mm), sub-scanning 195.58dpi (equivalent to 7.7line / mm), main scanning 406.4dpi (16pel / mm) Equivalent), and sub-scanning 391.16dpi (equivalent to 15.4line / mm) resolution to convert the pixel density to 4 pixels by converting one pixel to 4456 pixels. Is exactly the same as performing a double enlargement process in each scanning direction. In the following description, processes such as resolution conversion, enlargement / reduction, and pixel density conversion are all treated as digital enlargement / reduction processes.
[0019]
Next, it will be described at which stage of image data processing in the facsimile apparatus the pixel density conversion is performed.
[0020]
Normally, G3 and G4 facsimiles handle binary data in the storage and transmission / reception of image data. Therefore, since the image data already stored in the memory as an image file or the image data received through the line is a binary image, the binary image data is subjected to binary conversion to perform pixel density conversion or enlargement / reduction. The technique for images will be used. As these methods, the SPC method, the nine division method, the projection method, and the like have been proposed. In this embodiment, processing such as pixel density conversion is performed on multi-valued image data before being stored in an image file as facsimile image data, that is, before being binarized.
[0021]
Further, the binarization method is intended for a case where a halftone process such as an error diffusion method or an average error minimum method for expressing a pseudo gradation is performed.
[0022]
A pseudo gradation method using a binary image using error diffusion or the like expresses the density as a ratio of the number of black and white dots per unit area. For example, when expressing a density of 16 in 64 gradations, an average of 16 black dots are present in an 8 × 8 pixel block due to a pattern by halftone processing. The error diffusion method, which diffuses the error between the level of the input image data and the predetermined threshold two-dimensionally, is a binarization method that has both resolution and gradation compared to the dither method. When the pixel size representing one pixel is large, that is, when the recording resolution is relatively low like G3 facsimile, a unique stripe pattern due to a periodic dot pattern becomes conspicuous.
[0023]
Therefore, in order to take advantage of the error diffusion method, it is necessary to perform binarization after performing pixel density conversion before binarization processing by the error diffusion method to obtain high resolution data. However, conventionally, even in a facsimile machine equipped with a recording device with a resolution of 406.4 dpi, binarization processing is performed at a resolution of 203.2 dpi in all cases including copying, because of the relationship with transmission / reception data. Doubled and recorded.
[0024]
Therefore, in this embodiment, when it is known in advance that the recording apparatus has a high resolution, such as copying, an error diffusion method is performed after pixel density conversion is performed at the stage of multi-value data before binarization. By binarizing, the display resolution of error diffusion is increased and the size of one pixel for density display is reduced. This makes it possible to obtain a printed image in which the stripe pattern unique to the error diffusion method is not conspicuous. In addition, since the pattern caused by the error diffusion process is not destroyed, deterioration of the image quality can be prevented.
[0025]
Fig. 1 is a sample of a binarized image by error diffusion when the recording resolution is different between the main and the sub. Get a good impression.
[0026]
In addition, FIG. 2 is an enlarged view of a part of a line drawing having an edge portion, but the image shown in FIG. 2 (b) is error-diffused after pixel density conversion, compared to FIG. 2 (a). The notch in the edge portion is reduced, and an image having a sharp edge can be obtained.
[0027]
In this embodiment, pixel density conversion is performed after edge enhancement as resolution compensation is performed on image data read by a CCD. Here, the edge enhancement processing is to add the image data subjected to two-dimensional second-order differentiation to the image data of interest. The reason for performing pixel density conversion after edge enhancement is that if pixel density conversion is performed as a simple overlap process and then edge enhancement is performed, a high-frequency component is superimposed by Laplacian calculation in the image space that has been subjected to overlap processing. This is because a pseudo contour is generated at the edge portion.
[0028]
Fig. 3 shows an example of an image with pseudo contours. A square all-black image is doubled by double-enlarging both main scanning and sub-scanning by simple overlap processing and then edge-enhanced. There is a state in which a pseudo contour is generated.
[0029]
FIG. 4 is a diagram for explaining a process in which a pseudo contour is generated. In order to simplify the explanation, image data is considered here in one dimension. Also, the coefficient of the edge enhancement filter is [-1,2, -1] as shown in FIG.
[0030]
The upper part of FIG. 4 shows the result when edge enhancement processing is performed with the filter of FIG. 5 after double enlargement by simple overlap processing. The lower part shows the result when the simple overlap processing is performed after the edge enhancement processing by the same filter. When the binarization threshold is set to 30, in the process shown in the upper part of FIG. 4, the image data D2 at the edge portion becomes white by the edge enhancement process, and the image data D2 ′ generated by the overlap process becomes black. This result appears as a pseudowire. On the other hand, such a problem does not occur in the processing shown in the lower part.
[0031]
For the above reasons, in this embodiment, when it is known in advance that the output resolution is high, the input multi-valued image data is binarized in the next processing flow.
[0032]
(1) Perform edge enhancement for resolution compensation on input multi-valued image data
[0033]
(2) Perform pixel density conversion according to the output resolution for edge-enhanced image data
[0034]
(3) Binarize the pixel density converted image data using error diffusion method etc.
[0035]
In the following, an example in which luminance density conversion is performed after edge enhancement will be described. As is apparent from the above description, luminance density conversion processing is performed between edge enhancement processing and binarization processing. It may be performed after the enlargement process.
[0036]
Next, the amount of image data will be described.
[0037]
As described above, in order to improve image quality, it is desirable to perform pixel density conversion before binarization, but on the other hand, the image data after binarization is high-resolution image data. There is a drawback that the amount of data increases because the data is output. In particular, when image data is encoded and stored by an encoding method such as MH, MR, or MMR, the image data obtained by error diffusion processing increases conversely due to encoding, and therefore the amount of data becomes a problem. .
[0038]
Therefore, in this embodiment, in order to alleviate the problem of an increase in the amount of data compared to a general facsimile machine or the like, the output resolution is high, for example, when copying or by direct transmission that starts reading after recognizing the partner machine using a communication protocol. Only when the resolution is known in advance, pixel density conversion is performed before binarization.
[0039]
Hereinafter, the flow of image data and a specific configuration example of the binarization processing unit in the present embodiment will be described in detail.
[0040]
FIG. 6 is a block diagram illustrating a configuration example of a facsimile machine including the image processing apparatus according to the embodiment of the present invention.
[0041]
In the figure,
[0042]
[0043]
Various modes can be selected by the
[0044]
Further, the reading mode (image quality) can be selected by the
[0045]
Further, the resolution (reading pitch) in the sub-scanning direction when reading the document image can be selected by the
[0046]
In this embodiment, the case where the photo mode is selected will be described.
[0047]
Also, the resolution at the time of reading the document is 203.2 dpi in the main scanning direction and one of the above three types in the sub-scanning direction according to the operator's selection, but when the photo mode and the memory transmission mode are selected, the standard mode ( Only two types (203.2 dpi × 97.79 dpi) or fine mode (203.2 dpi × 195.58 dpi) can be selected.
[0048]
In general, a facsimile apparatus can receive and record an image transmitted in the standard mode and the fine mode, but cannot receive and record an image transmitted in the superfine mode. For this reason, if the original facsimile machine does not support the super fine mode when it is going to be scanned and stored in the memory in the super fine mode and stored in the memory, it will be thinned out on the transmission side. Resolution conversion is performed by processing or the like. However, if resolution conversion, such as thinning-out processing, is performed on an image binarized by halftone processing, the pattern by halftone processing is destroyed and image quality is degraded. Therefore, if only the standard mode and the fine mode can be selected, resolution conversion is not performed after binarization, and deterioration of image quality can be prevented. Furthermore, since halftone images have relatively poor encoding efficiency, the use of the superfine mode can reduce the amount of data and save memory usage.
[0049]
Note that the reading resolution in the copy mode may be set in advance or may be selectable by the operator.
[0050]
140 is a MODEM that modulates the encoded image data and demodulates the received data. An
[0051]
[0052]
[0053]
A
[0054]
A
[0055]
A
[0056]
Next, a flow of processing related to reading of a document such as copying and transmission will be described with reference to flowcharts shown in FIGS. These processes are executed based on instructions from the
[0057]
First, it is determined whether or not the instruction given through the
[0058]
On the other hand, if it is determined in step S702 that the copy is a multi-copy, reading by the
[0059]
In the case of multi-copy, since the same image data is output a plurality of times, it is necessary to store image data for one page in the apparatus. Therefore, the binary image data is encoded by the
[0060]
Also, here, when the capacity of the memory for storing the code data is small or an image with poor encoding efficiency (for example, the information amount of the binarized image data increases after resolution conversion to high resolution) In this case, code data for one page may not be stored in the
[0061]
If it is determined in step S701 that the copy operation is not performed, it is a transmission operation, and the process proceeds to step S801 to determine whether or not the memory transmission for transmitting the read image data once in the memory is instructed. to decide. Here, if it is determined that it is not memory transmission, this is a case where direct transmission for transmitting while reading a document image is instructed. In this case, the connection with the communication partner is first executed, and the recording resolution of the partner is confirmed by a facsimile protocol. That is, in step S802, it is determined whether or not the partner main scanning recording resolution is a high resolution such as 406.4 dpi and communication in the ultra fine mode is possible.
[0062]
If the destination main scanning recording resolution is not high resolution but 203.2 dpi (8 dots / mm), scanning is started in step S803 with the resolution (standard, fine, or superfine) selected by the operator. That is, the image data of the document read by the
[0063]
In step S804, the
[0064]
Then, the above process is repeated until it is determined in step S806 that the process is ended.
[0065]
On the other hand, if it is determined in step S802 that the recording resolution of the other party in the main scanning direction is high and communication in the ultra fine mode is possible, in step S807, the original image is read (main scanning direction 203.2 dpi, Sub-scanning direction 391.16 dpi) is started, and binarization is performed after the
[0066]
If it is determined in step S801 that the transmission is a memory, reading of the document is started in step S811. Here, since it is assumed that reading is performed in photo mode, the resolution in the sub-scanning direction that can be selected by the operator is either 97.79 dpi (standard) or 195.58 dpi (fine), and 391.16 dpi (super fine) is selected. Ban. This can be confirmed by the display of the
[0067]
Next, the reception operation will be described. Since this is a procedure similar to the conventional one, illustration is omitted.
[0068]
Code data received from the
[0069]
Here, when the resolution of the received image is different from the output resolution, pixel density conversion is performed by processing in the
[0070]
As described above, in the case of the copy mode in which the output resolution is known in advance or the direct transmission in which the output resolution of the communication partner is known, the
[0071]
Next, the
[0072]
FIG. 7 is a block diagram showing a detailed configuration example of the
[0073]
In FIG. 7, 2001 is an edge enhancement unit, 2002 is a luminance density conversion unit, 2003 is a main scanning scaling unit, 2004 is an error diffusion unit, 2005 is a clock control unit including a selector and a mask processing unit, and 2006 is an OR gate. .
[0074]
FIG. 8 is a block diagram showing a detailed configuration example of the
[0075]
In the figure,
[0076]
Next, the operation of the
[0077]
Image data read by the
[0078]
The image data output from the analog
[0079]
When the binarization processing is activated by the trigger A, the image data output from the analog
[0080]
The
[0081]
The
[0082]
The edge
[0083]
On the other hand, when the binarization process is activated by the trigger B, unlike the case of the trigger A, the
[0084]
As a result, for one step of the
[0085]
The luminance
[0086]
The 6-bit / pixel image data converted into density data by the
[0087]
The pixel density conversion in the main scanning direction in this embodiment is realized by clock thinning, and is based on a simple pixel overlap process. Here, the magnification control is performed by controlling the input pixel clock MCLK / 2 and the output pixel clock CLK2.
[0088]
When 100 to 200% scaling processing is instructed by the
[0089]
As shown in Figure 11, main scan Magnification In the unit 2003, the image data D0, D1, D2,... Transferred in synchronization with the falling edge of MCLK / 2 are sampled again at the rising edge of CLK2, so that the image data D00, D01, D10, D20 , Is converted to….
[0090]
The image data whose pixel density is converted in the main scanning direction is input to the
[0091]
As described above, in the main scanning direction, duplication and thinning processing after luminance density conversion by clock control is performed, and in the sub-scanning direction, two types of triggers given to the
[0092]
In the above-described embodiment, an example in which the edge enhancement filter coefficient shown in FIG. 9 (b) is used has been described, but if this edge enhancement filter coefficient is shown in FIGS. 12 (a) and (b), an edge It is possible to suppress the side effects of emphasis. In this case, the target pixel is F shown in FIG. 9A, and the pixel two lines before is referred to. For this reason, the data reference for the edge enhancement calculation is not performed on the data of the same line, and the side effect due to the edge enhancement after the overlap processing can be suppressed.
[0093]
As described above, according to this embodiment, when the read image data is converted into a binary image by the error diffusion method that expresses the density with the number of black dots per unit area and output, the binary image is converted into a binary image. By performing pixel density conversion before value conversion, it is possible to reduce the area of one dot of density expression, and it has the effect of making the texture unique to halftone processing inconspicuous in areas where the density gradient is relatively gentle. . Furthermore, by reducing the notch at the edge portion of the character or line drawing portion, it is possible to improve the image quality, such as improving the cutting of the edge portion of the character or line drawing portion.
[0094]
In addition, by implementing a pixel density conversion function with a simple clock control unit and two different triggers for line buffer control for edge enhancement, a line buffer for expanding in the sub-scanning direction is newly established. A binarization processing unit can be configured. Furthermore, a binarization processing unit that obtains a high-density binary image can be configured only by adding a simple control circuit and an error buffer for a necessary enlarged image.
[0095]
Of course, the enlargement process after edge enhancement prevents duplication of the image edge part (caused by superposition of high frequency components) as shown in Fig. 3, which is caused by duplicating the same data before edge enhancement. It is possible to obtain a good enlarged image.
[0096]
The line buffer necessary for edge enhancement may be a size that can store an image with a resolution of 203.2 dpi, and an increase in memory accompanying the addition of functions can be minimized.
[0097]
Furthermore, the image transfer clock of each calculation block in the enlargement process in the main scanning direction of the binarization processing unit uses a continuous clock in the edge enhancement and luminance density conversion processes, and the error diffusion process corrects the clock used for the edge enhancement. Arbitrary enlargement processing can be realized only by controlling the image transfer clock by thinning out several times the clock. In addition, since the image transfer clock for edge enhancement processing is a continuous clock, the connectivity with the CCD and the analog correction processing circuit is improved, and the line buffer of the edge enhancement portion can be reduced by one line with respect to the number of reference lines. .
[0098]
Further, the recording density can be kept constant by changing the luminance density conversion table in accordance with the pixel density to be converted in consideration of the density characteristics of the recording apparatus having different binary image recording characteristics depending on the resolution.
[0099]
Also, when transmitting in memory transmission mode, scanning in super fine mode (203.2dpi x 391.16dpi) is prohibited when scanning a document in photo mode, so do not perform resolution conversion after binarization. Can do.
[0100]
[Other embodiments]
In the above-described embodiment, in addition to the copy mode, when it is possible to communicate with the other party in the ultra-fine mode in the direct transmission mode, resolution conversion is performed before binarization. If the binarization setting is performed without converting the resolution, the reading of the original can be started immediately, which is efficient. In this case, selection of the ultra fine mode is prohibited. In addition, the super fine mode can be selected by registering the receiving capability of the other party corresponding to the one-touch key for each destination so that it can be selected when the recipient can receive in the super fine mode. In the transmission to other destinations, when the photo mode is further selected, the selection of the super fine mode is prohibited.
[0101]
In this way, the time from when the operator sets the document to when the operator removes the document can be shortened, which is efficient. At this time, since selection of the reading resolution is controlled, it is possible to prevent image quality deterioration due to resolution conversion.
[0102]
Further, in each of the above-described embodiments, binarization is performed by a process corresponding to each mode, so that copying of a document can be performed without deterioration in image quality in the copy mode, and resolution conversion can be performed in the transmission mode. It is possible to prevent degradation of image quality and reduction in processing efficiency due to.
[0103]
Further, by using a facsimile reading device (203.2 dpi), it is possible to construct the apparatus at a low cost, and transmit it while reading the resolution in the main scanning direction at the time of transmission (without performing resolution conversion). In addition, with the above processing, a high-quality copy image can be obtained even when a reading device having a resolution lower than the recording resolution is used, and a facsimile machine that maximizes the high resolution of the printer can be configured at low cost. In addition, by minimizing additional functions for processing in this case, no significant circuit correction is required compared to the conventional case.
[0104]
In the above-described embodiments, the error diffusion method has been described as an example of halftone processing, but it is needless to say that halftone processing with good density preservation, such as a minimum average error method, can be applied. Yes.
[0105]
Note that the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device.
[0106]
It goes without saying that the present invention can also be applied to a case where the present invention is achieved by supplying a system or apparatus with a program recorded in a storage medium. As a recording medium for supplying the program, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0107]
【The invention's effect】
As described above, according to the present invention, it is possible to record a high quality image utilizing the resolution of the recording apparatus. In addition, it is possible to prevent deterioration in image quality due to resolution conversion.
[Brief description of the drawings]
FIG. 1 is a diagram showing an example of a binarized image by error diffusion when the recording resolution is twice different between main and sub;
FIG. 2 is an enlarged view of a part of a line drawing having an edge part.
FIG. 3 is a diagram showing an example of an image in which a pseudo contour is generated;
FIG. 4 is a diagram for explaining a process in which a pseudo contour is generated;
FIG. 5 is a diagram illustrating an example of an edge enhancement filter;
FIG. 6 is a block diagram illustrating a configuration example of a facsimile machine including an image processing apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram showing a detailed configuration example of the binarization processing unit in FIG.
FIG. 8 is a block diagram showing a detailed configuration example of the edge emphasizing unit in FIG.
FIG. 9 is a diagram showing edge enhancement filter reference, pixel position of interest, and filter coefficient executed by the edge enhancement calculation unit of FIG. 8;
FIG. 10 is a diagram for explaining a scaling process in the sub-scanning direction in the present embodiment;
FIG. 11 is a diagram illustrating a scaling process in the main scanning direction in the present embodiment;
FIG. 12 is a diagram showing another example of edge enhancement filter coefficients set in the edge enhancement calculation unit of FIG.
FIG. 13 is a flowchart showing a flow of processing related to reading a document such as copying and transmission;
FIG. 14 is a flowchart showing a flow of processing relating to reading of a document such as copying and transmission.
[Explanation of symbols]
100 CPU
110 ROM
120 RAM
130 Operation unit
140 MODEM
150 NCU
160 motor
170 Motor controller
180 CCD
190 Analog correction processor
200 Binarization processing section
210 RAM
220 LBP
230 Encoder
240 decoder
250 Bus Arbiter
260 System bus
270 image bus
Claims (6)
前記読取手段が出力する画像データに基づく画像を前記記録手段に記録させるコピーモードが選択されると、前記読取手段が出力する画像データを前記記録解像度に変換してから二値化し、
前記読取手段が出力する画像データを前記送信手段に送信させる送信モードが選択されると、前記解像度の変換をスキップして、前記読取手段が出力する画像データを二値化することを特徴とする画像処理方法。 Transmitting means for transmitting image data of a predetermined resolution, reading means for reading a document image, and outputting image data representing the document image as multi-valued data per pixel with the predetermined resolution, and the reading means An image processing method of an image processing apparatus having a recording unit for recording an image based on binarized image data output at a recording resolution different from the predetermined resolution,
When a copy mode in which an image based on image data output by the reading unit is recorded on the recording unit is selected, the image data output by the reading unit is converted into the recording resolution and then binarized,
When the transmission mode for transmitting the image data output from the reading unit to the transmitting unit is selected, the resolution conversion is skipped and the image data output from the reading unit is binarized. Image processing method.
所定の解像度の画像データを送信する送信手段と、
原稿画像を読み取り、前記原稿画像を表す画像データを前記所定の解像度、かつ、一画素当り多値のデータとして出力する読取手段と、
前記読取手段が出力する画像データの解像度を変換する変換手段と、
前記読取手段が出力する画像データを二値データに変換する二値化手段と、
前記二値化手段により二値化された画像データに基づく画像を、前記第一の解像度とは異なる第二の解像度で記録する記録手段と、
前記選択手段により、前記読取手段が出力する画像データに基づく画像を前記記録手段で記録させるコピーモードが選択されると、前記読取手段が出力する画像データを、前記変換手段により前記所定の解像度とは異なる記録解像度に変換してから前記二値化手段により二値化し、前記選択手段により、前記読取手段が出力する画像データを前記送信手段に送信させる送信モードが選択されると、前記変換手段による解像度変換をスキップして、前記読取手段が出力する画像データを前記二値化手段により二値化する制御手段とを有することを特徴とする画像処理装置。A selection means for selecting a mode;
Transmitting means for transmitting image data of a predetermined resolution;
Reading means for reading a document image and outputting image data representing the document image as multivalued data per pixel with the predetermined resolution;
Conversion means for converting the resolution of the image data output by the reading means ;
Binarization means for converting image data output by the reading means into binary data ;
Recording means for recording an image based on the image data binarized by the binarization means at a second resolution different from the first resolution ;
By the selection unit, when the copy mode to record an image based on image data the reading unit outputs at the recording means is selected, the image data to which the reading means outputs a predetermined resolution by the converting means Is converted to a different recording resolution , then binarized by the binarizing means, and the selecting means selects the transmission mode for sending the image data output by the reading means to the transmitting means. skip the resolution conversion by the image processing apparatus according to claim image data to which the reading means outputs to a control means for binarizing by said binarizing means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14872995A JP3673558B2 (en) | 1994-06-30 | 1995-06-15 | Image processing method and apparatus |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6-149424 | 1994-06-30 | ||
| JP14942494 | 1994-06-30 | ||
| JP14872995A JP3673558B2 (en) | 1994-06-30 | 1995-06-15 | Image processing method and apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0879503A JPH0879503A (en) | 1996-03-22 |
| JP3673558B2 true JP3673558B2 (en) | 2005-07-20 |
Family
ID=26478835
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14872995A Expired - Fee Related JP3673558B2 (en) | 1994-06-30 | 1995-06-15 | Image processing method and apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3673558B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3546629B2 (en) * | 1997-02-12 | 2004-07-28 | ブラザー工業株式会社 | Image processing device |
-
1995
- 1995-06-15 JP JP14872995A patent/JP3673558B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0879503A (en) | 1996-03-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0554002B1 (en) | Method and apparatus for generating and transmitting vectorised image data | |
| KR0156956B1 (en) | Method and device for forming image | |
| US6289137B1 (en) | Image processing apparatus and method | |
| JP3927388B2 (en) | Image processing apparatus, image processing method, and recording medium | |
| JP3396992B2 (en) | Image processing method and apparatus | |
| JP3673558B2 (en) | Image processing method and apparatus | |
| US6061151A (en) | Image processing method and apparatus | |
| JP3495406B2 (en) | Image forming device | |
| JP2839006B2 (en) | Image output device | |
| JP2004153817A (en) | Method of forming output image by transforming input image | |
| JP2002158879A (en) | Method and apparatus for compressing and decompressing gradation images | |
| JP3279327B2 (en) | Image processing method | |
| JP3147246B2 (en) | Image processing apparatus and method | |
| JP3363684B2 (en) | Image processing method and apparatus, and image forming apparatus | |
| JPH11187253A (en) | Image processing apparatus and method | |
| JPH05328144A (en) | Picture communication equipment | |
| JP3620699B2 (en) | Scanner system and facsimile apparatus and computer apparatus used therefor | |
| JP3092194B2 (en) | Image synthesis device | |
| JP2001105670A (en) | Imaging apparatus | |
| JP3190085B2 (en) | Image processing apparatus and method | |
| JP3486453B2 (en) | Digital copying apparatus and print processing method in the apparatus | |
| JPH06141169A (en) | Picture communication equipment | |
| JPH05314251A (en) | Image communication device | |
| JPH05328145A (en) | Picture communication equipment | |
| JP2006166217A (en) | Image processing device with reduced layout function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040525 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040528 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040720 |
|
| 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: 20050401 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050425 |
|
| 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: 20090428 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090428 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100428 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110428 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120428 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130428 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130428 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140428 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |