Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

wrong data lines

Does anyone has the problem below:
 
I captured images using PCI-1422 RS422, my camera is Nytech 12-bit interlaced. I noticed that the histogram jumped up/down while captured a still scene. Using Mathlab, it seems to be that bits 1, 2, 3 are swapped with bits 5, 6, 7 (count from 0 to 11). I checked the cable and it looks OK.
0 Kudos
Message 1 of 2
(3,022 Views)

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.

0 Kudos
Message 2 of 2
(3,012 Views)