JP3587586B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP3587586B2
JP3587586B2 JP11466295A JP11466295A JP3587586B2 JP 3587586 B2 JP3587586 B2 JP 3587586B2 JP 11466295 A JP11466295 A JP 11466295A JP 11466295 A JP11466295 A JP 11466295A JP 3587586 B2 JP3587586 B2 JP 3587586B2
Authority
JP
Japan
Prior art keywords
trimming
line
scanning direction
lines
image data
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
JP11466295A
Other languages
Japanese (ja)
Other versions
JPH08315107A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP11466295A priority Critical patent/JP3587586B2/en
Publication of JPH08315107A publication Critical patent/JPH08315107A/en
Application granted granted Critical
Publication of JP3587586B2 publication Critical patent/JP3587586B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【産業上の利用分野】
本発明は、スキャナによって読み取られた画像データの不要領域をトリミングするための画像処理装置に関する。
【0002】
【従来の技術】
従来から、スキャナによって読み取られた画像データの不要領域をトリミングする画像処理装置が知られている。この画像処理装置において、スキャナによって読み取られた画像データは一旦ホストコンピュータに接続されたハードディスクに格納されるか、あるいはホストコンピュータのメモリに一時的に格納される。その後画像データに対してレタッチソフトを実行することにより、画像データのうち必要領域以外の不要領域がトリミングされる。一方、対象となる画像の形状認識などを行い、トリミング処理を自動的に行う方法も知られている。
【0003】
【発明が解決しようとする課題】
上述のように、スキャナによって読み取られた画像データの不要領域をトリミングする場合、画像データは一旦ホストコンピュータに接続されたハードディスクに収納されたり、あるいはホストコンピュータのメモリに一時的に格納される。そして画像データに対してレタッチソフトを実行することにより、必要領域以外の不要領域がトリミングされる。
【0004】
しかしながら、スキャナによって読み取られた画像データには、原稿写真のパーフォレーション部や版下で指定された必要領域以外のデータも含まれている。ことがあり、この場合は、画像データを一旦ホストコンピュータに接続されたハードディスクに収納する際、実際に必要な画像データよりも多い画像データをハードディスクに格納しなければならない。もともと、画像データの書き込みには多大な時間を必要とするうえに、このように必要以上に画像データをハードディスクに格納すると、不要な部分まで書き込むことになり余計に時間がかかってしまう。
【0005】
また、この画像データをカラープリンタに出力するような場合、不要な部分をトリミングする必要がある。このトリミング作業は、レタッチソフト等によりハードディスクに収納された画像データを読み出し、ホストコンピュータに接続されたディスプレーにその画像を表示させ、必要領域を指定することにより行う。この場合、特に大容量の画像データを読み出す場合には、非常に時間がかかってしまう。
【0006】
また、このトリミング作業をマウスを用いて行う場合には、ディスプレーに表示された画像を拡大したり、拡大によりディスプレーに表示されなくなった部分を再表示するために表示位置を移動する必要があり、この作業にもかなりの時間がかかってしまう。
【0007】
一方、この画像データを一旦ホストコンピュータに接続されたハードディスクに収納しないで、直接ホストコンピュータのメモリに画像データを読み込み、その画像データをディスプレーに表示させ、上記と同様のマウスを用いたトリミング作業を行う方法もある。
【0008】
しかし、この場合にも上記と同様の問題が残るとともに、オペレータが一画像ずつ対話的にトリミング作業を行う必要があるため、効率が良くない。
【0009】
また、画像の形状認識などにより、トリミング処理を自動的に行おうとすると、演算時間が非常に長くかかるという欠点がある。
【0010】
本発明は、このような点を考慮してなされたものであり、効率よく自動的にトリミング作業を行うことができるとともに、ハードディスク等のメモリ領域を有効に利用することができ、かつ画像データの読み出しおよび書き込みに要する時間を短縮することができる画像処理装置を提供することを目的とする。
【0011】
【課題を解決するための手段】
請求項1記載の発明は、原稿を読み取ったスキャナから送られるとともに、中央の画像部と画像部外側に境界線を介して設けられた外枠部とから成る画像データを記録する記録手段と、この画像データをトリミングするトリミング手段とを備え、前記トリミング手段は画像データに対して主走査方向の一側から他側に向かって主走査方向に延びる2つの判別ラインを設定し、この2つの判別ライン境界線との交点のうち、主走査方向の一側および他側において画像部側の交点を通り副走査方向に延びる2つのラインを第1トリミングラインとして設定し、前記2つの第1トリミングラインと境界線との交点のうち、副走査方向の一側および他側において画像部側の交点を通り主走査方向に延びるラインを第2トリミングラインとして設定し、前記第1および第2トリミングラインに囲まれた必要領域以外の不要領域を除外することを特徴とする画像処理装置である。
【0012】
請求項2記載の発明は、
原稿を読み取ったスキャナから送られるとともに、中央の画像部と画像部外側に境界線を介して設けられた外枠部とから成る画像データを記録する記録手段と、
この画像データをトリミングするトリミング手段とを備え、
前記トリミング手段は画像データに対して主走査方向の一側から他側に向かって主走査方向に延びる2以上の判別ラインを設定し、この主走査方向に延びる2以上の判別ラインと境界線との交点のうち、主走査方向の一側および他側において最も画像部側に位置する交点を通り副走査方向に延びる2つのラインを第1トリミングラインとして設定し、
前記トリミング手段は更に前記2つの第1トリミングライン間において副走査方向の一側から他側に向かって副走査方向に延びる1以上の補正ラインを設定し、副走査方向に延びる第1トリミングラインおよび補正ラインと境界線との交点のうち、副走査方向の一側および他側において最も画像部側に位置する交点を通る主走査方向のラインを第2トリミングラインとして設定し、前記2つの第1トリミングラインおよび前記2つの第2トリミングラインに囲まれた必要領域以外の不要領域を除外することを特徴とする画像処理装置である。
【0013】
【作用】
請求項1記載の発明によれば、スキャナによって原稿が読み取られ、このスキャナから画像データが画像処理装置に送られ、画像処理装置に備えられた記録手段に記録される。この記録された画像データに対して、画像処理装置に備えられたトリミング手段は、まず、一側から他側に向かって主走査方向に延びる2つの判別ラインを設定する。その後、トリミング手段は、この2つの判別ラインと境界線との交点のうち、一側および他側において画像部側の交点を通り副走査方向に延びる2つのラインを第1トリミングラインとして設定し、この2つの第1トリミングラインと境界線との交点のうち、副走査方向の一側および他側において画像部側の交点を通り主走査方向に延びるラインを第2トリミングラインとして設定し、前記第1および第2トリミングラインに囲まれた、必要領域以外の不要領域を除外する。
【0014】
請求項2記載の発明によれば、スキャナによって原稿が読み取られ、このスキャナから画像データから画像処理装置に送られ、画像処理装置に備えられた記録手段に記録される。この記録された画像データに対して、画像処理装置に備えられたトリミング手段は、画像データに対して主走査方向の一側から他側に向かって主走査方向に延びる2以上の判別ラインを設定し、この主走査方向に延びる2以上の判別ラインと境界線との交点のうち、主走査方向の一側および他側において最も画像部側に位置する交点を通り副走査方向に延びる2つのラインを第1トリミングラインとして設定する。前記トリミング手段は更に前記2つの第1トリミングライン間において副走査方向の一側から他側に向かって副走査方向に延びる1以上の補正ラインを設定し、副走査方向に延びる第1トリミングラインおよび補正ラインと境界線との交点のうち、副走査方向の一側および他側において最も画像部側に位置する交点を通る主走査方向のラインを第2トリミングラインとして設定する。次に前記2つの第1トリミングラインおよび前記2つの第2トリミングラインに囲まれた必要領域以外の不要領域を除外する。
【0015】
【実施例】
以下、図面を参照して本発明の実施例について説明する。図1乃至図2は本発明による画像処理装置の第1の実施例を示す図である。
【0016】
図1において、画像処理システム10は、スキャナ11と、画像処理装置13とを備えている。このうちスキャナ11には、画像データ伝送用の接続ケーブル16が接続されており、またこの接続ケーブル16は、画像処理装置13に接続されている。
【0017】
また画像処理装置13は、処理前の画像データを記録するためのメモリ部15とトリミング手段14とを有している。このうち、トリミング手段14は、後述のように画像データのうち必要領域以外の不要領域を除外するものである。また、画像処理装置13の外部バス(図示せず)には、処理後の画像データを記録するためのハードディスク18及び、画像を印刷するためのプリンタ17が接続され、さらに画像処理装置13には、画像を表示するためのディスプレー19が接続されている。
【0018】
次に、このような構成からなる本実施例の作用について説明する。
【0019】
図1に示すように、まずスキャナ11によって原稿が読み取られ、このスキャナ11から画像データが接続ケーブル16によって画像処理装置13に送られる。この送られた画像データは、画像処理装置13のメモリ部15に一時的に記録される。
【0020】
画像処理装置13に備えられたトリミング手段14は、このメモリ部15に一時的に記録された画像データに基づいて下記の処理方法によって画像データのトリミング処理を行う。このトリミング処理を図2に示す。
【0021】
図2において、外形線20によって囲まれた領域がスキャナ11によって読み取られた画像データである。ここで、図中左上の点Aを原点(0,0)とし、この点Aから点Bへ向かう方向をX軸正方向とし、点Aから点Cへ向かう方向をY軸正方向とする。なお、X軸正方向は副走査方向と一致し、Y軸正方向は主走査方向と一致する。また、画像データは境界線21a,21b,21c,21d,によって囲まれた画像部1と、この画像部外側の外枠部2(ハッチング部)とに区画されている。
【0022】
図2における画像データにおいて、各点の座標は例えば点Bが(3150,1)、点Cが(1,2650)、点Dが(3150,2650)、点A1が(10,200)、点B1が(3000,180)、点C1が(100、2600)、点D1が(3100,2500)となっている。
【0023】
まず、トリミング手段14は、境界線21aの画像部側近傍において画面上側から下側に延びる主走査方向の判別ライン31aを設定し、同様に、境界線21bの画像部側近傍において画面上側から下側に延びる主走査方向の判別ライン31bを設定する。なお、判別ライン31aはX=95で表わされ判別ライン31bはX=3015で表わされる。
【0024】
次に、トリミング手段14は画像データに対して副走査方向に1ライン目から順次走査してゆき、設定した判別ライン31aおよび31b上にある画素の階調値を調査する。ここで得られた階調値によって、そこが必要領域か不要領域かを判断する。この判断は、例えば、階調値がC(シアン)、M(マゼンタ)、Y(イエロー)、K(クロ)ともに90%以上であれば不要領域と判断し、それ以外の領域は必要領域と判断する。ここで、図2において、ハッチング部分はC、M、Y、Kともに90%以上である。
【0025】
判別ライン31aおよび31b上において、副走査方向の179ライン目まではC、M、Y、Kともに90%以上であるので、不要領域と判断される。
【0026】
副走査方向の180ライン目に入ると、判別ライン31b上では、C、M、Y、Kのすべてが90%以上ではなくなるので、トリミング手段14は必要領域に入ったとみなし、フラグFbをアクティブにセットにする。副走査方向の180ライン目と判別ライン31bとの交点は、判別ライン31bと境界線21cとの交点となる。
【0027】
なお、このフラグは、この後、判別ライン31b上に偶然、C、M、Y、Kのすべてが90%以上の画素があってもそこを不要領域と判断しないように設けるものであり、一旦アクティブになるとフラグFa,Fbの全てがアクティブになるまでリセットはされない。
【0028】
この時点では、判別ライン31a上においては、いまだにC、M、Y、Kのすべてが90%以上であるため、トリミング手段14は不要領域と判断しつづける。
【0029】
副走査方向の201ライン目に入ると、判別ライン31a上においてもC、M、Y、Kのすべてが90%以上ではなくなるので、フラグFaもアクティブになり、ここでフラグFa,Fbのいずれもがアクティブにセットされる。副走査方向の201ライン目と判別ライン31aとの交点は、判別ライン31aと境界線21cとの交点となる。
【0030】
ここで、トリミング手段14は、201ライン目からが必要領域であると判断する。この副走査方向の201ライン目は上述の180ライン目より画像部側であるため、201ラインを第1トリミングライン32aとする。この判断が終了した段階で、フラグFa,Fbはリセットされる。また、それまでに受信した200ライン目までは、メモリ部15からも消去し、当然、ハードディスク18にも書き込まない。
【0031】
次に、トリミング手段14は、201ライン目の第1トリミングライン32aにそって画素を走査してゆきC、M、Y、Kのすべてが90%以上ではなくなる画面の左端から11画素目からを必要領域であると判断する。その後、さらに第1トリミングライン32aに沿って画素を走査してゆき、C、M、Y、Kのすべてが90%以上となる3016画素目の一つ前の3015画素目までを必要領域であると判断する。主走査方向の第11画素目のラインおよび第3015画素目のラインは、後述のように第2トリミングラインの候補となる。また、主走査方向の第11画素目のラインおよび第3015画素目のラインと、第1トリミングライン32aとの交点は、各々第1トリミングライン32aと境界線21a、21bとの交点となる。
【0032】
その後、トリミング手段14は、判別ライン31a、31b上において次の副走査方向の202ライン目の走査を行い、引き続き画素を走査していく。判別ライン31a、31bいずれのライン上においてもC、M、Y、Kのすべてが90%以上となる2600ライン目からを仮に不要領域であるとみなして、そこから先の画像データは、メモリ部15にも、ハードディスク18にも書き込まない。
【0033】
その後、トリミング手段14は、2600ライン目の一つ前の2599ライン目から判別ライン31a、31b上において、逆方向に走査を行ってゆき、C、M、Y、Kのすべてが90%以上ではなくなる時点でそれぞれフラグFa,Fbをアクティブにセットしてゆく。
【0034】
図1においては、2499ライン目からフラグFa,Fbの全てがアクティブにセットされ、この副走査方向の2499ライン目は2600ラインより画像部側であるため、この2499ラインを第1トリミングライン32bとする。
【0035】
ここで、トリミング手段14は、さらに2499ライン目の第1トリミングライン32bに沿って第1トリミングライン32a上で行ったのと同様の走査を行い、その結果画面の左端から95画素目から3099画素目までを必要領域であると判断する。この場合、主走査方向の第95画素目のラインおよび第3099画素目のラインと、第1トリミングライン32bとの交点は、各々第1トリミングライン32bと境界線21a,21bとの交点となる。
【0036】
ここで、前述のように第1トリミングライン32a上の走査によって、11画素目から3015画素目までが必要領域であると判断されているが、画像データに不要領域のデータが含まれるのを避けるため、第1トリミングライン32bにおいて判断された必要領域との比較が行われる。すなわち、画面左側においては第1トリミングライン32a上の走査によって11画素目から、第1トリミングライン32b上の走査によって95画素目からを必要領域として判断しているが、この場合トリミング手段14は、画像部側の95画素目からを必要領域として判断する。また同様に、画面右側においては第1トリミングライン32a上の走査によって3099画素目までを、また第1トリミングライン32b上の走査によって3015画素目までを各々必要領域として判断しているが、画像部側の3015画素目までを必要領域として判断する。
【0037】
この結果に基づいて、トリミング手段14は画面左側から95画素目を通り主走査方向に平行なラインを第2トリミングライン33aとして設定し、また同様に画面左側から3015画素目を通り主走査方向に平行なラインを第2トリミングライン33bとして設定する。なお、原稿が図1のような矩形の場合は、第2トリミングライン33a,33bと判別ライン31a,31bとは一致することになる。
【0038】
上記の処理によって、第1トリミングライン32a,32bと第2トリミングライン33a,33bとによって必要領域が特定され、この領域以外の不要領域は除外される。すなわち、(95,201),(3015,201),(95,2499),(3015,2499),を各頂点とする矩形領域が必要領域として特定される。この必要領域の画像データはハードディスク18等に記憶される。
【0039】
なお、第1トリミングライン32bの位置を決定するにあたって逆方向の走査を加えたが、画像データにおける主走査方向の画素数がわかっている場合等においては、主走査方向の判別ライン上の走査がある程度進んだ段階で(例えば80%程度)その後にC、M、Y、Kのすべてが90%以上となったところから下の領域を不要領域と判断するアルゴリズムをあらかじめ設定しておけば、逆方向の走査は行う必要がない。
【0040】
以上のように本実施例によれば、トリミング手段14において、2つの判別ライン31a,31bと境界線21c,21dとの交点から2つの第1トリミングライン32a,32bを設定し、この第1トリミングライン32a,32bと境界線21a,21bとの交点から2つの第2トリミングライン33a,33bを設定し、これら第1および第2トリミングライン32a,32b,33a,33bに囲まれた領域を必要領域とし、これ以外の領域を不要領域として除外するので、オペレータに煩わしい作業を強いることなく、効率よく画像データのトリミングを行うことができる。
【0041】
次に図3により本発明による画像処理装置の第2実施例について説明する。第2の実施例はトリミング手段14において主走査方向に延びる判別ラインの数を増加させるとともに、第1トリミングライン間に副走査方向に延びる1以上の補正ラインを設けたものであり、他は図1および図2に示す第1の実施例と略同一である。
【0042】
すなわち図3において、トリミング手段14は、境界線61aの画像部側近傍へ主走査方向の判別ライン51aを設定し、同様に、境界線61bの画像部側近傍へ主走査方向の判別ライン51fを設定する。さらに、判別ライン51aと判別ライン51fとの間を適宜分割し、判別ライン51b,51c,51d,51eを設定し,合計で6の主走査方向の判別ラインを設定する。
【0043】
なお、本実施例においては、主走査方向の判別ラインの数を6としたが、さらに判別ラインの数を増やしてもよい。
【0044】
次に、図1および図2に示す第1の実施例と同様に、トリミング手段14は設定した判別ライン51a〜51f上で順次走査を行ない、この判別ライン上にある画素の階調値を調査する。
【0045】
さらに、第1の実施例と同様に、トリミング手段14は主走査方向の各判別ライン51a〜51f上でフラグをアクティブにセットしてゆく。図3において、フラグはFa,Fc,Ff,Fb,Fd,Fe,の順序でアクティブにセットされてゆく。
【0046】
判別ライン51e上において、走査が副走査方向Pライン目に達したとき、フラグの全てがアクティブになる。この場合、Pライン目は判別ライン51a〜51fと境界線61cとの交点のうち最も画像部側の交点を通るラインとなる。
【0047】
ここで、トリミング手段14は、副走査方向のPライン目を第1トリミングライン52aと設定し、第1トリミングライン52a以下を必要領域であると判断する。この判断が終了した段階で、全てのフラグはリセットされる。また、それまでに受信した第1トリミングライン52aまでの画像データは、メモリ部15からも消去され、当然、ハードディスク18にも書き込まれない。
【0048】
次に、実施例1と同様に、トリミング手段14は、図3の左側から第1トリミングライン52aにそって画素を走査してゆきC、M、Y、Kのすべてが90%以上ではなくなるA1画素目からを必要領域であると判断する。その後、さらに第1トリミングライン52aにそって画素を走査してゆき、C、M、Y、Kのすべてが90%以上となる画素の一つ前のA2画素目までを必要領域であると判断する。
【0049】
その後、トリミング手段14は主走査方向の各判別ライン51a〜51f上において引き続き画素を走査してゆき、主走査方向のいずれの判別ライン51a〜51f上においてもC、M、Y、Kのすべてが90%以上となる副走査方向のRライン目より下方を仮に不要領域であるとみなして、そこから先の画像データは、メモリ部15にも、ハードディスク18にも書き込まない。
【0050】
その後、トリミング手段14は主走査方向の各判別ライン上において、逆方向にメモリ上の画素を走査してゆき、C、M、Y、Kのすべてが90%以上ではなくなる時点でそれぞれ各フラグを順次アクティブにセットしてゆく。
【0051】
図3においては、副走査方向のQライン目のライン52eまで走査した時点で各フラグの全てがアクティブにセットされるので、Qライン目のライン52eを第1トリミングライン52eと設定する。この場合、Qライン目は判別ライン51a〜51fと境界線61dとの交点のうち最も画像部側の交点を通るラインとなる。
【0052】
ここで、トリミング手段14はさらにQライン目のトリミングライン52eに沿って、第1トリミングライン52a上で行ったのと同様の走査を行い、その結果E1画素目からE2画素目までを必要領域であると判断する。
【0053】
ここで、トリミング手段14は主走査方向の各判別ライン51a〜51f上において引き続き画素を走査してゆくことと並行して、第1トリミングライン52aおよび52e間において副走査方向に適宜数本の補正ライン52b〜52dを別途設ける。次に各副走査方向の補正ライン52b〜52d上で第1トリミングライン52a,52e上で行ったと同様の副走査方向の走査を行い、必要領域を各補正ライン52b〜52d上で決定してゆく。
【0054】
本実施例では、3本の副走査方向の補正ライン52b,52c,52dを設けた例を示したが、これに限定されるものではなく、さらに補正ライン52b,52c,52dの数を増やしてもかまわない。
【0055】
補正ライン52b上では、B1画素目からB2画素目までの間が必要領域であると判断され、補正ライン52c上では、C1画素目からC2画素目までの間が必要領域であると判断され、補正ライン52d上では、D1画素目からD2画素目までの間が必要領域であると判断されることとなる。
【0056】
ここで、画像データに不要領域のデータが含まれるのを避けるため、トリミング手段14は第1トリミングライン52aおよび第1トリミングライン52eにおいて判断された必要領域と、副走査方向の3本の補正ライン52b,52c,52d上で判断された必要領域との比較を行う。
【0057】
まず、トリミング手段14は図3の画面左側において、画素A1、B1、C1、D1、E1の位置を比べ、最も右側(画像部側)にあるC1画素目から右側を必要領域と判断する。また同様に画面右側において、画素A2、B2、C2、D2、E2の位置を比べ、最も左側(画像部側)にあるD2画素目から左側を必要領域と判断する。
【0058】
これによって、C1を含む主走査方向のライン51gが画面左側の主走査方向の第2トリミングライン51gとして決定され、また同様に、画素D2を含む主走査方向のライン51hが画面右側の主走査方向の第2トリミングライン51hとして決定される。この場合、第2トリミングライン51gおよび51hは、第1トリミングライン52a,52eおよび補正ライン52b〜52dと境界線61a,61bとの交点のうち、最も画像部側の交点を通るラインとなる。
【0059】
上記の処理によって、画素C1を含む主走査方向の第2トリミングライン51gと、画素D2を含む主走査方向の第2トリミングライン51hと、画素Pを含む副走査方向の第1トリミングライン52aと、画素Qを含む副走査方向の第1トリミングライン52eによって囲まれた矩形領域が必要領域として特定される。この結果はハードディスク18等に記憶される。
【0060】
本実施例によれば、多数(6本)の判別ライン51a〜51fに基づいて第1トリミングライン52a,52eを定めるとともに、第1トリミングライン52a,52eおよび第1トリミングライン52a,52e間に設けた補正ライン52b〜52dに基づいて第2トリミングライン51g,51hを定めたので、複雑な境界線61a〜61dを有する画像データに対しても、より正確に必要領域を特定することができる。
【0061】
【発明の効果】
以上のように請求項1記載の発明によれば、トリミング手段は、主走査方向の判別ラインと副走査方向の判別ラインとを設定し、この判別ライン上を順次走査してゆき、この判別ライン上にある画素の階調値によって、必要領域か不要領域かを自動的に判断する。このトリミング処理は自動的に行われるため、オペレータに煩わしい作業を強いること無く効率よくトリミングが行える。また、不要領域を保存する必要がないので、ハードディスクなどの領域を有効に使えるとともに、読み出しや書き込みに要する時間を短縮することができる。
【0062】
請求項2記載の発明によれば、多数の判別ラインに基づいて第1トリミングラインを定めるとともに、第1トリミングラインおよび補正ラインに基づいて第2トリミングラインを定めたので、複雑な境界線を有する画像データに対しても、より正確に必要領域を特定することができる。
【図面の簡単な説明】
【図1】本発明による画像処理装置の一実施例を示す図であって、画像処理システムの設置状況を示す概略図。
【図2】本発明による画像処理装置の第1の実施例を示す図であって、請求項1に係る画像処理操作の概念を示す図。
【図3】本発明による画像処理装置の第2の実施例を示す図であって図2と同様の内容を示す図。
【符号の説明】
1 画像部
2 外枠部
11 スキャナ
13 画像処理装置
14 トリミング手段
15 メモリ
18 ハードディスク
20 外形線
21a、21b、21c、21d 境界線
31a、31b 主走査方向の判別ライン
32a、32b 第1トリミングライン
33a、33b 第2トリミングライン
51a、51b、51c、51d、51e、51f 主走査方向の判別ライン
51g、51h 第2トリミングライン
52a、52e 第1トリミングライン
52b、52c、52d 補正ライン
[0001]
[Industrial applications]
The present invention relates to an image processing apparatus for trimming an unnecessary area of image data read by a scanner.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, an image processing apparatus for trimming an unnecessary area of image data read by a scanner has been known. In this image processing apparatus, image data read by a scanner is temporarily stored in a hard disk connected to a host computer or temporarily stored in a memory of the host computer. Thereafter, unnecessary areas other than the required area in the image data are trimmed by executing retouching software on the image data. On the other hand, there is also known a method of performing shape recognition of a target image and automatically performing a trimming process.
[0003]
[Problems to be solved by the invention]
As described above, when trimming an unnecessary area of image data read by a scanner, the image data is temporarily stored in a hard disk connected to the host computer or temporarily stored in a memory of the host computer. Unnecessary areas other than the necessary areas are trimmed by executing the retouching software on the image data.
[0004]
However, the image data read by the scanner also includes data other than the perforated part of the original photograph and the required area specified in the composition. In this case, when the image data is temporarily stored in the hard disk connected to the host computer, more image data than actually required image data must be stored in the hard disk. Originally, writing image data requires a great deal of time. In addition, if image data is stored in a hard disk more than necessary as described above, unnecessary portions are written and extra time is required.
[0005]
Further, when this image data is output to a color printer, it is necessary to trim unnecessary portions. This trimming operation is performed by reading out image data stored in the hard disk using retouching software or the like, displaying the image on a display connected to the host computer, and specifying a necessary area. In this case, especially when a large amount of image data is read, it takes a very long time.
[0006]
In addition, when performing this trimming operation using a mouse, it is necessary to move the display position in order to enlarge an image displayed on the display or to redisplay a portion that is no longer displayed on the display due to the enlargement. This takes a considerable amount of time.
[0007]
On the other hand, without storing this image data on the hard disk connected to the host computer, the image data is directly read into the memory of the host computer, the image data is displayed on the display, and the same trimming operation using a mouse as described above is performed. There is also a way to do it.
[0008]
However, in this case, the same problem as described above remains, and the operator needs to interactively perform a trimming operation for each image, which is not efficient.
[0009]
Further, if the trimming process is automatically performed by recognizing the shape of an image or the like, there is a disadvantage that the calculation time is extremely long.
[0010]
The present invention has been made in view of such a point, and can efficiently and automatically perform a trimming operation, can effectively use a memory area such as a hard disk, and can store image data. An object of the present invention is to provide an image processing apparatus capable of reducing the time required for reading and writing.
[0011]
[Means for Solving the Problems]
The invention according to claim 1 is recording means for recording image data which is sent from a scanner which has read a document, and which comprises an image portion at a center and an outer frame portion provided outside the image portion via a boundary line, Trimming means for trimming the image data, wherein the trimming means sets two determination lines extending in the main scanning direction from one side in the main scanning direction to the other side of the image data, and Of the intersections with the line boundary lines, two lines extending in the sub-scanning direction through intersections on the image section side on one side and the other side in the main scanning direction are set as first trimming lines, and the two first trimming lines are set. A line extending in the main scanning direction through an intersection on the image portion side on one side and the other side in the sub-scanning direction among intersections of the image and the boundary line is set as a second trimming line, An image processing apparatus characterized by excluding the unnecessary area other than the required region surrounded by the serial first and second trimming line.
[0012]
The invention according to claim 2 is
Recording means for recording image data sent from the scanner that has read the original, and comprising image data in the center and an outer frame provided outside the image via a boundary line;
Trimming means for trimming the image data,
The trimming means sets two or more discriminating lines extending in the main scanning direction from one side in the main scanning direction to the other side with respect to the image data. Of the intersections, two lines extending in the sub-scanning direction passing through the intersection located closest to the image portion on one side and the other side in the main scanning direction are set as first trimming lines,
The trimming means further sets one or more correction lines extending in the sub-scanning direction from one side in the sub-scanning direction to the other side between the two first trimming lines, and a first trimming line extending in the sub-scanning direction; Of the intersections between the correction line and the boundary line, a line in the main scanning direction passing through the intersection located closest to the image portion on one side and the other side in the sub-scanning direction is set as a second trimming line, and the two first trimming lines are set. An image processing apparatus characterized in that unnecessary areas other than a required area surrounded by a trimming line and the two second trimming lines are excluded.
[0013]
[Action]
According to the first aspect of the present invention, the original is read by the scanner, the image data is sent from the scanner to the image processing apparatus, and is recorded in the recording means provided in the image processing apparatus. For this recorded image data, the trimming means provided in the image processing apparatus first sets two discrimination lines extending in the main scanning direction from one side to the other side. Thereafter, the trimming means sets two lines extending in the sub-scanning direction through the intersection on the one side and the other side in the sub-scanning direction, among the intersections between the two determination lines and the boundary line, as a first trimming line, Of the two intersections between the first trimming line and the boundary line, a line extending in the main scanning direction passing through the intersection on the image portion side on one side and the other side in the sub-scanning direction is set as a second trimming line. Unnecessary areas other than the necessary areas, which are surrounded by the first and second trimming lines, are excluded.
[0014]
According to the second aspect of the present invention, the original is read by the scanner, the image data is sent from the scanner to the image processing apparatus, and is recorded in the recording means provided in the image processing apparatus. For this recorded image data, the trimming means provided in the image processing device sets two or more discrimination lines extending in the main scanning direction from one side in the main scanning direction to the other side in the image data. Of the intersections between the two or more discrimination lines extending in the main scanning direction and the boundary lines, two lines extending in the sub-scanning direction through intersections located closest to the image portion on one side and the other side in the main scanning direction. Is set as the first trimming line. The trimming means further sets one or more correction lines extending in the sub-scanning direction from one side in the sub-scanning direction to the other side between the two first trimming lines, and a first trimming line extending in the sub-scanning direction; Among the intersections between the correction line and the boundary line, a line in the main scanning direction passing through the intersection located closest to the image portion on one side and the other side in the sub-scanning direction is set as a second trimming line. Next, unnecessary areas other than the required area surrounded by the two first trimming lines and the two second trimming lines are excluded.
[0015]
【Example】
Hereinafter, embodiments of the present invention will be described with reference to the drawings. 1 and 2 are diagrams showing a first embodiment of the image processing apparatus according to the present invention.
[0016]
1, the image processing system 10 includes a scanner 11 and an image processing device 13. The connection cable 16 for image data transmission is connected to the scanner 11, and the connection cable 16 is connected to the image processing device 13.
[0017]
The image processing apparatus 13 has a memory unit 15 for recording image data before processing and a trimming unit 14. Among these, the trimming means 14 excludes unnecessary areas other than the necessary areas in the image data as described later. A hard disk 18 for recording processed image data and a printer 17 for printing an image are connected to an external bus (not shown) of the image processing device 13. , A display 19 for displaying an image is connected.
[0018]
Next, the operation of the present embodiment having such a configuration will be described.
[0019]
As shown in FIG. 1, an original is first read by a scanner 11, and image data is sent from the scanner 11 to an image processing device 13 by a connection cable 16. The sent image data is temporarily recorded in the memory unit 15 of the image processing device 13.
[0020]
The trimming means 14 provided in the image processing device 13 performs trimming processing of the image data by the following processing method based on the image data temporarily recorded in the memory unit 15. This trimming process is shown in FIG.
[0021]
In FIG. 2, an area surrounded by the outline 20 is image data read by the scanner 11. Here, the point A at the upper left in the figure is the origin (0, 0), the direction from the point A to the point B is the positive X-axis direction, and the direction from the point A to the point C is the Y-axis positive direction. The positive direction of the X axis coincides with the sub-scanning direction, and the positive direction of the Y axis coincides with the main scanning direction. Further, the image data is partitioned into an image portion 1 surrounded by boundaries 21a, 21b, 21c, 21d and an outer frame portion 2 (hatched portion) outside the image portion.
[0022]
In the image data in FIG. 2, the coordinates of each point are, for example, (3150, 1) for point B, (1,650) for point C, (3150, 2650) for point D, (10, 200) for point A1, B1 is (3000, 180), point C1 is (100, 2600), and point D1 is (3100, 2500).
[0023]
First, the trimming means 14 sets a determination line 31a in the main scanning direction extending from the upper side to the lower side of the screen near the image portion side of the boundary line 21a, and similarly, from the upper side of the screen near the image portion side of the boundary line 21b. The main scanning direction determination line 31b extending to the side is set. The discrimination line 31a is represented by X = 95, and the discrimination line 31b is represented by X = 3015.
[0024]
Next, the trimming unit 14 sequentially scans the image data from the first line in the sub-scanning direction, and checks the gradation values of the pixels on the set determination lines 31a and 31b. Based on the obtained tone value, it is determined whether the area is a necessary area or an unnecessary area. In this determination, for example, if the gradation values of all of C (cyan), M (magenta), Y (yellow), and K (black) are 90% or more, it is determined that the area is an unnecessary area. to decide. Here, in FIG. 2, the hatched portion is 90% or more for each of C, M, Y, and K.
[0025]
On the discrimination lines 31a and 31b, up to the 179th line in the sub-scanning direction, C, M, Y, and K are all 90% or more, and thus are determined to be unnecessary areas.
[0026]
When the 180th line in the sub-scanning direction is entered, all of C, M, Y, and K are not 90% or more on the discrimination line 31b. Therefore, the trimming unit 14 considers that the necessary area has been entered and activates the flag Fb. Make a set. The intersection between the 180th line in the sub-scanning direction and the determination line 31b is the intersection between the determination line 31b and the boundary line 21c.
[0027]
It should be noted that this flag is provided so that even if there is a pixel in which all of C, M, Y, and K are 90% or more by chance on the determination line 31b, it is not determined that the pixel is an unnecessary area. When activated, the reset is not performed until all of the flags Fa and Fb are activated.
[0028]
At this point, since all of C, M, Y, and K are still 90% or more on the determination line 31a, the trimming means 14 continues to determine that the area is unnecessary.
[0029]
When entering the 201st line in the sub-scanning direction, all of C, M, Y, and K are not more than 90% on the discrimination line 31a, so that the flag Fa becomes active. Here, both of the flags Fa and Fb are activated. Is set to active. The intersection between the 201st line in the sub-scanning direction and the determination line 31a is the intersection between the determination line 31a and the boundary line 21c.
[0030]
Here, the trimming unit 14 determines that the required area is from the 201st line. Since the 201st line in the sub-scanning direction is closer to the image portion than the 180th line, the 201st line is the first trimming line 32a. When this determination is completed, the flags Fa and Fb are reset. Further, up to the 200th line received up to that point, the data is also erased from the memory unit 15 and is not written on the hard disk 18 as a matter of course.
[0031]
Next, the trimming means 14 scans the pixels along the first trimming line 32a of the 201st line and finds the eleventh pixel from the left end of the screen where all of C, M, Y, and K are no more than 90%. It is determined that the area is necessary. Thereafter, the pixels are further scanned along the first trimming line 32a, and the necessary area is up to the 3015th pixel before the 3016th pixel where all of C, M, Y, and K become 90% or more. Judge. The eleventh pixel line and the 3015th pixel line in the main scanning direction are candidates for the second trimming line as described later. The intersections of the eleventh pixel line and the 3015th pixel line in the main scanning direction with the first trimming line 32a are the intersections of the first trimming line 32a and the boundary lines 21a and 21b, respectively.
[0032]
Thereafter, the trimming means 14 scans the 202th line in the next sub-scanning direction on the discrimination lines 31a and 31b, and continuously scans the pixels. On each of the discrimination lines 31a and 31b, the 2600th line where all of C, M, Y, and K become 90% or more is temporarily regarded as an unnecessary area, and the image data beyond the area is stored in the memory unit. Neither 15 nor the hard disk 18 is written.
[0033]
Thereafter, the trimming means 14 scans in the reverse direction on the discrimination lines 31a and 31b from the 2599th line immediately before the 2600th line, and when all of C, M, Y and K are 90% or more, At the time when they disappear, the flags Fa and Fb are set active.
[0034]
In FIG. 1, all of the flags Fa and Fb are set to be active from the 2499th line, and the 2499th line in the sub-scanning direction is closer to the image section than 2600 lines. I do.
[0035]
Here, the trimming unit 14 further performs the same scanning as that performed on the first trimming line 32a along the first trimming line 32b of the 2499th line, and as a result, the 3rd pixel from the 95th pixel from the left end of the screen to 3099 pixels It is determined that the area up to the eyes is the necessary area. In this case, the intersection of the 95th pixel line and the 3099th pixel line in the main scanning direction with the first trimming line 32b is the intersection of the first trimming line 32b and the boundary lines 21a and 21b, respectively.
[0036]
Here, as described above, by scanning on the first trimming line 32a, it is determined that the 11th pixel to the 3015th pixel are the necessary area, but it is avoided that the image data includes unnecessary area data. Therefore, comparison with the necessary area determined in the first trimming line 32b is performed. That is, on the left side of the screen, the necessary area is determined from the eleventh pixel by scanning on the first trimming line 32a and from the 95th pixel by scanning on the first trimming line 32b. The area from the 95th pixel on the image portion side is determined as a necessary area. Similarly, on the right side of the screen, up to the 3099th pixel by the scanning on the first trimming line 32a and up to the 3015th pixel by the scanning on the first trimming line 32b are determined as necessary areas. The area up to the 3015th pixel on the side is determined as a necessary area.
[0037]
Based on this result, the trimming means 14 sets a line that passes through the 95th pixel from the left side of the screen and is parallel to the main scanning direction as the second trimming line 33a, and similarly, passes through the 3015th pixel from the left side of the screen and passes in the main scanning direction. A parallel line is set as the second trimming line 33b. When the document is rectangular as shown in FIG. 1, the second trimming lines 33a and 33b coincide with the discrimination lines 31a and 31b.
[0038]
By the above processing, the necessary area is specified by the first trimming lines 32a and 32b and the second trimming lines 33a and 33b, and unnecessary areas other than these areas are excluded. That is, a rectangular area having (95, 201), (3015, 201), (95, 2499), and (3015, 2499) as vertices is specified as a necessary area. The image data of the necessary area is stored in the hard disk 18 or the like.
[0039]
Note that, in determining the position of the first trimming line 32b, the scanning in the reverse direction is performed. However, when the number of pixels in the main scanning direction in the image data is known, the scanning on the determination line in the main scanning direction is performed. If a certain area is advanced (for example, about 80%) and then all of C, M, Y, and K become 90% or more, an algorithm for determining a lower area as an unnecessary area is set in advance. Scanning in the direction need not be performed.
[0040]
As described above, according to the present embodiment, the trimming means 14 sets two first trimming lines 32a and 32b from the intersection of the two discriminating lines 31a and 31b and the boundary lines 21c and 21d. Two second trimming lines 33a, 33b are set from intersections of the lines 32a, 32b and the boundary lines 21a, 21b, and a region surrounded by the first and second trimming lines 32a, 32b, 33a, 33b is a necessary region. Since other areas are excluded as unnecessary areas, image data can be trimmed efficiently without forcing the operator to perform a troublesome operation.
[0041]
Next, a second embodiment of the image processing apparatus according to the present invention will be described with reference to FIG. In the second embodiment, the number of determination lines extending in the main scanning direction is increased in the trimming means 14, and one or more correction lines extending in the sub-scanning direction are provided between the first trimming lines. 1 and the first embodiment shown in FIG.
[0042]
That is, in FIG. 3, the trimming means 14 sets the discrimination line 51a in the main scanning direction near the image portion side of the boundary line 61a, and similarly sets the discrimination line 51f in the main scanning direction near the image portion side of the boundary line 61b. Set. Further, the discrimination line 51a and the discrimination line 51f are appropriately divided, the discrimination lines 51b, 51c, 51d, and 51e are set, and a total of six discrimination lines in the main scanning direction are set.
[0043]
In the present embodiment, the number of discrimination lines in the main scanning direction is six, but the number of discrimination lines may be further increased.
[0044]
Next, as in the first embodiment shown in FIGS. 1 and 2, the trimming means 14 sequentially scans on the set discrimination lines 51a to 51f, and examines the tone values of the pixels on this discrimination line. I do.
[0045]
Further, similarly to the first embodiment, the trimming means 14 sets the flag to active on each of the determination lines 51a to 51f in the main scanning direction. In FIG. 3, the flags are set active in the order of Fa, Fc, Ff, Fb, Fd, Fe.
[0046]
When the scanning reaches the P-th line in the sub-scanning direction on the determination line 51e, all the flags become active. In this case, the P-th line is a line passing through the intersection of the discrimination lines 51a to 51f and the boundary 61c closest to the image portion.
[0047]
Here, the trimming unit 14 sets the P-th line in the sub-scanning direction as the first trimming line 52a, and determines that the area below the first trimming line 52a is a necessary area. At the stage where this determination is completed, all the flags are reset. Further, the image data up to the first trimming line 52a received up to that point is also erased from the memory unit 15 and is not written into the hard disk 18 as a matter of course.
[0048]
Next, as in the first embodiment, the trimming unit 14 scans the pixels from the left side of FIG. 3 along the first trimming line 52a, and all of C, M, Y, and K become no more than 90% A1. It is determined that the area from the pixel is a necessary area. Thereafter, the pixels are further scanned along the first trimming line 52a, and the area up to the A2th pixel immediately preceding the pixel in which all of C, M, Y, and K are 90% or more is determined to be a necessary area. I do.
[0049]
Thereafter, the trimming means 14 continuously scans the pixels on each of the discrimination lines 51a to 51f in the main scanning direction, and all of C, M, Y, and K on any of the discrimination lines 51a to 51f in the main scanning direction. The area below the R-th line in the sub-scanning direction, which is 90% or more, is temporarily regarded as an unnecessary area, and the image data beyond the area is not written to the memory unit 15 or the hard disk 18.
[0050]
Thereafter, the trimming means 14 scans pixels in the memory in the reverse direction on each determination line in the main scanning direction, and resets each flag when all of C, M, Y, and K are no more than 90%. Set to active sequentially.
[0051]
In FIG. 3, all of the flags are set to be active at the time when scanning is performed up to the Q-th line 52e in the sub-scanning direction. Therefore, the Q-th line 52e is set as the first trimming line 52e. In this case, the Q-th line is a line passing through the intersection on the image portion side most among the intersections of the discrimination lines 51a to 51f and the boundary 61d.
[0052]
Here, the trimming means 14 further performs the same scanning as that performed on the first trimming line 52a along the trimming line 52e of the Qth line, and as a result, the pixels from the E1 pixel to the E2 pixel in the required area. Judge that there is.
[0053]
Here, the trimming means 14 corrects several corrections in the sub-scanning direction between the first trimming lines 52a and 52e in parallel with scanning the pixels continuously on each of the determination lines 51a to 51f in the main scanning direction. Lines 52b to 52d are separately provided. Next, scanning in the sub-scanning direction similar to that performed on the first trimming lines 52a and 52e is performed on the correction lines 52b to 52d in each sub-scanning direction, and the necessary area is determined on each of the correction lines 52b to 52d. .
[0054]
In the present embodiment, an example is shown in which three correction lines 52b, 52c, and 52d in the sub-scanning direction are provided. However, the present invention is not limited to this, and the number of correction lines 52b, 52c, and 52d is further increased. It doesn't matter.
[0055]
On the correction line 52b, it is determined that the area from the B1 pixel to the B2 pixel is the necessary area, and on the correction line 52c, the area from the C1 pixel to the C2 pixel is determined as the necessary area, On the correction line 52d, the area from the D1 pixel to the D2 pixel is determined to be the necessary area.
[0056]
Here, in order to avoid unnecessary data from being included in the image data, the trimming unit 14 determines the required area determined in the first trimming line 52a and the first trimming line 52e and the three correction lines in the sub-scanning direction. A comparison is made with the necessary areas determined on 52b, 52c, and 52d.
[0057]
First, the trimming unit 14 compares the positions of the pixels A1, B1, C1, D1, and E1 on the left side of the screen in FIG. 3, and determines that the right side from the C1 pixel on the rightmost side (image portion side) is the necessary area. Similarly, on the right side of the screen, the positions of the pixels A2, B2, C2, D2, and E2 are compared, and the left side from the D2 pixel on the leftmost side (image portion side) is determined to be the necessary area.
[0058]
As a result, the line 51g in the main scanning direction including C1 is determined as the second trimming line 51g in the main scanning direction on the left side of the screen, and similarly, the line 51h in the main scanning direction including the pixel D2 is determined on the right side in the main scanning direction. Is determined as the second trimming line 51h. In this case, the second trimming lines 51g and 51h are lines passing through the intersections closest to the image portion among the intersections between the first trimming lines 52a and 52e and the correction lines 52b to 52d and the boundary lines 61a and 61b.
[0059]
By the above processing, the second trimming line 51g in the main scanning direction including the pixel C1, the second trimming line 51h in the main scanning direction including the pixel D2, the first trimming line 52a in the sub scanning direction including the pixel P, A rectangular area including the pixel Q and surrounded by the first trimming line 52e in the sub-scanning direction is specified as a necessary area. This result is stored in the hard disk 18 or the like.
[0060]
According to the present embodiment, the first trimming lines 52a and 52e are determined based on a large number (six) of the determination lines 51a to 51f, and are provided between the first trimming lines 52a and 52e and the first trimming lines 52a and 52e. Since the second trimming lines 51g and 51h are determined based on the corrected lines 52b to 52d, it is possible to more accurately specify a necessary area even for image data having complicated boundary lines 61a to 61d.
[0061]
【The invention's effect】
As described above, according to the first aspect of the present invention, the trimming means sets a determination line in the main scanning direction and a determination line in the sub-scanning direction, and sequentially scans the determination line. It is automatically determined whether the area is a necessary area or an unnecessary area based on the gradation value of the upper pixel. Since this trimming process is automatically performed, trimming can be performed efficiently without forcing the operator to perform a troublesome operation. In addition, since it is not necessary to save an unnecessary area, an area such as a hard disk can be used effectively, and the time required for reading and writing can be reduced.
[0062]
According to the second aspect of the present invention, the first trimming line is determined based on a large number of determination lines, and the second trimming line is determined based on the first trimming line and the correction line. The necessary area can be more accurately specified for the image data.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an embodiment of an image processing apparatus according to the present invention, and is a schematic diagram illustrating an installation state of an image processing system.
FIG. 2 is a view showing a first embodiment of the image processing apparatus according to the present invention, and is a view showing the concept of an image processing operation according to claim 1.
FIG. 3 is a diagram showing a second embodiment of the image processing apparatus according to the present invention, and showing the same contents as in FIG. 2;
[Explanation of symbols]
1 Image section
2 Outer frame
11 Scanner
13 Image processing device
14 Trimming means
15 Memory
18 Hard Disk
20 Outline
21a, 21b, 21c, 21d Boundary line
31a, 31b Determination line in main scanning direction
32a, 32b First trimming line
33a, 33b Second trimming line
51a, 51b, 51c, 51d, 51e, 51f Determination line in main scanning direction
51g, 51h Second trimming line
52a, 52e First trimming line
52b, 52c, 52d Correction line

Claims (2)

原稿を読み取ったスキャナから送られるとともに、中央の画像部と画像部外側に境界線を介して設けられた外枠部とから成る画像データを記録する記録手段と、
この画像データをトリミングするトリミング手段とを備え、
前記トリミング手段は画像データに対して主走査方向の一側から他側に向かって主走査方向に延びる2つの判別ラインを設定し、この2つの判別ラインと境界線との交点のうち、主走査方向の一側および他側において画像部側の交点を通り副走査方向に延びる2つのラインを第1トリミングラインとして設定し、前記2つの第1トリミングラインと境界線との交点のうち、副走査方向の一側および他側において画像部側の交点を通り主走査方向に延びるラインを第2トリミングラインとして設定し、前記第1および第2トリミングラインに囲まれた必要領域以外の不要領域を除外することを特徴とする画像処理装置。
Recording means for recording image data sent from the scanner that has read the original, and comprising image data in the center and an outer frame provided outside the image via a boundary line;
Trimming means for trimming the image data,
The trimming means sets two discrimination lines extending in the main scanning direction from one side in the main scanning direction to the other side with respect to the image data. Two lines extending in the sub-scanning direction passing through the intersection on the image portion side on one side and the other side in the direction are set as first trimming lines, and among the intersections between the two first trimming lines and the boundary line, the sub-scanning is performed. A line extending in the main scanning direction passing through the intersection on the image portion side on one side and the other side in the direction is set as a second trimming line, and unnecessary areas other than the necessary area surrounded by the first and second trimming lines are excluded. An image processing apparatus, comprising:
原稿を読み取ったスキャナから送られるとともに、中央の画像部と画像部外側に境界線を介して設けられた外枠部とから成る画像データを記録する記録手段と、
この画像データをトリミングするトリミング手段とを備え、
前記トリミング手段は画像データに対して主走査方向の一側から他側に向かって主走査方向に延びる2以上の判別ラインを設定し、この主走査方向に延びる2以上の判別ラインと境界線との交点のうち、主走査方向の一側および他側において最も画像部側に位置する交点を通り副走査方向に延びる2つのラインを第1トリミングラインとして設定し、
前記トリミング手段は更に前記2つの第1トリミングライン間において副走査方向の一側から他側に向かって副走査方向に延びる1以上の補正ラインを設定し、副走査方向に延びる第1トリミングラインおよび補正ラインと境界線との交点のうち、副走査方向の一側および他側において最も画像部側に位置する交点を通る主走査方向のラインを第2トリミングラインとして設定し、前記2つの第1トリミングラインおよび前記2つの第2トリミングラインに囲まれた必要領域以外の不要領域を除外することを特徴とする画像処理装置。
Recording means for recording image data sent from the scanner that has read the original, and comprising image data in the center and an outer frame provided outside the image via a boundary line;
Trimming means for trimming the image data,
The trimming means sets two or more discriminating lines extending in the main scanning direction from one side in the main scanning direction to the other side with respect to the image data. Of the intersections, two lines extending in the sub-scanning direction passing through the intersection located closest to the image portion on one side and the other side in the main scanning direction are set as first trimming lines,
The trimming means further sets one or more correction lines extending in the sub-scanning direction from one side in the sub-scanning direction to the other side between the two first trimming lines, and a first trimming line extending in the sub-scanning direction; Of the intersections between the correction line and the boundary line, a line in the main scanning direction passing through the intersection located closest to the image portion on one side and the other side in the sub-scanning direction is set as a second trimming line, and the two first trimming lines are set. An image processing apparatus, wherein an unnecessary area other than a necessary area surrounded by a trimming line and the two second trimming lines is excluded.
JP11466295A 1995-05-12 1995-05-12 Image processing device Expired - Fee Related JP3587586B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11466295A JP3587586B2 (en) 1995-05-12 1995-05-12 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11466295A JP3587586B2 (en) 1995-05-12 1995-05-12 Image processing device

Publications (2)

Publication Number Publication Date
JPH08315107A JPH08315107A (en) 1996-11-29
JP3587586B2 true JP3587586B2 (en) 2004-11-10

Family

ID=14643440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11466295A Expired - Fee Related JP3587586B2 (en) 1995-05-12 1995-05-12 Image processing device

Country Status (1)

Country Link
JP (1) JP3587586B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011097538A (en) * 2009-11-02 2011-05-12 Sharp Corp Image processing apparatus, program, recording medium

Also Published As

Publication number Publication date
JPH08315107A (en) 1996-11-29

Similar Documents

Publication Publication Date Title
US7430065B2 (en) Method and system for correcting distortions in image data scanned from bound originals
JP5209953B2 (en) Image data supply apparatus and image data supply method
US20020015525A1 (en) Image processor for character recognition
JP5834866B2 (en) Image processing apparatus, image generation method, and computer program
JP3587586B2 (en) Image processing device
JPH04172871A (en) Method of smoothing process of picture data
US20060119897A1 (en) Output apparatus and program thereof
JP2000022943A (en) Device and method for discriminating image area, and recording medium recorded with image area discriminating program
JPH09120450A (en) Image processor
JPH07221976A (en) Smoothing magnification processing method for binary image data
JP2812401B2 (en) Image processing device
JP3925851B2 (en) Image information crease noise removal device
JP3354629B2 (en) Image processing device
JPH05151388A (en) Designating system for processing area and processing condition
JPH09135331A (en) Image processor
JP3814547B2 (en) Image processing apparatus and method
JP4577845B2 (en) Image processing apparatus, image processing method, program, and storage medium storing program
KR100420065B1 (en) Method for distinguishing letter area from picture area in heterogenous mixed images
JP6922365B2 (en) Document processing equipment and programs
JP2957050B2 (en) Image data enlarger
JP2013150111A (en) Image processing device and image processing method
JP5018739B2 (en) Image processing apparatus, image processing method, and image processing program
JPH08320912A (en) Method for segmenting picture
JPH05211607A (en) Device and method for image processing
JPH04314263A (en) Picture processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040728

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: 20040806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040810

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080820

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090820

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090820

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100820

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110820

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110820

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120820

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120820

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees