JP2541937B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2541937B2
JP2541937B2 JP61213321A JP21332186A JP2541937B2 JP 2541937 B2 JP2541937 B2 JP 2541937B2 JP 61213321 A JP61213321 A JP 61213321A JP 21332186 A JP21332186 A JP 21332186A JP 2541937 B2 JP2541937 B2 JP 2541937B2
Authority
JP
Japan
Prior art keywords
latch
document
original
image signal
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61213321A
Other languages
Japanese (ja)
Other versions
JPS62115973A (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
Publication of JPS62115973A publication Critical patent/JPS62115973A/en
Application granted granted Critical
Publication of JP2541937B2 publication Critical patent/JP2541937B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (技術分野) 本発明は画像処理装置に関し、特に、原稿領域内のラ
イン毎の最大値及び最小値のヒストグラムを形成し、そ
のヒストグラムに基づき画像信号の階調補正のためのガ
ンマ変換特性を選択する画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly, to forming a histogram of the maximum value and the minimum value of each line in a document area and performing gradation correction of an image signal based on the histogram. The present invention relates to an image processing device that selects a gamma conversion characteristic for

(従来技術の説明) 従来より、原稿内の画像の濃度を検出し、その結果に
基づき、原稿を読み取ることにより得られた画像信号に
対し種々の画像処理を行う画像処理装置が知られてい
る。
(Description of Prior Art) Conventionally, there is known an image processing apparatus that detects the density of an image in a document and performs various image processing on an image signal obtained by reading the document based on the result. .

例えば、特開昭53−30216号公報には1ライン内の画
像信号の最大値及び最小値に基づき入力画像信号から2
値再生信号を形成することが開示されている。しかしな
がらこの場合、1ラインの画像情報に基づき入力画像信
号を処理するため、原稿画像の広い範囲の濃度を精度良
く検出することができないといった欠点があった。
For example, in Japanese Laid-Open Patent Publication No. 53-30216, the number of input image signals is 2 based on the maximum value and the minimum value of the image signals in one line.
Forming a value reproduction signal is disclosed. However, in this case, since the input image signal is processed based on the image information of one line, there is a drawback that the density of a wide range of the original image cannot be detected accurately.

(目的) 本発明は上述した従来技術に鑑みなされたもので、そ
の目的は、原稿領域内の広い範囲の濃度、更には原稿内
の情報部分と地肌部分を精度良く検出することができ、
これにより画像信号の階調変換のために最適なガンマ変
換特性を選択することができる画像処理装置を提供する
ものである。
(Object) The present invention has been made in view of the above-described conventional technique, and an object of the present invention is to detect a wide range of densities in a document area, and moreover, it is possible to accurately detect an information part and a background part in the document,
This provides an image processing device capable of selecting an optimum gamma conversion characteristic for gradation conversion of an image signal.

(実施例) 以下本発明の実施例を図面を参照して詳細に説明す
る。第1図は本発明が適用できる原稿読取装置の概略図
である。原稿カバー110により押えられ、原稿台101上に
置かれた原稿102の画像情報を読取る為に、CCD等のライ
ン撮像素子103が使用され、光源104からの照明光が原稿
102面上で反射されて、ミラー105,106,107を介してレン
ズ108により撮像素子103上に結像される。光源104,ミラ
ー105とミラー106,107は2:1の相対速度で移動するよう
になっている。この光学ユニツトはDCサーボモータ109
によってPLL制御をかけながら一定速度で左から右へ移
動する。この移動速度は往路では倍率に応じて90mm/sec
から360mm/secまで可変であり、復路では常に630mm/sec
である。この光学ユニツトの移動する副走査方向Aに直
交する主走査ラインを撮像素子により16pel/mmの解像度
で読取りながら光学ユニツトを左端から右端まで往動さ
せた後、再び左端まで移動させて1回の走査を終える。
尚原稿を移動させつつ読取ることも可能で、それにより
読取に要する総時間を短縮できる。
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings. FIG. 1 is a schematic diagram of a document reading apparatus to which the present invention can be applied. A line image sensor 103 such as a CCD is used to read the image information of the document 102 placed on the document table 101 and held by the document cover 110.
The light is reflected on the surface 102 and is imaged on the image sensor 103 by the lens 108 via the mirrors 105, 106 and 107. The light source 104, the mirror 105, and the mirrors 106, 107 move at a relative speed of 2: 1. This optical unit is a DC servomotor 109
Moves from left to right at a constant speed while applying PLL control by. This moving speed is 90 mm / sec depending on the magnification in the outward path
To 360 mm / sec, and always 630 mm / sec on the return trip
Is. While scanning the main scanning line orthogonal to the moving sub-scanning direction A of this optical unit with the image sensor at a resolution of 16 pel / mm, the optical unit is moved forward from the left end to the right end, and then moved to the left end again. Finish the scan.
It is also possible to read the original while moving it, and thus the total time required for reading can be shortened.

第2図に撮像素子103からの画信号を処理する回路の
概略のブロツク図を示す。撮像素子103で読取られた画
信号VDはA/Dコンバータ201で6ビツトのデジタル信号に
変換され、ラツチ202を介してサンプリングクロツクSCL
に同期してラツチ203,コンパレータ204・207,ラツチ205
・208に送られる。
FIG. 2 shows a schematic block diagram of a circuit for processing an image signal from the image sensor 103. The image signal V D read by the image sensor 103 is converted into a 6-bit digital signal by the A / D converter 201, and the sampling clock SCL is supplied via the latch 202.
Latch 203, comparators 204 and 207, latch 205 in synchronization with
・ Sent to 208.

コンパレータ204ではラツチ202から送られてきた6ビ
ツトの画信号とラツチ203から送られてきた1クロツク
前の6ビツトの画信号を比較して、もしラツチ202から
送られてきた新しい画信号の方が小さければ、アンドゲ
ート206へコンパレート出力を出す。アンドゲート206は
コンパレータ204からのコンパレート出力をサンプリン
グクロツクSCLと同期させてラツチ205へ送る。
The comparator 204 compares the image signal of 6 bits sent from the latch 202 with the image signal of 6 bits one clock before sent from the latch 203, and if the new image signal sent from the latch 202 is compared, If is smaller, the comparator output is output to the AND gate 206. The AND gate 206 sends the comparator output from the comparator 204 to the latch 205 in synchronization with the sampling clock SCL.

コンパレータ207ではラツチ202から送られてきた6ビ
ットの画信号とラツチ203から送られてきた1クロツク
前の6ビツトの画信号を比較して、もしラツチ202から
送られてきた新しい画信号の方が大きければアンドゲー
ト209へコンパレート出力を出す。アンドゲート209はコ
ンパレータ207からのコンパレート出力をサンプリング
クロツクSCLと同期させてラツチ208へ送る。
The comparator 207 compares the 6-bit image signal sent from the latch 202 with the 6-bit image signal one clock before sent from the latch 203, and if the new image signal sent from the latch 202 If is larger, a comparator output is output to the AND gate 209. The AND gate 209 sends the comparator output from the comparator 207 to the latch 208 in synchronization with the sampling clock SCL.

ラツチ205,208はコンパレート出力を受けると、ラツ
チ202から送られてきた画信号をCPU211へ送る。又、ラ
ツチ205の画信号を再びコンパレータ204,207に送り次の
信号と比較する。次の画信号がより小であれば、ラツチ
202はそのレベルに変更され、ラツチ208は前のレベルを
保持する。
Upon receiving the comparator output, the latches 205 and 208 send the image signal sent from the latch 202 to the CPU 211. Also, the image signal of the latch 205 is sent again to the comparators 204 and 207 and compared with the next signal. If the next image signal is smaller, the latch
202 is changed to that level and the latch 208 retains the previous level.

又、アンドゲート206,209にはコンパレート出力とサ
ンプリングクロツクSCLの他に撮像素子103からの画信号
の有効区間を示すイネーブル信号ENが入り、主走査ライ
ン毎の所定区間の画信号のコンパレート結果をラツチ20
5,208からCPU211に送るようになっている。CPU211は、
主走査ライン同期信号MSに同期してラツチ205,208から
の画信号をとりこむことで、ラツチ205からは主走査ラ
インの最も低い濃度レベル(以下白ピークと呼ぶ)ラツ
チ206からは最も高い濃度レベル(以下黒ピークと呼
ぶ)を検出できる。CPU211は各ライン毎に検出した白ピ
ークと黒ピークをもとに後述するアルゴリズムでスライ
スレベルを決定し、コンパレータ210に送る。コンパレ
ータ210ではラツチ203からの画信号とCPU211からのスラ
イスレベルを比較し2値化信号VIDEOを生成する。尚コ
ンパレータ210の代りに2値化出力データROMを設け、ラ
ツチ205,208による認識に基づいてROMのパターンをCPU2
11により選択し、そのパターンをラツチ203からのデー
タによりアドレスして対応する2値化データを出力させ
ることもできる。この場合デイザパターンを格納したRO
Mによって中間調を2値で再現することが可能となる。
信号VIDEOは不図示のプリンタのラインメモリに記憶さ
れ、レーザビーム等を変調してプリント像を得ることが
でき、又、MODEM変調して回線送信することができる。
Further, the AND gates 206 and 209 receive the enable signal EN indicating the effective section of the image signal from the image sensor 103 in addition to the comparator output and the sampling clock SCL, and the comparison result of the image signal in the predetermined section for each main scanning line. Latch 20
It is designed to send from 5,208 to CPU211. CPU211 is
By taking in the image signals from the latches 205 and 208 in synchronization with the main scanning line synchronization signal MS, the lowest density level of the main scanning line from the latch 205 (hereinafter referred to as the white peak) and the highest density level from the latch 206 (hereinafter Black peak). The CPU 211 determines the slice level by an algorithm described later based on the white peak and the black peak detected for each line and sends it to the comparator 210. The comparator 210 compares the image signal from the latch 203 with the slice level from the CPU 211 to generate a binarized signal VIDEO. A binarized output data ROM is provided instead of the comparator 210, and the ROM pattern is read by the CPU2 based on the recognition by the latches 205 and 208.
It is also possible to select by 11 and address the pattern with the data from the latch 203 to output the corresponding binary data. In this case, RO that stores the dither pattern
M makes it possible to reproduce halftones in binary.
The signal VIDEO is stored in a line memory of a printer (not shown), a laser beam or the like can be modulated to obtain a print image, and MODEM modulation can be performed for line transmission.

第3図は原稿読取装置(第1図)の原稿台101上に原
稿が置かれている状態を示す。この場合原稿台101上の
基準座標SPから主走査方向をX,副走査方向をYとした時
の4点の座標(X1,Y1),(X2,Y2),(X3,Y3),(X4,
Y4)を光学系を前走査して検出する。原稿の置かれてい
る領域外の画像データは必ず黒データになる様に、原稿
カバー110(第1図)が鏡面処理されている。前走査は
ガラス面全域を行うべく、主走査、副走査を行う。
FIG. 3 shows a state where a document is placed on the document table 101 of the document reading device (FIG. 1). In this case, four coordinates (X 1 , Y 1 ), (X 2 , Y 2 ), (X 3 , Y 3 ), (X 4 ,
Y 4 ) is detected by pre-scanning the optical system. The document cover 110 (FIG. 1) is mirror-finished so that the image data outside the area where the document is placed is always black data. In the pre-scanning, main scanning and sub-scanning are performed in order to scan the entire glass surface.

第4図の回路図に前記座標を検出する論理を示す。前
走査により2値化された画像データVIDEOはシフト・レ
ジスタ301に8ビツト単位で入力される。8ビツト入力
が完了した時点で、ゲート回路302は8ビツトデータの
全てが白画像かのチエツクを行い、Yesならば信号ライ
ン303に1を出力する。原稿走査開始後、最初の8ビツ
ト白が現われた時F/F304がセツトする。このF/FはVSYNC
(画像先端信号で原稿を走査開始する位置検知により発
生する)によって予めリセツトされている。以後、次の
VSYNCの来るまでセツトし放しである。F/F304がセツト
した時点でラツチF/F305にその時の主走査カウンタ351
(サンプルクロツクをダウンカウントし、HSYNCでリセ
ツトされる)の値がロードされる。これがX1座標値にな
る。又ラツチ306にその時の副走査カウンタ350の値がロ
ードされる。これがY1座標値になる。従ってP1(X1,
Y1)が求まる。
The circuit diagram of FIG. 4 shows the logic for detecting the coordinates. The image data VIDEO binarized by the pre-scan is input to the shift register 301 in units of 8 bits. When 8-bit input is completed, the gate circuit 302 checks whether all 8-bit data are white images, and if Yes, outputs 1 to the signal line 303. The F / F 304 is set when the first 8-bit white appears after scanning the original. This F / F is VSYNC
It is reset in advance by (generated by detecting the position where the scanning of the original starts with the image leading edge signal). After that, the next
It is set and released until VSYNC comes. When the F / F304 is set, the latch F / F305 is set to the main scan counter 351 at that time.
The value of (counting down the sample clock and resetting with HSYNC) is loaded. This becomes the X 1 coordinate value. Further, the latch 306 is loaded with the value of the sub-scanning counter 350 at that time. This is the Y 1 coordinate value. Therefore P 1 (X 1 ,
Y 1 ) is obtained.

又信号303に1が出力する度に主走査からの値をラツ
チ307にロードする。この値は直ちに次の8ビツトがシ
フト・レジスタ301に入る迄にラツチ308に記憶される。
最初の8ビツトの白が現われた時の主走査からの値がラ
ツチ308にロードされると、ラツチ310(これはVSYNC時
点で“0"にされている)のデータとコンパレータ309で
大小比較される。もしラツチ308のデータの方が大なら
ばラツチ308のデータすなわちラツチ307のデータがラツ
チ310にロードされる。又、この時副走査カウンタの値
がラツチ311にロードされる。この動作は次の8ビツト
がシフト・レジスタ301に入る迄に処理される。この様
にラツチ308とラツチ310のデータを全画像領域について
行なえば、ラツチ310には原稿領域X方向の最大値が残
り、この時のY方向の座標がラツチ311に残ることにな
る。これがP2(X2,Y2)座標である。
Whenever 1 is output to the signal 303, the latch 307 is loaded with the value from the main scan. This value is immediately stored in latch 308 until the next 8 bits enter shift register 301.
When the value from the main scan when the first 8 bits of white appears is loaded into the latch 308, the data of the latch 310 (which is set to "0" at the time of VSYNC) is compared with the comparator 309. It If the data of the latch 308 is larger, the data of the latch 308, that is, the data of the latch 307 is loaded into the latch 310. At this time, the value of the sub-scanning counter is loaded in the latch 311. This operation is processed until the next 8 bits enter the shift register 301. If the data of the latches 308 and 310 is thus obtained for the entire image area, the maximum value in the X direction of the original area remains in the latch 310, and the coordinates in the Y direction at this time remain in the latch 311. This is the P 2 (X 2 , Y 2 ) coordinate.

F/F312は各主走査ライン毎に最初に8ビツト白が現わ
れた時点でセツトするF/Fで水平同期信号HSYNC(原稿1
ライン走査毎に発生)でリセツトされ最初の8ビツト白
でセツトし、次のHSYNCまで保持する。このF/F312がセ
ツトする時点で主走査カウンタの値をラツチ313にセツ
トし、次のHSYNC迄の間にラツチ314にロードする。そし
てラツチ315とコンパレータ316で大小比較される。ラツ
チ315にはVSYNC発生時点でX方向のmax値がリセツトさ
れている。もしラツチ315のデータの方がラツチ314のデ
ータより大きいならば信号317がアクテイブになりラツ
チ314すなわちラツチ313のデータがラツチ315にロード
される。この動作はHSYNC−HSYNC間で行われる。以上の
比較動作を全画像領域について行うとラツチ315には原
稿座標のX方向の最小値が残ることになる。これがX3
ある。又、信号ライン317が出力する時、副走査からの
値がラツチ318にロードされる。これがY3になる。
The F / F312 is a horizontal sync signal HSYNC (original 1) which is a F / F which is set at the time when 8 bit white first appears for each main scanning line.
It is reset at each line scan) and is set at the first 8 bit white, and is held until the next HSYNC. When the F / F 312 is set, the value of the main scanning counter is set in the latch 313 and loaded in the latch 314 until the next HSYNC. Then, the magnitude is compared by the latch 315 and the comparator 316. In the latch 315, the maximum value in the X direction is reset when VSYNC occurs. If the data in latch 315 is greater than the data in latch 314, signal 317 becomes active and latch 314, or the data in latch 313, is loaded into latch 315. This operation is performed between HSYNC and HSYNC. When the above comparison operation is performed on the entire image area, the minimum value of the document coordinates in the X direction remains in the latch 315. This is X 3 . Also, as signal line 317 outputs, the value from the sub-scan is loaded into latch 318. This becomes Y 3 .

ラツチ319と320は全画像領域において8ビツト白が現
われる度にその時の主走査カウンタの値と副走査カウン
タの値がロードされる。従って、原稿前走査完了時では
最後に8ビット白が現われた時点でのカウント値がカウ
ンタに残っていることになる。これが(X4,Y4)であ
る。
The latches 319 and 320 are loaded with the values of the main-scanning counter and the sub-scanning counter at each time when 8-bit white appears in the entire image area. Therefore, when the original pre-scanning is completed, the count value at the time when 8-bit white finally appears remains in the counter. This is (X 4 , Y 4 ).

以上の8つのラツチ(6,11,20,18,5,10,15,19)のデ
ータラインは第2図のCPUのバスラインBUSに接続され、
CPUは前走査終了時にこのデータを読み込むことにな
る。
The data lines of the above eight latches (6,11,20,18,5,10,15,19) are connected to the bus line BUS of the CPU shown in FIG.
The CPU will read this data at the end of the previous scan.

第5図は原稿読取りシーケンスのフローチヤートで、
第2図ROMにそのプログラムが格納されCPUにより実行さ
れる。
Figure 5 is a flow chart of the document reading sequence.
Fig. 2 The program is stored in ROM and executed by the CPU.

まずステツプ501において光学系は第1図の左端から
右端まで往動走査を行なって第4図で述べたように原稿
台上の原稿の座標を検出する。
First, in step 501, the optical system performs forward scanning from the left end to the right end in FIG. 1 to detect the coordinates of the document on the document table as described in FIG.

次にステツプ502において2値化のためのスライスレ
ベル決定のためのピーク値をサンプルすべきエリアを、
ステツプ501で検出した座標データから算出する。例え
ば第3図の斜線部のような原稿について検出した座標か
らこの原稿のピーク値サンプリングエリアとしてY3,Y2
及びX1,X4で囲まれる長方形エリアを選択することをさ
せている。それは通常原稿は原稿台に極力平行に載置さ
れるものであり、またたとえ第3図のように傾いて載置
されても原稿外の不要な情報をひろう可能性がないから
である。尚他の方法でサンプリングエリアを決定するこ
とも可能である。
Next, in step 502, the area where the peak value for sampling the slice level for binarization should be sampled,
It is calculated from the coordinate data detected in step 501. For example, from the coordinates detected for an original document such as the shaded area in FIG. 3 , Y 3 , Y 2
And a rectangular area surrounded by X 1 and X 4 is selected. This is because the original is normally placed as parallel as possible on the original table, and even if the original is inclined and placed as shown in FIG. 3, there is no possibility of obtaining unnecessary information outside the original. It is also possible to determine the sampling area by another method.

第6図は走査経路を示すもので、原稿座標検出を終え
ると光学系は副走査方向Ymaxの点にありピーク値サンプ
リング開始点Y2と終了点Y3が分っているので、ステツプ
504と505及び506を実行するスケジユールをたてること
ができる。すなわちステツプ503において往動を開始し
たらCPU211は距離(Ymax−Y2)相当分だけ主走査ライン
同期信号を数えた後、前述した白ピーク値/黒ピーク値
の検出を開始し、さらにその点から距離(Y2−Y3)相当
分だけ主走査ライン同期信号をカウントした後、ピーク
値の検出を終了し、さらに距離Y3相当分だけ主走査ライ
ン同期信号をカウントした後復動を停止する。
FIG. 6 shows the scanning path. When the document coordinate detection is completed, the optical system is at the point in the sub-scanning direction Ymax, and the peak value sampling start point Y 2 and end point Y 3 are known.
You can schedule a schedule to perform 504, 505, and 506. That is, when the forward movement is started in step 503, the CPU 211 counts the main scanning line synchronization signals for the distance (Ymax-Y 2 ) and then starts the above-mentioned white peak value / black peak value detection. After detecting the main scanning line synchronization signal for the distance (Y 2 −Y 3 ), detection of the peak value is terminated, and the main scanning line synchronization signal for the distance Y 3 is counted, and then the backward movement is stopped. .

またステツプ504においてピーク値検出開始時には、
先に述べたイネーブル信号ENを第6のように検出座標
X1,X4に対応して設定しておく。
When the peak value detection is started in step 504,
The enable signal EN described above is detected as in the sixth detection coordinate.
Set in correspondence with X 1 and X 4 .

以上の動作で原稿台上の任意の位置にある原稿内の主
走査ライン毎の画像濃度の白ヒーク値と黒ピーク値を検
出できる。
With the above operation, it is possible to detect the white heak value and the black peak value of the image density for each main scanning line in the document at an arbitrary position on the document table.

次に2値化のためのスライスレベル決定のアルゴリズ
ムについて説明する。前述した手段によりCPU211は原稿
領域内から各主走査ライン毎に黒ピーク値と白ピーク値
をとりこむ。そしてRAMに格納する。
Next, an algorithm for determining a slice level for binarization will be described. By the means described above, the CPU 211 takes in the black peak value and the white peak value for each main scanning line from the original area. Then store it in RAM.

今、第i主走査ライン上の黒ピークをBPi、白ピーク
をWPiとすると画像データは6ビツト値であるから、各
々00(HEX)から3F(HEX)までのいずれかの値をとり、
かつBPi≧WPiである。RAM内に用意された64×2バイト
の黒ピークヒストグラム用エリアと64×2バイトの白ピ
ークヒストグラム用エリアがある。これは64階調レベル
で示されるピークレベルBPi,WPiの頻度数を64階調レベ
ルの各々に対応したエリアに記憶する。CPUは、検出し
たデータBPiとWPiに対応した2バイトエリアの内容(頻
度数)を、各々1つずつカウントアップして、次の主走
査ライン同期信号MSを待ち、第i+1ラインからのデー
タBPi+1とWPi+1をとりこんで、再びヒストグラムの
対応エリアの頻度数をカウントアツプして以下ステツプ
505のサンプル終了まで続ける。但しこの時、検出したB
PiとWPiを必ずしもヒストグラムデータとして用いると
は限らない。たとえば主走査ライン方向に一様な濃度の
帯があれば、たとえそれがまっ白であろうとまっ黒であ
ろうとまた他の濃度でもそこからのサンプル値BPiとWPi
はほとんど等しいものになり地肌と情報を区別するデー
タを必要とする2値化のための情報としてはふさわしく
ない。その為、CPUはBPi−WPi<αの時にはBPi,WPiはヒ
ストグラムデータとして用いず捨ててしまい、BPi+1,W
Pi+1を待つことになる。このαは経験的に設定される
定数で例えば4とか3である。またステツプ504により
サンプル開始する以前に全ヒストグラムエリア64×2×
2バイトを0クリアしておくのは当然のことである。
Now, assuming that the black peak on the i-th main scanning line is BPi and the white peak is WPi, the image data has 6-bit value, so each takes any value from 00 (HEX) to 3F (HEX),
And BPi ≧ WPi. There is a 64 x 2 byte black peak histogram area and a 64 x 2 byte white peak histogram area prepared in RAM. This stores the frequency number of the peak levels BPi and WPi represented by the 64 gray levels in the area corresponding to each of the 64 gray levels. The CPU counts up the content (frequency) of the 2-byte area corresponding to the detected data BPi and WPi by one, waits for the next main scanning line synchronization signal MS, and waits for the data BPi + 1 from the (i + 1) th line. And WPi + 1 are taken in, the frequency of the corresponding area of the histogram is counted up again, and the following step is performed.
Continue until the end of the 505 sample. However, at this time, detected B
Pi and WPi are not always used as histogram data. For example, if there is a uniform density band in the main scanning line direction, whether it is pure white or pure black, and other density, sample values BPi and WPi
Are almost equal to each other and are not suitable as information for binarization which requires data for distinguishing information from the background. Therefore, when BPi-WPi <α, the CPU discards BPi and WPi without using them as histogram data, and BPi + 1, W
I will wait for Pi + 1. This α is a constant that is set empirically and is, for example, 4 or 3. In addition, the whole histogram area 64 × 2 ×
It is natural to clear 2 bytes to 0.

この結果ステツプ505でサンプル終了した時には、例
えば第7図に示すようなヒストグラムが黒ピーク/白ピ
ークの各々について構成されている。サンプルを終了し
た後、光学系がスタート地点に戻り、ステツプ506で復
動を終了したら、次にステツプ507でスライスレベルを
設定する。まず各ヒストグラムの度数のピークを示す濃
度レベルを各々の代表値と考える。これは、ヒストグラ
ムの各レベルのカウント結果を各々比較し、最大カウン
ト結果を有する濃度レベルを最大頻度レベルとする。
As a result, when the sampling is completed at step 505, a histogram as shown in FIG. 7 is formed for each of the black peak / white peak. After the sample is finished, the optical system returns to the start point, and when the returning movement is completed at step 506, then the slice level is set at step 507. First, the density level indicating the frequency peak of each histogram is considered as a representative value. This compares the count results of each level of the histogram, and sets the density level having the maximum count result as the maximum frequency level.

第7図によれば原稿情報部の濃度を36H、原稿地肌部
の濃度を0AHとし、例えばその中央値20Hをスライスレベ
ルとする。尚このスライスレベルの決定方式として読取
データの他の所定レベルの頻度に基づいて決定すること
も可能である。又スライスレベルだけでなくROMに格納
したデイザパターンや出力パターンを選択決定すること
もできる。又階調補正のためのγ変換特性を選択するこ
ともできるし、単に露光ランプの明るさを補正して、適
正の濃度のコピーが得られるようにできる。即ち黒ピー
ク、白ピークが1F付近であれば中間の階調が多いことが
分かるので、カブリの少ない良質の中間調を再現できる
ようγ等の選択できる。
According to FIG. 7, the density of the manuscript information part is 36H, the density of the background part of the manuscript is 0AH, and the median value 20H is the slice level. As a method of determining the slice level, the slice level can be determined based on the frequency of another predetermined level of the read data. Further, not only the slice level but also the dither pattern and output pattern stored in the ROM can be selected and determined. Further, the γ conversion characteristic for gradation correction can be selected, or the brightness of the exposure lamp can be simply corrected so that a copy having an appropriate density can be obtained. That is, since it can be seen that there are many intermediate gradations when the black peak and the white peak are in the vicinity of 1F, it is possible to select γ and the like so as to reproduce a high-quality intermediate gradation with less fog.

尚、単に検出したスライスレベルやピーク値又は第7
図の分布の表示をすることもできる。最後にステツプ50
8で原稿読取スキヤンを行なって動作を終了する。
It should be noted that the simply detected slice level or peak value or the seventh
It is also possible to display the distribution of the figure. Finally step 50
At 8, the document is scanned and the operation ends.

以上の様にして求めたスライスレベルROMパターン
は、同一の原稿から連続して複数回読取ってコピーする
場合は保持させ、所定数のコピー終了後、一定時間して
キヤンセルする。又、新たな原稿を読取る場合に限りス
ライスレベル、ROMパターをキヤンセルするもので、そ
してその後新たな予備走査を行なう。尚予備走査は必要
に応じて選択できるもので、予備走査なしで、コピー速
度を高めるようにすることも可能である。
The slice level ROM pattern obtained as described above is retained when the same original is read and copied a plurality of times in succession, and after a predetermined number of copies is completed, the slice level ROM pattern is canceled for a certain period of time. The slice level and the ROM pattern are canceled only when a new original is read, and then a new preliminary scan is performed. The preliminary scanning can be selected as necessary, and the copying speed can be increased without the preliminary scanning.

第8図は原稿601をベルト600によりガラス101に自動
セツトし読取終了後自動排出するものである。この場合
走査部200をAの点に予じめセツトした状態で、原稿601
をベルトで、露光位置にセツトする為に移動させ、200
の停止状態で原稿を移動しつつ読取ることができる。そ
のときの読取データから原稿の巾、長さを認識させ必要
な領域を認識する。そしてAの点から走査移動部を左へ
復動させて、原稿のレベル判定を行なう。左端に送ると
往動を開始し、必要かつ有効な原稿領域のレベル認識に
基づく2値化を行なう。
In FIG. 8, the original 601 is automatically set on the glass 101 by the belt 600 and automatically discharged after the reading is completed. In this case, with the scanning unit 200 set in advance to the point A, the original 601
Move the belt with the belt to set the exposure position,
It is possible to read the document while moving it while the document is stopped. The width and length of the document are recognized from the read data at that time, and the necessary area is recognized. Then, the scanning movement unit is moved back to the left from the point A, and the level of the original is determined. When it is sent to the left end, the forward movement is started, and binarization is performed based on the level recognition of the necessary and effective document area.

尚、第8図の場合認識に基づく2値化を必要としない
場合、Aの点に走査部を停止した状態で移動する原稿の
読取ったデータをそのまま所定のスライスレベルにより
2値化して出力することにより、読取に要する時間を短
縮することができる。
In the case of FIG. 8, if the binarization based on the recognition is not required, the read data of the original moving at the point A with the scanning unit stopped is binarized and output as it is according to a predetermined slice level. As a result, the time required for reading can be shortened.

(効果) 以上説明した如く本発明によれば原稿領域内の1ライ
ン内の画像信号の最大値と最小値を検出する検出処理を
原稿領域内の複数のラインに対し実行することで、最大
値及び最小値のヒストグラムを形成し、そのヒストグラ
ムに基づき前記画像信号の階調補正のためのガンマ変換
特性を選択するものであり、原稿の広い範囲を参照して
原稿の濃度を精度良く検出することができるとともに、
画像信号の階調変換のために最適なガンマ変換特性を選
択することができる。
(Effect) As described above, according to the present invention, the maximum value can be obtained by performing the detection process for detecting the maximum value and the minimum value of the image signal in one line in the original area on a plurality of lines in the original area. And a minimum value histogram is formed, and a gamma conversion characteristic for gradation correction of the image signal is selected based on the histogram, and the density of the document is accurately detected by referring to a wide range of the document. As well as
It is possible to select the optimum gamma conversion characteristic for gradation conversion of the image signal.

【図面の簡単な説明】[Brief description of drawings]

第1図は原稿読取装置の概略図、 第2図は画像信号処理回路のブロツク図、 第3図は原稿台上に置かれた原稿と位置座標の関係を示
す図、 第4図は位置座標検出回路図、 第5図は画像読取シーケンスのフロー図、 第6図は原稿位置とシーケンスの関係を示す図、 第7図は黒ピークヒストグラムと白ピークヒストグラム
の例を示す図、 第8図は原稿読取装置の他の概略図であり、図中104は
ランプ、103は撮像素子、101は原稿台である。
FIG. 1 is a schematic diagram of a document reading device, FIG. 2 is a block diagram of an image signal processing circuit, FIG. 3 is a diagram showing a relation between a document placed on a document table and position coordinates, and FIG. Detection circuit diagram, FIG. 5 is a flow chart of the image reading sequence, FIG. 6 is a diagram showing the relationship between the document position and the sequence, FIG. 7 is a diagram showing examples of a black peak histogram and a white peak histogram, and FIG. 6 is another schematic view of the document reading apparatus, in which 104 is a lamp, 103 is an image sensor, and 101 is a document table.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】原稿を読取り、画像信号を出力するための
読取り手段と、 上記読取り手段からの画像信号に基づき原稿の存在する
領域を認識する認識手段と、 上記認識手段により認識した原稿の存在する領域内で1
ライン内の画像信号の最大値と最小値を検出する検出手
段と、 上記1ライン内の画像信号の最大値と最小値の検出処理
を原稿領域内の複数のラインに対し実行し最大値及び最
小値のヒストグラムを形成する形成手段と、 上記形成手段におけるヒストグラムの形成終了後、上記
ヒストグラムに基づき上記画像信号の階調変換のための
ガンマ変換特性を選択する選択手段とを有することを特
徴とする画像処理装置。
1. A reading means for reading an original and outputting an image signal, a recognizing means for recognizing an area where the original exists based on the image signal from the reading means, and an existence of the original recognized by the recognizing means. Within the area to
Detecting means for detecting the maximum and minimum values of the image signal in the line, and the maximum and minimum values of the image signal in the one line are detected for a plurality of lines in the original area. And a selecting means for selecting a gamma conversion characteristic for gradation conversion of the image signal based on the histogram after the formation of the histogram by the forming means. Image processing device.
JP61213321A 1985-09-11 1986-09-10 Image processing device Expired - Lifetime JP2541937B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US77501385A 1985-09-11 1985-09-11
US775013 1996-12-27

Publications (2)

Publication Number Publication Date
JPS62115973A JPS62115973A (en) 1987-05-27
JP2541937B2 true JP2541937B2 (en) 1996-10-09

Family

ID=25103051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61213321A Expired - Lifetime JP2541937B2 (en) 1985-09-11 1986-09-10 Image processing device

Country Status (1)

Country Link
JP (1) JP2541937B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793679B2 (en) * 1989-03-01 1995-10-09 三菱電機株式会社 Image data binarization circuit
JP2652303B2 (en) * 1992-06-26 1997-09-10 内田油圧機器工業株式会社 Horsepower control device for variable displacement hydraulic pump with two-stage cutoff function

Also Published As

Publication number Publication date
JPS62115973A (en) 1987-05-27

Similar Documents

Publication Publication Date Title
US4786976A (en) Image processing apparatus
US4924509A (en) Image processing apparatus
US4905294A (en) Image processing apparatus
US5065257A (en) Image processing apparatus with means for compensating for dust., etc., on an original
JPS60124173A (en) Image processor
US4817174A (en) Image processing apparatus
US5086486A (en) Apparatus for reading a document and processing the image
JP2721334B2 (en) Image binarization processing device
JP3262326B2 (en) Image processing apparatus and image processing method
JP2541937B2 (en) Image processing device
US5228099A (en) Apparatus for reading a document and processing the image
JP2946520B2 (en) Image reading device
JPH05136995A (en) Simple binary-coding and false halftone mixture processing method and device for image data
JPH084311B2 (en) Image processing device
JPH0582782B2 (en)
JPH0570975B2 (en)
JPH0364268A (en) Color copying device
JP4074397B2 (en) Image processing device
JP2555199B2 (en) Image reading method
JPH0326591B2 (en)
JPH0636553B2 (en) Image processing device
JPH078005B2 (en) Image processing device
JPS61262375A (en) Processing system for half tone image
JPS63196163A (en) Original processor
JPS63256055A (en) Picture processing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term