I am currently working with Live Image of a camera. From our hardware I get raw data and convert it to a bayer array (BGBG). Now I am trying to get the RGB Image from this array using "IMAQ Bayer to RGB". I am using "IMAQ ArrayToImage" to convert my BayerArray to Image. Unfortunately that doesn't work and I get the error: "Error -1074396080 occurred at IMAQ BayerToRGB,Possible reason(s):Invalid image type.
Can anyone help me how to fix this error?
Attached you a screenshot of the BlockDiagram.
Thanks a lot in advanced
Certified LabVIEW Developer
Solved! Go to Solution.
Actually you have to define your RGB (destination) image properly when you create it. To do so, set the "image type" input of the IMAQ Create.vi to RGB32.
Thanks Sami, I tried that but nothing happened.
Attached you my VI. A TestPattern has to be displayed
Your raw data being U16, you need to :
Please move your cursor on the image display pixels : the image looks black but you should see that pixel values are not 0s.
Yes, you are right! I think that is because there is no alpha values (intensity)! Is there a way to display the image without alpha?
The values contained in your image are low if we consider the whole 16bits dynamic range : your highest raw intensity is just above 10bits so it is understandable that on a 16bits scale, they give you "dark" pixels.
I suggest you use "IMAQ Image Bit Depth.vi" to set the real or optimized bit depth for your data. You'll get a much better display.
And my final advice would be : always make the difference between the data and the way you display them !