The invention is applicable to the technical field of image processing, provides an image adjusting method, color saturation device and image processing chip, the method comprises the steps of color gamut conversion and calculation steps and color saturation adjustment steps of color saturation adjustment coefficient, the color gamut conversion step, image pixel conversion from RGB domain to YCbCr domain; calculate the adjusting coefficient of the color saturation, brightness according to multiple interval set threshold value, judging the brightness interval pixel belongs and calculate the color saturation adjustment coefficient sat_rate; the color saturation adjustment step according to the adjusted value of the color saturation adjustment coefficient sat_rate of the pixels of the image, adjust the formula as follows: Cb= (Cb 128) * sat_rate, Cr= (Cr 128) * sat_rate. By adopting the technical proposal of the invention, the chromaticity noise of the image in the middle and low brightness areas can be effectively reduced.
【技术实现步骤摘要】
一种图像色饱和度的调整方法、装置及图像处理芯片
本专利技术属于图像处理
,尤其涉及一种图像色饱和度的调整方法、装置及图像处理芯片。
技术介绍
在图像的采集和显示的过程中,图像的色饱和度往往不够,需要在图像处理中对色饱和度进行调整。比如在图像采集过程中,sensor采集过来的数据为了保持更多的细节,抑制噪声等原因,都会压低图像亮度,再经过gamma矫正,但是这样出来的图像色饱和度低Gamma之后的图像色饱和度低,所以会在后续的图像处理中采用饱和度提升的方法。常用的色饱和度的提升方法有几种:1在R,G,B域中进行处理,这种方法简单,但是容易出现颜色错误,以及色度过饱和;2在HIS域调节,这种方法需要把色度转换成HIS域调整,然后转换回来,所以复杂度较高,但是色度转换错误较低,但是也容易出现色度过饱和;3在YCbCr域中处理,这种转换的方式也比较简单,直接对Cb,Cr处理,在色饱和度提升的过程中,特别是在暗场中,颜色的噪音容易放大。
技术实现思路
本专利技术实施例提供了一种图像色饱和度的调整方法、装置及图像处理芯片,旨在解决现有的问题。在本专利技术实施例中,提供一种图像色饱和度的调整方法,其特征在于,所述方法包括:色域转换步骤:将图像的像素从RGB域转换到YCbCr域;色饱和度调整系数计算步骤:根据设定的多个亮度区间的门限值,判断像素所属的亮度区间并计算色饱和度调整系数sat_rate;色饱和度调整步骤:根据所述色饱和度调整系数sat_rate对图像的像素值进行调整,调整公式如下:Cb=(Cb-128)*sat_rate,Cr=(Cr-128)*sat_rat ...
【技术保护点】
一种图像色饱和度的调整方法,其特征在于,所述方法包括:色域转换步骤:将图像的像素从RGB域转换到YCbCr域;色饱和度调整系数计算步骤:根据设定的多个亮度区间的门限值,判断像素所属的亮度区间并计算色饱和度调整系数sat_rate;色饱和度调整步骤:根据所述色饱和度调整系数sat_rate对图像的像素值进行调整,调整公式如下:Cb=(Cb‑128)* sat_rate,Cr=(Cr‑128)* sat_rate。
【技术特征摘要】
1.一种图像色饱和度的调整方法,其特征在于,所述方法包括:色域转换步骤:将图像的像素从RGB域转换到YCbCr域;色饱和度调整系数计算步骤:根据设定的多个亮度区间的门限值,判断像素所属的亮度区间并计算色饱和度调整系数sat_rate;色饱和度调整步骤:根据所述色饱和度调整系数sat_rate对图像的像素值进行调整,调整公式如下:Cb=(Cb-128)*sat_rate,Cr=(Cr-128)*sat_rate。2.如权利要求1所述的图像色饱和度的调整方法,其特征在于,所述色饱和度调整系数计算步骤中,所述色饱和度调整系数计算公式如下:sat_rate=rate*(color_off-color_noise_th)+saturation,其中,rate为不同亮度区间下的色饱和度调整比例,saturation为设定的色饱和度比例,color_noise_th为设定的色噪门限,color_off为色度偏移量,且color_off=|Cb-128|+|Cr-128|。3.如权利要求2所述的图像色饱和度的调整方法,其特征在于,所述色饱和度调整系数计算步骤中,所述多个亮度区间的门限值包括第一门限值th1、第二门限值th2、第三门限值th3和第四门限值th4,当像素的亮度Y(i,j)在所述第一门限值th1和所述第二门限值th2之间时,rate=(Y(i,j)-th1)/(th2-th1);当像素的亮度Y(i,j)在所述第二门限值th2和所述第三门限值th3之间时,rate=1;当像素的亮度Y(i,j)在所述第三门限值th4和所述第四门限值th4之间时,rate=(Y(i,j)-th3)/(th4-th3)。4.如权利要求3所述的图像色饱和度的调整方法,其特征在于,当像素的亮度Y(i,j)小于所述第一门限值th1时,rate=0;当像素的亮度Y(i,j)大于所述第四门限值th4时,rate=0。5.一种图像色饱和度的调整装置,其特征在于,所述装置包括色域转换单元、色饱和度调整系数计算单元和色饱和度调整单元,所述色域转换单元,用于将图像的像素从RGB域转换到Y...
【专利技术属性】
技术研发人员:旷开智,
申请(专利权)人:建荣半导体深圳有限公司,建荣集成电路科技珠海有限公司,珠海煌荣集成电路科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。