Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4379422B2 - Image processing device - Google Patents
[go: Go Back, main page]

JP4379422B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP4379422B2
JP4379422B2 JP2006019272A JP2006019272A JP4379422B2 JP 4379422 B2 JP4379422 B2 JP 4379422B2 JP 2006019272 A JP2006019272 A JP 2006019272A JP 2006019272 A JP2006019272 A JP 2006019272A JP 4379422 B2 JP4379422 B2 JP 4379422B2
Authority
JP
Japan
Prior art keywords
color
value
rgb
fog
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006019272A
Other languages
Japanese (ja)
Other versions
JP2006157951A (en
Inventor
賢治 正木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies 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 Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2006019272A priority Critical patent/JP4379422B2/en
Publication of JP2006157951A publication Critical patent/JP2006157951A/en
Application granted granted Critical
Publication of JP4379422B2 publication Critical patent/JP4379422B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

本発明は、カラー画像の画像補正処理に関する。   The present invention relates to an image correction process for a color image.

画像処理装置において、一般に入力カラー画像に対して補正をしたほうが好ましい。そこで、カラーバランス調整、色補正などの各種の補正がおこなわれる。たとえば、色かぶりとは、特定の色が画像全体を覆いカラーのバランスが崩れている状況をいう。具体的には、蛍光燈下でストロボを使わずに写した写真に典型例が見られる。しかし、実際には他のいろんな状況で発生しうる。
特開平9−149271号公報
In an image processing apparatus, it is generally preferable to correct an input color image. Therefore, various corrections such as color balance adjustment and color correction are performed. For example, color cast refers to a situation where a specific color covers the entire image and the color balance is lost. Specifically, a typical example can be seen in a photograph taken without using a strobe under a fluorescent lamp. However, it can actually occur in various other situations.
JP-A-9-149271

画像処理において、カラーバランスを正常に補正するための手法として、最も明るいところを真っ白に、最も暗いところを真っ黒にすることがよく知られている。この手法は単純で効果も大きい。しかし、画像によっては、逆効果になったり、何の効果も無かったりと、例外も多く発生する。   In image processing, as a technique for correcting the color balance normally, it is well known that the brightest part is pure white and the darkest part is black. This method is simple and effective. However, depending on the image, there may be many exceptions such as an adverse effect or no effect.

本発明の目的は、画像のカラーバランスがより効果的に調整できる画像処理装置を提供することである。   An object of the present invention is to provide an image processing apparatus capable of adjusting the color balance of an image more effectively.

本発明に係る画像処理装置は、処理対象のカラー画像データについて色かぶりの有無を検出する検出手段と、前記検出手段により色かぶりがあると検出されたカラー画像データを構成する画素ごとにかぶり色を認定する認定手段と、前記画素のRGBよりなる色成分のうち、前記認定手段によりかぶり色であると認定された色に相当する色成分の値を小さくする減算処理を行う減算手段とを備える。ここで、前記認定手段は、前記画素のRGBよりなる色成分のうち、最も高い値の色成分に相当する色を、かぶり色と認定し、前記減算手段は、前記画素のRGBよりなる色成分のうち、前記認定手段により認定されたかぶり色に相当する色成分の値を、次に大きな値を有する色成分の値と同じ値になるように減算する。 An image processing apparatus according to the present invention includes a detection unit that detects the presence or absence of color fogging in color image data to be processed, and a fog color for each pixel that constitutes color image data detected as having color fogging by the detection unit. and certification means for certifying, among the color components consisting RGB of the pixel, and a subtraction means for performing subtraction processing to reduce the value of the color component corresponding to the recognized as a fog color by the certification unit color The Here, the recognition means recognizes the color corresponding to the color component having the highest value among the color components composed of RGB of the pixel as a fog color, and the subtraction means regards the color component composed of RGB of the pixel. Of these, the value of the color component corresponding to the fog color certified by the certification means is subtracted so as to be the same value as the value of the color component having the next largest value.

好ましくは、さらに、前記減算手段による減算処理後のカラー画像データのコントラストを補正するコントラスト補正手段を備える。   Preferably, a contrast correction unit that corrects the contrast of the color image data after the subtraction processing by the subtraction unit is further provided.

本発明に係るコンピュータ読み取り可能な記録媒体は、処理対象のカラー画像データについて色かぶりの有無を検出するステップと、色かぶりがあると検出されたカラー画像データを構成する画素ごとにかぶり色を認定するステップと、前記画素のRGBよりなる色成分のうち、かぶり色であると認定された色に相当する色成分の値を小さくする減算処理を行うステップとをコンピュータに実行させるためのプログラムを記憶したコンピュータ読み取り可能な記録媒体である。ここで、前記プログラムは、前記かぶり色を認定するステップにおいて、前記画素のRGBよりなる色成分のうち、最も高い値の色成分に相当する色を、かぶり色と認定し、前記減算処理を行うステップにおいて、前記画素のRGBよりなる色成分のうち、前記認定されたかぶり色に相当する色成分の値を、次に大きな値を有する色成分の値と同じ値になるように減算する、ように、前記かぶり色を認定するステップ及び前記減算処理を行うステップを実行させる。 The computer-readable recording medium according to the present invention includes a step of detecting the presence or absence of color fog for color image data to be processed, and a fog color for each pixel constituting the color image data detected as having color fog. Storing a program for causing the computer to execute a step of reducing a value of a color component corresponding to a color recognized as a fog color among the color components composed of RGB of the pixel. The computer-readable recording medium . Here, in the step of recognizing the cover color, the program recognizes a color corresponding to the color component having the highest value among the color components composed of RGB of the pixel as a cover color, and performs the subtraction process. In the step, the value of the color component corresponding to the certified fog color among the color components composed of RGB of the pixel is subtracted so as to be the same value as the value of the color component having the next largest value. , Certifying the cover color and performing the subtraction process.

好ましくは、前記プログラムは、さらに、前記減算処理を行うステップにおける減算処理後のカラー画像データのコントラストを補正するステップを前記コンピュータに実行させるPreferably, the program further causes the computer to execute a step of correcting the contrast of the color image data after the subtraction process in the step of performing the subtraction process.

本発明によれば、色かぶりであると認定された色の画像データを小さくする減算処理を行うので、画像のカラーバランスをより効果的に調整することができる。   According to the present invention, since the subtraction process for reducing the image data of the color recognized as the color cast is performed, the color balance of the image can be adjusted more effectively.

以下、添付の図面を参照して本発明の実施の形態を説明する。なお、図面において、同じ参照記号は同一または同等のものを示す。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the drawings, the same reference symbols denote the same or equivalent.

本発明の実施形態の情報処理装置(以下、システムという)は、中央演算処理装置(以下、CPUという)を備えシステム全体を制御する制御装置1(コンピュータ)を中心として構成される。図1において、矢印はデータの流れを示す。ディスプレイ2は、画像または文字などを表示すると共に、操作のための各種画面の表示等を行う。キーボード3とマウス4は、各種入力、指示操作等を行う。フレキシブルディスク5とハードディスク6は、画像データとその属性情報などを記憶及び保管するデータ保管媒体であり、システムは、フレキシブルディスク5とハードディスク6にそれぞれアクセスするフレキシブルディスクドライブとハードディスクドライブを備える。プリンタ7は、画像データ、画像編集により作成した図面などを用紙に印刷する。スキャナ8は、原稿から画像データを読み取る。CD−ROM9は、多量の各種データを記憶する記録媒体であり、システムは、CD−ROM9にアクセスするCD−ROMドライブを備える。また、音声出力のためのスピーカー10と音声入力用のマイクロフォン11が接続される。後述の画像処理プログラムは、CD−ROMなどの外部記録媒体から読み込まれる。   An information processing apparatus (hereinafter referred to as a system) according to an embodiment of the present invention is configured around a control apparatus 1 (computer) that includes a central processing unit (hereinafter referred to as a CPU) and controls the entire system. In FIG. 1, arrows indicate the flow of data. The display 2 displays images or characters and displays various screens for operation. The keyboard 3 and mouse 4 perform various inputs and instruction operations. The flexible disk 5 and the hard disk 6 are data storage media for storing and storing image data and attribute information thereof, and the system includes a flexible disk drive and a hard disk drive that access the flexible disk 5 and the hard disk 6, respectively. The printer 7 prints image data, a drawing created by image editing, and the like on a sheet. The scanner 8 reads image data from a document. The CD-ROM 9 is a recording medium that stores a large amount of various data, and the system includes a CD-ROM drive that accesses the CD-ROM 9. Further, a speaker 10 for audio output and a microphone 11 for audio input are connected. An image processing program to be described later is read from an external recording medium such as a CD-ROM.

図2は、制御装置1を中心としたブロック図である。制御装置1は、CPU201を中心として構成され、CPU201に接続されるデータバス220を介して、種々の処理プログラムなどを記憶するROM203、各種データおよびプログラムを記憶するRAM204、画像または文字等の表示をディスプレイ2に行う表示制御回路205、キーボードからの入力を転送制御するキーボード制御回路206、マウス4からの入力を転送制御するマウス制御回路207、フレキシブルディスクドライブを制御するフレキシブルディスクドライブ制御回路208、ハードディスクドライブを制御するハードディスク制御回路209、プリンタ7への出力を制御するプリンタ制御回路210、スキャナ8を制御するスキャナ制御回路211、CD−ROMドライブを制御するCD−ROMドライブ制御回路212、スピーカー10を制御するスピーカー制御装置213、および、マイクロフォン11を制御するマイクロフォン制御回路214がそれぞれ接続される。   FIG. 2 is a block diagram centering on the control device 1. The control device 1 is configured with the CPU 201 as the center, and via a data bus 220 connected to the CPU 201, a ROM 203 that stores various processing programs, a RAM 204 that stores various data and programs, and displays images or characters. Display control circuit 205 for display 2, keyboard control circuit 206 for transfer control of input from keyboard, mouse control circuit 207 for transfer control of input from mouse 4, flexible disk drive control circuit 208 for controlling flexible disk drive, hard disk A hard disk control circuit 209 that controls the drive, a printer control circuit 210 that controls output to the printer 7, a scanner control circuit 211 that controls the scanner 8, and a CD-ROM drive system that controls the CD-ROM drive. Circuit 212, a speaker control unit 213 controls the speaker 10 and, a microphone control circuit 214 for controlling the microphone 11 are respectively connected.

また、クロック回路202は、本システムを動作させるために必要な各種クロック信号を供給する。さらに、データバスを介して各種拡張ボードを接続するための拡張スロット215が接続される。なお、拡張スロット215にSCSIIボードを接続してフレキシブルディスクドライブ、ハードディスクドライブ、スキャナ、CD−ROMドライブなどを接続してもよい。   The clock circuit 202 supplies various clock signals necessary for operating this system. Further, an expansion slot 215 for connecting various expansion boards via the data bus is connected. Note that an SCSII board may be connected to the expansion slot 215 to connect a flexible disk drive, a hard disk drive, a scanner, a CD-ROM drive, or the like.

このシステムにおいて、記録媒体として、フレキシブルディスク5とハードディスク6が使用されるが、MOなどの他の情報記録媒体を用いてもよい。また、画像データの入力装置としてスキャナ8及びCD−ROM9を使用するが、スチルビデオカメラ等の他の入力装置を用いてもよい。また、出力装置としてプリンタ7を使用するが、デジタルコピアなどの他の出力装置を用いてもよい。   In this system, the flexible disk 5 and the hard disk 6 are used as recording media, but other information recording media such as MO may be used. Further, although the scanner 8 and the CD-ROM 9 are used as image data input devices, other input devices such as a still video camera may be used. Further, although the printer 7 is used as an output device, other output devices such as a digital copier may be used.

このシステムは、フルカラー画像の自動編集加工処理をおこなう。ここで、画像補正処理において、画像メモリに記憶された画像データに対して補正がなされる。補正処理開始命令がユーザーにより入力されると、画像補正処理のルーチンが起動され、画像補正処理を行う。画像補正には、その他に、画像ファイル入出力処理、画像表示処理、補正操作用グラフィックユーザーインタフェース(GUI)処理、GUI処理におけるエラー処理、解像度変更処理などが含まれるが、これらについての説明は省略する。   This system performs automatic editing processing of full-color images. Here, in the image correction process, the image data stored in the image memory is corrected. When a correction processing start command is input by the user, an image correction processing routine is activated to perform image correction processing. Image correction includes image file input / output processing, image display processing, graphic user interface (GUI) processing for correction operation, error processing in GUI processing, resolution change processing, and the like. To do.

このシステムにおける画像自動補正処理において、画像データに対して画像補正がなされる。画像補正ルーチンには、本発明の対象であるカラーバランス処理が含まれる。補正処理開始命令がユーザーにより入力されると、このルーチンが起動され、自動で画像補正処理を行う。画像自動補正には、その他に、画像ファイル入出力処理、画像表示処理、補正操作用グラフィックユーザーインタフェース(GUI)処理、GUI処理におけるエラー処理および解像度変更処理が含まれるが、これらについての説明は省略する。   In the automatic image correction processing in this system, image correction is performed on the image data. The image correction routine includes color balance processing that is the subject of the present invention. When a correction processing start command is input by the user, this routine is activated to automatically perform image correction processing. The automatic image correction includes an image file input / output process, an image display process, a graphic user interface (GUI) process for correction operation, an error process in the GUI process, and a resolution change process. To do.

図3は、制御装置1による画像補正のメインフローを示す。この画像補正において、カラーバランスの修正の際に、RGBのヒストグラムの重なりが最大になるような補正を行う。なお、特開平9−149271号公報にヒストグラムを使って単純伸張を行う画像処理が記載されている。しかし、これはヒストグラムの重なり具合に着目したものではない。   FIG. 3 shows a main flow of image correction by the control device 1. In this image correction, correction is performed so as to maximize the overlap of RGB histograms when correcting the color balance. Japanese Patent Application Laid-Open No. 9-149271 describes image processing for performing simple expansion using a histogram. However, this does not focus on how the histograms overlap.

まず、画像補正対象のファイルを選択し(ステップS10、以下「ステップ」を省略する)、画像補正後のファイルの出力先を選択する(S12)。   First, an image correction target file is selected (step S10, hereinafter “step” is omitted), and an output destination of the file after image correction is selected (S12).

次に、選択されたファイルを順次読み込んで画像補正を行う。まず、画像ファイルを表す変数nを1として(S14)、n番目の画像ファイルを入力する(S16)。次に、画像補正を実行し(S18)、第n画像ファイルに出力する(S20)。本実施形態では、後で説明するように、画像補正の実行(S18)において、RGBのヒストグラムの重なりが最大になるように画像を補正する。   Next, the selected files are read sequentially to perform image correction. First, a variable n representing an image file is set to 1 (S14), and the nth image file is input (S16). Next, image correction is executed (S18) and output to the nth image file (S20). In the present embodiment, as will be described later, in the image correction execution (S18), the image is corrected so that the overlap of RGB histograms is maximized.

次に、変数nをインクリメントして(S22)、全入力ファイルの処理が終了か否かを判断する(S24)。終了でない場合は、S16に戻り、上述の処理を選択されたすべての画像ファイルに対して繰り返す。   Next, the variable n is incremented (S22), and it is determined whether or not the processing of all input files is completed (S24). If not, the process returns to S16 and the above process is repeated for all the selected image files.

図4は、画像補正の実行(図3、S18)のフローを示す。ここで、ヒストグラムの重なりが最大になるように画像を補正する。まず、入力画像データについてRGB各プレーンのヒストグラムを作成し(S30)、RGBヒストグラムのピーク値を算出する(S32)。次に、RGBヒストグラムのO点に平行移動をする(S34)。次に、RGBヒストグラムのピーク値が一致するように、ヒストグラムを掛け算する(S36)。次に、RGBのヒストグラムの重なる面積を計算する(S38)。次に、RGBのヒストグラムの重なり面積が最大になるように平行移動量を算出する(S40)。この平行移動量算出は以下のように行った。まず、RGBのヒストグラムの重なる面積を計算する。次に、RGBの重心を計算し、RGBの重心で最も値の大きなものに他の2つを合わせるよう移動する。次に、移動した他の2つを1ステップずつ移動させて重なり面積を計算し、小さくなれば戻す。次に、RGBのヒストグラムのカーブに応じたカラーバランス補正をRGBの各プレーンに行う(S42)。この補正は以下のように行う。オリジナルのヒストグラムと重なり面積が最大になったヒストグラムを比較して、RGB各プレーンごとに、それぞれの階調に対して平行移動量と倍率を算出し、各画素に階調に応じた処理を行う。   FIG. 4 shows a flow of execution of image correction (S18 in FIG. 3). Here, the image is corrected so that the histogram overlap is maximized. First, a histogram of each RGB plane is created for input image data (S30), and a peak value of the RGB histogram is calculated (S32). Next, translation is performed to point O of the RGB histogram (S34). Next, the histograms are multiplied so that the peak values of the RGB histograms coincide (S36). Next, the overlapping area of the RGB histograms is calculated (S38). Next, the parallel movement amount is calculated so that the overlapping area of the RGB histograms is maximized (S40). This parallel movement amount calculation was performed as follows. First, the overlapping area of the RGB histograms is calculated. Next, the center of gravity of RGB is calculated, and movement is performed so that the other two of the center of gravity of RGB have the largest value. Next, the other two moved are moved one step at a time to calculate the overlap area, and if smaller, return. Next, color balance correction according to the curve of the RGB histogram is performed on each of the RGB planes (S42). This correction is performed as follows. Compare the original histogram and the histogram with the largest overlap area, calculate the parallel movement amount and magnification for each gradation for each RGB plane, and perform processing according to the gradation for each pixel .

次に、本発明の第2の実施形態について説明する。本実施形態では、画像補正の実行(図3、S18)において、色かぶりを検出し補正実行する。 Next, a second embodiment of the present invention will be described. In the present embodiment, in the execution of image correction (FIG. 3, S18), color cast is detected and correction is performed .

図5は、第2の実施形態における画像補正の実行のフローを示す。まず、色かぶりを検出する(S50)。色かぶりとは、特定の色が画像全体を覆いカラーのバランスが崩れている状況である。   FIG. 5 shows a flow of execution of image correction in the second embodiment. First, a color cast is detected (S50). Color cast is a situation where a specific color covers the entire image and the color balance is lost.

この色かぶり検出は、図6に示すように行った。まず、画像をRGBデータからHSLデータに変換する(S500)。次に、画像中から、Lが15から85程度の領域色のある部分を抽出する(S502)。色かぶりの判定には、特定の色の対象物の除外を考慮せねばならない(一定色の排除)。そこで、次に、色相(H)において特定の領域(幅20度程度)に全ピクセルの85%以上が集まっているかどうか判定する(S504)。この領域に集まっていれば、色かぶりではなく一定色と判断する。次に、色相(H)において特定の領域(幅50度程度)に全ピクセルの80%以上が集まっているかどうか判定する(S506)。この領域に集まっていれば、その色での色かぶりと判定する。さらに、緑かぶりについて別判定をする(S508)。緑かぶりは色相(H)において他の色かぶりよりも広がる傾向をもっているために、領域幅を90度ほどに広げて再判断する。この範囲内に入っていれば緑かぶりであると判定する。最後に、色かぶりと判定された色をRGB空間に変換し、R、G、B値の中で最も高い色をかぶり色として認定する(S510)。   This color fog detection was performed as shown in FIG. First, the image is converted from RGB data to HSL data (S500). Next, a portion having an area color having L of about 15 to 85 is extracted from the image (S502). In determining color cast, the exclusion of specific color objects must be taken into account (exclusion of certain colors). Therefore, it is next determined whether or not 85% or more of all the pixels are gathered in a specific region (width of about 20 degrees) in the hue (H) (S504). If they are gathered in this area, it is determined that the color is not a color cast but a constant color. Next, it is determined whether or not 80% or more of all the pixels are gathered in a specific region (width of about 50 degrees) in the hue (H) (S506). If it is gathered in this area, it is determined that the color cast is that color. Further, another determination is made regarding the green fog (S508). Since the green fog tends to spread more than the other color fog in the hue (H), the area width is increased to about 90 degrees and re-determination is performed. If it falls within this range, it is determined that the head is green. Finally, the color determined as the color cast is converted into the RGB space, and the highest color among the R, G, and B values is recognized as the cast color (S510).

図5に戻って説明を続けると、次に、かぶり色の減算を行う(S52)。具体的には、各ピクセルはそれぞれRGBの値を持っているが、このRGBの中でもっとも高い値の色をかぶり色として認定される。ここでRGB=(200,180,130)とすると、この場合は、かぶり色はRであり、その値は200となる。ここでいう減算とは200から20を差し引いて、180にすることである。RGB=(180,180,130)となる。 Referring back to FIG. 5, then performs a subtraction of the pressurized first time color (S52). Specifically, each pixel has an RGB value, but the highest color among the RGB values is recognized as a cover color. Here, assuming that RGB = (200, 180, 130), in this case, the fogging color is R and the value thereof is 200. Subtraction here means subtracting 20 from 200 to 180. RGB = (180, 180, 130).

この過程でヒストグラムが移動することを具体的に説明する。話を簡単にするためにRGBのうちRGだけ考えてみよう。図7に元のヒストグラムの1例を示す。図7では、Rのヒストグラムが高い所までのびている。いまここで、RG=(230,180)の値を持っているある点Pについて考える。ここでPはRに関しては図7のA点に表される領域に存在するとすると、Rを小さくしてGと同じレベルにすることは、ヒストグラム上でAに相当する点が減少して領域D内のどこかに移動するということになる。   The movement of the histogram in this process will be specifically described. To simplify the story, consider only RG among RGB. FIG. 7 shows an example of the original histogram. In FIG. 7, the R histogram extends to a high place. Now consider a point P having a value of RG = (230,180). If P is present in the region represented by point A in FIG. 7 with respect to R, reducing R to the same level as G reduces the number of points corresponding to A on the histogram, resulting in region D. It will move to somewhere inside.

次に、RGBを反転してYMCのデータを作成し、ここからかぶり色を減算する(S54)。上述のステップS52までの処理によりRGBのうち多すぎる色の修正は可能である。しかし、少なすぎる色の修正はできないので、RGBを反転させてYMCを作り、これに同様な処理を行うことで修正を実現する。 Then, by inverting the RGB to create a data of YMC, subtracting the here or Laka the first time in color (S54). It is possible to correct too many colors of RGB by the processing up to step S52 described above. However, since too few colors cannot be corrected, the correction is realized by reversing RGB to create a YMC and performing the same processing.

次に、RGBの各プレーンの最大値と最小値を求め、それぞれの拡大率を算出し(S56)、RGBの各プレーンの拡大率に応じて拡大を行う(S58)。この画像補正では、色を削っていく方向で色かぶりを取るため、全体にオリジナルよりも暗くなる傾向を持っている。そこで、これを補正するためにステップS56、S58で、全体のコントラスト補正を行っている。   Next, the maximum value and the minimum value of each RGB plane are obtained, the respective enlargement ratios are calculated (S56), and the enlargement is performed according to the enlargement ratios of the respective RGB planes (S58). In this image correction, since the color cast is removed in the direction of removing the color, the whole image tends to be darker than the original. In order to correct this, the entire contrast is corrected in steps S56 and S58.

第2の実施の形態では、ステップS56、S58で、明るさを確保するために明度の補正をおこなっている。しかし、ここに、ヒストグラムのピーク位置を一致させるようなヒストグラムの拡大を用いてもよい。   In the second embodiment, brightness correction is performed in steps S56 and S58 in order to ensure brightness. However, an enlargement of the histogram that matches the peak positions of the histogram may be used here.

なお、本発明では、各画素がRGBの値を持つことを前提に話を進めてきたが、CCDで使われているベイヤー配列でも応用可能である。   In the present invention, the description has been made on the assumption that each pixel has RGB values, but the present invention can also be applied to a Bayer array used in a CCD.

画像処理装置の全体構成の図Diagram of overall configuration of image processing apparatus 制御装置を中心としたブロック図Block diagram with a focus on control devices 第1の実施形態における画像補正のメインフローチャートMain flowchart of image correction in the first embodiment 画像補正の実行のフローチャートFlow chart for executing image correction 第2の実施形態における画像補正の実行のフローチャートFlowchart of execution of image correction in the second embodiment 色かぶり検出のフローチャートColor cast detection flowchart 元のヒストグラムの1例の図Illustration of an example of the original histogram

符号の説明Explanation of symbols

1 制御装置、 2 ディスプレイ、 201 CPU。

1 control device, 2 display, 201 CPU.

Claims (4)

処理対象のカラー画像データについて色かぶりの有無を検出する検出手段と、
前記検出手段により色かぶりがあると検出されたカラー画像データを構成する画素ごとにかぶり色を認定する認定手段と、
前記画素のRGBよりなる色成分のうち、前記認定手段により認定されたかぶり色に相当する色成分の値を小さくする減算処理を行う減算手段とを備え、
前記認定手段は、前記画素のRGBよりなる色成分のうち、最も高い値の色成分に相当する色を、かぶり色と認定し、
前記減算手段は、前記画素のRGBよりなる色成分のうち、前記認定手段により認定されたかぶり色に相当する色成分の値を、次に大きな値を有する色成分の値と同じ値になるように減算する、
画像処理装置。
Detection means for detecting the presence or absence of color cast on the color image data to be processed;
A certifying means for certifying a fog color for each pixel constituting the color image data detected as having color fog by the detecting means;
Of the color components consisting RGB of the pixel, and a subtraction means for performing subtraction processing to reduce the value of the color component corresponding to the head color, which is by Ri認 constant in the certification means,
The recognition means recognizes the color corresponding to the color component having the highest value among the color components composed of RGB of the pixel as a fog color,
The subtracting means sets the value of the color component corresponding to the fog color certified by the certification means among the color components composed of RGB of the pixel to be the same value as the value of the color component having the next largest value. Subtract,
Image processing device.
さらに、前記減算手段による減算処理後のカラー画像データのコントラストを補正するコントラスト補正手段を備える、請求項に記載の画像処理装置。 The image processing apparatus according to claim 1 , further comprising a contrast correction unit that corrects a contrast of the color image data after the subtraction process by the subtraction unit. 処理対象のカラー画像データについて色かぶりの有無を検出するステップと、
色かぶりがあると検出されたカラー画像データを構成する画素ごとにかぶり色を認定するステップと、
前記画素のRGBよりなる色成分のうち、前記認定されたかぶり色に相当する色成分の値を小さくする減算処理を行うステップと
をコンピュータに実行させるためのプログラムを記憶したコンピュータ読み取り可能な記録媒体であって、
前記プログラムは、前記かぶり色を認定するステップにおいて、前記画素のRGBよりなる色成分のうち、最も高い値の色成分に相当する色を、かぶり色と認定し、
前記減算処理を行うステップにおいて、前記画素のRGBよりなる色成分のうち、前記認定されたかぶり色に相当する色成分の値を、次に大きな値を有する色成分の値と同じ値になるように減算する、
ように、前記コンピュータに前記かぶり色を認定するステップ及び前記減算処理を行うステップを実行させる、前記コンピュータ読み取り可能な記録媒体。
Detecting the presence or absence of color cast on the color image data to be processed;
Certifying a fog color for each pixel constituting color image data detected as having color fog ;
Wherein among the color components consisting of RGB pixel, the certified head computer readable recording medium storing a program for executing the steps on a computer to perform a subtraction process to reduce the value of the color component corresponding to the color Because
In the step of certifying the cover color, the program certifies a color corresponding to a color component having the highest value among color components composed of RGB of the pixel as a cover color,
In the step of performing the subtracting process, among the color components composed of RGB of the pixel, the value of the color component corresponding to the certified fog color is set to the same value as the value of the color component having the next largest value. Subtract,
As described above, the computer-readable recording medium causing the computer to execute the step of identifying the fog color and the step of performing the subtraction process.
前記プログラムは、さらに、前記減算処理を行うステップにおける減算処理後のカラー画像データのコントラストを補正するステップを前記コンピュータに実行させる、請求項に記載のコンピュータ読み取り可能な記録媒体。 The computer-readable recording medium according to claim 3 , wherein the program further causes the computer to execute a step of correcting contrast of the color image data after the subtraction process in the step of performing the subtraction process.
JP2006019272A 2006-01-27 2006-01-27 Image processing device Expired - Fee Related JP4379422B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006019272A JP4379422B2 (en) 2006-01-27 2006-01-27 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006019272A JP4379422B2 (en) 2006-01-27 2006-01-27 Image processing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP18044299A Division JP3826623B2 (en) 1999-06-25 1999-06-25 Image processing device

Publications (2)

Publication Number Publication Date
JP2006157951A JP2006157951A (en) 2006-06-15
JP4379422B2 true JP4379422B2 (en) 2009-12-09

Family

ID=36635574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006019272A Expired - Fee Related JP4379422B2 (en) 2006-01-27 2006-01-27 Image processing device

Country Status (1)

Country Link
JP (1) JP4379422B2 (en)

Also Published As

Publication number Publication date
JP2006157951A (en) 2006-06-15

Similar Documents

Publication Publication Date Title
JP5113514B2 (en) White balance control device and white balance control method
CN101661615B (en) Image processing apparatus for performing gradation correction on subject image
JP5032911B2 (en) Image processing apparatus and image processing method
CN101527860B (en) White balance control apparatus, control method therefor, and image sensing apparatus
JP6282156B2 (en) Image device, image processing method, control program, and storage medium
US6775408B1 (en) Image processor
JP2004274720A (en) Data conversion apparatus and data conversion program
JP6415062B2 (en) Image processing apparatus, image processing method, control program, and recording medium
JP2009060385A (en) Image processing apparatus, image processing method, and image processing program
US10848644B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
US9888154B2 (en) Information processing apparatus, method for processing information, and computer program
US20030231856A1 (en) Image processor, host unit for image processing, image processing method, and computer products
JP3800873B2 (en) Image processing apparatus and method
JPH11146219A5 (en)
JP5245991B2 (en) BRIGHTNESS CORRECTION PROGRAM, BRIGHTNESS CORRECTION METHOD, AND BRIGHTNESS CORRECTION DEVICE
JP4379422B2 (en) Image processing device
JP4774757B2 (en) Image processing apparatus, image processing program, electronic camera, and image processing method
JP2004023737A (en) Image processing apparatus and method
JP3826623B2 (en) Image processing device
JP2001358957A (en) Image processing method, image processing apparatus, and recording medium
JP2022012832A (en) Image processing equipment and image processing methods, imaging equipment, programs
JP2006114006A (en) Gradation conversion device, program, electronic camera, and method thereof
JP4578398B2 (en) Image correction apparatus and method, and image correction program
JP6098227B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP2018085578A (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070807

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071005

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080415

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090219

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090609

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090805

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

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

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

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

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

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees