OpenCV:使用12位灰度原始数据 [英] OpenCV: Working with 12bit gray scale raw data
问题描述
过去我曾使用OpenCv处理32位.bmp文件,并取得了成功的结果。如何利用Opencv函数处理 12bit原始 数据?
我的处理主要是操作,比如查找一些1000像素等等。
In past I have used OpenCv for processing 32 bit .bmp files, and have got successful results. How do I make use of Opencv functions to process 12bit raw data? My processing will be mostly operations like finding the some of 1000 pixels and so on.
编辑
我得到的文件是.bin文件。图像中的像素是这样放置的(文件包含所有这样的内容,因为我正在拍白皮书):
EDIT The file that I am getting is .bin file. And the Pixels in Image are placed like this(the file has all the content like this, coz I am taking a picture of white paper):
(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)(FF)(0F)
显然我可以对此进行16位处理。
Clearly I can do 16 bit processing on this.
推荐答案
我想在这张图片上进行16位处理。然后在另一个问题中揭开这个秘密。
Well I wanted to do 16 bit processing on this image. The secret is then reveled in another question .
对于16位,我将不得不切换到PNG而不是bmp!
For 16 bit I will have to switch to PNG not bmp!
本文件说我可以在OpenCV中使用16位PNG
This document says I can use 16 bit PNG in OpenCV
这篇关于OpenCV:使用12位灰度原始数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!