Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI 1422 how to aquire 12 RGB

Hello,
I an using a PCI 1422 with a non standard camera signal (12 bit RGB).
At the monemt i am able to capture the signal
in 12 bit black and white.
What must be done that i can capture the signal in RGB
(4 bit each color)
If i use 24 bit color depth the the signal will be dislayed in color, but all blue colors are missing.
How are the colors (24 bit) stored in the memory if i use a PCI 1422 wich has only 16 data bus?

What does the binaray threashold value in the camera file mean?

Juergen Dodek
Electronic Developer
mtu-friedshafen, Germany
0 Kudos
Message 1 of 3
(3,171 Views)
The NI hardware and software doesn't support this RGB formate directly. As such, the color scheme is going to have to be decoded in software. This can be done by breaking the 12-bit image into it's three RGB components and dynamically spreading the values over the full U8 range (0-255).

If you have some example images, I may be able to try it here. However, I can almost assure you that the deconding will not be real-time, so some post processing may be in order...

Kyle V
0 Kudos
Message 2 of 3
(3,171 Views)
I can see a couple of possible solutions.

One would be creating a custom cable that separates the 4 bits for each color into separate bytes, with 4 blank bits for each color. This could be input as 24 bit color perhaps. You might need to be using the PCI-1424, though, to get a full 24 bits input.

A second option might be to do the same thing in software. I am not sure if the ICD file has the flexibility to rearrange the bits like this.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 3 of 3
(3,171 Views)