JP2001189862A - Image processing method and image processing device - Google Patents

Image processing method and image processing device

Info

Publication number
JP2001189862A
JP2001189862A JP37553899A JP37553899A JP2001189862A JP 2001189862 A JP2001189862 A JP 2001189862A JP 37553899 A JP37553899 A JP 37553899A JP 37553899 A JP37553899 A JP 37553899A JP 2001189862 A JP2001189862 A JP 2001189862A
Authority
JP
Japan
Prior art keywords
image
value
correction
component
determined
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.)
Granted
Application number
JP37553899A
Other languages
Japanese (ja)
Other versions
JP3667181B2 (en
Inventor
Ryosuke Iguchi
良介 井口
Manabu Yamazoe
学 山添
Okinobu Tsuchiya
興宜 土屋
Yuji Akiyama
勇治 秋山
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 JP37553899A priority Critical patent/JP3667181B2/en
Priority to US09/745,481 priority patent/US7006668B2/en
Priority to DE60026258T priority patent/DE60026258T2/en
Priority to EP00311699A priority patent/EP1130896B1/en
Publication of JP2001189862A publication Critical patent/JP2001189862A/en
Application granted granted Critical
Publication of JP3667181B2 publication Critical patent/JP3667181B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an image processing method capable of deciding the lightness of an image based on more detailed parameter of the lightness of the image, obtaining the degree of optimum correction to the image and especially increasing its density while maintaining the gradation of a high density part in a printed image. SOLUTION: In a histogram with respect to number of pixels as to each luminance of a luminance signal denoting the lightness of an image obtained from image data, the ratio (Slow) of the cumulative frequency of a prescribed low luminance area (0-X) to the entire pixel number is obtained, and in the case correcting the luminance by a gradation curve (γ=0.8) to darkly correct the luminance signal is used to correct the luminance, and when the ratio is higher than a prescribed value (Slow=20), the gradation curve is revised so as not to conduct correction (Σ=1) for the maintenance of the gradation for the luminance correction for the prescribed low luminance area.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理方法およ
び画像処理装置に関し、例えば、デジタル写真画像など
のような画像データに対して輝度補正処理を行うための
画像処理方法および画像処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image processing apparatus, and more particularly to an image processing method and an image processing apparatus for performing a luminance correction process on image data such as a digital photographic image. It is.

【0002】[0002]

【従来の技術】近年、ハードコピー技術、特にフルカラ
ーのハードコピー技術が急速に発展しつつある。特に、
インクジェット方式による印刷技術は、インクドットに
よる粒状感の低減などにより、その印刷画質が銀塩写真
と同等のものとなりつつあり、また、その比較的簡易な
印刷方式によって広く普及しているものである。このよ
うな点から、インクジェット方式によるプリンタと高画
素のデジタルカメラとを用い、撮像画像またはそれを加
工した画像の忠実な再現も可能となってきている。
2. Description of the Related Art In recent years, hard copy technology, especially full-color hard copy technology, is rapidly developing. In particular,
The printing technology by the ink jet system is becoming similar in printing quality to silver halide photography due to the reduction in graininess due to ink dots, and is widely spread due to its relatively simple printing system. . From such a point, it has become possible to faithfully reproduce a captured image or an image obtained by processing the captured image by using an inkjet printer and a high-pixel digital camera.

【0003】このような撮像画像を印刷するシステムで
は、基本的に印刷デバイスであるプリンタなどによって
実現できる濃度範囲が、デジタルカメラ等のそれとは異
なるという問題がある。例えば、インクジェット方式の
プリンタの場合、撮像された画像の濃度に対して高濃度
部において実現可能な濃度が比較的低いという問題があ
る。これは、デジタルカメラを用いる場合に限らず、ス
キャナなどの光学的な画像読取りデバイスを用いたシス
テムやCRT等のディスプレーの画像を印刷するシステ
ムでも同様である。そして、以上のような本質的な問題
によって、撮像等した画像を印刷すると、実際の色に比
べて明るすぎたりまたは暗すぎるといった場合がある。
In such a system for printing a captured image, there is a problem that the density range that can be basically realized by a printer or the like, which is a printing device, is different from that of a digital camera or the like. For example, in the case of an ink jet printer, there is a problem that the density that can be realized in a high density portion is relatively lower than the density of a captured image. This is not limited to the case where a digital camera is used, but also applies to a system using an optical image reading device such as a scanner or a system for printing an image on a display such as a CRT. Then, due to the above-described essential problems, when an image captured or the like is printed, the image may be too bright or too dark compared to the actual color.

【0004】このため、本出願人は、画像処理における
特に輝度補正処理によってこれに対処する方法を提案し
ている。すなわち、基本的に画像全体において高濃度部
領域の割合が多くなるよう画像データにおける輝度を補
正し、これにより、印刷画像の全体的な濃度を増して印
刷デバイスの実現可能な最高濃度が比較的低いという点
を補う提案である。そして、この際、上記輝度の補正で
明るく補正する程度(以下、これを「γ値」ともいう。明
るく補正するほどγ値は大きい)を判断するため、画像
データにおける各輝度の度数を示すヒストグラムを解析
し、そのヒストグラムにおける所定の最高輝度や最低輝
度に基づいて高輝度領域や低輝度領域の分布を知り、こ
れに応じて補正の程度(補正条件)を定めている。
[0004] For this reason, the present applicant has proposed a method for coping with this, particularly by luminance correction processing in image processing. That is, basically, the luminance in the image data is corrected so that the ratio of the high-density area in the entire image is increased, thereby increasing the overall density of the print image so that the maximum achievable density of the printing device is relatively high. It is a proposal to make up for the low point. At this time, a histogram indicating the frequency of each luminance in the image data is used to determine the degree to which the luminance is corrected by the luminance correction (hereinafter, this is also referred to as “γ value”. Is analyzed, and the distribution of the high-luminance area and the low-luminance area is known based on the predetermined maximum luminance and minimum luminance in the histogram, and the degree of correction (correction condition) is determined accordingly.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
たγ値を定める輝度補正処理では、ヒストグラムの最高
輝度、最低輝度等のみに基づいて、印刷すべき画像デー
タにおける輝度分布を判断するものであるため、正確な
輝度分布を把握できない場合がある。例えば、低輝度領
域が比較的少ない(明るい画像)にも拘わらず、比較的高
い輝度周辺に分布のピークがあることによってその上記
所定の最低輝度自体は比較高い値を示すような輝度分布
では、比較的明るい画像と判断してγ値を小さな値とし
てしまい、その結果、印刷画像における高濃度部画像の
つぶれ等を生じることがある。
However, in the brightness correction processing for determining the γ value described above, the brightness distribution in the image data to be printed is determined based only on the highest brightness, the lowest brightness, etc. of the histogram. In some cases, an accurate luminance distribution cannot be grasped. For example, in spite of a relatively small low-luminance area (bright image), the above-mentioned predetermined minimum luminance itself has a comparatively high value due to a distribution peak around a relatively high luminance, It is determined that the image is relatively bright, and the γ value is set to a small value. As a result, the high-density portion image in the printed image may be lost.

【0006】特に、仮に適切なγ値を得ることができた
としても、そのγ値で全ての輝度領域で一体に補正を行
う場合には、高輝度領域や中間領域の補正による印刷画
像は鮮やかな色を実現できるが、特に低輝度領域の補正
による印刷画像の高濃度部の階調が適切に表現されず、
色のいわゆる潰れを生じることがある。
[0006] In particular, even if an appropriate γ value can be obtained, if the correction is performed integrally in all the luminance regions using the γ value, the printed image obtained by correcting the high luminance region and the intermediate region is vivid. Color can be realized, but the gradation of the high-density part of the printed image due to the correction of the low-luminance area is not properly expressed,
Color so-called collapse may occur.

【0007】本発明は上述したこのような点をさらに改
善するためになされたものであり、その目的とするとこ
ろは、画像におけるより詳細な明るさの判定パラメータ
に基づいてその画像の明るさを判定し、それぞれの画像
に最適な補正の程度を求めるとともに、特に印刷画像に
おける高濃度部の階調を維持しつつその濃度の増大を図
ることにより、画像データが示す画像のより忠実な再現
を行うことができる画像処理方法および画像処理装置を
提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to further improve the above-described point, and an object of the present invention is to reduce the brightness of an image based on a more detailed brightness determination parameter in the image. Judgment, determine the optimal degree of correction for each image, and increase the density, especially while maintaining the gradation of the high-density part in the printed image, to achieve a more faithful reproduction of the image indicated by the image data. An object of the present invention is to provide an image processing method and an image processing apparatus that can be performed.

【0008】[0008]

【課題を解決するための手段】そのために本発明では、
画像データが示す画像の明るさに関する成分に応じたヒ
ストグラムに基づいて前記画像データの明るさに関する
成分を補正する補正条件を定め、該定められた補正条件
に従い、前記画像データを補正する画像処理方法であっ
て、前記ヒストグラムにおいて、前記成分の所定範囲の
当該ヒストグラムにおける割合を求め、該求めた割合に
基づいて前記補正条件を定めるステップを有することを
特徴とする。
According to the present invention, there is provided:
An image processing method for determining a correction condition for correcting a component related to brightness of the image data based on a histogram corresponding to a component related to brightness of an image indicated by the image data, and correcting the image data according to the determined correction condition A step of obtaining a ratio of the predetermined range of the component in the histogram in the histogram, and determining the correction condition based on the obtained ratio.

【0009】好ましくは、前記補正条件を定めるステッ
プは、前記割合が所定値以上のときは、当該定めた補正
条件のうち、前記成分の所定の範囲の画像データの補正
を変更して当該成分値を維持する補正を行うよう当該補
正条件を定めることを特徴とする。
Preferably, the step of determining the correction condition includes, when the ratio is equal to or more than a predetermined value, changing the correction of the image data within a predetermined range of the component in the determined correction condition, and It is characterized in that the correction conditions are determined so as to perform the correction for maintaining.

【0010】本発明の他の形態では、画像データが示す
画像の明るさに関する成分に応じたヒストグラムに基づ
いて前記画像データの明るさに関する成分を補正条件を
定め、該定められた補正条件に従い前記画像データを補
正する画像処理装置であって、前記ヒストグラムにおい
て、前記成分の所定の範囲の当該ヒストグラムにおける
割合を求める判定手段と、該求めた割合に基づいて前記
補正条件を定める設定手段とを具えたことを特徴とす
る。
In another aspect of the present invention, a correction condition is determined for a component relating to the brightness of the image data based on a histogram corresponding to a component relating to the brightness of the image indicated by the image data, and the correction condition is determined in accordance with the determined correction condition. An image processing apparatus for correcting image data, comprising: a determination unit that determines a ratio of a predetermined range of the component in the histogram in the histogram; and a setting unit that determines the correction condition based on the determined ratio. It is characterized by having.

【0011】好ましくは、前記設定手段は、前記割合が
所定値以上のときは、当該定めた補正条件のうち、前記
成分の所定の範囲の補正を変更して当該成分値を維持す
る補正を行うよう当該補正条件を定めることを特徴とす
る。
Preferably, when the ratio is equal to or more than a predetermined value, the setting means changes the correction of a predetermined range of the component among the predetermined correction conditions and performs correction for maintaining the component value. The correction conditions are determined as described above.

【0012】以上の構成によれば、画像の明るさに関す
る成分値に応じたヒストグラムから記成分の所定の範囲
の当該ヒストグラムにおける割合を求め、その割合に基
づいて当該成分値の補正の程度を定め、その際、上記割
合が所定値以上のときは、定めた補正条件のうち、上記
成分の最小値から所定の成分値までの成分の補正を変更
してその成分値を維持する補正を行うよう補正条件を定
めるので、上記最小値から所定の成分値までの範囲が画
像において大きな部分を占めるときは、印刷画像の濃度
が濃くなる補正を行うことがなくこれにより、印刷画像
における高濃度部の色の潰れを防ぎつつ画像全体の濃度
増大を図ることができる。
According to the above arrangement, the ratio of a predetermined range of the component in the histogram is determined from the histogram corresponding to the component value relating to the brightness of the image, and the degree of correction of the component value is determined based on the ratio. At this time, when the ratio is equal to or more than a predetermined value, among the determined correction conditions, the correction of the component from the minimum value of the component to the predetermined component value is changed to perform the correction for maintaining the component value. Since the correction condition is determined, when the range from the minimum value to the predetermined component value occupies a large portion in the image, the correction for increasing the density of the print image is not performed, and thus the high density portion of the print image is not corrected. It is possible to increase the density of the entire image while preventing color collapse.

【0013】[0013]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0014】<第1の実施形態>図1は、本発明の一実
施形態にかかる印刷システムの概略構成を示すブロック
図である。本システムは、概略、ホストコンピュータ1
00、プリンタ106およびモニタ105を有して構成
されるものである。すなわち、ホストコンピュータ10
0には、例えばインクジェット方式のプリンタ106と
モニタ105が双方向通信可能に接続されている。
<First Embodiment> FIG. 1 is a block diagram showing a schematic configuration of a printing system according to an embodiment of the present invention. This system is generally composed of a host computer 1
00, a printer 106 and a monitor 105. That is, the host computer 10
For example, an inkjet printer 106 and a monitor 105 are connected to “0” so that bidirectional communication is possible.

【0015】ホストコンピュータ100は、OS(オペ
レーティングシステム)102を有し、また、このOS
100による管理下においてそれぞれの処理を行う、ワ
ードプロセッサ、表計算、画像処理、インターネットブ
ラウザ等のアプリケーション101、このアプリケーシ
ョンによって発行され、出力画像を示す各種描画命令群
(イメージ描画命令、テキスト描画命令、グラフィック
ス描画命令)を処理して印刷データを作成するプリンタ
ドライバ103、および同様にアプリケーション101
が発行する各種描画命令群を処理してモニタ106に表
示を行うモニタドライバ104を同様のソフトウエアと
して有している。
The host computer 100 has an OS (Operating System) 102.
An application 101 such as a word processor, a spreadsheet, an image processing, and an Internet browser, which performs each process under the management of the application 100, and various drawing commands issued by the application and indicating an output image (image drawing commands, text drawing commands, graphics A printer driver 103 that processes print rendering commands to create print data, and an application 101
Has a monitor driver 104 for processing various drawing command groups issued by the PC and displaying it on the monitor 106 as similar software.

【0016】また、ホストコンピュータ100は、上述
のソフトウエアによって動作可能な各種ハードウエアと
して中央演算処理装置CPU108、ハードディスクド
ライバHD107、ランダムアクセスメモリ(RAM)1
09、リードオンリーメモリ(ROM)110等を備え
る。すなわち、CPU108は、上述のソフトウエアに
従った処理にかかる信号処理を実行し、ハードディスク
ドライバ107によって駆動されるハードディスクやR
OM110には、それらの各種ソフトウエアが予め格納
されており、必要に応じて読み出されて用いられる。ま
た、RAM109は、上記CPU108による信号処理
実行のワークエリア等として用いられる。
The host computer 100 includes a central processing unit CPU 108, a hard disk driver HD 107, a random access memory (RAM) 1 as various hardware operable by the above-mentioned software.
09, a read only memory (ROM) 110 and the like. That is, the CPU 108 executes signal processing relating to processing according to the above-described software, and executes a signal processing on the hard disk or the R driven by the hard disk driver 107.
The OM 110 stores various kinds of software in advance, and reads and uses the software as needed. The RAM 109 is used as a work area for executing signal processing by the CPU 108 and the like.

【0017】図1に示される実施形態として、例えば、
一般的に普及しているIBM社のAT互換機のパーソナ
ルコンピュータにMicrosoft社のWindows98をOSとして
使用し、任意の印刷処理が可能なアプリケーションをイ
ンストールし、モニタとプリンタを接続したものを挙げ
ることができる。
As an embodiment shown in FIG. 1, for example,
A common example is a computer that uses Microsoft's Windows 98 as an OS, installs an application that can perform any print processing, and connects a monitor and a printer to an IBM AT compatible personal computer that is widely used. it can.

【0018】以上の構成を有したプリントシステムにお
いて、ユーザーは、アプリケーション101によってモ
ニタ105に表示された表示画像に基づき、同様にアプ
リケーションによる処理を介して文字などのテキストに
分類されるテキストデータ、図形などのグラフィックス
に分類されるグラフィックスデータ、自然画などに分類
されるイメージ画像データなどからなる画像データを作
成することができる。
In the printing system having the above-described configuration, the user, based on the display image displayed on the monitor 105 by the application 101, similarly processes text data and graphics classified into text such as characters through processing by the application. Image data such as graphics data classified as graphics, image data classified as natural images, and the like.

【0019】そして、この作成した画像データの印刷出
力がユーザーによって指示されると、アプリケーション
101はOS102に印刷出力要求を行うとともに、グ
ラフィックスデータ部分をグラフィックス描画命令、イ
メージ画像データ部分をイメージ描画命令として構成し
た、出力画像を示す描画命令群をOS102に発行す
る。これに対し、OS102はアプリケーションの印刷
出力要求を受け、その印刷を行うプリンタに対応したプ
リンタドライバ103に描画命令群を発行する。
When the user instructs a print output of the created image data, the application 101 issues a print output request to the OS 102, renders the graphics data portion with a graphics rendering command, and renders the image image data portion with an image rendering. A drawing command group indicating an output image, which is configured as a command, is issued to the OS 102. On the other hand, the OS 102 receives a print output request from the application, and issues a drawing command group to the printer driver 103 corresponding to the printer that performs the printing.

【0020】プリンタドライバ103は、OS102か
ら入力した印刷要求と描画命令群を処理しプリンタ10
5で印刷可能な形態の印刷データを作成してプリンタ1
05に転送する。この場合に、プリンタ105がラスタ
ープリンタである場合は、プリンタドライバ103はO
S102からの描画命令に対して、順次画像補正処理を
行い、そして順次RGB24ビットページメモリにラス
タライズし、すべての描画命令をラスタライズした後に
RGB24ビットページメモリの内容をプリンタ105
が印刷可能なデータ形式、例えばCMYKデータに変換
を行いプリンタに転送する。
A printer driver 103 processes a print request and a drawing command group input from the OS 102 and
5 to create print data in a form that can be printed by the printer 1
Transfer to 05. In this case, if the printer 105 is a raster printer, the printer driver 103
The drawing command from S102 is sequentially subjected to image correction processing, rasterized sequentially into an RGB 24-bit page memory, and after all drawing commands are rasterized, the contents of the RGB 24-bit page memory are transferred to the printer 105.
Converts the data into a printable data format, for example, CMYK data, and transfers the data to a printer.

【0021】図2は、プリンタドライバ103で行われ
る処理を示す図である。プリンタドライバ103の処理
は、大別して、画像補正処理とプリンタ用補正処理から
なる。
FIG. 2 is a diagram showing processing performed by the printer driver 103. The processing of the printer driver 103 is roughly divided into image correction processing and printer correction processing.

【0022】画像補正処理120は、OS102から入
力した描画命令群に含まれる輝度信号R、G、Bからな
る色情報に対して、画像補正処理を行う。詳しくは、レ
ッド(R)、グリーン(G)、ブルー(B)の色情報を基に、
後述の自動階調補正処理を行う。一方、プリンタ用補正
処理部121は、まず画像補正処理120によって補正
された色情報の描画命令をラスタライズし、R、G、B
24ビットのページメモリにラスター画像を生成する。
そして、所定の画素毎に印刷を行うプリンタの色再現性
に依存したシアン(C)、マゼンタ(M)、イエロー(Y)、
ブラック(K)データを生成し、プリンタ105に転送す
る。
The image correction process 120 performs an image correction process on the color information including the luminance signals R, G, and B included in the drawing command group input from the OS 102. Specifically, based on the color information of red (R), green (G), blue (B),
An automatic gradation correction process described later is performed. On the other hand, the printer correction processing unit 121 first rasterizes the drawing instruction of the color information corrected by the image correction processing 120, and performs R, G, B
A raster image is generated in a 24-bit page memory.
Then, cyan (C), magenta (M), yellow (Y), and cyan (C) depending on the color reproducibility of a printer that performs printing for each predetermined pixel.
Black (K) data is generated and transferred to the printer 105.

【0023】次に、画像補正処理120の処理である自
動階調補正処理について説明する。自動階調補正処理
は、イメージ描画命令で示される画像データのうち、イ
メージ画像に対して行う。従って、例えば画像データの
中にグラフィックス画像やイメージ画像が含まれている
場合は、その画像データからイメージ画像部分を抽出
し、これに対して自動階調補正処理を行う。
Next, the automatic gradation correction processing as the image correction processing 120 will be described. The automatic gradation correction process is performed on an image image of the image data indicated by the image drawing command. Therefore, for example, when a graphics image or an image image is included in the image data, an image image portion is extracted from the image data, and an automatic gradation correction process is performed on the image portion.

【0024】図3は、この自動階調補正における主に各
信号の変換を概念的に示す図であり、また、図4はその
処理手順を示すフローチャートである。本実施形態の自
動階調補正は、画像データにおける各輝度値の度数を集
計したヒストグラムを用い印刷すべき画像の明るさに関
する判定を行い、適切な補正の程度(γ値)を定めること
によって行うものである。以下、図4に示すフローチャ
ートを主に参照してこの処理を説明する。
FIG. 3 is a diagram conceptually showing mainly the conversion of each signal in the automatic gradation correction, and FIG. 4 is a flowchart showing the processing procedure. The automatic gradation correction according to the present embodiment is performed by determining the brightness of an image to be printed using a histogram in which the frequencies of the respective brightness values in the image data are totaled, and determining an appropriate degree of correction (γ value). Things. Hereinafter, this processing will be described mainly with reference to the flowchart shown in FIG.

【0025】(ヒストグラム集計)図4に示すように、最
初にステップS1のヒストグラム集計処理において、ま
ず、入力されたRGBの画像信号を、画像の明るさに関
する成分である輝度Yと色味に関する成分である色差信
号Cr、Cbに変換する(図3のB1)。その変換式は以
下のように表されるものである。 Y=0.299×R+0.587×G+0.114×B Cr=R−Y Cb=B−Y 次に、変換された各信号Y、Cr、Cbの内、輝度に相
当する信号Yについて、画像データにおける各画素毎の
輝度値(信号Yの値)を調べ、0〜255で示されるそれ
ぞれの輝度値毎にその輝度を有する画素の度数を集計
し、輝度のヒストグラム(度数分布)を作成する。この
ように作成されたヒストグラムは、例えば、画像データ
が全体的に明るい画像を示すときは図5に示すように高
輝度側に分布が偏り、一方、全体的に暗めの画像を示す
ときは図6に示すように低輝度側に分布が偏ったものと
なる。なお、上述の輝度ヒストグラムの作成は、画像全
体における輝度の度数分布を調べるのが目的としてなさ
れることから、度数の集計は必ずしも全画素について行
う必要はなく、例えば1600(画素)×1200(画素)
の画像データに対しては、横に15(画素)ずつ、縦に1
1(画素)ずつ間引いた画素について集計を行ってもよい
し、あるいはそれらの画素それぞれについて周囲画素と
の平均値を用いてもよい。
(Histogram totalization) As shown in FIG. 4, in the histogram totalization processing in step S1, first, the input RGB image signal is converted into a luminance Y component, which is a component relating to the image brightness, and a component relating to the tint. (B1 in FIG. 3). The conversion formula is represented as follows. Y = 0.299 × R + 0.587 × G + 0.114 × B Cr = RY Cb = BY Next, of the converted signals Y, Cr, and Cb, the image of the signal Y corresponding to the luminance is obtained. The luminance value (signal Y value) of each pixel in the data is checked, and the frequency of the pixel having the luminance is totaled for each luminance value indicated by 0 to 255, and a luminance histogram (frequency distribution) is created. . The histogram created in this way is, for example, as shown in FIG. 5 when the image data shows an overall bright image, the distribution is biased toward the high luminance side, while when the image data shows an entirely dark image, As shown in FIG. 6, the distribution is biased toward the low luminance side. Note that the above-described creation of the luminance histogram is performed for the purpose of examining the frequency distribution of the luminance in the entire image. Therefore, the counting of the frequencies is not necessarily performed for all pixels. For example, 1600 (pixels) × 1200 (pixels) )
Image data of 15 (pixels) horizontally and 1 (vertically)
Aggregation may be performed on pixels thinned out by 1 (pixel), or an average value of each of those pixels with surrounding pixels may be used.

【0026】(階調曲線判定)次に、ステップS2では、
上述のようにして求めたヒストグラムに基づき階調曲線
判定処理を行う。すなわち、輝度補正におけるγ値に対
応した補正曲線である階調曲線をどのようなものとする
かについて判定する。本実施形態の階調曲線判定は、以
下に述べる2つのパラメータ、すなわち、ハイライトポ
イントおよびγパラメータ(低輝度領域の画素数)によっ
て処理される画像の明るさを判定し、これに基づいてγ
値、すなわち、それに対応する階調曲線を定める。
(Determination of Tone Curve) Next, in step S2,
A gradation curve determination process is performed based on the histogram obtained as described above. That is, it is determined what the gradation curve is, which is a correction curve corresponding to the γ value in the luminance correction. In the gradation curve determination of the present embodiment, the brightness of an image to be processed is determined by two parameters described below, that is, a highlight point and a γ parameter (the number of pixels in a low-luminance area), and γ is determined based on this.
A value, that is, a corresponding gradation curve is determined.

【0027】図7は、このγ判定処理の詳細を示すフロ
ーチャートであり、これを参照して本実施形態のγ判定
処理を説明する。
FIG. 7 is a flowchart showing the details of the γ determination processing, and the γ determination processing of the present embodiment will be described with reference to FIG.

【0028】ハイライトポイント判定部 ステップS21のハイライトポイント判定処理では、上
記ヒストグラムから処理対象である画像におけるハイラ
イトポイントを算出する(ステップS211)。
Highlight Point Determination Unit In the highlight point determination processing in step S21, a highlight point in the image to be processed is calculated from the histogram (step S211).

【0029】本実施形態では、輝度信号Yの上記ヒスト
グラムにおいて輝度範囲の最高輝度値(輝度値255)
から、順に低輝度側に向かいながら各輝度値の度数を累
積し、ここで求めた累積度数が、例えば、処理対象であ
る画像データの全画素数の1.0%と一致した輝度値、
または最初に全画素数の1.0%を越えた輝度値を求
め、この点をハイライトポイント(以下、「HLP」とも
いう)とする。
In this embodiment, the highest luminance value (luminance value 255) in the luminance range in the above-mentioned histogram of the luminance signal Y.
From the above, the frequency of each luminance value is accumulated while sequentially going to the low luminance side, and the cumulative frequency obtained here is, for example, a luminance value that matches 1.0% of the total number of pixels of the image data to be processed,
Alternatively, first, a luminance value exceeding 1.0% of the total number of pixels is obtained, and this point is set as a highlight point (hereinafter, also referred to as “HLP”).

【0030】次に、このようにして求めたHLPと輝度
値について予め定めた閾値Thを用いてこれらの大きさ
を比較し、 HLP>Thとき、画像は明るい画像、H
LP≦Thときは、画像は暗い画像と判定する(ステッ
プS212)。すなわち、この処理によって明暗につい
て2種の画像に判別する。なお、本実施形態で用いる閾
値Thは、比較的高輝度の値を用い、例えば220等を
用いる。
Next, the magnitude of the HLP obtained in this way is compared with the luminance value using a predetermined threshold Th, and when HLP> Th, the image is a bright image and H
When LP ≦ Th, the image is determined to be a dark image (step S212). That is, by this processing, the brightness is determined to be two types of images. The threshold value Th used in the present embodiment uses a relatively high luminance value, for example, 220 or the like.

【0031】例えば、図5に示す明るめの画像のヒスト
グラムでは、HLPが閾値Thを越えて(HLP>T
h)おり、従って、明るい画像と判定される。この場
合、前述したようにヒストグラムは全体的に高輝度側に
分布が偏っており、結果的にHLPも高輝度側に位置し
ている。一方、図6に示す暗めの画像のヒストグラムで
は、HLPが閾値Thよりも低く(HLP≦Th)、暗
い画像と判定される。この場合、全体的に低輝度側に輝
度分布が偏っており、HLPも低輝度側に位置すること
から、このような判定が行われる。
For example, in the histogram of the bright image shown in FIG. 5, the HLP exceeds the threshold Th (HLP> T
h) Yes, and therefore, is determined to be a bright image. In this case, as described above, the distribution of the histogram is generally biased toward the high luminance side, and as a result, the HLP is also located on the high luminance side. On the other hand, in the histogram of the dark image shown in FIG. 6, the HLP is lower than the threshold Th (HLP ≦ Th), and the image is determined to be a dark image. In this case, such a determination is made because the luminance distribution is generally biased toward the low luminance side and the HLP is also located on the low luminance side.

【0032】以上のように処理対象画像のヒストグラム
からハイライトポイントを求め、これに基づいて画像の
全体的な明暗を判別することにより、図8にて後述され
るように、判別された明暗に応じて、補正対象である画
像の低輝度領域の分布に関連させて補正の程度、すなわ
ち、γ値を異ならせることができる。例えば、暗い画像
と判別された場合は、同じ低輝度領域の分布(低輝度領
域の割合)でも明るい画像と判断される場合より、小さ
なγ値で補正する(濃度を高くする;暗くする)確率をよ
り低くすることができ、これにより、全体的に暗い画像
で、例えば低輝度領域の分布が比較的少ない画像につい
ては全体的に低濃度で印刷することが可能となり、印刷
画像における高濃度部のいわゆる潰れを防止できる。一
方、明るい画像と判断される場合は、逆に、小さなγ値
で補正する(濃度を高くする;暗くする)確率をより高く
することができ、これにより、プリンタ等の印刷デバイ
スが本来的に有している比較的低濃度の出力特性を補っ
た印刷を行うことができる。
As described above, the highlight point is determined from the histogram of the image to be processed, and the overall brightness of the image is determined based on the highlight point. Accordingly, the degree of correction, that is, the γ value, can be changed in relation to the distribution of the low-luminance area of the image to be corrected. For example, when the image is determined to be a dark image, the probability that the image is corrected with a smaller γ value (higher density; darker) than when the image is determined to be a bright image even if the distribution of the same low luminance region (the ratio of the low luminance region) Can be made lower, which makes it possible to print a dark image as a whole, for example, an image having a relatively small distribution of low-luminance areas at a low density, and to print a high-density portion in the printed image. Can be prevented from being collapsed. On the other hand, when the image is determined to be a bright image, on the other hand, the probability of correcting with a small γ value (enhancing the density; darkening) can be increased. It is possible to perform printing that compensates for the relatively low density output characteristics.

【0033】なお、HLPの算出は、必ずしも上述した
方法によって求める必要はなく、従来知られている方式
を適宜用いてもよい。
The HLP need not always be calculated by the above-described method, and a conventionally known method may be appropriately used.

【0034】また、他の画像補正処理、例えば前述した
いわゆる色かぶり補正、コントラスト補正、彩度補正と
組み合わせて本実施形態の自動階調補正処理を行う場合
には、この画像処理で予め用いたHLPを使用すること
もできる。なお、この場合、ハイライトポイントを用い
る代わりに、上記色かぶり補正等で同様に用いられるシ
ャドーポイントを用いて画像の明るさ(暗さを)判別する
ことができ、これに基づいて以下の処理を行うことがで
きることは、以下の説明からも自明なことである。
Further, when performing the automatic gradation correction processing of this embodiment in combination with other image correction processing, for example, the so-called color fogging correction, contrast correction, and saturation correction, the image processing is performed in advance. HLP can also be used. In this case, instead of using the highlight point, the brightness (darkness) of the image can be determined by using the shadow point which is also used in the above color cast correction and the like, and based on this, the following processing is performed. It is obvious from the following description that the following can be performed.

【0035】低輝度領域(シャドー領域)の画素数判定
(γパラメータ判定) 次に、ステップS22において、ハイライトポイント判
定によって明暗2種に大別された画像について、同様に
ステップS1で求めたヒストグラムを用いて低輝度領域
分布の判定を行う。
Determination of the number of pixels in the low-luminance area (shadow area) (γ parameter determination) Next, in step S22, the histogram roughly determined in step S1 for the image roughly classified into two types of bright and dark by the highlight point determination Is used to determine the low-luminance area distribution.

【0036】この低輝度領域の画素数判定処理では、ま
ず、ステップS221で処理対象画像の全画素数に対す
る所定の低輝度領域の累積度数の割合であるSlowを求め
る。これは、低輝度領域の分布をより詳細に求めること
により、補正の程度、すなわちγ値について適切なもの
を求め、特に、印刷画像の低濃度部におけるいわゆる潰
れを生じさせることなく全体的な濃度の増大を図ること
を可能とするものである。
[0036] In the pixel number determining process in the low luminance area, First, the S low is the ratio of the cumulative frequency in a predetermined low-brightness area to the total number of pixels of the processing target image in step S221. This is because the degree of correction, that is, an appropriate value for the γ value, is obtained by obtaining the distribution of the low-luminance area in more detail, and in particular, the overall density is obtained without causing so-called collapse in the low-density part of the print image. Is to be increased.

【0037】最初に、前処理として、低輝度領域での累
積度数Sを求める。この低輝度領域での累積度数Sは、
ヒストグラムにおいて輝度範囲の最低輝度値(輝度値
0)から高輝度側に向かって所定の輝度値までの累積度
数として求められるものである。本実施形態では、最大
輝度値(輝度値255)の1/4となる輝度値(輝度値
64)までの累積度数を低輝度領域の累積度数Sとして
求める。
First, as preprocessing, a cumulative frequency S in a low luminance area is obtained. The cumulative frequency S in this low luminance area is
In the histogram, it is obtained as a cumulative frequency from the lowest luminance value (luminance value 0) of the luminance range to a predetermined luminance value toward the higher luminance side. In this embodiment, the cumulative frequency up to a luminance value (luminance value 64) that is 1 / of the maximum luminance value (luminance value 255) is obtained as the cumulative frequency S of the low luminance area.

【0038】次に、上述のように求めた低輝度領域の累
積度数Sが、全画素数に占める割合Slowを算出する。
Next, the ratio S low of the cumulative frequency S of the low luminance area obtained as described above to the total number of pixels is calculated.

【0039】すなわち、ここで、Slow=(低輝度領域の
累積度数S)/(全画素数)(%)である。
That is, here, S low = (cumulative frequency S of low luminance area) / (number of all pixels) (%).

【0040】なお、前述のヒストグラム集計の際に、画
素を間引いて、間引きヒストグラムを作成した場合に
は、上記Slowの定義式での分母は、ヒストグラム作成の
対象となった画素数である。
When the thinning histogram is created by thinning out the pixels at the time of the above-described histogram totaling, the denominator in the above-described Slow definition expression is the number of pixels for which the histogram is created.

【0041】次に、ステップS222において上記で求
めたSlowを用いてγ値(γパラメータ)の判定を行う。
Next, in step S222, the γ value (γ parameter) is determined using the S low obtained above.

【0042】この判定は、具体的には、図8に示すテー
ブルのSlowが属する範囲を決定する処理である。すなわ
ち、このSlowの範囲は、上述のHLP判定に応じた画像
の明暗により範囲を異ならせるものであり、明るい画像
と判定されたものについて、Slow=0〜30、Slow=3
1〜60、Slowが61以上の3種の範囲に分類される。
一方、HLP判定で、暗い画像と判定されたものについ
ては、 Slow=0〜15、Slow=16〜30、Slowが3
1以上の3種の範囲に分類される。
This determination is, specifically, a process of determining the range to which Slow belongs in the table shown in FIG. In other words, the range of S low is different depending on the brightness of the image according to the above-described HLP determination. For the image determined to be a bright image, S low = 0 to 30 and S low = 3.
1 to 60 and S low are classified into three ranges of 61 or more.
On the other hand, for the image determined as a dark image by the HLP determination, S low = 0 to 15, S low = 16 to 30, and S low are 3
It is classified into one or more three ranges.

【0043】例えば、図5に示す明るめの画像の場合、
斜線で示した領域の全画素数に対する割合がSlowとな
る。この例では、Slowは全画素数の10%となり、従っ
て、上記HLP判定で明るい画像と判断されるととも
に、Slowは、0〜30の範囲と判定される。一方、図6
に示す暗めの画像の例では、斜線で示した領域Slowは、
全画素数の40%となり、したがって、上記HLP判定
で暗い画像と判断されるとともに、Slowは31以上の範
囲と判定される。
For example, in the case of a bright image shown in FIG.
The ratio of the shaded area to the total number of pixels is S low . In this example, S low is 10% of the total number of pixels. Therefore, the image is determined to be a bright image by the HLP determination, and S low is determined to be in the range of 0 to 30. On the other hand, FIG.
In the region S low indicated by hatched example of dark image shown in,
This is 40% of the total number of pixels. Therefore, the image is determined to be a dark image in the above-described HLP determination, and S low is determined to be in a range of 31 or more.

【0044】ここで、仮に、上述のように累積度数の割
合を用いず、前述のシャドウポイント(ヒストグラムに
おける最小輝度値から順番に高輝度側に向かいながらそ
れぞれの度数を累積し、例えば全画素数の1.0%と一
致または最初に越えた値となった輝度値)のみを用いて
低輝度部の分布を判定する方法を用いた場合には、低輝
度領域の実際の分布状態が適切に反映されない、画像の
明るさについての判定を行うこととなる。例えば、シャ
ドウポイント自体は比較的高めの輝度値を示しつつも、
実際には、シャドウポイント周辺の輝度値に度数分布の
ピークがあって低輝度領域の度数分布自体は少ない画像
の場合、明るめの画像であると誤った判定をして小さな
γ値(濃度を高くする輝度補正)が選択され、結果として
画像上の比較的大きな部分を占める暗い部分が潰れてし
まうことがある。
Here, suppose that, as described above, without using the ratio of the cumulative frequency, the above-described shadow points (the respective frequencies are sequentially accumulated from the minimum luminance value in the histogram toward the high luminance side, and for example, the total number of pixels is calculated. When the method of judging the distribution of the low-luminance portion using only the luminance value which coincides with or exceeds 1.0% of the low-luminance portion is appropriately used, the actual distribution state of the low-luminance region is appropriately adjusted. A determination is made on the brightness of the image that is not reflected. For example, while the shadow point itself shows a relatively high brightness value,
Actually, if an image has a frequency distribution peak in the luminance value around the shadow point and the frequency distribution itself in the low-luminance area is small, it is erroneously determined to be a bright image and a small γ value (higher density) Brightness correction) is selected, and as a result, a dark portion occupying a relatively large portion on the image may be crushed.

【0045】これに対し、上述の実施形態のように、低
輝度領域における累積度数を求め、この累積度数の全画
素数に占める割合Slowを用いることにより、より実際の
低輝度分布が反映された画像の明暗を判定を行うことが
でき、上述のような、暗めの画像についても適切な階調
補正を行うことができる。
On the other hand, as in the above-described embodiment, the cumulative frequency in the low luminance area is obtained, and the actual low luminance distribution is reflected by using the ratio S low of the cumulative frequency to the total number of pixels. It is possible to determine the lightness and darkness of the resulting image, and it is possible to perform appropriate gradation correction on a darker image as described above.

【0046】なお、上記実施形態では、Slowの範囲につ
いて輝度値0〜60の範囲を均等に区分したが、より詳
しく低輝度領域の情報を求める場合は、低輝度領域をい
くつかに分割してそれぞれに対して場合分けを行っても
よいし、また、Slowが0〜30までは2倍、31〜60
までは1倍して足し合わせるといった重み付けをしても
よい。
In the above-described embodiment, the range of luminance values 0 to 60 is equally divided in the range of S low . However, when more detailed information on the low luminance area is to be obtained, the low luminance area is divided into several parts. May be performed for each of the cases, and if S low is 0 to 30, it is doubled and 31 to 60
Weights such as multiplying by 1 and adding up may be used.

【0047】補正γ値決定 以上の低輝度領域の画素数判定処理により、低輝度領域
の割合Slowが属する範囲が決定されることにより、処理
対象画像は、図8に示されるように、明3種、暗3種の
計6種に分類されることになる。そして、次のステップ
S23では、図8に示すテーブルを用いてγ値を決定す
る。
Determination of Correction γ Value The range to which the ratio S low of the low-luminance area belongs is determined by the above-described pixel number determination processing for the low-luminance area, so that the image to be processed becomes bright as shown in FIG. It is classified into a total of 6 types, 3 types and 3 types. Then, in the next step S23, the γ value is determined using the table shown in FIG.

【0048】本実施形態のγ値は、図9に示す階調曲線
(補正テーブル)から明らかなように、0.8、1.0ま
たは1.2が設定される。なお、このγ値は、前述した
ようにより明るく(印刷画像において、より濃度が低く)
補正する程度を表すものであり、個々の入力輝度値に対
する補正の割合を示すものではない。個々の入力値に対
する補正の割合は、同図のそれぞれのテーブルを表す曲
線で表されるものである。
In the present embodiment, the γ value is represented by a gradation curve shown in FIG.
As is clear from the (correction table), 0.8, 1.0 or 1.2 is set. Note that this γ value is brighter as described above (the density is lower in the printed image).
It indicates the degree of correction and does not indicate the ratio of correction to each input luminance value. The ratio of correction to each input value is represented by a curve representing each table in FIG.

【0049】上記6種に分類された画像に関するγ値の
決定は、図8に示すテーブルを用い、例えば上記HLP
判定が明るい画像の判定の場合、Slow=0〜30のとき
はγ=0.8、Slow=31〜60のときはγ=1.0
(つまり補正せず)、Slowが61以上のときはγ=1.
2といったように設定される。具体的には、後述のよう
にそれぞれのγ値に応じた補正用ルックアップテーブル
(LUT)が用意される。
The determination of the γ value for the images classified into the above six types is performed using the table shown in FIG.
When the determination is a bright image, γ = 0.8 when S low = 0 to 30 and γ = 1.0 when S low = 31 to 60
(That is, no correction), when S low is 61 or more, γ = 1.
2 and so on. Specifically, as described later, a lookup table for correction corresponding to each γ value
(LUT) is prepared.

【0050】図5に示す明るめの画像の場合、HLPは
閾値Thより大きく且つSlowは10%であるので、図8
に示すテーブルより、この画像は明るい画像と判定さ
れ、γ値は0.8に設定される。このγ値決定により、
比較的高い輝度領域まで暗くする(印刷濃度を高くする)
補正がなされ、全体的に最適な濃度の印刷画像となる。
また、低輝度領域の画素に割合が少ないことから、画像
の潰れる部分が少なくて済む。
In the case of the bright image shown in FIG. 5, the HLP is larger than the threshold value Th and S low is 10%.
Is determined to be a bright image, and the γ value is set to 0.8. By this γ value determination,
Darken up to relatively high brightness area (increase print density)
The correction is performed, and a print image having an optimum density as a whole is obtained.
Further, since the ratio of the pixels in the low-luminance area is small, the portion where the image is crushed can be reduced.

【0051】一方、図6に示す暗めの画像では、HLP
がThより小さく且つSlowが40%であるため、図8に
示すテーブルによって、γ値は1.2に設定される。こ
のγ値設定により、印刷される画像全体が明るくなり、
特に画像の40%を占める低輝度部分が明るくなり、濃
度のバランスがとれた印刷画像となる。
On the other hand, in the dark image shown in FIG.
Is smaller than Th and S low is 40%, and the γ value is set to 1.2 according to the table shown in FIG. With this γ value setting, the whole image to be printed becomes brighter,
In particular, a low-luminance portion occupying 40% of the image becomes bright, and a printed image having a balanced density is obtained.

【0052】なお、上記の説明では、ハイライトポイ
ント判定において、画像の明るさの判定を2段階で行っ
たが、より最適なγ値を求めるために、明るい画像、中
間画像、暗い画像といった3段階以上に場合分けしてよ
り詳細な判定を行ってもよい。その場合、低輝度領域
の画素数判定は図8に示したSlowの閾値に加え、中間画
像の場合、例えばSlow=0〜20でγ=0.8、Slow
21〜40でγ=1.0、Slowが41以上でγ=1.2
とすることができる。 低輝度領域(シャドー領域)の階調維持判定 次に、図7に示すステップS24において、低輝度領域
の階調維持判定を行う。これは、上述のようにして決定
したγ値によって補正した場合、その補正による印刷画
像において高濃度部分がどの程度濃く潰れる部分がある
かを判定し、それに応じて、γ補正処理を行って印刷画
像を色濃くする際に、その高濃度領域の階調を維持すべ
きかを判定する処理である。
In the above description, in the highlight point determination, the brightness of the image is determined in two stages. However, in order to obtain a more optimal γ value, three levels, such as a bright image, an intermediate image, and a dark image, are determined. More detailed determinations may be made by dividing the cases into stages or more. In that case, the number of pixels determined low-luminance region in addition to the threshold S low as shown in FIG. 8, when the intermediate image, for example, S low = 0 to 20 in gamma = 0.8, S low =
Γ = 1.0 when 21 to 40, γ = 1.2 when S low is 41 or more
It can be. Next, in step S24 shown in FIG. 7, a gradation maintaining judgment of the low luminance region (shadow region) is performed. This is because, when corrected by the γ value determined as described above, it is determined how much the high-density portion is crushed in the print image by the correction, and the γ correction process is performed according to the determination. This is a process of determining whether to maintain the gradation of the high density area when making the image darker.

【0053】まず、前述のように求めたヒストグラムに
おける輝度範囲の下端の輝度値(輝度値0)から高輝度
側に向かい、所定の点(輝度値X)までの度数を累積す
る。このXは、例えば最大輝度値(輝度値255)の1
/8となる点(輝度値32)とすることができる。この
Xまでの輝度範囲は、以下で示す階調曲線決定処理にお
いて階調曲線が修正される可能性のある範囲である。換
言すれば、この範囲の階調を調整することにより、印刷
画像における高濃度部の階調を維持しつつ色の潰れを防
いで全体として階調の良好な画像を得ることができる範
囲である。これは、経験上または実験的に求めることが
できる。
First, the frequencies from the luminance value (luminance value 0) at the lower end of the luminance range in the histogram obtained as described above toward the high luminance side and up to a predetermined point (luminance value X) are accumulated. This X is, for example, 1 of the maximum luminance value (luminance value 255).
/ 8 (a luminance value of 32). this
The luminance range up to X is a range in which the gradation curve may be corrected in the gradation curve determination processing described below. In other words, by adjusting the gradation in this range, it is possible to maintain the gradation of the high-density portion in the printed image, prevent color collapse, and obtain an image with good gradation as a whole. . This can be determined empirically or experimentally.

【0054】こののように求めたXまでの累積度数を、
上述の低輝度領域の画素数判定処理で求めた累積度数
と同様にS’とする。次に、累積度数S’が全画素数の
何%に当たるかを算出する。この低輝度領域における累
積度数の全画素数に対する割合をSlow’とする。すなわ
ち、Slowと同様、Slow’=(低輝度領域の累積度数
S’)/(全画素数)(%)である。
The cumulative frequency up to X obtained as described above is
S ′ is the same as the accumulated frequency obtained in the above-described low-luminance area pixel number determination process. Next, what percentage of the total number of pixels the cumulative frequency S ′ corresponds to is calculated. The ratio of the cumulative frequency to the total number of pixels in this low-luminance area is S low ′. That is, similarly to the S low, a S low '= (low brightness region cumulative frequency S in') / (total number of pixels) (%).

【0055】例えば図5に示す画像の場合、濃い斜線で
示した領域がSlow’で示される割合を有する領域とな
り、肥猪では5%である。この例のようにSlow’が小さ
い場合は、小さなγ値の階調曲線が設定されて印刷画像
を色濃くする補正がなされたとしても色が潰れる領域も
少ないことがこの図からもわかる。一方、図6に示す例
ではSlow’は20%である。この例は、Slow’が比較的
大きな値であり、この場合、小さなγ値の階調曲線が設
定されると中間輝度領域から高輝度領域にかけては鮮や
かな色となるが、この領域の20%を占める低輝度領域
を補正して得られる印刷画像の高濃度領域は暗く潰れる
ことになる。 補正階調曲線決定 上述したステップS24の低輝度領域の階調維持判定処
理で求めたSlow’の値に基づき、ステップS25におい
て補正階調曲線決定処理を行う。すなわち、本処理は、
Slow’に着目し、低輝度領域の補正の結果による印刷画
像の高濃度部の潰れを生じさせることなく画像を色濃く
できる階調曲線を定めるものであり、具体的には、上述
の補正γ値決定処理で得られたγ値それぞれについ
て、Slow’の値に基づき階調曲線における低輝度領域の
階調を維持する範囲、直線の傾きを定める。
For example, in the case of the image shown in FIG. 5, the area indicated by the dark diagonal lines is an area having the ratio indicated by S low ′, and is 5% in the fertilizer. As can be seen from this figure, when S low ′ is small as in this example, even if a tone curve with a small γ value is set and the correction to make the print image darker is made, there are few areas where the color is destroyed. On the other hand, in the example shown in FIG. 6, S low ′ is 20%. In this example, S low ′ is a relatively large value. In this case, when a gradation curve with a small γ value is set, a vivid color is obtained from the middle luminance region to the high luminance region. The high-density area of the print image obtained by correcting the low-brightness area occupying% is darkened. Determination of Corrected Tone Curve Based on the value of S low ′ obtained in the tone maintaining determination process for the low luminance area in step S24, a corrected tone curve determination process is performed in step S25. That is, this processing
Paying attention to S low ′, it defines a tone curve that can deepen the image without causing collapse of the high density portion of the print image due to the result of the correction of the low luminance area. For each of the γ values obtained in the value determination process, the range in which the gradation of the low luminance region is maintained in the gradation curve and the slope of the straight line are determined based on the value of S low ′.

【0056】図9において、例えば、処理対象画像につ
いて、上述の補正γ値決定でγ=0.8とされ、次
に、上記低輝度領域の階調維持判定処理でSlow’の値
が、例えばSlow’=0〜5と判定されたとすると、印刷
画像全体の濃度を上げようとしても濃く潰れる面積の割
合が小さいと判断して、単純に得られたγ値をそのまま
用いた前述の式で示される階調曲線を適用する。一方、
γ値が0.8で、Slow’が6以上の場合、印刷画像全体
の濃度を上げようとすると、濃く潰れる高濃度部の面積
の割合は大きいと判断し、輝度値0〜Xまでの画素の階
調は維持し(つまり、γを1として補正をせず)、輝度
値X+1以上から最大輝度値(輝度値255)までの範
囲は、前述の式と同様の式で表される階調曲線(図9に
おけるSlow’=20で表せられる曲線)による補正を行
う。詳しくは、同図に示す例では、0≦Y≦30の範囲
で、Y′=Y、31≦Y≦255の範囲で、Y′=22
4×{〔(Y−31)/224〕1/ γ}+31である。
In FIG. 9, for example, for the image to be processed, γ = 0.8 in the above-mentioned determination of the correction γ value, and then the value of S low ′ in the gradation maintaining judgment processing of the low luminance area is For example, if it is determined that S low ′ = 0 to 5, it is determined that the ratio of the area that is deeply crushed is small even if an attempt is made to increase the density of the entire print image, and the above-described equation using the simply obtained γ value as it is. Is applied. on the other hand,
When the γ value is 0.8 and S low ′ is 6 or more, when trying to increase the density of the entire print image, it is determined that the proportion of the area of the high-density portion that is densely crushed is large, and the luminance value is 0 to X. The gradation of the pixel is maintained (that is, γ is set to 1 and no correction is performed), and the range from the luminance value X + 1 or more to the maximum luminance value (luminance value 255) is a gradation represented by the same expression as the above expression. Correction is performed using a tonal curve (a curve represented by S low ′ = 20 in FIG. 9). More specifically, in the example shown in the drawing, Y ′ = Y in the range of 0 ≦ Y ≦ 30, Y ′ = 22 in the range of 31 ≦ Y ≦ 255.
4 × {[(Y-31) / 224] 1 / γ } +31.

【0057】以上の説明はγ値が0.8の場合に関する
ものであるが、階調曲線を変更するか否かについて上記
Slow’の値で判別するための閾値(上例のように、γが
0.8のときは、6)は、γ値毎に、異ならせることが
できる。但し、γ値が1以上の場合は、印刷画像を濃く
する補正とはならないため、本実施形態では階調曲線の
変更は行われない。
The above description relates to the case where the γ value is 0.8.
The threshold value (6 when γ is 0.8 as in the above example) for determination based on the value of S low ′ can be different for each γ value. However, when the γ value is 1 or more, the correction for increasing the density of the print image is not performed, and therefore, in the present embodiment, the gradation curve is not changed.

【0058】なお、上記の実施形態では、輝度値Xを処
理対象である画像に関係なく一定のものとしたが、ヒス
トグラムによってXの値を異ならせてもよい。また、図
9に示す例で、輝度値0〜Xの領域では、補正を行わな
い(γ値が1)ものとしたが、Slowの値が例えば6〜19
%の場合は、輝度値0〜X間の階調曲線の直線の傾きを
1/2にするなど、低輝度領域の階調を多少潰して輝度
値X以上の領域の階調を広げてもよい。
In the above embodiment, the brightness value X is constant regardless of the image to be processed. However, the value of X may be changed depending on the histogram. In the example shown in FIG. 9, the correction is not performed (the γ value is 1) in the area of the luminance values 0 to X, but the value of S low is, for example, 6 to 19
In the case of%, even if the gradation of the low luminance area is slightly crushed and the gradation of the area having the luminance value X or more is widened, for example, the gradient of the straight line of the gradation curve between the luminance values 0 to X is halved. Good.

【0059】また、上述の例では、図9に示すように輝
度値Xにおいて、低輝度領域の直線と中間輝度および高
輝度領域のγ曲線とを単純に繋ぎ合わせたが、この直線
と曲線をスムースにつなぎ合わせて階調をより連続的に
表現することもできることは勿論である。
Further, in the above-described example, as shown in FIG. 9, at the luminance value X, the straight line in the low luminance region and the γ curve in the intermediate luminance region and the high luminance region are simply connected. Needless to say, the gradation can be more continuously expressed by being connected smoothly.

【0060】(LUT作成)以上説明した階調曲線判定処
理(図4のステップS2)を終了すると、図4に示すステ
ップS3でLUT作成を行う。すなわち、階調曲線判定
処理で得られたγ値が示す階調曲線に基づいて輝度補正
のためのルックアップテーブル(LUT)を作成する。
(LUT Creation) When the above-described gradation curve determination processing (step S2 in FIG. 4) is completed, an LUT is created in step S3 shown in FIG. That is, a look-up table (LUT) for luminance correction is created based on the gradation curve indicated by the γ value obtained in the gradation curve determination processing.

【0061】本実施形態のLUTは、上述のようにして
得られたγ値の逆数を各入力輝度信号の最大輝度に対す
る比に累乗したものに最大輝度値を乗じて得られるもの
を出力輝度信号とする補正を行うものであり、輝度範囲
の全ての値(輝度値0〜255)に対応して、上記γ値
を用いた補正関係で得られる全ての輝度値を記したもの
である。すなわち、LUT L[Y]は、入力輝度信号
をY、出力輝度信号をY‘とすると、Y’=255×
[(Y/255)1/ γ]なる式によって表される変換を
行い、動的に作成されるものである。すなわち、対象画
像の処理ごとに作成される。このように補正テーブルを
動的に作成することにより、必要となるメモリ量を削減
することができる。
The LUT of the present embodiment outputs an output luminance signal obtained by multiplying the reciprocal of the γ value obtained as described above to the ratio of the maximum luminance of each input luminance signal to the maximum luminance value and multiplying the result by the maximum luminance value. In this example, all the brightness values obtained in the correction relationship using the γ value are described corresponding to all the values in the brightness range (brightness values 0 to 255). That is, if the input luminance signal is Y and the output luminance signal is Y ′, LUT L [Y] is Y ′ = 255 ×
It is dynamically created by performing the conversion represented by the equation [(Y / 255) 1 / γ ]. That is, it is created for each processing of the target image. By dynamically creating a correction table in this way, the required memory amount can be reduced.

【0062】なお、上記LUTは、動的に作成する代わ
りに上記γ値毎に、予めメモリ上に静的に用意してもよ
いことは勿論である。 (補正)次に、図4に示すステップS4において、輝度信
号Yの補正を行う。すなわち、上記のように作成したL
UT L[Y]によって、入力画像の輝度値YをY’=
L[Y]として変換し、輝度補正を行う(図3に示すB
2の処理)。
The LUT may be prepared statically in a memory in advance for each γ value instead of being dynamically created. (Correction) Next, in step S4 shown in FIG. 4, the luminance signal Y is corrected. That is, the L created as described above
By the UT L [Y], the luminance value Y of the input image is represented by Y ′ =
L [Y] and perform luminance correction (B shown in FIG. 3).
2).

【0063】さらに、輝度補正された輝度信号Y’およ
び入力画像の色差信号Cr、CbをR、G、Bの各信号
に戻し(図3に示すB3の処理)、補正された画像信号
R’G’B’を作成する。
Further, the luminance signal Y 'whose luminance has been corrected and the color difference signals Cr and Cb of the input image are returned to the R, G and B signals (the processing of B3 shown in FIG. 3), and the corrected image signal R' Create G'B '.

【0064】なお、上述の実施形態では、輝度値Yに関
する補正について説明したが、R、G、Bの各信号に対
して直接同様の補正を行っても良い。この際、上述のL
UTを用い、そのLUTにおいてYの代わりにR、G、
B、Y′の代わりにR′、G′、B′を用いて補正を行
うことができる。
In the above-described embodiment, the correction regarding the luminance value Y has been described. However, the same correction may be directly performed on each of the R, G, and B signals. At this time, the above L
Using a UT, in the LUT instead of Y, R, G,
The correction can be performed using R ', G', B 'instead of B, Y'.

【0065】このようなR、G、B信号に対する補正
は、RGB―YCrCb変換が不要であるため、処理速
度の向上を図ることができる。
Since such correction for the R, G, and B signals does not require RGB-YCrCb conversion, the processing speed can be improved.

【0066】<他の実施形態>本発明は上述のように、
複数の機器(たとえばホストコンピュータ、インタフェ
ース機器、リーダ、プリンタ等)から構成されるシステ
ムに適用しても一つの機器(たとえば複写機、ファクシ
ミリ装置)からなる装置に適用してもよい。
<Other Embodiments> The present invention, as described above,
The present invention may be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, and the like) or may be applied to an apparatus including one device (for example, a copying machine and a facsimile machine).

【0067】また、前述した実施形態の機能を実現する
ように各種のデバイスを動作させるように該各種デバイ
スと接続された装置あるいはシステム内のコンピュータ
に、前記実施形態機能を実現するための図4、図7に示
すようなソフトウェアのプログラムコードを供給し、そ
のシステムあるいは装置のコンピュータ(CPUあるい
はMPU)を格納されたプログラムに従って前記各種デ
バイスを動作させることによって実施したものも本発明
の範疇に含まれる。
FIG. 4 is a block diagram of an apparatus connected to the various devices or a computer in the system for realizing the functions of the above-described embodiment. The present invention also includes a software program code as shown in FIG. 7, which is implemented by operating a computer (CPU or MPU) of the system or apparatus according to a stored program to operate the various devices. It is.

【0068】またこの場合、前記ソフトウェアのプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコード自体、およびそのプロ
グラムコードをコンピュータに供給するための手段、例
えばかかるプログラムコードを格納した記憶媒体は本発
明を構成する。
In this case, the program code of the software implements the functions of the above-described embodiment, and the program code itself and means for supplying the program code to the computer, for example, the program code The stored storage medium constitutes the present invention.

【0069】かかるプログラムコードを格納する記憶媒
体としては例えばフロッピーディスク、ハードディス
ク、光ディスク、光磁気ディスク、CD−ROM、磁気
テープ、不揮発性のメモリカード、ROM等を用いるこ
とができる。
As a storage medium for storing such a program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, magnetic tape, nonvolatile memory card, ROM or the like can be used.

【0070】またコンピュータが供給されたプログラム
コードを実行することにより、前述の実施形態の機能が
実現されるだけではなく、そのプログラムコードがコン
ピュータにおいて稼働しているOS(オペレーティング
システム)、あるいは他のアプリケーションソフト等と
共同して前述の実施形態の機能が実現される場合にもか
かるプログラムコードは本発明の実施形態に含まれるこ
とは言うまでもない。
When the computer executes the supplied program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer or another program. Needless to say, the program code is included in the embodiment of the present invention even when the functions of the above-described embodiment are realized in cooperation with application software or the like.

【0071】さらに供給されたプログラムコードが、コ
ンピュータの機能拡張ボードやコンピュータに接続され
た機能拡張ユニットに備わるメモリに格納された後その
プログラムコードの指示に基づいてその機能拡張ボード
や機能格納ユニットに備わるCPU等が実際の処理の一
部または全部を行い、その処理によって前述した実施形
態の機能が実現される場合も本発明に含まれることは言
うまでもない。
Further, the supplied program code is stored in a memory provided in a function expansion board of the computer or a function expansion unit connected to the computer, and then stored in the function expansion board or the function storage unit based on the instruction of the program code. It is needless to say that the present invention includes a case where a provided CPU or the like performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0072】[0072]

【発明の効果】以上の説明から明らかなように、本発明
によれば、シャドー領域が画像における大きな部分を占
めるときは、出力画像における高濃度部の色の潰れを防
ぎつつ画像全体の濃度増大を図ることができる。
As is apparent from the above description, according to the present invention, when the shadow area occupies a large part of the image, the density of the entire image is increased while preventing the collapse of the color of the high density part in the output image. Can be achieved.

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

【図1】本発明の一実施形態にかかるプリントシステム
の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a print system according to an embodiment of the present invention.

【図2】上記システムにおけるプリンタドライバの処理
を示す図である。
FIG. 2 is a diagram illustrating processing of a printer driver in the system.

【図3】上記プリンタドライバの処理のうち画像補正処
理として行われる自動階調補正処理における主に信号変
換の構成を示す図である。
FIG. 3 is a diagram mainly showing a configuration of signal conversion in an automatic gradation correction process performed as an image correction process among the processes of the printer driver.

【図4】上記自動階調補正処理の手順を示すフローチャ
ートである。
FIG. 4 is a flowchart illustrating a procedure of the automatic gradation correction process.

【図5】上記自動階調補正処理の処理対象である画像が
明るい画像である場合のヒストグラムを示す図である。
FIG. 5 is a diagram illustrating a histogram when an image to be processed by the automatic gradation correction process is a bright image.

【図6】上記自動階調補正処理の処理対象である画像が
明るい画像である場合のヒストグラムを示す図である。
FIG. 6 is a diagram illustrating a histogram when an image to be processed by the automatic gradation correction process is a bright image.

【図7】図4に示す上記自動階調補正処理における階調
曲線判定の処理手順を示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure for determining a gradation curve in the automatic gradation correction processing shown in FIG.

【図8】上記階調曲線判定処理で用いるテーブルの内容
を示し、画像の種類に応じたγ値の定め方を説明する図
である。
FIG. 8 is a diagram showing the contents of a table used in the gradation curve determination processing and explaining how to determine a γ value according to the type of image.

【図9】輝度補正テーブルの変換特性曲線を示し、低輝
度領域の階調維持のための階調曲線の変更を説明する図
である。
FIG. 9 is a diagram illustrating a conversion characteristic curve of a luminance correction table and illustrating a change in a gradation curve for maintaining a gradation in a low luminance region.

【符号の説明】[Explanation of symbols]

100 ホストコンピュータ 101 アプリケーション 102 ОS(オペレーティングシステム) 103 プリンタドライバ 104 モニタドライバ 105 モニタ 106 プリンタ 107 HD 108 CPU 109 RAM 110 ROM 120 画像補正処理 121 プリンタ用補正処理 REFERENCE SIGNS LIST 100 host computer 101 application 102 $ S (operating system) 103 printer driver 104 monitor driver 105 monitor 106 printer 107 HD 108 CPU 109 RAM 110 ROM 120 image correction processing 121 printer correction processing

───────────────────────────────────────────────────── フロントページの続き (72)発明者 土屋 興宜 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 秋山 勇治 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 Fターム(参考) 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CE11 CH01 CH07 CH11 DB02 DB06 DB09 DC23 5C077 LL19 MP08 NN02 NP01 PP15 PP32 PP52 PP53 PQ12 PQ19 PQ22 PQ23 TT02 5C079 HB01 LA12 MA01 MA04 MA11 NA05 PA03 5L096 AA02 AA06 FA37 GA53 MA03 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Kochi Tsuchiya 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Inventor Yuji Akiyama 3-30-2 Shimomaruko, Ota-ku, Tokyo Non-corporation F-term (reference) 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CE11 CH01 CH07 CH11 DB02 DB06 DB09 DC23 5C077 LL19 MP08 NN02 NP01 PP15 PP32 PP52 PP53 PQ12 PQ19 PQ22 PQ23 TT02 5C079 MA03MA051 AA06 FA37 GA53 MA03

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 画像データが示す画像の明るさに関する
成分に応じたヒストグラムに基づいて前記画像データの
明るさに関する成分を補正する補正条件を定め、該定め
られた補正条件に従い、前記画像データを補正する画像
処理方法であって、 前記ヒストグラムにおいて、前記成分の所定範囲の当該
ヒストグラムにおける割合を求め、 該求めた割合に基づいて前記補正条件を定めるステップ
を有することを特徴とする画像処理方法。
1. A correction condition for correcting a component related to brightness of the image data is determined based on a histogram corresponding to a component related to brightness of an image indicated by the image data, and the image data is corrected according to the determined correction condition. An image processing method for correcting, comprising: determining, in the histogram, a ratio of a predetermined range of the component in the histogram, and determining the correction condition based on the determined ratio.
【請求項2】 前記補正条件を定めるステップは、前記
割合が所定値以上のときは、当該定めた補正条件のう
ち、前記成分の所定の範囲の画像データの補正を変更し
て当該成分値を維持する補正を行うよう当該補正条件を
定めることを特徴とする請求項1に記載の画像処理方
法。
2. The step of determining the correction condition includes, when the ratio is equal to or more than a predetermined value, changing the correction of image data in a predetermined range of the component and changing the component value in the determined correction condition. 2. The image processing method according to claim 1, wherein the correction condition is determined so as to perform the correction to be maintained.
【請求項3】 前記ヒストグラムにおいて、前記成分値
の範囲においてその最大値または最小値からの累積度数
が所定の値を示す成分値を求め、 前記ヒストグラムにおいて、前記最小値または最大値か
ら所定の成分値までの累積度数を求める、ステップをさ
らに有し、前記補正条件を定めるステップは、前記求め
た成分値および累積度数に基づいて前記明るさの度合い
を判別し、該判別した前記明るさの度合いと前記割合と
に基づいて前記補正条件を定めることを特徴とする請求
項1に記載の画像処理方法。
3. In the histogram, a component value whose cumulative frequency from a maximum value or a minimum value of the component value indicates a predetermined value in a range of the component value is obtained, and in the histogram, a predetermined component is calculated from the minimum value or the maximum value. Calculating a cumulative frequency up to a value, further comprising the step of: determining the correction condition; determining the brightness level based on the determined component value and the cumulative frequency; and determining the determined brightness level. 2. The image processing method according to claim 1, wherein the correction condition is determined based on the ratio and the ratio.
【請求項4】 前記補正条件を定めるステップは、前記
割合が所定値以上でのときは、前記明るさの度合いに基
づいて定めた補正条件のうち、前記成分値の最小値から
所定の成分値までの画像データの補正を変更して当該成
分値を維持する補正を行うよう当該補正条件を定めるこ
とを特徴とする請求項3に記載の画像処理方法。
4. The step of determining the correction condition, wherein, when the ratio is equal to or more than a predetermined value, among the correction conditions determined based on the degree of brightness, a predetermined component value is set from a minimum value of the component value. 4. The image processing method according to claim 3, wherein the correction condition is determined such that the correction of the image data up to and including the component value is maintained.
【請求項5】 前記補正条件を定めるステップは、前記
累積度数のヒストグラムの全画素数に占める割合に基づ
いて前記明るさの度合いを判別することを特徴とする請
求項3または4に記載の画像処理方法。
5. The image according to claim 3, wherein the step of determining the correction condition determines the degree of brightness based on a ratio of the cumulative frequency to the total number of pixels of the histogram. Processing method.
【請求項6】 前記成分値は、画像データが示す輝度値
であることを特徴とする請求項1ないし5のいずれかに
記載の画像処理方法。
6. The image processing method according to claim 1, wherein the component value is a luminance value indicated by image data.
【請求項7】 前記補正条件を定めるステップは、前記
成分値に基づいて当該画像を明るさに関して複数段階に
判別し、該判別した複数段階の明るさ毎に当該補正条件
を異ならせて定めることを特徴とする請求項3ないし6
のいずれかに記載の画像処理方法。
7. The step of determining the correction condition includes determining the image in a plurality of levels of brightness based on the component values, and determining the correction condition differently for each of the determined plurality of levels of brightness. 7. The method according to claim 3, wherein
The image processing method according to any one of the above.
【請求項8】 前記補正条件を定めるステップは、前記
割合に基づき、前記複数段階の明るさ毎に当該画像の明
るさの分布を複数段階で判別し、該判別した複数段階の
明るさの分布毎に当該補正条件を異ならせて定めること
を特徴とする請求項7に記載の画像処理方法。
8. The step of determining the correction condition includes determining a brightness distribution of the image in a plurality of levels for each of the plurality of levels of brightness based on the ratio, and determining the determined brightness distribution of the plurality of levels. The image processing method according to claim 7, wherein the correction condition is determined differently for each image.
【請求項9】 画像データが示す画像の明るさに関する
成分の値の画素数に関するヒストグラムから前記画像の
明るさの度合いを判別し、該判別に基づいて前記画像デ
ータの明るさに関する成分を補正する程度を定め、該定
められた補正の程度に従い当該成分を補正する画像処理
方法であって、 前記ヒストグラムにおいて、前記成分値の範囲において
その最大値または最小値からの累積度数が所定の値を示
す成分値を求め、 前記ヒストグラムにおいて、前記最小値または最大値か
ら所定の成分値までの累積度数を求め、 前記ヒストグラムにおいて、前記成分値の範囲において
その最小値から所定の成分値までの累積度数の当該ヒス
トグラムにおける割合を求め、 前記求めた成分値および累積度数に基づいて前記明るさ
の度合いを判別し、該判別した明るさと前記割合とに基
づいて前記補正する程度を定めるステップを有すること
を特徴とする画像処理方法。
9. A method for determining the degree of brightness of the image from a histogram relating to the number of pixels of the value of the component of the image represented by the image data, and correcting the component related to the brightness of the image data based on the determination. An image processing method for determining a degree and correcting the component according to the determined degree of correction, wherein in the histogram, a cumulative frequency from a maximum value or a minimum value of the component value range indicates a predetermined value. Calculating a component value; obtaining a cumulative frequency from the minimum value or the maximum value to a predetermined component value in the histogram; obtaining a cumulative frequency from the minimum value to a predetermined component value in the range of the component value in the histogram. A ratio in the histogram is obtained, and the degree of brightness is determined based on the obtained component value and the cumulative frequency. Image processing method characterized by comprising the step of determining the degree of the correction based on the different the brightness and the ratio.
【請求項10】 画像データが示す画像の明るさに関す
る成分に応じたヒストグラムに基づいて前記画像データ
の明るさに関する成分を補正条件を定め、該定められた
補正条件に従い前記画像データを補正する画像処理装置
であって、 前記ヒストグラムにおいて、前記成分の所定の範囲の当
該ヒストグラムにおける割合を求める判定手段と、 該求めた割合に基づいて前記補正条件を定める設定手段
とを具えたことを特徴とする画像処理装置。
10. An image for correcting a component related to the brightness of the image data based on a histogram corresponding to a component related to the brightness of the image indicated by the image data, and correcting the image data according to the determined correction condition. A processing device, comprising: a determination unit for obtaining a ratio of a predetermined range of the component in the histogram in the histogram; and a setting unit for determining the correction condition based on the obtained ratio. Image processing device.
【請求項11】 前記設定手段は、前記割合が所定値以
上のときは、当該定めた補正条件のうち、前記成分の所
定の範囲の補正を変更して当該成分値を維持する補正を
行うよう当該補正条件を定めることを特徴とする請求項
10に記載の画像処理装置。
11. The method according to claim 1, wherein, when the ratio is equal to or more than a predetermined value, the setting unit changes the correction of a predetermined range of the component among the predetermined correction conditions and performs correction for maintaining the component value. The image processing apparatus according to claim 10, wherein the correction condition is determined.
【請求項12】 情報処理装置によって読取り可能にプ
ログラムを格納する記憶媒体であって、 前記プログラムは、画像データが示す画像の明るさに関
する成分に応じたヒストグラムに基づいて前記画像デー
タの明るさに関する成分を補正する補正条件を定め、該
定められた補正条件に従い前記画像データを補正する画
像処理プログラムであって、 前記ヒストグラムにおいて、前記成分の所定の範囲の当
該ヒストグラムにおける割合を求め、 該求めた割合に基づいて前記補正条件を定めるステップ
を有する画像処理プログラムを格納したことを特徴とす
る記憶媒体。
12. A storage medium for storing a program readable by an information processing device, wherein the program relates to a brightness of the image data based on a histogram corresponding to a component related to a brightness of an image indicated by the image data. An image processing program for determining a correction condition for correcting a component and correcting the image data according to the determined correction condition, wherein in the histogram, a ratio of a predetermined range of the component in the histogram is determined. A storage medium storing an image processing program having a step of determining the correction condition based on a ratio.
【請求項13】 入力画像におけるシャドー領域の割合
に応じて、該入力画像に対する補正条件を設定する画像
処理方法であって、 前記入力画像における第1のシャドー領域の割合に応じ
て、該入力画像に対する第1の補正条件を設定し、 前記第1のシャドー領域とは範囲が異なる前記入力画像
における第2のシャドー領域の割合に応じて、前記第1
の補正条件のシャドー領域に対する補正条件を調整する
ことを特徴とする画像処理方法。
13. An image processing method for setting a correction condition for an input image according to a ratio of a shadow region in an input image, wherein the input image is corrected according to a ratio of a first shadow region in the input image. A first correction condition for the first shadow region is set, and the first shadow region is different from the first shadow region in accordance with a ratio of the second shadow region in the input image.
An image processing method comprising: adjusting a correction condition for a shadow area of the correction condition.
JP37553899A 1999-12-28 1999-12-28 Image processing method and image processing apparatus Expired - Fee Related JP3667181B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP37553899A JP3667181B2 (en) 1999-12-28 1999-12-28 Image processing method and image processing apparatus
US09/745,481 US7006668B2 (en) 1999-12-28 2000-12-26 Image processing method and image processing apparatus
DE60026258T DE60026258T2 (en) 1999-12-28 2000-12-27 Image processing method and image processing apparatus
EP00311699A EP1130896B1 (en) 1999-12-28 2000-12-27 Image processing method and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP37553899A JP3667181B2 (en) 1999-12-28 1999-12-28 Image processing method and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2001189862A true JP2001189862A (en) 2001-07-10
JP3667181B2 JP3667181B2 (en) 2005-07-06

Family

ID=18505682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP37553899A Expired - Fee Related JP3667181B2 (en) 1999-12-28 1999-12-28 Image processing method and image processing apparatus

Country Status (1)

Country Link
JP (1) JP3667181B2 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003051944A (en) * 2001-08-07 2003-02-21 Canon Inc Image processing method, image processing system, program and storage medium
KR100480177B1 (en) * 2002-08-29 2005-04-06 엘지전자 주식회사 Apparatus And Method For Driving Plasma Display Panel Using An Enlarging Method Of Dynamic Range
JP2006133873A (en) * 2004-11-02 2006-05-25 Canon Inc Method and apparatus for processing image
JP2006313465A (en) * 2005-05-09 2006-11-16 Konica Minolta Holdings Inc Image processing method and apparatus thereof
CN1305009C (en) * 2003-04-10 2007-03-14 精工爱普生株式会社 Image processing device and image processing method and processing program
CN100362849C (en) * 2005-01-17 2008-01-16 深圳创维-Rgb电子有限公司 Dynamic depth lifting method for TV image
US7330600B2 (en) 2002-09-05 2008-02-12 Ricoh Company, Ltd. Image processing device estimating black character color and ground color according to character-area pixels classified into two classes
US7605960B2 (en) 2005-03-28 2009-10-20 Seiko Epson Corporation Image processing apparatus and gradation reproduction method
JP2010141454A (en) * 2008-12-10 2010-06-24 Sanyo Electric Co Ltd Image processing apparatus
KR100999811B1 (en) * 2009-01-20 2010-12-08 한양대학교 산학협력단 Image quality enhancement method using histogram equalization by parity probability segmentation
US9256928B2 (en) 2011-07-23 2016-02-09 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium capable of determining a region corresponding to local light from an image
JP2017126879A (en) * 2016-01-14 2017-07-20 京セラドキュメントソリューションズ株式会社 Image forming apparatus, image forming method, and image forming program

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003051944A (en) * 2001-08-07 2003-02-21 Canon Inc Image processing method, image processing system, program and storage medium
KR100480177B1 (en) * 2002-08-29 2005-04-06 엘지전자 주식회사 Apparatus And Method For Driving Plasma Display Panel Using An Enlarging Method Of Dynamic Range
US7330600B2 (en) 2002-09-05 2008-02-12 Ricoh Company, Ltd. Image processing device estimating black character color and ground color according to character-area pixels classified into two classes
CN1305009C (en) * 2003-04-10 2007-03-14 精工爱普生株式会社 Image processing device and image processing method and processing program
JP4522229B2 (en) * 2004-11-02 2010-08-11 キヤノン株式会社 Image processing method and apparatus
JP2006133873A (en) * 2004-11-02 2006-05-25 Canon Inc Method and apparatus for processing image
CN100362849C (en) * 2005-01-17 2008-01-16 深圳创维-Rgb电子有限公司 Dynamic depth lifting method for TV image
US7605960B2 (en) 2005-03-28 2009-10-20 Seiko Epson Corporation Image processing apparatus and gradation reproduction method
JP2006313465A (en) * 2005-05-09 2006-11-16 Konica Minolta Holdings Inc Image processing method and apparatus thereof
JP2010141454A (en) * 2008-12-10 2010-06-24 Sanyo Electric Co Ltd Image processing apparatus
KR100999811B1 (en) * 2009-01-20 2010-12-08 한양대학교 산학협력단 Image quality enhancement method using histogram equalization by parity probability segmentation
US9256928B2 (en) 2011-07-23 2016-02-09 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium capable of determining a region corresponding to local light from an image
JP2017126879A (en) * 2016-01-14 2017-07-20 京セラドキュメントソリューションズ株式会社 Image forming apparatus, image forming method, and image forming program

Also Published As

Publication number Publication date
JP3667181B2 (en) 2005-07-06

Similar Documents

Publication Publication Date Title
JP3492202B2 (en) Image processing method, apparatus and recording medium
US8374429B2 (en) Image processing method, apparatus and memory medium therefor
US7940434B2 (en) Image processing apparatus, image forming apparatus, method of image processing, and a computer-readable storage medium storing an image processing program
JP4725057B2 (en) Generation of image quality adjustment information and image quality adjustment using image quality adjustment information
US8929681B2 (en) Image processing apparatus and image processing method
AU2002300994B2 (en) Method and Apparatus for Processing Image Data, Storage Medium and Program
US6954288B2 (en) Image-processing method, image-processing device, and storage medium
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
EP1130896A2 (en) Image processing method and image processing apparatus
JP4262151B2 (en) Image processing method, image processing apparatus, computer program, and storage medium
JP4208396B2 (en) Image processing method, apparatus, and recording medium
JP3667181B2 (en) Image processing method and image processing apparatus
JP2000134467A (en) Image processing method, unit and storage medium
JP2001175843A (en) Image processing method, image processor and storage medium
JP3667182B2 (en) Image processing method and image processing apparatus
JP3950551B2 (en) Image processing method, apparatus, and recording medium
JP2002077617A (en) Image processing method and apparatus, and recording medium
JP2001177731A (en) Image processing method, image processor and storage medium
JP2003051943A (en) Electronic printer enabling printing by optimum screen and image processing unit thereof
US7817303B2 (en) Image processing and image forming with modification of a particular class of colors
JP4359730B2 (en) Monotone conversion apparatus, monotone conversion method, and medium recording monotone conversion program
JP4100848B2 (en) Image processing method and image processing apparatus
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP4402041B2 (en) Image processing method and apparatus, and storage medium
JP2005235238A (en) Method and apparatus of image processing and storage medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040907

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040914

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041115

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041210

RD13 Notification of appointment of power of sub attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7433

Effective date: 20050113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050210

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050222

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050325

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050405

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090415

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090415

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100415

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110415

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130415

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130415

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140415

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees