CN1249985C - Image processing method and device capable of adjusting photosensitive characteristic curve - Google Patents
Image processing method and device capable of adjusting photosensitive characteristic curve Download PDFInfo
- Publication number
- CN1249985C CN1249985C CN01130709.9A CN01130709A CN1249985C CN 1249985 C CN1249985 C CN 1249985C CN 01130709 A CN01130709 A CN 01130709A CN 1249985 C CN1249985 C CN 1249985C
- Authority
- CN
- China
- Prior art keywords
- image data
- parameter
- image
- memory
- contrast
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000003672 processing method Methods 0.000 title abstract description 6
- 238000006243 chemical reaction Methods 0.000 claims abstract description 42
- 230000003287 optical effect Effects 0.000 claims abstract description 28
- 238000012545 processing Methods 0.000 claims abstract description 16
- 238000005070 sampling Methods 0.000 claims abstract description 5
- 238000000034 method Methods 0.000 claims description 31
- 230000006870 function Effects 0.000 claims description 11
- 230000000694 effects Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 claims 5
- 230000006698 induction Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 12
- 238000003384 imaging method Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000000007 visual effect Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 238000012886 linear function Methods 0.000 description 4
- 238000005259 measurement Methods 0.000 description 3
- 238000012800 visualization Methods 0.000 description 2
- 206010034972 Photosensitivity reaction Diseases 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000036211 photosensitivity Effects 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000016776 visual perception Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Television Receiver Circuits (AREA)
Abstract
Description
技术领域technical field
本发明涉及数字相机领域,尤其是一种可调整感性曲线的影像处理方法与装置。可令使用者依其偏好,可以回馈方式,反复修正该装置拍摄影像时的对比度控制参数,以即时对所拍摄的影像数据,进行对比度调整及处理,能拍摄出最佳对比度效果的景物影像。The invention relates to the field of digital cameras, in particular to an image processing method and device capable of adjusting a sensitivity curve. The user can repeatedly modify the contrast control parameters when the device shoots images in a feedback manner according to his preference, so that the contrast adjustment and processing can be performed on the captured image data in real time, and the scene image with the best contrast effect can be shot.
背景技术Background technique
在一般影像系统中,特性曲线(characteristic curve)代表了该影像系统所撷取的被摄景物上的反射亮度(luminance,或称输入明亮值)与相片上相对应的反射浓度(density,或称输出记录值)间的特性。以传统银监摄影领域为例,一般所谓的“底片特性曲线”主要是指该底片在“曝光”与“浓度”特性间的关系,该曲线也被称为D log H曲线,参阅图1所示,即为典型黑白感光材料的特性曲线。在该特性曲线上,对应于横轴(曝光)与纵轴(浓度)的变化量的比率,为该曲线的斜率,即所谓的对比度值(contrast),一般是以Gamma(γ)代表一感光材料的对比度特性,其数值γ定义,如下列公式所示:In a general imaging system, the characteristic curve represents the reflection brightness (luminance, or input brightness value) on the subject captured by the imaging system and the corresponding reflection density (density, or brightness value) on the photo. output record value). Taking the field of traditional banking photography as an example, the so-called "film characteristic curve" mainly refers to the relationship between the "exposure" and "density" characteristics of the film. This curve is also called the D log H curve, as shown in Figure 1. Shown is the characteristic curve of a typical black and white photosensitive material. On this characteristic curve, the ratio corresponding to the variation of the horizontal axis (exposure) and the vertical axis (concentration) is the slope of the curve, the so-called contrast value (contrast), which is generally represented by Gamma (γ) The contrast characteristic of a material, the value γ of which is defined by the following formula:
,其中ΔD代表该特性曲线的直线区域上任二测量点间的浓度值差,ΔLogH代表该二量测点间的对数(log)曝光值差。, where ΔD represents the concentration difference between any two measurement points on the linear region of the characteristic curve, and ΔLogH represents the logarithmic (log) exposure value difference between the two measurement points.
在传统影像系统的感光材料中,由于,底片的对比度特性,在固定的冲洗显影时间上,也属固定,故一般摄影家在摄取景物影像时,并无法针对影像的对比度特性,进行调整,仅能在冲洗底片时,通过改变冲洗底片的时间,调整该底片的对比度效果,以补偿被摄景物影像的光线条件。世界著名的分区曝光系统(Zone System),即是针对此一目的所设计的。此外,在先前申请的美国发明专利US5445929中,也揭露有利用可变对比度的化学式摄影系统,来调整底片对比度效果的技术,但,该技术需等完成拍摄,对底片进行化学处理后,始能令其呈现此一效果,故其对比度效果不仅无法在拍摄现场立即呈现,且无法立即予以调整或改变。In the photosensitive material of the traditional imaging system, since the contrast characteristics of the negative film are also fixed in the fixed developing time, the general photographer cannot adjust the contrast characteristics of the image when taking the scene image. When the film is developed, the contrast effect of the film can be adjusted by changing the time of developing the film to compensate the light conditions of the scene image. The world-renowned Zone System is designed for this purpose. In addition, in the U.S. invention patent US5445929 previously applied for, there is also a technology that uses a chemical photography system with variable contrast to adjust the contrast effect of the film. To make it present this effect, its contrast effect not only cannot be displayed immediately at the shooting scene, but also cannot be adjusted or changed immediately.
如前述,由于一般底片的对比度特性是属固定,且所能感应的影像光场的动态范围也属固定,故摄影家在摄取景物影像时,仅能通过调整相机光圈及快门的曝光值,令其在不同曝光区间取得固定光场范围的影像输入信号,针对此,在先前申请的美国发明专利US5159384中,发明人利用精准而复杂的曝光系统,虽改善了影像输入信号的品质,却仍无法改变影像系统本身的特性曲线值。As mentioned above, since the contrast characteristics of general negatives are fixed, and the dynamic range of the light field of the image that can be sensed is also fixed, the photographer can only adjust the exposure value of the camera aperture and shutter when taking the scene image. It obtains image input signals with a fixed light field range in different exposure intervals. In view of this, in the US invention patent US5159384 previously applied for, the inventor used a precise and complex exposure system to improve the quality of image input signals, but still could not Change the characteristic curve value of the imaging system itself.
另,传统上,场景对比度(scene contrast)用以定义拍照场景内景物亮度的相对比值。依过去的研究显示,一般最常拍摄的场景,其对比度介于20∶1到800∶1之间,其中又以160∶1最常见,因此,一般底片大都以此作为标准对比度,设计底片的固定对比度值,即底片输入信号的光场(明暗差异)动态范围,其值约为7又1/4格的光圈。以输入信号的光场动态范围为100∶1的底片为例,参阅图2所示,在其特性曲线中,X轴代表场景内不同景物相对亮度比值(即曝光值)的对数函数Log H(或称输入信号动态域),而Y轴代表底片冲洗出的浓度值(或称输出信号值域),若相机的曝光参考值设计在底片的特性曲线的输入信号动态域的中间,则使用者调整相机的曝光参考值时,该底片的特性曲线将沿X轴方向水平位移,但,该曲线的斜率仍维持不变。因此,复参阅图2所示,当相机的曝光参考值被设定在曲线A的中间时,会将亮度值在E0至E2间的景物,呈现在底片浓度为0至2间,而景物在亮度值在E2以上的部分,则均将被舍去无法呈现;当相机的曝光参考值被设定在曲线B的中间时,会将亮度值在E1至E3之间的景物呈现在底片浓度为0与2之间,而景物在亮度值E1以下及E3以上的部份,则将无法被记录;同理,当相机的曝光参考值被设定在曲线C的中间时,底片仅能记录亮度值在E2到E4范围内的景物。由此可知,无论使用者如何改变相机的曝光参考值,由于底片的对比度曲线的斜率是属固定,故该底片仅能记录在一固定输入信号动态域内的景物。若欲改变输入信号动态域的范围,且令其输出信号值域(即底片冲洗出的浓度范围值)仍维持固定,则势必需通过改变该拍摄系统的特性函数,才能达成,参阅图3所示,以曲线B为例,可通过增大该曲线的斜率,令其输入信号动态域的范围减小,变成如曲线A所示,又若减小该曲线的斜率,则其输入信号动态域的范围将加大,成为如曲线C所示,但其输出信号值域及相机的曝光参考值可维持不变。In addition, traditionally, scene contrast (scene contrast) is used to define the relative ratio of the brightness of the scene in the photographing scene. According to past research, the contrast ratio of the most commonly shot scenes is between 20:1 and 800:1, and 160:1 is the most common. Therefore, most of the general negatives use this as the standard contrast ratio. The fixed contrast value, i.e. the dynamic range of the light field (difference between light and dark) of the film input signal, is approximately 7 1/4 f stops. Take the film whose light field dynamic range of the input signal is 100:1 as an example, as shown in Figure 2, in its characteristic curve, the X-axis represents the logarithmic function Log H of the relative brightness ratio (ie exposure value) of different scenes in the scene (or called the dynamic domain of the input signal), and the Y axis represents the concentration value (or called the output signal value range) of the film developed. If the exposure reference value of the camera is designed in the middle of the dynamic domain of the input signal of the characteristic curve of the film, use Or when adjusting the exposure reference value of the camera, the characteristic curve of the film will shift horizontally along the X-axis direction, but the slope of the curve remains unchanged. Therefore, referring back to Figure 2, when the exposure reference value of the camera is set in the middle of curve A, the scene with a brightness value between E 0 and E 2 will be presented at a film density between 0 and 2, while The part of the scene with a brightness value above E 2 will be discarded and cannot be presented; when the exposure reference value of the camera is set in the middle of curve B, the scene with a brightness value between E 1 and E 3 will be displayed The part of the scene whose film density is between 0 and 2 and whose brightness value is below E1 and above E3 cannot be recorded; similarly, when the camera’s exposure reference value is set in the middle of curve C , the film can only record scenes with luminance values in the range of E 2 to E 4 . It can be seen from this that no matter how the user changes the exposure reference value of the camera, since the slope of the contrast curve of the film is fixed, the film can only record scenes within the dynamic range of a fixed input signal. If it is desired to change the range of the dynamic domain of the input signal and keep the value range of the output signal (that is, the concentration range value of the film developed) fixed, it must be achieved by changing the characteristic function of the shooting system, as shown in Figure 3. As shown, taking curve B as an example, by increasing the slope of the curve, the range of the dynamic domain of the input signal can be reduced, as shown in curve A, and if the slope of the curve is reduced, the dynamic range of the input signal can be The range of the domain will be enlarged, as shown in curve C, but the range of the output signal and the exposure reference value of the camera can remain unchanged.
因此,在一般摄影过程中,底片的特性曲线定义了输入信号动态域的范围,即可被记录的场景亮度范围,故若使用者欲调整可被记录的景物的光场动态范围,则在数学的意义上,需通过改变该摄影系统函数的特性曲线。参阅图4中曲线A所示,若已知X1、X2、Y1与Y2等四点,则曲线A的特性,可由Y=mX+c代函代表一线性曲线,其中m为斜率,c为常数;若再提供一X3数值,加入运算,即可令其调整为图4中曲线B所示的一非线性的特性函数。因此,在实际应用上,若XN为摄影家可选取的场景内某景物的光场量度值,而YN为摄影家可定义的输出信号值域范围,则依据所选取的至少2组(XN,YN)值,即可根据下列公式计算出该特性曲线的斜率m:Therefore, in the general photography process, the characteristic curve of the film defines the range of the dynamic domain of the input signal, that is, the brightness range of the scene that can be recorded. Therefore, if the user wants to adjust the dynamic range of the light field of the scene that can be recorded, then in mathematics In the sense, it is necessary to change the characteristic curve of the photographic system function. Referring to the curve A shown in Figure 4, if four points such as X 1 , X 2 , Y 1 and Y 2 are known, then the characteristics of the curve A can be represented as a linear curve by Y=mX+c, where m is the slope , c is a constant; if another value of X 3 is provided and added to the operation, it can be adjusted to a nonlinear characteristic function shown in curve B in Fig. 4 . Therefore, in practical applications, if X N is the light field measurement value of a certain scene in the scene that the photographer can select, and Y N is the range of the output signal value range that the photographer can define, then based on at least two selected groups ( X N , Y N ) value, the slope m of the characteristic curve can be calculated according to the following formula:
,摄影家可通过调整该m值,以调高或调低该系统的对比度值,其输出值域的范围Y1-Y2,也可迳依使用者偏好设定,无需固定设在其极限值。此一作法,虽已于美国发明专利US5539459中揭露有类似的观念,但该专利对于使用者如何控制及调整该系统的对比度值,或该系统如何使用者指示,对该系统的对比度值,进行控制及调整,则并无具体的陈述。, the photographer can adjust the value of m to increase or decrease the contrast value of the system. The range of the output range Y 1 -Y 2 can also be set according to the user's preference, and there is no need to fix it at its limit value. Although this approach has disclosed a similar concept in U.S. Patent No. 5,539,459, how the patent controls and adjusts the contrast value of the system, or how the system is instructed by the user, the contrast value of the system is carried out. Control and adjustment, there is no specific statement.
此外,在现有的数字相机1中,参阅图5所示,均利用一光感应元件11(charges couple device,简称CCD),通过一镜片(lens)组10,撷取景物影像,并将所撷取的影像转换为模拟讯号后,经一模拟/数字转换器12,将其转换成数字影像讯号,再经一编码元件13予以编码后,储存至一存储器14(或储存装置中),最后,再通过其上的一显示装置15,将所储存的数字影像显示出来。该等现有数字相机1可通过预先设定其控制参数值16,以控制其增益值(Ga in)及补偿值(Offset)的方式,对类似Y=mX+c线性函数的系统特性,进行调整,如:美国发明专利US4187519所示,但,该专利并无法建构出非线性化的函数关系,且若使用者欲自行设定其输入信号动态域的范围时,也无法将其列入调整其对比度的处理中。由于,人类的视觉系统会随场景光线的强度,改变其视觉对比度,因此,单纯将输入场景的光场动态范围,自动对应至全部的输出信号值域范围,并无法令摄影家直接依其偏好,达成即时调整及控制影像对比度特性的愿望。In addition, in the existing
发明内容Contents of the invention
为改进前述现有数字相机无法即时调整及控制影像对比度特性的缺失,特提出本发明的一种可调整感光特性曲线的影像处理方法与装置,可于一影像处理装置中,利用一调整影像对比度的处理方法,令该装置可依据所量测的景物光表像资料及使用者所输入的控制参数,立即计算出一新的对比度控制参数,并将该参数重新储存在一控制参数存储单元内,再利用该新的对比度控制参数,即时对所拍摄的影像数据,进行对比度调整及处理,并立即显现在一使用者介面的显示器(如LCD)上,让使用者能依其偏好,可以回馈方式,反复修正及调整该对比度控制参数,令装置能考量人类的视觉特性(如:Steven’s Effect),即时计算出线性或非线性的对比度特性曲线,并据以作为该摄像处理装置(如:数字相机)拍摄影像时的取样参考值,拍摄出最佳对比度值的景物影像。In order to improve the lack of real-time adjustment and control of the image contrast characteristics of the aforementioned existing digital cameras, an image processing method and device for adjusting the photosensitive characteristic curve of the present invention is proposed, which can be used in an image processing device to adjust image contrast. processing method, so that the device can immediately calculate a new contrast control parameter according to the measured scene light image data and the control parameter input by the user, and store the parameter again in a control parameter storage unit , and then use the new contrast control parameters to adjust and process the contrast of the captured image data in real time, and immediately display it on a user interface display (such as LCD), so that users can give feedback according to their preferences In this way, the contrast control parameters are revised and adjusted repeatedly, so that the device can consider human visual characteristics (such as: Steven's Effect), and calculate the linear or nonlinear contrast characteristic curve in real time, and use it as the camera processing device (such as: digital Camera) sampling reference value when shooting images, to capture scene images with the best contrast value.
本发明的一种可调整感光特性曲线的影像处理装置包括:An image processing device capable of adjusting the photosensitivity characteristic curve of the present invention comprises:
一光学元件组,用以调整光圈、快门、焦距及感测曝光值;An optical element group for adjusting aperture, shutter, focal length and sensing exposure value;
一光感应单元,用以通过该光学元件组感应被摄景物的光表像资料,并将其转变成代表景物彩色影像的模拟电压信号;A light sensing unit, which is used to sense the light image data of the scene to be photographed through the optical element group, and convert it into an analog voltage signal representing the color image of the scene;
一信号转换单元,用以将该光表像资料转换成一预定格式的数字影像资料;该信号转换单元内包括一模拟/数字转换器,用以将该光感应单元传来的模拟电压信号转换成一数字影像资料;该信号转换单元内还包括:A signal conversion unit is used to convert the optical image data into digital image data in a predetermined format; the signal conversion unit includes an analog/digital converter to convert the analog voltage signal from the light sensing unit into a Digital image data; the signal conversion unit also includes:
一L-M的编码器,依其对照表的设定,将该模拟/数字转换器传来的数字影像资料转换成一M位元的数字影像资料;An L-M encoder, according to the setting of its comparison table, converts the digital image data transmitted by the analog/digital converter into an M-bit digital image data;
一M-N编码器,依其对照表的设定,将该M位元的数字影像资料转换成一N位元的数字影像资料,其中M是设计在大于或等于N的条件下,使依该M-N编码器的转换关系,令数字数字影像资料可由输入信号动态域X内,取样的2M种数值,对应至2N种的输出信号值域Y中,得到其取样数值间的线性关系,即:An MN encoder converts the M-bit digital image data into an N-bit digital image data according to the setting of the comparison table, wherein M is designed to be greater than or equal to N, so that the MN code The conversion relationship of the digital digital image data can be obtained from the 2 M kinds of values sampled in the dynamic domain X of the input signal to the 2 N kinds of output signal value range Y, and the linear relationship between the sampled values can be obtained, that is:
,其中Y2与Y1即为对应后输出信号值域的最大值与最小值,而X1与X2为输入信号动态域的上限与下限,m即其斜率,代表视觉系统上所谓的对比度;, where Y 2 and Y 1 are the maximum and minimum values of the corresponding output signal range, and X 1 and X 2 are the upper and lower limits of the dynamic domain of the input signal, and m is its slope, which represents the so-called contrast in the visual system ;
一输出影像存储器,用以储存该数字影像资料;an output image memory for storing the digital image data;
一使用者介面,用以显示该影像存储器传来的数字影像资料,并令使用者可通过该介面调整撷取影像资料的设定值;A user interface for displaying the digital image data transmitted from the image memory, and allowing the user to adjust the setting value of the captured image data through the interface;
一参数设定存储器,用以储存使用者通过该使用者介面所设定的参数;a parameter setting memory, used to store the parameters set by the user through the user interface;
一预定参数存储器,用以储存预设的参数;a preset parameter memory, used to store preset parameters;
一控制参数存储器,用以储存控制参数,以根据该控制参数对该信号转换单元进行影像调整及处理;及a control parameter memory, used to store control parameters, so as to adjust and process the image of the signal conversion unit according to the control parameters; and
一处理器,用以根据该预定参数存储器、光学元件组、输出影像存储器、参数设定存储器及信号转换单元所分别传来的讯号,计算出用以控制影像撷取功能的控制参数,并将其存入该控制参数存储器中,使该信号转换单元根据该等控制参数,对该光感应单元所撷取的影像资料,进行调整。A processor, used to calculate the control parameters used to control the image capture function according to the signals respectively transmitted from the predetermined parameter memory, the optical element group, the output image memory, the parameter setting memory and the signal conversion unit, and It is stored in the control parameter memory, so that the signal conversion unit adjusts the image data captured by the light sensing unit according to the control parameters.
本发明的一种可调整感光特性曲线的影像处理方法利用一影像处理装置内的一处理器,依下列步骤,控制该装置内的各组成元件,以调整撷取影像资料的对比度值:An image processing method capable of adjusting the photosensitive characteristic curve of the present invention uses a processor in an image processing device to control each component in the device according to the following steps to adjust the contrast value of the captured image data:
首先,由一预设参数存储器内,读取预设的一控制选项,再通过一使用者介面予以显示,供使用者选取可用以调整影像对比度的数值,并将所选取的数值储存至一参数设定存储器内;Firstly, a preset control option is read from a default parameter memory, and then displayed through a user interface for the user to select a value that can be used to adjust the image contrast, and the selected value is stored in a parameter set memory;
根据该参数设定存储器内所储存的使用者设定值,计算出影像资料的对比度特性参数,并将该参数值储存至一控制参数存储单元内,完成定义取像时的对比度设定;According to the user setting value stored in the parameter setting memory, the contrast characteristic parameter of the image data is calculated, and the parameter value is stored in a control parameter storage unit, so as to complete the contrast setting when defining the imaging;
当利用该装置对景物拍照时,令一信号转换单元依该控制参数存储单元所储存的对比度特性参数,对一光感应单元传来的模拟电压信号依序进行转换及编码,并将所产生的数字影像资料,储存至一输出影像存储器中;When the device is used to take pictures of the scene, a signal conversion unit is used to convert and encode the analog voltage signal sent from a light sensing unit in sequence according to the contrast characteristic parameters stored in the control parameter storage unit, and the generated digital image data stored in an output image memory;
然后,再将该输出影像存储器内储存的影像资料,传送至该使用者介面上,令使用者可依其偏好,重覆前述步骤,调整影像的对比度数值。Then, the image data stored in the output image memory is sent to the user interface, so that the user can repeat the above steps to adjust the contrast value of the image according to his preference.
附图说明Description of drawings
图1所示为典型黑白感光材料的特性曲线的状态示意图;Figure 1 shows a schematic diagram of the state of the characteristic curve of a typical black and white photosensitive material;
图2所示为输入信号动态域为100∶1的底片的特性曲线中,改变相机的曝光参考值时,代表该底片在不同输入信号动态域的对比度曲线的状态示意图;Fig. 2 shows that in the characteristic curve of the film whose input signal dynamic domain is 100:1, when the exposure reference value of the camera is changed, it represents the state schematic diagram of the contrast curve of the film in different input signal dynamic domains;
图3所示为底片的输出信号值域是属固定,改变其输入信号动态域的范围时,拍摄系统的特性函数的斜率变化的状态示意图;Fig. 3 shows that the value range of the output signal of the film is fixed, and when changing the range of the dynamic domain of the input signal, the state schematic diagram of the slope change of the characteristic function of the shooting system;
图4所示为摄影系统的线性函数Y=mX+c及非线性函数的特性曲线的状态示意图;Fig. 4 shows the state diagram of the characteristic curve of the linear function Y=mX+c and the non-linear function of the photography system;
图5所示为传统数字相机的组成元件的方块示意图;FIG. 5 is a schematic block diagram of components of a conventional digital camera;
图6所示为本发明的可调整感光特性曲线的影像处理装置的方块示意图;FIG. 6 is a schematic block diagram of an image processing device capable of adjusting the photosensitive characteristic curve of the present invention;
图7所示为本发明的装置在撷取景物影像时,影像资料处理程序的示意图;FIG. 7 is a schematic diagram of an image data processing procedure when the device of the present invention captures a scene image;
图8所示为本发明的装置中该信号转换单元的方块示意图;Fig. 8 shows the block diagram of this signal conversion unit in the device of the present invention;
图9所示为本发明的影像资料中,特性曲线的对比度值与其输入信号动态域X、输出信号值域Y及曝光参考值Xe间的状态示意图;FIG. 9 is a schematic diagram showing the state between the contrast value of the characteristic curve and its input signal dynamic range X, output signal value range Y and exposure reference value Xe in the image data of the present invention;
图10所示为本发明的一较佳实施例的影像资料处理流程示意图;FIG. 10 is a schematic diagram of an image data processing flow in a preferred embodiment of the present invention;
图11所示为图10的实施例中该光学元件组对准该光表像资料目标位置的状态示意图;Fig. 11 is a schematic view showing the state of the optical element group aligned with the target position of the optical image data in the embodiment of Fig. 10;
图12所示为本发明的另一较佳实施例的影像资料处理流程示意图;FIG. 12 is a schematic diagram of an image data processing flow in another preferred embodiment of the present invention;
图13所示为本发明的又一较佳实施例的影像资料处理流程示意图。FIG. 13 is a schematic diagram of an image data processing flow in another preferred embodiment of the present invention.
图号说明:Description of figure number:
光学元件组……………62 光感应单元………………70Optical component group…………62 Light sensing unit……………70
信号转换单元…………80 输出影像存储器…………90Signal conversion unit………80 Output image memory………90
使用者介面……………50 参数设定存储器…………40User Interface...50 Parameter Setting Memory...40
预定参数存储器………10 控制参数存储器…………30Preset parameter memory...10 Control parameter memory...30
处理器…………………20 模拟/数字转换器…………82Processor………………20 Analog/Digital Converter………82
具体实施方式Detailed ways
在本发明的可调整感光特性曲线的影像处理装置中,参阅图6所示,该装置主要包括一光学元件组62,该光学元件组62用以调整光圈、快门、焦距及感测曝光值;一光感应单元(CCD)70,用以通过该光学元件组62感应被摄景物60的光表像资料(visualization of he scene light);一信号转换单元80,用以将该光表像资料转换成一预定格式的数字影像资料;一输出影像存储器90,用以储存该数字影像资料;一使用者介面50,用以显示该影像存储器90传来的数字影像资料,并令使用者可通过该介面50调整影像资料的设定值;一参数设定存储器40,用以储存使用者通过该使用者介面50所设定的参数;一预定参数存储器10,用以储存预设的参数;一控制参数存储器30,用以储存控制参数,以根据该控制参数对该信号转换单元80进行影像调整及处理;及一处理器20,用以根据该预定参数存储器10、光学元件组62、输出影像存储器90、参数设定存储器40及信号转换单元80所分别传来的讯号,计算出用以控制影像撷取功能的控制参数,并将其存入该控制参数存储器30中,使该信号转换单元80根据该等控制参数,对该光感应单元(CCD)70所撷取的影像资料,进行调整。In the image processing device with adjustable photosensitive characteristic curve of the present invention, as shown in FIG. 6, the device mainly includes an optical element group 62, which is used for adjusting the aperture, shutter, focal length and sensing exposure value; A photosensitive unit (CCD) 70 is used to sense the light representation data (visualization of his scene light) of the scene 60 through the optical element group 62; a signal conversion unit 80 is used to convert the light representation data digital image data in a predetermined format; an output image memory 90 for storing the digital image data; a user interface 50 for displaying the digital image data transmitted from the image memory 90, and allowing users to 50 to adjust the set value of the image data; a parameter setting memory 40 for storing the parameters set by the user through the user interface 50; a predetermined parameter memory 10 for storing the preset parameters; a control parameter Memory 30, used to store control parameters, to adjust and process the image of the signal conversion unit 80 according to the control parameters; and a processor 20, used to output image memory 90 according to the predetermined parameter , the parameter setting memory 40 and the signals sent by the signal conversion unit 80, calculate the control parameters used to control the image capture function, and store them in the control parameter memory 30, so that the signal conversion unit 80 according to These control parameters are used to adjust the image data captured by the photosensitive unit (CCD) 70 .
该装置在撷取景物影像时,主要依下列步骤,参阅图7所示,进行处理:When the device captures the scene image, it mainly follows the following steps, as shown in Figure 7, for processing:
(1)首先,通过该光学元件组62(包括:镜头、光圈、快门及反射棱镜等),撷取光线下所呈现的景物60影像,其影像内容呈一光表像资料(visualization of he scene light)65,即相对于该景物的光量。若以测光表读取该光表像资料,可得其曝光值。(1) First, through the optical element group 62 (including: lens, aperture, shutter and reflective prism, etc.), the image of the
(2)当该景物60的光表像资料65抵达该装置时,将被该感应单元70转换成多频道的电压及电流信号,令其资料内容转变成代表景物彩色影像的模拟电压信号75。(2) When the light image data 65 of the
(3)该彩色影像的模拟电压信号75再通过该信号转换单元80中的一模拟/数字转换器82(A/D Converter),参阅图8所示,被转换成一L位元(如:12bit)的数字影像资料83。(3) The analog voltage signal 75 of the color image passes through an analog/digital converter 82 (A/D Converter) in the
(4)该L位元的数字锵影像资料83再通过该信号转换单元80中的一L-M的编码器84,复参阅图8所示,依其对照表的设定,产生一M位元(如:10bit)的数字影像资料85,并被储存至该信号转换单元80中的一暂存存储器86内。(4) The digital image data 83 of this L bit passes through the encoder 84 of an L-M in this
(5)最后,该M位元的数字影像资料85再通过该信号转换单元80中的一M-N编码器89,复参阅图8所示,依其对照表的设定,产生一N位元(如:8bit)的数字影像资料89,并储存至该输出影像存储器90中。(5) Finally, the M-bit digital image data 85 passes through an M-N encoder 89 in the
由于,在本发明中,该等转换数值中M为设计在大于或等于N的条件下,即M≥N,依该M-N编码器89的转换关系,数字影像资料可由2M种资料数值降至只有2N种数值,故若在输入信号动态域X内,参阅图9所示,仅取2M种数值,对应至2N种的输出信号值域Y中,则其取样数值间的线性关系,可以函数Y=mX或(Y2-Y1)=m(X2-X1)来代表,其中Y2与Y1即为对应后输出信号值域的最大值与最小值,而X2为输入信号动态域的上限与下限,其斜率m值即:Because, in the present invention, M among these conversion values is designed under the condition greater than or equal to N, that is M≥N, according to the conversion relationship of the MN encoder 89, the digital image data can be reduced from 2 M kinds of data values to There are only 2 N kinds of values, so if in the dynamic domain X of the input signal, as shown in Figure 9, only 2 M kinds of values are taken, corresponding to the 2 N kinds of output signal value range Y, then the linear relationship between the sampled values , can be represented by the function Y=mX or (Y 2 -Y 1 )=m(X 2 -X 1 ), where Y 2 and Y 1 are the maximum and minimum values of the corresponding output signal range, and X 2 It is the upper limit and lower limit of the dynamic domain of the input signal, and its slope m value is:
,该对应关系即视觉系统上所谓的对比度。, the corresponding relationship is the so-called contrast on the visual system.
复参阅图9所示,在本发明中,若该装置的曝光参考值Xe是介于X2与X1间的某设定点,则在不改变该装置的曝光参考值Xe的情形下,加大X2与X1间的输入信号动态域的范围至X’2与X’1间,将令其斜率变小,使影像对比度减少。反之,若减少该输入信号动态域的范围,且令输出信号值域维持不变,则可提升影像的对比度。本发明即利用此一观念,先于该预定参数存储器10中储存至少一预设的斜率值m,令该装置在已知的曝光参考值Xe条件下,计算出一对照表,或由输入信号动态域的数值X2、X1、Xe与对于应的输出信号值域Y2、Y1、Ye计算出一非线性的函数,再根据该函数产生一对照表,直接通过该对照表,调整该m值或该X、Y值的设定,以达成即时调整被摄景物影像对比度的目的。由于,在发明中,该输入信号动态域的数值范围有2M种,超出该输出信号值域的数值范围2N种,故对应后并不会有跳阶(quantization)的现象。Referring back to FIG. 9, in the present invention, if the exposure reference value Xe of the device is a certain set point between X2 and X1 , then the exposure reference value Xe of the device is not changed. Next, increasing the range of the dynamic domain of the input signal between X2 and X1 to between X'2 and X'1 will make its slope smaller and reduce the contrast of the image. Conversely, if the range of the dynamic domain of the input signal is reduced and the range of the output signal remains unchanged, the contrast of the image can be improved. The present invention utilizes this concept, and stores at least one preset slope value m in the
此外,本发明在该景物60的光表像合65抵达该装置时,该处理器20可根据该光学元件组62上的测光机制,调整该光学元件组中的光圈、快门,或调整该模拟/数字转换器20的增益值(Gain)及补偿值(Offeset),以设定该影像的曝光参考值Xe,并以该影像的曝光参考值Xe为中心,以等量方式调整其输入信号动态域的范围值,由于,一般常见的曝光设定,并不会受对比度调整的影响,因此,本发明的对比度调整可独立于该装置的曝光控制外,成为一独立的控制项目。In addition, in the present invention, when the optical surface image 65 of the
在本发明的一实施例中,该处理器20依下列程序,参阅图10所示,控制各组成元件,以调整影像资料的对比度值:In one embodiment of the present invention, the
(1)首先,由该预设参数存储器10内,读取一预设的参数设定控制选项,再通过该使用者介面50的显示器,予以显示,让使用者直接通过该控制选项,设定影像的输出信号值域Y2、Y1,(Y2与Y1不一定为Y值域的极值),然后再通过操作该光学元件组62,于该控制选项上分别设定该光表像资料65上对应于该等输出信号值域Y2、Y1、的目标位置的输入信号动态域X1、X2,并将该等数值储存在该参数设定存储器40内。在该实施例中,输入信号动态域X1、X2的数值,可为该光学元件组62对准该光表像资料65的目标位置1、2时所测得的数值,如图11所示,该数值一般是指点测光表的读数;另,使用者也可在设定X1与X2及Y1、与Y2上的相对值后,通过输入多于该二点的另一数值X3、Y3以决定如图4中所形成的非线性特性曲线(如曲线B)。(1) First, read a default parameter setting control option from the
(2)再根据该参数设定存储器40内所储存的使用者设定值,计算出影像资料的对比度特性参数,并将该参数值储存至该控制参数存储器30内,完成定义取像时的对比度设定;(2) According to the user setting value stored in the
(3)当该装置对景物拍照时,令该信号转换单元80根据该控制参数存储器30内所储存的对比度特性参数,对该光感应单元70传来的模拟电压信号,依序进行转换及编码处理,并将所产生的N位元数字影像资料89,储存到影像存储器90中。(3) When the device takes pictures of the scene, make the
(4)然后,再将该输出影像存储器90内储存的影像资料,传送至该使用者介面50的显示器上,即可令使用者重复步骤(1)的程序,依其偏好,通过该控制选项重新设定影像的输入信号值域X1与X2及输出信号值域Y1、与Y2。(4) Then, the image data stored in the
该实施例中,由于,使用者可直接通过操作该光学元件组62,在该显示器所显示的控制选项上,设定景物光表像资料65上至少二目标位置所对应的输入信号动态域X1与X2及输出信号值域Y1、与Y2,再根据该等设定数值,即时计算出取像资料的对比度参数值,因此,该信号转换单元80在对数字影像资料进行转换及编码处理时,可省略L位元到M位元数字影像资料的转换,故该二编码器84、88可予合并,并可省略该暂存存储器86。In this embodiment, because the user can directly operate the
在本发明的另一较佳实施例中,该处理器20依下列程序,参阅图12所示,控制各组成元件,以调整所撷取影像资料的对比度值:In another preferred embodiment of the present invention, the
(1)首先,由该预设参数存储器10内,读取预设的一指标选项,该指标选项内包括至少一个以上预设的对比度参数值,再通过该使用者介面50的显示器,予以显示,供使用者选取,并将所选取的数值储存至该参数设定存储器40内;该等数值可为其特性曲线的斜率,故可通过直接选取预设的数值,以改变其斜率,如图3中所定义的特性曲线A、B或C。(1) First, read a default index option from the
(2)再根据该参数设定存储器40内所储存的使用者设定值,及该光学元件组62所测得的曝光参考值,计算出影像资料的对比度特性参数(可为一非线性参数),并将该参数值储存至该控制参数存储器30内,完成定义取像时的对比度设定;(2) According to the user setting value stored in the
(3)当使用者利用该装置对景物拍照时,令该信号转换单元80依该控制参数存储器30所储存的对比度特性参数,对该光感应单元70传来的模拟电压信号,依序进行转换及编码处理,并将所产生的N位元的数字影像资料89,储存至该输出影像存储器90中;(3) When the user uses the device to take pictures of the scene, the
(4)然后,再将该输出影像存储器90内储存的影像资料,传送至该使用者介面50的显示器上,即可令使用者重覆步骤(1)的程序,依其偏好,重新自该指标选项内选取预设的对比度参数值。(4) Then, the image data stored in the
该另一实施例中,由使用者可直接通过该使用者介面50自该预设参数存储器10内,即时选取预设的对比度参数值,故该信号转换单元80在对数字影像资料进行转换及编码处理时,可省略该暂存存储器86及L位元到M位元数字影像资料的转换,并将该二编码器84、88予以合并。In this another embodiment, the user can directly select the preset contrast parameter value from the
在本发明的又一较佳实施例中,该处理器20可依下列程序,参阅图13所示,控制各组成元件,以调整影像资料的对比度值:In yet another preferred embodiment of the present invention, the
(1)首先,自该预设参数存储器10内,读取预设的一指标选项,该指标选项内包括至少一个以上预设的对比度参数值,再通过该使用者介面50的显示器,予以显示,供使用者参考,依其个人的偏好,利用该使用者介面50上的一输入装置(图中未示),重新选取其对比度参数值,并将所选取的数值储存至该参数设定存储器40内;(1) First, from the
(2)再根据该参数设定存储器40内所储存使用者设定值,及该光学元件组62所测得的曝光参考值,计算出影像资料的对比度特性参数,并将该参数值储存至该控制参数存储器30内,完成定义取像时的对比度设定;(2) Calculate the contrast characteristic parameter of the image data according to the user setting value stored in the
(3)当使用者利用该装置对景物拍照时,令该信号转换单元80依该光学元件组62所测得的曝光参考值及该控制参数存储器30所储存的对比度特性参数,修改该模拟/数字转化器82内对照表的资料,以将该光感应单元70传来的模拟电压信号75,转换成L位元的数字影像资料83,该影像资料83是光表像资料在该光感应单元70上的强度及其在数字信号上的线性呈现,但在人类视觉信号的领域其为非线性的关系。(3) When the user uses the device to take pictures of the scene, make the
(4)令该L-M编码器84依该控制参数存储器30所储存的参数,修改该L-M编码器84内对照表的资料,以对该L位元影像资料83进行非线性转换,产生M位元的数字影像资料85,该影像资料85代表光转换成人类视觉上所感知(perceived)的明亮度,并将其储存于该暂存存储器86中。(4) Make the L-M encoder 84 modify the data in the comparison table in the L-M encoder 84 according to the parameters stored in the
(5)然后,再令该M-N编码器86依该控制参数存储器30所储存的对比度特控参数,修改该M-N编码器86内对照表的资料,以对该M位元的影像资料85进行由M位元到N位元的值域对应转换,并将所产生的N位元数字影像资料89,储存在该输出影像存储器90,且呈现在该显示幕上,即可另使用者重复步骤(1)的程序,依其偏好,重新自该指标选项内选取预设的对比度参数值。(5) Then, make the M-N encoder 86 revise the data in the comparison table in the M-N encoder 86 according to the contrast special control parameters stored in the
在前述对应转换过程中,由于是以M位元的数值代表图4中的输入信号动态域X,N位元的数值代表其输出信号位域Y,故该对照表所定义的参数,即为调整对比度时的对应函数或特性曲线,其对应方式是通过改变可接受的输入信号动态域的范围,并依曝光参考值决定该动态域的中间参考点位置。In the aforementioned corresponding conversion process, since the input signal dynamic domain X in Fig. 4 is represented by the value of M bits, and the value of N bits represents the bit field Y of the output signal, the parameters defined in the comparison table are The corresponding function or characteristic curve when adjusting the contrast is by changing the range of the dynamic domain of the acceptable input signal, and determining the middle reference point position of the dynamic domain according to the exposure reference value.
(6)若使用者欲对该装置已撷取的数字景物影像,进行对比度调整,使用者可通过该使用者介面50上的一定位装置(图中未示),自该显示器上,依其偏好,选取该影像资料上对应于该目标位置1、2,此时,该处理器10可由该暂存存储器86中读取该M位元影像资料上对应该目标位置1、2的数值范围,并将其储存至该参数设定存储器40中,该M位元的数值范围即可作为如图4中输入信号动态域X,而该N位元影像资料的对应数值范围,则由该输出影像存储器90中被读出,并胜储存至该参数设定存储器40中,该N位元的数值范围即可作为如图4中的输出信号值域Y。(6) If the user wants to adjust the contrast of the digital scene image captured by the device, the user can use a positioning device (not shown in the figure) on the
(7)然后,再读取该参数设定存储器40内所储存的数值,如图4中的XN值与YN值,计算出新的特性曲线,并将其储存值该控制参数存储器30中,并重复步骤(5)的程序,令该等编码器依新的特性曲线,调整其对照表,重新对已撷取的数字景物影像进行编码及转换处理,以调整其对比度效果。(7) Then, read the stored numerical value in this
如此,使用者即可利用本发明的装置,依其偏好,可以回馈方式,反复修正及调整该对比度控制参数,令该装置能考量人类的视觉特性,即时计算出线性或非线性的对比度特性曲线,并据以作为该影像处理装置(如:相机)拍摄影像时的取样参考值,拍摄出最佳对比度值的景物影像。In this way, the user can use the device of the present invention to repeatedly modify and adjust the contrast control parameters in a feedback manner according to his preference, so that the device can calculate a linear or non-linear contrast characteristic curve in real time by considering human visual characteristics , and use it as a sampling reference value when the image processing device (such as: a camera) shoots an image, and shoot a scene image with the best contrast value.
以上所述,仅为本发明的最佳具体实施例,但本发明的特征并不局限于此,任何熟悉该项技艺者在本发明领域内,可轻易思及的变化或修饰,皆应涵盖在本发明的权利要求范围中。The above is only the best specific embodiment of the present invention, but the features of the present invention are not limited thereto, and any changes or modifications that can be easily conceived by those skilled in the art in the field of the present invention should be covered. Within the scope of the claims of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN01130709.9A CN1249985C (en) | 2001-08-21 | 2001-08-21 | Image processing method and device capable of adjusting photosensitive characteristic curve |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN01130709.9A CN1249985C (en) | 2001-08-21 | 2001-08-21 | Image processing method and device capable of adjusting photosensitive characteristic curve |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1406053A CN1406053A (en) | 2003-03-26 |
| CN1249985C true CN1249985C (en) | 2006-04-05 |
Family
ID=4670082
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN01130709.9A Expired - Fee Related CN1249985C (en) | 2001-08-21 | 2001-08-21 | Image processing method and device capable of adjusting photosensitive characteristic curve |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1249985C (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4875833B2 (en) * | 2004-03-16 | 2012-02-15 | オリンパス株式会社 | Imaging apparatus, image processing apparatus, image processing system, and image processing method |
| JP5937832B2 (en) * | 2012-01-30 | 2016-06-22 | クラリオン株式会社 | In-vehicle camera exposure control system |
| CN105611173A (en) * | 2016-02-26 | 2016-05-25 | 广东欧珀移动通信有限公司 | Terminal, imaging device, interactive system, control method and control device thereof |
| WO2020181483A1 (en) * | 2019-03-12 | 2020-09-17 | 深圳市大疆创新科技有限公司 | Camera control method and apparatus |
-
2001
- 2001-08-21 CN CN01130709.9A patent/CN1249985C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN1406053A (en) | 2003-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10554904B2 (en) | Automated extended depth of field imaging apparatus and method | |
| US7176976B2 (en) | Autoexposure methodology in a digital camera | |
| JP4287179B2 (en) | Method for automatic white balance of digital images | |
| US6970199B2 (en) | Digital camera using exposure information acquired from a scene | |
| TWI416945B (en) | Image processing device, image processing method, and computer readable medium | |
| KR101594292B1 (en) | Digital imaging device, digital imaging device control method, and computer readable storage medium | |
| JP4133052B2 (en) | Digital imaging system | |
| CN1992819A (en) | Photographing apparatus and method | |
| CN1744672A (en) | Image capture apparatus and control method therefor | |
| TW200833089A (en) | Camera module, electronic apparatus and method of manufacturing them | |
| CN1820496A (en) | Image Correction Method and Camera Device | |
| US20110317038A1 (en) | Imaging apparatus and image data correcting method | |
| CN1263280C (en) | Camera | |
| CN1487726A (en) | digital camera | |
| CN1917616A (en) | Photographing apparatus | |
| CN107534732A (en) | Image processing apparatus, camera device, image processing method and image processing program | |
| CN1834768A (en) | Focusing apparatus, camera and focus position detecting method | |
| US6816191B1 (en) | Image processing method for the adjustment of photographic contrast and the relevant apparatus | |
| CN1260951C (en) | Camera | |
| JP4295149B2 (en) | Color shading correction method and solid-state imaging device | |
| CN1249985C (en) | Image processing method and device capable of adjusting photosensitive characteristic curve | |
| JP5173664B2 (en) | Image processing apparatus and image processing method | |
| JP3666429B2 (en) | Autofocus device and method, and camera | |
| CN1265620C (en) | Digital camera | |
| CN1961569A (en) | Imaging device |
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 | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060405 Termination date: 20130821 |