12bit grayscale image acquistion,

I have a new camera which can acquire 12 bit grascale image . But i couldn interface it with maltab imaq. Since it has RGB and UVYY format . In case i get the image from the rgb format and later change the colorspace the image acquited in the format 8 bit grayscale . Can anyone help me out?

 採用された回答

Image Analyst
Image Analyst 2012 年 4 月 20 日

0 投票

When you run imaqtool, does the hardware browser show a mode that is 16 bits? If it does, why not use it?

7 件のコメント

manoj sambasivam
manoj sambasivam 2012 年 4 月 23 日
yeah im using it rgb32 3840X2748 format then converting it grayscale , Its in 8 bit again
Image Analyst
Image Analyst 2012 年 4 月 23 日
Contact your camera manufacturer, because apparently there is no 12 bit grayscale mode, at least not one that's exposed in the camera interface. If there were, it would be there in the hardware browser list.
Image Analyst
Image Analyst 2012 年 4 月 23 日
What is the manufacturer and model of your camera? Please supply the web page URL of your camera model so I can look at its datasheet/spec sheet.
manoj sambasivam
manoj sambasivam 2012 年 4 月 24 日
http://www.ids-imaging.com/frontend/products.php?cam_id=75&sc=3
Mine is Cmos model 10 MP camera
Walter Roberson
Walter Roberson 2012 年 5 月 10 日
The only documents that are available for that camera on the manufactures web site are sales documents. The information on that web site is not even enough to figure out whether the camera is RGB or monochrome. (In order to figure _that_ out, you have to use the device selector application on the web site, narrow down to that camera, and then notice the only available sensor for it available through the selector. Then you have to look up that sensor by manufacturer and model in a search engine, skip the sensor's manufacturer public documentation (which doesn't say) and find a third-party listing of all the sensors from that manufacturer in order to find that Yes, RGB is listed there.)
The description of the camera does say that the data is delivered as "12 bit raw", but we cannot tell from the existing documentation whether that means that each sample is packed into 16 bits, or if two 12 bit samples are packed into 3 bytes (24 bits).
manoj sambasivam
manoj sambasivam 2012 年 5 月 14 日
thanks for reply sir. I have a small doubt if i acquire it in uint8class and convert it in uint16 class using Im2uint16, Will be any loss of data?
Walter Roberson
Walter Roberson 2012 年 5 月 14 日
That will not give you a 12 or 16 bit image.

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 4 月 19 日

0 投票

rgb2gray() ??

4 件のコメント

manoj sambasivam
manoj sambasivam 2012 年 4 月 19 日
If i convert it normally from rgb2gray it is coming in the range of 8 bit grayscale tat is 0-255 , i need the range of 12 bit grayscale.
Walter Roberson
Walter Roberson 2012 年 4 月 19 日
What is class() of your input data?
manoj sambasivam
manoj sambasivam 2012 年 4 月 20 日
I acquire it in Uint8 . In the range of resolution 2748X3840.
I get it in RGB32 am converting it grayscale then become with same resolution but comes it the grayscale of 0-255. I need to get it into GRAY 12 bit from 0-4096 scale.
Walter Roberson
Walter Roberson 2012 年 4 月 23 日
The RGB32 mode: how many bits each does it allocate for R, G, and B? 32 bits can fit 11 bits each for two of the channels and 10 bits for the third channel, but it cannot fit 12 bits for each of 3 channels.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by