JP2886859B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2886859B2
JP2886859B2 JP62252823A JP25282387A JP2886859B2 JP 2886859 B2 JP2886859 B2 JP 2886859B2 JP 62252823 A JP62252823 A JP 62252823A JP 25282387 A JP25282387 A JP 25282387A JP 2886859 B2 JP2886859 B2 JP 2886859B2
Authority
JP
Japan
Prior art keywords
image
data
bit
editing
pixel
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 - Lifetime
Application number
JP62252823A
Other languages
Japanese (ja)
Other versions
JPH0194762A (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 JP62252823A priority Critical patent/JP2886859B2/en
Publication of JPH0194762A publication Critical patent/JPH0194762A/en
Application granted granted Critical
Publication of JP2886859B2 publication Critical patent/JP2886859B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、原稿像に対応させて、読取った画像データ
を処理、変換する画像処理装置に関する。 〔従来技術〕 原稿像に対応させて、読取った画像を処理、変換する
従来の画像読取装置は、マイクロコンピユータを有し、
このマイクロコンピユータが上記処理、変換を行う。と
ころが、マイクロコンピユータの処理スピードには限界
があるので、各画素に対応してリアルタイムで編集処理
した情報を高速に出力することが難かしかった。 そこで、本出願人は特開昭59−62885号等において、
高速でリアルタイムな画像処理を可能とする画像処理装
置を提案した。これら出願に開示した装置は、主走査1
ライン分または主走査の複数ライン分の処理情報を一括
してハードウエアにプリセツトし、各画素に対応した処
理をハードウエアで行っている。 即ち、各編集処理における処理条件の変化点のアドレ
スを記憶し、その変化点のアドレスと主走査のアドレス
とを比較器によって常に比較し、この比較の結果が一致
したときに、所望の編集処理を実行するようにしてい
る。 しかし、この様な装置において、主走査一回における
領域及び処理の種類が多くなると変化点が増加し、その
変化点の増加分だけ、上記比較器が増えるという問題が
ある。 たとえば、主走査一回(5000画素)について8種類の
処理を行い、その1種類の処理において10個の変化点を
持つ場合、8×10=80個のコンパレータとレジスタ(13
ビツト)とが必要になり、ハードウエア回路が急激に増
加するという問題がある。 〔目的〕 本発明は以上の点に鑑みてなされたもので、画像デー
タに対する複数通りの画像処理をハードウェアを増大さ
せることなしに実行可能とすることを目的とし、詳しく
は、複数の画素のそれぞれを表わす画像データをライン
毎に入力する画像データ入力手段と、前記画像データ入
力手段から入力される1ライン分の画像データの各画素
または連続した複数画素に対する複数の画像処理条件を
表わす複数ビットの画像編集データを、前記画像データ
入力手段からの1ラインまたは複数ラインの画像データ
の入力毎に形成する画像編集データ形成手段と、2ライ
ン分の画像データの各画素または連続した複数画素に対
する複数ビットの画像編集データを記憶可能な画像編集
データ記憶手段と、前記画像編集データ記憶手段に前記
画像編集データ形成手段により形成された1ライン分の
画像データの各画素または連続した複数画素に対する複
数ビットの画像編集データを書込むとともに、前記画像
編集データ記憶手段に先に記憶されている1ライン分の
画像データの各画素または連続した複数画素に対する複
数ビットの画像編集データを、前記画像データ入力手段
から入力される1ライン分の画像データの各画素または
連続した複数画素に対応して読出す画像編集データ書込
読出手段と、前記画像編集データ記憶手段から読出され
た複数ビットの画像編集データの各ビットによって表わ
された複数の画像処理条件に従って、前記画像データ入
力手段から入力される1ライン分の画像データの各画素
または連続した複数画素に対して、複数通りの画像処理
を行う画像処理手段とを有する画像処理装置を提供する
ものであり、また、前記画像編集データ記憶手段は、1
ライン分の画像データの各画素または連続した複数画素
に対する複数ビットの画像編集データを記憶可能なメモ
リ手段を2個備え、前記画像編集データ書込読出手段
は、一方のメモリ手段に先に記憶されている画像編集デ
ータの読出しと、他方のメモリ手段への新たな画像編集
データの書込みとを並行して実行する画像処理装置を提
供するものであり、また、前記画像処理手段は、複数ビ
ットの画像編集データの各ビットによって表わされた複
数の画像処理条件の夫々に従って、1ライン分の画像デ
ータの各画素または連続した複数画素に対して互いに異
なる画像変換を行う複数の変換手段を有する画像処理装
置を提供するものである。 〔実施例〕 第1図は、画像読取装置の外観図である。 この装置は、原稿台101と、原稿押え102と、画像読取
用のライン状に配列された約5000個の受光素子からなる
ラインセンサCCD103と、原稿照射用蛍光灯104と、ミラ
ー105,106,107と、結像用レンズ108とを有する。蛍光灯
104とミラー105とを備えた第1光学ユニツトとミラー10
6,107を備えた第2光学ユニツトとが2:1の速度比をもっ
て移動することにより原稿をY方向に走査し、原稿像を
順次、CCD103に結像する。 第2図は、第1図示の画像読取装置における全体の回
路構成を示すブロツク図である。 CCD103(たとえば東芝製TCD106C、5000画素)は、原
稿からの光を受け、各画素濃度を示すアナログ信号をシ
リアルに出力する。このアナログ信号は8ビツトA/Dコ
ンバータ201により各画素毎に8ビツトのデジタル信号
に順次変換され、更に、このデジタル信号がシエーデイ
ング補正回路20によって補正される。 シエーデイング補正回路202は、原稿載置領域外に光
学系を持って行き、そこに取付けられた白色板を照射
し、CCD103で読取走査したときの1主走査分のデータを
メモリに蓄積し、このメモリデータに基づいて、実際の
画像データに補正を加える。シエーデイング補正された
データが画像認識部204、エデイテイング回路部203に送
られる。この他に、バツフア205、主走査アドレス発生
回路、CCD駆動206、バツフア制御回路207、CPU回路部20
8、操作部209が設けられ、バツフア205からの画像デー
タは画像記録部210等の外部装置に供給される。 第3図は、原稿読取装置の原稿台101上に原稿が置か
れている状態を示す図である。 原稿台101の基準座標SPから主走査方向(CCD103の受
光素子の配列方向)をXとし副走査方向(第1,第2光学
ユニツトの移動方向)をYとした場合、原稿画像の読取
り前に光学ユニツトを移動させて前走査することによっ
て、点P1(X,,Y1)、点P2(X2,Y2)、点P3(X3,Y3)、
点P4(X4,Y4)を画像認識部204により検出する。原稿が
置かれている領域以外の領域の画像データが必らず黒デ
ータになるように、原稿カバー110が鏡面処理されてい
る。ガラス面全域を前走査するように、主走査、副走査
を行う。 第4図は、画像認識部204の詳細を示す回路図であ
る。 主走査カウンタ351は、ダウンカウンタであり、主走
査1ライン中における走査位置を示す。このカウンタ35
1は、各主走査に先たって発生される水平同期信号HSYNC
によって主走査方向(X方向)の最大値にセツトされ、
画像データクロツクCLKが入力されるたびに、カウント
ダウンし、主走査方向における画素位置を表す。 副走査カウンタ352は、アツプカウンタであり、副走
査動作中に論理レベルが高レベルとなるVSYNC(画像先
端信号)の立ち上がりで「0」にリセツトされ、HSYNC
信号によってカウントアツプし、副走査方向における走
査位置を表わす。 走査時において、シエーデイング補正回路202による
シエーデイング補正後、図示しないコンパレータによっ
て二値化された画像データVIDEOは、8ビツトのシフト
レジスタ301に送られる。なお、毎走査時に、CPU208
は、予め定められた固定スライスレベルを上記コンパレ
ータに供給する。 8ビツト入力が完了した時点で、ゲート回路302は、
シフトレジスタ301の8ビツトのデータの全てが原稿の
地膚を表わす白画像(0レベル)であるか否かのチエツ
クを行い、全て白画像ならば、ゲート302が「1」を出
力する。 原稿の前走査開始後、最初に連続した8ビツトの画像
データが全て白(0レベル)となったときに、フリツプ
フロツプ304がセツトされる。フリツプフロツプ304は、
VSYNC(往動開始時に出力される画像先端信号)によっ
て、予めリセツトされている。以後、次にVSYNCが来る
までセツト状態を維持する。主走査カウンタ351は、コ
ンパレータからの画像データの画素出力に同期したクロ
ツクCLKによって、ダウンカウントするものであり、フ
リツプフロツプ304がセツトした時点でラツチ305に、そ
の時の主走査カウンタ351の値がロードされる。この値
がX1の座標値である。 また、副走査カウンタ352は、1ライン毎の走査に同
期した信号をアツプカウントするもので、フリツプフロ
ツプ304がセツトしたときの副走査カウンタ352の値(ラ
イン数)がラツチ306にロードされる。この値がY1の座
標値である。したがって、点P1(X1,Y1)が求められ
る。 また、ゲート302が「1」を出力する度に、主走査カ
ウンタ351からの値がラツチ307にロードされる。最初に
連続した8ビツトの画像データが全て白となったときに
おける主走査カウンタ351からの値がラツチ307にロード
されると、この値とラツチ310(これはVSYNC時点でX方
向の最大値にされている)のデータとが、コンパレータ
309によって比較される。 もし、ラツチ307のデータが小さいならば、コンパレ
ータ309の出力がアクテイブとなり、これにより、ラツ
チ307のデータがラツチ310にロードされる。また、この
ときに、副走査カウンタ352の値がラツチ311にロードさ
れる。この動作は、次の8ビツトがシフトレジスタ301
に入るまで終了する。 このように、ラツチ307とラツチ310とのデータ比較を
全画像領域について行うと、ラツチ310には原稿領域X
方向の最小値が残り、このときのY方向の座標がラツチ
311に残る。すなわち、主走査カウンタ351はダウンカウ
ンタなので、X方向の最小値に対応する座標は、主走査
方向でSPから一番遠い座標を表わす。この座標が、点P3
(X3,Y3)である。 フリツプフロツプ312は、主走査ライン毎に、最初に
8ビツト連続した白画像を表わす画像データが現れたと
きにセツトするフリツプフロツプであり、水平同期信号
HSYNCによってリセツトされ、最初に連続した8ビツト
の画像データが全て白となったときにセツトし、次のHS
YNCまで保持する。このフリツプフロツプ312がセツトす
るときに、1ライン中で最初に現れた白信号の位置に相
当する主走査カウンタ351の値を、ラツチ313にロードす
る。そして、ラツチ313の値とラツチ315の値とを、コン
パレータ316が比較する。ラツチ315には、VSYNCが発生
したときにX方向の最小値、すなわち「0」がプリセツ
トされている。 もし、ラツチ315のデータがラツチ313のデータよりも
小さいかまたは等しいならば、コンパレータ316の出力
信号がアクテイブになり、ラツチ313のデータがラツチ3
15にロードされる。この動作は、HSYNC−HSYNC間で行わ
れる。 以上の比較動作を全画像領域について行うと、ラツチ
315には原稿座標のX方向の最大値、すなわち、主走査
方向で走査開始点から一番近い点の白信号のX座標が残
る。これがX2である。また、コンパレータ316の出力が
アクテイブとなるときに、副走査カウンタ352からの値
がラツチ318にロードされる。これがY2になり、点P2(X
2,Y2)が得られる。 ラツチ319と320とは、全画像領域において8ビツトの
連続した白画像データが現れる度に、そのときの主走査
カウンタ351の値と副走査カウンタ352の値とがロードさ
れる。したがって、原稿の前走査完了時に最後に連続し
た8ビツトの色画像データが現れたときのカウンタ35
1、352のカウント値がラツチ319及び320に残る。これ
が、点P4(X4,Y4)である。 上記8つのラツチ308、311、320、318、305、310、31
5、319のデータラインは、CPU208のバスに接続され、CP
U208は前走査における往動終了時にこのデータを読込
む。これにより、原稿台101上の原稿位置及びサイズを
判定する。 第5図及び第6図は第2図示のエデイテイング回路部
203の詳細を示す回路図である。 編集メモリ401,402は、操作部209から指示された所望
の画像処理を実行するための画像編集データ(すなわ
ち、画像処理を行う情報)を蓄積するRAMである。MSEL
(メモリセレクト信号)を「H」レベルにすると、フリ
ツプフロツプ407のQ出力が高レベルとなり、セレクタ4
03,405がA側に選択され、編集メモリ401は、主走査ア
ドレス発生回路206からのCCDアドレス(主走査アドレ
ス)によって制御される。このときに、セレクタ404,40
6はB側が選択され、編集メモリ402はマイコンアドレス
によって制御される。この状態で、編集メモリ402は、C
PU回路部208のマイコンのアドレスバスとデータバスと
に接続され、マイコンが自由にリード、ライトすること
ができる。 ところで、編集メモリ401,402がCCDアドレスに接続さ
れると、編集メモリ401,402のアドレスとCCD103の画素
番地とが対応する。つまり、メモリアドレス1番地に
は、CCDの1番目の画素が対応し、n番地にはn番目の
画素が対応し、5000画素のCCDを使う編集メモリとし
て、少なくとも5000アドレスのメモリ、例えば8Kバイト
(8Kビツト×8)を使用している。したがって、m番目
の画素を加工する加工データは画像メモリのm番地に書
込まれるようにする。 また、編集メモリ401,402は、1アドレス当り8ビツ
ト構成となっており、上記実施例において、ビツト0に
は「画像出力禁止」、ビツト1には「画像出力禁止領域
を黒」、ビツト2には「ネガ」、ビツト3には「黒出
力」、ビツト4,5には「γ補正レベル」、ビツト6には
「写真領域」、ビツト7には「AE領域」をそれぞれ示す
画像編集データが格納される。 第8図及び第9図を用いて編集メモリ401又は402にCP
U回路部208によりセツトされる。画像編集データの例を
説明する。 第8図は原稿ORG上での処理内容を示し、3つの任意
領域(I),(II),(III)を操作者が操作部209によ
り指定し、更に、領域(I)の画像に対しては画像の白
/黒反転処理及び第2のγ補正処理を実行し、領域(I
I)の画像に対しては第3のγ補正処理及び写真処理を
実行し、また、領域(III)の画像に対しては白マスク
処理を実行する様に指示されたとする。 尚、S0〜S8は主走査方向の画素位置を示す。 CPU回路部208は以上の指示に従って、各走査ラインの
画像信号に対する画像編集データを形成し、編集メモリ
401,402にセツトする。尚、指定領域(I),(II),
(III)以外の原稿領域の画像に対しては第1のγ補正
処理を実行する。 第9図(1),(2),(3)は夫々第8図示の走査
ライン(A),(B),(C)に対応して、編集メモリ
にセツトされる画像編集データを示す。即ち、指定領域
(I),(II),(III)以外の領域に対する画像編集
データは(00000100)、領域(I)に対しては(001010
00)、領域(II)に対しては(00001110)、領域(II
I)に対しては(10000000)が、主走査方向の画素位置S
0〜S8に対応した番地に書込まれる。尚、第9図におい
て、図面が繁雑となるのを防ぐために同一データの連続
は「〜」印にて示してある。 さらに、編集メモリ401,402というようにメモリが2
系統存在するのは、1ライン又は複数ライン毎にMSL
(メモリセレクト信号)を、「H」、「L」にして、マ
イコンアクセスされる編集メモリとCCDアドレスアクセ
スされる編集メモリとを切換えるようにするためであ
る。つまり、マイコンアクセスにしておき、次の編集内
容に関する編集情報を一方の編集メモリに書込んでいる
ときに、既に書込まれた他方の編集メモリからの読出し
情報を、CCD画像編集用としてバス409に読出して使用し
ている。 画像編集データを新しいデータに切換えるには、MSEL
のレベルを切換えることによって、CCDアドレスアクセ
スされる編集メモリを、新しい編集データがマイコンに
より書込まれた編集メモリに切換えればよい。すなわ
ち、MSELのレベルを1ライン毎に変化させれば、最大1
ライン毎に編集データを変更できる。画像編集データを
変更しない場合、つまりMSELを変化させない場合、常に
同じ編集メモリに書込まれている同じ画像編集データが
繰返し使用される。 以上の画素編集データの形成に関するCPU回路部208の
動作手順を説明する。 第10図は操作部209の外観図であり、原稿押え102に設
けられた編集条件入力及び編集座標入力の為のデイジタ
イザー部162からなる。デイジタイザー部162の座標入力
部150上をポインテイングペン151で押える事により基準
点166からのX座標とY座標がCPU回路部208に伝送され
る。また、152〜161は各種編集条件を入力するためのキ
ーであり、これらキーをポインテイングペン151で押え
ることにより、対応した編集条件を示すデータがCPU回
路部208に伝送される。尚、原稿押え102以外の画像読取
装置の上面に、数値入力用のテンキー及びクリアキー17
0,数値表示用のデイスプレイ173,画像読取動作の開始を
指示するスタートキー171及び画像読取動作の停止を指
示するストツプキー172が設けられる。これらキー170〜
172の情報もまたCPU回路部208に伝送される。 第11図(A),(B)及び第12図(A),(B)は、
画像編集データの形成に関わるCPU回路部208のマイクロ
コンピユータの制御手順を示すフローチヤート図であ
り、この手順はマイクロコンピユータに内蔵のメモリRO
Mに予め書込まれている。 第11図(A),(B)はデイジタイザー部162からの
入力判断に関する制御手順を示すフローチヤート図であ
る。 デイジタイザー部162のキー152〜160が押されると、
ステツプ701によりいずれかの編集キーがオンされたと
判断され、押されたキーに対応した編集条件を示すデー
タがCPU回路部208の内蔵メモリRAMに格納される。次に
ポインテイングペン151により座標入力部150の対角線上
の2点(所望の矩形領域の2つの角を示す)が押される
とステツプ702〜705により2点を示す座標(X1,Y1,X2,Y
2)がメモリRAMに格納される。 次に、押された編集キー152〜160の編集条件を判断
し、その条件に応じて、メモリRAM上のFlag1〜Flag9を
オンする(ステツプ706〜723)。 即ち、指定エリアをトリミングを指示するキー152又
は153が押されたならば、ステツプ706からステツプ707
に進み、更に、トリミングエリアの外側を黒とするキー
152であれば、ステツプ708でFlag1をオンする。また、
トリミングエリアの外側を白とするキー153であれば、
ステツプ709でFlag2をオンする。 また、指定エリアをマスキングを指定するキー154又
は154が押されたならば、ステツプ706及び710からステ
ツプ711に進み、更に、黒でマスクするキー154であれ
ば、ステツプ712でFlag3をオンする。また、白でマスク
するキー155であれば、ステツプ713でFlag4をオンす
る。 また、指定エリア内を写真モードで処理することを指
示するキー156であれば、ステツプ706,710,714からステ
ツプ715に進み、Flag5をオンする。 また、指定エリア外を写真モードで処理することを指
示するキー157であれば、ステツプ706,710,714,716から
ステツプ717に進み、Flag6をオンする。 また、指定エリア内をネガテイブ画像として出力する
ことを指示するキー158であれば、ステツプ706,710,71
4,716,718からステツプ719に進み、Flag7をオンする。 また、指定エリア外をネガテイブ画像とし出力するこ
とを指示するキー159であれば、ステツプ706,710,714,7
16,718,720からステツプ721に進み、Flag8をオンする。 又、指定エリア内を所望濃度で出力することを支持す
るキー160であれば、ステツプ706,710,714,718,720,722
からステツプ723に進み、Flag9をオンする。 以上の様にして、オペレータにより入力された原稿の
所望領域を表わす座標データ及びその所望の領域内また
は外の画像に対する編集条件に対応するデータがメモリ
RAMにセツトされる。尚、原稿上においては、複数領域
の指定を行なってもよく、また、指定領域に対して異な
る種類の編集条件をセツトできる。 第12図(A),(B)は、スタートキー171が押され
る前に、第11図(A),(B)の手順によってCPU回路
部208のメモリRAMに格納された、座標データ及び編集条
件データに基づいて、スタートキー171の押された後の
原稿読取り時におけるCPU回路部208の制御手順を示すフ
ローチヤート図である。 スタートキー171が押されると、CPU回路部208は、編
集エリア(メモリRAM)にどういうモードがセツトされ
たかに応じて下記の様な処理を行なう。 まず、編集メモリ401,402に初期値、例えば文字モー
ド,トリミング,マスキング無し、濃度中間レベルとい
った状態になる様にデータをセツトする(ステツプ74
9)。 そして、ステツプ750,751,752において、原稿の現在
の走査位置(CCD103による読取りライン)が前述の様に
して指示された領域(編集領域)に対応しているか否か
を判断する。 又、ステツプ753〜788は、メモリRAMにどのフラグか
セツトされているかを判断し、そのフラグに対応した編
集条件を示すビツトセツトを編集メモリに行なう。 尚、ステツプ753〜769は、指示されたエリアに走査位
置が達する前及び指定エリアを通過した後における処理
であり、ステツプ771〜788は指定エリアを走査中におけ
る処理である。 今、キー152が押され、Flag1がオンされているとす
る。原稿読取開始時はステツプ750からステツプ757に進
む。従って、ステツプ753でFlag1のオンを判断すると、
編集領域に走査位置が到達する迄はステツプ754の処理
を行ない画像を出力せずに黒を出力する様編集メモリの
全域のビツト0をビツト1に、ビツト1を1にセツトす
る。次に、ステツプ770により編集領域に到達したこと
を判断した場合、ステツプ771からステツプ772に進み、
編集領域のみ画像出力され(ビツト0を0、ビツト1を
1)、編集領域外は黒となる(ビツト0を1、ビツト1
を0)様に編集メモリがセツトされる。その後ステツプ
752にて編集領域の通過を判断すると、再びステツプ753
からステツプ754に進み画像黒となる様に編集メモリ全
域のビツト0を1、ビツト1を0にセツトする。 又、トリミング白のキー153が押され、Flag2がオンさ
れている場合、ステツプ755、756により編集領域に到達
する迄白の出力する様に編集メモリのビツト0に1、ビ
ツト1に0がセツトされ、編集領域に到達した場合ステ
ツプ773、774により編集領域のみ画像が出力され(ビツ
ト0に0、ビツト1に0)、それ以外は、画像が禁止さ
れ、白が出力される(ビツト0に1、ビツト1に0)
様、編集メモリがセツトされる。次に編集領域の終了に
なると再びステツプ756にて画像禁止となり全面白が出
力される様に編集メモリ全域のビツト0が1、ビツト1
が0にセツトされる。 又、マスキング黒のキー154が押され、Flag3がオンさ
れている場合、ステツプ757,758により編集領域に到達
する迄画像が全て出力される様に編集メモリのビツト0
に0、ビツト1に1がセツトされ、編集領域に到達した
場合ステツプ775,776により編集領域のみ画像が黒とな
り(ビツト0に1、ビツト1に1)、それ以外は画像出
力となる(ビツト0に0、ビツト1に1)様編集メモリ
が設定される。次に編集領域の終了になると、再び画像
が全て出力される様に編集メモリ全域のビツト0が0、
ビツト1が1にセツトされる(ステツプ757,758)。 又、マスキング白のキー155が押され、Flag4がオンさ
れている場合、ステツプ759,760により、編集領域を到
達する迄は画像が全て出力される様に編集メモリ全域の
ビツト0が0、ビツト1が1にセツトされ、編集領域に
到達した場合ステツプ777,778により編集領域内のみ画
像が白となり(ビツト0に1、ビツト1に0)、それ以
外は画像出力となる様(ビツト0に0、ビツト1に1)
編集メモリが設定される。次に編集領域の終了になると
画像を全て出力される様に編集メモリ全域のビツト0が
0、ビツト1が0となる様にセツトされる(ステツプ75
9.760)。 また、エリア内写真キー156が押され、Flag5がオンさ
れている場合、ステツプ761,762により編集領域に到達
する迄は文字モードで画像が出力される様に編集メモリ
全域のビツト6を0にセツトする。そして編集領域に到
達した場合ステツプ779,780により編集領域のみ写真処
理となり(ビツト6に1)、それ以外は文字処理となる
(ビツト6に0)様に編集メモリが設定される。次に編
集領域の終了になると、画像全面が文字モード処理とな
る様に編集メモリのビツト6に0をセツトする(ステツ
プ761,762)。 また、エリア外写真キー157が押され、Flag6がオンさ
れている場合、ステツプ763,764により編集領域に到達
する迄は全ての画像を写真モードで画像が出力される様
編集メモリ全域のビツト6を1にセツトする。そして、
編集領域に到達した場合ステツプ781,782により、編集
領域のみ文字モード(ビツト6に0)となり、それ以外
は、写真処理(ビツト6に1)となる様に編集メモリを
設定する。次に編集領域の終了になると、画像全面を写
真モードで処理する様に編集メモリ全域のビツト6を1
にセツトする(ステツプ763,764)。 また、エリア内ネガキー158が押され、Flag7がオンさ
れている場合、ステツプ765,766により編集領域に到達
する迄は、全面がポジテイブ画像として出力される様編
集メモリ全域のビツト2に0をセツトする。そして編集
領域に到達した場合、ステツプ783,784により、編集領
域のみネガテイブモード(ビツト2に1)となり、それ
以外はポジテイブモードとなる(ビツト2に0)様編集
メモリをセツトする。次に編集領域の終了になると、画
像全面がポジテイブ画像となる様編集メモリ全域のビツ
ト2に0をセツトする(ステツプ765,766)。 また、エリア外ネガキー159が押され、Flag8がオンさ
れている場合、ステツプ767,768により編集領域に到達
する迄は全面がネガテイブ画像として出力される様に編
集メモリ全域のビツト2を1にセツトする。そして編集
領域に到達した場合、ステツプ785,786により、編集エ
リアのみポジテイブモードとなり(ビツト2を0)、そ
れ以外はネガテイブモードとなる(ビツト2を1)様編
集メモリをセツトする。次に編集領域の終了になると、
画像全面がネガテイブ画像となる様、編集メモリ全域の
ビツト2を1にセツトする(ステツプ767,768)。 また、エリア内濃度キー160が押され、Flag9がオンさ
れている場合、ステツプ769により編集領域に到達する
迄は濃度を通常の第1のγ補正処理における濃度“F5"
にされる様、編集メモリ全域のビツト4,5に0をセツト
する。そして、編集領域に到達した場合、ステツプ787,
788により編集領域のみ指定されたγ補正処理に対応し
たビツトをビツト4,5にセツトし、その他の場合は、ビ
ツト4,5に0をセツトする。次に編集領域の終了になる
と、画像の全面に第1のγ処理を行うべく、編集メモリ
全域のビツト4,5に0をセツトする(ステツプ769)。 上記の様に編集キーと領域指定に応じて走査位置に関
連して編集メモリに適切な条件がCPU回路部208により設
定される。 次に、画像編集データに応じた画像処理について説明
する。 シエーデイング補正された画像データは、第6図に示
すトリミングブロツク410に送られる。この実施例の画
像データにおいて、「FF」は黒を表わし、「00」は白を
表わし、数字が大きいほど黒に近くなる。 また、第6図に示すビツト0〜6は、第5図に示すセ
レクタ405または406から送られる信号であり、画像編集
データである。 トリミングブロツク410には、AND回路450,451とOR回
路452とインバータ453とで構成される組が、1画素当り
8ビツトのデジタル画像データの各ビツト毎に8組設け
られ、他の7組を省略して示してある。編集メモリ401
または402から送られた画像編集メモリのビツト0が
「1」のときに、ゲート450によって画像信号の出力が
禁止され、上記編集メモリのビツト1の情報が画像デー
タとして出力される。このために、ビツト0によって画
像データを禁止した領域について、ビツト1を指定する
ことによって、黒または白の出力として選択できる。 回路ブロツク411は、ORゲート454を8個有し(その7
個を省略して示してある)、ビツト3によって、画像信
号を強制的に黒にすることができる。 回路ブロツク412は、EX−ORゲート455を8個有し(そ
の7個を省略して示してある)、ビツト2を「H」にす
ると、画像信号が反転され、ネガ画像になる。 γ変換ROM413(たとえばMB71)は、そのアドレス0〜
7に画像データを受け、その画像データをアドレスとし
てγ変換信号を出力する。この場合は、ビツト4,5によ
って、ROM413に予め格納されている4種類のγ変換用の
変換テーブルから1つを選択することができる。 ビツト6は、画像データの1本としてバツフア205に
送られる。 図示しないビツト7は、原稿のAEを行う領域を示す信
号として使用し、ビツト7が「H」の場合のみ、AEサン
プルの情報とするためのゲート信号として使用する。 第7図は、第2図におけるバツフア205とバツフア制
御回路207の詳細を示す図である。 バツフア205は、画像の拡大,縮小,移動を行った
り、CCD読取りクロツク(各CCDCLK)に同期した画像デ
ータを、プリンタ同期クロツク(PCLK)に同期した画像
データに変換するものである。 画像メモリ506,507は、ダブルブツフアメモリ構成に
なっており、それぞれ1ライン分の画像データを格納可
能となっている。つまり、8Kビツト×9構成のメモリを
使用している。 次に、画像メモリ506に画像データを書込む場合を例
にとって説明する。 まず、アドレスセレクタ504がAを選択すると、ライ
トアドレスカウンタ502のアドレスを画像メモリ506が入
力し、画像データ220がメモリに書込まれる。同時に、
メモリ507のアドレスセレクタ505がリードアドレスカウ
ンタ503を選択し、セレクタ509によって、メモリ507の
出力が選択され、画像データとして取り出される。そし
て、次のラインのときは、水平同期信号(HSYNC)によ
って、リードとライトとの切換えが行われ、上記の逆の
動作を行う。 さらに、ライト動作のとき、BRM(バイナリ・レート
・マルチプライヤ、たとえば、SN7497)によって、CCDC
LKを間引くことによってライトアドレスカウンタ502を
動作させると、画像メモリ506又は507には間引かれた場
所の画像データがスキツプされて格納される。したがっ
て、画像データが縮小する。 同様に、BRM510によって、リードアドレスカウンタ50
3に入力するクロツクを間引くことによって、間引かれ
たクロツクの所だけ画像データ221が重複して出力され
る。したがって、間引きの度合に応じて画像データを拡
大する。 この場合、ライトアドレスカウンタ502、リードアド
レスカウンタ503の開始アドレスをマイコンで自由に設
定できるが、両カウンタに同じ値をセツトすると画像の
移動なく、異なるアドレスを設定すると主走査方向に対
して画像の移動を行うことができる。 さらに、画像データ220は、1ビツト写真領域信号が
付加され、画像8ビツト、制御信号1ビツトの合計9ビ
ツトのデータとしてエデイテイング回路部203からバツ
フア205に送られるが、この1ビツトの制御信号も画像
と同じように拡大、縮小している。したがって、変倍後
も、制御信号と画像とが1対1に対応する。変倍編集さ
れた画像データと制御信号とは、記録部210へ送られ
る。 記録部210においては、図示していないが、各画素の
画像データに付加された写真文字の制御信号に従って、
記録特性を変化させ、文字/写真それぞれに合った画像
を形成する。 上記実施例において、制御信号1ビツトのみを画像信
号とともに拡大、縮小しているが、多数の制御信号を画
像信号とともに拡大、縮小するようにしてもよい。これ
によって、画像信号と対応した種々の信号を送ることが
できる。 また、上記実施例において、CCD1画素に対応して編集
メモリを持っているが、連続した複数画素(例えば、8
画素)を1ブロツクとし、このブロツクに対応して編集
メモリを持つようにしてもよい。これによると、編集メ
モリの容量を削減できる。ただし、この場合、画像編集
の精度が悪くなるが、マイコンの演算は速くなる。 また、本実施例においては、トリミングエリア等の入
力手段としてデイジタイザーを用いて行ったが、テンキ
ーとX,Yを表わすキーで行ってもよい。例えば、X(150
〜200mm),Y(50〜100mm)をトリミングする場合、“X"
キー“150*200*”、“Y"キー“50*100*”という具
合に順次テンキーで入力しても同様の事が実現出来る。 又、トリミングエリア等の他の入力手段として音声入
力を用いる事も可能であり、テンキーで押される動作を
そのまま、音声で入力し、テンキーの代わりとする事も
出来る。 又、他の、入力手段として他のマイクロコンピユータ
によって決定された領域をシリアル通信により入力する
事によっても実現出来る。 又、他の入力手段として、ICカード又は、メモリカー
ド等に記憶していたデータをCPUが読み取る事により同
様の事が実現出来る。 又、編集RAMの使用の仕方として、各画素にすべて編
集の情報を書き込む様な構成にしたが、処理の変化点の
みをメモリに書き込むという事でも実現出来る。この手
法を用いると、メモリにデータを書く時間は省略される
が演算は複雑になる。 又、編集RAMの容量を主走査画素数と同一としたが
(本実施例においては、5000画素のCCDを用いている
為、8K×8bitのメモリの5K画素分を使用した)2画素,3
画素,…等に1ビツト対応のメモリを使う事も出来る。
その場合、編集精度は劣化する(例えば2画素に1ビツ
トの場合は0.125mm単位、3画素に1ビツトの場合は0.1
875mm単位)となるがメモリ容量は半分,1/3等となり、
メモリ容量は低下し、処理スピードは向上する。しか
し、本発明と同様な効果が得られる。また、本実施例で
は、画素編集データを各画素につき8ビツトとし、各画
素毎に数通りの編集処理を実行可能としたが、このビツ
ト数を増加させることにより、更なる多種類の編集処理
を可能とすることができ、また、編集処理の種類をそれ
程必要としない場合はそのビツト数を減らすことができ
る。 〔効果〕 以上説明した様に、本発明によると、1ライン分の画
素データの各画素または連続した複数画素に対する複数
の画像処理条件を表わす複数ビットの画像編集データを
1ラインまたは複数ラインの画像データの入力毎に形成
する画像編集データ形成手段を有し、この複数ビツトの
画像編集データの各ビットによって表わされた複数の画
像処理条件に従って、1ライン分の画像データの各画素
または連続した複数画素に対して、複数通りの画像処理
を行うので、各ラインの画像データに対する複数通りの
画像処理を、各画素または連続した複数画素を単位とし
て、選択的に実行可能となり、また、2ライン分の画像
データの各画素または連続した複数画素に対する複数ビ
ットの画像編集データを記憶可能な画像編集データメモ
リを有し、この画像編集データメモリに1ライン分の画
像データの各画素または連続した複数画素に対する複数
ビットの画像編集データを書込むとともに、先に記憶さ
れている1ライン分の画像データの各画素または連続し
た複数画素に対する複数ビットの画像編集データを、入
力される1ライン分の画像データの各画素または連続し
た複数画素の画像データに対応して読出し、読出された
複数ビットの画像編集データの各ビットによって表わさ
れた複数の画像処理条件に従って、1ライン分の画像デ
ータの各画素または連続した複数画素の画像データに対
して、複数通りの画像処理を行うので、各ラインの画像
データに対して複数通りの画像処理を選択的に実行する
際に、画像編集データを1ページ分記憶する大容量メモ
リや画像処理条件の変化点検知のために主走査アドレス
と変化点とを常に比較する比較器の如くのハードウェア
を用いることなしに、複数の画像処理条件の変化点の増
大に十分対応可能な画像処理装置を提供することができ
る。
Description: TECHNICAL FIELD The present invention relates to image data read in correspondence with a document image.
And an image processing device for processing and converting the image data. [Prior Art] Process and convert read image corresponding to original image
A conventional image reading device has a micro computer,
This microcomputer performs the above processing and conversion. When
Rolling, but the processing speed of the micro computer is limited
There is a real-time editing process for each pixel
It was difficult to output the information at high speed. Therefore, the present applicant has disclosed in Japanese Patent Application Laid-Open No. 59-62885, etc.
Image processing equipment that enables high-speed, real-time image processing
Proposed. The devices disclosed in these applications employ the main scanning 1
Batch processing information for multiple lines of lines or main scanning
Preset to hardware and process corresponding to each pixel
Is performed by hardware. That is, the address of the change point of the processing condition in each editing process
The address of the change point and the address of the main scan
Is always compared by the comparator, and the result of this comparison matches
To perform the desired editing process when
You. However, in such an apparatus, a single main scanning
As the number of areas and types of processing increases, the number of change points increases,
The problem is that the number of comparators increases by the amount of change points.
is there. For example, for one main scan (5000 pixels)
Process, and find 10 change points in one type of process.
If so, 8 × 10 = 80 comparators and registers (13
Bit) and hardware circuits increase rapidly.
There is a problem of adding. [Purpose] The present invention has been made in view of the above points, and has
Data processing for multiple types of data
It is intended to be executable without causing
Is a line of image data representing each of a plurality of pixels.
Image data input means for inputting the image data
Each pixel of one line of image data input from the input means
Or use multiple image processing conditions for multiple consecutive pixels
The plurality of bits of the image editing data,
One or more lines of image data from input means
Means for forming image editing data for each input of
For each pixel or continuous pixels
Image editing that can store multi-bit image editing data
Data storage means, and the image editing data storage means
For one line formed by the image editing data forming means
Multiple pixels for each pixel or consecutive pixels of the image data
While writing several bits of image editing data,
For one line previously stored in the edit data storage means
Multiple pixels for each pixel or consecutive pixels of the image data
The image data input means,
Each pixel of one line of image data input from
Image editing data writing to read out for multiple consecutive pixels
Reading means, read from the image editing data storage means
Represented by each bit of multi-bit image editing data
According to the plurality of image processing conditions set, the image data is input.
Each pixel of one line of image data input from the input means
Or multiple types of image processing for continuous multiple pixels
To provide an image processing apparatus having image processing means for performing
And the image editing data storage means comprises:
Each pixel of the image data for the line or multiple consecutive pixels
That can store multi-bit image editing data for
Image editing data writing and reading means
Is the image editing data previously stored in one of the memory means.
Data reading and new image editing to the other memory means
Provide an image processing device that executes data writing in parallel
And the image processing means includes a plurality of
The data represented by each bit of the image editing data
Image data for one line according to each of the number of image processing conditions
Each pixel of the data or multiple consecutive pixels
Image processing apparatus having a plurality of conversion means for performing different image conversions
Is provided. Embodiment FIG. 1 is an external view of an image reading apparatus. This apparatus includes a document table 101, a document holder 102,
Approximately 5000 light-receiving elements arranged in a line
Line sensor CCD 103, document illuminating fluorescent lamp 104, and mirror
105, 106, and 107, and an imaging lens 108. Fluorescent light
First optical unit including 104 and mirror 105 and mirror 10
The second optical unit with 6,107 has a 2: 1 speed ratio.
The original is scanned in the Y direction by moving
The images are sequentially formed on the CCD 103. FIG. 2 is a diagram showing the overall rotation of the image reading apparatus shown in FIG.
It is a block diagram which shows a road structure. CCD103 (for example, Toshiba TCD106C, 5000 pixels)
Receives light from the original, and converts analog signals indicating the pixel density
Realistic output. This analog signal is an 8-bit A / D
8-bit digital signal for each pixel by the converter 201
The digital signal is sequentially converted to
This is corrected by the ringing correction circuit 20. The shading correction circuit 202 outputs light outside the document placing area.
Bring a science system and illuminate the white plate attached to it
Then, the data for one main scan when reading and scanning with the CCD 103 is
Accumulates in the memory, and based on this memory data, the actual
Add correction to image data. Shading corrected
The data is sent to the image recognition unit 204 and the editing circuit unit 203.
Can be In addition, buffer 205, main scan address generation
Circuit, CCD drive 206, buffer control circuit 207, CPU circuit section 20
8, an operation unit 209 is provided, and image data from the buffer 205 is provided.
The data is supplied to an external device such as the image recording unit 210. FIG. 3 shows a document placed on the platen 101 of the document reading apparatus.
FIG. From the reference coordinates SP of the platen 101 to the main scanning direction (the CCD 103
The sub-scanning direction (first and second optics)
When the unit movement direction is Y, the original image is read.
The optical unit is moved before
And point P1 (X, Y1), point P2 (X2, Y2), point P3 (X3, Y3),
The point P4 (X4, Y4) is detected by the image recognition unit 204. Manuscript
The image data in the area other than the area where the
The document cover 110 is mirror-finished so that
You. Main scan and sub-scan as if prescanning the entire glass surface
I do. FIG. 4 is a circuit diagram showing details of the image recognition unit 204.
You. The main scanning counter 351 is a down counter,
This shows the scanning position in one inspection line. This counter 35
1 is a horizontal synchronization signal HSYNC generated prior to each main scan.
Is set to the maximum value in the main scanning direction (X direction) by
Counts every time the image data clock CLK is input
Down, indicating the pixel position in the main scanning direction. The sub-scanning counter 352 is an up counter,
VSYNC (the image destination
Edge signal) is reset to "0" at the rise of HSYNC
Counts up by signal and scans in the sub-scanning direction.
Indicates the inspection position. During scanning, the shading correction circuit 202
After the shading correction, a comparator (not shown)
The binary image data VIDEO is shifted by 8 bits
Sent to register 301. At each scan, the CPU 208
Sets a predetermined fixed slice level
Data. When the 8-bit input is completed, the gate circuit 302
All of the 8-bit data in shift register 301
Check whether the image is a white image (0 level) representing the skin
Gate 302 outputs "1" if all images are white.
Power. First 8-bit continuous image after starting the prescanning of the original
Flip when all data is white (0 level)
The flop 304 is set. The flip flop 304 is
VSYNC (image leading signal output at the start of forward movement)
And have been reset in advance. After that, the next VSYNC will come
Maintain the set state until. The main scanning counter 351
The clock synchronized with the pixel output of the image data from the comparator
Counts down by clock CLK.
When the lip flop 304 is set, the
At this time, the value of the main scanning counter 351 is loaded. This value
Is the coordinate value of X1. The sub-scanning counter 352 is the same for scanning every line.
The expected signal is up-counted.
When the value of the sub-scanning counter 352 at the time when the
Is loaded into the latch 306. This value is Y1
It is a standard value. Therefore, the point P1 (X1, Y1) is found
You. Also, every time the gate 302 outputs “1”, the main scanning
The value from the counter 351 is loaded into the latch 307. At first
When all the continuous 8-bit image data is white
The value from the main scan counter 351 is loaded into the latch 307.
Then, this value and the latch 310 (this is the X direction at the time of VSYNC)
Data is set to the maximum value of the
Compared by 309. If the data of the latch 307 is small,
The output of data 309 is active,
The data of the switch 307 is loaded on the latch 310. Also this
When the value of the sub-scanning counter 352 is loaded into the latch 311
It is. In this operation, the next 8 bits are stored in the shift register 301.
It ends until it enters. Thus, the data comparison between the latch 307 and the latch 310 is performed.
When the processing is performed for all image areas, the original area X
The minimum value in the direction remains, and the coordinate in the Y direction at this time is
Remain in 311. That is, the main scanning counter 351
The coordinates corresponding to the minimum value in the X direction are
Represents coordinates farthest from SP in direction. This coordinate is the point P3
(X3, Y3). The flip-flop 312 is first set for each main scan line.
If image data representing a continuous white image of 8 bits appears
This is a flip-flop that is set when
8 consecutive bits reset by HSYNC
Set when the image data of all
Hold up to YNC. This flip flop 312 is set
The white signal position that first appeared in one line
The corresponding value of the main scanning counter 351 is loaded into the latch 313.
You. Then, the value of the latch 313 and the value of the
Parator 316 compares. Latch 315 generates VSYNC
The minimum value in the X direction, that is, “0” is preset.
Have been If the data of latch 315 is larger than the data of latch 313
If less or equal, the output of comparator 316
The signal becomes active and latch 313 data is latch 3
Loaded at 15. This operation is performed between HSYNC and HSYNC.
It is. When the above comparison operation is performed for all image areas, the latch
Reference numeral 315 denotes the maximum value of the document coordinates in the X direction, that is, the main scanning
The X coordinate of the white signal at the point closest to the scanning start point in the direction remains.
You. This is X2. Also, the output of comparator 316 is
When active, the value from sub-scan counter 352
Is loaded on the latch 318. This becomes Y2 and the point P2 (X
2, Y2) is obtained. Latches 319 and 320 are 8 bits in the entire image area.
Each time continuous white image data appears, the main scan at that time
The value of the counter 351 and the value of the sub-scanning counter 352 are loaded.
It is. Therefore, when prescanning of the original is completed,
Counter 35 when 8-bit color image data appears
The count values of 1,352 remain on the latches 319 and 320. this
Is a point P4 (X4, Y4). The above eight latches 308, 311, 320, 318, 305, 310, 31
5, 319 data lines are connected to the CPU 208 bus,
U208 reads this data at the end of the forward scan
No. As a result, the position and size of the original on the platen 101 can be adjusted.
judge. FIGS. 5 and 6 show the editing circuit shown in FIG.
FIG. 203 is a circuit diagram showing the details of 203. The editing memories 401 and 402 store the desired
Image editing data for executing image processing
That is, the RAM stores information for performing image processing). MSEL
(Memory select signal) at “H” level
The Q output of the flip-flop 407 becomes high level, and the selector 4
03, 405 is selected on the A side, and the editing memory 401
CCD address from the address generation circuit 206 (main scanning address
). At this time, the selectors 404, 40
6 is B side, edit memory 402 is microcomputer address
Is controlled by In this state, the edit memory 402 stores C
The address bus and data bus of the microcomputer of the PU circuit unit 208
Connected to the microcomputer and the microcomputer can read and write freely
Can be. By the way, the edit memories 401 and 402 are connected to the CCD address.
The address of the edit memories 401 and 402 and the pixels of the CCD 103
The address corresponds. In other words, at memory address 1
Corresponds to the first pixel of the CCD, and the nth
Pixels correspond to the editing memory using a CCD of 5000 pixels
And at least 5000 addresses of memory, for example 8K bytes
(8K bits x 8) is used. Therefore, the m-th
The processing data for processing the pixel is written at address m in the image memory.
To be included. The editing memories 401 and 402 have 8 bits per address.
In the above embodiment, bit 0 is used.
Is "image output prohibition" and bit 1 is "image output prohibition area".
Is black, bit 2 is negative, bit 3 is black
Power, bits 4 and 5 for γ correction level, bit 6 for
"Photo area" is shown in bit 7, and "AE area" is shown in bit 7.
Image editing data is stored. 8 and 9, the editing memory 401 or 402
Set by the U circuit unit 208. Examples of image editing data
explain. Fig. 8 shows the contents of processing on the original ORG, three optional
The operator selects the areas (I), (II), and (III) using the operation unit 209.
And for the image in area (I),
/ Black inversion processing and the second γ correction processing are performed, and the area (I
A third gamma correction process and a photographic process
Run and also white mask for the image in area (III)
It is assumed that the user is instructed to execute the processing. Note that S0 to S8 indicate pixel positions in the main scanning direction. The CPU circuit unit 208 responds to each of the scanning lines according to the above instruction.
An image memory for forming image editing data for an image signal
Set to 401,402. The designated areas (I), (II),
First gamma correction for images in document areas other than (III)
Execute the process. FIGS. 9 (1), (2) and (3) show the scanning shown in FIG. 8, respectively.
Edit memory corresponding to lines (A), (B) and (C)
Shows the image editing data set. That is, the specified area
Image editing for areas other than (I), (II) and (III)
The data is (00000100) and the area (I) is (001010).
00), (00001110) for area (II), and area (II
For (I), (10000000) is the pixel position S in the main scanning direction.
Written to addresses corresponding to 0 to S8. In addition, in FIG.
In order to prevent the drawing from becoming complicated,
Is indicated by the symbol "~". Furthermore, there are two memories, such as edit memories 401 and 402.
MSL exists for each line or multiple lines
(Memory select signal) to “H” and “L”
Edit memory and CCD address access
In order to switch between the editing memory
You. In other words, leave the access to the microcomputer and
The editing information about the contents is written to one editing memory
When reading from the other edit memory that has already been written
Read and use information on bus 409 for CCD image editing
ing. To switch image editing data to new data, use MSEL
By switching the level of
New edit data to the microcontroller
What is necessary is just to switch to the edited memory in which the data has been written. Sand
If the level of MSEL is changed for each line, the maximum is 1
Edit data can be changed for each line. Image editing data
If you do not change, that is, if you do not change the MSEL, always
The same image editing data written in the same editing memory
Used repeatedly. The CPU circuit unit 208 relating to the formation of the above pixel edit data
The operation procedure will be described. FIG. 10 is an external view of the operation unit 209.
Digit for inputting editing conditions and editing coordinates
It consists of an Iser part 162. Coordinate input of digitizer 162
Standard by pressing on the part 150 with the pointing pen 151
The X and Y coordinates from point 166 are transmitted to the CPU circuit 208.
You. 152 to 161 are keys for inputting various editing conditions.
Press these keys with a pointing pen 151.
By doing so, data indicating the corresponding editing conditions
It is transmitted to the road section 208. In addition, image reading other than the original presser 102
The numeric keypad and clear key 17
0, Display 173 for numerical display, Start image reading operation
Instruct the start key 171 and stop the image reading operation.
A stop key 172 as shown is provided. These keys 170-
The information of 172 is also transmitted to the CPU circuit unit 208. FIGS. 11 (A) and (B) and FIGS. 12 (A) and (B)
Micro of the CPU circuit unit 208 related to the formation of image editing data
FIG. 4 is a flowchart showing a computer control procedure.
This procedure uses the built-in memory RO of the microcomputer.
M is written in advance. FIGS. 11 (A) and 11 (B) show the results from the digitizer section 162.
FIG. 6 is a flowchart showing a control procedure regarding input determination.
You. When the keys 152 to 160 of the digitizer section 162 are pressed,
If any edit key is turned on by step 701
The data indicating the editing conditions corresponding to the key that was determined and pressed
The data is stored in the built-in memory RAM of the CPU circuit unit 208. next
On the diagonal of the coordinate input unit 150 with the pointing pen 151
Are pressed (indicating the two corners of the desired rectangular area)
And coordinates (X1, Y1, X2, Y) indicating two points by steps 702 to 705
2) is stored in the memory RAM. Next, the editing conditions of the pressed editing keys 152 to 160 are determined.
Depending on the conditions, Flag1 to Flag9 on the memory RAM
Turn on (steps 706 to 723). That is, the key 152 or the key for instructing trimming of the designated area
If 153 is pressed, step 706 to step 707
Go to, and press the key to make the outside of the trimming area black
If 152, Flag1 is turned on in step 708. Also,
If the key 153 makes the outside of the trimming area white,
At step 709, Flag2 is turned on. In addition, the key 154 or
If 154 is pressed, go to steps 706 and 710.
Proceed to step 711, and if the key 154 is to be masked with black
For example, in step 712, Flag3 is turned on. Also mask on white
Key 155, turn on Flag 4 in step 713.
You. Also, specify that the specified area should be processed in the photo mode.
If the key 156 is to be displayed, the steps 706, 710, and 714 are repeated.
Go to Step 715 and turn on Flag5. In addition, specify that processing outside the designated area is performed in the photo mode.
If the key 157 is shown, the steps 706, 710, 714, 716
Proceed to step 717 to turn on Flag6. Outputs the specified area as a negative image
Step 706, 710, 71
From 4,716,718, proceed to step 719 to turn on Flag7. It is also possible to output outside the designated area as a negative image.
Step 706, 710, 714, 7
From 16,718,720, proceed to step 721 to turn on Flag8. Also, it is supported to output the specified density in the designated area.
Key 160, steps 706,710,714,718,720,722
To 723 and turn on Flag9. As described above, the original input by the operator
Coordinate data representing the desired area and within the desired area or
Indicates the data corresponding to the editing conditions for the outside image
Set in RAM. In addition, on a manuscript,
May be specified, and a different
You can set different types of editing conditions. FIGS. 12A and 12B show that the start key 171 is pressed.
Before the CPU circuit
The coordinate data and editing conditions stored in the memory RAM of the unit 208
After the start key 171 is pressed,
A flowchart showing a control procedure of the CPU circuit unit 208 when reading a document.
FIG. When the start key 171 is pressed, the CPU circuit unit 208
What mode is set in the collection area (memory RAM)
The following processing is performed depending on whether or not. First, initial values, for example, character modes are set in the edit memories 401 and 402.
No trimming, no masking, medium density level
Set the data so that the
9). Then, in steps 750, 751, 752, the current
Scanning position (read line by CCD103)
Whether it corresponds to the area (editing area) specified by
Judge. Steps 753 to 788 indicate which flags are stored in the memory RAM.
Judge whether it is set and edit the version corresponding to the flag.
A bit set indicating the collection condition is stored in the edit memory. Note that steps 753 to 769 perform scanning positions in the designated area.
Before the device reaches and after passing the designated area
And steps 771 to 788 are performed while scanning the designated area.
This is the process to be performed. Now, assume that key 152 is pressed and Flag1 is turned on.
You. When reading a document, go from step 750 to step 757.
No. Therefore, when it is determined in step 753 that Flag1 is on,
Until the scanning position reaches the editing area, the processing of step 754
In the editing memory so that black is output without outputting the image.
Set bit 0 of the entire area to bit 1 and set bit 1 to 1.
You. Next, when the editing area is reached by step 770
If it is determined, the process proceeds from step 771 to step 772,
Only the editing area is output as an image (bit 0 is 0, bit 1 is
1), the area outside the editing area is black (bit 0 is 1, bit 1 is
The editing memory is set as shown in FIG. Then step
If it is determined in step 752 that the user has passed through the editing area, the
And go to step 754 to edit the entire memory so that the image becomes black.
Set bit 0 of the area to 1 and bit 1 to 0. Also, the trimming white key 153 is pressed and Flag2 is turned on.
The editing area by steps 755 and 756
1 to bit 0 in the edit memory so that white is output until
When 0 is set in the cut 1 and the edit area is reached,
Images are output only in the editing area by steps 773 and 774 (Bit
0 for bit 0, 0 for bit 1), otherwise the image is prohibited
And white is output (1 for bit 0, 0 for bit 1)
The editing memory is set. Next, at the end of the editing area
Once again, the image is prohibited again at step 756 and the whole white appears
Bit 0 of the entire edit memory is 1 and bit 1 is
Is set to 0. Also, the masking black key 154 is pressed and Flag3 is turned on.
The editing area is reached by steps 757 and 758
Bit 0 in edit memory so that all images are output until
Is set to 0 and 1 to 1 and the editing area is reached.
In step 775, 776, only the edit area is black
(1 for bit 0, 1 for bit 1), otherwise output image
Editing memory to be powerful (0 for bit 0, 1 for bit 1)
Is set. Next, at the end of the editing area,
Are all output so that bit 0 of the entire edit memory is 0,
Bit 1 is set to 1 (steps 757, 758). Also, the masking white key 155 is pressed and Flag4 is turned on.
The editing area has been reached through steps 759 and 760.
Until it reaches the end of the editing memory so that all images are output
Bit 0 is set to 0, bit 1 is set to 1, and
When it reaches, only the image in the editing area is
The image becomes white (1 for bit 0, 0 for bit 1), and
Outside, image output (0 for bit 0, 1 for bit 1)
Edit memory is set. Next, when the editing area ends
Bit 0 of the entire edit memory is set so that all images are output
0, bit 1 is set to 0 (step 75
9.760). In addition, the photo key 156 in the area is pressed and Flag5 is turned on.
The editing area is reached by steps 761 and 762
Until the editing memory, so that the image is output in character mode
Bit 6 of the whole area is set to 0. And we reach the editing area
If it reaches, the photo processing is performed only in the editing area according to steps 779 and 780.
(1 in bit 6), otherwise it is character processing
The edit memory is set as (0 in bit 6). Next
At the end of the collection area, the entire image is in text mode processing.
Is set to bit 6 of the edit memory so that
761,762). Also, the out-of-area photo key 157 is pressed and Flag6 is turned on.
The editing area is reached by steps 763 and 764
Until you do so, all images will be output in photo mode
Bit 6 of the entire edit memory is set to 1. And
When the editing area is reached Edit according to steps 781 and 782
Only the area is in character mode (bit 6 is 0), otherwise
Saves the editing memory so that it becomes photo processing (1 in bit 6)
Set. Next, when the editing area ends, the entire image is
Bit 6 of the entire edit memory is set to 1 so as to process in true mode.
(Steps 763, 764). Also, the negative key 158 in the area is pressed and Flag7 is turned on.
The editing area is reached by step 765,766
Until you do so, the entire surface is output as a positive image
0 is set in bit 2 of the entire memory area. And edit
If you reach the area, edit the editing area according to steps 783 and 784.
Only the area becomes negative mode (1 for bit 2)
Mode is set to positive mode (bit 2 is 0)
Set memory. Next, at the end of the editing area,
Bits of the entire editing memory so that the entire image becomes a positive image
Set 0 in step 2 (steps 765 and 766). Also, the negative key 159 outside the area is pressed and Flag8 is turned on.
The editing area by steps 767 and 768
Edit so that the entire image is output as a negative image until
Bit 2 of the entire collection memory is set to 1. And edit
When the area is reached, edit the editing data according to steps 785 and 786.
Only the rear is in the positive mode (bit 2 is 0).
Other than that, it becomes negative mode (bit 2 is 1)
Set collection memory. Next, when the editing area ends,
In order to make the entire image a negative image,
Bit 2 is set to 1 (steps 767 and 768). Also, the area density key 160 is pressed and Flag9 is turned on.
If so, reach the editing area by step 769
Up to the density "F5" in the normal first gamma correction processing
0 is set to bits 4 and 5 of the entire edit memory
I do. If you reach the editing area, step 787,
Corresponds to gamma correction processing where only the editing area is specified by 788
Set the bits to bits 4 and 5; otherwise,
Set 0 to 4 and 5. Next comes the end of the editing area
And an editing memory for performing the first γ processing on the entire surface of the image.
0 is set to bits 4 and 5 of the whole area (step 769). As described above, the scan position is
Then, appropriate conditions are set in the edit memory by the CPU circuit unit 208.
Is determined. Next, the image processing according to the image editing data will be described.
I do. The image data subjected to the shading correction is shown in FIG.
It is sent to the trimming block 410. The image of this embodiment
In the image data, "FF" represents black and "00" represents white.
The higher the number, the closer to black. Bits 0 to 6 shown in FIG. 6 correspond to the cells shown in FIG.
Signal sent from the collector 405 or 406.
Data. The trimming block 410 has an OR circuit with the AND circuits 450 and 451.
A set consisting of the path 452 and the inverter 453
8 sets of 8 bit digital image data are provided for each bit
And the other seven sets are omitted. Editing memory 401
Or bit 0 of the image editing memory sent from 402
When “1”, the output of the image signal is performed by the gate 450.
It is prohibited and the information of bit 1 of the editing memory is
Output as data. For this purpose, bit 0
Specify bit 1 for the area where image data is prohibited
Thus, it can be selected as a black or white output. The circuit block 411 has eight OR gates 454 (part 7).
Are omitted in the figure), and the image signal is
The signal can be forced black. The circuit block 412 has eight EX-OR gates 455 (the
7 are omitted), and bit 2 is set to "H".
Then, the image signal is inverted to become a negative image. The γ conversion ROM 413 (for example, MB71) has addresses 0 to
7 receives the image data and uses the image data as an address.
To output a γ-converted signal. In this case, bits 4 and 5
Therefore, four types of gamma conversions stored in the ROM 413 in advance
One can be selected from the conversion table. Bit 6 is stored in buffer 205 as one of the image data.
Sent. Bit 7 (not shown) is a signal indicating the area where AE of the document is to be performed.
AE sun only when bit 7 is “H”
Used as a gate signal for pull information. FIG. 7 shows the buffer 205 and the buffer system in FIG.
FIG. 3 is a diagram illustrating details of a control circuit 207. Buffer 205 enlarges, reduces, and moves the image
Image data synchronized with the CCD reading clock (each CCDCLK).
Data synchronized with the printer synchronization clock (PCLK)
It is to be converted to data. Image memories 506 and 507 have a double buffer memory configuration.
, Each of which can store one line of image data
Noh. In other words, a memory with an 8K bit × 9 configuration
I'm using Next, an example of writing image data to the image memory 506 will be described.
To explain. First, when the address selector 504 selects A, the write
The address of the address counter 502 is input to the image memory 506.
The image data 220 is written to the memory. at the same time,
The address selector 505 of the memory 507 sets the read address
And the selector 509, and the memory 507 is selected.
The output is selected and taken out as image data. Soshi
In the case of the next line, the horizontal synchronization signal (HSYNC)
Thus, switching between read and write is performed, and the reverse of the above is performed.
Perform the operation. In addition, during a write operation, the BRM (binary rate
CCDC by a multiplier, eg SN7497)
By thinning out LK, the write address counter 502
When operated, the image memory 506 or 507 stores
The image data of the place is skipped and stored. Accordingly
Thus, the image data is reduced. Similarly, the read address counter 50 is set by the BRM510.
By thinning out the clock input to 3,
Image data 221 is duplicated and output only at the clock
You. Therefore, image data is expanded according to the degree of thinning.
Great. In this case, the write address counter 502, read address
The start address of the address counter 503 can be set freely by the microcomputer.
However, if both counters are set to the same value,
If you set a different address without moving,
To move the image. Further, the image data 220 includes a one-bit photographic area signal.
8 bits of image and 1 bit of control signal for a total of 9 bits
Cut data from the editing circuit 203 as
The control signal of 1 bit is also sent to the image 205.
It expands and contracts in the same way as. Therefore, after scaling
Also, the control signal and the image correspond one to one. Scaled edit
The received image data and control signal are sent to the recording unit 210.
You. In the recording unit 210, although not shown, each pixel
According to the control signal of the photo character added to the image data,
Change the recording characteristics to match images for text / photo
To form In the above embodiment, only one bit of the control signal is transmitted to the image signal.
Signal is enlarged and reduced with the
The image may be enlarged or reduced together with the image signal. this
Can send various signals corresponding to the image signal
it can. In the above embodiment, the editing is performed corresponding to one CCD pixel.
Although it has a memory, it has a plurality of continuous pixels (for example, 8 pixels).
Pixel) as one block, and edit corresponding to this block
It may have a memory. According to this,
The capacity of the moly can be reduced. However, in this case,
Of the microcomputer becomes faster, but the operation of the microcomputer becomes faster. Further, in this embodiment, input of a trimming area or the like is performed.
It was performed using a digitizer as a force means.
Key and X and Y keys. For example, X (150
"X" when trimming Y (50-100 mm)
Key “150 * 200 *”, “Y” key “50 * 100 *”
In this case, the same thing can be realized by sequentially inputting with the ten keys. Also, voice input is used as other input means such as a trimming area.
It is also possible to use the force
You can also input the voice as it is and use it instead of the numeric keypad
I can do it. Also, as another input means, another micro computer
Input by serial communication the area determined by
It can also be realized by things. Also, as another input means, an IC card or a memory card
CPU reads the data stored in
Can be realized. Also, as a way to use the editing RAM,
Configuration information to be written,
It can also be realized by writing only the data to the memory. This hand
Method saves time writing data to memory
However, the operation becomes complicated. Also, although the capacity of the editing RAM is the same as the number of main scanning pixels,
(In this embodiment, a 5000 pixel CCD is used.
Therefore, 5K pixels of 8K x 8bit memory are used) 2 pixels, 3
A memory corresponding to one bit can be used for pixels,...
In this case, the editing accuracy is deteriorated (for example, one bit for every two pixels).
0.125mm unit for 3 bits, 0.1 for 1 bit per 3 pixels
875mm), but the memory capacity is half, 1/3, etc.
Memory capacity decreases and processing speed increases. Only
However, the same effect as the present invention can be obtained. In this embodiment,
Sets the pixel edit data to 8 bits for each pixel, and
Several editing processes can be executed for each element.
More types of editing processing by increasing the number of
It can also make the type of editing process
If you do n’t need that much, you can reduce the number of bits
You. [Effect] As described above, according to the present invention, the image for one line
Multiple for each pixel of raw data or multiple consecutive pixels
Multi-bit image editing data representing the image processing conditions
Formed for each input of one or more lines of image data
Image editing data forming means for
Multiple images represented by each bit of image editing data
Each pixel of the image data for one line according to the image processing conditions
Or multiple types of image processing for continuous multiple pixels
So that multiple types of image data for each line
Image processing is performed in units of each pixel or continuous multiple pixels.
Can be selectively executed, and the image for two lines
Multiple pixels for each pixel of data or multiple consecutive pixels
Edit data memo that can store image edit data
The image editing data memory has an image for one line.
Multiple for each pixel or continuous multiple pixels of image data
Write the bit image editing data and store it first.
Of each line of image data for one line
Input multi-bit image editing data for multiple pixels.
Each pixel or continuous image data of one line
Read in accordance with the image data of a plurality of pixels
Represented by each bit of multi-bit image editing data
Image data for one line according to the plurality of image processing conditions
Data for each pixel of the data or multiple consecutive pixels.
And perform multiple types of image processing.
Selectively execute multiple types of image processing on data
Large memo to store one page of image editing data
Main scan address for detecting changes in image data and image processing conditions
Hardware, such as a comparator, that always compares the point of change
Increase the change points of multiple image processing conditions without using
It is possible to provide an image processing device that can handle
You.

【図面の簡単な説明】 第1図は画像処理装置の外観図、 第2図は画像処理装置のブロツク図、 第3図は原稿台に原稿が置かれている状態を示す図、 第4図は画像認識部の詳細を示すブロツク図、 第5図,第6図はエデイテイング回路部の詳細を示すブ
ロツク図、 第7図はバツフアとバツフア制御回路の詳細を示すブロ
ツク図、 第8図は原稿の領域別処理の一例を示す図、 第9図は第8図示例における画像編集データの例を示す
図、 第10図は操作部の外観図、 第11図(A),(B)及び第12図(A),(B)はCPU
回路部の制御手順を示すフローチヤート図であり、 103はCCD、203はエデイテイング回路部、208はCPU回路
部、209は操作部、401,402は編集メモリである。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an external view of an image processing apparatus, FIG. 2 is a block diagram of the image processing apparatus, FIG. 3 is a view showing a state where a document is placed on a document table, FIG. 5 and 6 are block diagrams showing details of an editing circuit, FIG. 7 is a block diagram showing details of a buffer and a buffer control circuit, and FIG. 8 is a block diagram showing details of a buffer control circuit. 9 shows an example of image editing data in the example shown in FIG. 8, FIG. 10 shows an external view of the operation unit, FIGS. 11 (A), (B) and FIG. Figures 12 (A) and (B) show CPU
FIG. 3 is a flowchart showing a control procedure of the circuit unit, 103 is a CCD, 203 is an editing circuit unit, 208 is a CPU circuit unit, 209 is an operation unit, and 401 and 402 are edit memories.

Claims (1)

(57)【特許請求の範囲】 1.複数の画素のそれぞれを表わす画像データをライン
毎に入力する画像データ入力手段と、 前記画像データ入力手段から入力される1ライン分の画
像データの各画素または連続した複数画素に対する複数
の画像処理条件を表わす複数ビットの画像編集データ
を、前記画像データ入力手段からの1ラインまたは複数
ラインの画像データの入力毎に形成する画像編集データ
形成手段と、 2ライン分の画像データの各画素または連続した複数画
素に対する複数ビットの画像編集データを記憶可能な画
像編集データ記憶手段と、 前記画像編集データ記憶手段に前記画像編集データ形成
手段により形成された1ライン分の画像データの各画素
または連続した複数画素に対する複数ビットの画像編集
データを書込むとともに、前記画像編集データ記憶手段
に先に記憶されている1ライン分の画像データの各画素
または連続した複数画素に対する複数ビットの画像編集
データを、前記画像データ入力手段から入力される1ラ
イン分の画像データの各画素または連続した複数画素に
対応して読出す画像編集データ書込読出手段と、 前記画像編集データ記憶手段から読出された複数ビット
の画像編集データの各ビットによって表わされた複数の
画像処理条件に従って、前記画像データ入力手段から入
力される1ライン分の画像データの各画素または連続し
た複数画素に対して、複数通りの画像処理を行う画像処
理手段と、 を有することを特徴とする画像処理装置。 2.特許請求の範囲第1項において、 前記画像編集データ記憶手段は、1ライン分の画像デー
タの各画素または連続した複数画素に対する複数ビット
の画像編集データを記憶可能なメモリ手段を2個備え、
前記画像編集データ書込読出手段は、一方のメモリ手段
に先に記憶されている画像編集データの読出しと、他方
のメモリ手段への新たな画像編集データの書込みとを並
行して実行することを特徴とする画像処理装置。 3.特許請求の範囲第1項において、 前記画像処理手段は、複数ビットの画像編集データの各
ビットによって表わされた複数の画像処理条件の夫々に
従って、1ライン分の画像データの各画素または連続し
た複数画素に対して互いに異なる画像変換を行う複数の
変換手段を有することを特徴とする画像処理装置。
(57) [Claims] Image data input means for inputting image data representing each of a plurality of pixels line by line; and a plurality of image processing conditions for each pixel or a plurality of continuous pixels of one line of image data input from the image data input means Image editing data forming means for forming image editing data of a plurality of bits each time one line or a plurality of lines of image data are input from the image data inputting means; Image editing data storage means capable of storing a plurality of bits of image editing data for a plurality of pixels; and each pixel or a plurality of pixels of one line of image data formed by the image editing data forming means in the image editing data storage means. Writing a plurality of bits of image editing data for a pixel; A plurality of bits of image editing data corresponding to each pixel of the one-line image data or a plurality of continuous pixels stored earlier is converted to each pixel of the one-line image data input from the image data input means or a plurality of continuous pixels. Image editing data writing / reading means for reading in correspondence with a plurality of pixels; and a plurality of image processing conditions represented by each bit of the plurality of bits of image editing data read from the image editing data storage means. An image processing apparatus comprising: an image processing unit that performs a plurality of types of image processing on each pixel of one line of image data input from the data input unit or on a plurality of continuous pixels. 2. 2. The image editing data storage unit according to claim 1, wherein the image editing data storage unit includes two memory units capable of storing a plurality of bits of image editing data for each pixel or a plurality of continuous pixels of one line of image data,
The image editing data writing / reading means executes, in parallel, reading of image editing data previously stored in one memory means and writing of new image editing data to the other memory means. Characteristic image processing device. 3. 2. The image processing device according to claim 1, wherein the image processing unit is configured to output each pixel of one line of image data or a continuous image according to a plurality of image processing conditions represented by each bit of the plurality of bits of image editing data. An image processing apparatus comprising: a plurality of conversion units for performing different image conversions on a plurality of pixels.
JP62252823A 1987-10-06 1987-10-06 Image processing device Expired - Lifetime JP2886859B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62252823A JP2886859B2 (en) 1987-10-06 1987-10-06 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62252823A JP2886859B2 (en) 1987-10-06 1987-10-06 Image processing device

Publications (2)

Publication Number Publication Date
JPH0194762A JPH0194762A (en) 1989-04-13
JP2886859B2 true JP2886859B2 (en) 1999-04-26

Family

ID=17242706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62252823A Expired - Lifetime JP2886859B2 (en) 1987-10-06 1987-10-06 Image processing device

Country Status (1)

Country Link
JP (1) JP2886859B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0787527B2 (en) * 1985-12-17 1995-09-20 株式会社リコー Data editing device

Also Published As

Publication number Publication date
JPH0194762A (en) 1989-04-13

Similar Documents

Publication Publication Date Title
US5034806A (en) Image processing apparatus and method
US4520399A (en) Picture information display device
US4887163A (en) Image processing apparatus
US5327258A (en) Image processing apparatus
JP2886859B2 (en) Image processing device
JPH05136995A (en) Simple binary-coding and false halftone mixture processing method and device for image data
US6356656B1 (en) Contour-information extraction apparatus and method
US20070188812A1 (en) Image processing device, image reading device and image processing method
JP2697860B2 (en) Image processing device
JP3048609B2 (en) Image processing device
JP2660170B2 (en) Image processing device
JPS6346872A (en) Image processing device
JPS6346871A (en) Image processing device
JPH05268479A (en) Picture reader and picture processing method in picture reader
JPH021068A (en) Picture display device
JP3165750B2 (en) Printing equipment
JPH05108814A (en) Picture reader
JP2596398B2 (en) Facsimile machine
JP3014257B2 (en) Document reading device
JPS61150468A (en) Picture processing circuit
KR19980036494A (en) How to set up scanning area for high speed scanning
JPH07147631A (en) Image processor
JPS60254872A (en) Image data processor
JPH0738682B2 (en) Image signal processing processor
JPH0581470A (en) Character recognition device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080212

Year of fee payment: 9