ISP

ISP BLOCK

Figure 1 shows a simplified block schematic of a conventional ISP. The input is sensor data in a raw format (one color per pixel), and the output is interpolated RGB or YCbCr data (three colors per pixel).
在这里插入图片描述
Figure 1. This block diagram provides a simplified view inside a conventional ISP (image signal processor).
Table 1 briefly summarizes the function of each block. The list is not intended to be exhaustive: an ISP design team will frequently also implement other modules.

ModuleFunction
Raw data correctionSet black point, remove defective pixels.
Lens correctionCorrect for geometric and luminance/color distortions.
Noise reductionApply temporal and/or spatial averaging to increase SNR (signal to noise ratio).
Dynamic range compressionReduce dynamic range from sensor to standard output without loss of information.
DemosaicReconstruct three colors per pixel via interpolation with pixel neighbors.
3ACalculate correct exposure, white balance and focal position.
Color correctionObtain correct colors in different lighting conditions.
GammaEncode video for standard output.
SharpenEdge enhancement.
Digital image stabilizationRemove global motion due to camera shake/vibration.
Color space conversionRGB to YCbCr.

BLC

黑电位校正是由于CMOS sensor 本身由于暗电流的存在,导致在没有光线照射的时候,像素单位也有一定的输出电压。需要把这个电位减去,让输出的数据呈现出随亮度线性变化的规律。一般的Sensor都有BLC参数,sensor厂商会给出已经调校好的参数,在ISP中也还有进一步的BLC存在。但ISP的BLC 一般只是微调数据,有些sensor在不同色温或者环境亮度条件下需要调整。如下图:

 (左)Normal        (中)Disable sensor BLC    右)BLC 参数异常

右侧的图像在一定环境下,呈现偏红色,因此需要对R分量减去一个较小的幅度。同时为了对整幅图像数据不造成大的影响,R分量还要保持0~255的取值范围,所以BLC 计算公式如下:

f(x, Δ)=(x-Δ)*255/(255-Δ)

其中Δ为BLC校正的数值, x可以是R/G/B中的任意一个分量,取值范围在0~255. BLC的映射关系图如下,水平方向表示物体亮度,垂直方向表示Sensor像素的输出值,蓝色为BLC之前的数据,红色为BLC之后的数据。

            BLC 映射关系图

BLC参数Δ不宜设置过大,Δ越大,则感光动态范围越小。一般要求在图像效果可接受的范围内,Δ越小越好。判断Δ设置是否到位的一个简单方法是把sensor完全遮黑,看看输出数据是否逼近0值。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值