From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Bayer U16 2D array

Solved!
Go to solution

Hello

 

I am using a custom camera driver which gives me image data as Bayer formed data as an U16 2D array. I am wondering if I can use the "IMAQ Bayer To RGB" function with this.

 

I would be most thankful for hints.

 

Thanks

 

D. Ackermann

0 Kudos
Message 1 of 5
(4,618 Views)
Solution
Accepted by topic author DAckermann
Yes, this VI lets you do just that:
http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_bayer_to_rgb/

You would use ArrayToImage on the source image first, of course.

Eric
0 Kudos
Message 2 of 5
(4,602 Views)

I am getting some result with this. But the colors arent correct.

I dont really know how to create the src image with the 12bit sensor data.

 

I can't upload the image because of size. So only a screenshot of the result and my vi.

Maybe someone can help.

 

Thanks

 

Bayer

0 Kudos
Message 3 of 5
(4,595 Views)
I can't see your VI at the moment, but did you set the bit depth to 12-bit on the source image?
0 Kudos
Message 4 of 5
(4,587 Views)

It seems everything is working fine now.

 

Thanks!

0 Kudos
Message 5 of 5
(4,574 Views)