JP2006254487A - Image processing method and apparatus, and recording medium - Google Patents

Image processing method and apparatus, and recording medium Download PDF

Info

Publication number
JP2006254487A
JP2006254487A JP2006113424A JP2006113424A JP2006254487A JP 2006254487 A JP2006254487 A JP 2006254487A JP 2006113424 A JP2006113424 A JP 2006113424A JP 2006113424 A JP2006113424 A JP 2006113424A JP 2006254487 A JP2006254487 A JP 2006254487A
Authority
JP
Japan
Prior art keywords
image
color
original image
hue
histogram
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
JP2006113424A
Other languages
Japanese (ja)
Other versions
JP4208889B2 (en
Inventor
Manabu Yamazoe
学 山添
Akihiko Uekusa
明彦 植草
Nobuo Ogura
伸夫 小倉
Kentaro Yano
健太郎 矢野
Tetsuya Suwa
徹哉 諏訪
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 JP2006113424A priority Critical patent/JP4208889B2/en
Publication of JP2006254487A publication Critical patent/JP2006254487A/en
Application granted granted Critical
Publication of JP4208889B2 publication Critical patent/JP4208889B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a high-quality output image with a little processing load and further to prevent, as much as possible, troubles caused by image processing of a special image. <P>SOLUTION: The image processing method includes creating a histogram based on pixel data of a source image, detecting pixel data corresponding to a predetermined frequency cumulatively from a predetermined pixel value, and performing image correction processing based on the detected pixel data. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像のヒストグラムに応じて画像補正処理を行う画像処理方法、装置および記録媒体に関する。   The present invention relates to an image processing method, apparatus, and recording medium that perform image correction processing according to an image histogram.

近年のパソコンの高速化、メモリの大容量化の加速と、とくにデジタルカメラやフォトスキャナーが普及したことに伴って、フォト画像のデジタル化が一般の人にも手軽に行えるようになり、パソコン上でデジタルデータとして写真調の画像を扱う機会が増えてきた。また、インクジェットプリンターを代表する出力機器側も高画質化、低価格化が進み一般のユーザーが自宅で写真を手軽に出力するという需要も急速に高まっている。   With the recent increase in the speed of personal computers and the acceleration of memory capacity, and the spread of digital cameras and photo scanners in particular, it has become easy for the general public to digitize photo images. There are increasing opportunities to handle photographic images as digital data. In addition, output devices such as ink jet printers are also increasing in demand for high-quality images and low prices, so that ordinary users can easily output photos at home.

しかしながら、上記写真調の入力画像は以下の理由により、色かぶりなどの画像の劣化要因を付帯している場合が少なくない。例えばデジタルカメラを例に取ると、CCDカメラで撮影された画像は人間の目には感じられない赤外光などの波長も取り込んでしまう場合がある。もちろん赤外カットフィルタなどの処理もなされているが必ずしも完全ではなく、カメラ内部で行われる色バランス補正も搭載されているCPUやリアルタイム処理という制約もあり、結果的に全体の色バランスを崩してしまう場合もある。また、光源色の違いを人は補正(順応)し対象物を見ることが知られているが、カメラは光源の違いをそのままフィルムに記録するのでカメラが正確に測色再現していても色かぶりしてしまっているように見えてしまう場合もある。フォトスキャナやフラットヘッドスキャナに関しても同様の現象が生じる可能性があるため、たとえネガやリバーサルフィルムでベストな状態であったとしても、これをデジタルデータ化するときに色バランスがくるうことも起こり得る。   However, there are many cases in which the photographic-tone input image is accompanied by image deterioration factors such as color cast for the following reasons. For example, taking a digital camera as an example, an image captured by a CCD camera may sometimes capture wavelengths such as infrared light that cannot be felt by human eyes. Of course, processing such as an infrared cut filter is also performed, but it is not always perfect, and there are restrictions on the CPU and the real-time processing that are equipped with color balance correction that is performed inside the camera. As a result, the overall color balance is destroyed. Sometimes it ends up. It is also known that humans correct (adapt) the difference in light source color and see the object, but the camera records the light source difference on the film as it is, so even if the camera accurately reproduces the color measurement. Sometimes it looks like it's covered. The same phenomenon may occur with photo scanners and flat head scanners, so even if it is the best with negatives and reversal film, color balance may occur when converting this to digital data. obtain.

また、デジタルカメラに限らず一般のカメラで、例えば背景の大部分に晴れた青空が含まれているようなシーンをオート撮影するとAEが働き、露出がアンダー気味になり全体的に暗くなってしまい、肝心の被写体が必ずしもベストな状態で写らない場合がある。このような状態を出力の際に改善するべく、各種の方面とりわけ写真印刷分野において様々な色補正処理が提案されている。すなわち、銀塩カメラで撮影したフィルムをラボでプリントする際には、一般に印画紙にプリントする段において撮影画像の画像解析によりシーンの解析を行い自動補正する機能が盛り込まれている。   In addition, not only digital cameras but also general cameras, for example, when a scene where a clear blue sky is included in the majority of the background is automatically shot, AE will work, the exposure will be underexposed and it will become dark overall. In some cases, the subject is not always in the best state. In order to improve such a state at the time of output, various color correction processes have been proposed in various fields, particularly in the field of photographic printing. That is, when a film photographed with a silver salt camera is printed in a laboratory, a function of analyzing a scene by image analysis of a photographed image and performing automatic correction is generally included in a stage of printing on photographic paper.

一方、パソコンを介して、入力機器側のRGB信号を、インクジェットプリンタを代表する出力機器でプリントする場合を考えると、例えばApple社のマッキントッシュはカラーシンク、Microsoft社のWindows(登録商標)はICMによってCIEのXYZ色空間を介した入力機器側と出力機器側のカラーマッチングが試みられている。しかしながら、これらの調整を厳密に行うことは非常に困難である。なぜなら、入力機器側と出力機器側では当然ながら色再現範囲が違い、さらに入力機器側はR,G,Bの発光信号であり、出力機器側はC,M,Y,Kの反射原稿であるという原理的な違いもあるからだ。その上、そもそも入力機器側からの画像が満足のいくものでない場合、これが印刷物として忠実再現できたとしても、ユーザーは満足しないという問題点がある。つまり、露出状態がよくない画像や、色かぶりによって画像全体の色バランスが崩れているような画像に対して、良好な出力結果を得るためには入力された画像データそのものを補正する必要があり、しかもユーザーの手を煩わせず、処理速度としても十分許容できる簡易的な方法が求められている。いずれにせよ、いまだに色バランスを合わせる一定のアルゴリズムが開発されていないことが問題となっている。   On the other hand, when the RGB signal on the input device side is printed by an output device such as an ink jet printer via a personal computer, for example, Apple's Macintosh is a color sink, and Microsoft's Windows (registered trademark) is ICM. Color matching between the input device side and the output device side via the CIE XYZ color space has been attempted. However, it is very difficult to make these adjustments strictly. This is because the color reproduction range is naturally different between the input device side and the output device side, and the input device side is a light emission signal of R, G, B, and the output device side is a reflection original of C, M, Y, K. This is because there is a fundamental difference. In addition, if the image from the input device side is not satisfactory in the first place, there is a problem that the user is not satisfied even if it can be faithfully reproduced as a printed matter. In other words, it is necessary to correct the input image data itself in order to obtain a good output result for images that are not well-exposed or for images where the color balance of the entire image is lost due to color cast. In addition, there is a need for a simple method that does not bother the user and is sufficiently acceptable as a processing speed. In any case, the problem is that a certain algorithm for adjusting the color balance has not yet been developed.

その一方で、画像によっては補正を行うべきではないものもある。例えば、LBフィルタを代表するカラーフィルタを装着して撮影するような場合、これは撮影者によって意図的に色かぶりを起こしていることに他ならない。また、最近一大ブームを巻き起こしたセピア調の画像データなども、その色味を補正することはさけなければならない。したがって、このように特殊効果をねらっているような画像に対しては色かぶりを取り除くような画像補正はかけるべきではない。   On the other hand, some images should not be corrected. For example, when a photograph is taken with a color filter representing an LB filter, this is nothing but the intentional color cast caused by the photographer. In addition, it is necessary to avoid correcting the color of sepia-tone image data that has recently caused a big boom. Therefore, image correction that removes the color cast should not be applied to an image that aims at such a special effect.

本発明は上述したような問題を解決するためになされたものであり、その目的は簡単な構成で高精度な非線形色バランス補正を行うことができるようにすることを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to enable highly accurate nonlinear color balance correction with a simple configuration.

また、撮影者が意図的に特殊効果をねらった画像に対しては、それを簡易的に判定し、ヒストグラムに応じた画像補正処理をかけないようにすることを目的とする。   It is another object of the present invention to make a simple determination on an image that the photographer intentionally aims for a special effect and not to perform image correction processing according to the histogram.

本願発明は、原画像のハイライトポイントおよびシャドーポイントに基づき画像補正処理を行う画像処理方法であって、原画像の色相に関するヒストグラムを作成し、前記作成された色相に関するヒストグラムの形状に基づき、前記原画像に対して画像補正処理を行うか否かを判定し、前記判定結果に応じて前記画像補正処理を制御することを特徴とする。   The present invention is an image processing method for performing image correction processing based on highlight points and shadow points of an original image, creating a histogram relating to the hue of the original image, and based on the shape of the histogram relating to the created hue, It is determined whether or not to perform image correction processing on the original image, and the image correction processing is controlled according to the determination result.

本発明によれば、簡単な構成で高精度な非線形色バランス補正を行うことができる。   According to the present invention, highly accurate nonlinear color balance correction can be performed with a simple configuration.

また、撮影者が意図的に特殊効果をねらった画像に対しては、それを簡易的に判定し、ヒストグラムに応じた画像補正処理をかけないようにすることができる。   In addition, it is possible to easily determine an image for which a photographer intentionally aims for a special effect and not to perform image correction processing according to the histogram.

(実施形態1)
本実施形態における画像処理方法では、RGBの原画像データを画素ごとに明るさを示す輝度と色味を示す色差(色度)のデータに変換する。そして輝度ヒストグラムを作成し、高輝度側、低輝度側からの累積度数値が各々規定の度数に達する輝度位置(輝度値)をハイライトポイント(白位置)、シャドーポイント(黒位置)として求める。またこのとき、ハイライトポイントとシャドーポイント検出精度を向上するために、高彩度画素を輝度ヒストグラムに含めない処理などを行ってもよい。また、原画像のデータのサイズがあらかじめ定めた規定値を超えている場合には画素を間引きながら選択し、該ヒストグラムを作成してもよい。
(Embodiment 1)
In the image processing method according to the present embodiment, RGB original image data is converted into data indicating luminance and color difference (chromaticity) indicating brightness for each pixel. Then, a luminance histogram is created, and the luminance position (luminance value) at which the cumulative frequency values from the high luminance side and the low luminance side respectively reach a prescribed frequency is determined as a highlight point (white position) and a shadow point (black position). At this time, in order to improve the accuracy of highlight point and shadow point detection, processing that does not include high saturation pixels in the luminance histogram may be performed. Further, when the data size of the original image exceeds a predetermined value, the histogram may be created by selecting pixels while thinning them out.

本実施形態における色バランスの補正は画像中の該ハイライトポイント、および該シャドーポイントに着目して行う。すなわち、色バランスが正しく合った画像はハイライトポイントにおいて色差が0で輝度は最高値、すなわち「白」であり、シャドーポイントにおいて色差が0で輝度が0、すなわち「黒」である可能性が高い。   In this embodiment, the color balance is corrected by paying attention to the highlight point and the shadow point in the image. That is, there is a possibility that an image with the correct color balance has a color difference of 0 at the highlight point and a maximum brightness, that is, “white”, and a color difference of 0 at the shadow point and a brightness of 0, that is, “black”. high.

そこで本実施形態のカラー画像処理装置の色バランス補正の概要は(1)色差信号と輝度を3軸とするような色空間中で、得られた画像中のハイライトポイントにおける色差量の平均値とシャドーポイントにおける色差量の平均値およびそれぞれの輝度を用いて、該画像の色立体軸(後述)を構成し、回転と平行移動によって該色立体軸を輝度軸に一致させるような補正を行う。
(2)その際に画像を表す色立体を拡大あるいは縮小することによって画像のコントラスト調整および彩度調整を行うものである。
Therefore, the outline of the color balance correction of the color image processing apparatus of the present embodiment is as follows: (1) The average value of the color difference amounts at the highlight points in the obtained image in a color space with the color difference signal and the luminance as three axes. The color solid axis (described later) of the image is formed using the average value of the color difference amounts at the shadow points and the respective luminances, and correction is performed so that the color solid axis coincides with the luminance axis by rotation and translation. .
(2) In this case, the contrast and saturation of the image are adjusted by enlarging or reducing the color solid representing the image.

以下、図面を参照して本実施形態を詳細に説明する。   Hereinafter, this embodiment will be described in detail with reference to the drawings.

本実施形態におけるシステムの概略の一例を図1に示す。ホストコンピュータ100には、例えばインクジェットプリンタなどのプリンタ105とモニタ106が接続されている。ホストコンピュータ100は、ワープロ、表計算、インターネットブラウザ等のアプリケーションソフトウエア101と、OS(Operating System)102、該アプリケーションによってOS102に発行される出力画像を示す各種描画命令群(イメージ描画命令、テキスト描画命令、グラフィックス描画命令)を処理して印刷データを作成するプリンタドライバ103、およびアプリケーションが発行する各種描画命令群を処理してモニタ106に表示を行うモニタドライバ104をソフトウエアとして持つ。   An example of the outline of the system in this embodiment is shown in FIG. For example, a printer 105 such as an ink jet printer and a monitor 106 are connected to the host computer 100. The host computer 100 includes application software 101 such as a word processor, spreadsheet, and Internet browser, an OS (Operating System) 102, and various drawing command groups (image drawing commands and text drawing) indicating output images issued to the OS 102 by the application. The printer driver 103 that generates print data by processing commands and graphics drawing commands) and the monitor driver 104 that processes various drawing commands issued by the application and displays them on the monitor 106 are provided as software.

ホストコンピュータ100は、これらソフトウエアが動作可能な各種ハードウエアとして中央演算処理装置CPU108、ハードディスクドライバHD107、ランダムアクセスメモリ109、リードオンリーメモリROM110等を備える。   The host computer 100 includes a central processing unit CPU 108, a hard disk driver HD 107, a random access memory 109, a read-only memory ROM 110, and the like as various hardware capable of operating these software.

図1で示される実施形態として、例えば一般的に普及しているIBM ATコンパチのパーソナルコンピュータにMicrosoft社のWindows(登録商標)95をOSとして使用し、任意の印刷可能なアプリケーションをインストールし、モニタとプリンタを接続した形態が1実施形態として考えられる。   As an embodiment shown in FIG. 1, for example, a Windows (registered trademark) 95 of Microsoft Corporation is used as an OS on a personal computer of IBM AT compatible which is widely used, and an arbitrary printable application is installed, and a monitor is installed. A form in which a printer is connected can be considered as one embodiment.

ホストコンピュータ100では、モニタに表示された表示画像に基づき、アプリケーション101で、文字などのテキストに分類されるテキストデータ、図形などのグラフィックスに分類されるグラフィックスデータ、自然画などに分類されるイメージ画像データなどを用いて出力画像データを作成する。そして、出力画像データを印刷出力するときには、アプリケーション101からOS102に印刷出力要求を行い、グラフィックスデータ部分はグラフィックス描画命令、イメージ画像データ部分はイメージ描画命令で構成される出力画像を示す描画命令群をOS102に発行する。OS102はアプリケーションの出力要求を受け、出力プリンタに対応するプリンタドライバ103に描画命令群を発行する。プリンタドライバ103はOS102から入力した印刷要求と描画命令群を処理しプリンタ105で印刷可能な印刷データを作成してプリンタ105に転送する。プリンタ105がラスタープリンタである場合は、プリンタドライバ103はOS102からの描画命令群に対して、順次画像補正処理を行い、そして順次RGB24ビットページメモリにラスタライズし、すべての描画命令をラスタライズした後にRGB24ビットページメモリ上にラスター画像を生成する。そして、各画素に対してプリンタの色再現性に依存したCMYKデータを生成し、プリンタ105に転送する。   In the host computer 100, based on the display image displayed on the monitor, the application 101 classifies text data classified into text such as characters, graphics data classified into graphics such as graphics, and natural images. Output image data is created using image image data or the like. When the output image data is printed out, the application 101 issues a print output request to the OS 102, the graphics data portion is a graphics rendering command, and the image image data portion is a rendering command indicating an output image composed of an image rendering command. The group is issued to the OS 102. The OS 102 receives an application output request and issues a drawing command group to the printer driver 103 corresponding to the output printer. The printer driver 103 processes the print request and drawing command group input from the OS 102, creates print data that can be printed by the printer 105, and transfers the print data to the printer 105. When the printer 105 is a raster printer, the printer driver 103 sequentially performs image correction processing on the rendering command group from the OS 102, sequentially rasterizes it into the RGB 24-bit page memory, and rasterizes all the rendering commands before the RGB 24 A raster image is generated on the bit page memory. Then, CMYK data depending on the color reproducibility of the printer is generated for each pixel and transferred to the printer 105.

プリンタドライバ103で行われる処理を図2を用いて説明する。   Processing performed by the printer driver 103 will be described with reference to FIG.

プリンタドライバ103は、OS102から入力した描画命令群に含まれる色情報に対して、画像補正処理部120で後述する画像補正処理を行う。プリンタ用補正処理部121は、まず画像補正処理された色情報によって描画命令をラスタライズし、RGB24ビットページメモリ上にラスター画像を生成する。そして、各画素に対してプリンタの色再現性に依存したCMYKデータを生成し、プリンタ105に転送する。   The printer driver 103 performs an image correction process, which will be described later, on the image correction processing unit 120 on the color information included in the drawing command group input from the OS 102. First, the printer correction processing unit 121 rasterizes a rendering command based on the color information subjected to the image correction process, and generates a raster image on the RGB 24-bit page memory. Then, CMYK data depending on the color reproducibility of the printer is generated for each pixel and transferred to the printer 105.

本実施形態の画像補正処理部で行われる処理を図3を用いて具体的に説明する。イメージ描画命令で示される原画像に対しては、以下の処理により色バランスのずれを補正する。イメージ描画命令以外の描画命令で示される原画像に対しては以下の処理は行わない。   Processing performed by the image correction processing unit of the present embodiment will be specifically described with reference to FIG. For the original image indicated by the image drawing command, the color balance deviation is corrected by the following processing. The following processing is not performed on the original image indicated by the drawing command other than the image drawing command.

まず、ステップS10において、原画像のヒストグラムを作成し、作成されたヒストグラムに基づきハイライトポイント、シャドーポイントを決定する。   First, in step S10, a histogram of the original image is created, and highlight points and shadow points are determined based on the created histogram.

(ハイライトポイント、シャドーポイントの決定) 画像のハイライトポイントおよびシャドーポイントを決定するために、画像に属する画素ごとに輝度Yと色差信号(C1,C2)を求める。本実施形態においては輝度と色差信号を以下の式により求める。
Y (輝度)=0.30R+0.59G+0.11B
C1(色差)=R−Y
C2(色差)=B−Y
ここで、本実施形態で扱う画素データRGBは各8ビット(256階調)データであるので輝度Yも256の深さに変換される。輝度ヒストグラムは0から255までの256の輝度値の画素がそれぞれ何度数あるかを計算することにより作成される。
(Determination of Highlight Point and Shadow Point) In order to determine the highlight point and shadow point of the image, the luminance Y and the color difference signals (C1, C2) are obtained for each pixel belonging to the image. In the present embodiment, luminance and color difference signals are obtained by the following equations.
Y (luminance) = 0.30R + 0.59G + 0.11B
C1 (color difference) = R−Y
C2 (color difference) = BY
Here, since the pixel data RGB handled in this embodiment is 8-bit (256 gradations) data, the luminance Y is also converted to a depth of 256. The luminance histogram is created by calculating how many pixels each have 256 luminance values from 0 to 255.

また、C1、C2の計算値は後の色かぶり補正時に、ハイライトポイントとシャドーポイントそれぞれの輝度値に属する画素での平均色差量を算出するデータとして用いるので、本実施形態では次のようにデータ保持を行う。0から255の構造体配列変数の形式で、度数、C1累積値、C2累積値の3メンバーを設定し、各画素ごとの演算結果を各メンバーに反映(インクリメント)していく。   In addition, since the calculated values of C1 and C2 are used as data for calculating the average color difference amount at pixels belonging to the luminance values of the highlight point and the shadow point at the time of the subsequent color fog correction, in this embodiment, as follows: Hold data. Three members of frequency, C1 accumulated value, and C2 accumulated value are set in the structure array variable format from 0 to 255, and the calculation result for each pixel is reflected (incremented) in each member.

このように補正を行う画像に関して、輝度ヒストグラムを作成し、該輝度ヒストグラムからハイライトポイントとシャドーポイントを決定する。本実施形態では、たとえば35万画素数の画像データに関しては、その約1%に相当する3500をしきい値として設定し、輝度値0、輝度値255の各端から中心方向に累積輝度度数値が上記しきい値になる点をそれぞれシャドーポイント、ハイライトポイントと定める。   A luminance histogram is created for the image to be corrected in this way, and a highlight point and a shadow point are determined from the luminance histogram. In the present embodiment, for image data of 350,000 pixels, for example, 3500 corresponding to about 1% is set as a threshold value, and the accumulated luminance value numerical value from each end of luminance value 0 and luminance value 255 to the center direction. Are defined as shadow points and highlight points, respectively.

具体的には、輝度nの画素の度数をYnとおくとき、Y0+Y1+……と累積度数を求めていき、該累積度数が3500を越えたときの輝度値(Yk)をシャドーポイントの輝度値(k)とする。次いで該Ykの輝度の画素での平均色差量を求める。前記の通り、輝度ヒストグラム作成時に各輝度値の色差信号の累積値が計算されている(輝度nの画素の累積色差をC1ntotal,C2ntotalとする)ので、シャドーポイントの輝度値Ykでの平均色差量C1k、C2kは以下のように求められる。
C1k=C1ktotal/Yk
C2k=C2ktotal/Yk
同様にY255+Y254+……と累積度数を求めていき、該累積度数が3500を越えたときの輝度値(Yw)をハイライトポイントの輝度値(w)とし、その輝度値Ywの画素の平均色差量C1w、C2wを求める。
C1w=C1wtotal/Yw
C2w=C2wtotal/Yw
以上より、「C1,C2,Y」色空間において、ハイライトポイント(C1w,C2w,Yw)とシャドーポイント(C1k,C2k,Yk)を求めることができる。
Specifically, when the frequency of a pixel with luminance n is set to Yn, the cumulative frequency is obtained as Y0 + Y1 +. k). Next, an average color difference amount at the pixel having the luminance of Yk is obtained. As described above, since the accumulated value of the color difference signal of each luminance value is calculated at the time of creating the luminance histogram (the accumulated color difference of the pixel of luminance n is C1total, C2total), the average color difference amount at the shadow point luminance value Yk C1k and C2k are obtained as follows.
C1k = C1ktotal / Yk
C2k = C2ktotal / Yk
Similarly, the cumulative frequency is obtained as Y255 + Y254 +..., The luminance value (Yw) when the cumulative frequency exceeds 3500 is set as the luminance value (w) of the highlight point, and the average color difference amount of the pixel of the luminance value Yw C1w and C2w are obtained.
C1w = C1wttotal / Yw
C2w = C2wttotal / Yw
As described above, the highlight point (C1w, C2w, Yw) and the shadow point (C1k, C2k, Yk) can be obtained in the “C1, C2, Y” color space.

なお、本実施形態では輝度値0と輝度値255の輝度位置から累積度数を求めたが、輝度値1と輝度値254から求めるなど所定のオフセットを有していてもよい。   In the present embodiment, the cumulative frequency is obtained from the luminance positions of the luminance value 0 and the luminance value 255, but may have a predetermined offset such as obtaining from the luminance value 1 and the luminance value 254.

ハイライトポイント、シャドーポイントの決定方法は上記方法に限られない。   The method for determining the highlight point and the shadow point is not limited to the above method.

例えば特開昭60−57594号公報に記載されている、入力信号の各色信号R,G,Bの重み付け加算した輝度信号について累積度数ヒストグラムを作成しその累積度数ヒストグラムにおいて、予め設定した所定の累積度数例えば、1%、99%にそれぞれ対応する輝度信号の上限値をハイライトポイント、下限値をシャドーポイントとして求める方法を用いても構わない。   For example, as described in JP-A-60-57594, a cumulative frequency histogram is created for a luminance signal obtained by weighted addition of each color signal R, G, B of an input signal, and a predetermined cumulative value set in advance in the cumulative frequency histogram is described. For example, a method may be used in which the upper limit value of the luminance signal corresponding to the frequency, for example, 1% and 99%, is used as the highlight point and the lower limit value is used as the shadow point.

また、輝度信号のかわりに他の演算を用いて明るさを示す信号を生成し、ヒストグラムを作成しても構わない。   Alternatively, a histogram may be created by generating a signal indicating brightness using another calculation instead of the luminance signal.

次に、S20において、S10で決定されたハイライトポイントおよびシャドーポイントに基づいた画像補正処理を行う。本実施形態では画像補正処理として、原画像の色かぶりを補正する色かぶり補正、原画像の輝度のコントラストを調整するコントラスト補正、および画像の見栄えをよくするための彩度補正を行う。   Next, in S20, image correction processing based on the highlight point and shadow point determined in S10 is performed. In the present embodiment, as image correction processing, color cast correction for correcting the color cast of the original image, contrast correction for adjusting the luminance contrast of the original image, and saturation correction for improving the appearance of the image are performed.

(画像補正処理)
上記の通り原画像の「C1,C2,Y」色空間におけるハイライトポイント、シャドーポイントに基づいて色かぶり補正と輝度のコントラスト補正を行う。
(Image correction processing)
As described above, color fog correction and luminance contrast correction are performed based on highlight points and shadow points in the “C1, C2, Y” color space of the original image.

もし原画像に色かぶりがなく理想的な画像であるとすれば、無彩色はR=G=Bであり、ハイライトポイント、シャドーポイントの色差量の演算値はいずれも0となる。つまり、画像を表す色立体のイメージ図で考えると、図4(a)のような状態にあるとき、該画像は理想的であるといえる。   If the original image has no color cast and is an ideal image, the achromatic color is R = G = B, and the calculated value of the color difference amount between the highlight point and the shadow point is 0. In other words, considering a color solid image diagram representing an image, it can be said that the image is ideal when it is in a state as shown in FIG.

しかし色かぶりがある場合には図4(b)の如く、かぶっている色相方向に、かぶり程度に比例して(C1w,C2w,Yw)と(C1k,C2k,Yk)を結ぶ直線(色立体軸)に傾きが生じる。色かぶり補正は該色立体軸とY軸が一致するように原画像を表す色立体を変換することで達成できる。その方法としては、色立体を回転、平行移動させることでも達成できるし、座標系を変換することでも達成できる。本実施形態では、まず原画像の色立体において、色立体軸のシャドーポイントを原点とするような座標系に移し、その座標系において、シャドーポイントすなわち原点を中心に色立体軸がY軸と平行になるように回転する。
3次元空間中で回転軸と回転角度が決まっている系で、座標系を所望の角度で回転させる回転行列を求める手法は公知の技術であるから詳細な説明は省略する。
そして、さらに、回転された色立体軸がY軸に重なるように平行移動を行う。
However, if there is a color cast, a straight line (color solid) connecting (C1w, C2w, Yw) and (C1k, C2k, Yk) in proportion to the degree of fog in the direction of the hue as shown in FIG. A tilt occurs in the axis. Color fog correction can be achieved by converting the color solid representing the original image so that the color solid axis and the Y axis coincide. This can be achieved by rotating and translating the color solid, or by changing the coordinate system. In the present embodiment, first, in the color solid of the original image, the color solid axis is moved to a coordinate system whose origin is the shadow point of the color solid axis, and in that coordinate system, the color solid axis is parallel to the Y axis centering on the shadow point, that is, the origin. Rotate to become
Since a method for obtaining a rotation matrix for rotating a coordinate system at a desired angle in a system in which a rotation axis and a rotation angle are determined in a three-dimensional space is a known technique, detailed description thereof is omitted.
Further, the translation is performed so that the rotated color solid axis overlaps the Y axis.

このように、原画像の色立体を補正することにより、原画像の色かぶりを補正することができる。   In this way, the color cast of the original image can be corrected by correcting the color solid of the original image.

次に輝度のコントラストの調整として、本実施形態ではシャドーポイントの輝度を“0”あるいはそれに近い値(例えば“10”)、ハイライトポイントの輝度を“255”あるいはそれに近い値(例えば“245”)に調整する。これは、回転により起こされた該色立体を輝度軸方向に拡大(縮小)することに相当する。   Next, as adjustment of the brightness contrast, in this embodiment, the brightness of the shadow point is “0” or a value close thereto (eg “10”), and the brightness of the highlight point is “255” or a value close thereto (eg “245”). ) To adjust. This corresponds to enlarging (reducing) the color solid caused by the rotation in the luminance axis direction.

また、彩度補正は以下のように行うことできる。そもそも彩度とは色差信号を用いれば、その距離に相当するものであるから、たとえば彩度を一律に20%上げたければ、C1、C2をそれぞれ1.20倍(ここで1.20は彩度係数)することで達成される。すなわち、該色立体ではC1,C2平面方向への拡大(縮小)に他ならない。   The saturation correction can be performed as follows. In the first place, the saturation is equivalent to the distance when the color difference signal is used. For example, if the saturation is to be uniformly increased by 20%, C1 and C2 are each 1.20 times (where 1.20 is the saturation). This is achieved by a degree coefficient). That is, the color solid is nothing but enlargement (reduction) in the C1, C2 plane direction.

そこで、本実施形態では上記輝度のコントラストを調整する拡大(縮小)率を該色立体全体に適用し、輝度コントラスト補正にともなって彩度補正も自動的に行う。   Therefore, in this embodiment, the enlargement (reduction) rate for adjusting the luminance contrast is applied to the entire color solid, and the saturation correction is automatically performed along with the luminance contrast correction.

このように、輝度のコントラスト調整の度合いに応じて、彩度補正の度合いを変更することにより、画像に適した輝度及び彩度補正を自動的に行うことができる。なお、輝度のコントラストを調整する拡大率は、変換前後の輝度範囲の比率により求める。   In this way, by changing the degree of saturation correction according to the degree of brightness contrast adjustment, brightness and saturation correction suitable for an image can be automatically performed. The enlargement ratio for adjusting the luminance contrast is obtained from the ratio of the luminance range before and after conversion.

もちろん、ユーザーが特に所望の彩度調整を望めば、該彩度係数を与え輝度補正と彩度補正を別処理として行ってもよい。   Of course, if the user desires a desired saturation adjustment, the saturation coefficient may be given and brightness correction and saturation correction may be performed as separate processes.

以上のように、原画像の各画素を輝度と色差信号(C1,C2,Y)に変換し、3次元色空間中で該色立体を回転、平行移動および拡大(縮小)することによって、(C1’,C2’,Y’)に変換し、色かぶり補正、コントラスト補正および彩度補正を同時もしくは別々に行うことができる。   As described above, by converting each pixel of the original image into luminance and color difference signals (C1, C2, Y) and rotating, translating and enlarging (reducing) the color solid in the three-dimensional color space, ( C1 ′, C2 ′, Y ′), and color fog correction, contrast correction, and saturation correction can be performed simultaneously or separately.

最後に、再度RGB信号に逆変換して補正を終了する。該逆変換は以下の式により行う。
R’=Y’+C1’
G’=Y’−(0.3/0.59)×C1’−(0.11/0.59)×C2’
B’=Y’+C2’
前記の如く、原画像の画素データに基づきヒストグラムを作成し、所定の画素値から累積して所定度数に相当する画素データを検出し、前記検出された画素データに基づき3次元色空間中で色バランスを補正することにより、少ない処理負荷で確実に色かぶり、コントラスト、彩度を補正することを可能とした画像処理方法を提供できる。
Finally, reverse conversion to RGB signals is performed again to complete the correction. The inverse transformation is performed according to the following equation.
R ′ = Y ′ + C1 ′
G ′ = Y ′ − (0.3 / 0.59) × C1 ′ − (0.11 / 0.59) × C2 ′
B '= Y' + C2 '
As described above, a histogram is created based on pixel data of an original image, pixel data corresponding to a predetermined frequency is detected by accumulating from predetermined pixel values, and a color in a three-dimensional color space is detected based on the detected pixel data. By correcting the balance, it is possible to provide an image processing method that can reliably correct the color cast, contrast, and saturation with a small processing load.

(実施形態2)
次に、実施形態1に比し、補正度合いを考慮した本発明に係る第2実施形態について説明する。
(Embodiment 2)
Next, a second embodiment according to the present invention considering the degree of correction as compared with the first embodiment will be described.

実施形態1で説明した原画像の色立体軸の傾きがあまりにも大きい場合、これを無理矢理に補正すると画像に不具合が生じる場合がある。これには例えばLBフィルタを代表するカラーフィルタなどを用いて故意に色かぶりを起こしているような場合、あるいは夕焼けなどの特殊なシーンを撮影した場合などが考えられる。   When the inclination of the color solid axis of the original image described in the first embodiment is too large, a problem may occur in the image if this is corrected forcibly. For example, there may be a case where a color cast is intentionally caused using a color filter representing an LB filter or a case where a special scene such as a sunset is photographed.

このような場合、原画像が特殊なケースであると判断し、補正を行わないかまたは、該回転角を適当に調整し補正度合いを弱めることで不具合をなくす。   In such a case, it is determined that the original image is a special case and correction is not performed, or the rotation angle is appropriately adjusted to reduce the correction degree, thereby eliminating the problem.

例えばLBフィルターのような特殊効果をねらった画像については該色立体軸の色差信号平面への正射影が例えば赤の色相方向に向いている。そして、原画像においてどの色相の色がかぶっているのかの判定は、該色立体軸の方向にから容易に判定することができる。   For example, for an image aiming at a special effect such as an LB filter, the orthogonal projection of the color solid axis onto the color difference signal plane is directed to the hue direction of red, for example. The determination of which hue color is covered in the original image can be easily made from the direction of the color solid axis.

そこで該色立体軸の方向ベクトルと輝度軸とのなす角度に着目し、例えば方向ベクトルが赤の式双方向を示した場合、また、例えば該角度が40度以上の場合は、原画像は特殊なケースであると判断し、処理を行わないかまたは処理の度合いをゆるめる。   Therefore, paying attention to the angle formed by the direction vector of the color solid axis and the luminance axis, for example, when the direction vector indicates a red expression bidirectional, or when the angle is 40 degrees or more, for example, the original image is a special image. It is determined that this is the case, and the processing is not performed or the degree of processing is relaxed.

例えば、各種のカラーフィルターの特性をあらかじめ調査し特性値(正射影の色相および角度)を記憶しておき、該特性値と原画像の特性値を比較することにより、複数のカラーフィルタの画像を検出することができる。   For example, the characteristics of various color filters are examined in advance, the characteristic values (orthographic projection hue and angle) are stored, and the characteristic values are compared with the characteristic values of the original image, so that images of a plurality of color filters are obtained. Can be detected.

なお、この補正の度合いはユーザーがマニュアルで指定してもいいし、あらかじめ角度の大きさ、該色立体軸の方向に応じて設定しておいてもよい。例えば40度の場合、該画像の色立体を20度だけ回転して起こすことで処理の度合いを調整することが可能になる。   The degree of correction may be specified manually by the user, or may be set in advance according to the size of the angle and the direction of the color solid axis. For example, in the case of 40 degrees, the degree of processing can be adjusted by rotating and rotating the color solid of the image by 20 degrees.

また、カラーフィルターの特性値を登録することができるようにすることにより、検出精度を向上させることができる。特性値の登録方法としては、例えば、登録モードを備え、登録モードが設定された場合は、特性値を登録するカラーフィルタを用いた複数の原画像の特性値を求め平均化し該カラーフィルタ名と対応させて登録するようにすればよい。   In addition, by making it possible to register the characteristic value of the color filter, the detection accuracy can be improved. As a characteristic value registration method, for example, a registration mode is provided. When the registration mode is set, the characteristic values of a plurality of original images using color filters for registering characteristic values are obtained and averaged, and the color filter name and It is only necessary to register correspondingly.

このように本実施形態によれば、該色立体軸の傾き、すなわち軸の方向と回転角度の大きさという2つの量から、補正角度のしきい値をすくなくとも2つ以上設定し画像を補正すべきかどうか、もしくは補正度合いを調節すべきかどうかの判定を行うことができ、非常に簡潔に特殊なケースごとの画像補正に伴う弊害だけをはじくことができる。   As described above, according to the present embodiment, at least two threshold values for the correction angle are set based on the inclination of the color solid axis, that is, the direction of the axis and the magnitude of the rotation angle, and the image should be corrected. It is possible to determine whether or not to adjust the correction degree, and it is possible to reject only the harmful effects associated with image correction for each special case very simply.

図3のステップS10とステップS20の間に本実施形態の特殊ケース検出処理を組み込むことにより、特殊ケースに対して実施形態1で説明した画像補正処理が行われることを防ぐことができる。   By incorporating the special case detection process of this embodiment between step S10 and step S20 of FIG. 3, it is possible to prevent the image correction process described in the first embodiment from being performed on the special case.

(実施形態3)
次に、上述した実施形態1および実施形態2に比し、さらに補正をすべきか否かを判定する構成を持ったかかる実施形態3について説明する。
(Embodiment 3)
Next, as compared with the first and second embodiments described above, a third embodiment having a configuration for determining whether or not correction should be performed will be described.

画像を解析する上で、各画素の色差信号から図5に示すように別途各画素毎の色相に関するヒストグラムを作成し、その分散値を求める。ここでサンプリングする画素は、画像全体の傾向が分かる程度に間引くことで、処理の負荷を低減できる。例えば、サムネイル画像程度の画素数があれば、フォト画像として十分認識できるから、最低限この程度あれば十分である。なお、本実施形態では色相Hを以下の式によって求める。
H=atan(C1/C2)〔0..360゜〕
例えば、LBフィルタなどを用いて撮影した場合、そのフィルタの性質上すべての画像領域にわたって、ある程度限られた色相をもつ。さらにある特定範囲の波長のみを通すような各種のカラーフィルタなどを用いて撮影した場合は、その傾向がより顕著になる。また、最近一大ブームを巻き起こしているセピア調の写真については、ある意味意図的な色かぶりを起こしているのであるから、このような画像に対しては、色かぶり補正がなされるべきではない。
In analyzing the image, a histogram relating to the hue of each pixel is separately created from the color difference signal of each pixel as shown in FIG. Here, the processing load can be reduced by thinning out the pixels to be sampled to such an extent that the tendency of the entire image is understood. For example, if the number of pixels is about the same as that of a thumbnail image, it can be sufficiently recognized as a photo image. In the present embodiment, the hue H is obtained by the following equation.
H = atan (C1 / C2) [0. . 360 °]
For example, when an image is taken using an LB filter, the hue of the image is limited to some extent over the entire image region due to the nature of the filter. Further, when photographing is performed using various color filters that allow only a specific range of wavelengths to pass, the tendency becomes more prominent. In addition, for sepia-like photos that have recently caused a big boom, in some sense intentional color fogging has occurred, so such images should not be corrected for color fogging. .

したがって、この場合当然上記分散値は小さくなるため、この値にしきい値をもうけることで、このような特殊効果をねらった写真を判別できる。これは写真に限らず、グラフィックスのように一定の色相から構成される原画像(オブジェクト)を判定し、これらの画像に対しても、実施例1に示したような補正がかかることによる不都合を回避できる。   Accordingly, in this case, the dispersion value is naturally reduced, so that a photograph aiming at such a special effect can be determined by setting a threshold value for this value. This is not limited to a photograph, and an original image (object) composed of a certain hue such as graphics is determined, and these images are also inconvenient due to the correction as shown in the first embodiment. Can be avoided.

さらに、実施形態2において輝度軸の色相平面上への正射影の角度、およびその距離によって特殊画像を判別する方法を示したが、本分散値を絡めて条件付けすると、さらにその精度を上げることができる。   Furthermore, in the second embodiment, the method of discriminating the special image based on the angle of orthographic projection on the hue plane of the luminance axis and the distance thereof has been shown. However, if the condition is entangled with this variance value, the accuracy can be further improved. it can.

すなわち、該輝度軸の正射影が特定色相に入り、かつその距離も一定以上である場合に、さらにこの分散値を見ることで、画像全体に色がかぶっているのか否かを見ることができる。   In other words, when the orthogonal projection of the luminance axis enters a specific hue and the distance is a certain distance or more, it is possible to see whether or not the entire image is covered by looking at this dispersion value. .

例えば、ある波長のみを通すフィルタを使って撮影した場合、画像全体にわたって一定の色相となるため、偶然ハイライト、シャドー部での色かぶりが大きいような画像と区別することができる。   For example, when a picture is taken using a filter that passes only a certain wavelength, a constant hue is obtained over the entire image, so that it can be distinguished from an image that has a large color cast in a highlight or shadow area.

本実施形態は、図3のステップS10で求められる色差の値から色相を求め、輝度ヒストグラムとは別に色相ヒストグラムを作成する。   In the present embodiment, a hue is obtained from the value of the color difference obtained in step S10 in FIG. 3, and a hue histogram is created separately from the luminance histogram.

そして、この色相ヒストグラムに基づき特殊ケースの検出処理を行う。   Then, a special case detection process is performed based on the hue histogram.

実施形態2と組み合わせて実施する場合は、図3のステップS10において輝度ヒストグラムに加えて色相ヒストグラムも作成するようにし、そしてステップS20とステップS10の間で色相ヒストグラムに基づく特殊ケース判定処理を行えば良い。   When implemented in combination with the second embodiment, a hue histogram is created in addition to the luminance histogram in step S10 of FIG. 3, and a special case determination process based on the hue histogram is performed between steps S20 and S10. good.

実施形態3によれば、画像全体の色相を見ることで、それが意図的になされた色かぶりであるのかどうかを判定し、そのような場合には画像補正をかけずに、作成者の意図した状態のままで出力することができる。   According to the third embodiment, it is determined whether the color cast is intentionally made by looking at the hue of the entire image. In such a case, the intention of the creator is not performed without performing image correction. It is possible to output in the same state.

(他の実施形態)
上記実施形態では、画像補正処理において最初に色かぶり補正を行い、その後に露出のアンダーやオーバーを補正するいわゆるコントラスト調整を行ったが、その順序は問われない。また、ハイライト/シャドーポイントの決定方法や画像補正に関するアルゴリズムは上記方法にかぎられず他の多種多様の方法を用いることができる。
(Other embodiments)
In the above-described embodiment, color fog correction is first performed in the image correction process, and so-called contrast adjustment for correcting underexposure and overexposure is performed, but the order is not limited. In addition, the highlight / shadow point determination method and the image correction algorithm are not limited to the above methods, and various other methods can be used.

本発明は上述した実施形態の機能を実現するように各種のデバイスを動作させるように該各種デバイスと接続された装置あるいはシステム内のコンピュータに、前記実施形態機能を実現するためのソフトウエアのプログラムコードを供給し、そのシステムあるいは装置のコンピュータ(CPUあるいはMPU)を格納されたプログラムにしたがって前記各種デバイスを動作させることによって実施したものも本発明の範疇に含まれる。   The present invention provides a software program for realizing the functions of the above-described embodiment in an apparatus or a computer in the system connected to the various devices so as to operate the various devices so as to realize the functions of the above-described embodiments. Implementations by supplying a code and operating the various devices according to a program stored in a computer (CPU or MPU) of the system or apparatus are also included in the scope of the present invention.

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

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

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

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

以上本発明を好ましい実施形態により説明したが、本発明は上述した実施例に限ることなく、クレームに示した範囲で種々の変形が可能である。   Although the present invention has been described with the preferred embodiments, the present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims.

色かぶり補正処理を行うシステムの構成を示すプロック図。FIG. 2 is a block diagram illustrating a configuration of a system that performs color cast correction processing. プリンタドライバで行う画像処理の流れを示す図。FIG. 4 is a diagram illustrating a flow of image processing performed by a printer driver. 画像補正処理処理部で行われる画像処理の流れを説明する図。The figure explaining the flow of the image process performed in an image correction process process part. 実施例における色バランス補正の原理を説明する図。FIG. 4 is a diagram for explaining the principle of color balance correction in an embodiment. 原画像の各画素の色相に関するヒストグラムの例。The example of the histogram regarding the hue of each pixel of an original image.

Claims (5)

原画像のハイライトポイントおよびシャドーポイントに基づき画像補正処理を行う画像処理方法であって、
原画像の色相に関するヒストグラムを作成し、
前記作成された色相に関するヒストグラムの形状に基づき、前記原画像に対して画像補正処理を行うか否かを判定し、
前記判定結果に応じて前記画像補正処理を制御することを特徴とする画像処理方法。
An image processing method for performing image correction processing based on highlight points and shadow points of an original image,
Create a histogram about the hue of the original image,
Based on the shape of the histogram relating to the created hue, it is determined whether to perform image correction processing on the original image,
An image processing method, wherein the image correction process is controlled according to the determination result.
前記色相に関するヒストグラムの分散を求め、該分散により前記画像補正処理を行うか否かを判定することを特徴とする請求項1記載の画像処理方法。   The image processing method according to claim 1, wherein a variance of the histogram relating to the hue is obtained, and it is determined whether or not the image correction processing is performed based on the variance. 前記原画像を示す描画命令を入力し、
前記描画命令を解析し、前記原画像がイメージであるか否かを判定することを特徴とする請求項1記載の画像処理方法。
A drawing command indicating the original image is input,
The image processing method according to claim 1, wherein the drawing command is analyzed to determine whether or not the original image is an image.
原画像のハイライトポイントおよびシャドーポイントに基づき画像補正処理を行う画像補正処理手段と、
原画像の色相に関するヒストグラムを作成する作成手段と、
前記作成された色相に関するヒストグラムの形状に基づき、前記原画像に対して画像補正処理を行うか否かを判定する判定手段と、
前記判定結果に応じて前記画像補正処理を制御する制御手段とを有することを特徴とする画像処理装置。
Image correction processing means for performing image correction processing based on highlight points and shadow points of the original image;
Creating means for creating a histogram about the hue of the original image;
Determination means for determining whether or not to perform image correction processing on the original image based on a shape of a histogram relating to the created hue;
An image processing apparatus comprising: control means for controlling the image correction process according to the determination result.
コンピュータで読み取り可能にプログラムを記録する記録媒体であって、
原画像の色相に関するヒストグラムを作成し、
前記作成された色相に関するヒストグラムの形状に基づき、前記原画像に対して画像補正処理を行うか否かを判定し、
前記判定結果に応じて、原画像のハイライトポイントおよびシャドーポイントに基づく画像補正処理を制御するプログラムを記録することを特徴とする記録媒体。
A recording medium for recording a program readable by a computer,
Create a histogram about the hue of the original image,
Based on the shape of the histogram relating to the created hue, it is determined whether to perform image correction processing on the original image,
A recording medium for recording a program for controlling an image correction process based on a highlight point and a shadow point of an original image according to the determination result.
JP2006113424A 2006-04-17 2006-04-17 Image processing method, apparatus, and recording medium Expired - Fee Related JP4208889B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006113424A JP4208889B2 (en) 2006-04-17 2006-04-17 Image processing method, apparatus, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006113424A JP4208889B2 (en) 2006-04-17 2006-04-17 Image processing method, apparatus, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP10177135A Division JP2000013625A (en) 1998-06-24 1998-06-24 Image processing method, device and recording medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2008229852A Division JP4411357B2 (en) 2008-09-08 2008-09-08 Image processing method, apparatus, and recording medium

Publications (2)

Publication Number Publication Date
JP2006254487A true JP2006254487A (en) 2006-09-21
JP4208889B2 JP4208889B2 (en) 2009-01-14

Family

ID=37094386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006113424A Expired - Fee Related JP4208889B2 (en) 2006-04-17 2006-04-17 Image processing method, apparatus, and recording medium

Country Status (1)

Country Link
JP (1) JP4208889B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123296A (en) * 2006-11-13 2008-05-29 Pioneer Electronic Corp Light source color estimation method, estimated light source color setting method, and light source color control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123296A (en) * 2006-11-13 2008-05-29 Pioneer Electronic Corp Light source color estimation method, estimated light source color setting method, and light source color control method

Also Published As

Publication number Publication date
JP4208889B2 (en) 2009-01-14

Similar Documents

Publication Publication Date Title
US7929761B2 (en) Image processing method and apparatus and storage medium
JP4194133B2 (en) Image processing method and apparatus, and storage medium
US6608926B1 (en) Image processing method, image processing apparatus and recording medium
JP2008527852A (en) White balance correction of digital camera images
JP3950551B2 (en) Image processing method, apparatus, and recording medium
JP2000013625A (en) Image processing method, device and recording medium
JP4208889B2 (en) Image processing method, apparatus, and recording medium
JP4411357B2 (en) Image processing method, apparatus, and recording medium
JP4402041B2 (en) Image processing method and apparatus, and storage medium
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP4760116B2 (en) Image processing method and apparatus
JP4909428B2 (en) Image processing method and apparatus
JP4909308B2 (en) Image processing method and apparatus
JP4818459B2 (en) Image processing method and apparatus
JP2000013595A (en) Image processing method, device and recording medium
JP4084784B2 (en) Program, information storage medium, photo printing apparatus and photo printing method
JP4220441B2 (en) Program, information storage medium, photo printing apparatus and photo printing method
JP4171722B2 (en) Program, information storage medium, photo printing apparatus and photo printing method
JP2008084236A (en) Image processor, image processing method and program
JP2005175687A (en) Image processing method, apparatus, and recording medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080408

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080609

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080708

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080908

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081021

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131031

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees