CN1750603A - Image processing device, image recording device and image processing method - Google Patents
Image processing device, image recording device and image processing method Download PDFInfo
- Publication number
- CN1750603A CN1750603A CN200510103114.XA CN200510103114A CN1750603A CN 1750603 A CN1750603 A CN 1750603A CN 200510103114 A CN200510103114 A CN 200510103114A CN 1750603 A CN1750603 A CN 1750603A
- Authority
- CN
- China
- Prior art keywords
- mentioned
- histogram
- greyscale transformation
- view data
- characteristic
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 58
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 230000009466 transformation Effects 0.000 claims abstract description 68
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000008569 process Effects 0.000 claims abstract description 20
- 230000009467 reduction Effects 0.000 claims description 6
- 230000035945 sensitivity Effects 0.000 claims description 6
- 230000004048 modification Effects 0.000 claims 4
- 238000012986 modification Methods 0.000 claims 4
- 238000006243 chemical reaction Methods 0.000 description 108
- 238000003384 imaging method Methods 0.000 description 28
- 230000001186 cumulative effect Effects 0.000 description 20
- 230000015572 biosynthetic process Effects 0.000 description 13
- 238000003786 synthesis reaction Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 238000009825 accumulation Methods 0.000 description 9
- 238000000926 separation method Methods 0.000 description 6
- 230000006835 compression Effects 0.000 description 5
- 238000007906 compression Methods 0.000 description 5
- 239000000470 constituent Substances 0.000 description 4
- 101000860173 Myxococcus xanthus C-factor Proteins 0.000 description 3
- 230000003321 amplification Effects 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000003199 nucleic acid amplification method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 239000002131 composite material Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000002542 deteriorative effect Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像处理装置、图像记录装置和图像处理方法,特别是涉及对图像适应性地进行灰度变换处理的图像处理装置、图像记录装置和图像处理方法。The present invention relates to an image processing device, an image recording device and an image processing method, and in particular to an image processing device, an image recording device and an image processing method for adaptively performing grayscale conversion processing on an image.
背景技术Background technique
图像的灰度表现是决定图像质量的重要的因素之一。通常从摄像元件输出的信号大致与入射到摄像元件上的光的光量成正比。在此,关于来自摄像元件的输出信号,在以后的图像处理中与最终的图像的观察环境(例如由监视器进行的图像观察或由打印机输出决定的图像观察等)相一致地被进行某种灰度变换处理。例如,在一般的数码相机的情况下,采用了sRGB色空间作为图像文件格式的标准色空间,但将用数码相机进行了摄影的图像的灰度设计成最适合于用具有存在于sRGB的规定中的γ(灰度系数)特性(γ=2.2)的监视器进行了显示时的灰度。The grayscale representation of an image is one of the most important factors that determine image quality. Usually, the signal output from the imaging element is approximately proportional to the light intensity incident on the imaging element. Here, the output signal from the imaging element is subjected to some kind of processing in accordance with the final image observation environment (for example, image observation by a monitor or image observation determined by printer output, etc.) in subsequent image processing. Grayscale transformation processing. For example, in the case of a general digital camera, the sRGB color space is adopted as the standard color space of the image file format, but the gradation of the image captured by the digital camera is designed so that it is most suitable for the sRGB color space with the stipulations existing in sRGB. The gradation when the monitor with the γ (gamma) characteristic (γ=2.2) in the display is displayed.
通常,一般在数码相机等的各种输入装置中将图像的灰度变换特性固定为一种,或由用户等从多种灰度变换特性中选择图像的灰度变换特性。此外,近年来正在使用与图像(或场景)的亮度分布相一致地对各自的图像适应性地使灰度变换特性最佳化的技术。这是因为,由于被摄场的动态范围在各个场景中是不同的,故不考虑该差别在用一律的灰度变换特性变换了的情况下就难以在监视器或打印机等的输出装置的动态范围中高效地反映被摄场的亮度信息。Generally, in various input devices such as a digital camera, one type of gradation transformation characteristic of an image is fixed, or the gradation transformation characteristic of an image is selected from a plurality of kinds of gradation transformation characteristics by a user or the like. In addition, in recent years, a technique of adaptively optimizing the gradation transformation characteristics for each image in accordance with the luminance distribution of the image (or scene) has been used. This is because, since the dynamic range of the subject field is different in each scene, it is difficult to change the dynamic range of an output device such as a monitor or a printer without considering the difference when transformed with a uniform gradation transformation characteristic. Efficiently reflect the brightness information of the subject in the range.
作为对各自的图像适应性地使灰度变换特性最佳化的技术之一,可举出直方图均等化法。该法是通过进行使图像的亮度直方图(各亮度灰度水平的频度数)变得均匀那样的灰度变换来增加图像所具有的亮度信息量、对输出装置高效地分配灰度的技术。One of techniques for adaptively optimizing the gradation transformation characteristics for each image is a histogram equalization method. This method is a technique for efficiently distributing gradations to an output device by increasing the amount of luminance information contained in an image by performing gradation conversion such that the luminance histogram (frequency of each luminance gradation level) of the image becomes uniform. .
在此,如果与摄影条件或场景无关地一律应用这样的灰度变换,则例如有时暗部的噪声因灰度变换而被放大从而超过容许水平等,由于图像(场景)的缘故在不理想的方向上被变换了。Here, if such gradation conversion is applied uniformly regardless of shooting conditions or scenes, for example, the noise in dark parts may be amplified by the gradation conversion to exceed the allowable level, and the image (scene) may move in an undesired direction. was transformed.
作为其解决措施的一例,在专利文献1中所提出的技术中,检测图像的亮度分布,由已被检测的亮度分布判定是否必须进行亮度分布的校正,在判定为必须进行亮度分布的校正的情况下,通过进行校正使亮度分布变得均匀来防止输出图像的性能恶化。As an example of its solution, in the technique proposed in Patent Document 1, the brightness distribution of an image is detected, and it is determined from the detected brightness distribution whether correction of the brightness distribution is necessary, and when it is determined that correction of the brightness distribution is necessary, In this case, the performance of the output image is prevented from deteriorating by performing correction so that the luminance distribution becomes uniform.
【专利文献1】特开2003-179809号公报[Patent Document 1] JP-A-2003-179809
但是,关于在上述专利文献1中所提出的技术,由于从被摄体的亮度分布判定亮度分布的校正的必要性,故例如对于场景的亮度低、较多地包含因电放大引起的噪声的图像或指定被摄体的种类(风景、人物等)而被摄影了的图像等的灰度变换特性和灰度变换后的最佳值随摄影时的条件而不同的图像,难以分别进行最佳的灰度变换处理。However, in the technique proposed in Patent Document 1, since the necessity of correcting the luminance distribution is judged from the luminance distribution of the subject, for example, the scene is low in luminance and contains a lot of noise due to electrical amplification. The gradation transformation characteristics and the optimum value after gradation transformation are different depending on the conditions at the time of shooting, and it is difficult to optimize each Grayscale transformation processing.
发明内容Contents of the invention
本发明是鉴于上述的情况而进行的,其目的在于提供可与摄影条件无关地进行最适合于摄影时的场景的灰度变换处理的图像处理装置和图像处理方法。The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing device and an image processing method that can perform gradation conversion processing optimal for a scene at the time of shooting regardless of shooting conditions.
为了达到上述的目的,本发明的第1方式的图像处理装置是对于输入图像进行图像处理的图像处理装置,其特征在于,具备:直方图计算部,计算已被输入的图像数据的像素值的直方图;灰度变换特性决定部,根据由上述直方图计算部计算了的上述直方图和涉及上述已被输入的图像数据的信息,决定对上述图像数据进行灰度变换处理时的灰度变换特性;以及灰度变换处理部,根据由上述灰度变换特性决定部决定了的上述灰度变换特性,对上述已被输入的图像数据进行灰度变换处理,变换上述图像数据的灰度变换特性。In order to achieve the above object, an image processing device according to a first aspect of the present invention is an image processing device that performs image processing on an input image, and is characterized in that it includes: a histogram calculation unit that calculates pixel values of input image data a histogram; a gradation conversion characteristic determination unit that determines gradation conversion when performing gradation conversion processing on the image data based on the histogram calculated by the histogram calculation unit and information related to the input image data characteristics; and a gradation conversion processing unit that performs gradation conversion processing on the input image data based on the gradation conversion characteristics determined by the gradation conversion characteristic determination unit, and converts the gradation conversion characteristics of the image data .
为了达到上述的目的,本发明的第2方式的图像记录装置是对于输入图像进行图像处理并记录的图像记录装置,其特征在于,具备:摄像部,对被摄场进行摄像以得到图像数据;直方图计算部,计算由上述摄像部得到的图像数据的像素值的直方图;灰度变换特性决定部,根据由上述直方图计算部计算了的上述直方图和对上述图像数据进行了摄影时的摄影信息,决定对上述图像数据进行灰度变换处理时的灰度变换特性;灰度变换部,根据由上述灰度变换特性决定部决定了的上述灰度变换特性对上述已被输入的图像数据进行灰度变换;以及记录部,在记录介质上记录由上述灰度变换部进行了灰度变换的图像数据。In order to achieve the above object, an image recording device according to a second aspect of the present invention is an image recording device that performs image processing on an input image and records it, and is characterized in that it includes: an imaging unit that captures a subject field to obtain image data; a histogram calculation unit calculating a histogram of the pixel values of the image data obtained by the imaging unit; The photographic information determines the gradation transformation characteristic when performing gradation transformation processing on the above-mentioned image data; The data undergoes gradation conversion; and a recording unit records the image data subjected to gradation conversion by the gradation conversion unit on a recording medium.
为了达到上述的目的,本发明的第3方式的图像处理方法是对于输入图像进行图像处理的图像处理方法,其特征在于,具有:计算已被输入的图像数据的像素值的直方图的直方图计算工序;根据在上述直方图计算工序中被计算了的上述直方图和对上述图像数据进行了摄影时的摄影信息来决定对上述图像数据进行灰度变换处理时的灰度变换特性的灰度变换特性决定工序;以及根据在上述灰度变换特性决定工序中被决定了的上述灰度变换特性对上述已被输入的图像数据进行灰度变换的灰度变换工序。In order to achieve the above object, an image processing method according to a third aspect of the present invention is an image processing method for performing image processing on an input image, and is characterized by having a histogram for calculating a histogram of pixel values of input image data Calculation step: determining the gradation of the gradation conversion characteristic when the gradation conversion process is performed on the image data based on the histogram calculated in the histogram calculation step and the photographing information when the image data is photographed a transformation characteristic determining step; and a gradation transformation step of performing gradation transformation on the input image data based on the gradation transformation characteristic determined in the gradation transformation characteristic determination step.
按照该第1~第3方式,通过在决定进行灰度变换用的灰度变换特性时考虑得到了图像数据时的摄影信息,可与摄影条件无关地进行最适合于摄影时的场景的灰度变换处理。According to the first to third aspects, by considering the shooting information when the image data is obtained when determining the gradation conversion characteristics for gradation conversion, the gradation most suitable for the scene at the time of shooting can be performed regardless of the shooting conditions. Transform processing.
按照本发明,可提供能与摄影条件无关地进行最适合于摄影时的场景的灰度变换处理的图像处理装置、图像记录装置和图像处理方法。According to the present invention, it is possible to provide an image processing device, an image recording device, and an image processing method capable of performing gradation conversion processing optimal for a scene at the time of shooting regardless of shooting conditions.
附图说明Description of drawings
图1是示出了与本发明的一种实施方式有关的图像处理装置的概念性的结构的图。FIG. 1 is a diagram showing a conceptual configuration of an image processing device according to an embodiment of the present invention.
图2是示出作为包含与本发明的一种实施方式有关的图像处理装置的图像记录装置的一例的数码相机的结构的框图。2 is a block diagram showing the configuration of a digital camera as an example of an image recording device including an image processing device according to an embodiment of the present invention.
图3是示出了默认灰度变换表的例子的图。FIG. 3 is a diagram showing an example of a default gradation conversion table.
图4是示出了噪声特性信息的例子的图。FIG. 4 is a diagram showing an example of noise characteristic information.
图5是示出了灰度合成比的例子的图。FIG. 5 is a diagram illustrating an example of a gradation synthesis ratio.
图6是示出了包含与本发明的一种实施方式有关的图像处理方法的摄影控制的流程图。FIG. 6 is a flowchart showing imaging control including an image processing method according to an embodiment of the present invention.
图7是示出直方图的例子的图。FIG. 7 is a diagram showing an example of a histogram.
图8是示出直方图修正处理的流程图。FIG. 8 is a flowchart showing histogram correction processing.
图9是示出频度值限制后的直方图的图。FIG. 9 is a diagram showing a histogram after frequency value limitation.
图10是示出累积直方图的例子的图。FIG. 10 is a diagram showing an example of a cumulative histogram.
图11是示出灰度变换表计算处理的流程图。FIG. 11 is a flowchart showing gradation conversion table calculation processing.
图12是示出默认灰度变换表和累积直方图的合成的例子的图。FIG. 12 is a diagram showing an example of synthesis of a default gradation conversion table and a cumulative histogram.
具体实施方式Detailed ways
以下参照附图说明本发明的实施方式。Embodiments of the present invention will be described below with reference to the drawings.
图1是示出了与本发明的一种实施方式有关的图像处理装置的概念性的结构的图。FIG. 1 is a diagram showing a conceptual configuration of an image processing device according to an embodiment of the present invention.
如图1中所示,本图像处理装置由直方图计算部1、灰度变换特性决定部2和灰度变换部4构成。如果将图像数据输入直方图计算部1,则在直方图计算部1中计算输入图像数据的像素值的直方图。关于直方图,可只计算图像数据的亮度分量的直方图(亮度直方图),也可计算图像数据的每种颜色分量的直方图。As shown in FIG. 1 , the present image processing device is composed of a histogram calculation section 1 , a gradation transformation
在直方图计算部1中计算了直方图后,对灰度变换特性决定部2输入已被计算的直方图。在灰度变换特性决定部2中,根据直方图和对图像数据进行了摄影时的摄影信息3决定灰度变换特性。然后,根据已被决定的灰度变换特性,在灰度变换部4中,进行输入图像数据的灰度变换处理,作为输出图像数据对外部输出。After the histogram is calculated in the histogram calculation unit 1 , the calculated histogram is input to the gradation transformation
以下,更具体地说明图1的图像处理装置。图2是示出作为包含与本发明的一种实施方式有关的图像处理装置的图像记录装置的一例的数码相机(以下称为照相机)的结构的框图。Hereinafter, the image processing device of FIG. 1 will be described more specifically. 2 is a block diagram showing a configuration of a digital camera (hereinafter referred to as a camera) as an example of an image recording device including an image processing device according to an embodiment of the present invention.
如图2中所示,本数码相机由下述部分构成:微型计算机11;摄像部12;A/D变换部(在图中记为A/D)13;总线14;RAM15;图像处理电路16;ROM17;记录介质18;以及操作部19。As shown in Fig. 2, this digital camera is made up of following parts:
微型计算机11是对本照相机进行整体控制的控制部。在该微型计算机11中,进行摄像部12内部的摄影光学系统的焦点控制或摄像元件的曝光控制、在记录介质18上记录图像数据时的记录控制等。The
摄像部12由摄影光学系统或摄像元件和这些部分的驱动部等构成。关于摄像部12,在摄像元件中将经摄影光学系统入射的来自未图示的被摄体的光束变换为电信号。The
A/D变换部13将用摄像部12得到了的电信号变换为数字数据以生成图像数据。The A/
总线14是将用A/D变换部13得到了的图像数据等的数据传送到本照相机的各电路的传送路。此外,RAM15是暂时存储图像数据等的数据用的存储器。The
图像处理电路16是进行经总线14输入了的输入图像数据的图像处理的电路。在此,图像处理电路16由下述部分构成:白平衡(WB)校正部20;同时化部21;Y/C分离部22;色变换部23;JPEG压缩部24;直方图计算部25;直方图修正部26;直方图累积部27;灰度变换表计算部28和灰度变换部29。在此,上述灰度变换特性决定部2与直方图计算部25、直方图修正部26、直方图累积部27、灰度变换表计算部28相对应。The
作为噪声特性存储部、固定灰度变换特性存储部的ROM17是存储由微型计算机11执行的各种控制程序或本照相机的各种设定值的存储器。特别是在本实施方式的ROM17中存储了默认灰度变换表30、噪声特性信息31和灰度合成比32。The
默认灰度变换表30是在ROM17中对于每种照相机具有作为固定的特性被存储了的标准的特性的灰度变换表。用图3的实线示出默认灰度变换表30的例子。在此,图3的横轴表示图像输入值。再有,图3的图像输入值是从A/D变换部13输入了的图像数据的像素值。此外,图3的左侧的纵轴表示灰度变换后的输出值(8位输出)。再有,在ROM17中被存储了的默认灰度变换表不限于1个。例如,也可预先存储多个不同的默认灰度变换表,用户可任意地选择默认灰度变换表。或者,也可根据摄影条件从多个默认灰度变换表中自动地选择最佳的默认灰度变换表。The default gradation conversion table 30 is a gradation conversion table having standard characteristics stored as fixed characteristics for each camera in the
噪声特性信息31是关于噪声特性的信息,表示在对图像进行了摄影时哪种程度的量的噪声以哪种形态加到图像上。该噪声特性信息31是在ROM17中作为固定值被存储了的信息。用图4的实线示出噪声特性信息31。在此,图4的横轴表示输入值。在此的输入值也与图3同样,是A/D变换部13中的A/D变换值。此外,图4的左侧的纵轴表示噪声量。如图4中所示,如果输入值增加,则噪声量也随之增加。此外,在图4中,即使在输入值为0的情况下也存在噪声,但这是暗电流分量。The noise
在此,噪声特性信息31是随摄影时的摄影灵敏度或温度、曝光时间等而变化的量。例如,在摄影时的摄影灵敏度高的情况下,噪声量变大。因此,也可在ROM17中预先存储了与摄影灵敏度的变化或温度变化、曝光时间的变化对应的多个噪声特性信息,在图像数据摄影时读出与此时的摄影灵敏度或温度、曝光时间对应的噪声特性信息。Here, the noise
此外,在近年的照相机中,由于也提出了具有降低摄影时的图像的噪声的降低噪声处理功能的照相机,故也可与其相对应地在ROM17中预先存储被进行了降低噪声处理的状态的噪声特性信息。In addition, in recent years, cameras having a noise reduction processing function for reducing image noise during shooting have also been proposed, so the
灰度合成比32是合成默认灰度变换表30和在其后说明的累积直方图时的合成比。在图5中示出灰度合成比32的例子。如图5中所示,灰度合成比32存储与场景模式对应的值。在此,场景模式是以各种各样的设定进行摄影用的摄影模式之一,是可设定摄影时的场景的模式。通过进行场景模式的设定,可自动地选择适合于各自的场景的设定值以进行曝光控制等。在本实施方式中,作为与场景模式对应的灰度合成比,例如存储与以标准的设定进行摄影用的标准模式、以适合于风景摄影的设定进行摄影用的风景模式、以适合于人物摄影的设定进行摄影用的人物模式和以适合于夜景摄影的设定进行摄影用的夜景模式对应的灰度合成比,但不限于此。The
记录介质18是记录在图像处理电路16中被处理了的图像的记录介质,例如由存储卡等构成。The
操作部19是由用户操作的各种操作构件。如果由用户操作操作部19,则根据该操作状态,由微型计算机11进行各种各样的控制。在此,作为操作部19,包含例如进行摄影执行指示的快门按钮或选择场景模式用的选择按钮等。The
参照图6,说明具有图2那样的结构的照相机中的摄影控制。图6是示出包含与本发明的一种实施方式有关的图像处理方法的摄影控制的工序的流程图。在此,图6的流程图是通过由用户进行快门按钮的接通操作来开始的。Referring to FIG. 6 , shooting control in the camera having the configuration shown in FIG. 2 will be described. FIG. 6 is a flow chart showing a procedure of imaging control including an image processing method according to an embodiment of the present invention. Here, the flowchart of FIG. 6 is started when the user performs an ON operation of the shutter button.
如果由用户接通快门按钮,则根据摄像部12的输出进行众所周知的AE和AF(步骤S1)。其后,进行曝光控制(步骤S2),在摄像部12中可得到记录用的图像信号。其后,对摄像部12中得到的记录用的图像信号进行摄像处理(步骤S3)。在该摄像处理中,对在摄像部12中得到了的图像信号在A/D变换部13中进行A/D变换。将在A/D变换部13中得到了的图像数据输入到图像处理电路16的WB校正部20中。When the shutter button is turned on by the user, well-known AE and AF are performed based on the output of the imaging unit 12 (step S1). Thereafter, exposure control is performed (step S2 ), and an image signal for recording can be obtained in the
在WB校正部20中进行图像数据的白平衡校正(步骤S4)。在白平衡校正中,校正图像数据的R增益和B增益,以使输入到WB校正部20中的图像的白色变得适当。将在WB校正部20中进行了白平衡校正的图像数据输入到同时化部21中。White balance correction of the image data is performed in the WB correction unit 20 (step S4). In the white balance correction, the R gain and the B gain of the image data are corrected so that the white of the image input to the
在同时化部21中进行同时化处理(步骤S5)。在同时化处理中,利用内插从输入到同时化部21中的图像数据生成以RGB3色为1个像素分量的图像数据。将在同时化部21中进行了同时化处理的图像数据输入到Y/C分离部22中。Synchronization processing is performed in the synchronization unit 21 (step S5). In the synchronization processing, image data having three RGB colors as one pixel component is generated from the image data input to the
在Y/C分离部22中进行Y/C分离处理(步骤S6)。在Y/C分离处理中将已被输入的图像数据分离为Y(亮度)信号和C(色)信号。将已被分离的信号中的Y信号输入到直方图计算部25和灰度变换部29中,将已被分离的信号中的C信号输入到色变换部23中。Y/C separation processing is performed in the Y/C separation unit 22 (step S6). In the Y/C separation process, the input image data is separated into a Y (brightness) signal and a C (color) signal. The Y signal among the separated signals is input to the
在色变换部23中进行色变换处理(步骤S7)。在色变换处理中将输入到色变换部23中的C信号用照相机等变换为sRGB等的标准色信号。将在色变换部23中进行了色变换处理的信号输入到JPEG压缩部24中。Color conversion processing is performed in the color conversion unit 23 (step S7). In the color conversion process, the C signal input to the
在直方图计算部25中进行直方图计算处理(步骤S8)。在直方图计算处理中从输入到直方图计算部25中的Y信号的各亮度输入的频度值计算直方图(亮度直方图)。用图7的实线示出在直方图计算部25中被计算了的直方图的例子。在此,图7的横轴表示亮度输入值。另外,图7的左侧的纵轴表示亮度分布、即亮度输入的频度值。将在直方图计算部25中被计算了的直方图输入到直方图修正部26中。A histogram calculation process is performed in the histogram calculation unit 25 (step S8). A histogram (brightness histogram) is calculated from the frequency value of each luminance input of the Y signal input to the
再有,在本实施方式中,从图像数据的亮度分量来计算直方图,但也可计算图像数据的色分量的直方图。在该情况下,可计算RGB3色全部的直方图,也可只计算G分量的直方图。In addition, in this embodiment, the histogram is calculated from the luminance component of the image data, but the histogram of the color component of the image data may also be calculated. In this case, the histograms of all three RGB colors may be calculated, or the histograms of only the G component may be calculated.
在直方图修正部26中进行直方图修正处理(步骤S9)。在直方图修正处理中,根据被存储在ROM17中的噪声特性信息31,对在直方图计算部25中被计算了的直方图进行修正。The histogram correction process is performed in the histogram correction part 26 (step S9). In the histogram correction process, the histogram calculated by the
参照图8说明直方图修正处理。在直方图修正处理中,首先读出在ROM17中被存储了的默认灰度变换表30(步骤S21)。其次,计算默认灰度变换表30的斜率(步骤S22)。在此,通过对默认灰度变换表30进行微分可得到默认灰度变换表30的斜率。例如,在用图3的实线示出默认灰度变换表30的情况下,用图3的虚线示出其斜率。The histogram correction processing will be described with reference to FIG. 8 . In the histogram correction process, first, the default gradation conversion table 30 stored in the
在计算了默认灰度变换表30的斜率后,读出在ROM17中被存储了的噪声特性信息31(步骤S23)。其次,推断灰度变换后的噪声量。灰度变换后的噪声量是噪声量与灰度变换后的噪声的放大率的乘积。在此,用在步骤S22中被计算了的默认灰度变换表30的斜率表示灰度变换后的噪声的放大率。因而,灰度变换后的噪声量成为用图4的实线示出的噪声量与用图3的虚线示出的默认灰度变换表的斜率的乘积,其结果是,所得到的灰度变换后的噪声量成为用图4的虚线示出的噪声量。如图4的虚线所示,在灰度变换后在原来的图像中在暗的部分中呈现噪声量的峰值。这是因为,利用灰度变换伸长原来的图像的暗的部分,压缩明亮的部分。After calculating the slope of the default gradation conversion table 30, the noise
在推断了灰度变换后的噪声量后,为了进行直方图的修正,决定直方图的频度值限制水平(步骤S24)。在此,在本实施方式中,以灰度变换后的噪声变得不显著的方式来限制直方图的频度值。为此,计算灰度变换后的噪声量的倒数作为频度值限制水平。在图7的虚线中示出该频度值限制水平。如图7中所示,在灰度变换后的噪声量变大的部分中频度值的限制水平变大。After estimating the amount of noise after gradation conversion, the histogram frequency limit level is determined in order to correct the histogram (step S24). Here, in this embodiment, the frequency value of the histogram is limited so that noise after gradation conversion becomes inconspicuous. For this reason, the reciprocal of the noise amount after gradation transformation is calculated as the frequency value limit level. This frequency value limit level is shown in the dotted line in FIG. 7 . As shown in FIG. 7 , the restriction level of the frequency value becomes larger in a portion where the amount of noise after gradation conversion becomes larger.
在此,在本实施方式中,将直方图的频度值限制水平定为灰度变换后的噪声量的倒数,但例如也可在计算了倒数后进行既定的运算以求出更恰当的频度值限制水平。Here, in this embodiment, the frequency limit level of the histogram is set to the reciprocal of the amount of noise after gradation conversion, but for example, a predetermined calculation may be performed after calculating the reciprocal to obtain a more appropriate frequency value. degree limit level.
在决定了频度值限制水平后,在直方图中超过频度值限制水平的部分如图9那样被限制(步骤S25)。通过使用以这种方式进行了修正的直方图进行灰度变换,灰度变换后的噪声变得不显著。After the frequency value limit level is determined, the portion exceeding the frequency value limit level in the histogram is limited as shown in FIG. 9 (step S25). By performing gradation conversion using the histogram corrected in this way, noise after gradation conversion becomes inconspicuous.
在此,再返回到图6的说明。将用直方图修正部26进行了修正的直方图输入到直方图累积部27中。在直方图累积部27中,进行直方图累积处理(步骤S10)。在直方图累积处理中,被输入到直方图累积部27中的直方图从低亮度分量一侧起依次被累积。Here, return to the description of FIG. 6 . The histogram corrected by the
在图10中示出累积直方图的例子。在此,图10的实线示出在直方图修正部26中进行直方图的修正前的累积直方图。此外,图10的虚线示出在直方图修正部26中进行了直方图的修正后的累积直方图。但是,对直方图的修正后的累积直方图进行了规格化,使得累积频度的最大值(相当于频度的总数)与直方图修正前的累积频度的最大值一致。在直方图修正后的累积直方图中,灰度变换后噪声量变大的部分的斜率与直方图修正前的累积直方图相比,变得平缓。An example of a cumulative histogram is shown in FIG. 10 . Here, the solid line in FIG. 10 shows the cumulative histogram before the histogram is corrected by the
将在直方图累积部27中得到了的累积直方图输入到灰度变换表计算部28中。在灰度变换表计算部28中进行灰度变换表计算处理(步骤S11)。The cumulative histogram obtained in the
参照图11,说明灰度变换表计算处理。在灰度变换表计算处理中,以既定的合成比合成用直方图累积部27得到了的累积直方图与在ROM17中被存储了的默认灰度变换表30,计算灰度变换表。Referring to Fig. 11, the gradation conversion table calculation process will be described. In the gradation conversion table calculation process, the cumulative histogram obtained by the
在图11中,首先,检验摄影时的场景模式信息(步骤S31)。其次,根据在步骤S31中被检验了的场景模式信息,判断应选择在ROM17中被存储了的灰度合成比的怎样的比值(步骤S32)。其次,按照已被判断的灰度合成比合成默认灰度变换表30与累积直方图(步骤S33)。In FIG. 11, first, the scene mode information at the time of shooting is checked (step S31). Next, based on the scene mode information verified in step S31, it is judged which ratio of the gradation synthesis ratios stored in the
在图12中示出默认灰度变换表30与累积直方图的合成的例子。在此,图12的细的实线示出默认灰度变换表,图12的虚线示出累积直方图,图12的粗的实线示出在合成后得到的最终的灰度变换表。此外,在图12的例子中,场景模式是标准模式(灰度合成比0.5∶0.5)。即,在图12的例子中,由于灰度合成比为0.5∶0.5,故在合成后得到的灰度变换表是默认灰度变换表30与累积直方图的平均值。An example of synthesis of the default gradation conversion table 30 and the cumulative histogram is shown in FIG. 12 . Here, the thin solid line in FIG. 12 shows the default grayscale conversion table, the dotted line in FIG. 12 shows the cumulative histogram, and the thick solid line in FIG. 12 shows the final grayscale conversion table obtained after synthesis. In addition, in the example of FIG. 12, the scene mode is the standard mode (gradation synthesis ratio 0.5:0.5). That is, in the example of FIG. 12 , since the grayscale synthesis ratio is 0.5:0.5, the grayscale conversion table obtained after synthesis is the average value of the default grayscale conversion table 30 and the cumulative histogram.
此外,虽然在图12中未图示,但在对风景那样对比度高的被摄体进行摄影的情况下,通过提高累积直方图一方的比率,可进行更适当的灰度表现。相反,在人物的情况下,原来的被摄体的对比度低,为了避免对比度提高到必要的程度以上而重视默认灰度变换表一方。再者,在夜景的情况下,使默认灰度变换表一方的比率提高,以便不使原来的暗的图像明亮到必要的程度以上。再有,在夜景的情况下,也可不进行默认灰度变换表与累积直方图的合成。Also, although not shown in FIG. 12 , when photographing a high-contrast subject such as a landscape, more appropriate gradation expression can be performed by increasing the ratio of one side of the cumulative histogram. Conversely, in the case of a person, the original subject has low contrast, and the default gradation conversion table is important in order to prevent the contrast from becoming more than necessary. Furthermore, in the case of a night scene, the ratio of the default gradation conversion table is increased so that an originally dark image is not brightened more than necessary. In addition, in the case of a night scene, the combination of the default gradation conversion table and the cumulative histogram may not be performed.
再有,关于灰度合成比,不限于只预先存储与场景模式对应的值,例如也可同时预先存储与闪光灯模式或自动曝光模式等的设定对应的灰度合成比。例如,在摄影时使闪光灯发光的情况下,由于图像的对比度提高,故与风景场景同样地提高累积直方图一方的比率来进行灰度合成即可。此外,在用手动进行曝光那样的情况下,也可禁止合成。再者,也可进行与是否使用了降低噪声处理功能等对应的灰度合成。即,在进行了降低噪声处理的情况下,使默认灰度变换表一方的比率提高。Note that the grayscale composition ratio is not limited to storing only the value corresponding to the scene mode, for example, the grayscale composition ratio corresponding to the setting of the flash mode or the automatic exposure mode may also be stored in advance. For example, when shooting with a flash, since the contrast of the image is increased, it is only necessary to increase the ratio of one side of the cumulative histogram as in the landscape scene to perform gradation synthesis. Also, in the case of manual exposure, compositing may be prohibited. In addition, gradation composition corresponding to whether or not the noise reduction processing function is used may be performed. That is, when noise reduction processing is performed, the ratio of the default gradation conversion table is increased.
在此,再返回到图6的说明。将用灰度变换表计算部28计算了的灰度变换表输入到灰度变换部29中。在灰度变换部29中进行灰度变换处理(步骤S12)。在灰度变换处理中,根据从灰度变换表计算部28输入了的灰度变换表对从Y/C分离部22输入了的Y信号进行灰度变换。将被进行了灰度变换的Y信号输入到JPEG压缩部24中。Here, return to the description of FIG. 6 . The gradation conversion table calculated by the gradation conversion
在JPEG压缩部24中,对被进行了灰度变换的Y信号和被进行了色变换的C信号进行JPEG压缩(步骤S13)。其后,对被进行了JPEG压缩的数据附加上述摄影信息等的标题信息来作制图像文件(步骤S14),在记录介质18上记录已被作成的图像文件(步骤S15)。由此,摄影控制结束。通过在图像文件的标题信息中也预先记录摄影信息,即使在后处理中也可进行在本实施方式中已说明的灰度变换处理。In the
如以上已说明的那样,按照本实施方式,在灰度变换时的灰度变换表计算时,由于可反映摄影时的场景信息,故可进行最适合于摄影场景的灰度变换处理。As described above, according to the present embodiment, when calculating the gradation conversion table at the time of gradation conversion, since the scene information at the time of shooting can be reflected, the gradation conversion process most suitable for the shooting scene can be performed.
以上根据实施方式说明了本发明,但本发明不限定于上述的实施方式,在本发明的要旨的范围内,当然可作各种各样的变形或应用。例如,只在图像摄影时说明上述的一种实施方式,但即使在图像再现时,也可应用本发明的技术。As mentioned above, although this invention was demonstrated based on embodiment, this invention is not limited to said embodiment, It goes without saying that various deformation|transformation and application are possible within the range of the summary of this invention. For example, the above-mentioned one embodiment has been described only for image capturing, but the technique of the present invention can also be applied for image reproduction.
此外,在上述的一种实施方式中,说明了在1个画面内进行全部同一灰度变换的情况,但也可将1个画面分割成多个区域,在每个已被分割的区域中用不同的条件计算灰度变换表。In addition, in the above-mentioned one embodiment, the case where all the same gradation transformations are performed in one screen is described, but one screen may be divided into multiple areas, and each divided area may be used Different conditions are used to calculate the gray scale transformation table.
再者,在上述的实施方式中包含了各种阶段的发明,利用被公开的多个构成要素的适当的组合可抽出各种发明。例如,即使从实施方式中被示出的全部构成要素删除几个构成要素,也可解决发明打算解决的课题的一栏中叙述了的课题,在可得到发明的效果一栏中叙述了的效果的情况下,该构成要素被删除了的结构也可作为发明被抽出。In addition, inventions at various stages are included in the above-described embodiments, and various inventions can be extracted by appropriate combinations of a plurality of disclosed constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in the embodiments, the problems described in the column of the problems that the invention intends to solve can be solved, and the effects described in the column of the effects of the invention can be obtained. In the case of , the structure in which the constituent elements are deleted can also be extracted as an invention.
Claims (11)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004267072A JP4803982B2 (en) | 2004-09-14 | 2004-09-14 | Image processing apparatus, image recording apparatus, and image processing method |
JP2004267072 | 2004-09-14 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1750603A true CN1750603A (en) | 2006-03-22 |
CN100375507C CN100375507C (en) | 2008-03-12 |
Family
ID=36164786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200510103114XA Active CN100375507C (en) | 2004-09-14 | 2005-09-14 | Image processing device, image recording device and image processing method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP4803982B2 (en) |
CN (1) | CN100375507C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106255462A (en) * | 2014-05-16 | 2016-12-21 | 株式会社日立制作所 | Image diagnosing system and half-tone information establishing method |
CN106412457A (en) * | 2016-10-31 | 2017-02-15 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8218868B2 (en) | 2007-06-13 | 2012-07-10 | Sensors Unlimited, Inc. | Method and apparatus for enhancing images |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0799862B2 (en) * | 1991-03-22 | 1995-10-25 | 松下電器産業株式会社 | Gradation correction device |
JP2000188768A (en) * | 1998-12-22 | 2000-07-04 | Victor Co Of Japan Ltd | Automatic gradation correction method |
JP4123724B2 (en) * | 2001-01-30 | 2008-07-23 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing program, computer-readable recording medium storing image processing program, image processing apparatus, and image processing method |
JP3948229B2 (en) * | 2001-08-01 | 2007-07-25 | ソニー株式会社 | Image capturing apparatus and method |
JP2003234955A (en) * | 2002-02-12 | 2003-08-22 | Nikon Corp | Image processing device, image processing program, and image processing method |
JP4323770B2 (en) * | 2002-10-18 | 2009-09-02 | キヤノン株式会社 | Image processing apparatus, image processing method, program, and recording medium |
-
2004
- 2004-09-14 JP JP2004267072A patent/JP4803982B2/en not_active Expired - Fee Related
-
2005
- 2005-09-14 CN CNB200510103114XA patent/CN100375507C/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106255462A (en) * | 2014-05-16 | 2016-12-21 | 株式会社日立制作所 | Image diagnosing system and half-tone information establishing method |
CN106412457A (en) * | 2016-10-31 | 2017-02-15 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN106412457B (en) * | 2016-10-31 | 2019-03-05 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN100375507C (en) | 2008-03-12 |
JP4803982B2 (en) | 2011-10-26 |
JP2006086610A (en) | 2006-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI293846B (en) | Image pickup device with brightness correcting function and method of correcting brightness of image | |
US7358988B1 (en) | Image signal processor for performing image processing appropriate for an output device and method therefor | |
KR101388130B1 (en) | Image processing apparatus and image processing method | |
JP3530907B2 (en) | Digital camera | |
JP5408053B2 (en) | Image processing apparatus and image processing method | |
JP5347707B2 (en) | Imaging apparatus and imaging method | |
KR100942634B1 (en) | Image Correction Device, Image Correction Method and Computer-readable Media | |
US20070047019A1 (en) | Device and method for processing images | |
CN1992820A (en) | Digital camera with face detection function for facilitating exposure compensation | |
JP2017022610A (en) | Image processing apparatus and image processing method | |
US11798143B2 (en) | Image processing apparatus and control method thereof | |
JP5223686B2 (en) | Imaging apparatus and imaging method | |
JP5225137B2 (en) | Imaging apparatus, image processing method, and program | |
JP2007329619A (en) | Video signal processor, video signal processing method and video signal processing program | |
JP4944639B2 (en) | Image processing apparatus, image processing method, and photographing apparatus | |
JP5803233B2 (en) | Imaging apparatus and imaging method | |
JP4499527B2 (en) | Image processing apparatus, image recording apparatus, and image processing method | |
JPH10322592A (en) | Method and device for controlling electronic camera | |
JP2004129065A (en) | Digital camera | |
CN1750603A (en) | Image processing device, image recording device and image processing method | |
JP4422353B2 (en) | Electronic camera | |
KR101408359B1 (en) | Imaging apparatus and imaging method | |
JP2021117748A (en) | Image processing apparatus, image processing method, and program | |
JP3198983B2 (en) | Electronic still camera | |
JP3433653B2 (en) | Electronic still camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |