[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCDig and JAI CV-L103 colour camera



M.Stein writes:
 > I'm not really sure about some problems with the input LUT's. The pcdig
 > has 2 16x16bit LUT's. Till now I only use the lower one, because we don't
 > have cameras with more than 16bit.
 > Also the PIXEL_SIZE=24 entry in the config file will not work. My
 > suggestion is to set PIXEL_SIZE=16, so the lower LUT is filled in a linear
 > manner (that is what you need). Later use the HIOC_PCD_SET_LUT1 to load a
 > self defined mapping into the upper LUT. To do this, define a union
 > pcd_lut_t, fill it with linearized values (0->0 .... 65535->65535), and
 > call the ioctl with the union pointer as argument. There are also some
 > PCD_GET_LUT0|1 calls to verify the loaded mappings.
 > 
 > ...But not really much of this calls are tested...
 > 
 > The bytes should lay in the memory like
 > 
 > 	RGBRGBRGBRGBRGBRGB
 > 
 > am I right?

OK. Progress - I tried programming both LUTs to be linear, and I now
have all three channels, and it looks like they are indeed arranged as 
RGBRGB.

My next problem is one regarding doing triggered snap acquisitions
(which I believe is essential if I want to capture more than 4MB of
data at a time).

I did some investigation a few weeks ago and came to the conclusion
that:

Doing a snap using a trigger only works if you have previously done a
grab using a trigger (this is all with EXSYNC free running). You can
test this with test_itifg. First do a config_itifg, then try
test_itifg -t -a (snap mode, trigger) - I don't get any images. Then
run test_itifg -t (grab mode, trigger) - I get images (at least I do
when the images are <= 4MB). Now I run test_itifg -t -a and *now* I
get images. So it seems to me that somehow setting the driver into
grab mode changes some internal state which was preventing snap mode
from working.

Now, because grab mode was working for me, I though I could just use
that for triggered acquisition, but now I realise I have to use snap
mode.

Will