# Double 4K Multispectral - NDVI and NDRE Calculations

## Multispectral

The D4K Multispectral camera is a bit different than other cameras, since each band must be normalized to each other before indices that use both cameras are calculated.

For the RGB side of the camera, the stacked filters result in the following spectral response, as shown in Figure 1:&#x20;

<div align="left"><figure><img src="/files/lQ9e6ZWX2oRr4L87etkD" alt=""><figcaption><p><mark style="color:blue;">Figure 1: Stacked Filters</mark></p></figcaption></figure></div>

In Figure 1, red/green/blue correspond to channels of the resulting jpeg image. Note that there is some cross talk between the channels. That is, the blue channel has primarily blue wavelengths, but also has small contributions from the green and red wavelengths as well.

If it is necessary to separate the channels further, we can use a system of equations to subtract out the effect of the out of band channels on each band. This calculation assumes that the incoming light is approximately uniform (which is the case with daylight). We also add the constraint that the power across each of the filtered bands is equal. This allows us to perform calculations across each of the color bands, even if the filter widths vary.

This results in the following:&#x20;

DN \[color] = digital number of that band (from the jpeg)&#x20;

\[color] = Corrected color after subtracting out of band colors&#x20;

Blue = 1.377*DNblue - 0.182*DNGreen - 0.061*DNRed*&#x20;

*Green = -0.199*DNblue + 1.420*DNGreen - 0.329*DNRed&#x20;

Red = -0.034*DNblue - 0.110*DNGreen + 1.150\*DNRed

&#x20;For the NIR/Red Edge camera, we have the following combined spectral response, as shown in Figure 2:

<div align="left"><figure><img src="/files/dq3Ptm0MlWjevXMtxuZY" alt=""><figcaption><p><mark style="color:blue;">Figure 2: Combined Spectral</mark></p></figcaption></figure></div>

Note that from this imager, we only use the Blue channel for NIR and the Red channel for Red Edge. The green channel is discarded when performing index and band calculations. This is because there is not any additional useful information in the green band that isn't already captured by the blue and red bands.

Like the RGB method above (and subject to the same restrictions), we can subtract the out of band channels in the NIR and Red Edge portions via the following:

RedEdge = -0.956*DNblue + 1.000*DNred NIR = 2.426*DNblue - 0.341*DNred

When attempting to calculate indices that use both cameras, both the camera settings and the normalization factors used in the band math equations need to be considered during any index computations you may make.&#x20;

You will first have to normalize each of your images for the total exposure opportunity. This will allow images with differing ISO and exposure times to be compared properly.&#x20;

DN = Digital Number&#x20;

Gain = ISO / 100 \[Exif Tag]&#x20;

Shutter = Shutter time in seconds \[ Exif Tag]

ExposureOpportunity = DN / ( Gain \* Shutter )

The normalization values for each band separation matrix were chosen independently for each camera to keep 8-bit values in their proper ranges (typically 0-255). A normalization value of 1/750 was used for RGB, and 1/277.7 was used for RedEdge. This means that a step increase in RGB values implies a 2.7x step in the RedEdge values. So, if you want to compute indices that use both cameras you must consider our band math gains. This is done after the bands are separated using the above system of equations.

So, you end up with the following:

NDVI = (2.700 \* NIR\_2 - Red\_1) / (2.700 \* NIR\_2 + Red\_1)&#x20;

NDRE = (NIR\_2 - RedEdge\_2) / (NIR\_2 + RedEdge\_2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.senterasensors.com/home/double-4k-sensor/double-4k/double-4k-multispectral-ndvi-and-ndre-calculations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
