JP2003051944A - Image processing method, image processing system, program and storage medium - Google Patents

Image processing method, image processing system, program and storage medium

Info

Publication number
JP2003051944A
JP2003051944A JP2001239139A JP2001239139A JP2003051944A JP 2003051944 A JP2003051944 A JP 2003051944A JP 2001239139 A JP2001239139 A JP 2001239139A JP 2001239139 A JP2001239139 A JP 2001239139A JP 2003051944 A JP2003051944 A JP 2003051944A
Authority
JP
Japan
Prior art keywords
density
correction curve
data
density correction
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001239139A
Other languages
Japanese (ja)
Inventor
Yoshihiko Fukawa
仁彦 府川
Yoichiro Makino
洋一郎 牧野
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 JP2001239139A priority Critical patent/JP2003051944A/en
Priority to CN02127606.4A priority patent/CN1203657C/en
Priority to US10/211,520 priority patent/US7016534B2/en
Priority to EP02255533A priority patent/EP1289266A3/en
Publication of JP2003051944A publication Critical patent/JP2003051944A/en
Priority to US11/254,639 priority patent/US7113639B2/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing system that applies density correction for optimizing contrast to read image data. SOLUTION: The image processing system generates a density distribution histogram from read image data, generates a density correction curve on the basis of the ratio of data of both the light/dark extremes and corrects the density.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、イメージセンサを
用いて原稿を読み取り、読み取った画像データに対して
濃度補正処理を施す画像読取方法及びシステム並びにそ
のプログラム、記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading method and system for reading an original using an image sensor and performing density correction processing on the read image data, a program therefor, and a recording medium.

【0002】[0002]

【従来の技術】従来、画像読取装置によって読み取られ
た画像は、標準白色部材を読み取ることで予め用意され
ている補正データを基に光源の配光バラツキ等を補正す
るシェーディング補正処理を施し、モニタディスプレイ
のガンマ特性に合わせた画像読取装置側のガンマテーブ
ルを用いてガンマ補正処理を行い、ディスプレイに表示
していた。
2. Description of the Related Art Conventionally, an image read by an image reading device is subjected to shading correction processing for correcting light distribution variation of a light source based on correction data prepared in advance by reading a standard white member, and a monitor is provided. Gamma correction processing was performed using a gamma table on the image reading device side that matches the gamma characteristics of the display, and the result was displayed on the display.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、読取原
稿が全体的に明るい原稿であったり、反対に全体的に暗
い原稿であったり、あるいは明暗が不明確な原稿であっ
たりすると、それに従い読み取り画像も明るい画像や暗
い画像、もしくはグレーかかった画像になった。例えば
文字原稿の場合には非常に読みにくい文字になってしま
い、OCR(光学的文字認識)の認識率を低下させる要
因にもなっていた。
However, if the read original is an entirely bright original, conversely an entirely dark original, or an original with unclear light and dark, the read image is read accordingly. Became a bright image, a dark image, or an image with gray. For example, in the case of a character original, the characters become very difficult to read, which has also been a factor of reducing the recognition rate of OCR (optical character recognition).

【0004】このような読取原稿の濃度特性に応じてガ
ンマ補正処理を行うものとして、特開平4−35170
号公報に開示されている。しかし、濃度特性の情報はユ
ーザが設定する必要があり、また画像データのコントラ
ストを高めるようなガンマ補正手段に関する提案ではな
い。
Japanese Patent Laid-Open No. 4-35170 discloses a method for performing gamma correction processing according to the density characteristics of a read document.
It is disclosed in the publication. However, the information on the density characteristic needs to be set by the user, and it is not a proposal regarding a gamma correction means for enhancing the contrast of image data.

【0005】本発明の目的は上述のような点に鑑みて、
明暗の不明確な画像データに対しても、コントラストを
最適化したガンマ補正処理を施すことができる画像読取
装置を提供することにある。
In view of the above points, the object of the present invention is to
An object of the present invention is to provide an image reading apparatus that can perform gamma correction processing with optimized contrast even on image data with unclear brightness and darkness.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明は、以下の様な構成を有する。
In order to achieve the above object, the present invention has the following constitution.

【0007】[請求項1]原稿からの光を読取って画像
データを生成する工程と、前記画像データから濃度分布
のヒストグラムを作成する工程と、前記画像データの全
データ数に対する濃度分布の明暗両端寄りのデータ数の
割合に基づいて濃度補正曲線を生成する工程と、前記濃
度補正曲線で画像データの濃度補正を行う工程とを有す
る画像読取方法。
[Claim 1] A step of generating image data by reading light from a document, a step of creating a histogram of the density distribution from the image data, and a light and dark end of the density distribution with respect to the total number of data of the image data. An image reading method comprising: a step of generating a density correction curve based on the ratio of the number of data points closer to each other; and a step of correcting the density of image data with the density correction curve.

【0008】[請求項2]請求項1に記載の濃度補正曲
線を生成する工程は、前記画像データのシャドウポイン
トとハイライトポイントの中間値を基準にして濃度を複
数領域に分割し、各領域に含まれる前記濃度分布のヒス
トグラムのデータ数に基づいて前記濃度補正曲線を作成
することを特徴とする。
[Claim 2] In the step of generating the density correction curve according to claim 1, the density is divided into a plurality of areas based on an intermediate value between the shadow point and the highlight point of the image data, and each area is divided. The density correction curve is created based on the number of data of the histogram of the density distribution included in.

【0009】[請求項3]請求項2に記載の濃度補正曲
線を生成する工程は、前記中間値より暗い濃度レベルの
信号はより暗いレベルに、前記中間値より明るい濃度レ
ベルの信号はより明るくなるようなS字形状の濃度補正
曲線を生成することを特徴とする。
[Claim 3] In the step of generating the density correction curve according to claim 2, a signal of a density level darker than the intermediate value becomes a darker level, and a signal of a density level brighter than the intermediate value becomes brighter. It is characterized in that an S-shaped density correction curve such that

【0010】[請求項4]請求項3に記載の濃度補正曲
線を生成する工程は、前記明暗両端寄りのデータ数の割
合が大きい場合には曲率の小さいS字形状の濃度補正曲
線を、前記割合が小さい時には曲率の大きいS字形状の
濃度補正曲線を生成することを特徴とする。
[Claim 4] In the step of generating the density correction curve according to claim 3, the S-shaped density correction curve having a small curvature is generated when the ratio of the number of data near the light and dark ends is large. When the ratio is small, an S-shaped density correction curve having a large curvature is generated.

【0011】[請求項5]請求項1に記載の濃度分布の
ヒストグラムを作成する工程は、前記原稿がカラー画像
の場合には、前記画像データのR,G,Bの各濃度デー
タを合成した1つの濃度分布のヒストグラムを作成する
ことを特徴とする。
[Claim 5] In the step of creating the histogram of the density distribution according to claim 1, when the original is a color image, each density data of R, G and B of the image data is combined. It is characterized in that a histogram of one density distribution is created.

【0012】[請求項6]請求項1に記載の濃度補正を
行う工程は、前記原稿がカラー画像の場合には、前記画
像データのR,G,B各濃度データに対して共通の濃度
補正曲線を用いることを特徴とする。
[Claim 6] In the step of performing the density correction according to claim 1, when the original is a color image, the density correction common to the R, G and B density data of the image data is performed. It is characterized by using a curve.

【0013】[請求項7]原稿からの光を読取って画像
データを生成する手段と、前記画像データから濃度分布
のヒストグラムを作成する手段と、前記画像データの全
データ数に対する濃度分布の明暗両端寄りのデータ数の
割合に基づいて濃度補正曲線を生成する手段と、前記濃
度補正曲線で画像データの濃度補正を行う手段とを有す
る画像読取システム。
[Claim 7] means for reading light from a document to generate image data, means for creating a histogram of the density distribution from the image data, and light and dark ends of the density distribution with respect to the total number of data of the image data. An image reading system comprising: a means for generating a density correction curve based on the ratio of the number of data points closer to each other; and a means for correcting the density of image data with the density correction curve.

【0014】[請求項8]請求項7に記載の濃度補正曲
線を生成する手段は、前記画像データのシャドウポイン
トとハイライトポイントの中間値を基準にして濃度を複
数領域に分割し、各領域に含まれる前記濃度分布のヒス
トグラムのデータ数に基づいて前記濃度補正曲線を作成
することを特徴とする。
[Claim 8] The means for generating the density correction curve according to claim 7 divides the density into a plurality of areas on the basis of an intermediate value between the shadow point and the highlight point of the image data, and each area is divided into a plurality of areas. The density correction curve is created based on the number of data of the histogram of the density distribution included in.

【0015】[請求項9]請求項8に記載の濃度補正曲
線を生成する手段は、前記中間値より暗い濃度レベルの
信号はより暗いレベルに、前記中間値より明るい濃度レ
ベルの信号はより明るくなるようなS字形状の濃度補正
曲線を生成することを特徴とする。
[Claim 9] In the means for generating the density correction curve according to claim 8, a signal of a density level darker than the intermediate value is darker and a signal of a density level brighter than the intermediate value is brighter. It is characterized in that an S-shaped density correction curve such that

【0016】[請求項10]請求項9に記載の濃度補正
曲線を生成する手段は、前記明暗両端寄りのデータ数の
割合が大きい場合には曲率の小さいS字形状の濃度補正
曲線を、前記割合が小さい時には曲率の大きいS字形状
の濃度補正曲線を生成することを特徴とする。
[Claim 10] In the means for generating the density correction curve according to claim 9, the S-shaped density correction curve having a small curvature is used when the ratio of the number of data near the light and dark ends is large. When the ratio is small, an S-shaped density correction curve having a large curvature is generated.

【0017】[請求項11]請求項7に記載の濃度分布
のヒストグラムを作成する手段は、前記原稿がカラー画
像の場合には、前記画像データのR,G,Bの各濃度デ
ータを合成した1つの濃度分布のヒストグラムを作成す
ることを特徴とする。
[Claim 11] When the original is a color image, the means for creating the histogram of the density distribution according to claim 7 synthesizes the R, G and B density data of the image data. It is characterized in that a histogram of one density distribution is created.

【0018】[請求項12]請求項7に記載の濃度補正
を行う手段は、前記原稿がカラー画像の場合には、前記
画像データのR,G,B各濃度データに対して共通の濃
度補正曲線を用いることを特徴とする。
[Claim 12] When the original is a color image, the means for performing the density correction according to claim 7 is a common density correction for the R, G and B density data of the image data. It is characterized by using a curve.

【0019】[請求項13]請求項1乃至5の一に記載
の画像読取方法をコンピュータで制御して実現するため
の、コンピュータで実行可能なプログラム。
[Claim 13] A computer-executable program for realizing the image reading method according to any one of claims 1 to 5 by controlling the computer.

【0020】[請求項14]請求項13に記載のプログ
ラムを記録した記録媒体。
[Claim 14] A recording medium on which the program according to claim 13 is recorded.

【0021】[0021]

【発明の実施の形態】以下、添付図面を参照しながら本
発明の好適な実施の形態を説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0022】図1は本発明の実施の形態に係る画像読取
装置の概略構成のブロック図であり、図2は本発明の実
施の形態に係る画像読取装置の断面図である。以下に濃
度分布を4分割することに基づいて濃度補正データを求
める場合の実施の形態について説明する。
FIG. 1 is a block diagram of a schematic configuration of an image reading apparatus according to the embodiment of the present invention, and FIG. 2 is a sectional view of the image reading apparatus according to the embodiment of the present invention. An embodiment for obtaining the density correction data based on dividing the density distribution into four will be described below.

【0023】図1、図2において、101はイメージセ
ンサであり、光源からの照射光を読取原稿202に照射
する。読取原稿202からの反射光はレンズ203を介
して撮像素子204で受光され、光電変換される。イメ
ージセンサ101を原稿に沿って副走査方向に移動さ
せ、1ライン毎にR、G、Bの線順次(または点順次)
のカラー画像を読み取る。
In FIGS. 1 and 2, reference numeral 101 denotes an image sensor, which irradiates the read original 202 with light emitted from a light source. The reflected light from the read document 202 is received by the image pickup element 204 via the lens 203 and photoelectrically converted. The image sensor 101 is moved in the sub-scanning direction along the original, and R, G, B line sequential (or dot sequential) is performed line by line.
Read the color image of.

【0024】撮像素子204にて光電変換された電気信
号は、画像読取装置201の電気基板205に送られ
る。電気基板205上には図1の102から105まで
が備えられており、イメージセンサから送られた電気信
号に対して以下の処理がなされる。AFE102はイメ
ージセンサ101より出力された電気信号にアンプ増
幅、DCオフセット補正、A/D変換等の処理を行い、
最終的に例えば12ビットのディジタル画像データを出
力するようなアナログ・プリプロセッサである。
The electric signal photoelectrically converted by the image pickup element 204 is sent to the electric substrate 205 of the image reading apparatus 201. 1 to 102 of FIG. 1 are provided on the electric board 205, and the following processing is performed on the electric signal sent from the image sensor. The AFE 102 performs processing such as amplifier amplification, DC offset correction, and A / D conversion on the electric signal output from the image sensor 101,
An analog preprocessor that finally outputs, for example, 12-bit digital image data.

【0025】シェーディング補正回路103は、読取原
稿範囲外に設置された白色基準板206をイメージセン
サ101を用いて読み取って作成された基準レベルのデ
ータをシェーディング補正データとして記憶し、この補
正データに基づいて読取原稿を読み取って生成した画像
データのシェーディング補正を行う。なお、シェーディ
ング補正データはデータ取得後外部装置106に記憶
し、スキャンする際に必要なデータを本実施形態の画像
読取装置にダウンロードして処理を行う。
The shading correction circuit 103 stores, as shading correction data, reference level data created by reading the white reference plate 206 provided outside the read original range using the image sensor 101, and based on this correction data. The shading correction of the image data generated by reading the read document is performed. The shading correction data is stored in the external device 106 after the data is acquired, and the data necessary for scanning is downloaded to the image reading device of the present embodiment and processed.

【0026】データ処理回路104は、外部装置106
からあらかじめ設定された画像読取モード(2値、24
ビット多値など)に従ったパッキング処理などを行う。
The data processing circuit 104 includes an external device 106.
Preset image reading mode (binary, 24
Packing processing according to (multi-valued bit etc.) is performed.

【0027】インターフェース回路105は、パーソナ
ルコンピュータなどの本実施形態に係る画像読取装置の
ホスト装置となる外部装置106との間でコントロール
信号の授受や画像信号の出力を行う。
The interface circuit 105 transmits / receives a control signal to / from an external device 106, which is a host device of the image reading apparatus according to the present embodiment such as a personal computer, and outputs an image signal.

【0028】外部装置106はホストコンピュータであ
り、画像読取装置を制御するためのスキャナドライバを
有している。外部装置106は画像読取装置と一体とな
って画像処理システムを構成する。
The external device 106 is a host computer and has a scanner driver for controlling the image reading device. The external device 106 forms an image processing system together with the image reading device.

【0029】スキャナドライバは、画像読取モードの指
定、解像度指定、読取範囲の指定等を行うためのユーザ
インターフェースを有し、各指定に基づくコントロール
信号や読取開始命令等を、前述のインターフェース回路
105を介して画像読取装置に対して送信する。また、
スキャナドライバは画像読取装置が前記コントロール信
号に従って読み取った画像データを順次処理して画面表
示を行うものである。この際、スキャナドライバにて本
実施の形態のガンマ補正処理を行う。
The scanner driver has a user interface for designating an image reading mode, a resolution, a reading range, etc., and a control signal and a reading start command based on each designation are sent to the interface circuit 105 described above. To the image reading device. Also,
The scanner driver sequentially processes the image data read by the image reading device according to the control signal and displays the image on the screen. At this time, the gamma correction process of the present embodiment is performed by the scanner driver.

【0030】図3は、本実施の形態の画像読取装置にお
ける画像読み取り制御のフローチャートを示している。
スキャナドライバを起動させるとまず、ステップS30
1にてプレビュースキャンを行うかどうかの判定を待
つ。プレビュースキャンが開始されるとステップS30
2にて最低解像度で読取原稿をスキャンし、プレビュー
画像をモニタに表示する。次に原稿の種類から、ステッ
プS303にて画像データの文字原稿用濃度補正カーブ
の作成を行うかどうかの判定を行う。ステップS303
にて文字原稿用濃度補正カーブ作成を行うと判定された
場合にはステップS304に進み、本発明の濃度補正カ
ーブを作成し、モニタ用ガンマ補正カーブと合成し、文
字原稿用ガンマ補正データとして外部装置106に記憶
する。また、ステップS303にて文字原稿用濃度補正
カーブの作成は行わないと判定された場合にはステップ
S305に進み、モニタ用ガンマ補正カーブをモニタ用
ガンマ補正データとして外部装置106に記憶する。次
にステップS306にて本スキャンが開始されると、ス
テップS307にてステップS304もしくはS305
で作成したガンマ補正データに従って画像データを補正
処理しながら読取原稿を読み取り、スキャンを終了す
る。
FIG. 3 shows a flow chart of image reading control in the image reading apparatus of this embodiment.
When the scanner driver is activated, first, step S30
At 1, wait for a determination as to whether or not to perform a preview scan. When the preview scan is started, step S30
In step 2, the read document is scanned at the minimum resolution and a preview image is displayed on the monitor. Then, in step S303, it is determined from the type of the original document whether or not to create a density correction curve for the character original of the image data. Step S303
When it is determined that the density correction curve for the text original is created in step S304, the density correction curve of the present invention is created, combined with the monitor gamma correction curve, and externally used as gamma correction data for the text original. Stored in device 106. If it is determined in step S303 that the density correction curve for the text original is not created, the process advances to step S305 to store the monitor gamma correction curve in the external device 106 as monitor gamma correction data. Next, when the main scan is started in step S306, step S304 or S305 is performed in step S307.
The original document is read while the image data is corrected according to the gamma correction data created in step 1, and the scan is completed.

【0031】ステップS306にて本スキャンを実行し
ない場合にはステップS308にてスキャン動作を終了
するかの判定を行う。ステップS308にてスキャン動
作を終了する場合には本スキャンを実行せずに終了す
る。また、ステップS308にてスキャン動作を終了し
ない場合にはステップS309にて再プレビュースキャ
ンを開始するかどうかの判定を行う。ステップS309
にて再プレビューを開始する場合にはステップS302
に戻り、プレビュースキャン、文字原稿用濃度補正カー
ブの作成等を実行する。また、ステップS309にて再
プレビューを開始しない場合にはステップS306に戻
り、本スキャンを開始するかの判定を待つ。
If the main scan is not executed in step S306, it is determined in step S308 whether or not the scan operation is ended. When the scan operation is ended in step S308, the main scan is ended without being executed. If the scan operation is not ended in step S308, it is determined in step S309 whether to start the re-preview scan. Step S309
If re-preview is started in step S302
Then, the preview scan and the creation of the density correction curve for the text original are executed. If re-preview is not started in step S309, the process returns to step S306 and waits for a determination as to whether to start the main scan.

【0032】図4は図3におけるステップS304の文
字原稿用ガンマ補正データ作成ルーチンを示している。
FIG. 4 shows a gamma correction data creation routine for character originals in step S304 in FIG.

【0033】まずステップS401にて図5のようなカ
ラーモードの場合にはR、G、B全色を合成したヒスト
グラムを、グレーモードの場合にはG色のみのヒストグ
ラムを生成する。次にステップS402にてヒストグラ
ムからシャドウ値sとハイライト値hを検索し、中間値
mを算出する。さらにシャドウ値―中間値間及び中間値
―ハイライト値間をそれぞれ2分割して、[s,(s+
m)/2]、[(s+m)/2,m]、[m,(m+
h)/2]、[(m+h)/2,h]の4区間に分割す
る。ステップS403にてそれぞれの区間の頻度の累積
値a、b、c、dを求めて、濃度補正係数D=(a+
d)/(a+b+c+d)を算出する。
First, in step S401, a histogram in which all R, G, and B colors are combined is generated in the color mode as shown in FIG. 5, and a histogram of only G color is generated in the gray mode. Next, in step S402, the shadow value s and the highlight value h are searched from the histogram, and the intermediate value m is calculated. Further, the shadow value-intermediate value and the intermediate value-highlight value are each divided into two, and [s, (s +
m) / 2], [(s + m) / 2, m], [m, (m +
h) / 2], [(m + h) / 2, h]. In step S403, the cumulative value a, b, c, d of the frequency of each section is obtained, and the density correction coefficient D = (a +
d) / (a + b + c + d) is calculated.

【0034】濃度補正係数Dが求まったら、ステップS
404にて区間[s,m]のデータxに対して出力f
(x)=m×(x/m)^(1/D)となり、区間
[m,h]のデータxにたいして出力g(x)=N−
(N−m)×((N−x)/(N−m))^(1/D)
となるようなS字形の文字原稿用濃度補正カーブ(図
6)を作成する。ここで、Nは画素のビット階調数を表
し、N=(2^n)−1で表現でき,8ビットの階調数
ではN=255となる。このようなトーンカーブでは濃
度補正係数Dが大きいほど元画像データに対して弱いS
字形濃度補正が掛かり、また濃度補正係数Dが小さいほ
ど強いS字形濃度補正が掛かることになる。
When the density correction coefficient D is obtained, step S
Output f to data x in the section [s, m] at 404
(X) = m × (x / m) ^ (1 / D), and output g (x) = N− for the data x in the section [m, h].
(N−m) × ((N−x) / (N−m)) ^ (1 / D)
Then, an S-shaped character original density correction curve (FIG. 6) is created. Here, N represents the number of bit gradations of a pixel, which can be represented by N = (2 ^ n) -1, and N = 255 when the number of gradations is 8 bits. In such a tone curve, as the density correction coefficient D is larger, S which is weaker than the original image data.
The character density correction is performed, and the smaller the density correction coefficient D is, the stronger the S-shaped density correction is applied.

【0035】文字原稿用濃度補正カーブが求まったら、
ステップS405にてモニタ用ガンマ補正カーブとの合
成を行い(図7)、入出力のテーブルデータを文字原稿
用ガンマ補正データとして外部装置106に記憶する。
なお、カラーモードの画像データ補正時には作成された
文字原稿用ガンマ補正データをR、G、B共通補正デー
タとして各色データに対して補正を行う。ここで、図7
はモニタ用ガンマをγ値2.2とした場合の合成カーブ
を示す。
Once the density correction curve for the text original is obtained,
In step S405, it is combined with the monitor gamma correction curve (FIG. 7), and the input / output table data is stored in the external device 106 as gamma correction data for the text original.
It should be noted that the gamma correction data for character originals created at the time of image data correction in the color mode is used as R, G, B common correction data to perform correction on each color data. Here, FIG.
Shows a composite curve when the monitor gamma is set to a γ value of 2.2.

【0036】(他の実施の形態)上記の実施の形態にお
いては、濃度分布を4分割して、濃度補正係数Dを求め
たが、4分割に限らず、[s,s+(h−s)/3]、
[s+(h−s)/3,s+(h−s)×2/3]、
[s+(h−s)×2/3,h]に3分割し、それぞれ
の区間の頻度の累積値をe、f、gとし、D=(e+
g)/(e+f+g)とすることもできる。また、5分
割以上でも同様に、全データ数と外側寄りの頻度との割
合から濃度補正係数Dを求めて、濃度補正カーブを作成
することができる。
(Other Embodiments) In the above embodiment, the density distribution is divided into four to obtain the density correction coefficient D. However, the density correction coefficient D is not limited to four, and [s, s + (hs)). / 3],
[S + (h−s) / 3, s + (h−s) × 2/3],
[S + (h−s) × 2/3, h] is divided into three, and the cumulative values of the frequencies of the respective sections are set to e, f, and g, and D = (e +
g) / (e + f + g). Further, in the case of 5 divisions or more, similarly, the density correction coefficient D can be obtained from the ratio of the total number of data and the frequency of the outer side to create the density correction curve.

【0037】また、上記の実施の形態は、画像読取装置
201と外部装置106のホストコンピュータで画像処
理システムを構成したが、これらが一体となった装置に
おいて実施することもできる。
In the above embodiment, the image processing system is configured by the image reading apparatus 201 and the host computer of the external apparatus 106, but it is also possible to implement it in an apparatus in which these are integrated.

【0038】[0038]

【発明の効果】以上説明したように、本発明によれば、
明暗の不明確な画像データに対しても、コントラストを
最適化したガンマ補正処理を施すことができる。
As described above, according to the present invention,
It is possible to perform the gamma correction process that optimizes the contrast even on image data with unclear brightness and darkness.

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

【図1】本発明の実施の形態に係る画像読取装置の概略
構成のブロック図である。
FIG. 1 is a block diagram of a schematic configuration of an image reading apparatus according to an embodiment of the present invention.

【図2】本発明の実施の形態に係る画像読取装置の断面
図である。
FIG. 2 is a sectional view of the image reading apparatus according to the embodiment of the present invention.

【図3】本発明の実施の形態に係る画像読取装置の原稿
読み取り動作のフローチャートである。
FIG. 3 is a flowchart of a document reading operation of the image reading device according to the embodiment of the present invention.

【図4】本発明の実施の形態に係る画像読取装置の文字
原稿用ガンマ補正データ作成のフローチャートである。
FIG. 4 is a flowchart for creating gamma correction data for a character original in the image reading apparatus according to the embodiment of the present invention.

【図5】本発明の実施の形態に係る文字原稿画像のヒス
トグラム例である。
FIG. 5 is an example of a histogram of a character original image according to the embodiment of the present invention.

【図6】本発明の実施の形態に係る文字原稿用トーンカ
ーブ例である。
FIG. 6 is an example of a tone curve for a character original according to the embodiment of the invention.

【図7】本発明の実施の形態に係る文字原稿用ガンマ補
正データのカーブである。
FIG. 7 is a curve of gamma correction data for a character original according to the embodiment of the present invention.

フロントページの続き Fターム(参考) 5B057 CE11 CE17 CH01 CH11 DA08 DB02 DB06 DB09 DC23 5C077 MP01 MP08 PP15 PP32 PP37 PP52 PP53 PQ12 PQ19 PQ22 5C079 HB01 LA10 LA12 LB01 MA01 MA11 Continued front page    F term (reference) 5B057 CE11 CE17 CH01 CH11 DA08                       DB02 DB06 DB09 DC23                 5C077 MP01 MP08 PP15 PP32 PP37                       PP52 PP53 PQ12 PQ19 PQ22                 5C079 HB01 LA10 LA12 LB01 MA01                       MA11

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 原稿からの光を読取って画像データを生
成する工程と、 前記画像データから濃度分布のヒストグラムを作成する
工程と、 前記画像データの全データ数に対する濃度分布の明暗両
端寄りのデータ数の割合に基づいて濃度補正曲線を生成
する工程と、 前記濃度補正曲線で画像データの濃度補正を行う工程と
を有する画像処理方法。
1. A step of reading light from a document to generate image data, a step of creating a histogram of a density distribution from the image data, and data of the density distribution near both the light and dark sides with respect to the total number of data of the image data. An image processing method comprising: a step of generating a density correction curve based on a number ratio; and a step of correcting the density of image data with the density correction curve.
【請求項2】 請求項1に記載の濃度補正曲線を生成す
る工程は、前記画像データのシャドウ値とハイライト値
の中間値を基準にして濃度を複数領域に分割し、各領域
に含まれる前記濃度分布のヒストグラムのデータ数に基
づいて前記濃度補正曲線を作成することを特徴とする。
2. The step of generating the density correction curve according to claim 1, wherein the density is divided into a plurality of areas based on an intermediate value between the shadow value and the highlight value of the image data, and the density correction curve is included in each area. The density correction curve is created based on the number of data in the histogram of the density distribution.
【請求項3】 請求項2に記載の濃度補正曲線を生成す
る工程は、前記中間値より暗い濃度レベルの信号はより
暗いレベルに、前記中間値より明るい濃度レベルの信号
はより明るくなるようなS字形状の濃度補正曲線を生成
することを特徴とする。
3. The step of generating the density correction curve according to claim 2, wherein a signal having a density level darker than the intermediate value becomes a darker level, and a signal having a density level brighter than the intermediate value becomes brighter. It is characterized in that an S-shaped density correction curve is generated.
【請求項4】 請求項3に記載の濃度補正曲線を生成す
る工程は、前記明暗両端寄りのデータ数の割合が大きい
場合には曲率の小さいS字形状の濃度補正曲線を、前記
割合が小さい時には曲率の大きいS字形状の濃度補正曲
線を生成することを特徴とする。
4. The step of generating the density correction curve according to claim 3, wherein when the ratio of the number of data near the light and dark ends is large, the density correction curve having an S-shape with a small curvature is used, and the ratio is small. It is characterized in that an S-shaped density correction curve with a large curvature is sometimes generated.
【請求項5】 請求項1に記載の濃度分布のヒストグラ
ムを作成する工程は、前記原稿がカラー画像の場合に
は、前記画像データのR,G,Bの各濃度データを合成
した1つの濃度分布のヒストグラムを作成することを特
徴とする。
5. The step of creating a histogram of the density distribution according to claim 1, wherein when the original is a color image, one density obtained by combining the R, G, and B density data of the image data is combined. It is characterized by creating a histogram of the distribution.
【請求項6】 請求項1に記載の濃度補正を行う工程
は、前記原稿がカラー画像の場合には、前記画像データ
のR,G,B各濃度データに対して共通の濃度補正曲線
を用いることを特徴とする。
6. The step of performing the density correction according to claim 1, when the original is a color image, a common density correction curve is used for each R, G, B density data of the image data. It is characterized by
【請求項7】 原稿からの光を読取って画像データを生
成する手段と、 前記画像データから濃度分布のヒストグラムを作成する
手段と、 前記画像データの全データ数に対する濃度分布の明暗両
端寄りのデータ数の割合に基づいて濃度補正曲線を生成
する手段と、 前記濃度補正曲線で画像データの濃度補正を行う手段と
を有する画像処理システム。
7. A means for generating image data by reading light from a document, a means for creating a histogram of the density distribution from the image data, and data for the density distribution near both ends of the density distribution with respect to the total number of data of the image data. An image processing system comprising: a unit for generating a density correction curve based on the ratio of numbers; and a unit for correcting the density of image data with the density correction curve.
【請求項8】 請求項7に記載の濃度補正曲線を生成す
る手段は、前記画像データのシャドウ値とハイライト値
の中間値を基準にして濃度を複数領域に分割し、各領域
に含まれる前記濃度分布のヒストグラムのデータ数に基
づいて前記濃度補正曲線を作成することを特徴とする。
8. The means for generating the density correction curve according to claim 7, wherein the density is divided into a plurality of areas based on an intermediate value between the shadow value and the highlight value of the image data, and the density is included in each area. The density correction curve is created based on the number of data in the histogram of the density distribution.
【請求項9】 請求項8に記載の濃度補正曲線を生成す
る手段は、前記中間値より暗い濃度レベルの信号はより
暗いレベルに、前記中間値より明るい濃度レベルの信号
はより明るくなるようなS字形状の濃度補正曲線を生成
することを特徴とする。
9. The means for generating a density correction curve according to claim 8, wherein a signal having a density level darker than the intermediate value becomes a darker level, and a signal having a density level brighter than the intermediate value becomes brighter. It is characterized in that an S-shaped density correction curve is generated.
【請求項10】 請求項9に記載の濃度補正曲線を生成
する手段は、前記明暗両端寄りのデータ数の割合が大き
い場合には曲率の小さいS字形状の濃度補正曲線を、前
記割合が小さい時には曲率の大きいS字形状の濃度補正
曲線を生成することを特徴とする。
10. The means for generating the density correction curve according to claim 9, wherein when the ratio of the number of data near the light and dark ends is large, the density correction curve having an S-shape with a small curvature is used, and the ratio is small. It is characterized in that an S-shaped density correction curve with a large curvature is sometimes generated.
【請求項11】 請求項7に記載の濃度分布のヒストグ
ラムを作成する手段は、前記原稿がカラー画像の場合に
は、前記画像データのR,G,Bの各濃度データを合成
した1つの濃度分布のヒストグラムを作成することを特
徴とする。
11. The means for creating the histogram of the density distribution according to claim 7, wherein when the original is a color image, one density obtained by combining the R, G, and B density data of the image data is combined. It is characterized by creating a histogram of the distribution.
【請求項12】 請求項7に記載の濃度補正を行う手段
は、前記原稿がカラー画像の場合には、前記画像データ
のR,G,B各濃度データに対して共通の濃度補正曲線
を用いることを特徴とする。
12. The means for performing density correction according to claim 7, when the original is a color image, uses a common density correction curve for each R, G, B density data of the image data. It is characterized by
【請求項13】 請求項1乃至5の一に記載の画像読取
方法をコンピュータで制御して実現するための、コンピ
ュータで実行可能なプログラム。
13. A computer-executable program for realizing the image reading method according to claim 1 by controlling the computer.
【請求項14】 請求項13に記載のプログラムを記録
した記録媒体。
14. A recording medium on which the program according to claim 13 is recorded.
JP2001239139A 2001-08-07 2001-08-07 Image processing method, image processing system, program and storage medium Pending JP2003051944A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2001239139A JP2003051944A (en) 2001-08-07 2001-08-07 Image processing method, image processing system, program and storage medium
CN02127606.4A CN1203657C (en) 2001-08-07 2002-08-05 Picture processing method and device, and storage medium
US10/211,520 US7016534B2 (en) 2001-08-07 2002-08-05 Method, and apparatus for discriminating kind of image medium stored with program
EP02255533A EP1289266A3 (en) 2001-08-07 2002-08-07 Image processing method image processing apparatus and storage medium
US11/254,639 US7113639B2 (en) 2001-08-07 2005-10-21 Image processing method, image processing apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001239139A JP2003051944A (en) 2001-08-07 2001-08-07 Image processing method, image processing system, program and storage medium

Publications (1)

Publication Number Publication Date
JP2003051944A true JP2003051944A (en) 2003-02-21

Family

ID=19069939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001239139A Pending JP2003051944A (en) 2001-08-07 2001-08-07 Image processing method, image processing system, program and storage medium

Country Status (1)

Country Link
JP (1) JP2003051944A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100671548B1 (en) * 2004-12-02 2007-01-19 삼성전자주식회사 Multi-function product capable of setting adaptive contrast and method thereof
US7426300B2 (en) 2003-07-15 2008-09-16 Konica Minolta Business Technologies Inc. Image processing apparatus, image processing method, program and image forming apparatus, for performing density adjustment on an image based on a highlight part and a shadow part of a histogram of the image
JP2013030158A (en) * 2011-06-24 2013-02-07 Tokyo Electron Ltd Image processing method, image display method, image processing device, program, and computer recording medium
US8724196B2 (en) 2009-02-06 2014-05-13 Masahiro Kobayashi Image processing device
US9082163B2 (en) 2012-05-21 2015-07-14 Masahiro Kobayashi Image processing device
WO2022158010A1 (en) 2021-01-22 2022-07-28 株式会社ロジック・アンド・デザイン Image processing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03297271A (en) * 1990-04-16 1991-12-27 Fuji Photo Film Co Ltd Picture processing method
JPH06332399A (en) * 1993-05-19 1994-12-02 Fujitsu General Ltd Method for controlling electronic display and device therefor
JPH09186877A (en) * 1995-12-28 1997-07-15 Sharp Corp Image processor
JPH10208034A (en) * 1997-01-17 1998-08-07 Seiko Epson Corp Processor and method for image processing
JP2000295477A (en) * 1999-04-02 2000-10-20 Fuji Xerox Co Ltd Image processor and image forming device
JP2001189862A (en) * 1999-12-28 2001-07-10 Canon Inc Image processing method and image processing device
JP2001189863A (en) * 1999-12-28 2001-07-10 Canon Inc Image processing method and image processing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03297271A (en) * 1990-04-16 1991-12-27 Fuji Photo Film Co Ltd Picture processing method
JPH06332399A (en) * 1993-05-19 1994-12-02 Fujitsu General Ltd Method for controlling electronic display and device therefor
JPH09186877A (en) * 1995-12-28 1997-07-15 Sharp Corp Image processor
JPH10208034A (en) * 1997-01-17 1998-08-07 Seiko Epson Corp Processor and method for image processing
JP2000295477A (en) * 1999-04-02 2000-10-20 Fuji Xerox Co Ltd Image processor and image forming device
JP2001189862A (en) * 1999-12-28 2001-07-10 Canon Inc Image processing method and image processing device
JP2001189863A (en) * 1999-12-28 2001-07-10 Canon Inc Image processing method and image processing device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426300B2 (en) 2003-07-15 2008-09-16 Konica Minolta Business Technologies Inc. Image processing apparatus, image processing method, program and image forming apparatus, for performing density adjustment on an image based on a highlight part and a shadow part of a histogram of the image
KR100671548B1 (en) * 2004-12-02 2007-01-19 삼성전자주식회사 Multi-function product capable of setting adaptive contrast and method thereof
US8724196B2 (en) 2009-02-06 2014-05-13 Masahiro Kobayashi Image processing device
JP2013030158A (en) * 2011-06-24 2013-02-07 Tokyo Electron Ltd Image processing method, image display method, image processing device, program, and computer recording medium
US9082163B2 (en) 2012-05-21 2015-07-14 Masahiro Kobayashi Image processing device
WO2022158010A1 (en) 2021-01-22 2022-07-28 株式会社ロジック・アンド・デザイン Image processing method
KR20230133344A (en) 2021-01-22 2023-09-19 가부시키가이샤 로직 앤드 디자인 Image processing method

Similar Documents

Publication Publication Date Title
JP4062031B2 (en) Gamma correction method, gamma correction apparatus and image reading system
JP3520550B2 (en) Color image processing system and its data correction method
US20070030540A1 (en) Image scanning
US20010035989A1 (en) Method, apparatus and recording medium for color correction
JPH06303429A (en) Dot image data correcting method and image processor with correcting function
JPH06291998A (en) Method and device for setting picture processing condition
US20070146750A1 (en) Method for generating calibration curve
JP4379460B2 (en) Image forming system, image forming program, and recording medium
US7307758B2 (en) Image forming apparatus and image forming method
JP2003051944A (en) Image processing method, image processing system, program and storage medium
JPH08235350A (en) Method for adjustment of color of image at inside of document processor
US20060232797A1 (en) Image processing for expressing gradation
JP2008092541A (en) Image processing method, image processor, image forming apparatus, computer program, and recording medium
JP2832089B2 (en) Image processing device
JP4083823B2 (en) Image processing device
JP4085956B2 (en) Imaging device
JP2001251482A (en) Apparatus, system and method for processing image and computer readable storage medium
JP2005252392A (en) Image processing apparatus and method therefor, computer program and computer-readable storage medium
JP2000209437A (en) Image correction method and storage medium storing image correction program
JP3150033B2 (en) Color scanner
JPH0951436A (en) Image processing system and image processing method
JP3229314B2 (en) Image reading device
JP2008167352A (en) Image processing apparatus
JPH09298633A (en) Image reader
JP2021052243A (en) Image reading device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080807

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090728

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091208

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100204

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100601

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630