10-04-2005 01:26 PM
10-05-2005 01:37 PM
How are you transfering the file to Matlab? Are you saving it as a PNG file? If you have NI-IMAQ driver version 2.5 or earlier, there was a problem with the way 16-bit PNG's were saved - a byte swap was occuring - see:
http://digital.ni.com/public.nsf/websearch/6630D36A0A501E2386256A46004EEDBE?OpenDocument
If this is the problem, upgrade to NI-IMAQ 2.6 or later - 3.1.3 is available at ni.com/downloads
Also, make sure that matlab is handling the 16-bit image correctly, I have heard of early versions of matlab not handling this correctly - it used to be that viewers would simply drop 8 bits to be able to display them rather than dynamically scale the image.
If this is not the problem, please add more information and attached images.