我使用以太网相机拍摄了一张图像。图像是12位。我通过在十六进制编辑器中打开原始数据来确认这一点。为了获得饱和值,我在白光下放了一张白纸并拍摄了图像。数据是这样的:
(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)
等等。
是左对齐还是右对齐?在此图像的某些处理过程中是否需要处理溢出?如果有,怎么样?
答案 0 :(得分:0)
标准成像器惯例是数据从左到右从上到下。我的猜测是,虽然您的成像器是一个12位传感器,但它以16位格式对齐输出数据,以便于查看数据,这样您就不必执行任何数据移位等...
我认为您的实际值是:0x0FFF因此您需要进行字节交换以获得真正的16位值。