# Dalsa Piranha4 RGB+NIR support

**URL:** https://forum.commonvisionblox.com/t/dalsa-piranha4-rgb-nir-support/409
**Category:** C-style API
**Tags:** pixelformat
**Created:** [March 27, 2018, 9:01am UTC](https://forum.commonvisionblox.com/t/dalsa-piranha4-rgb-nir-support/409 "2018-03-27T09:01:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![michael.desmet](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@michael.desmet](https://forum.commonvisionblox.com/u/michael.desmet)
#### Post date: [March 27, 2018, 9:01am UTC](https://forum.commonvisionblox.com/t/dalsa-piranha4-rgb-nir-support/409/1 "2018-03-27T09:01:21Z")

</div>

Hi,

In an upcoming project, we will be integrating a Dalsa Piranha4 RGB+NIR line scan camera. Since we do not yet have the camera available for testing, I was wondering about :cvb: support for its non-standard pixel formats.

In particular, can we use NSetAsString/NSetAsInteger on the Std::PixelFormat node to set the pixel format to “RGB8+NIR8” or “RGB12+NIR12”?

We will be accessing the pixel data using GetLinearAccess in the native Raw color format. I understand from the Sapera manual that the pixel data for each scan line will be stored as RGBRGBRGB…NNN… (i.e., the first three quarters of the scan line is RGB data, the last quarter is NIR data).

Thanks!

---

<div class="post-metadata">

### Author: ![M\_M](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@M\_M](https://forum.commonvisionblox.com/u/M_M)
#### Post date: [March 27, 2018, 11:14am UTC](https://forum.commonvisionblox.com/t/dalsa-piranha4-rgb-nir-support/409/2 "2018-03-27T11:14:40Z")

</div>

Hi Michael,

basically, this depends of two points:

1. The CameraLink camera needs to be GenICam compliant. And yes, the Piranha4 RGB + NIR camera is GenICam compliant.

2. The CVB framegrabber driver has to support the CVB INodeMap interface (and as far as I know, all CVB framegrabber driver support the INodeMap interface).

But to be sure, with which framegrabber model are you working?

Best regards,  
Martin

---

<div class="post-metadata">

### Author: ![michael.desmet](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@michael.desmet](https://forum.commonvisionblox.com/u/michael.desmet)
#### Post date: [March 27, 2018, 11:18am UTC](https://forum.commonvisionblox.com/t/dalsa-piranha4-rgb-nir-support/409/3 "2018-03-27T11:18:20Z")

</div>

Hi Martin,

We will be using the Xtium-CL PX4 framegrabber.

Regards,  
Michael

---

<div class="post-metadata">

### Author: ![M\_M](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@M\_M](https://forum.commonvisionblox.com/u/M_M)
#### Post date: [March 27, 2018, 11:40am UTC](https://forum.commonvisionblox.com/t/dalsa-piranha4-rgb-nir-support/409/4 "2018-03-27T11:40:55Z")

</div>

![SupportedInterfaces](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/8bff5ccf96d394da42053554de64e640ed39aa0b.png)

It is supported.

Best regards,  
Martin
