- What camera?
- Which adaptor?
- Which format?
- What is the configuration of your videoinput object?
- How are you getting the data, i.e. is it coming from preview, getsnapshot, getdata, etc.?
Weird histogram/images when recording with 16bit camera
1 view (last 30 days)
Show older comments
Look at the picture below, the image should be a uniform dark gray (and it shows as such under labview). But somehow it looks as if matlab is cutting off the darkest part on the left of the histogram and its folded over to the very right, producing this very bright pixels around the corners which are just artefacts... At first I thought its just a display problem converting from 16 to 8bit but it looks like the actual raw data (the histogram axis shows the 16bit data from getsnapshot) recorded in matlab is just rubbish....
The camera is a firewire 16bit using dcam drivers. Matlab is 2012a 32bit.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150391/image.png)
1 Comment
David Tarkowski
on 10 Jan 2013
I need more information to provide any insight into this problem.
Answers (1)
Walter Roberson
on 10 Jan 2013
typecast(InputData, 'int16')
to take it to signed integers instead of unsigned.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!