JP2008283724A - Method, apparatus and program for image processing - Google Patents

Method, apparatus and program for image processing Download PDF

Info

Publication number
JP2008283724A
JP2008283724A JP2008214816A JP2008214816A JP2008283724A JP 2008283724 A JP2008283724 A JP 2008283724A JP 2008214816 A JP2008214816 A JP 2008214816A JP 2008214816 A JP2008214816 A JP 2008214816A JP 2008283724 A JP2008283724 A JP 2008283724A
Authority
JP
Japan
Prior art keywords
image
image data
contrast
histogram
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008214816A
Other languages
Japanese (ja)
Other versions
JP4445026B2 (en
Inventor
Ichigaku Mino
一学 三野
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2008214816A priority Critical patent/JP4445026B2/en
Publication of JP2008283724A publication Critical patent/JP2008283724A/en
Application granted granted Critical
Publication of JP4445026B2 publication Critical patent/JP4445026B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To quantify the sense of contrast perceived by a viewer of an image, and to carry out adequate image processing on image data based on the sense of contrast. <P>SOLUTION: Contrast-sense quantification means 1 generates unsharp image data of image data S0 and then generates a histogram of the unsharp image data. Since the histogram of the image data S0 includes lightness information of details of the image, a distribution width thereof does not represent the contrast perceived by the viewer of the image represented by the image data S0 as a whole. However, since the histogram of the unsharp image data excludes information of the details in the image, a distribution width of the unsharp image data represents the contrast of the overall image. The distribution width of the histogram of the unsharp image data is then found as the sense of contrast C0 and inputted to processing means 2. In the processing means 2, tone conversion processing is carried out on the image data S0 by changing a tone conversion LUT based on the sense of contrast C0, and processed image data S1 are obtained. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像を見た人が実際にその画像から受けるコントラストに対する感覚を定量化し、さらには定量化されたコントラスト感に基づいて画像データに対して画像処理を施す画像処理方法および装置並びに画像処理方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention provides an image processing method and apparatus for quantifying a sense of contrast actually received from an image by a person who has viewed the image, and further performing image processing on image data based on the quantified contrast feeling. The present invention relates to a program for causing a computer to execute a processing method.

デジタルカメラにおいて取得したデジタル画像データや、フイルムに記録された画像を読み取ることにより得られたデジタル画像データを、プリント等のハードコピーとしてあるいはディスプレイ上にソフトコピーとして再現することが行われている。このように、デジタル画像データを再現する場合においては、ネガフイルムからプリントされた写真と同様の高品位な画質を有するものとするために、階調処理や周波数処理等の種々の画像処理を画像データに対して施すことが行われている。   Digital image data acquired by a digital camera or digital image data obtained by reading an image recorded on a film is reproduced as a hard copy such as a print or as a soft copy on a display. As described above, when reproducing digital image data, various image processing such as gradation processing and frequency processing are performed on the image in order to have the same high-quality image as a photograph printed from a negative film. Applies to data.

例えば、画像データのヒストグラムを作成し、このヒストグラムの分布幅から画像データにより表される画像のコントラストを求め、このコントラストに基づいて、画像データの階調を変換するための階調曲線を補正することにより、階調がつぶれたり、ノイズが目立たないように画像データを変換する画像処理方法が種々提案されている(例えば特許文献1参照)。なお、ここでいうコントラストとは、画像中における暗い部分と明るい部分の比のことをいうものである。したがって、ヒストグラムの分布に広がりがあるものはコントラストがあり、ヒストグラムの分布が狭いものはコントラストがないというように、ヒストグラムの分布幅から画像のコントラストを判断することができる。例えば、晴天下において撮影を行うことにより得られた画像では、日向から日陰までの明暗が反映されて分布幅が広いヒストグラムとなり、曇天下において撮影を行うことにより得られた画像では、日向と日陰との区別が付きにくく狭い幅で分布するヒストグラムとなる。   For example, a histogram of image data is created, the contrast of the image represented by the image data is obtained from the distribution width of the histogram, and a gradation curve for converting the gradation of the image data is corrected based on this contrast. Accordingly, various image processing methods have been proposed for converting image data so that gradation is not crushed and noise is not noticeable (see, for example, Patent Document 1). The contrast here refers to the ratio of the dark part to the bright part in the image. Therefore, the contrast of the image can be determined from the distribution width of the histogram, such that a histogram having a broad distribution has a contrast and a histogram having a narrow histogram has no contrast. For example, an image obtained by shooting under clear sky is a histogram with a wide distribution range that reflects the light and darkness from the sun to the shade, and an image obtained by shooting under cloudy weather is sunny and shaded. The histogram is distributed with a narrow width that is difficult to distinguish.

また、画像を観察したときの鮮鋭度や粒状性等の人間の感覚を数値として表し、この数値に基づいて画像処理の内容を変更することにより、人間にとって好ましい画像を得るようにした画像処理方法も提案されている(特許文献2参照)。
特開平6−253176号公報 特開平7−193766号公報
In addition, an image processing method that expresses human senses such as sharpness and graininess when observing an image as a numerical value and changes the content of the image processing based on the numerical value to obtain a preferable image for human beings. Has also been proposed (see Patent Document 2).
JP-A-6-253176 JP-A-7-193766

上述したように画像データから作成されるヒストグラムは、画像中に含まれる全ての被写体や画像細部における様々な情報を含んでいることから形状が複雑なものとなり、その複雑な形状の中に人間が実際に画像を観察した際に知覚するコントラストの情報が埋もれてしまうため、人間が知覚するコントラスト感が必ずしも反映されていないものとなる。例えば、人間の顔を被写体とした画像の場合、この画像を観察する者がコントラストを知覚するのは顔の部分のみであり、画像に含まれる顔以外の被写体については、その画像から受けるコントラストとしては知覚しないものである。しかしながら、画像データから作成されたヒストグラムには、顔以外の被写体についての情報も含まれているため、このヒストグラムは、画像を観察する者が知覚しているコントラストを反映していないものとなる。したがって、このようなヒストグラムに基づいて画像データに対して画像処理を行ったのでは、必ずしも画像を観察する人が望むような処理済み画像を得ることができない。   As described above, the histogram created from the image data has a complicated shape because it includes various information in all subjects and image details included in the image. Since the contrast information perceived when actually observing the image is buried, the sense of contrast perceived by humans is not necessarily reflected. For example, in the case of an image with a human face as the subject, the person who observes this image perceives the contrast only in the face portion, and for subjects other than the face included in the image, the contrast received from the image Are not perceived. However, since the histogram created from the image data includes information about subjects other than the face, this histogram does not reflect the contrast perceived by the person observing the image. Therefore, if image processing is performed on image data based on such a histogram, it is not always possible to obtain a processed image desired by a person who observes the image.

また、画像に含まれる鮮やかな色と鮮やかでない色との対比によっても人間が知覚するコントラスト感が異なるものとなる。例えば、鮮やかな色が多く含まれる画像についてはコントラスト感があるものとして知覚されるが、鮮やかでない色が多く含まれている画像については、コントラスト感がないものとして知覚される。このように、画像に含まれる色によってもコントラスト感が異なるため、画像の色も考慮して画像処理を行う必要もある。   Also, the contrast perceived by humans varies depending on the contrast between the vivid colors and the non-vivid colors included in the image. For example, an image containing a lot of bright colors is perceived as having a sense of contrast, whereas an image containing a lot of non-brilliant colors is perceived as having no sense of contrast. As described above, since the contrast differs depending on the color included in the image, it is necessary to perform image processing in consideration of the color of the image.

本発明は上記事情に鑑みなされたものであり、画像を実際に観察することにより人間が知覚するコントラストの感覚をコントラスト感として定量化し、さらにこのコントラストの感覚に基づいて画像に対して適切に画像処理を施すことができる画像処理方法および装置並びに画像処理をコンピュータに実行させるためのプログラムを提供することを目的とするものである。   The present invention has been made in view of the above circumstances, and by actually observing an image, a sense of contrast perceived by a human is quantified as a sense of contrast, and an image is appropriately displayed for the image based on the sense of contrast. An object of the present invention is to provide an image processing method and apparatus capable of performing processing, and a program for causing a computer to execute image processing.

また、本発明は、画像の色情報を用いて画像に対して適切に画像処理を施すことができる画像処理方法および装置並びに画像処理をコンピュータに実行させるためのプログラムを提供することをも目的とするものである。   Another object of the present invention is to provide an image processing method and apparatus capable of appropriately performing image processing on an image using color information of the image, and a program for causing a computer to execute image processing. To do.

人間が画像を観察してその画像のコントラストを判断する場合には、画像に含まれる全ての被写体を統合した明暗差のみならず、画像全体の大局的な明暗差、画像中における明部と暗部の分布、さらには注目する被写体のみの明暗の分布等、ヒストグラムに反映されない情報に基づいて、画像のコントラストを判断しているものである。本発明はこの点に着目してなされたものである。   When a human observes an image and determines the contrast of the image, not only the contrast of all the subjects included in the image but also the overall contrast of the entire image, the bright and dark areas in the image The contrast of the image is determined based on information that is not reflected in the histogram, such as the distribution of the image, and the distribution of brightness of only the subject of interest. The present invention has been made paying attention to this point.

すなわち、本発明による第1の画像処理方法は、変換手段が、画像データから該画像データにより表される画像の色情報を表す色データを算出し、
ボケ画像作成手段が、該色データのボケ画像データを作成し、
ヒストグラム作成手段が、該ボケ画像データの2次元の頻度分布を表すヒストグラムを作成し、
コントラスト感算出手段が、該ヒストグラムの分布面積をコントラスト感として算出し、
処理手段が、該コントラスト感に基づいて前記画像データに対して前記画像の輝度情報を変更する画像処理を施すことを特徴とするものである。
That is, in the first image processing method according to the present invention, the conversion means calculates color data representing the color information of the image represented by the image data from the image data,
A blur image creating means creates blur image data of the color data,
A histogram creating means creates a histogram representing a two-dimensional frequency distribution of the blurred image data;
The contrast feeling calculating means calculates the distribution area of the histogram as a contrast feeling,
The processing means performs image processing for changing the luminance information of the image on the image data based on the sense of contrast.

本発明による第1の画像処理装置は、画像データから該画像データにより表される画像の色情報を表す色データを算出する変換手段と、
該色データのボケ画像データを作成するボケ画像作成手段と、
該ボケ画像データの2次元の頻度分布を表すヒストグラムを作成するヒストグラム作成手段と、
該ヒストグラムの分布面積をコントラスト感として算出するコントラスト感算出手段と、
該コントラスト感に基づいて前記画像データに対して前記画像の輝度情報を変更する画像処理を施す処理手段とを備えたことを特徴とするものである。
A first image processing apparatus according to the present invention comprises: conversion means for calculating color data representing color information of an image represented by the image data from the image data;
A blurred image creating means for creating blurred image data of the color data;
A histogram creating means for creating a histogram representing a two-dimensional frequency distribution of the blurred image data;
Contrast feeling calculating means for calculating the distribution area of the histogram as a contrast feeling;
And a processing means for performing image processing for changing the luminance information of the image on the image data based on the sense of contrast.

本発明による第2の画像処理方法は、画像データに基づいて、該画像データにより表される画像のコントラスト感を定量化することを特徴とするものである。   The second image processing method according to the present invention is characterized in that the contrast feeling of an image represented by the image data is quantified based on the image data.

ここで、「コントラスト感」とは、画像全体の大局的な明暗差、画像中における明部と暗部の分布、注目する被写体における明暗の分布等、画像そのもののヒストグラムには直接反映されていない、画像を観察した人間が実際に画像から受けるコントラストに関する主観的な感覚全般のことであり、具体的には画像データのボケ画像データのヒストグラム、ボケ画像データにより表されるボケ画像の明部および/または暗部の位置情報、画像データを多重解像度に変換することにより得られる周波数帯域毎の多重解像度画像データから得られたヒストグラム等に基づいて、定量化することができる。   Here, "contrast feeling" is not directly reflected in the histogram of the image itself, such as the overall brightness difference of the entire image, the distribution of bright and dark parts in the image, the distribution of light and darkness in the subject of interest, This is a general subjective sensation regarding contrast actually received from an image by a person who has observed the image. Specifically, a histogram of the blurred image data of the image data, a bright portion of the blurred image represented by the blurred image data, and / or Alternatively, it can be quantified based on the position information of the dark part, the histogram obtained from the multi-resolution image data for each frequency band obtained by converting the image data to multi-resolution.

なお、ボケ画像データからヒストグラムを作成するには、ボケ画像データそのものから作成してもよく、例えば画像データが8ビット(256)の情報を有するものである場合にボケ画像データを例えば32値化、16値化、8値化等し、この32値化等したボケ画像データからヒストグラムを作成してもよい。   In order to create a histogram from the blurred image data, the histogram may be created from the blurred image data itself. For example, when the image data has 8-bit (256) information, the blurred image data is converted into, for example, 32 values. , 16-valued, 8-valued, etc., and a histogram may be created from the blurred image data that has been 32-valued.

また、画像データから画像の輝度情報および色情報を表す輝度データおよび色データを得、輝度データおよび/または色データのボケ画像データである輝度ボケ画像データおよび/または色ボケ画像データを作成し、輝度ボケ画像データおよび/または色ボケ画像データから輝度ヒストグラムおよび/または色ヒストグラムを作成し、輝度ヒストグラムおよび/または色ヒストグラムに基づいてコントラスト感を定量化してもよい。なお、「色情報」とは画像に含まれる色の鮮やかさを表す情報のことをいう。   Further, luminance data and color data representing luminance information and color information of the image are obtained from the image data, and luminance blur image data and / or color blur image data which are blur image data of the luminance data and / or color data are created, A brightness histogram and / or a color histogram may be created from the brightness blur image data and / or the color blur image data, and the sense of contrast may be quantified based on the brightness histogram and / or the color histogram. “Color information” refers to information representing the vividness of colors included in an image.

なお、色ボケ画像データを作成した場合には、色ボケ画像データの2次元の頻度分布を表す色ヒストグラムを作成するようにしてもよい。   When color blur image data is created, a color histogram representing a two-dimensional frequency distribution of the color blur image data may be created.

さらに、「明部および/または暗部の位置情報」としては、例えば画像の中央から明部および/または暗部までの距離の標準偏差を用いることができる。   Furthermore, as the “position information of the bright part and / or dark part”, for example, the standard deviation of the distance from the center of the image to the bright part and / or dark part can be used.

さらに、「多重解像度画像データから得られたヒストグラム等に基づいて」とは、具体的には画像データから高周波帯数帯域、中周波数帯域および低周波数帯域の多重解像度画像データを作成した場合に、低周波数帯域の解像度画像データにより表される低周波数帯域画像から求められた画像の大まかな明度分布、中周波数帯域あるいは高周波数帯域の解像度画像データにより表される中周波数帯域画像あるいは高周波数帯域画像のヒストグラム等に基づいて、の意である。   Furthermore, “based on a histogram or the like obtained from multi-resolution image data” specifically means that when multi-resolution image data of high frequency band, medium frequency band and low frequency band is created from image data, Roughness distribution of the image obtained from the low frequency band image represented by the low frequency band resolution image data, medium frequency band image or high frequency band image represented by the resolution image data of the medium frequency band or high frequency band This is based on the histogram and the like.

また、画像データから画像の輝度情報および色情報を表す輝度データおよび色データを得、輝度データおよび/または色データを多重解像度に変換して複数の周波数帯域毎の輝度多重解像度画像データおよび/または色多重解像度画像データを得、各輝度多重解像度画像データおよび/または各色多重解像度画像データのヒストグラムである輝度ヒストグラムおよび/または色ヒストグラムを作成し、各輝度ヒストグラムおよび/または各色ヒストグラムに基づいてコントラスト感を定量化してもよい。   Further, luminance data and color data representing the luminance information and color information of the image are obtained from the image data, the luminance data and / or the color data are converted into multi-resolution, and the luminance multi-resolution image data for each of a plurality of frequency bands and / or Color multi-resolution image data is obtained, a luminance histogram and / or a color histogram, which is a histogram of each luminance multi-resolution image data and / or each color multi-resolution image data, is created, and a contrast feeling is based on each luminance histogram and / or each color histogram. May be quantified.

なお、本発明による第2の画像処理方法においては、前記コントラスト感に基づいて、前記画像データに対して画像処理を施すことが好ましい。   In the second image processing method according to the present invention, it is preferable to perform image processing on the image data based on the sense of contrast.

この場合、前記画像処理は階調変更処理、周波数強調処理、AE処理および彩度変更処理のうち少なくとも1つの処理であることが好ましい。   In this case, the image processing is preferably at least one of gradation changing processing, frequency enhancement processing, AE processing, and saturation changing processing.

本発明による第3の画像処理方法は、画像データから該画像データにより表される画像の色情報に基づいて前記画像データに対して前記画像の輝度情報を変更する画像処理を施すことを特徴とするものである。   A third image processing method according to the present invention is characterized in that image processing for changing luminance information of the image is performed on the image data based on color information of the image represented by the image data from the image data. To do.

なお、本発明による第3の画像処理方法においては、前記画像データから前記画像の色情報を表す色データを得、
該色データのボケ画像データを作成し、
該ボケ画像データのヒストグラムを作成し、
該ヒストグラムに基づいて前記画像データに対して前記画像処理を施すことが好ましい。
In the third image processing method according to the present invention, color data representing color information of the image is obtained from the image data,
Create blurred image data of the color data,
Create a histogram of the blurred image data,
The image processing is preferably performed on the image data based on the histogram.

この場合、前記ボケ画像データの2次元の頻度分布を表すヒストグラムを作成することが好ましい。   In this case, it is preferable to create a histogram representing a two-dimensional frequency distribution of the blurred image data.

また、本発明による第3の画像処理方法においては、前記画像データから前記画像の色情報を表す色データを得、
該色データを多重解像度に変換して複数の周波数帯域毎の多重解像度画像データを得、
該各多重解像度画像データのうち最低周波数帯域の多重解像度データのヒストグラムを作成し、
該ヒストグラムに基づいて前記画像データに対して前記画像処理を施すことが好ましい。
In the third image processing method according to the present invention, color data representing color information of the image is obtained from the image data,
The color data is converted into multi-resolution to obtain multi-resolution image data for each of a plurality of frequency bands,
Create a histogram of the multi-resolution data of the lowest frequency band among the multi-resolution image data,
The image processing is preferably performed on the image data based on the histogram.

本発明による第2の画像処理装置は、画像データに基づいて、該画像データにより表される画像のコントラスト感を定量化するコントラスト感定量化手段を備えたことを特徴とするものである。   The second image processing apparatus according to the present invention is characterized by comprising contrast quantification means for quantifying the contrast feeling of the image represented by the image data based on the image data.

なお、本発明による第2の画像処理装置においては、前記コントラスト感定量化手段は、前記画像データのボケ画像データを作成するボケ画像データ作成手段と、
該ボケ画像データのヒストグラムを作成するヒストグラム作成手段と、
該ヒストグラムに基づいて前記コントラスト感を定量化する定量化手段とを備えることが好ましい。
In the second image processing apparatus according to the present invention, the contrast quantification unit includes a blur image data creation unit that creates blur image data of the image data,
A histogram creating means for creating a histogram of the blurred image data;
It is preferable to include a quantification unit that quantifies the contrast feeling based on the histogram.

また、本発明による第2の画像処理装置においては、前記コントラスト感定量化手段は、前記画像データから前記画像の輝度情報および色情報を表す輝度データおよび色データを得る変換手段と、
該輝度データおよび/または該色データのボケ画像データである輝度ボケ画像データおよび/または色ボケ画像データを作成するボケ画像データ作成手段と、
該輝度ボケ画像データおよび/または該色ボケ画像データのヒストグラムである輝度ヒストグラムおよび/または色ヒストグラムを作成するヒストグラム作成手段と、
該輝度ヒストグラムおよび/または該色ヒストグラムに基づいて前記コントラスト感を定量化する定量化手段とを備えることが好ましい。
Further, in the second image processing apparatus according to the present invention, the contrast quantification means includes conversion means for obtaining luminance data and color data representing luminance information and color information of the image from the image data,
Blur image data creation means for creating brightness blur image data and / or color blur image data which is the blur data of the brightness data and / or the color data;
A histogram creation means for creating a brightness histogram and / or a color histogram which is a histogram of the brightness blur image data and / or the color blur image data;
It is preferable to include a quantification unit that quantifies the contrast feeling based on the luminance histogram and / or the color histogram.

この場合、前記ボケ画像データ作成手段が前記色ボケ画像データを作成した場合、前記ヒストグラム作成手段は、前記色ボケ画像データの2次元の頻度分布を表す色ヒストグラムを作成する手段であることが好ましい。   In this case, when the blur image data creation unit creates the color blur image data, the histogram creation unit is preferably a unit that creates a color histogram representing a two-dimensional frequency distribution of the color blur image data. .

さらに、前記コントラスト感定量化手段は、前記画像データのボケ画像データを作成するボケ画像データ作成手段と、
該ボケ画像データにより表されるボケ画像における明部および/または暗部の位置情報に基づいて前記コントラスト感を定量化する定量化手段とを備えることが好ましい。
Further, the contrast sensation quantification means includes a blur image data creation means for creating blur image data of the image data,
It is preferable that the apparatus further includes a quantification unit that quantifies the contrast feeling based on position information of a bright part and / or a dark part in a blurred image represented by the blurred image data.

さらに、前記コントラスト感定量化手段は、前記画像データを多重解像度に変換して複数の周波数帯域毎の多重解像度画像データを得る多重解像度変換手段と、
該各多重解像度画像データのヒストグラムを作成するヒストグラム作成手段と、
該各ヒストグラムに基づいて前記コントラスト感を定量化する定量化手段とを備えることが好ましい。
Further, the contrast sensation quantifying means converts the image data into multi-resolution to obtain multi-resolution image data for each of a plurality of frequency bands; and
A histogram creating means for creating a histogram of each multi-resolution image data;
It is preferable to include a quantification unit that quantifies the contrast feeling based on the histograms.

さらにまた、前記コントラスト感定量化手段は、前記画像データから前記画像の輝度情報および色情報を表す輝度データおよび色データを得る変換手段と、
該輝度データおよび/または該色データを多重解像度に変換して複数の周波数帯域毎の輝度多重解像度画像データおよび/または色多重解像度画像データを得る多重解像度変換手段と、
該各輝度多重解像度画像データおよび/または該各色多重解像度画像データのヒストグラムである輝度ヒストグラムおよび/または色ヒストグラムを作成するヒストグラム作成手段と、
該各輝度ヒストグラムおよび/または該各色ヒストグラムに基づいて前記コントラスト感を定量化する定量化手段とを備えることが好ましい。
Furthermore, the contrast quantification means includes conversion means for obtaining luminance data and color data representing luminance information and color information of the image from the image data,
Multi-resolution conversion means for converting the luminance data and / or the color data into multi-resolution to obtain luminance multi-resolution image data and / or color multi-resolution image data for each of a plurality of frequency bands;
Histogram creation means for creating a luminance histogram and / or a color histogram that is a histogram of each luminance multi-resolution image data and / or each color multi-resolution image data;
It is preferable to include a quantification unit that quantifies the contrast feeling based on each luminance histogram and / or each color histogram.

なお、本発明による第2の画像処理装置においては、前記コントラスト感に基づいて、前記画像データに対して画像処理を施す処理手段をさらに備えることが好ましい。   The second image processing apparatus according to the present invention preferably further includes processing means for performing image processing on the image data based on the contrast feeling.

この場合、前記処理手段は、前記画像処理として階調変更処理、周波数強調処理、AE処理および彩度変更処理のうち少なくとも1つの処理を行う手段であることが好ましい。   In this case, the processing means is preferably means for performing at least one of gradation changing processing, frequency enhancement processing, AE processing, and saturation changing processing as the image processing.

本発明による第3の画像処理装置は、画像データから該画像データにより表される画像の色情報に基づいて前記画像データに対して前記画像の輝度情報を変更する画像処理を施すことを特徴とするものである。   According to a third image processing apparatus of the present invention, the image data is subjected to image processing for changing the luminance information of the image based on the color information of the image represented by the image data. To do.

なお、本発明による第3の画像処理装置においては、前記画像データから前記画像の色情報を表す色データを得る変換手段と、
該色データのボケ画像データを作成するボケ画像データ作成手段と、
該ボケ画像データのヒストグラムを作成するヒストグラム作成手段と、
該ヒストグラムに基づいて前記画像データに対して前記画像処理を施す処理手段とを備えることが好ましい。
In the third image processing apparatus according to the present invention, conversion means for obtaining color data representing color information of the image from the image data;
A blurred image data creating means for creating blurred image data of the color data;
A histogram creating means for creating a histogram of the blurred image data;
Preferably, the image processing apparatus includes processing means for performing the image processing on the image data based on the histogram.

この場合、前記ヒストグラム作成手段は、前記ボケ画像データの2次元の頻度分布を表すヒストグラムを作成する手段であることが好ましい。   In this case, the histogram creation means is preferably means for creating a histogram representing a two-dimensional frequency distribution of the blurred image data.

また、本発明による第3の画像処理装置においては、前記画像データから前記画像の色情報を表す色データを得る変換手段と、
該色データを多重解像度に変換して複数の周波数帯域毎の多重解像度画像データを得る多重解像度変換手段と、
該各多重解像度画像データのうち最低周波数帯域の多重解像度画像データのヒストグラムを作成するヒストグラム作成手段と、
該ヒストグラムに基づいて前記画像データに対して前記画像処理を施す処理手段とを備えることが好ましい。
In the third image processing apparatus according to the present invention, conversion means for obtaining color data representing color information of the image from the image data;
Multi-resolution conversion means for converting the color data into multi-resolution to obtain multi-resolution image data for each of a plurality of frequency bands;
Histogram creating means for creating a histogram of the multi-resolution image data in the lowest frequency band among the multi-resolution image data,
Preferably, the image processing apparatus includes processing means for performing the image processing on the image data based on the histogram.

なお、本発明による第1から第3の画像処理方法をコンピュータに実行させるためのプログラムとして提供してもよい。   The first to third image processing methods according to the present invention may be provided as a program for causing a computer to execute.

本発明によれば、画像データにより表される画像のコントラスト感を定量化するようにしたため、画像そのもののヒストグラムから求められるコントラストのように、画像全体の種々の情報を含んだコントラストではなく、画像の大局的な明暗差、画像中における明部と暗部の分布や、注目する被写体における明暗の分布、画像に含まれる色情報などの人間が実際に画像を観察した際に画像から受ける主観的な感覚を定量化して求めることができる。   According to the present invention, since the contrast feeling of the image represented by the image data is quantified, the image is not a contrast including various information of the entire image like the contrast obtained from the histogram of the image itself. The subjective contrast received from an image when a person actually observes the image, such as the overall brightness difference of the image, the distribution of light and dark areas in the image, the distribution of light and darkness in the subject of interest, and the color information contained in the image Sense can be quantified.

また、画像データにより表される画像中には、画像を観察する者が知覚する情報のみならず非常に多くの情報が含まれているため、画像データから作成されたヒストグラムには、画像の大局的な明暗の情報が埋もれてしまっていることとなる。一方、画像データからボケ画像データを作成することにより、このボケ画像データにより表される画像は、元の画像データのように被写体の詳細な画素値の変化が含まれないため、人間が画像を観察した際に実際に知覚する、画像全体の大局的な明暗差を明確に表すものとなる。したがって、画像データのボケ画像データ、あるいは画像データから得られた輝度データおよび/または色データのヒストグラムに基づくことにより、実際に画像を観察した際にその画像から受けるコントラスト感を良好に定量化することができる。   In addition, since the image represented by the image data includes a great deal of information as well as information perceived by the person observing the image, the histogram created from the image data includes a large image. The light and dark information is buried. On the other hand, by creating blurred image data from the image data, the image represented by the blurred image data does not include detailed pixel value changes of the subject unlike the original image data. It clearly represents the global contrast of the entire image that is actually perceived when observed. Therefore, based on the blurred image data of the image data, or the histogram of the luminance data and / or color data obtained from the image data, the sense of contrast received from the image when actually observing the image is satisfactorily quantified. be able to.

また、ボケ画像における明部および/または暗部の位置情報は、画像中における明るい被写体および/または暗い被写体の位置を表すものであるため、この位置情報に基づくことにより、画像中の明暗の分布状態をコントラスト感として得ることができる。   Further, since the position information of the bright part and / or the dark part in the blurred image represents the position of the bright subject and / or the dark subject in the image, the distribution state of the light and darkness in the image is based on this position information. Can be obtained as a sense of contrast.

さらに、画像データを多重解像度画像データに変換して各解像度画像データのヒストグラムを作成した場合、低周波数帯域の解像度画像データのヒストグラムはボケ画像データのヒストグラムと同様に画像全体の明暗の分布を、中高周波数帯域の解像度画像データのヒストグラムは、その周波数帯域に応じた周波数成分の振幅を表すものとなる。例えば、鼻や目のくぼみによる顔の明暗、建物や被写体による陰影は中周波数成分により、木の枝や草花の細かさ、人物の服の模様、質感、物体間の境界(エッジ)等は高周波数成分により構成されている。このため、これら画像中の局所的なコントラストがある画像ほど、中高周波数帯域の解像度画像データのヒストグラムの分布幅が大きくなる。したがって、低周波数帯域の解像度画像データのヒストグラムにより画像データの全体的なコントラスト感を定量化することができ、さらに中高周波数帯域の解像度画像データのヒストグラムに基づいて画像中の局所的なコントラスト感を定量化することができ、これにより、画像の全体的な明暗の分布のみならず、局所的な明暗の分布をコントラスト感として求めることができる。   Furthermore, when the image data is converted into multi-resolution image data and a histogram of each resolution image data is created, the histogram of the resolution image data in the low frequency band shows the light and dark distribution of the entire image, similar to the histogram of the blurred image data, The histogram of the resolution image data in the middle and high frequency band represents the amplitude of the frequency component corresponding to the frequency band. For example, the darkness of the face due to the nose and eye depression, the shadow due to the building and subject, etc., due to the medium frequency component, the tree branches and the fineness of the flowers, the pattern of the person's clothes, the texture, and the boundaries (edges) between the objects are high. It is composed of frequency components. For this reason, the distribution width of the histogram of the resolution image data in the middle and high frequency band becomes larger as the image having local contrast in these images. Therefore, the overall contrast feeling of the image data can be quantified by the histogram of the resolution image data in the low frequency band, and the local contrast feeling in the image can be quantified based on the histogram of the resolution image data in the middle and high frequency band. The image can be quantified, whereby not only the overall light and dark distribution of the image but also the local light and dark distribution can be obtained as a contrast feeling.

一方、画像データから輝度データおよび色データを得、輝度データおよび/または色データを多重解像度画像データに変換して各解像度画像データのヒストグラムである輝度ヒストグラムおよび/または色ヒストグラムを作成した場合、低周波数帯域の輝度ヒストグラムは画像全体の明暗の分布を、中高周波数帯域の輝度ヒストグラムは、その周波数帯域に応じた周波数成分の振幅を表すものとなる。したがって、低周波数帯域の輝度ヒストグラムに基づいて画像データの全体的なコントラスト感を定量化することができ、さらに中高周波数帯域の輝度ヒストグラムに基づいて画像中の局所的なコントラスト感を定量化することができる。   On the other hand, when luminance data and color data are obtained from image data, and the luminance data and / or color data are converted into multi-resolution image data to create a luminance histogram and / or color histogram that is a histogram of each resolution image data, The luminance histogram in the frequency band represents the light / dark distribution of the entire image, and the luminance histogram in the middle / high frequency band represents the amplitude of the frequency component corresponding to the frequency band. Therefore, the overall contrast feeling of the image data can be quantified based on the luminance histogram in the low frequency band, and the local contrast feeling in the image can be quantified based on the luminance histogram in the middle and high frequency band. Can do.

また、低周波数帯域の色ヒストグラムは画像全体の彩度の分布を、中高周波数帯域の色ヒストグラムは、その周波数帯域に応じた彩度の分布を表すものとなる。したがって、低周波数帯域の色ヒストグラムに基づいて、画像の色に基づく画像データの全体的なコントラスト感を定量化することができ、さらに中高周波数帯域の色ヒストグラムに基づいて画像中の局所的なコントラスト感を定量化することができる。   The color histogram in the low frequency band represents the saturation distribution of the entire image, and the color histogram in the middle and high frequency band represents the saturation distribution according to the frequency band. Therefore, it is possible to quantify the overall contrast of the image data based on the color of the image based on the color histogram in the low frequency band, and further, local contrast in the image based on the color histogram in the middle and high frequency band The feeling can be quantified.

さらにまた、求められたコントラスト感に基づいて画像データに対して所定の画像処理を施すことにより、画像を観察する者が知覚するコントラスト感を反映させた処理済み画像データを得ることができる。   Furthermore, by performing predetermined image processing on the image data based on the obtained sense of contrast, processed image data reflecting the sense of contrast perceived by the person observing the image can be obtained.

また、画像データからこの画像データにより表される画像の色情報に基づいて画像データに対して輝度情報を変更する画像処理を施すことにより、画像を観察する者が画像の色から知覚するコントラスト感を反映させた処理済み画像データを得ることができる。   In addition, by performing image processing that changes luminance information on the image data based on the color information of the image represented by the image data from the image data, a person who observes the image perceives the contrast feeling perceived from the color of the image. Processed image data reflecting the above can be obtained.

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

図1は本発明の実施形態による画像処理装置の構成を示す概略ブロック図である。図1に示すように、本実施形態による画像処理装置は、画像データS0により表される画像におけるコントラスト感C0を定量化するコントラスト感定量化手段1と、コントラスト感定量化手段1において定量化されたコントラスト感C0に基づいて、画像データS0に対して画像処理を施して処理済み画像データS1を得る処理手段2と、処理済み画像データS1を可視像として出力するプリンタ、CRTモニタ等の出力手段3とを備える。   FIG. 1 is a schematic block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. As shown in FIG. 1, the image processing apparatus according to the present embodiment is quantified by a contrast sensation quantifying unit 1 that quantifies a contrast sensation C0 in an image represented by image data S0 and a contrast sensation quantifying unit 1. Based on the contrast C0, the processing means 2 that performs image processing on the image data S0 to obtain the processed image data S1, and the output of the printer, CRT monitor, etc. that outputs the processed image data S1 as a visible image Means 3 are provided.

図2はコントラスト感定量化手段1の具体的な構成を示す概略ブロック図である。なお、図2に示すコントラスト感定量化手段1を第1の実施形態として説明する。図2に示すように、第1の実施形態によるコントラスト感定量化手段1は、画像データS0のボケ画像データSusを作成するボケ画像作成手段11と、ボケ画像データSusのヒストグラムHusを作成するヒストグラム作成手段12と、ヒストグラムHusに基づいて画像データS0により表される画像のコントラスト感C0を定量化して求める定量化手段13とを備える。   FIG. 2 is a schematic block diagram showing a specific configuration of the contrast quantification means 1. The contrast quantification means 1 shown in FIG. 2 will be described as the first embodiment. As shown in FIG. 2, the contrast quantification unit 1 according to the first embodiment includes a blur image creation unit 11 that creates blur image data Sus of image data S0, and a histogram that creates a histogram Hus of blur image data Sus. A creation unit 12 and a quantification unit 13 for quantifying and obtaining the contrast feeling C0 of the image represented by the image data S0 based on the histogram Hus are provided.

図2に示すコントラスト感定量化手段1においては下記のようにしてコントラスト感C0が定量化して求められる。まず、ボケ画像作成手段11において画像データS0のボケ画像データSusが作成される。このボケ画像データSusの作成は、例えば画像データS0に対してボケマスクフィルタによるフィルタリング処理を施すことにより行われる。画像データS0により表される画像およびボケ画像データSusにより表されるボケ画像の例を図3に示す。なお、図3においては画像データS0およびボケ画像データSusにより表される画像にはそれぞれ対応する符号S0およびSusを付している。また、このボケ画像データSusは画像データS0のナイキスト周波数に対して数%の周波数帯域が残る程度のものとなっており、具体的には画像データS0により表される画像中0.5〜3cycle/cm程度の周波数成分を表すものとなっている。   In the contrast sensation quantifying means 1 shown in FIG. 2, the contrast sensation C0 is quantified and determined as follows. First, the blurred image creation unit 11 creates blurred image data Sus of the image data S0. The generation of the blurred image data Sus is performed, for example, by performing a filtering process using a blur mask filter on the image data S0. An example of the image represented by the image data S0 and the blurred image represented by the blurred image data Sus is shown in FIG. In FIG. 3, the images represented by the image data S0 and the blurred image data Sus are given the corresponding symbols S0 and Sus, respectively. The blurred image data Sus is such that a frequency band of several percent remains with respect to the Nyquist frequency of the image data S0. Specifically, 0.5 to 3 cycles in the image represented by the image data S0. It represents a frequency component of about / cm.

次に、ヒストグラム作成手段12において、ボケ画像データSusのヒストグラムHusが作成される。図4はボケ画像データSusのヒストグラムHusを画像データS0のヒストグラムH0とともに示す図である。なお、図4においては画素値は0−100に正規化してある。図4に示すように、ヒストグラムH0は、画像全体の明暗の分布のみならず、画像中に含まれる全ての被写体や画像細部における様々な情報を含んでいるため、複雑な形状を有するものとなり、ヒストグラムH0から求められる明暗差すなわちコントラストは、0−100という非常に広い範囲に亘っているものとなる。なお、図5は画像データS0とは異なる画像データS0′およびこれから作成されたボケ画像データSus′のヒストグラムH0′、Hus′を示す図である。図4と図5とを比較すると、ヒストグラムの形状は明らかに異なるが、図5のヒストグラムH0′から求められるコントラストは、図4のヒストグラムH0から求められるコントラストと同様に0−100という広い範囲に亘るものとなるため、画像によってコントラストの差異がないものとなってしまう。   Next, the histogram creation means 12 creates a histogram Hus of the blurred image data Sus. FIG. 4 is a diagram showing the histogram Hus of the blurred image data Sus together with the histogram H0 of the image data S0. In FIG. 4, the pixel value is normalized to 0-100. As shown in FIG. 4, the histogram H0 has a complicated shape because it includes not only the light and dark distribution of the entire image but also various information on all subjects and image details included in the image. The contrast or contrast obtained from the histogram H0, that is, the contrast over a very wide range of 0-100. FIG. 5 is a diagram showing image data S0 ′ different from the image data S0 and histograms H0 ′ and Hus ′ of the blurred image data Sus ′ created therefrom. Comparing FIG. 4 and FIG. 5, the shape of the histogram is clearly different, but the contrast obtained from the histogram H0 ′ in FIG. 5 is in a wide range of 0-100, similar to the contrast obtained from the histogram H0 in FIG. Therefore, there is no difference in contrast between images.

一方、ヒストグラムHusは、その分布幅も27−92とヒストグラムH0より狭くなっているが、画像中に含まれる詳細な情報が除去されており、この分布幅は画像全体の大局的な明暗差すなわちコントラストを表すものとなる。また、図5に示すヒストグラムH0′から求められるコントラストは図4に示すヒストグラムと同一であったが、ヒストグラムHus′とヒストグラムHusとを比較すると、ヒストグラムHus′の分布幅は17−75となり、両者は明らかに分布幅およびその分布位置が異なるため、画像によりコントラストの差異が現れるものとなる。ここで、人間が画像を観察する際には、画像中の詳細な部分ではなく、まず画像全体を観察してコントラストを判断するものである。したがって、第1の実施形態においては、定量化手段13においてボケ画像データSusのヒストグラムHusの分布幅、すなわち、ヒストグラムHusの最大値Husmaxと最小値Husminとの差wを求め、これを人間が画像を観察した際に知覚する画像全体のコントラストを表すコントラスト感C0とするものである。   On the other hand, the distribution width of the histogram Hus is narrower than that of the histogram H0, which is 27-92. However, detailed information included in the image is removed, and this distribution width is a global light / dark difference of the entire image, that is, It represents the contrast. Further, the contrast obtained from the histogram H0 'shown in FIG. 5 is the same as that shown in FIG. 4, but when the histogram Hus' and the histogram Hus are compared, the distribution width of the histogram Hus' is 17-75. Since the distribution width and the distribution position are clearly different from each other, a difference in contrast appears depending on the image. Here, when a human observes an image, the contrast is determined by first observing the entire image, not a detailed portion in the image. Therefore, in the first embodiment, the quantification unit 13 obtains the distribution width of the histogram Hus of the blurred image data Sus, that is, the difference w between the maximum value Husmax and the minimum value Husmin of the histogram Hus, and this is calculated by the human. A contrast feeling C0 representing the contrast of the entire image perceived when observing.

処理手段2においてはコントラスト感定量化手段1において定量化されたコントラスト感C0に基づいて、画像データS0に対して画像処理が施される。まず、コントラスト感C0、すなわちヒストグラムHusの最大値Husmaxと最小値Husminとの差wについて、これを予め設定した閾値Th1と比較して画像データS0により表される画像のコントラスト種別を求める。ここで、閾値Th1は図4および図5に示すように、ヒストグラム全体の画素値が1−100に分布する場合、例えば50程度の値に設定されるがこれに限定されるものではない。そして、C0≧Th1である場合は画像データS0により表される画像はハイコントラスト画像、C0<Th1である場合はローコントラスト画像という判別を行う。なお、この場合、0<Th2<Th1<100というように2つの閾値Th1,Th2を設定し、C0>Th1である場合はハイコントラスト画像、Th2≦C0≦Th1である場合は標準画像、C0<Th2である場合はローコントラスト画像というような判別を行ってもよい。この場合、Th1は80程度、Th2は40程度の値に設定されるがこれに限定されるものではない。   The processing means 2 performs image processing on the image data S0 based on the contrast feeling C0 quantified by the contrast feeling quantifying means 1. First, the contrast sense C0, that is, the difference w between the maximum value Husmax and the minimum value Husmin of the histogram Hus is compared with a preset threshold Th1 to obtain the contrast type of the image represented by the image data S0. Here, as shown in FIGS. 4 and 5, the threshold value Th <b> 1 is set to, for example, about 50 when the pixel values of the entire histogram are distributed in the range of 1-100, but is not limited thereto. When C0 ≧ Th1, the image represented by the image data S0 is determined as a high contrast image, and when C0 <Th1, it is determined as a low contrast image. In this case, two threshold values Th1 and Th2 are set such that 0 <Th2 <Th1 <100. When C0> Th1, a high contrast image is set, when Th2 ≦ C0 ≦ Th1, a standard image is set, and C0 < In the case of Th2, a discrimination such as a low contrast image may be performed. In this case, Th1 is set to about 80 and Th2 is set to about 40, but the present invention is not limited to this.

そして、このように画像のコントラスト種別が求められると、このコントラスト種別に応じて予め準備されている階調変換LUTが選択され、選択された階調変換LUTにより画像データS0に対して階調変換処理が施される。図6は階調変換LUTを示す図である。本実施形態においては、LUT1〜LUT5の5つの階調変換LUTを用意し、ハイコントラスト画像と判別された場合にはLUT5、ローコントラスト画像と判別された場合にはLUT1、標準画像と判別された場合にはLUT3の階調変換LUTを用いて画像データS0の階調を変換して処理済み画像データS1を得る画像処理を行う。なお、コントラスト感C0すなわち上記差wの値に応じてLUT1〜LUT5の階調変換LUTを選択するようにしてもよい。   When the contrast type of the image is obtained in this way, a gradation conversion LUT prepared in advance according to the contrast type is selected, and gradation conversion is performed on the image data S0 by the selected gradation conversion LUT. Processing is performed. FIG. 6 is a diagram showing the gradation conversion LUT. In the present embodiment, five gradation conversion LUTs LUT1 to LUT5 are prepared. When it is determined as a high-contrast image, it is determined as LUT5. When it is determined as a low-contrast image, it is determined as LUT1 and a standard image. In this case, image processing for obtaining processed image data S1 by converting the gradation of the image data S0 using the gradation conversion LUT of LUT3 is performed. Note that the gradation conversion LUT of LUT1 to LUT5 may be selected in accordance with the contrast C0, that is, the value of the difference w.

なお、階調曲線を例えばyout=a・yin+b(yout:出力、yin:入力)というような関数により表現し、画像のコントラスト種別あるいはコントラスト感C0(差wの値)に応じてa,bのパラメータを変更して階調曲線を設定してもよい。   The gradation curve is expressed by a function such as, for example, yout = a · yin + b (yout: output, yin: input), and a and b are expressed in accordance with the contrast type of the image or the sense of contrast C0 (value of difference w). The gradation curve may be set by changing parameters.

次いで、第1の実施形態の動作について説明する。   Next, the operation of the first embodiment will be described.

図7は第1の実施形態の動作を示すフローチャートである。なお、図7に示すフローチャートにおいては、コントラスト感C0は2つの閾値Th1,Th2と比較されるものとする。まず、コントラスト感定量化手段1のボケ画像作成手段11において、画像データS0のボケ画像データSusが作成され(ステップS1)、さらにヒストグラム作成手段12において、このボケ画像データSusのヒストグラムHusが作成される(ステップS2)。そして定量化手段13においてこのヒストグラムHusに基づいてコントラスト感C0が定量化されて求められる(ステップS3)。そして求められたコントラスト感C0は処理手段2に入力され、まず、C0>Th1であるか否かが判断される(ステップS4)。ステップS4が肯定された場合には、ハイコントラスト画像であるとして階調変換LUT5が選択され(ステップS5)、これに基づいて画像データS0に対して階調変換処理が施され(ステップS6)、処理済み画像データS1が得られる。得られた処理済み画像データS1は出力手段3において可視像として出力される(ステップS7)。   FIG. 7 is a flowchart showing the operation of the first embodiment. In the flowchart shown in FIG. 7, it is assumed that the contrast feeling C0 is compared with two threshold values Th1 and Th2. First, the blurred image creating unit 11 of the contrast quantification unit 1 creates the blurred image data Sus of the image data S0 (step S1), and the histogram creating unit 12 further creates the histogram Hus of the blurred image data Sus. (Step S2). The quantifying means 13 quantifies and obtains the contrast feeling C0 based on the histogram Hus (step S3). Then, the obtained contrast feeling C0 is input to the processing means 2, and it is first determined whether or not C0> Th1 (step S4). When step S4 is affirmed, the gradation conversion LUT5 is selected as a high-contrast image (step S5), and based on this, gradation conversion processing is performed on the image data S0 (step S6). Processed image data S1 is obtained. The obtained processed image data S1 is output as a visible image by the output means 3 (step S7).

一方、ステップS4が否定された場合には、C0<Th2であるか否かが判断される(ステップS8)。ステップS8が肯定された場合には、ローコントラスト画像であるとして階調変換LUT1が選択され(ステップS9)、これに基づいて画像データS0に対して階調変換処理が施される(ステップS6)。さらに、ステップS8が否定された場合には、Th2≦C0≦Th1となる標準画像であるとして階調変換LUT3が選択され(ステップS10)、これに基づいて画像データS0に対して階調変換処理が施される(ステップS6)。   On the other hand, if step S4 is negative, it is determined whether C0 <Th2 is satisfied (step S8). If step S8 is positive, the gradation conversion LUT1 is selected as a low contrast image (step S9), and gradation conversion processing is performed on the image data S0 based on this (step S6). . Further, if step S8 is negative, the gradation conversion LUT3 is selected as a standard image satisfying Th2 ≦ C0 ≦ Th1 (step S10), and gradation conversion processing is performed on the image data S0 based on this. Is applied (step S6).

ここで、画像データS0により表される画像中には、画像を観察する者が知覚する情報のみならず非常に多くの情報が含まれているため、図4および図5に示すように、画像データS0から作成されたヒストグラムH0には、画像全体の明暗の情報が埋もれてしまっていることとなる。一方、画像データS0のボケ画像データSusにより表される画像は、画像データS0のように被写体の詳細な画素値の変化が含まれないため、人間が画像を観察した際に実際に知覚する、画像全体の大局的な明暗差を表すものとなる。したがって、ボケ画像データSusのヒストグラムHusに基づくことにより、実際に画像を観察した際にその画像から受けるコントラスト感C0を良好に定量化することができ、このコントラスト感C0に基づいて画像データS0に対して階調変換処理を施すことにより、画像を観察する者が知覚するコントラスト感C0を反映した画像を表す処理済み画像データS1を得ることができる。   Here, since the image represented by the image data S0 includes not only information perceived by the person observing the image but also a great deal of information, as shown in FIG. 4 and FIG. In the histogram H0 created from the data S0, the light and dark information of the entire image is buried. On the other hand, since the image represented by the blurred image data Sus of the image data S0 does not include a change in the detailed pixel value of the subject unlike the image data S0, it is actually perceived when a human observes the image. It represents the global contrast of the entire image. Therefore, based on the histogram Hus of the blurred image data Sus, the contrast feeling C0 received from the image when actually observing the image can be quantified satisfactorily, and the image data S0 is based on the contrast feeling C0. By applying gradation conversion processing to the image, processed image data S1 representing an image reflecting the contrast C0 perceived by a person observing the image can be obtained.

なお、上記第1の実施形態においては、ボケ画像データSusそのものからヒストグラムH0を作成しているが、例えばボケ画像データSusが8ビット(0−255)のデータ値を有するものである場合に、ボケ画像データSusを16値化し、16値化したボケ画像データSusからヒストグラムを作成してもよい。この際、ボケ画像データSusには画像データS0のように画像中の詳細な情報は含まれないため、16値化した後にヒストグラムHusを作成したとしても、図8に示すようにその分布幅は8ビットのボケ画像データSusから作成した場合と比較してそれほど変化しないため、得られるコントラスト感C0としては16値化の前後でそれほど差異はないものとなる。また、16値化した方が画素値のデータ量が少なくなるため、ヒストグラムを簡易に作成することができる。したがって、ボケ画像データSusを16値化した後にヒストグラムを作成することにより、処理を高速に行うことができる。なお、この場合、ボケ画像データSusのデータ値を16値化しているが、8ビットよりも小さい値とするものであれば、例えば8値化、32値化等してからヒストグラムを作成してもよい。   In the first embodiment, the histogram H0 is created from the blurred image data Sus itself. For example, when the blurred image data Sus has an 8-bit (0-255) data value, The blurred image data Sus may be converted into 16 values, and a histogram may be created from the 16-valued blurred image data Sus. At this time, since the blurred image data Sus does not include detailed information in the image unlike the image data S0, even if the histogram Hus is created after 16-value conversion, the distribution width is as shown in FIG. Since it does not change so much as compared with the case where it is created from 8-bit blurred image data Sus, the obtained contrast feeling C0 is not so different before and after the 16-value conversion. Further, since the data amount of the pixel value is smaller when the 16-value is used, a histogram can be easily created. Therefore, processing can be performed at high speed by creating a histogram after converting the blurred image data Sus into 16 values. In this case, the data value of the blurred image data Sus is 16-valued. However, if the value is smaller than 8 bits, for example, an 8-value or 32-value data is created and a histogram is created. Also good.

また、上記第1の実施形態においてはヒストグラムHusの最大値Husmaxおよび最小値Husminとの差wをコントラスト感C0としているが、例えばヒストグラムHusの最大値Husmaxから(Husmax−Husmin)の10%値が小さい位置の値、およびヒストグラムHusの最小値Husminから(Husmax−Husmin)の10%値が大きい位置の値を求め、これらの位置における値の差をコントラスト感C0として求めるようにしてもよい。   In the first embodiment, the difference w between the maximum value Husmax and the minimum value Husmin of the histogram Hus is set as the contrast feeling C0. For example, the 10% value of (Husmax−Husmin) from the maximum value Husmax of the histogram Hus. A value of a position where the 10% value of (Husmax−Husmin) is large may be obtained from the value of the small position and the minimum value Husmin of the histogram Hus, and the difference between the values at these positions may be obtained as the contrast C0.

さらに、上記第1の実施形態においては、画像データS0からボケ画像データSusを作成し、ボケ画像データSusのヒストグラムHusからコントラスト感C0を定量化しているが、画像データS0を画像データS0により表される画像の輝度情報および色情報を表す輝度データおよび色データに変換し、輝度データおよび/または色データのヒストグラムからコントラスト感C0を定量化してもよい。以下、これを第2の実施形態として説明する。   Further, in the first embodiment, the blurred image data Sus is created from the image data S0, and the contrast feeling C0 is quantified from the histogram Hus of the blurred image data Sus. However, the image data S0 is represented by the image data S0. It is also possible to convert the luminance information and color data representing the luminance information and color information of the image to be obtained, and to quantify the sense of contrast C0 from the histogram of the luminance data and / or color data. Hereinafter, this will be described as a second embodiment.

図9は、コントラスト感定量化手段1の第2の実施形態の構成を示す概略ブロック図である。図9に示すように、第2の実施形態によるコントラスト感定量化手段1は、第1の実施形態におけるボケ画像作成手段11、ヒストグラム作成手段12および定量化手段13に加えて、画像データS0を輝度データL*および色データC*に変換する変換手段15を備え、ボケ画像作成手段11において輝度データL*または色データC*のボケ画像データである輝度ボケ画像データLusまたは色ボケ画像データCusを作成し、ヒストグラム作成手段12において、輝度ボケ画像データLusのヒストグラムである輝度ヒストグラムHLus、または色ボケ画像データCusのヒストグラムである色ヒストグラムHCusを作成するようにしたものである。 FIG. 9 is a schematic block diagram showing the configuration of the second embodiment of the contrast quantification means 1. As shown in FIG. 9, the contrast quantification means 1 according to the second embodiment receives image data S0 in addition to the blurred image creation means 11, the histogram creation means 12, and the quantification means 13 in the first embodiment. Conversion means 15 for converting into luminance data L * and color data C * is provided, and in the blurred image creation means 11, luminance blurred image data Lus or color blurred image data Cus, which is blurred image data of luminance data L * or color data C *. And the histogram creation means 12 creates a brightness histogram HLus that is a histogram of the brightness blur image data Lus or a color histogram HCus that is a histogram of the color blur image data Cus.

変換手段15においては、画像データS0が以下のようにして、輝度データL*および色データC*に変換される。なお、第2の実施形態においては、画像データS0はITU−R BT.709(REC.709)に準拠したRGBの色データR0,G0,B0からなるものとする。変換手段15においては、下記の式(1)から(3)に基づいて画像データS0を構成する色データR0,G0,B0がCIE1931三刺激値X,Y,Zに変換される。 In the conversion means 15, the image data S0 is converted into luminance data L * and color data C * as follows. In the second embodiment, the image data S0 is ITU-R BT. It is assumed that RGB color data R0, G0, B0 conforming to 709 (REC. 709) is included. In the conversion means 15, the color data R0, G0, B0 constituting the image data S0 are converted into CIE1931 tristimulus values X, Y, Z based on the following formulas (1) to (3).

Pr=R0/255
Pg=G0/255 (1)
Pb=B0/255

R1′=((Pr+0.099)/1.099)2.222
G1′=((Pg+0.099)/1.099)2.222 (Pr,Pg,Pb≧0.081) (2)
B1′=((Pb+0.099)/1.099)2.222

R1′=Pr/4.5
G1′=Pg/4.5 (Pr,Pg,Pb<0.081) (2′)
B1′=Pb/4.5

X R0′
Y =|A|・ G0′ (3)
Z B0′
ここで、マトリクス|A|は、色データR0′,G0′,B0′を三刺激値X,Y,Zに変換するためのマトリクスであり、例えば以下のような値を用いることができる。
Pr = R0 / 255
Pg = G0 / 255 (1)
Pb = B0 / 255

R1 '= ((Pr + 0.099) /1.099) 2.222
G1 '= ((Pg + 0.099) /1.099) 2.222 (Pr, Pg, Pb ≧ 0.081) (2)
B1 '= ((Pb + 0.099) /1.099) 2.222

R1 ′ = Pr / 4.5
G1 ′ = Pg / 4.5 (Pr, Pg, Pb <0.081) (2 ′)
B1 '= Pb / 4.5

X R0 '
Y = | A | ・ G0 ′ (3)
Z B0 '
Here, the matrix | A | is a matrix for converting the color data R0 ′, G0 ′, and B0 ′ into the tristimulus values X, Y, and Z. For example, the following values can be used.

0.4124 0.3576 0.1805
|A| = 0.2126 0.7152 0.0722 (4)
0.0193 0.1192 1.0571
なお、マトリクス|A|に代えて、ルックアップテーブルにより三刺激値X,Y,Zを求めるようにしてもよい。
0.4124 0.3576 0.1805
| A | = 0.2126 0.7152 0.0722 (4)
0.0193 0.1192 1.0571
Instead of the matrix | A |, the tristimulus values X, Y, and Z may be obtained by a lookup table.

次に、三刺激値X,Y,Zから下記の式(5)〜(7)によりCIE1976L*、a*、b*を求める。 Next, CIE 1976 L * , a * , and b * are obtained from the tristimulus values X, Y, and Z by the following formulas (5) to (7).

*=500{f(X/Xn)−f(Y/Yn)} (5)
*=200{f(Y/Yn)−f(Z/Zn)} (6)
*=116(Y/Yn)1/3−16(Y/Yn>0.008856のとき)(7)
*=903.25(Y/Yn)(Y/Yn≦0.008856のとき)
ここで、
X/Xn,Y/Yn,Z/Zn>0.008856のとき
f(a/an)=(a/an)1/3(a=X,Y,Z)
X/Xn,Y/Yn,Z/Zn≦0.008856のとき
f(a/an)=7.787(a/an)+16/116
なお、Xn,Yn,Znは白色に対する三刺激値であり、CIE−D65(色温度が6500Kの光源)に対応する三刺激値とする。さらに、下記の式(8)により彩度C*を求める。
a * = 500 {f (X / Xn) -f (Y / Yn)} (5)
b * = 200 {f (Y / Yn) -f (Z / Zn)} (6)
L * = 116 (Y / Yn) 1/3 -16 (when Y / Yn> 0.008856) (7)
L * = 903.25 (Y / Yn) (when Y / Yn ≦ 0.008856)
here,
When X / Xn, Y / Yn, Z / Zn> 0.008856 f (a / an) = (a / an) 1/3 (a = X, Y, Z)
When X / Xn, Y / Yn, Z / Zn ≦ 0.008856 f (a / an) = 7.787 (a / an) +16/116
Xn, Yn, and Zn are tristimulus values for white and are tristimulus values corresponding to CIE-D65 (light source having a color temperature of 6500K). Further, the saturation C * is obtained by the following equation (8).

*=(a*2+b*21/2 (8)
そして、L*を輝度データ、C*を色データとして出力する。
C * = (a * 2 + b * 2 ) 1/2 (8)
Then, L * is output as luminance data, and C * is output as color data.

輝度データL*または色データC*からは、ボケ画像作成手段11において第1の実施形態と同様に輝度データL*または色データC*のボケ画像データである輝度ボケ画像データLusまたは色ボケ画像データCusが作成される。なお、色データC*については、大局的な色の変化のみでなく、細かい草花のような中周波数成分からの影響をも考慮して輝度データL*よりもボケの程度を緩くするようにしてもよい。具体的には、色ボケ画像データCusが、画像データS0により表される画像中0.5〜10cycle/mm程度の周波数成分を表すものとすることが好ましい。 From the brightness data L * or the color data C * , the blur image creation means 11 performs the brightness blur image data Lus or the color blur image, which is the blur image data of the brightness data L * or the color data C * , as in the first embodiment. Data Cus is created. Note that the color data C * is less blurred than the luminance data L * in consideration of not only the global color change but also the influence of medium frequency components such as fine flowers. Also good. Specifically, it is preferable that the color blurred image data Cus represents a frequency component of about 0.5 to 10 cycles / mm in the image represented by the image data S0.

ヒストグラム作成手段12においては、第1の実施形態と同様に、輝度ボケ画像データLusから輝度ヒストグラムHLusが作成され、または色ボケ画像データCusから色ヒストグラムHCusが作成される。   In the histogram creating means 12, as in the first embodiment, the brightness histogram HLus is created from the brightness blurred image data Lus, or the color histogram HCus is created from the color blurred image data Cus.

そして、定量化手段13においては、輝度ヒストグラムHLusまたは色ヒストグラムHCusの分布幅を求め、これをコントラスト感C0として出力する。   Then, the quantification means 13 obtains the distribution width of the luminance histogram HLus or the color histogram HCus, and outputs this as the contrast feeling C0.

このようにして求められたコントラスト感C0に基づいて、処理手段2において画像データS0に対して画像処理が施される。具体的には、上記第1の実施形態と同様にコントラスト感C0に基づいて画像データS0により表される画像のコントラストの種別を判別し、この判別結果に応じて予め準備されている階調変換LUTを選択し、選択した階調変換LUTにより画像データS0に対して階調変換処理を施す。   Based on the contrast feeling C0 thus obtained, the processing means 2 performs image processing on the image data S0. Specifically, as in the first embodiment, the type of contrast of the image represented by the image data S0 is determined based on the sense of contrast C0, and gradation conversion prepared in advance according to the determination result A LUT is selected, and gradation conversion processing is performed on the image data S0 by the selected gradation conversion LUT.

なお、第2の実施形態において色データC*からコントラスト感C0を求めた場合、このコントラスト感C0から求められたコントラスト種別がローコントラスト画像であった場合には、画像データS0により表される画像の彩度を高くする彩度変更処理を施すようにしてもよい。具体的には、上記式(8)により求められた彩度C*に強調係数αcを乗算して彩度を向上させる。なお、強調係数αcの値としては1.2程度であることが好ましいが、これに限定されるものではない。また、階調変換処理と彩度変更処理とを同時に行うようにしてもよい。 In the second embodiment, when the contrast feeling C0 is obtained from the color data C * and the contrast type obtained from the contrast feeling C0 is a low contrast image, the image represented by the image data S0. You may make it perform the saturation change process which raises the saturation of. Specifically, the saturation is improved by multiplying the saturation C * obtained by the above equation (8) by the enhancement coefficient αc. Note that the value of the enhancement coefficient αc is preferably about 1.2, but is not limited thereto. Further, the gradation conversion process and the saturation change process may be performed simultaneously.

また、彩度を向上させる場合には、画像データS0により表される画像全体に一律の強調係数αcを乗じるのみならず、画像中の低彩度の部分ほどより彩度が向上されるように、強調係数αcを彩度の関数として設定してもよい。また、強調係数αcを色相角H(=tan-1(b*/a*))に応じて変化させてもよい。 Further, in the case of improving the saturation, not only the uniform enhancement coefficient αc is multiplied to the entire image represented by the image data S0, but the saturation is further improved in the low saturation portion in the image. The enhancement coefficient αc may be set as a function of saturation. The enhancement coefficient αc may be changed according to the hue angle H (= tan −1 (b * / a * )).

なお、第2の実施形態においては、変換手段15において上記式(8)により彩度C*を求め、これを色データとしているが、式(5)、(7)により求めたa*,b*を色データとしてもよい。この場合、ボケ画像作成手段11においては、a*,b*の色ボケ画像データaus,busが求められ、ヒストグラム作成手段12においては、色ボケ画像データausおよびbusから2次元ヒストグラムHabが作成される。図10は2次元ヒストグラムHabの例を示す図である。図10においては、原点からの距離が彩度を表しており、鮮やかな色ほど原点から離れた座標に存在する。このため、画像データS0により表される画像に鮮やかな色が多いと、2次元ヒストグラムHabの分布が広がることとなる。例えば、図10(a)と図10(b)とでは、図10(b)の方が2次元ヒストグラムHabの分布が広がっているため、図10(b)に示す2次元ヒストグラムHabを得た画像ほど鮮やかな色が多く含まれていることとなる。 In the second embodiment, the conversion means 15 obtains the saturation C * by the above equation (8) and uses this as the color data, but a * and b obtained by the equations (5) and (7). * May be color data. In this case, the blurred image creation means 11 obtains a * and b * color blur image data aus and bus, and the histogram creation means 12 creates a two-dimensional histogram Hab from the color blur image data aus and bus. The FIG. 10 is a diagram showing an example of a two-dimensional histogram Hab. In FIG. 10, the distance from the origin represents the saturation, and the brighter the color, the more away from the origin. For this reason, if there are many vivid colors in the image represented by the image data S0, the distribution of the two-dimensional histogram Hab will spread. For example, in FIG. 10 (a) and FIG. 10 (b), the distribution of the two-dimensional histogram Hab is wider in FIG. 10 (b), so the two-dimensional histogram Hab shown in FIG. 10 (b) was obtained. As a result, the image contains more vivid colors.

したがって、2次元ヒストグラムHabの分布面積Acを求め、この分布面積Acをコントラスト感C0とすることができる。そして、このコントラスト感C0に基づいて、上記第1の実施形態と同様に画像データS0により表される画像のコントラスト種別を判別し、画像データS0に対して階調処理、彩度強調処理等の画像処理を施すことができる。   Therefore, the distribution area Ac of the two-dimensional histogram Hab can be obtained, and this distribution area Ac can be used as the contrast feeling C0. Then, based on the sense of contrast C0, the contrast type of the image represented by the image data S0 is determined in the same manner as in the first embodiment, and gradation processing, saturation enhancement processing, etc. are performed on the image data S0. Image processing can be performed.

なお、第2の実施形態において、色データC*が所定の閾値以上となる画素数Pをカウントし、この画素数と画像データS0により表される画像の全画素数Pallに対する比率R=P/Pallを求め、これをコントラスト感C0として求めてもよい。具体的には、図10に示すaus−bus平面において、原点を中心とする所定の半径(所定の閾値に応じた値を有する)円形領域を設定し、この円形領域内に含まれない画素数を画素数Pとし、この画素数Pの全画素数Pallに対する割合Rを求め、これをコントラスト感C0とするものである。 In the second embodiment, the number of pixels P where the color data C * is equal to or greater than a predetermined threshold is counted, and the ratio R = P / of the number of pixels and the total number of pixels Pall of the image represented by the image data S0. Pall may be obtained and this may be obtained as the contrast feeling C0. Specifically, in the aus-bus plane shown in FIG. 10, a circular area having a predetermined radius (having a value corresponding to a predetermined threshold) around the origin is set, and the number of pixels not included in the circular area Is the number of pixels P, a ratio R of the number of pixels P to the total number of pixels Pall is obtained, and this is used as a contrast feeling C0.

なお、上記第1の実施形態においては、画像データS0のボケ画像データSusのヒストグラムHusを作成し、このヒストグラムHusに基づいてコントラスト感C0を定量化しているが、画像中における明部および/または暗部の分布状態をコントラスト感C0として定量化して求めてもよい。以下、これを第3の実施形態として説明する。図11はコントラスト感定量化手段1の第3の実施形態の構成を示す概略ブロック図である。図11に示すように、第3の実施形態によるコントラスト感定量化手段1は、画像データS0のボケ画像データSusを作成するボケ画像作成手段21と、ボケ画像データSusを0−15の値に16値化して16値化ボケ画像データSus16を得る16値化手段22と、16値化ボケ画像データSus16により表される画像において、最大画素値である15の値を有する画素位置を検出する位置検出手段23と、図12に示すように、位置検出手段23において検出された画素の位置と画像中心Oとの距離を求め、この距離の標準偏差σを算出してこれをコントラスト感C0とする演算手段24とを備える。このように算出されるコントラスト感C0は、人間が画像を観察したときに明るい領域が画像上においてどのように分布しているかの知覚状態を定量化して表すものとなる。   In the first embodiment, the histogram Hus of the blurred image data Sus of the image data S0 is created, and the contrast feeling C0 is quantified based on the histogram Hus. You may obtain | require and quantify the distribution state of a dark part as the contrast feeling C0. Hereinafter, this will be described as a third embodiment. FIG. 11 is a schematic block diagram showing the configuration of the third embodiment of the contrast quantification means 1. As shown in FIG. 11, the contrast quantification means 1 according to the third embodiment includes a blur image creation means 21 for creating blur image data Sus of the image data S0, and the blur image data Sus to a value of 0-15. 16-value conversion means 22 for 16-value conversion to obtain 16-value conversion blur image data Sus16, and a position for detecting a pixel position having a value of 15 as the maximum pixel value in the image represented by the 16-value conversion blur image data Sus16 As shown in FIG. 12, the distance between the pixel position detected by the detecting means 23 and the position detecting means 23 and the image center O is obtained, and the standard deviation σ of this distance is calculated, and this is used as the contrast feeling C0. And an arithmetic means 24. The contrast feeling C0 calculated in this way quantifies and represents the perceived state of how bright areas are distributed on the image when a human observes the image.

ここで、演算手段24において算出された標準偏差σが比較的小さい場合は、明るい領域が画像の中央付近に集中している画像(例えばストロボを使用して撮影を行うことにより得られたストロボ画像)であるとして、これに適した画像処理を処理手段2において行う。第3の実施形態においては、処理手段2において、コントラスト感定量化手段1にて求められたコントラスト感C0すなわち標準偏差σが予め定められた所定の閾値Th5より小さいか否かが判断され、σ<Th5である場合には、画像の中央付近に明るい領域が集中したストロボ画像であると判断し、これに適した画像処理を画像データS0に対して施す。なお、σ≧Th5である場合には、標準的な画像としてこれに適した画像処理を画像データS0に対して施す。   Here, when the standard deviation σ calculated by the computing unit 24 is relatively small, an image in which bright areas are concentrated near the center of the image (for example, a strobe image obtained by shooting using a strobe). ), Image processing suitable for this is performed in the processing means 2. In the third embodiment, the processing unit 2 determines whether or not the contrast C0 obtained by the contrast quantification unit 1, that is, the standard deviation σ is smaller than a predetermined threshold Th5. If <Th5, it is determined that the image is a strobe image in which bright areas are concentrated near the center of the image, and image processing suitable for this is performed on the image data S0. When σ ≧ Th5, image processing suitable as a standard image is performed on the image data S0.

ここで、ストロボ画像においては、被写体に強い光が照射されるためにコントラストが高くなり、被写体が白く飛んでしまったものとなっている。このため、処理手段2においては、σ<Th5と判断された場合には、画像データS0により表される画像から明るい領域を抽出し、この領域内の画像データS0に対して例えば図6に示すLUT5を用いてコントラストを抑制するように階調変換処理を施す。これにより、明るい領域の部分のコントラストを抑制して、飛びのない画像を表す処理済み画像データS1を得ることができる。   Here, in the strobe image, since the subject is irradiated with strong light, the contrast is high, and the subject is white. Therefore, when it is determined that σ <Th5, the processing unit 2 extracts a bright area from the image represented by the image data S0, and the image data S0 in this area is, for example, shown in FIG. A gradation conversion process is performed using the LUT 5 so as to suppress the contrast. Thereby, it is possible to obtain processed image data S1 representing a non-jumping image while suppressing the contrast of the bright region.

なお、上記第3の実施形態においては、位置検出手段23において検出された画素の位置と画像の中心Oとの距離を求め、この距離の標準偏差σをコントラスト感C0としているが、図13に示すように、画像の中心付近に所定の大きさを有する領域A1を設定し、この領域A1内において15の値を有する画素数をカウントし、この画素数をコントラスト感C0としてもよい。この場合、処理手段2においてはコントラスト感C0すなわち領域A1内の15の値を有する画素数が予め定められた所定の閾値Th6より大きいか否かが判断され、C0>Th6と判断された場合には、明るい領域が画像の中央付近に集中している画像であるとして、領域A1内についてはコントラストを抑制するように階調変換処理を施す。なお、C0≦Th6と判断された場合には、標準的な画像であるとして、これに適した画像処理を施す。これにより、上記と同様に明るい領域の部分のコントラストを抑制して、飛びのない画像を表す処理済み画像データS1を得ることができる。   In the third embodiment, the distance between the pixel position detected by the position detector 23 and the center O of the image is obtained, and the standard deviation σ of this distance is used as the contrast feeling C0. As shown, an area A1 having a predetermined size is set near the center of the image, the number of pixels having a value of 15 in the area A1 is counted, and the number of pixels may be used as the contrast feeling C0. In this case, the processing means 2 determines whether or not the contrast C0, that is, the number of pixels having a value of 15 in the area A1 is greater than a predetermined threshold value Th6, and if it is determined that C0> Th6. Is assumed to be an image in which bright areas are concentrated near the center of the image, and gradation conversion processing is performed in the area A1 so as to suppress contrast. When it is determined that C0 ≦ Th6, it is assumed that the image is a standard image, and image processing suitable for this is performed. Thereby, similarly to the above, it is possible to suppress the contrast of the bright region portion and obtain processed image data S1 representing an image without a jump.

また、上記第1の実施形態においては画像データS0のボケ画像データSusを作成し、このボケ画像データSusのヒストグラムを求め、これに基づいてコントラスト感C0を定量化して求めているが、画像データS0を複数の周波数帯域毎の多重解像度空間に変換し、各周波数帯域毎の解像度データのヒストグラムを作成し、これに基づいてコントラスト感C0を定量化してもよい。以下、これを第4の実施形態として説明する。   In the first embodiment, the blurred image data Sus of the image data S0 is created, the histogram of the blurred image data Sus is obtained, and the contrast feeling C0 is quantified based on the histogram. S0 may be converted into a multi-resolution space for each of a plurality of frequency bands, a histogram of resolution data for each frequency band may be created, and the contrast C0 may be quantified based on the histogram. Hereinafter, this will be described as a fourth embodiment.

図14はコントラスト感定量化手段1の第4の実施形態の具体的な構成を示す概略ブロック図である。図14に示すように、第4の実施形態によるコントラスト感定量化手段1は、画像データS0をウェーブレット変換やラプラシアンピラミッドの手法等により多重解像度空間に変換して、低周波数帯域、中周波数帯域および高周波数帯域の多重解像度画像データ(以下解像度データとする)RL,RM,RHを得る多重解像度変換手段31と、低周波数帯域の解像度データRLから画素値が所定の閾値Th7以上の領域を明部領域M1として抽出する領域抽出手段32と、中高周波数帯域の解像度データRM,RHについて、明部領域M1に対応する領域のヒストグラムHM,HHを作成するヒストグラム作成手段33と、画像データS0により表される画像のコントラスト感C0を定量化して求める定量化手段34とを備える。   FIG. 14 is a schematic block diagram showing a specific configuration of the fourth embodiment of the contrast quantification means 1. As shown in FIG. 14, the contrast quantification means 1 according to the fourth embodiment converts the image data S0 into a multi-resolution space by a wavelet transform, a Laplacian pyramid method, etc. Multi-resolution conversion means 31 for obtaining high-frequency band multi-resolution image data (hereinafter referred to as resolution data) RL, RM, and RH, and a region where the pixel value of the low-frequency band resolution data RL is a predetermined threshold Th7 or more The region extraction unit 32 that extracts the region M1, the histogram generation unit 33 that generates the histograms HM and HH of the region corresponding to the bright region M1 for the resolution data RM and RH in the middle and high frequency band, and the image data S0. Quantifying means 34 for quantifying the contrast C0 of the image to be obtained.

第4の実施形態によるコントラスト感定量化手段1においては下記のようにしてコントラスト感C0が定量化して求められる。まず、画像データS0が多重解像度変換手段31において多重解像度空間に変換されて、低中高周波数帯域の解像度データRL,RM,RHが得られる。なお、各周波数帯域の解像度データにおいて、低解像度解像度データRLは明暗の情報をも含むものであるが、中高解像度データRM,RHは周波数成分のみを表すものである。図15は各解像度データにより表される画像を模式的に示す図であり、図15(a)が低周波数帯域の解像度データRL、図15(b)が中周波数帯域の解像度データRM、図15(c)が高周波数帯域の解像度データRHにより表される画像を示すものである。   In the contrast sensation quantifying means 1 according to the fourth embodiment, the contrast sensation C0 is quantified and obtained as follows. First, the image data S0 is converted into a multi-resolution space by the multi-resolution conversion means 31, and resolution data RL, RM, and RH in the low, medium, and high frequency bands are obtained. In the resolution data of each frequency band, the low resolution resolution data RL includes information on light and dark, but the medium and high resolution data RM and RH represent only frequency components. FIG. 15 is a diagram schematically showing an image represented by each resolution data. FIG. 15A shows the resolution data RL in the low frequency band, FIG. 15B shows the resolution data RM in the middle frequency band, and FIG. (C) shows an image represented by resolution data RH in a high frequency band.

次いで、低周波数帯域の解像度データRLが領域抽出手段32に入力され、ここで画素値が所定の閾値Th7以上の領域が明部領域M1として抽出され、ヒストグラム作成手段33に入力される。一方、明部領域M1の画素数nが定量化手段34に入力される。そして、ヒストグラム作成手段33においては中高周波数帯域の解像度データRM,RHについて、明部領域M1に対応する領域のヒストグラムHM,HHが作成される。このヒストグラムHM,HHは定量化手段34に入力される。   Subsequently, the resolution data RL in the low frequency band is input to the region extraction unit 32, where a region having a pixel value equal to or greater than a predetermined threshold Th <b> 7 is extracted as the bright region M <b> 1 and input to the histogram creation unit 33. On the other hand, the number n of pixels in the bright area M1 is input to the quantification means 34. Then, the histogram creation means 33 creates histograms HM and HH of the area corresponding to the bright area M1 for the resolution data RM and RH in the middle and high frequency bands. The histograms HM and HH are input to the quantification means 34.

ここで、低周波数帯域の解像度データRLのヒストグラムHLの分布幅BLは図16(a)に示すように画素値の分布を表し、図4および図5に示したヒストグラムと同様に画像の大局的な明暗を表すものであるが、中高周波数帯域の解像度データRM,RHの分布幅BM,BHは、図16(b)、(c)に示すように、0を中心とした周波数の振幅を表すものである。   Here, the distribution width BL of the histogram HL of the resolution data RL in the low frequency band represents the distribution of pixel values as shown in FIG. 16A, and is similar to the histogram shown in FIG. 4 and FIG. The distribution widths BM and BH of the resolution data RM and RH in the middle and high frequency band represent the amplitude of the frequency centered at 0 as shown in FIGS. 16 (b) and 16 (c). Is.

一方、例えば鼻や目のくぼみによる顔の明暗、建物や被写体による陰影は、低周波数帯域より高い中周波数帯域の周波数成分により構成される。したがって、顔等の被写体に局所的なコントラストがある画像ほど局所的な陰影が大きくなり、その結果中周波数帯域の解像度データRMの振幅が大きくなる。また、例えば木の枝や草花の細かさ、人物の服の模様や質感、物体間の境界(エッジ)等の詳細な構造物は高周波数成分により構成されている。このため、詳細な構造物に対応する局所的な領域においてコントラストが大きい画像ほどこれらの詳細な構造物がはっきりと見えることから、高周波数帯域の解像度データRHの振幅が大きくなる。   On the other hand, for example, the contrast of a face due to a nose or a dimple in the eyes and the shadow due to a building or a subject are composed of frequency components in a medium frequency band higher than the low frequency band. Therefore, an image having local contrast on a subject such as a face has a larger local shadow, and as a result, the amplitude of the resolution data RM in the middle frequency band increases. Further, for example, detailed structures such as tree branches and fineness of flowers, patterns and textures of human clothes, and boundaries (edges) between objects are composed of high frequency components. For this reason, the larger the contrast in the local region corresponding to the detailed structure, the more clearly these detailed structures can be seen, so the amplitude of the resolution data RH in the high frequency band increases.

定量化手段34においては、ヒストグラムHM,HHに基づいて、コントラスト感C0が定量化される。まず、中周波数帯域の解像度データRMのヒストグラムHMにおける分布幅BMが、所定の閾値Th8と比較される。そして、ヒストグラムHMの分布幅BMが所定の閾値Th8よりも大きい場合(BM>Th8)には、中周波数帯域の情報を比較的多く含む標準画像、所定の閾値Th8以下(BM≦Th8)である場合には中周波数帯域の情報をそれほど多く含まないローコントラスト画像と判別される。なお、ここで標準画像と判別された場合には、高周波数帯域の解像度データRHのヒストグラムHHにおける分布幅BHを所定の閾値Th9と比較し、分布幅BHが所定の閾値Th9よりも大きい場合(BH>Th9)には、高周波の情報を比較的多く含むハイコントラスト画像、所定の閾値Th9以下の場合(BH≦Th9)には高周波の情報をそれほど含まない標準画像であると判別してもよい。一方、領域抽出手段32において抽出された明部領域M1の画素数nを所定の閾値Th10と比較し、この画素数nが所定の閾値Th10よりも小さい場合(n<Th10)にはローコントラスト画像であると判別するようにしてもよい。この場合画素数nが所定の閾値Th10以上の場合には、中高周波数帯域の解像度データRM,RHを用いて上述したように判別を行うものとする。   In the quantification means 34, the contrast feeling C0 is quantified based on the histograms HM and HH. First, the distribution width BM in the histogram HM of the resolution data RM in the middle frequency band is compared with a predetermined threshold Th8. When the distribution width BM of the histogram HM is larger than the predetermined threshold Th8 (BM> Th8), the standard image includes a relatively large amount of medium frequency band information, and is equal to or less than the predetermined threshold Th8 (BM ≦ Th8). In this case, it is determined that the image is a low contrast image that does not contain much information in the middle frequency band. If it is determined that the image is a standard image, the distribution width BH in the histogram HH of the resolution data RH in the high frequency band is compared with a predetermined threshold Th9, and the distribution width BH is larger than the predetermined threshold Th9 ( BH> Th9) may be determined to be a high-contrast image that contains a relatively large amount of high-frequency information, and a standard image that does not contain much high-frequency information if it is below a predetermined threshold Th9 (BH ≦ Th9). . On the other hand, the number n of pixels in the bright area M1 extracted by the area extraction unit 32 is compared with a predetermined threshold Th10. When the number n of pixels is smaller than the predetermined threshold Th10 (n <Th10), a low-contrast image. You may make it discriminate | determine that it is. In this case, when the number of pixels n is equal to or greater than the predetermined threshold Th10, the determination is performed as described above using the resolution data RM and RH in the middle and high frequency bands.

このように画像のコントラストの種別が求められると、このコントラストの種別がコントラスト感C0として出力される。この場合、コントラスト感C0は、例えばローコントラスト画像は1、ハイコントラスト画像は2、標準画像は3のように、コントラスト種別に応じた値を有する信号となる。   When the type of contrast of the image is thus obtained, this type of contrast is output as a contrast feeling C0. In this case, the contrast feeling C0 is a signal having a value corresponding to the contrast type, for example, 1 for a low contrast image, 2 for a high contrast image, and 3 for a standard image.

そして、処理手段2においては、コントラスト感定量化手段1において定量化されたコントラスト感C0に基づいて、上記第1の実施形態と同様にして階調変換LUTを切り替えて、画像データS0に対して階調を変換する画像処理を施して処理済み画像データS1を得る。   Then, the processing means 2 switches the gradation conversion LUT based on the contrast sensation C0 quantified by the contrast sensation quantification means 1 in the same manner as in the first embodiment, and the image data S0 is changed. Image processing S1 is obtained by performing image processing for converting the gradation.

なお、上記第4の実施形態において、上記第2の実施形態と同様に画像データS0の輝度データL*または色データC*を求め、輝度データL*または色データC*を多重解像度空間に変換して輝度データL*または色データC*についての解像度データを得、この解像度データからコントラスト感C0を定量化してもよい。以下、これを第5の実施形態として説明する。 In the fourth embodiment, as in the second embodiment, the luminance data L * or color data C * of the image data S0 is obtained, and the luminance data L * or color data C * is converted into a multi-resolution space. Then, resolution data for the luminance data L * or the color data C * may be obtained, and the contrast feeling C0 may be quantified from the resolution data. Hereinafter, this will be described as a fifth embodiment.

図17はコントラスト感定量化手段1の第5の実施形態の具体的な構成を示す概略ブロック図である。図17に示すように、第5の実施形態によるコントラスト感定量化手段1は、第4の実施形態における多重解像度変換手段31、領域抽出手段32、ヒストグラム作成手段33および定量化手段34に加えて、上記第2の実施形態と同様の変換手段15を備え、多重解像度変換手段31において輝度データL*または色データC*を多重解像度空間に変換して低周波数帯域、中周波数帯域および高周波数帯域の輝度解像度データRLL,RML,RHLまたは色解像度データRLC,RMC,RHCを得るようにしたものである。 FIG. 17 is a schematic block diagram showing a specific configuration of the fifth embodiment of the contrast quantification means 1. As shown in FIG. 17, the contrast quantification means 1 according to the fifth embodiment is added to the multi-resolution conversion means 31, the region extraction means 32, the histogram creation means 33, and the quantification means 34 according to the fourth embodiment. The same conversion means 15 as that of the second embodiment is provided, and the multi-resolution conversion means 31 converts the luminance data L * or the color data C * into a multi-resolution space so that the low frequency band, medium frequency band, and high frequency band are converted. Luminance resolution data RLL, RML, RHL or color resolution data RLC, RMC, RHC are obtained.

ここで、輝度解像度データRLL,RML,RHLのみを得た場合は、低周波数帯域の輝度解像度データRLLから上記第4の実施形態と同様に領域抽出手段32において明部領域M1を抽出し、中高周波数帯域の輝度解像度データRML,RHLについて、明部領域M1に対応する領域の輝度ヒストグラムHML,HHLをヒストグラム作成手段33において作成し、定量化手段34において、輝度ヒストグラムHML,HHLに基づいてコントラスト感C0を定量化する。   Here, when only the luminance resolution data RLL, RML, and RHL are obtained, the bright area M1 is extracted from the luminance resolution data RLL in the low frequency band by the area extracting unit 32 in the same manner as in the fourth embodiment. For the luminance resolution data RML and RHL in the frequency band, the luminance histograms HML and HHL of the area corresponding to the bright area M1 are created by the histogram creating means 33, and the quantifying means 34 based on the brightness histograms HML and HHL. C0 is quantified.

一方、色解像度データRLC,RMC,RHCのみを得た場合は、領域抽出手段32において低周波数帯域の色解像度データRLCにより表される画像から所定の閾値以上となる領域を高彩度領域M2として抽出する。   On the other hand, when only the color resolution data RLC, RMC, and RHC are obtained, the area extraction unit 32 extracts an area that is equal to or higher than a predetermined threshold from the image represented by the color resolution data RLC in the low frequency band as the high saturation area M2. .

ここで、中周波数帯域の色解像度データRMCは、画像データS0の中周波数帯域の解像度データRMと同様に、例えば鼻や目のくぼみによる顔の明暗、建物や被写体による陰影を表すものとなる。また、高周波数帯域の色解像度データRHCも画像データS0の高周波数帯域の解像度データRHと同様に、例えば木の枝や草花の細かさ、人物の服の模様や質感、物体間の境界(エッジ)等の詳細な構造物を表すものとなる。   Here, the color resolution data RMC in the middle frequency band represents, for example, the brightness of the face due to a nose or a dimple in the eye and the shadow due to a building or subject, like the resolution data RM in the middle frequency band of the image data S0. Similarly to the resolution data RH of the high frequency band of the image data S0, the color resolution data RHC of the high frequency band, for example, the fineness of tree branches and flowers, the pattern and texture of a person's clothes, and the boundary (edge) between objects ) And other detailed structures.

したがって、ヒストグラム作成手段33において、領域抽出手段32にて抽出された高彩度領域M2について、中高周波数帯域の色解像度データRMC,RHCの色ヒストグラムHMC,HHCを作成し、定量化手段34において上記第4の実施形態と同様に、これら色ヒストグラムHMC,HHCの振幅を所定の閾値と比較してコントラスト種別を判別し、判別結果をコントラスト感C0として得ることができる。   Therefore, the histogram creation means 33 creates color histograms HMC and HHC of the medium and high frequency band color resolution data RMC and RHC for the high saturation region M2 extracted by the region extraction means 32, and the quantification means 34 describes the fourth color histogram HMC and HHC. As in the first embodiment, the contrast type is determined by comparing the amplitudes of the color histograms HMC and HHC with a predetermined threshold, and the determination result can be obtained as the contrast C0.

また、第5の実施形態において色データC*からコントラスト感C0を求めた場合、このコントラスト感C0から求められたコントラスト種別がローコントラスト画像であった場合には、画像データS0により表される画像の彩度を高くする彩度変更処理を施すようにしてもよい。具体的には、上記式(8)により求められた彩度C*に強調係数αcを乗算して彩度を向上させる。なお、強調係数αcの値としては1.2程度であることが好ましいが、これに限定されるものではない。 Further, in the fifth embodiment, when the contrast feeling C0 is obtained from the color data C * , when the contrast type obtained from the contrast feeling C0 is a low contrast image, the image represented by the image data S0. You may make it perform the saturation change process which raises the saturation of. Specifically, the saturation is improved by multiplying the saturation C * obtained by the above equation (8) by the enhancement coefficient αc. Note that the value of the enhancement coefficient αc is preferably about 1.2, but is not limited thereto.

さらに、第5の実施形態において、輝度解像度データRLL,RML,RHLおよび色解像度データRLC,RMC,RHCを得た場合、低周波数帯域の輝度解像度データRLLに基づいて明部領域M1を抽出し、中高周波数帯域の色解像度データRMC,RHCについて、明部領域M1に対応する領域の色ヒストグラムHMC,HHCを作成し、色ヒストグラムHMC,HHCに基づいてコントラスト感C0を定量化して求めてもよい。また、低周波数帯域の色解像度データRLCに基づいて高彩度領域M2を抽出し、中高周波数帯域の輝度解像度データRML,RHLについて、高彩度領域M2に対応する領域の輝度ヒストグラムHML,HHLを作成してコントラスト感C0を定量化して求めてもよい。   Furthermore, in the fifth embodiment, when the luminance resolution data RLL, RML, RHL and the color resolution data RLC, RMC, RHC are obtained, the bright area M1 is extracted based on the luminance resolution data RLL in the low frequency band, For the color resolution data RMC and RHC in the middle and high frequency bands, the color histograms HMC and HHC of the area corresponding to the bright area M1 may be created, and the contrast C0 may be quantified based on the color histograms HMC and HHC. Further, the high saturation region M2 is extracted based on the color resolution data RLC in the low frequency band, and the brightness histograms HML and HHL of the region corresponding to the high saturation region M2 are created for the brightness resolution data RML and RHL in the medium and high frequency band to create contrast. The feeling C0 may be determined by quantification.

なお、上記第1および第3の実施形態においては、画像データS0、輝度データL*、色データC*のヒストグラムの分布幅、第2の実施形態においては画像データS0の標準偏差をコントラスト感C0として求めているが、1つの画像データS0について画像データS0、輝度データL*、色データC*ヒストグラムの分布幅および標準偏差さらには画像データS0のコントラスト感を求めることが可能な種々の情報を特徴量として求め、下記の式(9)に示すように、各特徴量を重み付け加算してコントラスト感C0を定量化してもよい。

Figure 2008283724
In the first and third embodiments, the distribution width of the histogram of the image data S0, the luminance data L * and the color data C * , and the standard deviation of the image data S0 in the second embodiment are the contrast feeling C0. However, for one piece of image data S0, the image data S0, the luminance data L * , the color data C * , the distribution width and standard deviation of the histogram, and various information that can determine the contrast of the image data S0. As a feature value, the contrast C0 may be quantified by weighting and adding each feature value as shown in the following equation (9).
Figure 2008283724

但し、vn:特徴量
an:重み係数
n:特徴量の数
なお、重み係数anは実験的に求めればよい。すなわち、重み係数を種々変更してコントラスト感C0を定量化し、このコントラスト感C0に応じて異なる画像処理を施した複数の画像を生成して視覚評価を行い、視覚的なコントラスト感と一致する画像を生成した際の重み係数を選択し、選択した重み係数anを式(9)の演算において用いればよい。
Where vn: feature quantity an: weighting coefficient
n: Number of feature quantities The weighting factor an may be obtained experimentally. That is, the contrast feeling C0 is quantified by variously changing the weighting coefficient, and a plurality of images subjected to different image processing according to the contrast feeling C0 are generated for visual evaluation, and an image that matches the visual contrast feeling. May be selected and the selected weighting factor an may be used in the calculation of equation (9).

また、上記第1から第3の実施形態においては、コントラスト感C0を定量化して求めているが、第4および第5の実施形態と同様に画像のコントラストの種別をコントラスト感C0として求めてもよい。   In the first to third embodiments, the contrast feeling C0 is obtained by quantification. However, as in the fourth and fifth embodiments, the image contrast type may be obtained as the contrast feeling C0. Good.

さらにまた、上記第1から第3の実施形態において、下記の式(10)に示すように、特徴量vnの重み付け加算結果に応じて画像のコントラストの種別を判別し、この判別結果をコントラスト感C0としてもよい。

Figure 2008283724
Furthermore, in the first to third embodiments, as shown in the following equation (10), the type of contrast of the image is determined according to the weighted addition result of the feature quantity vn, and this determination result is used as the contrast feeling. It may be C0.
Figure 2008283724

ここで、hn,sn,lnはPh,Ps,Plをそれぞれハイコントラスト画像、標準画像およびローコントラスト画像である確率を表す指標となるように算出する重み係数である。例えばある画像ではPh,Ps,Plが10%、30%、70%と算出され、他の画像では80%、40%、5%と算出された場合、前者はローコントラスト画像、後者はハイコントラスト画像であると判別することができる。この場合、コントラスト感C0は、例えばローコントラスト画像は1、ハイコントラスト画像は2、標準画像は3のように、コントラスト種別に応じた値を有する信号とすればよく、コントラスト感C0により表されるコントラスト種別に応じて階調変換LUTを選択して画像データS0に対して階調変換処理を施せばよい。 Here, hn, sn, and ln are weighting factors that are calculated so that Ph, Ps, and Pl are indexes representing the probabilities of being a high-contrast image, a standard image, and a low-contrast image, respectively. For example, when Ph, Ps, and Pl are calculated as 10%, 30%, and 70% for a certain image and calculated as 80%, 40%, and 5% for another image, the former is a low contrast image, and the latter is a high contrast. It can be determined that it is an image. In this case, the contrast feeling C0 may be a signal having a value corresponding to the contrast type, such as 1 for a low contrast image, 2 for a high contrast image, and 3 for a standard image, and is represented by the contrast feeling C0. A gradation conversion LUT may be selected according to the contrast type and gradation conversion processing may be performed on the image data S0.

また、上記第4の実施形態においては、低周波数帯域の解像度データRLから得られる明部領域M1の画素数nおよび中高周波数帯域の解像度データRM,RHのヒストグラムHM,HHの分布幅BM,BHに基づいて、コントラスト感C0を定量化しているが、各周波数帯域の解像度データRL,RM,RHについて、明部領域の画素数、ヒストグラムの分布幅、あるいは上記第3の実施形態において求めたような標準偏差を各周波数帯域毎に特徴量として求め、この特徴量を上記式(9)により重み付け加算して各周波数帯域毎のコントラスト感C0を定量化してもよい。さらに、下記の式(11)に示すように各周波数帯域毎に個別に求められたコントラスト感をさらに重み付け加算することにより、コントラスト感C0を定量化してもよい。なお、特徴量には、上記第5の実施形態における低周波数帯域の輝度解像度データRLLから得られる明部領域M1の画素数nおよび中高周波数帯域の輝度解像度データRML,RHLの輝度ヒストグラムHML,HHLの分布幅、および/または低周波数帯域の色解像度データRLCから得られる高彩度領域M2内における中高周波数帯域の色解像度データRMC,RHCの色ヒストグラムHMC,HHCの分布幅を含めるようにしてもよい。

Figure 2008283724
In the fourth embodiment, the number n of pixels in the bright area M1 obtained from the resolution data RL in the low frequency band and the distribution widths BM and BH of the histograms HM and HH of the resolution data RM and RH in the middle and high frequency bands. The sense of contrast C0 is quantified based on the above, but the resolution data RL, RM, and RH of each frequency band are obtained in the number of pixels in the bright area, the distribution width of the histogram, or in the third embodiment. A standard deviation may be obtained as a feature amount for each frequency band, and the feature amount may be weighted and added by the above equation (9) to quantify the contrast C0 for each frequency band. Furthermore, as shown in the following formula (11), the contrast feeling C0 may be quantified by further weighted addition of the contrast feeling obtained individually for each frequency band. The feature amount includes the number n of pixels in the bright area M1 obtained from the low-frequency band luminance resolution data RLL and the luminance histograms HML and HHL of the medium-high frequency band luminance resolution data RML and RHL in the fifth embodiment. And / or the distribution widths of the color histograms HMC and HHC of the color resolution data RMC and RHC in the medium and high frequency band in the high saturation region M2 obtained from the color resolution data RLC in the low frequency band.
Figure 2008283724

但し、li,mj,hk:各周波数帯域毎の特徴量
αi,βj,γk:上記式(9)におけるanに対応する重み係数
L,M,H:各周波数帯域毎の重み係数
i,j,k:各周波数帯域における特徴量の数
なお、重み係数αi,βj,γk,L,M,Hは、式(9)における重み係数anと同様に実験的に求めればよい。また、式(11)においてL=1,M=0,H=0とすれば、実質的に式(9)と等価となる。
However, li, mj, hk: feature quantities for each frequency band αi, βj, γk: weighting coefficients corresponding to an in the above formula (9) L, M, H: weighting coefficients i, j, for each frequency band k: Number of feature values in each frequency band The weighting factors αi, βj, γk, L, M, and H may be obtained experimentally in the same manner as the weighting factor an in Equation (9). Further, if L = 1, M = 0, and H = 0 in equation (11), this is substantially equivalent to equation (9).

さらに、この場合、上記式(9)、(11)において算出されたコントラスト感C0の値に応じて、画像をハイコントラスト画像、標準画像、ローコントラスト画像のような種別へ分類し、この分類結果をコントラスト感C0としてもよい。この場合、コントラスト感C0は、ハイコントラスト画像、標準画像、ローコントラスト画像を数値により表したものとすればよい。   Furthermore, in this case, the images are classified into types such as a high-contrast image, a standard image, and a low-contrast image according to the value of the contrast feeling C0 calculated in the above formulas (9) and (11). May be set as a contrast feeling C0. In this case, the contrast C0 may be a numerical value representing a high-contrast image, a standard image, and a low-contrast image.

また、第4および第5の実施形態において上記式(10)のようにコントラスト種別の確率を求め、この確率に基づいて画像のコントラスト種別を判別してその判別結果をコントラスト感C0として求めるようにしてもよい。   Further, in the fourth and fifth embodiments, the probability of the contrast type is obtained as in the above equation (10), the contrast type of the image is discriminated based on this probability, and the discrimination result is obtained as the contrast feeling C0. May be.

なお、上記各実施形態においては、処理手段2において、画像データS0に対してコントラスト感C0に応じて階調変換LUTを切り替えることによる階調変換処理および/または彩度変更処理を施しているが、画像処理としてはこれに限定されるものではない。例えば、コントラスト感C0を所定の閾値Th11と比較し、C0<Th11の場合には、図18に示すように斜線部分の周波数成分を下記の式(12)により強調することにより、コントラスト感を高めるような周波数処理を画像データS0に対して施すようにしてもよい。なお、図18においてはFx軸およびFy軸はフーリエ平面上における周波数を表すものであり、斜線部分は画像データS0における高周波成分に対応するものである。

Figure 2008283724
In each of the above embodiments, the processing means 2 performs the gradation conversion process and / or the saturation change process by switching the gradation conversion LUT according to the contrast C0 for the image data S0. The image processing is not limited to this. For example, the contrast feeling C0 is compared with a predetermined threshold value Th11, and when C0 <Th11, the frequency component in the hatched portion is enhanced by the following formula (12) as shown in FIG. Such frequency processing may be performed on the image data S0. In FIG. 18, the Fx axis and the Fy axis represent frequencies on the Fourier plane, and the hatched portion corresponds to a high frequency component in the image data S0.
Figure 2008283724

但し、F(x,y):画像データS0
F′(x,y):処理済み画像データS1
d(C0):ボケの程度を定める関数
β:強調係数
さらに、画像データS0が人物の顔を含む画像を表すものである場合に、画像データS0から顔に対応する顔領域を抽出し、顔領域の濃度および定量化されたコントラスト感C0に応じて顔領域の明るさを変化させるようにAE処理(自動露出制御処理)を行って処理済み画像データS1を得るようにしてもよい。以下、このAE処理を行う処理手段について説明する。図19はAE処理を行う処理手段2の構成を示す概略ブロック図である。図19に示すように、この処理手段2は、画像データS0により表される画像から人物の顔領域を抽出する顔抽出手段41と、顔抽出手段41において抽出された顔領域の濃度tfaceを求める濃度算出手段42と、コントラスト感C0および顔領域の濃度tfaceに基づいて画像データS0に対してAE処理を施して処理済み画像データS1を得るAE処理手段43とを備える。
However, F (x, y): Image data S0
F ′ (x, y): processed image data S1
d (C0): a function that determines the degree of blur β: enhancement coefficient Further, when the image data S0 represents an image including a human face, a face region corresponding to the face is extracted from the image data S0, The processed image data S1 may be obtained by performing an AE process (automatic exposure control process) so as to change the brightness of the face area in accordance with the density of the area and the quantified contrast C0. Hereinafter, processing means for performing this AE process will be described. FIG. 19 is a schematic block diagram showing the configuration of the processing means 2 that performs AE processing. As shown in FIG. 19, the processing means 2 obtains a face extracting means 41 for extracting a human face area from an image represented by the image data S0, and a face area density tface extracted by the face extracting means 41. Density calculating means 42, and AE processing means 43 for performing AE processing on the image data S0 based on the contrast C0 and the face area density tface to obtain processed image data S1.

顔抽出手段41における顔領域の抽出方法としては、例えば特開平6−67320号公報に記載されているように、画像データS0により表される画像の色相および彩度値の分布に基づいて画像を領域分割して顔候補領域を抽出し、さらに顔候補領域の近傍に位置する近傍領域の形状から顔領域を検出して抽出する方法や、単純に抽出された顔候補領域に外接する楕円を求め、その楕円により囲まれる領域を顔領域とする方法等を採用することができる。さらには、例えば特開平5−274438号公報、同5−307605号公報などに記載されたニューラルネットワークにより顔領域を抽出する方法を用いてもよい。   As a face region extraction method in the face extraction means 41, as described in, for example, Japanese Patent Laid-Open No. 6-67320, an image is extracted based on the hue and saturation value distribution of the image represented by the image data S0. Extract the face candidate area by dividing the area and then detect and extract the face area from the shape of the neighboring area located in the vicinity of the face candidate area, or simply find the ellipse that circumscribes the extracted face candidate area A method of setting a region surrounded by the ellipse as a face region can be employed. Further, for example, a method of extracting a face region by a neural network described in Japanese Patent Application Laid-Open Nos. 5-274438 and 5-307605 may be used.

濃度算出手段42においては、顔抽出手段41において抽出された顔領域内における画素値の平均値などを顔領域濃度tfaceとして算出する。   In the density calculation means 42, the average value of the pixel values in the face area extracted by the face extraction means 41 is calculated as the face area density tface.

なお、AE処理を行う場合に、処理手段2に入力されるコントラスト感C0としては、上記第1の実施形態において定量化したようなヒストグラムHusの分布幅を表すものとする。   When the AE process is performed, the contrast C0 input to the processing unit 2 represents the distribution width of the histogram Hus as quantified in the first embodiment.

そして、顔抽出手段41においては画像データS0により表される画像から顔領域が抽出され、さらに濃度算出手段42において顔領域の濃度tfaceが算出される。AE処理手段43においてはコントラスト感C0および顔領域の濃度tfaceに基づいて、画像データS0に対してAE処理が施される。なお、AE処理手段43においては一旦画像データS0の全体に対してAE処理を施した後、さらに顔の濃度を適切なものとするために顔領域についてのみさらにAE処理が行われる。図20はAE処理を説明するための図である。AE処理手段43においては、まずコントラスト感C0を所定の閾値Th12およびTh14(Th12<Th14)と比較する。そして、C0<Th12である場合にはローコントラスト画像であるとして、さらに、顔領域濃度tfaceを所定の閾値Th13と比較する。そして、tface<Th13である場合には、顔領域が暗すぎるものとして、図20(a)に示すように顔領域濃度tfaceがTh13と一致するように画像データS0に対してAE処理を施して処理済み画像データS1を得る。   Then, the face extraction means 41 extracts a face area from the image represented by the image data S0, and the density calculation means 42 calculates the density tface of the face area. The AE processing unit 43 performs AE processing on the image data S0 based on the contrast C0 and the face area density tface. In the AE processing unit 43, after the AE process is once performed on the entire image data S0, the AE process is further performed only on the face area in order to further optimize the face density. FIG. 20 is a diagram for explaining the AE process. In the AE processing means 43, the contrast feeling C0 is first compared with predetermined threshold values Th12 and Th14 (Th12 <Th14). If C0 <Th12, it is determined that the image is a low contrast image, and the face area density tface is further compared with a predetermined threshold Th13. If tface <Th13, it is assumed that the face area is too dark, and the AE process is performed on the image data S0 so that the face area density tface matches Th13 as shown in FIG. Processed image data S1 is obtained.

C0<Th12かつtface≧Th13の場合には、顔領域の明るさは適正なものであるとしてAE処理は行わない。   If C0 <Th12 and tface ≧ Th13, the brightness of the face area is appropriate and the AE process is not performed.

C0≧Th12かつtface<Th13の場合には、コントラスト感C0は適正であるが顔領域が暗すぎるものとして、顔領域濃度tfaceが(Th13+tface)/2となるように画像データS0に対してAE処理を施して処理済み画像データS1を得る。   In the case of C0 ≧ Th12 and tface <Th13, the AE process is performed on the image data S0 so that the face area density tface is (Th13 + tface) / 2, assuming that the contrast C0 is appropriate but the face area is too dark. To obtain processed image data S1.

C0≧Th12かつtface≧Th13の場合には、顔領域の明るさは適正なものであるとしてAE処理は行わない。   When C0 ≧ Th12 and tface ≧ Th13, the brightness of the face area is appropriate and the AE process is not performed.

一方、C0>Th14である場合には、ハイコントラスト画像であるとして、さらに、顔領域濃度tfaceを所定の閾値Th15と比較する。そして、tface>Th15である場合には、顔領域が明るすぎるものとして、図20(b)に示すように顔領域濃度tfaceがTh15と一致するようにAE処理を施して処理済み画像データS1を得る。なお、この場合も顔領域についてのみAE処理を施すことが好ましい。   On the other hand, if C0> Th14, it is determined that the image is a high contrast image, and the face area density tface is further compared with a predetermined threshold Th15. If tface> Th15, it is determined that the face area is too bright, and the processed image data S1 is obtained by performing AE processing so that the face area density tface matches Th15 as shown in FIG. obtain. In this case as well, it is preferable to perform the AE process only on the face area.

C0>Th14かつtface≦Th15の場合には、顔領域の明るさは適正なものであるとしてAE処理は行わない。   If C0> Th14 and tface ≦ Th15, the brightness of the face area is appropriate and the AE process is not performed.

C0≦Th14かつtface>Th15の場合には、コントラスト感C0は適正であるが顔領域が明るすぎるものとして、顔領域濃度tfaceが(Th15+tface)/2となるように画像データS0に対してAE処理を施して処理済み画像データS1を得る。   When C0 ≦ Th14 and tface> Th15, it is assumed that the contrast C0 is appropriate but the face area is too bright, and the AE process is performed on the image data S0 so that the face area density tface is (Th15 + tface) / 2. To obtain processed image data S1.

C0≦Th14かつtface≦Th15の場合には、顔領域の明るさは適正なものであるとしてAE処理は行わない。   When C0 ≦ Th14 and tface ≦ Th15, the brightness of the face area is appropriate and the AE process is not performed.

なお、上記第3の実施形態において、σ<Th5と判断された場合に顔領域が白く飛んでいるストロボ画像であるとして、顔領域の濃度tfaceが小さくなるようにAE処理を施すようにしてもよい。   In the third embodiment, assuming that σ <Th5, the AE process is performed so that the density tface of the face area becomes small, assuming that the face area is a white strobe image. Good.

また、上記各実施形態においては、処理手段2において、階調変換処理、彩度変更処理、周波数強調処理あるいはAE処理を施しているが、例えば階調変換処理とAE処理とのように、これらの処理を組み合わせて行うようにしてもよい。また、画像処理の内容は階調変換処理、彩度変更処理、周波数強調処理およびAE処理に限定されるものではなく、他の種々の画像処理を行うことが可能である。   In each of the above embodiments, the processing means 2 performs gradation conversion processing, saturation change processing, frequency enhancement processing, or AE processing. For example, the gradation conversion processing and AE processing are the same. These processes may be performed in combination. Further, the content of the image processing is not limited to the gradation conversion processing, the saturation change processing, the frequency enhancement processing, and the AE processing, and various other image processing can be performed.

次いで、本発明による他の実施形態について説明する。図21は本発明の他の実施形態による画像処理装置の構成を示す概略ブロック図である。図21に示すように本発明の他の実施形態による画像処理装置は、第2の実施形態における変換手段15と同様に画像データS0を輝度データL*および色データC*に変換する変換手段51と、輝度データL*および色データC*を多重解像度変換して低周波数帯域、中周波数帯域および高周波数帯域の輝度解像度データRLL,RML,RHLおよび色解像度データRLC,RMC,RHCを得る多重解像度変換手段31と、低周波数帯域の輝度解像度データRLLの輝度ヒストグラムHLLおよび低周波数帯域の色解像度データRLCの色ヒストグラムHLCを作成するヒストグラム作成手段53と、輝度ヒストグラムHLLおよび色ヒストグラムHLCに基づいて、画像データS0に施すべき画像処理のパターンJを設定する処理パターン設定手段54と、設定された処理パターンJにより画像データS0に対して画像処理を施して処理済み画像データS1を得る処理手段55と、処理済み画像データS1を可視像として出力する出力手段56とを備える。 Next, another embodiment according to the present invention will be described. FIG. 21 is a schematic block diagram showing the configuration of an image processing apparatus according to another embodiment of the present invention. As shown in FIG. 21, an image processing apparatus according to another embodiment of the present invention includes a conversion unit 51 that converts image data S0 into luminance data L * and color data C * , similar to the conversion unit 15 in the second embodiment. And multi-resolution conversion of luminance data L * and color data C * to obtain luminance resolution data RLL, RML, RHL and color resolution data RLC, RMC, RHC in the low frequency band, medium frequency band and high frequency band Based on the conversion means 31, the histogram creation means 53 for creating the luminance histogram HLL of the luminance resolution data RLL in the low frequency band and the color histogram HLC of the color resolution data RLC in the low frequency band, and the luminance histogram HLL and the color histogram HLC, Processing pattern for setting image processing pattern J to be applied to image data S0 Setting means 54, processing means 55 for performing image processing on the image data S0 by the set processing pattern J to obtain processed image data S1, and output means for outputting the processed image data S1 as a visible image 56.

なお、色データC*が彩度として得られる場合には1次元の色ヒストグラムHLCが作成され、色データがa*,b*として得られる場合には、図10に示すような2次元の色ヒストグラムHLCが作成される。 When the color data C * is obtained as saturation, a one-dimensional color histogram HLC is created, and when the color data is obtained as a * , b * , a two-dimensional color as shown in FIG. A histogram HLC is created.

処理パターン設定手段54においては、図6に示す階調変換LUTおよび彩度C*を向上させるための強調係数αcの値が処理パターンJとして設定される。まず、輝度ヒストグラムHLLおよび色ヒストグラムHLCからヒストグラムの分布を表す特徴量が求められる。輝度ヒストグラムHLLについてはその分布幅が特徴量P1として求められる。また、色ヒストグラムHLCが1次元であればその分布幅が、色ヒストグラムHLCが2次元であればその分布面積が特徴量P2として求められる。そして、特徴量P2が予め定められた所定の閾値Th16と比較され、P2≧Th16であった場合には、例えば図6に示す階調変換LUTのうちLUT3が階調変換のためのLUTとして選択され、さらに強調係数αc=1.0と設定される。 In the processing pattern setting means 54, the value of the enhancement coefficient αc for improving the gradation conversion LUT and the saturation C * shown in FIG. First, a feature amount representing a histogram distribution is obtained from the luminance histogram HLL and the color histogram HLC. The distribution width of the luminance histogram HLL is obtained as the feature amount P1. If the color histogram HLC is one-dimensional, the distribution width is obtained as the feature amount P2, and if the color histogram HLC is two-dimensional, the distribution area is obtained as the feature amount P2. Then, the feature amount P2 is compared with a predetermined threshold Th16, and if P2 ≧ Th16, for example, LUT3 of the tone conversion LUT shown in FIG. 6 is selected as the LUT for tone conversion. Further, the enhancement coefficient αc = 1.0 is set.

一方、P2<Th16であった場合には、輝度ヒストグラムHLLから得られた特徴量P1が所定の閾値Th17と比較され、P1≧Th17であった場合には、ハイコントラスト画像であるとしてLUT5が選択され、強調係数αc=1.0と設定される。また、P1<Th17であった場合には、ローコントラスト画像であるとしてLUT1が選択され、強調係数αc=1.2と設定される。   On the other hand, when P2 <Th16, the feature amount P1 obtained from the luminance histogram HLL is compared with a predetermined threshold Th17, and when P1 ≧ Th17, the LUT 5 is selected as a high contrast image. And the enhancement coefficient αc = 1.0 is set. If P1 <Th17, LUT1 is selected as a low contrast image, and the enhancement coefficient αc = 1.2 is set.

このようにして設定された処理パターンJにより処理手段55において画像データS0に対して画像処理が施される。   The processing unit 55 performs image processing on the image data S0 according to the processing pattern J set in this way.

次いで、他の実施形態の動作について説明する。図22は他の実施形態の動作を示すフローチャートである。まず、変換手段51において、画像データS0が輝度データL*および色データC*に変換され(ステップS11)、多重解像度変換手段52において、輝度データL*および色データC*が多重解像度変換されて低周波数帯域、中周波数帯域および高周波数帯域の輝度解像度データRLL,RML,RHLおよび色解像度データRLC,RMC,RHCが得られる(ステップS12)。ヒストグラム作成手段53においては、低周波数帯域の輝度解像度データRLLから輝度ヒストグラムHLLが、低周波数帯域の色解像度データRLCから色ヒストグラムHLCが作成される(ステップS13)。 Next, the operation of another embodiment will be described. FIG. 22 is a flowchart showing the operation of another embodiment. First, the conversion means 51 converts the image data S0 into luminance data L * and color data C * (step S11), and the multiresolution conversion means 52 converts the luminance data L * and color data C * into multiresolution. Luminance resolution data RLL, RML, RHL and color resolution data RLC, RMC, RHC in the low frequency band, medium frequency band, and high frequency band are obtained (step S12). In the histogram creation means 53, the brightness histogram HLL is created from the brightness resolution data RLL in the low frequency band, and the color histogram HLC is created from the color resolution data RLC in the low frequency band (step S13).

そして、輝度ヒストグラムHLLおよび色ヒストグラムHLCの特徴量P1,P2が算出され(ステップS14)、P2≧Th16であるか否かが判断される(ステップS15)。ステップS15が肯定された場合には、LUT3が選択されるとともに強調係数αc=1.0に設定されて(ステップS16)、処理パターンJが設定される。ステップS15が否定された場合には、P1≧Th17であるか否かが判断され(ステップS17)、ステップS17が肯定された場合にはLUT5が選択されるとともに強調係数αc=1.0に設定されて(ステップS18)、処理パターンJが設定される。ステップS17が否定された場合には、LUT1が選択されるとともに強調係数αc=1.2に設定されて(ステップS19)、処理パターンJが設定される。そして、設定された処理パターンJにより画像データS0に対して画像処理が施され(ステップS20)、処理済み画像データS1が得られる。得られた処理済み画像データS1は出力手段56において可視像として出力される(ステップS21)。   Then, the feature amounts P1 and P2 of the luminance histogram HLL and the color histogram HLC are calculated (step S14), and it is determined whether P2 ≧ Th16 (step S15). When step S15 is affirmed, LUT3 is selected, the enhancement coefficient αc is set to 1.0 (step S16), and the processing pattern J is set. If step S15 is negative, it is determined whether P1 ≧ Th17 (step S17). If step S17 is positive, LUT5 is selected and the enhancement coefficient αc is set to 1.0. In step S18, the processing pattern J is set. If step S17 is negative, LUT1 is selected, the enhancement coefficient αc is set to 1.2 (step S19), and the processing pattern J is set. Then, image processing is performed on the image data S0 by the set processing pattern J (step S20), and processed image data S1 is obtained. The obtained processed image data S1 is output as a visible image by the output means 56 (step S21).

なお、上記他の実施形態においては、輝度データL*および色データC*を多重解像度変換し、低周波数帯域の輝度解像度データRLLのヒストグラムHLLおよび低周波数帯域の色解像度データRLCのヒストグラムHLCを作成しているが、図23に示すように、多重解像度変換手段52に代えて、輝度データL*および色データC*のボケ画像データである輝度ボケ画像データLusおよび色ボケ画像データCusを作成するボケ画像作成手段57を設け、輝度ボケ画像データLusから輝度ヒストグラムHLusおよび色ボケ画像データCusから色ヒストグラムHCusを作成してもよい。 In the other embodiment, the luminance data L * and the color data C * are subjected to multi-resolution conversion, and the histogram HLL of the luminance resolution data RLL in the low frequency band and the histogram HLC of the color resolution data RLC in the low frequency band are generated. However, as shown in FIG. 23, instead of the multi-resolution conversion means 52, luminance blurred image data Lus and color blurred image data Cus, which are blurred image data of the luminance data L * and the color data C * , are created. The blur image creating means 57 may be provided to create the brightness histogram HLus from the brightness blur image data Lus and the color histogram HCus from the color blur image data Cus.

本発明の実施形態による画像処理装置の構成を示す概略ブロック図1 is a schematic block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. コントラスト感定量化手段の第1の実施形態の構成を示す概略ブロック図Schematic block diagram showing the configuration of the first embodiment of the contrast quantification means ボケ画像データの作成状態を示す図Diagram showing the creation state of blurred image data ボケ画像データのヒストグラムの例を示す図The figure which shows the example of the histogram of a blur image data ボケ画像データのヒストグラムの例を示す図The figure which shows the example of the histogram of a blur image data 階調変換LUTを示す図The figure which shows gradation conversion LUT 第1の実施形態において行われる処理を示すフローチャートThe flowchart which shows the process performed in 1st Embodiment. ボケ画像データを16値化した後のヒストグラムを示す図The figure which shows the histogram after bokeh image data is 16-valued コントラスト感定量化手段の第2の実施形態の構成を示す概略ブロック図Schematic block diagram showing the configuration of the second embodiment of the contrast quantification means 2次元ヒストグラムを示す図Figure showing a two-dimensional histogram コントラスト感定量化手段の第3の実施形態の構成を示す概略ブロック図Schematic block diagram showing the configuration of the third embodiment of the contrast quantification means 第3の実施形態において行われる処理を説明するための図The figure for demonstrating the process performed in 3rd Embodiment 第3の実施形態の変形例において行われる処理を説明するための図The figure for demonstrating the process performed in the modification of 3rd Embodiment. コントラスト感定量化手段の第4の実施形態の構成を示す概略ブロック図Schematic block diagram showing the configuration of the fourth embodiment of the contrast quantification means 各周波数帯域の解像度データにより表される画像を示す図The figure which shows the image represented by the resolution data of each frequency band 各周波数帯域の解像度データのヒストグラムを示す図The figure which shows the histogram of the resolution data of each frequency band コントラスト感定量化手段の第5の実施形態の構成を示す概略ブロック図Schematic block diagram showing the configuration of the fifth embodiment of the contrast quantification means 周波数強調処理を説明するための図Diagram for explaining frequency enhancement processing AE処理を行う処理手段の構成を示す概略ブロック図Schematic block diagram showing the configuration of processing means for performing AE processing AE処理を説明するための図Diagram for explaining AE processing 本発明の他の実施形態による画像処理装置の構成を示す概略ブロック図The schematic block diagram which shows the structure of the image processing apparatus by other embodiment of this invention. 他の実施形態において行われる処理を示すフローチャートThe flowchart which shows the process performed in other embodiment 本発明のさらに他の実施形態による画像処理装置の構成を示す概略ブロック図The schematic block diagram which shows the structure of the image processing apparatus by further another embodiment of this invention.

符号の説明Explanation of symbols

1 コントラスト感定量化手段
2,55 処理手段
3,56 出力手段
11,21 ボケ画像作成手段
12,53 ヒストグラム作成手段
13,34 定量化手段
15,51 変換手段
22 16値化手段
23 位置検出手段
24 演算手段
31,52 多重解像度変換手段
32 領域抽出手段
33 ヒストグラム作成手段
41 顔抽出手段
42 濃度算出手段
43 AE処理手段
54 処理パターン設定手段
DESCRIPTION OF SYMBOLS 1 Contrast feeling quantification means 2,55 Processing means 3,56 Output means 11,21 Blurred image creation means 12,53 Histogram creation means 13,34 Quantification means 15,51 Conversion means 22 16-value conversion means 23 Position detection means 24 Calculation means 31, 52 Multi-resolution conversion means 32 Region extraction means 33 Histogram creation means 41 Face extraction means 42 Density calculation means 43 AE processing means 54 Processing pattern setting means

Claims (3)

変換手段が、画像データから該画像データにより表される画像の色情報を表す色データを算出し、
ボケ画像作成手段が、該色データのボケ画像データを作成し、
ヒストグラム作成手段が、該ボケ画像データの2次元の頻度分布を表すヒストグラムを作成し、
コントラスト感算出手段が、該ヒストグラムの分布面積をコントラスト感として算出し、
処理手段が、該コントラスト感に基づいて前記画像データに対して前記画像の輝度情報を変更する画像処理を施すことを特徴とする画像処理方法。
Conversion means calculates color data representing color information of an image represented by the image data from the image data;
A blur image creating means creates blur image data of the color data,
A histogram creating means creates a histogram representing a two-dimensional frequency distribution of the blurred image data;
The contrast feeling calculating means calculates the distribution area of the histogram as a contrast feeling,
An image processing method, wherein processing means performs image processing for changing luminance information of the image on the image data based on the sense of contrast.
画像データから該画像データにより表される画像の色情報を表す色データを算出する変換手段と、
該色データのボケ画像データを作成するボケ画像作成手段と、
該ボケ画像データの2次元の頻度分布を表すヒストグラムを作成するヒストグラム作成手段と、
該ヒストグラムの分布面積をコントラスト感として算出するコントラスト感算出手段と、
該コントラスト感に基づいて前記画像データに対して前記画像の輝度情報を変更する画像処理を施す処理手段とを備えたことを特徴とする画像処理装置。
Conversion means for calculating color data representing color information of an image represented by the image data from the image data;
A blurred image creating means for creating blurred image data of the color data;
A histogram creating means for creating a histogram representing a two-dimensional frequency distribution of the blurred image data;
Contrast feeling calculating means for calculating the distribution area of the histogram as a contrast feeling;
An image processing apparatus comprising: processing means for performing image processing for changing luminance information of the image on the image data based on the sense of contrast.
コンピュータを、画像データから該画像データにより表される画像の色情報を表す色データを算出する変換手段と、
該色データのボケ画像データを作成するボケ画像作成手段と、
該ボケ画像データの2次元の頻度分布を表すヒストグラムを作成するヒストグラム作成手段と、
該ヒストグラムの分布面積をコントラスト感として算出するコントラスト感算出手段と、
該コントラスト感に基づいて前記画像データに対して前記画像の輝度情報を変更する画像処理を施す処理手段として機能させることを特徴とするプログラム。
Conversion means for calculating color data representing color information of an image represented by the image data from the image data;
A blurred image creating means for creating blurred image data of the color data;
A histogram creating means for creating a histogram representing a two-dimensional frequency distribution of the blurred image data;
Contrast feeling calculating means for calculating the distribution area of the histogram as a contrast feeling;
A program that functions as processing means for performing image processing for changing luminance information of the image on the image data based on the sense of contrast.
JP2008214816A 1999-08-17 2008-08-25 Image processing method, apparatus, and program Expired - Fee Related JP4445026B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008214816A JP4445026B2 (en) 1999-08-17 2008-08-25 Image processing method, apparatus, and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP23073199 1999-08-17
JP2008214816A JP4445026B2 (en) 1999-08-17 2008-08-25 Image processing method, apparatus, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000173279A Division JP2001126075A (en) 1999-08-17 2000-06-09 Method and device for picture processing, and recording medium

Publications (2)

Publication Number Publication Date
JP2008283724A true JP2008283724A (en) 2008-11-20
JP4445026B2 JP4445026B2 (en) 2010-04-07

Family

ID=40144097

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008214816A Expired - Fee Related JP4445026B2 (en) 1999-08-17 2008-08-25 Image processing method, apparatus, and program

Country Status (1)

Country Link
JP (1) JP4445026B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011066736A (en) * 2009-09-18 2011-03-31 Canon Inc Image processing apparatus, image processing method, and program
CN112669222A (en) * 2019-10-15 2021-04-16 国际关系学院 Digital image defogging method based on wavelet domain histogram equalization

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011066736A (en) * 2009-09-18 2011-03-31 Canon Inc Image processing apparatus, image processing method, and program
CN112669222A (en) * 2019-10-15 2021-04-16 国际关系学院 Digital image defogging method based on wavelet domain histogram equalization

Also Published As

Publication number Publication date
JP4445026B2 (en) 2010-04-07

Similar Documents

Publication Publication Date Title
JP2001126075A (en) Method and device for picture processing, and recording medium
US9852499B2 (en) Automatic selection of optimum algorithms for high dynamic range image processing based on scene classification
US5450502A (en) Image-dependent luminance enhancement
US7881554B2 (en) Method for correcting a digital image
EP1857975B1 (en) Histogram adjustment for high dynamic range image mapping
JP4087475B2 (en) Automatic cropping method for images
US8644638B2 (en) Automatic localized adjustment of image shadows and highlights
EP0723364B1 (en) Real-time image enhancement techniques
JP4210577B2 (en) Method for enhancing gradation and spatial characteristics of digital images using selective spatial filters
EP1857976B1 (en) Histogram adjustment for high dynamic range image mapping
US6738527B2 (en) Image processing apparatus, an image processing method, a medium on which an image processing control program is recorded, an image evaluation device, and image evaluation method and a medium on which an image evaluation program is recorded
US6667815B1 (en) Method and apparatus for processing images
RU2400815C2 (en) Method of enhancing digital image quality
US20110285871A1 (en) Image processing apparatus, image processing method, and computer-readable medium
JP2001005960A (en) Method and device for processing image
US20040057623A1 (en) Method for automated processing of digital image data
KR102221116B1 (en) A device and method for removing the noise on the image using cross-kernel type median filter
US7522314B2 (en) Image sharpening
CN100411445C (en) Image processing method and apparatus for correcting image brightness distribution
Trongtirakul et al. Single backlit image enhancement
CN112785534A (en) Ghost-removing multi-exposure image fusion method in dynamic scene
Tao et al. Nonlinear image enhancement to improve face detection in complex lighting environment
Han et al. Automatic illumination and color compensation using mean shift and sigma filter
JP4445026B2 (en) Image processing method, apparatus, and program
JPH118768A (en) Image processor, image processing method and medium recording image processing control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080901

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4445026

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130122

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130122

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140122

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees