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

Re: PCDig and JAI CV-L103 colour camera




Hi Will!

On Tue, 25 Apr 2000, Will Lockhart wrote:

> Hi Matthias,
> 
> More PCDig questions I'm afraid. I'm trying to get the PCDig to work
> with a 24 bit colour camera. I'm getting data back from the camera,
> but it doesn't look right (although it clearly is image data of some
> sort). I should add that I'm using a program I wrote to display the
> image data, since the test_itifg program can only display gray scale
> data.
> 
> What I need to know is:
> 
> Which FPGA file should I use (I guess p3b1tn00.exo)?

Yes, this is the right file!

> What values should I provide in the camera configuration fields for
> the GIOC_GE_SET_CAMCNF ioctl? (The NT configuration file is at the
> bottom of this e-mail - if you could convert this to ITIFG format then 
> I could use read_config to work out what values are needed)
> 
> Is there anything else I should know about using colour cameras with
> the PCDig/ITIFG?
>

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?

						matthias
> Thanks,
> 
> Will
> 
> ###################################################
> # IFC Generated Configuration File
> # Filename: jai_cv_l103.txt
> # Date: 04/20/00
> ###################################################
> 
>  
> #########################################
> # IFC Generated Section Start
> #########################################
>  
> [PCD:0]
>  
> # Camera Definition
>  
> Name = "SI_JAI_LC-103_B0P0"
> Camera_Structure = Create_Structure
> PIXEL_SIZE = 24 
> TRIGGER_SRC = DIFFERENTIAL_TRIG,DIFFERENTIAL_TRIG
> TRIGGER_POLARITY = RISING_EDGE,RISING_EDGE
> TRIGGER_STATE = LEVEL_LOW,LEVEL_HIGH
> GEN_SW_TRIGGER = 1950352947,1950352947
> LEN_SYNC = SYNC
> LEN_POLARITY = RISING_EDGE
> FEN_ENABLE = DISABLE
> FEN_POLARITY = RISING_EDGE
> HORZ_OFF = 0
> WIDTH_PIXELS = 2048
> VERT_OFF = 0
> HEIGHT_PIXELS = 2048
> FIRST_FIELD_STAT = EVEN_FIELD
> FIRST_FIELD_CMD = EVEN_FIELD
> SCAN_MODE_STAT = NILACED
> PARAM_GROUPS_APPLICABLE = 126
> MULTI_ENABLE = DISABLE
> MULTI_POLARITY = ACTIVE_LOW
> MULTI_INPUT_MODE = MULTI_INPUT_FIELD
> PCLK_POLARITY = RISING_EDGE
> MULTI_OUTPUT_ENABLE = DISABLE
> USE_EXT_MULTI = DISABLE
> RETIME_ENABLE = DISABLE
> RETIME_POLARITY = RISING_EDGE
> CAM3_ENABLE = DISABLE
> EXSYNC_ENABLE = ENABLE
> EXSYNC_POLARITY = ACTIVE_HIGH
> EXSYNC_MODE = EXSYNC_FREE_RUNNING
> PRI_ENABLE = DISABLE
> PRI_POLARITY = ACTIVE_LOW
> CAM_MODE_CTL = 0
> EXT_SYNC_TIME = 143.010000
> EXT_SYNC_PERIOD_TIME = 1200.010000
> CCLK_FREQ_SEL = 4.000000
> IMAGE_GEOMETRY = 1CHAN_L2R
> NUM_CAMERAS = 1
> TRIG_GLITCH_DETECTOR = DISABLE,DISABLE
> CCLK_STATIC_ENABLE = DISABLE
> CCLK_STATIC_STATE = LEVEL_LOW
> EXO_FILENAME = ""
> TRIG_DIVIDE_FACTOR = 256
> TRIG_DIVIDE_CONTROL = DISABLE_TRIG_DIVIDE
> USER_DEF_GEO_NAME = ""
> EXSYNC_START_LOCATION = EXSYNC_START_CYCLE_END
> EXSYNC_MIDPOINT_DELAY = 1000.020020
> PRI_START_LOCATION = PRI_START_CYCLE_END
> PRI_MIDPOINT_DELAY = 0.140000
> PRI_END_LOCATION = PRI_END_AT_LEN_BEGIN
>  
> #########################################
> # IFC Generated Section End
> #########################################
>