02-13-2014 05:30 AM
Hello.
I am using the two VIs "ImageToArray" (ITA) and "ArrayToImage" (ATI) to do some image processing, and I've noticed something strange I'd like to share with you.
I am acquiring 16bits data from a GiGe camera. If I wire the output image of the camera to the ITA VI, and then I wire the output of ITA directly to the input of ATI, I cannot get the image back!
Look at the files I attached. Image2 should simply show the same picture as Image1, shouldn't it...? But it doesn't!
Did I miss something, maybe...?
Does anyone has an explanation/solution?
(If it might be of any importance, please note that the camera dynamic is 12 bits. But I don't think that would change anything if it was 16 "full" bits...)
For your information, if I try to do exactly the same with 8 bits data, then it works perfectly fine. Only when the camera returns 16 bits data si there a pb.
Best regards.
Luc
Solved! Go to Solution.
02-13-2014 09:42 AM
I think, your camera deliver I16 image, but you using U16 - therefore array is empty and you see nothing.
Try to use I16 instead:
(and check all your image's types and control error outputs)
Andrey.
02-13-2014 11:09 AM
It works!
I knew there was something wrong...
I thought I tested your solution, but obviously I did not! ^^
It's weird how sometimes simple solutions are so hard to see, even if they are right in front of you.
I tested U8 and U16, but not I16. *sigh*
Thanks a lot.
Cheers!