JP3595579B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP3595579B2
JP3595579B2 JP22582194A JP22582194A JP3595579B2 JP 3595579 B2 JP3595579 B2 JP 3595579B2 JP 22582194 A JP22582194 A JP 22582194A JP 22582194 A JP22582194 A JP 22582194A JP 3595579 B2 JP3595579 B2 JP 3595579B2
Authority
JP
Japan
Prior art keywords
color
marker
area
data
determination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP22582194A
Other languages
Japanese (ja)
Other versions
JPH0870382A (en
Inventor
俊男 林
文夫 三上
茂雄 山形
喜代久 杉島
正幸 広瀬
健二 原
隆 野中
栄一 本山
康治 新井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP22582194A priority Critical patent/JP3595579B2/en
Priority to US08/517,824 priority patent/US5974171A/en
Publication of JPH0870382A publication Critical patent/JPH0870382A/en
Application granted granted Critical
Publication of JP3595579B2 publication Critical patent/JP3595579B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K2019/06215Aspects not covered by other subgroups
    • G06K2019/06225Aspects not covered by other subgroups using wavelength selection, e.g. colour code

Description

【0001】
【産業上の利用分野】
本発明は、複写機等の画像処理装置及び画像処理方法に関し、特に原稿上に所定の色マーカでマーキングされた色の情報に基づいて所定のマーカ編集を施すものに関する。
【0002】
【従来の技術】
従来より、カラー複写機において、白黒の原稿上に市販のマーカペンにより所望範囲を囲んだり、なぞったりしてその範囲の色付けを行うマーカ編集機能が提案されている。このようなマーカ編集機能は、例えば図37(a)に示すように下地が白色の原稿上において、黒線で決定されている所望の閉区間1000の内側を青の色マーカ1001で着色することにより、同図(b)に示すように閉区間全体を青に着色してプリントアウトするペイントモードや、図38(a)に示すように下地が白色の原稿上において、所望の黒線1002を赤の色マーカ1003で線の周囲を着色することにより、同図(b)に示すように黒線を赤線に変換着色してプリントアウトするラインモードなど複数のモードを具備しているものが一般的である。
【0003】
先ず、図37に示したペイントモードの判定について説明する。同図(a)の画像の読み取り動作中、あるタイミングで読み取りラインがラインAであるとすると、画素データの出力順が矢印方向の場合、…、白、黒、青、白、……、白、青、黒、白、…の順で色データが出力される。よって、最初に現れた青の直前に黒があることを検出することで、最初の青の画素からペイントモードが開始されたことが判定される。また、最後の青の直後が黒であることを検出することで、最後の青の画素でペイントモードが終了したことが判定される。従って、ペイントモード間の画素(青、白、……、白、青)をすべて青データとして出力することでペイントモードが実現される。
【0004】
次に、図38に示したラインモードの判定について説明する。同図(a)の画像読み取り動作中、あるタイミングでの読み取りラインがラインBであるとすると、画素データの出力順が矢印方向の場合、…、白、赤、黒、……、黒、赤、白、…の順で色データが出力される。よって、最初に現れた赤の直前に白があることを検出することで、最初の赤の画素からラインモードが開始されたことが判定される。また、最後の赤の直後に白であることを検出することで、最後の赤の画素でラインモードが終了したことが判定される。従って、ラインモード間の画素(赤、黒、……、黒、赤)のうち、赤の画素を白データに、また黒の画素を赤データとして出力することでラインモードが実現される。
【0005】
以上のように、最初にマーカの色が検出された画素の直前の画素が白色であるか黒色であるかで開始モードを決定し、開始モードがペイントモードの場合は最後にマーカの色が検出された画素の直後の画素が黒色のときモードを終了し、開始モードがラインモードの場合は最後にマーカの色が検出された画素の直後の画素が白色のときモードを終了するように制御される。
【0006】
【発明が解決しようとする課題】
しかしながら、色変換モードはユーザによるマーカ着色の状態で決定されるものであり、例えば図39(a)に示すように、ユーザが原稿画像1004に対してラインモードマーカ処理を所望し、マーカ着色したとき重ね塗りによる塗りむらのために色1005が生じることがあり、以下のような不具合があった。即ち、色1005は、通常の塗り状態の色1006に比べてマーカ色が濃いので、色1005と色1006が個別の色であると誤判定されて、同図(b)に示すような出力結果となることがあった。
【0007】
また、原稿に使用される用紙の色は、白が主であるが再生紙のように少し色が付いたものや、光沢のあるものが存在すること、マーカペンの色にばらつきがあること、原稿を読み取るセンサのカラーフィルタの特性にもばらつきがあること等の要因で読み取った色の誤判定が発生し、ユーザの意図しない出力結果をとなる場合もあった。
【0008】
また、マーカペンの色は、同じ名称(例えば「赤」)であっても国によって異なっている。さらに、販売されている(市場に出回っている)マーカペンの色は5色の国もあれば、8色の国もあり統一されていない。このため、全世界で使用されているカラーマーキング用のマーカペンの色をすべて正しく認識することは困難であり、色の誤判定が発生していた。
【0009】
本発明は上述した点に着目してなされたものであり、読み取った色の誤判定を防止し、正確なマーカ編集を行うことができる画像処理装置及び画像処理方法を提供することを目的とする。
【0010】
【課題を解決するための手段】
上記目的を達成するため本発明は、原稿を読み取る原稿読み取り手段と、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定手段とを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理装置において、前記所定の色マーカによってマーキングされた色データを予め読み取って登録するためのマーカ色登録手段を設け、前記マーカ色登録手段は、同一の色マーカで複数回重ね塗りされた領域における色データを読み取ってマーカ色登録し、前記マーカ色判定手段は、原稿の読み取り時に前記登録された色データと読み取った色データとを比較して、何度塗りかに関係なく同じ色のマーカとして色判定するようにしたものである。
【0013】
さらに同じ目的を達成するため本発明は、原稿を読み取る原稿読み取り手段と、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定手段とを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理装置において、当該装置が販売される地域を判定する地域判定手段を設け、前記マーカ色判定手段は、当該装置が販売される地域に応じて色判定用のパラメータを変更するようにしたものである。
【0014】
また、前記地域判定手段は、当該装置の変倍設定に基づいて販売地域を判定したり、当該装置の印字ヘッドに付加された地域情報に基づいて販売地域を判定したり、当該装置に供給される交流電源の特性に基づいて販売地域を判定したりすることが望ましい。
【0015】
また、当該装置の印字ヘッドに色判定用パラメータを記憶するパラメータ記憶手段を設け、前記マーカ色判定手段は、前記パラメータ記憶手段に記憶された色判定用パラメータを使用して色判定を行うことが望ましい。
【0016】
また、前記印字ヘッド内に格納されているインクの色と、前記色判定用パラメータの主色の色とが同一であることが望ましい。
さらに同じ目的を達成するため本発明は、原稿を読み取る原稿読み取りステップと、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定ステップとを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理方法において、前記所定の色マーカによってマーキングされた色データを予め読み取って登録するマーカ色登録ステップを設け、前記マーカ色登録ステップにおいて、同一の色マーカで複数回重ね塗りされた領域における色データを読み取ってマーカ色登録し、前記マーカ色判定ステップにおいて、原稿の読み取り時に前記登録された色データと読み取った色データとを比較して、何度塗りかに関係なく同じ色のマーカとして色判定するようにしたものである。
さらに同じ目的を達成するため本発明は、原稿を読み取る原稿読み取りステップと、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定ステップとを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理方法において、当該画像処理方法を実施する画像処理装置が販売される地域を判定する地域判定ステップを設け、前記マーカ色判定ステップは、当該画像処理方法を実施する画像処理装置が販売される地域に応じて色判定用のパラメータを変更するようにしたものである。
【0017】
【作用】
請求項1の画像処理装置及び請求項8の画像処理方法によれば、所定の色マーカによってマーキングされた色データが予め登録され、同一の色マーカで複数回重ね塗りされた領域における色データを読み取ってマーカ色登録し、原稿の読み取り時に前記登録された色データと読み取った色データとを比較することにより何度塗りかに関係なく同じ色のマーカとして色判定される。
【0022】
請求項の画像処理装置及び請求項9の画像処理方法によれば、当該装置が販売される地域が判定され、その販売地域に応じて色判定用のパラメータが変更される。
【0023】
請求項乃至の画像処理装置によれば、当該装置の販売地域は、当該装置の変倍設定、当該装置の印字ヘッドに付加された地域情報、又は当該装置に供給される交流電源の特性に基づいて判定される。
【0024】
請求項の画像処理装置によれば、当該装置の印字ヘッドに設けられたパラメータ記憶手段に色判定用パラメータが記憶され、該記憶された色判定用パラメータを使用して色判定が行われる。
【0025】
【実施例】
以下図面を用いて、本発明の実施例について説明を行う。
【0026】
図1は、本発明の第1の実施例にかかるマーカ編集回路の構成を示すブロック図である。同図において、51はカラ−CCDセンサであり、原稿の読み取り画像信号をRGBの信号に色分解して信号をアナログアンプ52に出力する。アナログアンプ52は、入力信号に対して所定のゲイン(増幅率)で増幅を行なう。この増幅信号はA/Dコンバータ53に入力され、アナログ信号が8ビットのデジタル信号に変換される。A/Dコンバータ53のデジタル信号出力は、色コード判定回路54及びマーカ色登録回路55に入力される。色コード判定回路54は、A/Dコンバータ53からの入力信号と、マーカ色登録回路55の出力信号とを比較し、入力信号を判定されたマーカ色に対応した6ビットのコード信号に変換する。即ち、入力される256×256×256=16777216色の色信号をあらかじめ決められた64色の色コードに変換する。
【0027】
これは、マーカ原稿上に存在する色が白色と黒色と市場で販売されているマーカ色に限られるということを前提としたものであり、以降のデータ処理回路の規模を小さくするための回路である。色コード判定回路54とマーカ色登録回路55の詳細な動作については後述する。
【0028】
色コード判定回路54の出力信号は、領域判定回路56に入力され、読み取っている領域がノーマル領域、ライン領域又はペイント領域のいずれの領域に属しているかを判定する(それぞれの領域についての説明は後述する)。領域判定回路56の出力信号は、出力色判定回路57に入力され、出力色判定回路57は、色コードと領域モードに従って出力する色を決定し、決定した色に応じた8ビットの画像データに変換して次段の画像処理回路にデータを送出する。
【0029】
領域判定回路56における、ペイントモード及びラインモードの2つの処理モードの決定は以下の条件による。
【0030】
(1)ペイントモード:ノーマル領域内にあって、読み取り色が「黒」→「色」に遷移したとき最初の「色」が読み取られた画素からペイントモードに切り替え、「色」→「黒」の遷移が検出されるまでペイントモードは継続する。「色」→「黒」の遷移が検出されたとき、ノーマルモードに戻る。
【0031】
(2)ラインモード:ノーマル領域内にあって、読み取り色が「白」→「色」に遷移したとき最初の「色」が読み取られた画素からラインモードに切り替え、「色」→「白」の遷移が検出されるまでラインモードは継続する。「色」→「白」の遷移が検出されたとき、ノーマルモードに戻る。
【0032】
上記のルールに従い、原稿上の画像を読み取りながらマーカ処理が施された画像信号がマーカ編集回路より出力される。
【0033】
次にマーカ色登録回路55について説明する。マーカ色登録回路55は図2に示すように、原稿用紙の所定の位置に登録したいマーカによる色パッジシート60をユーザが作成し、これを読み取り、データ処理することにより使用するマーカの色登録を行う。即ち、図2においては、領域61a〜61cを緑マーカの着色領域、62a〜62cをピンクマーカの着色領域と定め、ユーザは領域61aを使用したい緑マーカにより2度塗りすることなく1度塗りで着色し、同様に領域61bを緑マーカの2度塗りにより着色、領域61cを緑マーカの3度塗りにより着色する。同様に、領域62a〜62cを使用したいピンクマーカによりそれぞれ1度塗り、2度塗り、3度塗りする。このようにして作成した色パッジシート60を不図示のスキャナ原稿台の所定位置にセットし、カラーCCD51による読み取りを開始する。A/Dコンバータ53により、8ビットのデジタル信号に変換されたパッジの画像信号は、マーカ色登録回路55に入力される。
【0034】
マーカ色登録回路55の構成を図3に示す。図中10は、平均化回路であり、入力される色情報をRGB毎に例えば64画素分サンプルし、平均値を算出する。11はRmax検出回路であり、平均化回路10の出力のうちR信号がFFh(8ビット全て1、即ちR成分が最大値)のとき、信号1を出力し、そうでないとき(00h〜FEh)は信号0を出力する。12及び13もRmax検出回路11と同様の機能を持つGmax検出回路及びBmax検出回路であり、それぞれG信号、B信号の最大値か否かを検出する。14は比率演算回路であり、平均化回路10、Rmax検出回路11、Gmax検出回路12及びBmax検出回路13の出力信号が入力される。比率演算回路14は、入力されるR,G,B信号の比率を演算し、各色6ビットの比率データとして出力する。16はバックアップ用のバッテリであり、装置の電源が落されたときも、メモリ15に所定の電圧を与え保存したデータが消去されないように具備されたものである。
【0035】
図4は、比率データの算出ルールの表を示す。この図4からわかるように、比率算出の際、基準となる色をRGBのいずれにするかを決定する決定要因はRmax検出回路11〜Bmax検出回路13の出力による。
【0036】
図4においてType1は、Rmax検出回路11〜Bmax検出回路13がすべて0を出力する場合である。このときは、2番目にデータが大きい色を基準にして、残りの2色を基準に対してどのくらい大きいかを表す。例えば入力するRGBデータがそれぞれ43,A8,67であったときは、Bデータ(67)を基準にするということになる。比率演算回路14の比率データは前述のとおり6ビットであるから、基準データを中間の値である20hと定める。その他の色(ここではRとG)に関しては基準に対して×1/4〜×4までの比を6ビットで表現することを考え、×1/4を00h、×4をFFhにあてると、データの1ステップの差が基準値に対する0.0625倍の差となる。つまり、(R,G,B)=(43,A8,67)ならば比率演算回路14から出力するRGBの各比率データは、
R:G:B=0.6505:1.6311:1であるので、近似して(R,G,B)=(1Ah,2Ah,20h)となる。
【0037】
Type2〜4は、Rmax検出回路11〜Bmax検出回路13のうちいずれか1回路のみ1を出力する場合である。このときは、最大値を示す色(1を出力する回路に対する色)を基準値20hとして、残りの2色を基準に対してどのくらい大きいかを示す。
【0038】
Type5〜7は、Rmax検出回路11〜Bmax検出回路部13のうちいずれか2回路が1を出力する場合である。このときは、大きさが1番目と2番目のデータはともにFFhなので、これを基準値20hとする。当然、最小値を示す色は20hより小さい値が算出される。このようなマーカ色は後段の色コード判定回路54により判定される色コードが、最小値を示す色の大きさの情報のみで判定されることになるが、例えば、Type7に相当する色は、極端にマゼンタ成分が多い色であり、このような色特性を有する市場で販売されているマーカの種類は、せいぜい1〜2種類であるので判別は容易である。
【0039】
Type8は、Rmax検出回路11〜Bmax検出回路13が全て1を出力する場合である。このようなデータは、純白のデータであるため、所定のパッジ位置にマーカが塗られていないことを示す。もしも、Type8に相当するデータが入力した場合は、オペレータに対してブザーによる警告を出すように不図示の制御回路で制御を行う。
【0040】
平均化回路10は、図2に示した色パッジを61a,61b,61c,62a,62b,62c…の順に入力してゆく。緑マーカのRGBの比率は61a,61b,61cによって決定されるが、図5(A)に示すようにどの信号もFFhより小さく、またパッジの差による比率の変化はほどんどない。よって、3つのパッジの比率の平均値として、比率演算回路14より(R,G,B)=(1Ah,2Ah,20h)を出力してメモリ15にデータを書き込む。
【0041】
これに対して、図2の色パッジ62a〜62cのピンクマーカによる色パッジの読み取りデータは、図5(B)のようになっており、R信号が1度塗りと2度塗りのときFFh,B信号が1度塗りのときFFhとなっている。従ってパッジの差による比率が62a〜62cでそれぞれ異なっている。これは、ピンクマーカがR(赤)の補色であるC(シアン)成分及びG(緑)の補色であるY(イエロー)をほとんど含んでいないために起こる現象である。このように、Rmax検出回路11〜Bmax検出回路13の出力のうち、ひとつでも1が出力されれば、0が出力されたパッジのデータは無視することにして、1の数が多いパッジのデータを処理して比率計算を行う。
【0042】
図6は、比率演算回路14においてどのデータを使用して計算を行うかを決定する処理のフローチャートである。
【0043】
Step1ではまず、3種のパッジを読み込んだときのRmax検出回路11〜Bmax検出回路13の出力に1が現れたものがあるかどうかを検出する。1が現れていなければ、Noに進み図4の表に従い、Type1の条件に従って平均比率を算出する(Step1a)。図2中の緑のパッジ61a〜61cはこの条件に相当する。Step1でひとつでも1が現れていればStep2に進む。
【0044】
Step2ではRmax検出回路11〜Bmax検出回路13の出力に現れた「1」の数が3つのパッジとも等しいかどうかを検知する。Yesであれば、図4の表に従い、比率の平均を算出する(Step2a)。Noであれば、Step3に進む。Step3ではユーザが所定位置にマーカ着色しているかどうかを検出する。即ち、Rmax検出回路11〜Bmax検出回路13の出力に現れた「1」の数が3のパッジがあればYesに進み、ブザーによる警告を発生する(Step3a)。これは、図4のType8に相当する。Noであれば、Step4に進む。
【0045】
Step1で、FFhとなる色の個数が最低1個は存在することが検出され、Step2で、FFhとなる色の個数が3つのパッジで同一でないことが検出され、Step3で、FFhとなる色の個数が3であるパッジが3つのパッジに存在しないことが検出されているので、Step4ではRmax検出回路11〜Bmax検出回路13の出力に現れた「1」の数の組み合せは、2個−*個−*個(順不同)または2個−2個−*個(順不同)の二通りしか存在しない。ここで*個とは1個または0個を意味している。Step4では、2個−*個−*個の組み合せのときには2個があらわれたパッジのデータのみを使用し、図4の表に従って比率を計算する(Step4a)。また、2個−2個−*個の組み合せのときには2個があらわれたパッジの2データを使用し、それぞれ図4の表に従って比率を計算し、両者の平均比率データを算出する(Step4b)。
【0046】
例えば、図5(B)で示したピンクマーカによるパッジ62aの入力データが(R,G,B)=(FFh,8Ch,FFh)、パッジ62bの入力データが(R,G,B)=(FFh,4Ah,D5h)、パッジ62cの入力データが(R,G,B)=(FFh,2Eh,8Eh)であったとすると、図6におけるStep4aの2個−*個−*個の処理が行われる。即ち、図4のType6に対応し、パッジ62aの入力データ(R,G,B)=(FFh,8Ch,FFh)のみにより導かれる比率データ(R,G,B)=(20h,11h,20h)が算出される。
【0047】
このようにして算出された比率データは、図3のメモリ15に保存される。メモリ15は、例えばRAMで構成し、このRAMのアドレスは登録を行うマーカの数だけ用意されていれば良い。メモリ15は不図示のCPUの制御を受け、必要に応じてデータが読み出され、そのデータがCPUを経由して色コード判定回路54に送出される。続いて、色コード判定回路54の動作を説明する。
【0048】
図7は、色コード判定回路54の構成を示す図である。同図において116〜119はそれぞれRmax検出回路、Gmax検出回路、Bmax検出回路及び比率演算回路であり、図3で示したRmax検出回路11、Gmax検出回路12、Bmax検出回路13及び比率検出回路14と同一機能を有する。111aは、入力される比率演算回路119の出力データが緑マーカの比率かどうかを判定するコンパレータである。同様に、111b,111c,…も、それぞれ入力するデータが、単一のマーカ色に対応した比率であるかどうかを判定するコンパレータであり、登録/判定を行うマーカの数だけ具備している。各コンパレータのB入力には図3中のメモリ15から読み出されたマーカ毎の比率データが書き込まれたレジスタ112a,112b,112c,…が接続されている。
【0049】
例えば、レジスタ112aには緑マーカの比率データが書き込まれており、レジスタ112bにはピンクマーカの比率データが書き込まれている。コンパレータ111a,111b,111c…は、A端子に入力されるデータとB端子に入力されるデータが近似しているときは、信号「1」を出力する。例えば、RGBの各々の比率データが±2の範囲内の差であれば、信号「1」を出力するように不図示のCPUより制御を受ける。
【0050】
しかし、マーカ色を登録する際に、図3に示したマーカ色登録回路中の比率演算回路14にRmax検出回路11〜Bmax検出回路13のいずれかひとつでも「1」が出力されていたならば、「1」の個数により近似範囲を調整する。即ち、「1」の個数が1個ならば、RGBの各々の比率データが±4の範囲内の差であれば各々のコンパレータが1を出力するように制御し、「1」の個数が2個ならば、RGBの各々の比率データが±8の範囲内の差であれば各々のコンパレータが1を出力するように制御する。
【0051】
このように「1」の個数によりコンパレータの制御範囲を換えることにより、前述のピンクマーカ等の重ね塗りの状態によりRGBの比率が異なるマーカ色についても色の判定が正しく行われる。ピンクマーカの例を挙げれば、RGBの各々の比率データが±8の範囲内の差でコンパレータが「1」を出力するように設定すれば、図5(B)の62b及び62cの比率データが入力されても、コンパレータ111bは「1」を出力する。
【0052】
コンパレータ111a,111b,111c…の出力は、それぞれANDゲート113a,113b,113c…に入力する。ANDゲート113a,113b,113c…のもう一方の入力にはあらかじめ決められた色コードデータが設定されたレジスタ114a,114b,114c,…が接続されている。例えば、レジスタ114aには緑色のマーカの色コードデータ(仮に001とする)が設定されており、レジスタ114bにはピンク色のマーカの色コードデータ(仮に002とする)が設定されている。
【0053】
115は、ORゲートであり、ANDゲート113a,113b,113c…の出力がすべて入力されている。即ち、比率演算回路119から出力する比率データにより信号「1」を出力するコンパレータは、111a,111b,111c…のうち1個だけであるから、ORゲート115から出力するデータは、読み取りを行っているマーカの色に対応したデータが出力される。
【0054】
そして、OR回路115の出力は、色コード判定回路54の出力として、前述したように領域判定回路56に入力され、読み取っている領域がノーマル、ライン又はペイント領域のいずれの領域に属しているかが判定される。領域判定回路56の出力は、出力色判定回路57に入力され、色コードと領域モードに従って出力する色を決定し、決定した色に応じた8ビットの画像データに変換して次段の画像処理回路にデータを送出する。
【0055】
上述した実施例においては、色パッジシートを図2のフォーマットで色塗りするようにしたが、例えば図8のフォーマットを用いるようにしてもよい。これにより色塗りムラが少なくなり、色塗り領域も少なくて済むので、都合が良い。図8において、121〜123は黒枠であり、所定の線幅を有している。オペレータは、まずマーカペンにより、黒枠121の内側を塗りつぶす。次に、黒枠122の内側を塗りつぶし、最後に黒枠123の内側を塗りつぶす。
【0056】
このようなフォーマットの色パッジシートを読み取って、マーカ色登録を行うときの読み取りシーケンスについて説明する。読み取られた画像データに黒が検出されたら、色パッジの領域に入ることを示している。検出された黒は、黒枠121であるから黒の次に現れる色データは、1度塗りされたマーカ色である。その次に黒が検出されれば、その黒は黒枠122であるから黒の次に現れる色データは、2度塗りされたマーカ色である。さらに、その後に黒が検出されれば、その黒は黒枠123であるから黒の次に現れる色データは、3度塗りされたマーカ色である。このようにして、1度塗り〜3度塗りのマーカ色の色データを読み取り、マーカ色登録を行えば、色登録の際の読み取り領域が狭いので、高速に色登録を行うことができる。また、黒枠の検出後の色データをマーカ色と認識するので、色パッジシートを原稿台にセットする際、多少位置がずれても正しく色登録を行うことができる。
【0057】
そして、登録された1〜3度塗りの色データに従って、何度塗りかは関係なく同じ色のマーカとして色判定することができる。
【0058】
(第2実施例)
次に本発明の第2実施例を図9〜図30を参照して説明する。
【0059】
まず、本実施例におけるマーカ編集の内容を説明する。モノクロ原稿に色マーカで色付けしてマーカ編集を行うと、図9に示すような出力が得られる。
【0060】
即ち、▲1▼同図上段に示すように黒線で仕切られた閉領域の内側をマーキングする(但し、黒線から1mm以内に隣接してマーキングする必要がある)と、閉領域内がマーカの色で塗りつぶされる。▲2▼また、同図中段に示すように黒線を包含する形でマーキングする(但し、黒線の周りは1mm以上の幅で塗りつぶす必要がある)と、黒線がマーカの色で置き換えられる。▲3▼さらに、同図下段に示すように上記▲1▼と▲2▼の複合型で、外側の黒線で仕切られた閉領域の内側を第1の色でマーキングするとともに内側の黒線を包含する形で第2の色でマーキングすると、外側の黒線の内部は第1の色で塗りつぶされ、内側の黒線は第2の色に置換される。
【0061】
これらの処理を実現するために本実施例で用いたフルカラー複写機の画像処理部の構成を図10に示す。221は原稿画像を読み取り、RGBデータを出力するCCDラインセンサ、222はRGBデータを増幅するアンプ回路、223はRGBデータを8ビットのディジタル値に量子化するAD変換器、224は画像データをシェーディング補正するシェーディング補正回路、225は読み取られたRGBデータの位置ずれを補正する色ずれ補正回路、226は黒文字を検出して、黒文字信号を生成する黒文字検出回路、227はマーカ編集回路、228は拡大縮小の変倍を行う変倍回路、229は空間フィルタ233や二値化回路235で用いられる信号を生成する制御信号生成回路、230はLOGテーブルに従ってLOG変換を行うLOG変換回路、231はLOG変換後のCMY(Cyan,Magenta,Yellow)データの中から最小値を抽出する最小値抽出回路、232は行列演算によりマスキングとUCRを行うマスキング・UCR回路、233はエッジ強調またはスムージング処理を行う空間フィルタ回路、234は入力信号をガンマ(γ)変換するガンマ変換回路、235はディザ法などで8ビットの多値データを二値化する二値化回路、236はCMYK(シアン、マゼンタ、イエロー、黒)各ヘッド間の調整をするヘッドタイミング調整回路、237は調整されたヘッドを駆動するヘッドドライバ回路、238はCMYK4色のBJインクヘッドである。ただし、マーカ編集処理を行う場合、LOG変換回路230、マスキング・UCR回路232は何も処理をしない(スルー)ように設定される。
【0062】
次に、マーカ編集回路227の詳細を図11の全体ブロック図を用いて説明する。R,G,Bの8ビットより構成されている画像データは、LOG変換回路240によりC,M,Yの8ビット画像データに変換され、白黒判別回路241に入る。ここでは、白黒、各しきい値を持っており、CMYの各データ値が全て白のしきい値以下ならばその画素は白と判断される。また、各データ値全てが黒のしきい値以上なら黒と判断される。これらにより、白あるいは黒と判断された画素については判定色コード化回路244でコード化される。
【0063】
白黒以外の色と判断された画素は、主色抽出回路242へ入力される。この回路ではCMY成分中、どの成分が最大であるかを出力する。次に色判定回路243で色判別が行われる。判別方法は、図12に示すように主色抽出回路242で得られた主色(シアン、マゼンタ、イエロー)毎に、残りの2成分との比を求め、CMY各成分の比で色を決定する。例えば、主色がM(マゼンタ)でC(シアン)がその3/8以下、かつY(イエロー)がその5/8以下ならばその画素をP(ピンク)と判定する。CMYがほぼ1:1:1の比である部分は黒と判断するが、これは黒のしきい値レベルに達していない薄い黒(グレー)も黒と判断するためである。つまり、黒については2段階で判断していることになる。図12の色判別に示している主色と主色に対する残りの2成分の比により色を判別する表において、読みとった画像を何色に判別するかは可変できるようになっている。色を判別する詳細については後で述べる。
【0064】
判定にCMYの成分比を用いたのは、各色毎に特定のCMY成分比を持っており、かつその値が、色の濃淡に対してほぼ一定であるからである。
【0065】
色判定回路243の出力は判定色コード化回路244により図13に示すように4ビットの色コードに変換され、該変換された色コードはマーカ色判別回路251から孤立色除去回路252に入力される。
【0066】
孤立色除去回路252では、図14に示すようにまわりの3×3のマトリクス上の画素を見て中央の注目画素*が決定され、以下の1)〜4)の処理が順次実行される。
【0067】
1)*≠Aかつ*≠Hのときは、*=Aとする
2)*≠Cかつ*≠Fのときは、*=Cとする
3)*≠Dかつ*≠Eのときは、*=Dとする
4)*≠Bかつ*≠Gのときは、*=Bとする
即ち、1)2)3)4)の順番で実行され、条件にあえば注目画素が変更される。ここで、245は、注目画素の周囲8画素を記憶しておく遅延回路であり、246は上記の画素間の比較を行う比較回路である。注目画素が左あるいは上の画素に変更する理由は、主走査方向が左→右、副走査方向が上→下であるために、注目画素が決定される時点で、それより左、あるいは上の画素は孤立色除去処理が終了しているからである。
【0068】
この処理により、ノイズの多い画像に対してはノイズを除去することができる。しかし、この処理を加えると1画素単位の細線が除去される可能性があり、細い黒文字の再現性が問題となるので、黒画素に対しては孤立色除去処理を適用する場合と適用しない場合の2つのモードを設けている。孤立色除去回路の出力は、4ビットの色コードとして領域判定部253に入力される。
【0069】
領域判定部253の領域判定回路247は、画像の各画素が以下の4つの領域のどの領域であるかを決定するものである。
【0070】
1)ノーマル領域
2)ペイント領域
3)ライン領域
4)ペイント内ライン領域
ノーマル領域は、何もしない領域であり、初期値はこの領域に設定されている。ペイント領域は閉区間内を塗りつぶす領域である。但し、境界の黒線上ではノーマル領域とする。ライン領域は、黒色をマーカ色に置き換える領域である。ペイント内ライン領域は、ペイント領域とライン領域の複合型であり、ペイント領域内のライン領域である。
【0071】
この領域判定回路253は、図15に示すように、副走査方向に128個の画素のセンサを有し、各画素について読み取ったデータと主走査方向の一つ前の画素の遅延データをメモリに記憶している。遅延データには、ペイント領域時の色を決定するペイント決定色、ラインあるいは入れ子ライン領域時の色を決定するライン決定色、領域、センサ移動方向の黒画素からの距離を記憶しておく横黒カウンタ、色画素からの距離を記憶しておく横色カウンタ、一ライン前に読み込んだ画素の色である前色がある。これらのデータと読み込まれたデータの論理合成により、印字色が決定される。その詳細は図16〜19に示す。
【0072】
例えば、図17に示すように、前色が白でペイント領域にあり、今色がマーカ色の場合、縦横の黒距離カウンタを見て、黒から近いと判断されるとペイント領域であると判定して、今色を印字し、ペイント決定色に今色をセットするといった手順で処理を進める。図16〜19で注目すべき点は、カウンタを用いている点で、これによりマーキングを厳密に黒に隣接しなくてもある条件以内であれば黒に隣接しているものとみなして処理を行うことができる。マーキングの条件として、はみ出しでなく隙間を許すことを採用した理由として、はみ出しは円グラフのようなものに対しての色付けができないことや、隙間は修正が可能であることなどが挙げられる。
【0073】
また、カウンタは縦横しか見ていないため、仮に斜め方向にマーカ色か黒色が隣接していても縦横カウンタでは検知できない。この場合誤動作するため、領域判定部では図20に示すような処理を追加して回避している。その方法は、注目画素が白で、前色がマーカ色でかつペイント領域で、縦横いずれかが黒から近ければ注目画素を前色で置き換えるものである。これにより、黒色とマーカ色の間の白い隙間はあたかもマーカ色であるかのように処理され、斜め方向の隙間にも対処できる。
【0074】
また、記憶データに縦方向の距離カウンタが含まれていないのは、現在読み取っているセンサ内で計算可能であるために、記憶しておく必要がないからである。
【0075】
以上に述べた処理後の色コードは出力変換回路254に入力される。このデータはセレクタ248により、領域判定する前の色コードと切り替えられて、濃度生成・印字色判定回路249に入力される。セレクタ248は、色判定のみを行ったデータを出力できるようにするために設けられている。
【0076】
濃度生成・印字色判定回路249は4ビットの色コードをあらかじめ設定された出力色テーブルを用いてCMYKのデータに変換する回路である。また黒に関しては、ハーフトーンを実現するために、マーカ編集回路227に入力されるM(マゼンタ)の濃度データを用いる。
【0077】
ここで、出力変換モードには次の3モードがある。
【0078】
1)標準バックモード
2)標準ブルーバックモード
3)特別ブルーバックモード
標準バックモードは領域判定回路252で生成された色コードを図21に示すCMYKの出力色テーブルで変換して出力するモードである。標準ブルーバックモードは標準バックモードの白と出力決定された画素をブルーに、また黒と出力決定された画素を白にそれぞれ変換して出力するもので、OHP原稿で用いるブルーバック原稿を作成できる。特別ブルーバックモードは標準ブルーバックモードとほぼ同じであるが、ペイント領域内の黒だけはそのまま出力するモードである。
【0079】
以上の処理を終えたCMYKデータは、図10に示した各回路ブロックにおいて変倍、マスキング、二値化などの処理が行われ、プリンタ部で印字される。
【0080】
次に、出力変換回路254におけるブルーバック処理を具体的に説明する。
【0081】
ここでは図22(a)のような原稿を考える。これは画像を横から見たもので縦軸は濃度を表す。左側の黒線は閉区間の黒線であり、その横がマーカで色付けされている。また、右側の黒はペイント領域内にある黒文字である。黒の濃度が山型をしているのは、白と黒の境界付近では黒の濃度が低いことを示している。このような画像にマーカ編集処理を施すと、同図(b)のような出力結果が得られる。
【0082】
まず、閉区間を表す黒線の左側は、ノーマル領域であるのでバックグランド色であるブルーとなる。次に黒線は反転濃度を用いて白を表現するために黒線のエッジ部分が黒くなる。次にペイント領域内の白は塗られたマーカ色となる。黒文字は黒線と同様、反転濃度を用いてエッジの部分が黒くなった白文字となる。仮にマーカ色がピンクのような明るい色の場合、ピンク色と白文字の間に発生する黒が目立ってしまう。
【0083】
この問題を解決するために、先ほど述べた記憶データの領域情報とペイント決定色を用いて処理を行うと同図(c)のようになる。黒線は領域情報としてノーマル領域を持ち、ペイント決定色は持っていないのでバックグランド色であるブルーで反転濃度を生成する。黒文字は、領域情報としペイント領域、ペイント決定色としてマーカ色を持っているので、マーカ決定色と白の間でハーフトーン濃度を生成するので文字のエッジはペイント決定色の濃いレベルで埋められることになり、ゴミが発生しない(エッジに黒が発生することを防止できる)。
【0084】
この動作を表にしたものを図23に示す。上記で説明した部分印字決定色が黒でペイント領域でブルーバックの時に対応する。この時黒の濃度情報から反転濃度を生成し、ペイント決定色であるところのペイントテーブルに反転濃度を係数として掛けることにより文字のエッジを周囲の色に合わせてハーフトーン処理することができる。なお、この図においてA,B,Cは濃度を調整するために設定される定数である。
【0085】
次に、原稿の端に塗られたマーカを読み取り、色判定用パラメータを設定する方法について以下に述べる。本実施例において、判別するマーカ色は、シアン、グリーン、ブルー、レッド、ピンク、バイオレット、オレンジ、イエローの8色に定義し、図24に示すように原稿の先端においてマーカで塗る位置も指定されている。マーカ編集モードが選択されコピー動作を開始するためのコピーボタンが押されると、画像読み取りセンサ221の各画素のムラを取るためのシェーディング補正が実施される。シェーディング補正が終了後、画像読み取りセンサ221を図24に示すシアンのマーカが塗られている原稿が置かれている位置に移動させ図25に示すヒストグラムを作成する。ヒストグラムは、主色抽出回路242で得られた図12に示す主色毎に、残り2成分との比を求めそれぞれの度数分布を示したものである。
【0086】
度数分布の作成方法について図26を参照して説明する。図26は、色判定回路243の構成を示すブロック図であり、シアンのマーカで塗られている原稿を読み取って主色抽出回路242で主色がシアンであると判定されている場合を示す。
【0087】
261は、主色であるシアンの画像データを記憶している8ビットのレジスタであり、262は、マゼンタの画像データを記憶している8ビットのレジスタであり、263は、イエローの画像データを記憶している8ビットのレジスタである。各8ビットレジスタ261、262、263の入力は、白黒判別回路241の出力に接続されている。
【0088】
264は、レジスタ261および262に記憶されているシアンとマゼンタの画像データをもとにマゼンタとシアンの比を求め、3ビットの信号を出力する除算ブロックであり、265は、レジスタ261および263に記憶されているシアンとイエローの画像データをもとにイエローとシアンの比を求め3ビットの信号を出力する除算ブロックである。266は、除算ブロック264および265によって得られた主色のシアンに対するマゼンタおよびイエローの比をアドレスバスに入力し度数分布を記憶して置くためのSRAMである。267は、入力端子AがH(高)レベルの場合データバス上のデータを読み込み、読み込んだデータに1を加算して記憶し、入力端子AがL(低)レベルの場合記憶しているデータをデータバス上に出力する機能を有する演算部である。268は読み書き制御部であり、SRAM266の読み書きを制御する機能を有する。
【0089】
すなわち、主色がシアンであり、原稿の1画素に対応するシアン、マゼンタ、イエロー3色がレジスタ261、262及び263に記憶され、読み書き制御部268は、除算ブロック264と265で演算が終了したタイミングで出力端子RをLレベルにする。読み書き制御部268の出力端子RがLレベルになることにより、SRAM266は、リード状態になり、アドレスバスで設定されている番地のデータをデータバスに出力し、演算部267においてデータバスのデータに1加算が行われる。次に、演算部267における加算処理が終了したタイミングで読み書き制御部268の出力端子RをHレベル、出力端子WをLレベルにする。読み書き制御部268の出力端子WがLレベルになることにより、SRAM266のデータバスが入力状態になるとともに、演算部267に記憶されているデータがデータバスに出力される。次に、読み書き制御部268は、出力端子WをHレベルにする。読み書き制御部268の出力端子WがLレベルからHレベルに変化することにより、データバス上のデータがSRAM266に記憶される。同様に主色がマゼンタ、主色がイエローについても度数分布表が作成される。
【0090】
以上原稿に塗られているシアンの1画素に対する度数分布表作成処理について説明したが本実施例では前記度数分布を求める処理を100回繰り返し原稿に塗られているシアンの100点をサンプルして度数分布表を作成している。
【0091】
次に、画像読み取りセンサ221を図24に示すグリーンのマーカが塗られている原稿が置かれている位置に移動させ、原稿にグリーンが塗られている場合の主色シアン、マゼンタ、イエローそれぞれに対する度数分布表を作成する。以後同様にブルー、レッド、ピンク、バイオレット、オレンジ、イエローのマーカで塗られている位置の画像データを読み取り、度数分布表を作成する。度数分布表を作成するに当たり、もし、目的とする位置にマーカが塗られていない場合は、塗られていない色に対する標準の度数分布を代用する。最後に、主色シアン、マゼンタ、イエローそれぞれの度数分布において共通に度数が0で、かつ、前もって決められている範囲(シアン、マゼンタ、イエローが共に濃い範囲で薄い黒に対応する領域)の領域を黒となるように度数分布表を修正する。
【0092】
次に、度数分布表よりマーカの読み取り色判定用パラメータを作成する方法について図28の概念図と図27のフローを用いて述べる。図28(A)は、主色Cについて得られた度数分布表(原稿に塗られたシアン、グリーン、ブルー、レッド、ピンク、バイオレット、オレンジ、イエロー、黒を読み取りそれぞれの色に対し作成したものを合成しもの)である。度数分布表は、SRAM266にそれぞれの色毎に記憶されており、図示しないCPUによって読み出され、図27に示すフローに従って処理される。
【0093】
ステップS1においては、黒とブルーの領域が隣接しているかを判定する。領域が隣接している場合は、ステップS2へ進み、領域が隣接していない場合は、ステップS11へ進む。
【0094】
ステップS2においては、黒とブルーの領域の隣接状態を判断する。もし、黒とブルーの領域が重なり合っている場合は、ステップS4へ進み、黒とブルーの領域間に隙間(度数0)がある場合(図28(A)は隙間がある状態を示す)は、ステップS3へ進む。
【0095】
ステップS3においては、黒とブルーの領域間の中心を出し、領域間の中心を黒とブルーの境界としては、ステップS5へ進む。
【0096】
ステップS4においては、黒とブルーの領域が重なり合っている間の中心を出し、重なり合っている間の中心を黒とブルーの境界として、ステップS5へ進む。
【0097】
ステップS5においては、黒とブルーの領域が隣接している部分に対して境界を決定する処理がすべて終了したかを判断する。境界を決定する処理がすべて終了している場合は、ステップS11へ進み、境界を決定する処理が残っている場合は、ステップS2に戻る。図28(B)は、ステップS5が終了した時の度数分布表を示す。
【0098】
ステップS11においては、黒とグリーンの領域が隣接しているかを判定する。領域が隣接している場合は、ステップS12へ進み、領域が隣接していない場合は、ステップS21へ進む。
【0099】
ステップS12においては、黒とグリーンの領域の隣接状態を判断する。もし、黒とグリーンの領域が重なり合っている場合は、ステップS14へ進み、黒とグリーンの領域間に隙間(度数0)がある場合は、ステップS13へ進む。
【0100】
ステップS13においては、黒とグリーンの領域間の中心を出し、領域間の中心を黒とグリーンの境界として、ステップS15へ進む。
【0101】
ステップS14においては、黒とグリーンの領域が重なり合っている間の中心を出し、重なり合っている間の中心を黒とグリーンの境界として、ステップS15へ進む。
【0102】
ステップS15においては、黒とグリーンの領域が隣接している部分に対して境界を決定する処理がすべて終了したかを判断する。境界を決定する処理がすべて終了している場合は、ステップS21へ進み、境界を決定する処理が残っている場合は、ステップS12にもどる。図28(C)は、ステップS15が終了した時の度数分布表を示す。
【0103】
ステップS21においては、ブルーとグリーンの領域が隣接しているかを判定する。領域が隣接している場合は、ステップS22へ進み、領域が隣接していない場合は、ステップS31へ進む。
【0104】
ステップS22においては、ブルーとグリーンの領域の隣接状態を判断する。もし、ブルーとグリーンの領域が重なり合っている場合は、ステップS24へ進み、ブルーとグリーンの領域間に隙間(度数0)がある場合は、ステップS23へ進む。
【0105】
ステップS23においては、ブルーとグリーンの領域間の中心を出し、領域間の中心をブルーとグリーンの境界とし、ステップS25へ進む。
【0106】
ステップS24においては、ブルーとグリーンの領域が重なり合っている間の中心を出し、重なり合っている間の中心をブルーとグリーンの境界として、ステップS25へ進む。
【0107】
ステップS25においては、ブルーとグリーンの領域が隣接している部分に対して境界を決定する処理がすべて終了したかを判断する。境界を決定する処理がすべて終了している場合は、ステップS31へ進み、境界を決定する処理が残っている場合は、ステップS22に戻る。図28(D)は、ステップS25が終了した時の度数分布表を示す。
【0108】
ステップS31においては、ブルーとシアンの領域が隣接しているかを判定する。領域が隣接している場合は、ステップS32へ進み、領域が隣接していない場合は、ステップS41へ進む。
【0109】
ステップS32においては、ブルーとシアンの領域の隣接状態を判断する。もし、ブルーとシアンの領域が重なり合っている場合は、ステップS34へ進み、ブルーとシアンの領域間に隙間(度数0)がある場合は、ステップS33へ進む。
【0110】
ステップS33においては、ブルーとシアンの領域間の中心を出し、領域間の中心をブルーとシアンの境界として、ステップS35へ進む。
【0111】
ステップS34においては、ブルーとシアンの領域が重なり合っている間の中心を出し、重なり合っている間の中心をブルーとシアンの境界として、ステップS35へ進む。
【0112】
ステップS35においては、ブルーとシアンの領域が隣接している部分に対して境界を決定する処理がすべて終了したかを判断する。境界を決定する処理がすべて終了している場合は、ステップS41へ進み、境界を決定する処理が残っている場合は、ステップS32に戻る。図28(E)は、ステップS35が終了した時の度数分布表を示す。
【0113】
ステップS41においては、グリーンとシアンの領域が隣接しているかを判定する。領域が隣接している場合は、ステップS42へ進み、領域が隣接していない場合は、ステップS51へ進む。
【0114】
ステップS42においては、グリーンとシアンの領域の隣接状態を判断する。もし、グリーンとシアンの領域が重なり合っている場合は、ステップS44へ進み、グリーンとシアンの領域間に隙間(度数0)がある場合は、ステップS43へ進む。
【0115】
ステップS43においては、グリーンとシアンの領域間の中心を出し、領域間の中心をグリーンとシアンの境界として、ステップS45へ進む。
【0116】
ステップS44においては、グリーンとシアンの領域が重なり合っている間の中心を出し、重なり合っている間の中心をグリーンとシアンの境界としステップS45へ進む。
【0117】
ステップS45においては、グリーンとシアンの領域が隣接している部分に対して境界を決定する処理がすべて終了したかを判断する。境界を決定する処理がすべて終了している場合は、ステップS51へ進み、境界を決定する処理が残っている場合は、ステップS42に戻る。図28(F)は、ステップS45が終了した時の度数分布表を示す。
【0118】
ステップS51においては、グリーンとブルーの領域が隣接しているかを判定する。領域が隣接している場合は、ステップS52へ進み、領域が隣接していない場合は、ステップS61へ進む。
【0119】
ステップS52においては、グリーンとブルーの領域の隣接状態を判断する。もし、グリーンとブルーの領域が重なり合っている場合は、ステップS54へ進み、グリーンとシアンの領域間に隙間(度数0)がある場合は、ステップS53へ進む。
【0120】
ステップS53においては、グリーンとブルーの領域間の中心を出し、領域間の中心をグリーンとブルーの境界として、ステップS55へ進む。
【0121】
ステップS54においては、グリーンとブルーの領域が重なり合っている間の中心を出し、重なり合っている間の中心をグリーンとブルーの境界として、ステップS55へ進む。
【0122】
ステップS55においては、グリーンとブルーの領域が隣接している部分に対して境界を決定する処理がすべて終了したかを判断する。境界を決定する処理がすべて終了している場合は、ステップS61へ進み、境界を決定する処理が残っている場合は、ステップS52に戻る。図28(G)は、ステップS55が終了した時の度数分布表を示す。
【0123】
ステップS61においては、主色がシアンについての境界を決定する処理を終了する。同様に主色がマゼンタ、主色がイエローについても境界を決定する処理を実施する。
【0124】
以上原稿の端に塗られたマーカを読み取り色判定用パラメータを設定する処理で得られた結果は、実際のコピー動作において色判定回路243で用いられる。また、原稿の先端にマーカだけが塗られている(黒が無い)場合、前記マーカ処理のルールに従い、原稿の先端のマーカは印字用紙に印字されない。
【0125】
このように実際に原稿上に塗られたマーカを読み取った結果に基づいて設定された色判定パラメータ(例えば図28(G))を用いることにより、用紙の色やマーカの色のばらつきあるいは読み取りセンサの特性のばらつき等の影響を排除して、正確な色判別が可能となる。
【0126】
次に図29及び図30を用いて第2実施例の変形例について説明する。本実施例は、原稿の端に塗られたマーカを読み取り、色判定用パラメータを設定する方法として、色判定用パラメータの基本型を前もって決めておき、原稿の端に塗られたマーカを読み取った結果に応じて、色判定用パラメータの基本型に補正を加える方法採用したものである。
【0127】
図29(A)は、色判定用パラメータの基本型のなかでシアンを主色にしものである。色を判定するパラメータ(以下「領域」とする)の基本型は通常の使用状態においてマーカを塗られた原稿を読み取った場合に分布する範囲となっている。
【0128】
図29(B)は、図29(A)よりシアンとグリーンの領域を抜き出したものである。図29(B)のaは、イエローとマゼンタが零の点を基準として、イエロー方向における標準のシアン領域端までの距離、bはイエローとマゼンタが零の点を基準として、イエロー方向における標準のグリーン領域端までの距離、Zは、色判定パラメータを補正後のシアンとグリーンの境界までの距離である。
【0129】
図29(C)は、原稿の端に塗られたマーカを読み取り、度数分布を作成したものであり、シアン及びグリーンの分布が、標準のシアン領域及び標準のグリーン領域の範囲内に入っている場合を示したものである。cは、イエローとマゼンタが零の点を基準として、イエロー方向におけるシアンの分布端までの距離、dは、イエローとマゼンタが零の点を基準として、イエロー方向におけるグリーンの端までの距離である。図29(D)は、図29(C)におけるシアンの領域とグリーンの領域を補正し、シアンとグリーンの境界Zを示した図であり、
Z=a+(b−a)×(d−b)÷{(a−c)+(d−b)}
の関係が成り立っている。
【0130】
すなわち、標準のシアン領域端と標準のグリーン領域端の距離(b−a)を求め、求めた距離を標準のシアン領域端とシアン分布端間の距離(a−c)と標準のグリーン領域端とグリーン分布端間(d−b)の距離で分割し、シアンとグリーンの境界Zとしている。また、補正後のシアン領域は、同一の記号で示しているが、標準のシアン領域と補正により追加されたシアン領域の区別をつけるため境界に実線を入れてある。同様に補正後のグリーン領域及び図29の以後の図面にも境界を示す実線を入れてある。
【0131】
図29(E)は、シアンの分布が標準のシアン領域をはみ出しグリーンの分布が標準のグリーン領域の範囲内に入っている場合を示したものである。図29(F)は、図29(E)におけるシアンの領域とグリーンの領域を補正し、シアンとグリーンの境界Zを示した図であり
Z=c+(b−c)÷2
の関係が成り立っている。すなわち、シアン分布端と標準のグリーン領域端の中心をシアンとグリーンの境界Zとしている。
【0132】
図29(G)は、グリーンの分布が標準のグリーン領域をはみ出しシアンの分布が標準のシアン領域の範囲内に入っている場合を示しものである。図29(H)は、図29(G)におけるシアンの領域とグリーンの領域を補正し、シアンとグリーンの境界Zを示した図であり
Z=a+(d−a)÷2
の関係が成り立ている。すなわち、グリーン分布端と標準のシアン領域端の中心をシアンとグリーンの境界Zとしている。
【0133】
図30(A)は、グリーンの分布及びシアンの分布が標準のグリーン領域及び標準のシアン領域をともにはみ出している場合を示したものである。図30(B)は、図30(A)におけるシアンの領域とグリーンの領域を補正し、シアンとグリーンの境界Zを示した図であり
Z=c+(d−c)÷2
の関係が成り立っている。すなわち、グリーン分布端とシアン分布端の中心をシアンとグリーンの境界Zとしている。
【0134】
図30(C)は、シアンの分布が標準のシアン領域をはみだし、標準のグリーン領域に入り、グリーンの分布が標準のグリーン領域範囲内に入っている場合を示したものである。図30(D)は、図30(C)におけるシアンの領域とグリーンの領域を補正し、シアンとグリーンの境界Zを示した図であり
Z=b
の関係が成り立っている。すなわち、標準のグリーン領域端を境界Zとしている。
【0135】
図30(E)は、グリーンの分布が標準のグリーン領域をはみだし、標準のシアン領域に入り、シアンの分布が標準のシアン範囲内に入っている場合を示したものである。図30(F)は、図30(E)におけるシアンの領域とグリーンの領域を補正し、シアンとグリーンの境界Zを示した図であり
Z=a
の関係が成り立っている。即ち、標準のシアン領域端を境界Zとしている。
【0136】
図30(G)は、グリーンの分布が標準のグリーン領域をはみ出し、標準のシアン領域に入り、シアンの分布が標準のシアン領域をはみ出し、標準のグリーン領域に入っている場合を示したものである。図30(H)は、図30(G)におけるシアンの領域とグリーンの領域を補正し、シアンとグリーンの境界Zを示した図であり
Z=a+(b−a)÷2
に関係が成り立っている。すなわち、標準のシアン領域端と標準のマゼンタ領域端の中心を境界Zとしている。
【0137】
図30(C)、図30(E)、図30(G)、の場合は、標準のシアン領域にグリーン、または、標準のグリーン領域にシアンというように異なる色のマーカが入る可能性があるため、上述したように境界を決定するとともに例えば操作部(図示せず)の液晶にシアンのマーカがグリーンとして検知される可能性があることを表示し、使用者に注意を促す処置を実施する。また、図29、30においては、主色Cのシアンとグリーンの境界を決定する例について述べてあるが主色Cの他の色、主色M、主色Yに対しても同様の処理を施し境界を決定することは言うまでもない。
【0138】
次に上述した第2実施例において、カラ−マ−キングに用いられているマ−カペンの色を判定するための色判定パラメ−タを当該複写機が出荷される国や地域に応じて最適化する第1の手法を図31及び図32を用いて説明する。
【0139】
図31は、複写機の操作部の変倍設定の例を示したものである。日本の場合、用紙としてA、B系列が用いられているため、変倍組み合せとしてA4とB4、A4とA3、B4とA3の3種類が考えられる。アメリカの場合、用紙としてインチ系が用いられているため、変倍の組み合せとしてLTRとLGLが考えられる。ヨ−ロッパの場合、用紙としてA系列が用いられているため、変倍の組み合わせとしてA4とA3が考えられる。すなわち、変倍設定だけを考えてみても、地域により、変倍の組み合せの数や、縮小率、拡大率が異なっていることがわかる。現在、複写機の変倍に対する制御方法は、地域毎に独立したソフトを作成するのではなく、全世界共通でソフトを作成し、地域向けのコードを登録しておき、地域向けのコードを基にして変倍の組み合せ数や、縮小率、拡大率を対応させている。すなわち、現在販売されている複写機の制御部には、地域向けのコードが使用されている。
【0140】
図32は、地域に対応して色判定用パラメータを設定するフローを示しものであり、複写機の使用者がマーカ編集を選択し、複写ボタンを押してからの処理について記述したものである。
【0141】
ステップS101では、複写機内に記憶されている地域向けコードがヨーロッパになっているかを判断する。地域向けコードがヨーロッパになっている場合は、色判定パラメータをヨーロッパ向け仕様とする(ステップS108)。具体的には、原稿に塗られているマーカの色を判定するためのパラメータ(前もって用意されている)の中からヨーロッパ向けのものを読み出す。
【0142】
ステップS101で、地域向けコードがヨーロッパになっていない場合は、さらに地域向けコードがアメリカになっているか否かを判断する(ステップS102)。なお本実施例においては、地域向けコードは、変倍回路228とマーカ編集回路227で共通に使用しているが、マーカ編集回路227として独自に地域向けコードを使用してもよい。
【0143】
ステップS102で、地域向けコードがアメリカになっている場合は、色判定パラメータをアメリカ向け仕様とし(ステップS107)、地域向けコードがアメリカになっていない場合は、色判定コードを日本向け仕様とする(ステップS103)。
【0144】
ステップS103,S107又はS108を実行した後はステップS104に進み、色判定パラメータの設定、すなわち、図12に示す色判定の領域の設定を行う。続くステップS105では、マーカ編集による複写動作を実施する。詳細なマーカ編集の複写動作は、前述した通りである。マーカ編集の複写動作が終了すると、複写動作を終了する。
【0145】
次に色判定パラメ−タを当該複写機が出荷される国や地域に応じて最適化する第2の手法を、図33(A)を用いて説明する。この手法は、印字ヘッドに地域をあらわす情報を付加するようにしたものである。
【0146】
図33(A)は、印字ヘッドK(301)の構成を示す。印字ヘッドKの左端部に仕向地を示す突起を形成する部分を設け、スイッチSW1及びSW2により突起の有無を検知することで仕向地を判断できるようにしたものである。例えば、スイッチSW1及びSW2が共にOFFの場合は日本、スイッチSW1がONでスイッチSW2がOFFの場合はアメリカ、スイッチSW1がOFFでスイッチSW2がONの場合はヨーロッパ、スイッチSW1及びSW2が共にONの場合はその他の地域というように色判定のパラメータを設定する。
【0147】
このように、印字ヘッドに仕向地を示す情報を付加する構成とすることにより、マーカの処理に関して複写機本体を全世界共通にすることが可能になる。
【0148】
次に色判定パラメ−タを当該複写機が出荷される国や地域に応じて最適化する第3の手法を、図33(B)と図34を用いて説明する。この手法は、第2の手法と同様に印字ヘッドに地域をあらわす情報を付加するようにしたものである。
【0149】
図33(B)は、印字ヘッドY(302)の構成を示す。印字ヘッドYの左端部にマーカの色がY主色の場合の色判定パラメータを示す突起を形成する部分をもうけ、スイッチSW−Y1からSW−Y320により突起の有無を検知することで地域に対応した色判定パラメータを設定できるようにしたものである。図34(A)にYが主色の場合の標準のパラメータを示す。Yが主色の場合、標準状態においは、イエロー、オレンジ、レッド、グリーン、黒の5色の可能性がある。Yが主色の場合、ある一つのエリア(同図中の1つの升)を考えた時、前記5色の内どれか一つが選択される。
【0150】
よって、スイッチSW−Y1からSW−Y5を一つのエリアに割り当て、そのエリアの判定色をスイッチSW−Y1からSW−Y5のいずれがONしているか判定し、ONしているSWの番号に対応した色を判定色として設定するように構成する。本実施例においては、一つの主色に対して64(8×8)のエリアがあるため320個(64×5)のSWと、判定色を指定する突起が64個必要になる。また、地域ごとに突起の位置を調整する必要がある。そこで、実際の複写機においては、ヘッドに不揮発性メモリを搭載し、その不揮発性メモリに色判定パラメータを記憶し、複写機の電源をONしたときにヘッドの不揮発性メモリより色判定パラメータを読み出して色判定パラメータを設定するように構成する。
【0151】
図34(B)は、第3の手法により設定されたある地域向けの色判定パラメータの例を示す図である。本地域においては、オレンジ色のマーカペンは使用していないが、オレンジに近いレッド(この地域では、レッドとして認識されている)が多く用いられており、レッドをオレンジに誤判定されることを防ぐため、オレンジ色の判定領域をレッド色に定義した例を示している。
【0152】
この結果、標準設定では、8色のマーカ色を判定できるところを7色に制限することによりマーカ色の誤判定を少なくすることが可能となる。
【0153】
また、Y主色について説明をしたが、C主色、M主色についても同様の処理が可能なことは言うまでもない。
【0154】
なお、上述した第3の手法を採用する場合は、印字ヘッドに格納されているインクの色と、色判定パラメータの主色の色とを同一とすることが望ましい。
【0155】
次に色判定パラメ−タを当該複写機が出荷される国や地域に応じて最適化する第4の手法を、図35及び図36を用いて説明する。この手法は、AC電源ラインの特性をもとに地域を判定し、得られた地域情報をもとにして、色判定パラメータを設定するものである。
【0156】
図35は、AC電源の特性を調べるための構成を示すブロック図である。AC電源としては、電圧100Vから240V、周波数50HZ、60HZが対象となる。同図において、AC電源は、減衰器311に加えられ、減衰器311により電圧が1000分の1に減衰され、CPU312のAD変換器に入力される。AD変換器に入力された信号は、図36に示すフローにもとづいて処理される。図36は、AC電源の特性より複写機が使用されている地域を判定するフローを示す。
【0157】
ステップS111では、電圧の最大値から最小値を減算し、次いで、電圧の最大値から最小値までの時間を計測する(ステップS112)。続くステップS113では、AC電源の電圧が200V系か否かを判定する。すなわち、ステップS111で得られた電圧のピーク値に減衰器311の減衰率の逆数を掛け、得られた値が、500V以上だったら電源電圧が200V系であると判断し、ステップS118に進む。得られた値が500V以下だったら電源電圧が200V系ではないと判断し、ステップS114に進む。
【0158】
ステップS114では、AC電源の電圧が115V系かを判定する。すなわち、ステップS111で得られた電圧のピーク値に減衰器311の減衰率の逆数を掛け、得られた値が、300V以上だったら電源電圧が115V系であると判断し、色判定パラメータをアメリカ向け仕様とする(ステップS117)。一方、得られた値が300V以下だったら電源電圧が200V系ではないと判断し、色判定パラメータを日本向け仕様とする(ステップS115)。具体的には、原稿に塗られているマーカの色を判定するためのパラメータ(前もって用意されている)の中から日本向けのものを読み出す。
【0159】
ステップS118では、AC電源の周波数が50HZか60HZかを判定する。すなわち、ステップS112で得られた電圧の最大値から最小値までの時間を2倍して、1周期の時間を求め、1周期の時間の逆数を取り、AC電源の周波数を得る。そして、AC電源の周波数が55HZ以下の場合は、50HZ系と判断し、色判定パラメータを韓国向け仕様とする(ステップS119)。また、AC電源の周波数が55HZ以上の場合は、60HZ系と判断し、色判定パラメータをヨーロッパ向け仕様とする(ステップS119)。
【0160】
ステップS115,S117,S119又はS120を実行した後は、ステップS121及びS122で図32のステップS104及びS105と同様の処理を行い本処理を終了する。
【0161】
第4の手法によれば、仕向け地情報が付加されていない場合であっても、使用地域を判定し、正確な色判定パラメータの設定が可能となる。
【0162】
【発明の効果】
以上詳述したように請求項1の画像処理装置及び請求項8の画像処理方法によれば、所定の色マーカによってマーキングされた色データが予め登録され、同一の色マーカで複数回重ね塗りされた領域における色データを読み取ってマーカ色登録し、原稿の読み取り時に前記登録された色データと読み取った色データとを比較することにより、何度塗りかに関係なく同じ色のマーカとして色判定されるので、ユーザのマーカ塗りむら、画像読み取りセンサの特性ばらつき等に起因するマーカ色の誤判別を防止することができ、所望のマーカ編集結果を得ることができる。
【0164】
請求項の画像処理装置及び請求項9の画像処理方法によれば、当該装置が販売される地域が判定され、その販売地域に応じて色判定用のパラメータが変更されるので、販売地域に拘わらず正確なマーカ色の判別を行うことがきる。
【図面の簡単な説明】
【図1】本発明の第1実施例にかかる画像処理回路の構成を示すブロック図である。
【図2】色パッジシートの例を示す図である。
【図3】図1のマーカ色登録回路の構成を示すブロック図である。
【図4】図3の比率演算回路における処理の内容を説明するための図である。
【図5】マーカの色分布を示す図である。
【図6】図3の比率演算回路における処理のフローチャートである。
【図7】図1の色コード判定回路の構成を示すブロック図である。
【図8】色パッジシートの他の例を示す図である。
【図9】本発明の第2実施例におけるマーカ編集の内容を説明するための図である。
【図10】本発明の第2実施例にかかるカラー複写機の画像処理回路の構成を示すブロック図である。
【図11】図10のマーカ編集回路の構成を示すブロック図である。
【図12】色判別の方法を説明するための図である。
【図13】色コードテーブルを示す図である。
【図14】孤立点除去の手法を説明するための図である。
【図15】領域判定時の記憶データを説明するための図である。
【図16】領域判定の手法を説明するためのテーブルを示す図である。
【図17】領域判定の手法を説明するためのテーブルを示す図である。
【図18】領域判定の手法を説明するためのテーブルを示す図である。
【図19】領域判定の手法を説明するためのテーブルを示す図である。
【図20】尾引き処理を説明するための図である。
【図21】出力色テーブルを示す図である。
【図22】ブルーバック処理を説明するための図である。
【図23】色濃度判定条件を説明するためのテーブルを示す図である。
【図24】原稿の先端に塗るマーカの位置を例示した図である。
【図25】シアンのマーカを読み取ったときの度数分布の例を示す図である。
【図26】色判定回路の構成を示すブロック図である。
【図27】色判定用パラメータを作成する処理のフローチャートである。
【図28】色判定用パラメータの作成処理を説明するための図である。
【図29】色判定用パラメータの補正処理を説明するための図である。
【図30】色判定用パラメータの補正処理を説明するための図である。
【図31】変倍の設定例を示す図である。
【図32】色判定用パラメータの設定処理のフローチャートである。
【図33】地域情報が付加された印字ヘッドを示す図である。
【図34】地域情報に応じた色判定用パラメータの変更例を説明するための図である。
【図35】AC電源と特性を測定するための構成を示す図である。
【図36】AC電源の特性に基づいて販売地域を判定する処理のフローチャートである。
【図37】マーカ編集を説明するための図である。
【図38】マーカ編集を説明するための図である。
【図39】従来のマーカ編集の問題点を説明するための図である。
【符号の説明】
14 比率演算回路
54 色コード判定回路
55 マーカ色登録回路
227 マーカ編集回路
251 マーカ色判別回路
[0001]
[Industrial applications]
The present invention relates to an image processing apparatus such as a copying machine.And image processing methodIn particular, the present invention relates to an apparatus for performing a predetermined marker editing based on information of a color marked on a document with a predetermined color marker.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in a color copying machine, a marker editing function of enclosing or tracing a desired range on a black-and-white document with a commercially available marker pen to color the range has been proposed. Such a marker editing function is, for example, to color the inside of a desired closed section 1000 determined by a black line with a blue color marker 1001 on a white background document as shown in FIG. 38B, a desired black line 1002 can be drawn on a document with a white base as shown in FIG. 38A by printing in a paint mode in which the entire closed section is colored blue as shown in FIG. By coloring the periphery of the line with the red color marker 1003, a plurality of modes such as a line mode in which a black line is converted to a red line and printed out as shown in FIG. General.
[0003]
First, the determination of the paint mode shown in FIG. 37 will be described. If the read line is line A at a certain timing during the image reading operation of FIG. 7A, if the output order of the pixel data is in the direction of the arrow,..., White, black, blue, white,. , Blue, black, white,... Therefore, it is determined that the paint mode has been started from the first blue pixel by detecting the presence of black immediately before the blue that first appeared. Further, by detecting that the color immediately after the last blue is black, it is determined that the paint mode has been completed with the last blue pixel. Therefore, the paint mode is realized by outputting all the pixels (blue, white,..., White, blue) between the paint modes as blue data.
[0004]
Next, the determination of the line mode shown in FIG. 38 will be described. If the read line at a certain timing is line B during the image reading operation of FIG. 7A, if the output order of the pixel data is in the direction of the arrow,..., White, red, black,. , White,... In this order. Therefore, by detecting that there is white immediately before the first appearing red, it is determined that the line mode has been started from the first red pixel. Further, by detecting that the color is white immediately after the last red, it is determined that the line mode has been completed at the last red pixel. Therefore, among the pixels (red, black,..., Black, red) between the line modes, the line mode is realized by outputting the red pixels as white data and the black pixels as red data.
[0005]
As described above, the start mode is determined based on whether the pixel immediately before the pixel where the marker color is first detected is white or black, and if the start mode is the paint mode, the marker color is finally detected. When the pixel immediately after the detected pixel is black, the mode is ended. When the start mode is the line mode, the mode is controlled to end when the pixel immediately after the pixel at which the marker color is finally detected is white. You.
[0006]
[Problems to be solved by the invention]
However, the color conversion mode is determined by the state of the marker coloring by the user. For example, as shown in FIG. 39A, the user desires the line mode marker processing on the original image 1004 and performs the marker coloring. Occasionally, color 1005 may occur due to uneven coating due to overcoating, and the following inconveniences have been encountered. That is, since the color 1005 has a darker marker color than the color 1006 in the normal painted state, the color 1005 and the color 1006 are erroneously determined to be individual colors, and the output result as shown in FIG. Was sometimes
[0007]
In addition, the color of the paper used for the original is mainly white, but there is something that is a little colored like recycled paper or glossy, the color of the marker pen varies, the original In some cases, erroneous determination of the read color occurs due to factors such as variations in the characteristics of the color filter of the sensor that reads the image, and an output result not intended by the user may be obtained.
[0008]
Further, the color of the marker pen differs depending on the country even if it has the same name (for example, “red”). In addition, some marker pens are sold (available on the market) in some countries, while others in eight colors are not standardized. For this reason, it is difficult to correctly recognize all the colors of the marker pens for color marking used all over the world, and erroneous color determination has occurred.
[0009]
The present invention has been made by paying attention to the above points, and an image processing apparatus capable of preventing erroneous determination of a read color and performing accurate marker editing.And image processing methodThe purpose is to provide.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, the present invention comprises: document reading means for reading a document; and marker color determination means for determining a color marked on the document with a predetermined color marker based on the read image data. In an image processing apparatus that performs a predetermined marker editing based on the color information obtained, a marker color registration unit for reading and registering in advance color data marked by the predetermined color marker is provided,The marker color registration unit reads color data in an area that has been painted multiple times with the same color marker and registers the marker color,The marker color determination means compares the registered color data with the read color data when reading the document., Color as a marker of the same color no matter how many times it is paintedIt was decided to judgeis there.
[0013]
Furthermore, in order to achieve the same object, the present invention includes a document reading unit that reads a document, and a marker color determining unit that determines a color marked on the document with a predetermined color marker based on the read image data, In an image processing apparatus that performs a predetermined marker editing based on information of a marked color, an area determination unit that determines an area where the apparatus is sold is provided, and the marker color determination unit includes an area where the apparatus is sold. The parameter for color determination is changed in accordance with.
[0014]
Further, the area determining means determines a sales area based on a scaling setting of the apparatus, determines a sales area based on area information added to a print head of the apparatus, or is supplied to the apparatus. It is desirable to determine the sales area based on the characteristics of the AC power supply.
[0015]
Further, the print head of the apparatus may be provided with parameter storage means for storing color determination parameters, and the marker color determination means may perform color determination using the color determination parameters stored in the parameter storage means. desirable.
[0016]
Preferably, the color of the ink stored in the print head is the same as the color of the main color of the color determination parameter.
In order to further achieve the same object, the present invention has a document reading step of reading a document, and a marker color determining step of determining a color marked on the document with a predetermined color marker based on the read image data, In an image processing method for performing a predetermined marker editing based on information of a marked color, a marker color registration step of reading and registering color data marked by the predetermined color marker in advance and registering the marker data is provided. Reading the color data in the area that has been overpainted a plurality of times with the same color marker and registering the marker color, and comparing the registered color data and the read color data when reading the original document in the marker color determination step. Thus, the color is determined as a marker of the same color regardless of how many times the paint is applied.
In order to further achieve the same object, the present invention has a document reading step of reading a document, and a marker color determining step of determining a color marked on the document with a predetermined color marker based on the read image data, In an image processing method for performing a predetermined marker editing based on information of a marked color, an area determining step of determining an area where an image processing apparatus performing the image processing method is sold is provided, and the marker color determining step includes: The parameter for color determination is changed according to the region where the image processing apparatus that carries out the image processing method is sold.
[0017]
[Action]
The image processing apparatus according to claim 1.And an image processing method according to claim 8.According to, color data marked by a predetermined color marker is registered in advance,Read the color data in the area that has been painted multiple times with the same color marker and register the marker color,By comparing the registered color data with the read color data when reading the original,Color as the same color marker regardless of how many times it is paintedIs determined.
[0022]
Claim2Image processing equipmentAnd an image processing method according to claim 9.According to the above, the region where the device is sold is determined, and the parameter for color determination is changed according to the sales region.
[0023]
Claim3Or5According to the image processing apparatus, the sales area of the apparatus is determined based on the magnification setting of the apparatus, area information added to the print head of the apparatus, or the characteristics of the AC power supply supplied to the apparatus. You.
[0024]
Claim6According to this image processing apparatus, the parameter for color determination is stored in the parameter storage means provided in the print head of the apparatus, and color determination is performed using the stored parameter for color determination.
[0025]
【Example】
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0026]
FIG. 1 is a block diagram showing the configuration of the marker editing circuit according to the first embodiment of the present invention. In the figure, reference numeral 51 denotes a color CCD sensor, which separates a read image signal of a document into RGB signals and outputs the signals to an analog amplifier 52. The analog amplifier 52 amplifies the input signal with a predetermined gain (amplification factor). This amplified signal is input to the A / D converter 53, and the analog signal is converted into an 8-bit digital signal. The digital signal output of the A / D converter 53 is input to a color code determination circuit 54 and a marker color registration circuit 55. The color code determination circuit 54 compares the input signal from the A / D converter 53 with the output signal of the marker color registration circuit 55, and converts the input signal into a 6-bit code signal corresponding to the determined marker color. . That is, the input 256 × 256 × 256 = 167777216 color signal is converted into a predetermined 64 color code.
[0027]
This is based on the premise that the colors present on the marker document are limited to white and black and the marker colors sold in the market, and is a circuit for reducing the scale of the data processing circuit thereafter. is there. Detailed operations of the color code determination circuit 54 and the marker color registration circuit 55 will be described later.
[0028]
The output signal of the color code determination circuit 54 is input to an area determination circuit 56, which determines whether the area being read belongs to a normal area, a line area, or a paint area. See below). The output signal of the area determination circuit 56 is input to an output color determination circuit 57, which determines the output color according to the color code and the area mode, and converts the output color into 8-bit image data corresponding to the determined color. The data is converted and sent to the next image processing circuit.
[0029]
The determination of the two processing modes of the paint mode and the line mode in the area determination circuit 56 is based on the following conditions.
[0030]
(1) Paint mode: in the normal area, when the read color changes from “black” to “color”, the pixel in which the first “color” is read is switched to the paint mode, and “color” → “black” The paint mode continues until the transition of. When the transition from “color” to “black” is detected, the mode returns to the normal mode.
[0031]
(2) Line mode: in the normal area, when the read color changes from “white” to “color”, the pixel from which the first “color” is read is switched to line mode, and “color” → “white” The line mode is continued until the transition of is detected. When the transition from “color” to “white” is detected, the mode returns to the normal mode.
[0032]
In accordance with the above rules, an image signal on which a marker process has been performed while reading an image on the document is output from the marker editing circuit.
[0033]
Next, the marker color registration circuit 55 will be described. As shown in FIG. 2, the marker color registration circuit 55 creates a color page sheet 60 with a marker to be registered at a predetermined position on the document sheet, reads this, and performs data processing to register the color of the marker to be used. . That is, in FIG. 2, the regions 61a to 61c are defined as the colored regions of the green marker, and the regions 62a to 62c are defined as the colored regions of the pink marker, and the user can paint the region 61a only once without painting twice with the green marker desired to be used. Similarly, the area 61b is colored by applying the green marker twice, and the area 61c is colored by applying the green marker three times. Similarly, the areas 62a to 62c are painted once, painted twice, and painted three times, respectively, with a pink marker to be used. The color page sheet 60 thus created is set at a predetermined position on a scanner platen (not shown), and reading by the color CCD 51 is started. The image signal of the page converted into an 8-bit digital signal by the A / D converter 53 is input to the marker color registration circuit 55.
[0034]
FIG. 3 shows the configuration of the marker color registration circuit 55. In the figure, reference numeral 10 denotes an averaging circuit, which samples input color information for, for example, 64 pixels for each RGB and calculates an average value. Reference numeral 11 denotes an Rmax detection circuit, which outputs a signal 1 when the R signal of the output of the averaging circuit 10 is FFh (all eight bits are 1, ie, the R component is the maximum value), and otherwise outputs (00h to FEh). Outputs a signal 0. Reference numerals 12 and 13 also denote a Gmax detection circuit and a Bmax detection circuit having functions similar to those of the Rmax detection circuit 11, and detect whether or not the G signal and the B signal are the maximum values, respectively. Reference numeral 14 denotes a ratio calculation circuit to which output signals of the averaging circuit 10, the Rmax detection circuit 11, the Gmax detection circuit 12, and the Bmax detection circuit 13 are input. The ratio calculation circuit 14 calculates the ratio of the input R, G, B signals and outputs the ratio data as 6-bit ratio data for each color. Reference numeral 16 denotes a backup battery, which is provided with a predetermined voltage to the memory 15 so that stored data is not erased even when the power of the apparatus is turned off.
[0035]
FIG. 4 shows a table of calculation rules for ratio data. As can be seen from FIG. 4, when calculating the ratio, the deciding factor for determining which of the reference colors is RGB depends on the outputs of the Rmax detection circuits 11 to Bmax detection circuit 13.
[0036]
In FIG. 4, Type 1 is a case where all the Rmax detection circuits 11 to Bmax detection circuits 13 output 0. At this time, the second data represents the extent to which the data is larger than the reference with respect to the color having the second largest data. For example, when the input RGB data is 43, A8, 67, respectively, the B data (67) is used as a reference. Since the ratio data of the ratio calculation circuit 14 is 6 bits as described above, the reference data is set to an intermediate value of 20h. For other colors (R and G in this case), consider expressing the ratio from x1 / 4 to x4 with reference to 6 bits, and assign x1 / 4 to 00h and x4 to FFh. , The difference of one step of the data is 0.0625 times the reference value. That is, if (R, G, B) = (43, A8, 67), the RGB ratio data output from the ratio calculation circuit 14 is as follows:
Since R: G: B = 0.6505: 1.63111: 1, approximation is (R, G, B) = (1Ah, 2Ah, 20h).
[0037]
Type 2 to 4 are cases where only one of the Rmax detection circuits 11 to Bmax detection circuit 13 outputs 1. At this time, the color indicating the maximum value (the color for the circuit that outputs 1) is set to the reference value 20h, and the remaining two colors are indicated to be larger than the reference.
[0038]
Types 5 to 7 are cases where any two circuits among the Rmax detection circuits 11 to Bmax detection circuit unit 13 output “1”. In this case, since the first and second data are both FFh, this is set as the reference value 20h. Naturally, the color indicating the minimum value is calculated as a value smaller than 20h. Such a marker color is determined by the color code determined by the color code determination circuit 54 at the subsequent stage only based on information on the color size indicating the minimum value. For example, a color corresponding to Type 7 is It is a color that has an extremely large amount of magenta component, and the types of markers that are sold in the market having such color characteristics are at most one or two types, so that it is easy to determine.
[0039]
Type 8 is a case where all the Rmax detection circuits 11 to Bmax detection circuits 13 output “1”. Since such data is pure white data, it indicates that a marker is not painted on a predetermined pad position. If data corresponding to Type 8 is input, control is performed by a control circuit (not shown) so as to issue a buzzer warning to the operator.
[0040]
The averaging circuit 10 inputs the color pads shown in FIG. 2 in the order of 61a, 61b, 61c, 62a, 62b, 62c,. The RGB ratio of the green marker is determined by 61a, 61b, and 61c. However, as shown in FIG. 5A, all the signals are smaller than FFh, and the ratio does not substantially change due to the difference between the pads. Therefore, (R, G, B) = (1Ah, 2Ah, 20h) is output from the ratio calculation circuit 14 as an average value of the ratios of the three packages, and the data is written to the memory 15.
[0041]
On the other hand, the read data of the color pad by the pink markers of the color pads 62a to 62c in FIG. 2 is as shown in FIG. 5B, and when the R signal is applied once and twice, FFh, When the B signal is painted once, it is FFh. Therefore, the ratios due to the differences in the pads are different between 62a to 62c. This is a phenomenon that occurs because the pink marker hardly contains a C (cyan) component that is a complementary color of R (red) and a Y (yellow) that is a complementary color of G (green). As described above, if at least one of the outputs of the Rmax detection circuit 11 to the Bmax detection circuit 13 is output, the data of the package in which 0 is output is ignored, and the data of the package in which the number of 1 is large is ignored. Is processed to calculate the ratio.
[0042]
FIG. 6 is a flowchart of a process for determining which data is to be used in the calculation in the ratio calculation circuit 14.
[0043]
In Step 1, first, it is detected whether or not there is a signal in which 1 appears in the outputs of the Rmax detection circuits 11 to Bmax detection circuit 13 when three kinds of packages are read. If 1 does not appear, the process proceeds to No and the average ratio is calculated according to the condition of Type 1 according to the table of FIG. 4 (Step 1a). The green pads 61a to 61c in FIG. 2 correspond to this condition. If at least one 1 appears in Step 1, the process proceeds to Step 2.
[0044]
In Step 2, it is detected whether or not the number of “1” appearing in the output of the Rmax detection circuit 11 to the Bmax detection circuit 13 is equal to all three packages. If Yes, the average of the ratio is calculated according to the table in FIG. 4 (Step 2a). If No, the process proceeds to Step 3. In Step 3, it is detected whether or not the user has colored the marker at a predetermined position. That is, if there is a package in which the number of “1” appearing in the outputs of the Rmax detection circuit 11 to the Bmax detection circuit 13 is 3, the process proceeds to Yes and a warning by a buzzer is generated (Step 3a). This corresponds to Type 8 in FIG. If No, the process proceeds to Step 4.
[0045]
In Step 1, it is detected that the number of colors that become FFh is at least one. In Step 2, it is detected that the number of colors that become FFh is not the same in the three packages. In Step 3, the number of colors that become FFh is detected. Since it is detected that the three packages do not exist in the three packages, the combination of the number of “1” appearing in the outputs of the Rmax detection circuits 11 to Bmax detection circuit 13 in Step 4 is 2− * There are only two types, i.e.,-* (in random order) or 2 -2-* (in random order). Here, * means one or zero. In Step 4, when two-*-* combinations are used, only two pieces of pad data are used, and the ratio is calculated according to the table of FIG. 4 (Step 4a). In addition, in the case of a combination of two pieces-two pieces-* pieces, two pieces of data of the package in which two pieces appeared are used, and the ratio is calculated according to the table of FIG.
[0046]
For example, the input data of the pad 62a by the pink marker shown in FIG. 5B is (R, G, B) = (FFh, 8Ch, FFh), and the input data of the pad 62b is (R, G, B) = ( FFh, 4Ah, D5h), and if the input data of the package 62c is (R, G, B) = (FFh, 2Eh, 8Eh), two-*-* processing of Step 4a in FIG. Is That is, corresponding to Type 6 in FIG. 4, ratio data (R, G, B) derived from only the input data (R, G, B) = (FFh, 8Ch, FFh) of the package 62a = (20h, 11h, 20h) ) Is calculated.
[0047]
The ratio data thus calculated is stored in the memory 15 of FIG. The memory 15 is composed of, for example, a RAM, and the addresses of the RAM need only be prepared for the number of markers to be registered. The memory 15 is controlled by a CPU (not shown), data is read as necessary, and the data is sent to the color code determination circuit 54 via the CPU. Next, the operation of the color code determination circuit 54 will be described.
[0048]
FIG. 7 is a diagram showing a configuration of the color code determination circuit 54. 3, reference numerals 116 to 119 denote an Rmax detection circuit, a Gmax detection circuit, a Bmax detection circuit, and a ratio calculation circuit, respectively. The Rmax detection circuit 11, the Gmax detection circuit 12, the Bmax detection circuit 13, and the ratio detection circuit 14 shown in FIG. It has the same function as. Reference numeral 111a denotes a comparator that determines whether or not the output data of the ratio calculation circuit 119 that is input is the ratio of the green marker. Similarly, 111b, 111c,... Are comparators for judging whether the input data has a ratio corresponding to a single marker color, and have the same number as the number of markers to be registered / determined. Registers 112a, 112b, 112c,... In which ratio data for each marker read from the memory 15 in FIG. 3 are written are connected to the B input of each comparator.
[0049]
For example, the ratio data of the green marker is written in the register 112a, and the ratio data of the pink marker is written in the register 112b. The comparators 111a, 111b, 111c... Output a signal “1” when the data input to the A terminal and the data input to the B terminal are similar. For example, if each of the RGB ratio data is within the range of ± 2, the CPU is controlled by a CPU (not shown) to output a signal “1”.
[0050]
However, if any one of the Rmax detection circuits 11 to Bmax detection circuit 13 outputs “1” to the ratio calculation circuit 14 in the marker color registration circuit shown in FIG. , "1", the approximate range is adjusted. That is, if the number of “1” is one, if the respective ratio data of RGB is a difference within the range of ± 4, each comparator is controlled to output 1, and if the number of “1” is two, If the number is RGB, control is performed so that each comparator outputs 1 if the respective ratio data of RGB is a difference within the range of ± 8.
[0051]
As described above, by changing the control range of the comparator according to the number of “1”, the color determination is correctly performed even for the marker colors having different RGB ratios depending on the state of the overpainting such as the pink marker. As an example of a pink marker, if the ratio data of each of RGB is set so that the comparator outputs “1” with a difference within a range of ± 8, the ratio data of 62b and 62c in FIG. Even if it is input, the comparator 111b outputs “1”.
[0052]
The outputs of the comparators 111a, 111b, 111c... Are input to AND gates 113a, 113b, 113c. Registers 114a, 114b, 114c,... In which predetermined color code data are set are connected to the other inputs of the AND gates 113a, 113b, 113c,. For example, color code data of a green marker (tentatively 001) is set in the register 114a, and color code data of a pink marker (tentatively 002) is set in the register 114b.
[0053]
Reference numeral 115 denotes an OR gate to which all outputs of the AND gates 113a, 113b, 113c,... Are input. That is, since only one of the comparators 111a, 111b, 111c... Outputs the signal “1” based on the ratio data output from the ratio calculation circuit 119, the data output from the OR gate 115 is read. Data corresponding to the color of the marker is output.
[0054]
The output of the OR circuit 115 is input to the area determination circuit 56 as described above as the output of the color code determination circuit 54, and it is determined whether the area being read belongs to a normal area, a line area, or a paint area. Is determined. The output of the area determination circuit 56 is input to an output color determination circuit 57, which determines the output color in accordance with the color code and the area mode, converts the output color into 8-bit image data corresponding to the determined color, and performs image processing at the next stage. Sends data to the circuit.
[0055]
In the above-described embodiment, the color page sheet is colored in the format of FIG. 2, but the color page sheet may be in the format of FIG. 8, for example. This reduces color coating unevenness and reduces the number of color coating areas, which is convenient. In FIG. 8, reference numerals 121 to 123 denote black frames having a predetermined line width. First, the operator paints the inside of the black frame 121 with the marker pen. Next, the inside of the black frame 122 is painted, and finally, the inside of the black frame 123 is painted.
[0056]
A reading sequence when a color page sheet of such a format is read and marker color registration is performed will be described. If black is detected in the read image data, it indicates that the image data enters the area of the color page. Since the detected black is the black frame 121, the color data appearing next to the black is the marker color painted once. If black is detected next, the black is the black frame 122, and the color data appearing next to black is the marker color painted twice. Further, if black is subsequently detected, the black is the black frame 123, and the color data appearing next to black is the marker color painted three times. In this way, by reading the color data of the first- to third-time marker colors and registering the marker colors, the color registration can be performed at high speed because the reading area at the time of color registration is narrow. In addition, since the color data after the detection of the black frame is recognized as the marker color, the color registration can be performed correctly even when the color pad sheet is set on the platen even if the position is slightly shifted.
[0057]
Then, according to the registered color data of the first to third coating, the color can be determined as a marker of the same color regardless of the number of coatings.
[0058]
(Second embodiment)
Next, a second embodiment of the present invention will be described with reference to FIGS.
[0059]
First, the contents of marker editing in this embodiment will be described. When a monochrome document is colored with a color marker and the marker is edited, an output as shown in FIG. 9 is obtained.
[0060]
That is, {circle around (1)} marking the inside of a closed area separated by a black line as shown in the upper part of the figure (however, it is necessary to mark adjacently within 1 mm from the black line), the marker inside the closed area Filled with the color. {Circle over (2)} As shown in the middle part of the figure, marking is performed so as to include the black line (however, the black line needs to be filled with a width of 1 mm or more), and the black line is replaced with the marker color. . (3) Furthermore, as shown in the lower part of the figure, a composite type of the above (1) and (2) is used to mark the inside of a closed area separated by the outer black line with a first color and also to mark the inner black line. , The inside of the outer black line is filled with the first color, and the inner black line is replaced with the second color.
[0061]
FIG. 10 shows the configuration of the image processing section of the full-color copying machine used in this embodiment to realize these processes. Reference numeral 221 denotes a CCD line sensor for reading an original image and outputting RGB data; 222, an amplifier circuit for amplifying RGB data; 223, an AD converter for quantizing the RGB data into an 8-bit digital value; and 224, shading of image data. A shading correction circuit 225 for correcting a color misregistration correction circuit 225 for correcting misregistration of read RGB data, a black character detection circuit 226 for detecting a black character and generating a black character signal, a marker editing circuit 227 for a marker editing circuit, and a enlargement circuit 228 for an enlargement A scaling circuit for performing scaling of reduction, a control signal generation circuit 229 for generating signals used in the spatial filter 233 and the binarization circuit 235, a LOG conversion circuit 230 for performing LOG conversion according to a LOG table, and a reference numeral 231 for LOG conversion After CMY (Cyan, Magenta, Yellow) data 232 is a masking / UCR circuit that performs masking and UCR by matrix operation, 233 is a spatial filter circuit that performs edge enhancement or smoothing processing, and 234 is a gamma (γ) conversion of the input signal. A gamma conversion circuit 235, a binarization circuit for binarizing 8-bit multivalued data by a dither method or the like, a head timing adjustment circuit 236 for adjusting between CMYK (cyan, magenta, yellow, and black) heads; 237 is a head driver circuit for driving the adjusted head, and 238 is a BJ ink head for four colors of CMYK. However, when performing the marker editing processing, the LOG conversion circuit 230 and the masking / UCR circuit 232 are set so as not to perform any processing (through).
[0062]
Next, details of the marker editing circuit 227 will be described with reference to the entire block diagram of FIG. The image data composed of 8 bits of R, G, and B is converted into 8-bit image data of C, M, and Y by a LOG conversion circuit 240, and enters a black-and-white determination circuit 241. Here, each pixel has monochrome and each threshold value, and if all the data values of CMY are equal to or less than the threshold value of white, the pixel is determined to be white. If all of the data values are equal to or greater than the black threshold value, it is determined to be black. As a result, pixels determined to be white or black are coded by the determination color coding circuit 244.
[0063]
Pixels determined to have a color other than black and white are input to the main color extraction circuit 242. This circuit outputs which of the CMY components is the largest. Next, the color determination circuit 243 performs color determination. As shown in FIG. 12, the discrimination method determines the ratio of the remaining two components for each of the main colors (cyan, magenta, and yellow) obtained by the main color extraction circuit 242, and determines the color by the ratio of each of the CMY components. I do. For example, if the main color is M (magenta), C (cyan) is 3/8 or less thereof, and Y (yellow) is 5/8 or less thereof, the pixel is determined to be P (pink). A portion where CMY has a ratio of approximately 1: 1: 1 is determined to be black, because light black (gray) not reaching the black threshold level is also determined to be black. In other words, black is determined in two stages. In the color discrimination table shown in FIG. 12 for discriminating colors based on the ratio between the main color and the remaining two components with respect to the main color, the color of the read image can be changed. The details of determining the color will be described later.
[0064]
The CMY component ratio is used for the determination because each color has a specific CMY component ratio and its value is substantially constant with respect to the density of the color.
[0065]
The output of the color determination circuit 243 is converted into a 4-bit color code by the determination color coding circuit 244 as shown in FIG. 13, and the converted color code is input from the marker color determination circuit 251 to the isolated color removal circuit 252. You.
[0066]
In the isolated color removal circuit 252, as shown in FIG. 14, the central pixel of interest * is determined by looking at the surrounding pixels on the 3 × 3 matrix, and the following processes 1) to 4) are sequentially performed.
[0067]
1) When * ≠ A and * ≠ H, * = A
2) When * ≠ C and * ≠ F, * = C
3) When * ≠ D and * ≠ E, * = D
4) When * ≠ B and * ≠ G, * = B
That is, the processing is performed in the order of 1), 2), 3), and 4), and the target pixel is changed if the conditions are satisfied. Here, reference numeral 245 denotes a delay circuit that stores eight pixels around the target pixel, and 246 denotes a comparison circuit that performs comparison between the above-described pixels. The reason why the target pixel is changed to the left or upper pixel is that the main scanning direction is left → right and the sub-scanning direction is upper → lower. This is because the isolated color removal processing has been completed for the pixel.
[0068]
By this processing, noise can be removed from an image with much noise. However, if this processing is added, a thin line of one pixel unit may be removed, and the reproducibility of a thin black character becomes a problem. Therefore, when the isolated color removal processing is applied to black pixels and when it is not applied The following two modes are provided. The output of the isolated color removal circuit is input to the area determination unit 253 as a 4-bit color code.
[0069]
The area determination circuit 247 of the area determination unit 253 determines which of the following four areas each pixel of the image belongs to.
[0070]
1) Normal area
2) Paint area
3) Line area
4) Line area in paint
The normal area is an area where nothing is performed, and the initial value is set in this area. The paint area is an area that fills the closed section. However, the region is a normal region on the black line at the boundary. The line area is an area for replacing black with a marker color. The in-paint line area is a composite type of the paint area and the line area, and is a line area in the paint area.
[0071]
As shown in FIG. 15, the area determination circuit 253 has a sensor of 128 pixels in the sub-scanning direction, and stores data read for each pixel and delay data of the immediately preceding pixel in the main scanning direction in a memory. I remember. The delay data stores a paint determination color that determines the color in the paint area, a line determination color that determines the color in the line or nested line area, the area, and the distance from the black pixel in the sensor movement direction to the horizontal black. There are a counter, a horizontal color counter that stores the distance from the color pixel, and a previous color that is the color of the pixel read one line before. The print color is determined by the logical synthesis of these data and the read data. The details are shown in FIGS.
[0072]
For example, as shown in FIG. 17, when the previous color is white in the paint area and the current color is the marker color, the vertical and horizontal black distance counters are checked, and if it is determined that the color is close to black, the area is determined to be the paint area. Then, the current color is printed, and the process proceeds in such a procedure that the current color is set as the paint determination color. The point to be noted in FIGS. 16 to 19 is that a counter is used. Therefore, if the marking is not strictly adjacent to black but is within a certain condition, the marking is regarded as adjacent to black and the processing is performed. It can be carried out. The reason why the gap is allowed instead of the protrusion as the marking condition is that the protrusion cannot be colored such as a pie chart, and the gap can be corrected.
[0073]
Further, since the counter only looks at the vertical and horizontal directions, even if the marker color or black is adjacent in the oblique direction, it cannot be detected by the vertical and horizontal counters. In this case, a malfunction occurs, so the area determination unit avoids the processing by adding a process as shown in FIG. This method replaces the target pixel with the previous color if the target pixel is white, the previous color is the marker color and the paint area, and if any of the vertical and horizontal directions is closer to black. As a result, the white gap between black and the marker color is processed as if it were the marker color, and a gap in an oblique direction can be dealt with.
[0074]
Also, the reason why the stored data does not include the vertical distance counter is that it is not necessary to store it because it can be calculated in the sensor currently being read.
[0075]
The color code after the processing described above is input to the output conversion circuit 254. This data is switched by the selector 248 to a color code before area determination and input to the density generation / print color determination circuit 249. The selector 248 is provided so as to be able to output data for which only color determination has been performed.
[0076]
The density generation / print color determination circuit 249 is a circuit that converts a 4-bit color code into CMYK data by using a preset output color table. For black, the density data of M (magenta) input to the marker editing circuit 227 is used to realize halftone.
[0077]
Here, there are the following three output conversion modes.
[0078]
1) Standard back mode
2) Standard blue back mode
3) Special blue back mode
The standard back mode is a mode in which the color code generated by the area determination circuit 252 is converted and output using the CMYK output color table shown in FIG. In the standard blue-back mode, the pixels determined to be white and output in the standard back mode are converted to blue, and the pixels determined to be black to be output are converted to white and output, and a blue-back original used for an OHP original can be created. . The special blue-back mode is almost the same as the standard blue-back mode, except that only black in the paint area is output as it is.
[0079]
The CMYK data that has undergone the above processing is subjected to processing such as scaling, masking, and binarization in each circuit block shown in FIG. 10, and is printed by the printer unit.
[0080]
Next, the blue-back processing in the output conversion circuit 254 will be specifically described.
[0081]
Here, consider a document as shown in FIG. This is the image viewed from the side, and the vertical axis represents the density. The black line on the left is a black line in a closed section, and the side of the black line is colored with a marker. The black on the right is a black character in the paint area. The fact that the density of black is mountain-shaped indicates that the density of black is low near the boundary between white and black. When the marker editing process is performed on such an image, an output result as shown in FIG.
[0082]
First, the left side of the black line representing the closed section is a normal area, and is blue as a background color. Next, since the black line expresses white using the inverted density, the edge portion of the black line becomes black. Next, the white in the paint area becomes the painted marker color. Similar to the black line, the black character is a white character having a black edge portion using the inverted density. If the marker color is a bright color such as pink, black generated between the pink color and the white character will be conspicuous.
[0083]
When the processing is performed using the area information of the stored data and the paint determination color to solve this problem, the result is as shown in FIG. The black line has a normal area as the area information and does not have a paint determination color, so that the reverse density is generated in blue, which is the background color. Black characters have a paint color as area information and a marker color as a paint decision color, so a halftone density is generated between the marker decision color and white, so the edges of the character must be filled with a dark level of the paint decision color And no dust is generated (black can be prevented from being generated at the edge).
[0084]
FIG. 23 shows this operation in a table. This corresponds to the case where the partial print determination color described above is black and the paint area is blue back. At this time, the inverted density is generated from the black density information, and the paint table, which is the paint determination color, is multiplied by the inverted density as a coefficient, so that the halftone processing can be performed on the edge of the character according to the surrounding color. In this figure, A, B, and C are constants set for adjusting the density.
[0085]
Next, a method of reading a marker painted on the edge of a document and setting a color determination parameter will be described below. In the present embodiment, the marker colors to be identified are defined as eight colors of cyan, green, blue, red, pink, violet, orange, and yellow, and the position to be painted with the marker at the leading edge of the document is also specified as shown in FIG. ing. When the marker edit mode is selected and a copy button for starting a copy operation is pressed, shading correction for removing unevenness of each pixel of the image reading sensor 221 is performed. After the completion of the shading correction, the image reading sensor 221 is moved to the position where the document coated with the cyan marker shown in FIG. 24 is placed, and the histogram shown in FIG. 25 is created. The histogram shows the frequency distribution of each of the main colors shown in FIG. 12 obtained by the main color extraction circuit 242 by calculating the ratio with the remaining two components.
[0086]
A method of creating a frequency distribution will be described with reference to FIG. FIG. 26 is a block diagram showing the configuration of the color determination circuit 243, and shows a case where a document painted with a cyan marker is read and the main color extraction circuit 242 determines that the main color is cyan.
[0087]
Reference numeral 261 denotes an 8-bit register that stores cyan image data as a main color, 262 denotes an 8-bit register that stores magenta image data, and 263 stores yellow image data. This is a stored 8-bit register. The input of each of the 8-bit registers 261, 262, 263 is connected to the output of the black-and-white discriminating circuit 241.
[0088]
Reference numeral 264 denotes a division block for calculating the ratio between magenta and cyan based on the image data of cyan and magenta stored in the registers 261 and 262 and outputting a 3-bit signal. This is a division block that calculates the ratio of yellow to cyan based on the stored image data of cyan and yellow and outputs a 3-bit signal. Reference numeral 266 denotes an SRAM for inputting the ratio of magenta and yellow to cyan of the main color obtained by the division blocks 264 and 265 to the address bus and storing the frequency distribution. Reference numeral 267 denotes data read from the data bus when the input terminal A is at the H (high) level, adds 1 to the read data and stores the data, and stores data when the input terminal A is at the L (low) level. On the data bus. A read / write control unit 268 has a function of controlling reading / writing of the SRAM 266.
[0089]
That is, the primary color is cyan, and three colors of cyan, magenta, and yellow corresponding to one pixel of the document are stored in the registers 261, 262, and 263, and the read / write control unit 268 completes the operation in the division blocks 264 and 265. The output terminal R is set to the L level at the timing. When the output terminal R of the read / write control unit 268 goes low, the SRAM 266 enters a read state, outputs data at the address set on the address bus to the data bus, and the arithmetic unit 267 converts the data on the data bus to data. One is added. Next, the output terminal R of the read / write control unit 268 is set to the H level and the output terminal W is set to the L level at the timing when the addition processing in the arithmetic unit 267 is completed. When the output terminal W of the read / write control unit 268 becomes L level, the data bus of the SRAM 266 enters an input state, and the data stored in the arithmetic unit 267 is output to the data bus. Next, the read / write control unit 268 sets the output terminal W to the H level. When the output terminal W of the read / write control unit 268 changes from L level to H level, data on the data bus is stored in the SRAM 266. Similarly, a frequency distribution table is created for the main color magenta and the main color yellow.
[0090]
The frequency distribution table creation processing for one pixel of cyan painted on the original has been described above. In the present embodiment, the processing for obtaining the frequency distribution is repeated 100 times, and 100 points of cyan painted on the original are sampled to calculate the frequency. A distribution table has been created.
[0091]
Next, the image reading sensor 221 is moved to the position where the document coated with the green marker shown in FIG. 24 is placed, and the main colors cyan, magenta, and yellow when the document is coated with green, respectively. Create a frequency distribution table. Thereafter, similarly, the image data at the positions painted with the blue, red, pink, violet, orange, and yellow markers is read, and a frequency distribution table is created. In preparing the frequency distribution table, if a marker is not painted on the target position, the standard frequency distribution for the unpainted color is substituted. Lastly, in a frequency distribution of each of the primary colors cyan, magenta, and yellow, the frequency is commonly 0, and a predetermined range (an area in which cyan, magenta, and yellow are both dark and corresponds to light black). Correct the frequency distribution table so that is black.
[0092]
Next, a method of creating a marker reading color determination parameter from the frequency distribution table will be described with reference to the conceptual diagram of FIG. 28 and the flow of FIG. FIG. 28A is a frequency distribution table obtained for the main color C (created for each color by reading cyan, green, blue, red, pink, violet, orange, yellow, and black painted on the manuscript) Is synthesized). The frequency distribution table is stored in the SRAM 266 for each color, read out by a CPU (not shown), and processed according to the flow shown in FIG.
[0093]
In step S1, it is determined whether the black and blue regions are adjacent. If the regions are adjacent, the process proceeds to step S2. If the regions are not adjacent, the process proceeds to step S11.
[0094]
In step S2, the adjacent state of the black and blue areas is determined. If the black and blue areas overlap each other, the process proceeds to step S4, and if there is a gap (frequency 0) between the black and blue areas (FIG. 28A shows a state where there is a gap). Proceed to step S3.
[0095]
In step S3, the center between the black and blue regions is set, and the center between the regions is set as the boundary between black and blue, and the process proceeds to step S5.
[0096]
In step S4, the center during which the black and blue areas overlap is determined, and the center during the overlap is defined as the boundary between black and blue, and the process proceeds to step S5.
[0097]
In step S5, it is determined whether or not all the processing for determining the boundary has been completed for the portion where the black and blue regions are adjacent to each other. If all the processes for determining the boundary have been completed, the process proceeds to step S11. If the process for determining the boundary remains, the process returns to step S2. FIG. 28B shows a frequency distribution table when step S5 is completed.
[0098]
In step S11, it is determined whether the black and green areas are adjacent. If the regions are adjacent, the process proceeds to step S12. If the regions are not adjacent, the process proceeds to step S21.
[0099]
In step S12, the adjacent state of the black and green areas is determined. If the black and green areas overlap, the process proceeds to step S14, and if there is a gap (frequency 0) between the black and green areas, the process proceeds to step S13.
[0100]
In step S13, the center between the black and green regions is determined, and the process proceeds to step S15 with the center between the regions as the boundary between black and green.
[0101]
In step S14, the center during which the black and green areas overlap is determined, and the center during the overlap is defined as the boundary between black and green, and the process proceeds to step S15.
[0102]
In step S15, it is determined whether or not all the processes for determining the boundary have been completed for the portion where the black and green regions are adjacent to each other. If all the processes for determining the boundary have been completed, the process proceeds to step S21. If the process for determining the boundary remains, the process returns to step S12. FIG. 28C shows a frequency distribution table when step S15 is completed.
[0103]
In step S21, it is determined whether the blue and green areas are adjacent. If the regions are adjacent, the process proceeds to step S22. If the regions are not adjacent, the process proceeds to step S31.
[0104]
In step S22, the adjacent state of the blue and green areas is determined. If the blue and green regions overlap, the process proceeds to step S24, and if there is a gap (frequency 0) between the blue and green regions, the process proceeds to step S23.
[0105]
In step S23, the center between the blue and green regions is determined, and the center between the regions is defined as the boundary between blue and green, and the process proceeds to step S25.
[0106]
In step S24, the center during the overlap between the blue and green regions is determined, and the center during the overlap is set as the boundary between blue and green, and the process proceeds to step S25.
[0107]
In step S25, it is determined whether or not all the processing for determining the boundary has been completed for the portion where the blue and green regions are adjacent to each other. If all the processes for determining the boundary have been completed, the process proceeds to step S31. If the process for determining the boundary remains, the process returns to step S22. FIG. 28D shows a frequency distribution table when step S25 is completed.
[0108]
In step S31, it is determined whether the blue and cyan areas are adjacent. When the regions are adjacent, the process proceeds to step S32, and when the regions are not adjacent, the process proceeds to step S41.
[0109]
In step S32, the adjacent state of the blue and cyan areas is determined. If the regions of blue and cyan overlap, the process proceeds to step S34, and if there is a gap (frequency 0) between the regions of blue and cyan, the process proceeds to step S33.
[0110]
In step S33, the center between the blue and cyan regions is set, and the center between the regions is set as the boundary between blue and cyan, and the process proceeds to step S35.
[0111]
In step S34, the center during which the blue and cyan areas overlap is determined, and the center during the overlap is used as the boundary between blue and cyan, and the process proceeds to step S35.
[0112]
In step S35, it is determined whether or not all the processing for determining the boundary has been completed for the portion where the blue and cyan regions are adjacent to each other. When all the processes for determining the boundary have been completed, the process proceeds to step S41, and when the process for determining the boundary remains, the process returns to step S32. FIG. 28E shows a frequency distribution table when step S35 is completed.
[0113]
In step S41, it is determined whether the green and cyan areas are adjacent to each other. If the regions are adjacent, the process proceeds to step S42. If the regions are not adjacent, the process proceeds to step S51.
[0114]
In step S42, the adjacent state of the green and cyan areas is determined. If the green and cyan areas overlap, the process proceeds to step S44, and if there is a gap (frequency 0) between the green and cyan areas, the process proceeds to step S43.
[0115]
In step S43, the center between the green and cyan regions is set, and the center between the regions is defined as the boundary between green and cyan, and the process proceeds to step S45.
[0116]
In step S44, the center during which the green and cyan regions overlap is determined, and the center during which the green and cyan regions overlap is defined as the boundary between green and cyan, and the process proceeds to step S45.
[0117]
In step S45, it is determined whether or not all the processing for determining the boundary has been completed for the portion where the green and cyan regions are adjacent to each other. If all the processes for determining the boundary have been completed, the process proceeds to step S51. If the process for determining the boundary remains, the process returns to step S42. FIG. 28F shows a frequency distribution table when step S45 is completed.
[0118]
In step S51, it is determined whether the green and blue regions are adjacent. If the regions are adjacent, the process proceeds to step S52. If the regions are not adjacent, the process proceeds to step S61.
[0119]
In step S52, the adjacent state of the green and blue areas is determined. If the green and blue regions overlap, the process proceeds to step S54, and if there is a gap (frequency 0) between the green and cyan regions, the process proceeds to step S53.
[0120]
In step S53, the center between the green and blue regions is set, and the center between the regions is defined as the boundary between green and blue, and the process proceeds to step S55.
[0121]
In step S54, the center during which the green and blue regions overlap is determined, and the center during which the green and blue regions overlap is defined as the boundary between green and blue, and the process proceeds to step S55.
[0122]
In step S55, it is determined whether or not all the processing for determining a boundary has been completed for a portion where the green and blue regions are adjacent to each other. If all the processes for determining the boundary have been completed, the process proceeds to step S61. If the process for determining the boundary remains, the process returns to step S52. FIG. 28G shows a frequency distribution table when step S55 is completed.
[0123]
In step S61, the process of determining the boundary for cyan as the main color ends. Similarly, the processing for determining the boundary is performed for the main color of magenta and the main color of yellow.
[0124]
The result obtained by reading the marker painted on the edge of the document and setting the color determination parameter is used by the color determination circuit 243 in the actual copy operation. When only the marker is painted on the leading edge of the document (there is no black), the marker at the leading edge of the document is not printed on the printing paper according to the rule of the marker processing.
[0125]
By using the color determination parameter (for example, FIG. 28 (G)) set based on the result of actually reading the marker painted on the document, the variation in the color of the paper or the color of the marker or the reading sensor Thus, accurate color discrimination can be performed by eliminating the influence of the variation in the characteristics.
[0126]
Next, a modification of the second embodiment will be described with reference to FIGS. In the present embodiment, as a method of reading a marker painted on the edge of the document and setting a parameter for color determination, a basic type of the parameter for color determination is determined in advance, and the marker painted on the edge of the document is read. According to the result, a method of correcting the basic type of the color determination parameter is adopted.
[0127]
FIG. 29A shows the basic type of the color determination parameter in which cyan is the main color. The basic type of a parameter for judging a color (hereinafter, referred to as “region”) is a range that is distributed when a document coated with a marker is read in a normal use state.
[0128]
FIG. 29B is an extract of the cyan and green regions from FIG. In FIG. 29B, a is the distance to the end of the standard cyan area in the yellow direction with reference to the point where yellow and magenta are zero, and b is the standard distance in the yellow direction with reference to the point where yellow and magenta are zero. The distance to the edge of the green area, Z, is the distance to the boundary between cyan and green after correcting the color determination parameters.
[0129]
FIG. 29C shows a frequency distribution created by reading a marker painted on the edge of the document, and the distribution of cyan and green is within the range of the standard cyan region and the standard green region. It shows the case. c is the distance from the point where yellow and magenta are zero to the distribution end of cyan in the yellow direction, and d is the distance from the point where yellow and magenta are zero to the end of green in the yellow direction. . FIG. 29D is a diagram showing the boundary Z between cyan and green by correcting the cyan region and the green region in FIG. 29C.
Z = a + (ba) × (db) {(ac) + (db)}
The relationship holds.
[0130]
That is, the distance (ba) between the standard cyan area end and the standard green area end is obtained, and the obtained distance is calculated as the distance (ac) between the standard cyan area end and the cyan distribution end and the standard green area end. And the distance between the green distribution ends (db), and is set as the boundary Z between cyan and green. The cyan area after correction is indicated by the same symbol, but a solid line is drawn at the boundary to distinguish between the standard cyan area and the cyan area added by the correction. Similarly, the green area after the correction and the drawings after FIG. 29 also include solid lines indicating boundaries.
[0131]
FIG. 29E shows a case where the distribution of cyan is outside the standard cyan region and the distribution of green is within the range of the standard green region. FIG. 29F is a diagram showing the boundary Z between cyan and green by correcting the cyan region and the green region in FIG. 29E.
Z = c + (bc) ÷ 2
The relationship holds. That is, the center between the cyan distribution edge and the standard green area edge is defined as the boundary Z between cyan and green.
[0132]
FIG. 29 (G) shows a case where the distribution of green extends outside the standard green area and the distribution of cyan falls within the range of the standard cyan area. FIG. 29H is a diagram showing the boundary Z between cyan and green by correcting the cyan region and the green region in FIG. 29G.
Z = a + (da) ÷ 2
The relationship holds. That is, the center between the green distribution edge and the standard cyan area edge is defined as the boundary Z between cyan and green.
[0133]
FIG. 30A shows a case where the green distribution and the cyan distribution both protrude from the standard green region and the standard cyan region. FIG. 30B is a diagram showing a boundary Z between cyan and green by correcting the cyan region and the green region in FIG. 30A.
Z = c + (d−c) ÷ 2
The relationship holds. That is, the center between the green distribution end and the cyan distribution end is defined as the boundary Z between cyan and green.
[0134]
FIG. 30C shows a case where the distribution of cyan extends outside the standard cyan region, enters the standard green region, and the distribution of green falls within the standard green region range. FIG. 30D is a diagram illustrating a boundary Z between cyan and green by correcting the cyan region and the green region in FIG. 30C.
Z = b
The relationship holds. That is, the edge of the standard green area is defined as the boundary Z.
[0135]
FIG. 30 (E) shows a case where the green distribution extends outside the standard green area, enters the standard cyan area, and the cyan distribution falls within the standard cyan range. FIG. 30F is a diagram showing the boundary Z between cyan and green by correcting the cyan region and the green region in FIG.
Z = a
The relationship holds. That is, the end of the standard cyan area is set as the boundary Z.
[0136]
FIG. 30 (G) shows a case where the green distribution extends outside the standard green area and enters the standard cyan area, and the cyan distribution extends outside the standard cyan area and enters the standard green area. is there. FIG. 30H is a diagram showing a boundary Z between cyan and green by correcting the cyan region and the green region in FIG. 30G.
Z = a + (ba) ÷ 2
The relationship holds. That is, the center between the end of the standard cyan region and the end of the standard magenta region is defined as the boundary Z.
[0137]
In the case of FIGS. 30C, 30E, and 30G, there is a possibility that a marker of a different color such as green in the standard cyan area or cyan in the standard green area. Therefore, as described above, the boundary is determined and, for example, the fact that the cyan marker is likely to be detected as green is displayed on the liquid crystal of the operation unit (not shown), and a measure is taken to alert the user. . Although FIGS. 29 and 30 describe an example in which the boundary between cyan and green of the main color C is determined, the same processing is performed on the other colors of the main color C, the main color M, and the main color Y. It goes without saying that the application boundaries are determined.
[0138]
Next, in the above-described second embodiment, the color judgment parameter for judging the color of the marker used in the color marking is optimized according to the country or region where the copying machine is shipped. A first technique for converting the data will be described with reference to FIGS. 31 and 32. FIG.
[0139]
FIG. 31 shows an example of the scaling setting of the operation unit of the copying machine. In the case of Japan, since the A and B series are used as the paper, three types of magnification combinations A4 and B4, A4 and A3, and B4 and A3 are considered. In the case of the United States, since inch paper is used as paper, LTR and LGL can be considered as a combination of scaling. In the case of the European paper, since the A-series is used as the paper, A4 and A3 are conceivable as combinations of scaling. In other words, it can be seen that the number of combinations of scaling, the reduction ratio, and the enlargement ratio are different depending on the region even if only the scaling setting is considered. Currently, the method of controlling the magnification of a copier is not to create independent software for each region, but to create software for the entire world, register codes for regions, and use codes based on regions. The number of zooming combinations, the reduction ratio, and the enlargement ratio are made to correspond. That is, a code for a region is used in a control unit of a copier currently sold.
[0140]
FIG. 32 shows a flow for setting a color determination parameter corresponding to an area, and describes a process after a user of a copying machine selects marker editing and presses a copy button.
[0141]
In step S101, it is determined whether the regional code stored in the copying machine is Europe. If the regional code is Europe, the color determination parameter is set to European specifications (step S108). More specifically, a parameter for Europe is read from among parameters (prepared in advance) for determining the color of a marker painted on a document.
[0142]
If the regional code is not Europe in step S101, it is further determined whether the regional code is United States (step S102). In this embodiment, the area code is commonly used by the scaling circuit 228 and the marker editing circuit 227. However, the area code may be independently used as the marker editing circuit 227.
[0143]
In step S102, if the area code is U.S.A., the color determination parameter is set to the U.S. specification (step S107). If the area code is not U.S.A., the color determination code is set to the Japan specification. (Step S103).
[0144]
After executing step S103, S107 or S108, the process proceeds to step S104, in which the color determination parameters are set, that is, the color determination area shown in FIG. 12 is set. In a succeeding step S105, a copying operation by marker editing is performed. The detailed marker editing copying operation is as described above. When the marker editing copying operation is completed, the copying operation is completed.
[0145]
Next, a second method for optimizing the color determination parameter according to the country or region where the copying machine is shipped will be described with reference to FIG. In this method, information representing a region is added to a print head.
[0146]
FIG. 33A shows the configuration of the print head K (301). At the left end of the print head K, a portion for forming a projection indicating the destination is provided, and the destination can be determined by detecting the presence or absence of the projection by the switches SW1 and SW2. For example, when the switches SW1 and SW2 are both OFF, Japan, when the switch SW1 is ON and the switch SW2 is OFF, the United States, when the switch SW1 is OFF and the switch SW2 is ON, Europe, and when both the switches SW1 and SW2 are ON. In such a case, the color determination parameters are set to other regions.
[0147]
As described above, by adding the information indicating the destination to the print head, it becomes possible to make the main body of the copying machine common for the processing of the marker worldwide.
[0148]
Next, a third method for optimizing the color determination parameter according to the country or region to which the copying machine is shipped will be described with reference to FIGS. In this method, information representing an area is added to the print head as in the second method.
[0149]
FIG. 33B shows the configuration of the print head Y (302). A portion is formed at the left end of the print head Y to form a protrusion indicating the color determination parameter when the marker color is the Y primary color, and the presence or absence of the protrusion is detected by the switches SW-Y1 to SW-Y320 to correspond to the area. It is possible to set the determined color determination parameter. FIG. 34A shows standard parameters when Y is the primary color. When Y is the main color, there are five colors of yellow, orange, red, green, and black in the standard state. When Y is the primary color, one of the five colors is selected when considering a certain area (one cell in the figure).
[0150]
Therefore, the switches SW-Y1 to SW-Y5 are assigned to one area, and the determination color of the area is determined as to which one of the switches SW-Y1 to SW-Y5 is ON, and corresponds to the number of the SW that is ON. The determined color is set as the determination color. In this embodiment, since there are 64 (8 × 8) areas for one main color, 320 (64 × 5) SWs and 64 projections for specifying the judgment color are required. In addition, it is necessary to adjust the position of the projection for each region. Therefore, in an actual copying machine, a nonvolatile memory is mounted on the head, the color determination parameters are stored in the nonvolatile memory, and the color determination parameters are read from the nonvolatile memory of the head when the power of the copying machine is turned on. To set the color judgment parameter.
[0151]
FIG. 34B is a diagram illustrating an example of a color determination parameter for a certain area set by the third method. In this area, orange marker pens are not used, but red near orange (recognized as red in this area) is often used to prevent erroneous determination of red as orange. Therefore, an example is shown in which the orange determination area is defined as red.
[0152]
As a result, in the standard setting, it is possible to reduce the erroneous determination of the marker colors by limiting the places where eight marker colors can be determined to seven colors.
[0153]
Although the description has been given of the Y main color, it goes without saying that the same processing can be performed for the C main color and the M main color.
[0154]
When the above-described third method is employed, it is desirable that the color of the ink stored in the print head be the same as the color of the main color of the color determination parameter.
[0155]
Next, a fourth method for optimizing the color determination parameter according to the country or region to which the copying machine is shipped will be described with reference to FIGS. In this method, an area is determined based on the characteristics of an AC power supply line, and a color determination parameter is set based on the obtained area information.
[0156]
FIG. 35 is a block diagram showing a configuration for examining the characteristics of the AC power supply. As the AC power supply, a voltage of 100 V to 240 V, and a frequency of 50 HZ or 60 HZ is a target. In the figure, an AC power supply is applied to an attenuator 311, the voltage of which is attenuated to 1/1000 by the attenuator 311, and input to an AD converter of the CPU 312. The signal input to the AD converter is processed based on the flow shown in FIG. FIG. 36 shows a flow of determining the area where the copying machine is used from the characteristics of the AC power supply.
[0157]
In step S111, the minimum value is subtracted from the maximum value of the voltage, and then the time from the maximum value to the minimum value of the voltage is measured (step S112). In a succeeding step S113, it is determined whether or not the voltage of the AC power supply is a 200 V system. That is, the peak value of the voltage obtained in step S111 is multiplied by the reciprocal of the attenuation rate of the attenuator 311. If the obtained value is 500 V or more, it is determined that the power supply voltage is a 200 V system, and the process proceeds to step S118. If the obtained value is 500 V or less, it is determined that the power supply voltage is not 200 V, and the process proceeds to step S114.
[0158]
In step S114, it is determined whether the voltage of the AC power supply is a 115V system. That is, the peak value of the voltage obtained in step S111 is multiplied by the reciprocal of the attenuation rate of the attenuator 311. If the obtained value is 300 V or more, the power supply voltage is determined to be a 115V system, and the color determination parameter is set to the U.S.A. (Step S117). On the other hand, if the obtained value is 300 V or less, it is determined that the power supply voltage is not of the 200 V system, and the color determination parameter is set to the specification for Japan (step S115). Specifically, a parameter for Japan is read from among parameters (prepared in advance) for determining the color of the marker painted on the document.
[0159]
In step S118, it is determined whether the frequency of the AC power supply is 50 Hz or 60 Hz. That is, the time from the maximum value to the minimum value of the voltage obtained in step S112 is doubled to obtain one cycle time, and the reciprocal of the one cycle time is obtained to obtain the frequency of the AC power supply. If the frequency of the AC power supply is equal to or lower than 55 HZ, it is determined that the frequency is 50 HZ, and the color determination parameter is set to the specification for Korea (step S119). If the frequency of the AC power supply is equal to or higher than 55 HZ, it is determined that the system is of the 60 HZ type, and the color determination parameter is set to a European specification (step S119).
[0160]
After executing steps S115, S117, S119 or S120, the same processing as steps S104 and S105 in FIG. 32 is performed in steps S121 and S122, and this processing ends.
[0161]
According to the fourth method, even when destination information is not added, it is possible to determine a use area and to set an accurate color determination parameter.
[0162]
【The invention's effect】
As described in detail above, the image processing apparatus according to claim 1And an image processing method according to claim 8.According to, color data marked by a predetermined color marker is registered in advance,Read the color data in the area that has been painted multiple times with the same color marker and register the marker color,By comparing the registered color data with the read color data when reading the original,Color as the same color marker regardless of how many times it is paintedSince the determination is made, it is possible to prevent the marker color from being erroneously determined due to the marker unevenness of the user, the characteristic variation of the image reading sensor, and the like, and a desired marker editing result can be obtained.
[0164]
Claim2Image processing equipmentAnd an image processing method according to claim 9.According to this, the region where the device is sold is determined, and the parameter for color determination is changed according to the sales region, so that accurate marker color determination can be performed regardless of the sales region.soWear.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing circuit according to a first embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of a color page sheet.
FIG. 3 is a block diagram illustrating a configuration of a marker color registration circuit of FIG. 1;
FIG. 4 is a diagram for explaining the contents of processing in the ratio calculation circuit of FIG. 3;
FIG. 5 is a diagram showing a color distribution of a marker.
FIG. 6 is a flowchart of a process in a ratio calculation circuit of FIG. 3;
FIG. 7 is a block diagram illustrating a configuration of a color code determination circuit in FIG. 1;
FIG. 8 is a view showing another example of a color padding sheet.
FIG. 9 is a diagram for explaining the contents of marker editing according to the second embodiment of the present invention.
FIG. 10 is a block diagram showing a configuration of an image processing circuit of a color copying machine according to a second embodiment of the present invention.
FIG. 11 is a block diagram illustrating a configuration of a marker editing circuit in FIG. 10;
FIG. 12 is a diagram for explaining a color determination method.
FIG. 13 is a diagram showing a color code table.
FIG. 14 is a diagram illustrating a technique for removing isolated points.
FIG. 15 is a diagram for explaining storage data at the time of area determination.
FIG. 16 is a diagram showing a table for explaining a technique for determining an area.
FIG. 17 is a diagram showing a table for explaining a technique for determining an area.
FIG. 18 is a diagram illustrating a table for explaining a method of area determination.
FIG. 19 is a diagram showing a table for explaining a technique for determining an area.
FIG. 20 is a diagram illustrating a tailing process.
FIG. 21 is a diagram showing an output color table.
FIG. 22 is a diagram illustrating a blue-back process.
FIG. 23 is a diagram showing a table for explaining color density determination conditions.
FIG. 24 is a diagram exemplifying a position of a marker painted on the leading edge of a document;
FIG. 25 is a diagram illustrating an example of a frequency distribution when a cyan marker is read.
FIG. 26 is a block diagram illustrating a configuration of a color determination circuit.
FIG. 27 is a flowchart of a process for creating a color determination parameter.
FIG. 28 is a diagram illustrating a process of creating a color determination parameter.
FIG. 29 is a diagram for describing a correction process of a color determination parameter.
FIG. 30 is a diagram for describing a correction process of a color determination parameter.
FIG. 31 is a diagram illustrating a setting example of scaling.
FIG. 32 is a flowchart of a process of setting a color determination parameter.
FIG. 33 is a diagram showing a print head to which area information is added.
FIG. 34 is a diagram for describing an example of changing a color determination parameter according to area information.
FIG. 35 is a diagram showing an AC power supply and a configuration for measuring characteristics.
FIG. 36 is a flowchart of a process of determining a sales area based on characteristics of an AC power supply.
FIG. 37 is a diagram for describing marker editing.
FIG. 38 is a diagram for describing marker editing.
FIG. 39 is a diagram for explaining a problem of conventional marker editing.
[Explanation of symbols]
14 Ratio operation circuit
54 color code judgment circuit
55 Marker color registration circuit
227 Marker editing circuit
251 Marker color discrimination circuit

Claims (9)

原稿を読み取る原稿読み取り手段と、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定手段とを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理装置において、
前記所定の色マーカによってマーキングされた色データを予め読み取って登録するためのマーカ色登録手段を設け、
前記マーカ色登録手段は、同一の色マーカで複数回重ね塗りされた領域における色データを読み取ってマーカ色登録し、
前記マーカ色判定手段は、原稿の読み取り時に前記登録された色データと読み取った色データとを比較して、何度塗りかに関係なく同じ色のマーカとして色判定することを特徴とする画像処理装置。
Document reading means for reading the document, and marker color determining means for determining a color marked on the document with a predetermined color marker based on the read image data, and a predetermined color based on the information of the marked color In an image processing device that performs marker editing,
Marker color registration means for reading and registering color data marked by the predetermined color marker in advance,
The marker color registration unit reads color data in an area that has been painted multiple times with the same color marker and registers the marker color,
Wherein the marker color determination means compares the registered color data with the read color data when reading a document, and performs color determination as a marker of the same color regardless of how many times the image is painted. apparatus.
原稿を読み取る原稿読み取り手段と、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定手段とを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理装置において、
当該装置が販売される地域を判定する地域判定手段を設け、
前記マーカ色判定手段は、当該装置が販売される地域に応じて色判定用のパラメータを変更することを特徴とする画像処理装置。
Document reading means for reading the document, and marker color determining means for determining a color marked on the document with a predetermined color marker based on the read image data, and a predetermined color based on the information of the marked color In an image processing device that performs marker editing,
Providing an area determining means for determining an area where the device is sold,
The image processing apparatus according to claim 1, wherein the marker color determination unit changes a parameter for color determination according to an area where the apparatus is sold.
前記地域判定手段は、当該装置の変倍設定に基づいて販売地域を判定することを特徴とする請求項記載の画像処理装置。 3. The image processing apparatus according to claim 2 , wherein the area determining unit determines a sales area based on a scaling setting of the apparatus. 前記地域判定手段は、当該装置の印字ヘッドに付加された地域情報に基づいて販売地域を判定することを特徴とする請求項記載の画像処理装置。 3. The image processing apparatus according to claim 2 , wherein the area determination unit determines a sales area based on area information added to a print head of the apparatus. 前記地域判定手段は、当該装置に供給される交流電源の特性に基づいて販売地域を判定することを特徴とする請求項記載の画像処理装置。 3. The image processing apparatus according to claim 2 , wherein the area determination unit determines a sales area based on characteristics of an AC power supply supplied to the apparatus. 当該装置の印字ヘッドに色判定用パラメータを記憶するパラメータ記憶手段を設け、前記マーカ色判定手段は、前記パラメータ記憶手段に記憶された色判定用パラメータを使用して色判定を行うことを特徴とする請求項記載の画像処理装置。A parameter storage means for storing a color determination parameter in a print head of the apparatus is provided, wherein the marker color determination means performs a color determination using the color determination parameter stored in the parameter storage means. The image processing device according to claim 2 . 前記印字ヘッド内に格納されているインクの色と、前記色判定用パラメータの主色の色とが同一であることを特徴とする請求項記載の画像処理装置。7. The image processing apparatus according to claim 6 , wherein the color of the ink stored in the print head is the same as the color of the main color of the color determination parameter. 原稿を読み取る原稿読み取りステップと、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定ステップとを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理方法において、A document reading step of reading the document, and a marker color determining step of determining a color marked on the document with a predetermined color marker based on the read image data, and a predetermined color based on the information of the marked color. In an image processing method for performing marker editing,
前記所定の色マーカによってマーキングされた色データを予め読み取って登録するマーカ色登録ステップを設け、Providing a marker color registration step of reading and registering color data marked by the predetermined color marker in advance,
前記マーカ色登録ステップにおいて、同一の色マーカで複数回重ね塗りされた領域における色データを読み取ってマーカ色登録し、In the marker color registration step, the color data in the area that has been painted multiple times with the same color marker is read and the marker color is registered,
前記マーカ色判定ステップにおいて、原稿の読み取り時に前記登録された色データと読み取った色データとを比較して、何度塗りかに関係なく同じ色のマーカとして色判定することを特徴とする画像処理方法。In the marker color determining step, the registered color data and the read color data are compared at the time of reading a document, and the color is determined as a marker of the same color regardless of the number of paints. Method.
原稿を読み取る原稿読み取りステップと、読み取った画像データに基づいて所定の色マーカで原稿上にマーキングされた色を判定するマーカ色判定ステップとを有し、マーキングされた色の情報に基づいて所定のマーカ編集を施す画像処理方法において、A document reading step of reading the document, and a marker color determining step of determining a color marked on the document with a predetermined color marker based on the read image data, and a predetermined color based on the information of the marked color. In an image processing method for performing marker editing,
当該画像処理方法を実施する画像処理装置が販売される地域を判定する地域判定ステップを設け、An area determination step is provided for determining an area in which the image processing apparatus implementing the image processing method is sold,
前記マーカ色判定ステップは、当該画像処理方法を実施する画像処理装置が販売される地域に応じて色判定用のパラメータを変更することを特徴とする画像処理方法。The image processing method according to claim 1, wherein the marker color determination step changes a parameter for color determination according to an area where an image processing apparatus that performs the image processing method is sold.
JP22582194A 1994-08-26 1994-08-26 Image processing apparatus and image processing method Expired - Fee Related JP3595579B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP22582194A JP3595579B2 (en) 1994-08-26 1994-08-26 Image processing apparatus and image processing method
US08/517,824 US5974171A (en) 1994-08-26 1995-08-22 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22582194A JP3595579B2 (en) 1994-08-26 1994-08-26 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JPH0870382A JPH0870382A (en) 1996-03-12
JP3595579B2 true JP3595579B2 (en) 2004-12-02

Family

ID=16835333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22582194A Expired - Fee Related JP3595579B2 (en) 1994-08-26 1994-08-26 Image processing apparatus and image processing method

Country Status (2)

Country Link
US (1) US5974171A (en)
JP (1) JP3595579B2 (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11112791A (en) * 1997-04-10 1999-04-23 Ricoh Co Ltd Image forming device
NL1010238C2 (en) * 1998-10-02 2000-04-04 Oce Tech Bv Imaging device with separately actuable imaging elements.
AUPP702498A0 (en) * 1998-11-09 1998-12-03 Silverbrook Research Pty Ltd Image creation method and apparatus (ART77)
JP3748172B2 (en) 1998-12-09 2006-02-22 富士通株式会社 Image processing device
JP4416285B2 (en) * 1999-07-30 2010-02-17 キヤノン株式会社 Patch image creation method and apparatus
US7218420B1 (en) 2000-08-01 2007-05-15 Eastman Kodak Company Gray level halftone processing
US7079281B1 (en) * 2000-08-01 2006-07-18 Eastman Kodak Company Edge enhancement processor and method with adjustable threshold setting
JP2002057913A (en) * 2000-08-01 2002-02-22 Nexpress Solutions Llc Image recording device and image recording method for bringing about color emphasis in response to personal preference
US7079287B1 (en) 2000-08-01 2006-07-18 Eastman Kodak Company Edge enhancement of gray level images
US6535706B1 (en) * 2000-10-23 2003-03-18 Toshiba Tec Kabushiki Kaisha Image editing system and image forming system
US6964640B2 (en) * 2002-01-22 2005-11-15 P M G Medica L I D System and method for detection of motion
JP4579528B2 (en) * 2003-07-28 2010-11-10 キヤノン株式会社 Image forming apparatus
US7373013B2 (en) * 2003-12-23 2008-05-13 General Instrument Corporation Directional video filters for locally adaptive spatial noise reduction
US7570835B2 (en) * 2004-02-17 2009-08-04 International Business Machines Corporation Edge smoothing filter for character recognition
JP4423076B2 (en) * 2004-03-22 2010-03-03 キヤノン株式会社 Recognition object cutting apparatus and method
JP4537104B2 (en) * 2004-03-31 2010-09-01 キヤノン株式会社 Marker detection method, marker detection device, position and orientation estimation method, and mixed reality space presentation method
JP4448051B2 (en) * 2005-04-19 2010-04-07 キヤノン株式会社 Image reading apparatus and method
US7926730B2 (en) * 2005-11-30 2011-04-19 Pitney Bowes Inc. Combined multi-spectral document markings
US20070119950A1 (en) * 2005-11-30 2007-05-31 Auslander Judith D Document edge encoding using multi-spectral encoding tags
JP5084167B2 (en) * 2006-03-31 2012-11-28 キヤノン株式会社 Position and orientation measurement method and apparatus
JP4697035B2 (en) * 2006-04-28 2011-06-08 富士ゼロックス株式会社 Information processing apparatus, information processing method, and computer program
KR102212830B1 (en) 2013-05-24 2021-02-08 삼성전자 주식회사 Method and apparatus for displaying picture on portable devices
US9794738B2 (en) 2014-12-22 2017-10-17 Google Inc. Systems and methods for enforcing wireless regulatory compliance
CN107534710B (en) * 2016-02-29 2019-07-23 京瓷办公信息系统株式会社 Electronic equipment and label processing method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4956676A (en) * 1987-04-16 1990-09-11 Kentek Information Systems, Inc. Electrographic color printer/copier
JP3169234B2 (en) * 1990-10-25 2001-05-21 株式会社リコー Image forming device
JP2600515B2 (en) * 1991-05-14 1997-04-16 富士ゼロックス株式会社 Image processing method
JP3229370B2 (en) * 1991-06-07 2001-11-19 キヤノン株式会社 Image forming apparatus and image processing method
JPH06191120A (en) * 1992-10-16 1994-07-12 Xerox Corp Digital copying machine
JPH06284270A (en) * 1993-03-29 1994-10-07 Toshiba Corp Image forming device
US5414974A (en) * 1993-08-17 1995-05-16 Moore Business Forms, Inc. Automated document handling system

Also Published As

Publication number Publication date
US5974171A (en) 1999-10-26
JPH0870382A (en) 1996-03-12

Similar Documents

Publication Publication Date Title
JP3595579B2 (en) Image processing apparatus and image processing method
US5689590A (en) Background noise removing apparatus and method applicable to color image processing apparatus
US6421145B1 (en) Image processing apparatus and method using image information and additional information or an additional pattern added thereto or superposed thereon
US5402253A (en) Color conversion method and apparatus with a variable gray component replacement ratio
JPH0322117B2 (en)
US6406117B2 (en) Image recording method
US20080094517A1 (en) Image Processing Apparatus and Image Processing Method
CN101166225A (en) Image processing apparatus and image processing method
JP3344771B2 (en) Color image processing equipment
JPH07184041A (en) Method and device for image processing
US5987166A (en) Image processing apparatus capable of marker editing original image
US6567186B1 (en) Method for determining gray values in a printer
US7057766B1 (en) Apparatus for and method of outputting image
JP4215348B2 (en) Method for converting non-printable color values into printable color values, an image reproduction system for reproducing a color image, and control means comprising color conversion means suitable for this image reproduction system
JP3982979B2 (en) Image forming apparatus
JP2010119006A (en) Image processing apparatus,and image processing method
JP4111100B2 (en) Image processing apparatus and image processing program
JP2005109831A (en) Image processor
US7460269B2 (en) Method and device for color data generation
JP2001352456A (en) Image-processing method and image-processing unit, and image-forming device provided with them
JP3636802B2 (en) Output document determination apparatus and method
JP2000341547A (en) Device and method for image processing
JP2994029B2 (en) Control method in color image processing apparatus
JP3297466B2 (en) Image processing apparatus and image processing method
US20050012849A1 (en) Image processing using image generation record information

Legal Events

Date Code Title Description
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: 20040824

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040906

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees