c#aforge模拟摄像头ISP RGB增益寄存器更改
问题描述:
我正在开发一个程序,它可以模拟摄像头的ISP RGB增益寄存器值。模拟值将被发送给供应商以硬编码到设备AP。c#aforge模拟摄像头ISP RGB增益寄存器更改
我注意到Aforge内有很多过滤器,甚至没有它,我可以使用newFrame()方法来应用其他过滤器来显示。
但是,我应该使用什么滤波器(或算法)来模拟此ISP RGB增益寄存器值?据我所知,里面没有类似的房产
videoDevice.DisplayPropertyPage(IntPtr.Zero);
。
答
有确实的过滤器了一把,我觉得您的特定用途的最好的一个是GammaCorrection
过滤器:
GammaCorrection _filtroGamma = new GammaCorrection();
double _gamma = 1; // should be between 0.1 and 5.0, 1.0 is the neutral value (does nothing)
void NewFrameHandler(object sender, NewFrameEventArgs eventArgs)
{
var bitmap = eventArgs.Frame;
_filtroGamma.Gamma = _gamma;
_filtroGamma.ApplyInPlace(bitmap);
DoSomething(bitmap);
}
卖主说,RGB增益寄存器值的范围为0〜4095 。 – March3April4